@undefineds.co/xpod 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/config/cloud.json +1 -1
  2. package/dist/api/chatkit/ai-provider.js +4 -3
  3. package/dist/api/chatkit/ai-provider.js.map +1 -1
  4. package/dist/api/chatkit/default-agent.js +8 -7
  5. package/dist/api/chatkit/default-agent.js.map +1 -1
  6. package/dist/api/chatkit/runtime/PtyThreadRuntime.js +2 -1
  7. package/dist/api/chatkit/runtime/PtyThreadRuntime.js.map +1 -1
  8. package/dist/api/handlers/AdminHandler.js +1 -1
  9. package/dist/api/handlers/AdminHandler.js.map +1 -1
  10. package/dist/api/service/VercelChatService.js +23 -23
  11. package/dist/api/service/VercelChatService.js.map +1 -1
  12. package/dist/api/service/platform-ai-config.d.ts +8 -0
  13. package/dist/api/service/platform-ai-config.js +64 -0
  14. package/dist/api/service/platform-ai-config.js.map +1 -0
  15. package/dist/cli/commands/start.js +1 -2
  16. package/dist/cli/commands/start.js.map +1 -1
  17. package/dist/components/context.jsonld +3 -0
  18. package/dist/http/TracingHandler.js +2 -0
  19. package/dist/http/TracingHandler.js.map +1 -1
  20. package/dist/identity/drizzle/DrizzleIndexedStorage.d.ts +10 -1
  21. package/dist/identity/drizzle/DrizzleIndexedStorage.js +99 -6
  22. package/dist/identity/drizzle/DrizzleIndexedStorage.js.map +1 -1
  23. package/dist/identity/drizzle/DrizzleIndexedStorage.jsonld +36 -0
  24. package/dist/main.js +1 -2
  25. package/dist/main.js.map +1 -1
  26. package/dist/provision/ProvisionPodCreator.d.ts +1 -0
  27. package/dist/provision/ProvisionPodCreator.js +33 -2
  28. package/dist/provision/ProvisionPodCreator.js.map +1 -1
  29. package/dist/provision/ProvisionPodCreator.jsonld +4 -0
  30. package/dist/runtime/bootstrap.js +4 -4
  31. package/dist/runtime/bootstrap.js.map +1 -1
  32. package/dist/storage/MetadataRequestContext.d.ts +13 -0
  33. package/dist/storage/MetadataRequestContext.js +6 -0
  34. package/dist/storage/MetadataRequestContext.js.map +1 -0
  35. package/dist/storage/NodeSqliteDrizzle.js +19 -5
  36. package/dist/storage/NodeSqliteDrizzle.js.map +1 -1
  37. package/dist/storage/accessors/MinioDataAccessor.d.ts +1 -0
  38. package/dist/storage/accessors/MinioDataAccessor.js +25 -2
  39. package/dist/storage/accessors/MinioDataAccessor.js.map +1 -1
  40. package/dist/storage/accessors/MinioDataAccessor.jsonld +4 -0
  41. package/dist/storage/accessors/MixDataAccessor.d.ts +3 -1
  42. package/dist/storage/accessors/MixDataAccessor.js +61 -23
  43. package/dist/storage/accessors/MixDataAccessor.js.map +1 -1
  44. package/dist/storage/accessors/MixDataAccessor.jsonld +23 -0
  45. package/dist/supervisor/Supervisor.js +1 -1
  46. package/dist/supervisor/Supervisor.js.map +1 -1
  47. package/package.json +1 -1
  48. package/static/app/assets/index.css +1 -1
  49. package/static/app/assets/main.js +50 -10
  50. package/static/dashboard/assets/{dashboard-BfmT5Vc8.js → dashboard-CTk9cn1-.js} +8 -8
  51. package/static/dashboard/assets/dashboard-VQRsvXx9.css +1 -0
  52. package/static/dashboard/dashboard.html +2 -2
  53. package/static/dashboard/assets/dashboard-DkZOr7bV.css +0 -1
@@ -1,11 +1,51 @@
1
- (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const y of h.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&o(y)}).observe(document,{childList:!0,subtree:!0});function d(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(m){if(m.ep)return;m.ep=!0;const h=d(m);fetch(m.href,h)}})();function My(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Hs={exports:{}},Bn={};var mh;function Uy(){if(mh)return Bn;mh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function d(o,m,h){var y=null;if(h!==void 0&&(y=""+h),m.key!==void 0&&(y=""+m.key),"key"in m){h={};for(var j in m)j!=="key"&&(h[j]=m[j])}else h=m;return m=h.ref,{$$typeof:i,type:o,key:y,ref:m!==void 0?m:null,props:h}}return Bn.Fragment=r,Bn.jsx=d,Bn.jsxs=d,Bn}var yh;function Ly(){return yh||(yh=1,Hs.exports=Uy()),Hs.exports}var s=Ly(),Bs={exports:{}},ae={};var ph;function Hy(){if(ph)return ae;ph=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),U=Symbol.iterator;function G(b){return b===null||typeof b!="object"?null:(b=U&&b[U]||b["@@iterator"],typeof b=="function"?b:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,Y={};function Q(b,M,q){this.props=b,this.context=M,this.refs=Y,this.updater=q||k}Q.prototype.isReactComponent={},Q.prototype.setState=function(b,M){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,M,"setState")},Q.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function X(){}X.prototype=Q.prototype;function F(b,M,q){this.props=b,this.context=M,this.refs=Y,this.updater=q||k}var ne=F.prototype=new X;ne.constructor=F,H(ne,Q.prototype),ne.isPureReactComponent=!0;var te=Array.isArray;function fe(){}var $={H:null,A:null,T:null,S:null},ye=Object.prototype.hasOwnProperty;function pe(b,M,q){var V=q.ref;return{$$typeof:i,type:b,key:M,ref:V!==void 0?V:null,props:q}}function ce(b,M){return pe(b.type,M,b.props)}function Ee(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function W(b){var M={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(q){return M[q]})}var se=/\/+/g;function De(b,M){return typeof b=="object"&&b!==null&&b.key!=null?W(""+b.key):M.toString(36)}function Ge(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(fe,fe):(b.status="pending",b.then(function(M){b.status==="pending"&&(b.status="fulfilled",b.value=M)},function(M){b.status==="pending"&&(b.status="rejected",b.reason=M)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function T(b,M,q,V,le){var L=typeof b;(L==="undefined"||L==="boolean")&&(b=null);var ee=!1;if(b===null)ee=!0;else switch(L){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(b.$$typeof){case i:case r:ee=!0;break;case D:return ee=b._init,T(ee(b._payload),M,q,V,le)}}if(ee)return le=le(b),ee=V===""?"."+De(b,0):V,te(le)?(q="",ee!=null&&(q=ee.replace(se,"$&/")+"/"),T(le,M,q,"",function(Za){return Za})):le!=null&&(Ee(le)&&(le=ce(le,q+(le.key==null||b&&b.key===le.key?"":(""+le.key).replace(se,"$&/")+"/")+ee)),M.push(le)),1;ee=0;var ge=V===""?".":V+":";if(te(b))for(var _e=0;_e<b.length;_e++)V=b[_e],L=ge+De(V,_e),ee+=T(V,M,q,L,le);else if(_e=G(b),typeof _e=="function")for(b=_e.call(b),_e=0;!(V=b.next()).done;)V=V.value,L=ge+De(V,_e++),ee+=T(V,M,q,L,le);else if(L==="object"){if(typeof b.then=="function")return T(Ge(b),M,q,V,le);throw M=String(b),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ee}function B(b,M,q){if(b==null)return b;var V=[],le=0;return T(b,V,"","",function(L){return M.call(q,L,le++)}),V}function K(b){if(b._status===-1){var M=b._result;M=M(),M.then(function(q){(b._status===0||b._status===-1)&&(b._status=1,b._result=q)},function(q){(b._status===0||b._status===-1)&&(b._status=2,b._result=q)}),b._status===-1&&(b._status=0,b._result=M)}if(b._status===1)return b._result.default;throw b._result}var Se=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},je={map:B,forEach:function(b,M,q){B(b,function(){M.apply(this,arguments)},q)},count:function(b){var M=0;return B(b,function(){M++}),M},toArray:function(b){return B(b,function(M){return M})||[]},only:function(b){if(!Ee(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ae.Activity=w,ae.Children=je,ae.Component=Q,ae.Fragment=d,ae.Profiler=m,ae.PureComponent=F,ae.StrictMode=o,ae.Suspense=v,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ae.__COMPILER_RUNTIME={__proto__:null,c:function(b){return $.H.useMemoCache(b)}},ae.cache=function(b){return function(){return b.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(b,M,q){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var V=H({},b.props),le=b.key;if(M!=null)for(L in M.key!==void 0&&(le=""+M.key),M)!ye.call(M,L)||L==="key"||L==="__self"||L==="__source"||L==="ref"&&M.ref===void 0||(V[L]=M[L]);var L=arguments.length-2;if(L===1)V.children=q;else if(1<L){for(var ee=Array(L),ge=0;ge<L;ge++)ee[ge]=arguments[ge+2];V.children=ee}return pe(b.type,le,V)},ae.createContext=function(b){return b={$$typeof:y,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:h,_context:b},b},ae.createElement=function(b,M,q){var V,le={},L=null;if(M!=null)for(V in M.key!==void 0&&(L=""+M.key),M)ye.call(M,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(le[V]=M[V]);var ee=arguments.length-2;if(ee===1)le.children=q;else if(1<ee){for(var ge=Array(ee),_e=0;_e<ee;_e++)ge[_e]=arguments[_e+2];le.children=ge}if(b&&b.defaultProps)for(V in ee=b.defaultProps,ee)le[V]===void 0&&(le[V]=ee[V]);return pe(b,L,le)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(b){return{$$typeof:j,render:b}},ae.isValidElement=Ee,ae.lazy=function(b){return{$$typeof:D,_payload:{_status:-1,_result:b},_init:K}},ae.memo=function(b,M){return{$$typeof:g,type:b,compare:M===void 0?null:M}},ae.startTransition=function(b){var M=$.T,q={};$.T=q;try{var V=b(),le=$.S;le!==null&&le(q,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(fe,Se)}catch(L){Se(L)}finally{M!==null&&q.types!==null&&(M.types=q.types),$.T=M}},ae.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ae.use=function(b){return $.H.use(b)},ae.useActionState=function(b,M,q){return $.H.useActionState(b,M,q)},ae.useCallback=function(b,M){return $.H.useCallback(b,M)},ae.useContext=function(b){return $.H.useContext(b)},ae.useDebugValue=function(){},ae.useDeferredValue=function(b,M){return $.H.useDeferredValue(b,M)},ae.useEffect=function(b,M){return $.H.useEffect(b,M)},ae.useEffectEvent=function(b){return $.H.useEffectEvent(b)},ae.useId=function(){return $.H.useId()},ae.useImperativeHandle=function(b,M,q){return $.H.useImperativeHandle(b,M,q)},ae.useInsertionEffect=function(b,M){return $.H.useInsertionEffect(b,M)},ae.useLayoutEffect=function(b,M){return $.H.useLayoutEffect(b,M)},ae.useMemo=function(b,M){return $.H.useMemo(b,M)},ae.useOptimistic=function(b,M){return $.H.useOptimistic(b,M)},ae.useReducer=function(b,M,q){return $.H.useReducer(b,M,q)},ae.useRef=function(b){return $.H.useRef(b)},ae.useState=function(b){return $.H.useState(b)},ae.useSyncExternalStore=function(b,M,q){return $.H.useSyncExternalStore(b,M,q)},ae.useTransition=function(){return $.H.useTransition()},ae.version="19.2.3",ae}var gh;function ao(){return gh||(gh=1,Bs.exports=Hy()),Bs.exports}var S=ao();const Fs=My(S);var qs={exports:{}},qn={},Ys={exports:{}},Gs={};var vh;function By(){return vh||(vh=1,(function(i){function r(T,B){var K=T.length;T.push(B);e:for(;0<K;){var Se=K-1>>>1,je=T[Se];if(0<m(je,B))T[Se]=B,T[K]=je,K=Se;else break e}}function d(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var B=T[0],K=T.pop();if(K!==B){T[0]=K;e:for(var Se=0,je=T.length,b=je>>>1;Se<b;){var M=2*(Se+1)-1,q=T[M],V=M+1,le=T[V];if(0>m(q,K))V<je&&0>m(le,q)?(T[Se]=le,T[V]=K,Se=V):(T[Se]=q,T[M]=K,Se=M);else if(V<je&&0>m(le,K))T[Se]=le,T[V]=K,Se=V;else break e}}return B}function m(T,B){var K=T.sortIndex-B.sortIndex;return K!==0?K:T.id-B.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var y=Date,j=y.now();i.unstable_now=function(){return y.now()-j}}var v=[],g=[],D=1,w=null,U=3,G=!1,k=!1,H=!1,Y=!1,Q=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var B=d(g);B!==null;){if(B.callback===null)o(g);else if(B.startTime<=T)o(g),B.sortIndex=B.expirationTime,r(v,B);else break;B=d(g)}}function te(T){if(H=!1,ne(T),!k)if(d(v)!==null)k=!0,fe||(fe=!0,W());else{var B=d(g);B!==null&&Ge(te,B.startTime-T)}}var fe=!1,$=-1,ye=5,pe=-1;function ce(){return Y?!0:!(i.unstable_now()-pe<ye)}function Ee(){if(Y=!1,fe){var T=i.unstable_now();pe=T;var B=!0;try{e:{k=!1,H&&(H=!1,X($),$=-1),G=!0;var K=U;try{t:{for(ne(T),w=d(v);w!==null&&!(w.expirationTime>T&&ce());){var Se=w.callback;if(typeof Se=="function"){w.callback=null,U=w.priorityLevel;var je=Se(w.expirationTime<=T);if(T=i.unstable_now(),typeof je=="function"){w.callback=je,ne(T),B=!0;break t}w===d(v)&&o(v),ne(T)}else o(v);w=d(v)}if(w!==null)B=!0;else{var b=d(g);b!==null&&Ge(te,b.startTime-T),B=!1}}break e}finally{w=null,U=K,G=!1}B=void 0}}finally{B?W():fe=!1}}}var W;if(typeof F=="function")W=function(){F(Ee)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,De=se.port2;se.port1.onmessage=Ee,W=function(){De.postMessage(null)}}else W=function(){Q(Ee,0)};function Ge(T,B){$=Q(function(){T(i.unstable_now())},B)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(T){T.callback=null},i.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"):ye=0<T?Math.floor(1e3/T):5},i.unstable_getCurrentPriorityLevel=function(){return U},i.unstable_next=function(T){switch(U){case 1:case 2:case 3:var B=3;break;default:B=U}var K=U;U=B;try{return T()}finally{U=K}},i.unstable_requestPaint=function(){Y=!0},i.unstable_runWithPriority=function(T,B){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=U;U=T;try{return B()}finally{U=K}},i.unstable_scheduleCallback=function(T,B,K){var Se=i.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?Se+K:Se):K=Se,T){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=K+je,T={id:D++,callback:B,priorityLevel:T,startTime:K,expirationTime:je,sortIndex:-1},K>Se?(T.sortIndex=K,r(g,T),d(v)===null&&T===d(g)&&(H?(X($),$=-1):H=!0,Ge(te,K-Se))):(T.sortIndex=je,r(v,T),k||G||(k=!0,fe||(fe=!0,W()))),T},i.unstable_shouldYield=ce,i.unstable_wrapCallback=function(T){var B=U;return function(){var K=U;U=B;try{return T.apply(this,arguments)}finally{U=K}}}})(Gs)),Gs}var xh;function qy(){return xh||(xh=1,Ys.exports=By()),Ys.exports}var Xs={exports:{}},et={};var bh;function Yy(){if(bh)return et;bh=1;var i=ao();function r(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)g+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var o={d:{f:d,r:function(){throw Error(r(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(v,g,D){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:w==null?null:""+w,children:v,containerInfo:g,implementation:D}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,et.createPortal=function(v,g){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return h(v,g,null,D)},et.flushSync=function(v){var g=y.T,D=o.p;try{if(y.T=null,o.p=2,v)return v()}finally{y.T=g,o.p=D,o.d.f()}},et.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(v,g))},et.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},et.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var D=g.as,w=j(D,g.crossOrigin),U=typeof g.integrity=="string"?g.integrity:void 0,G=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;D==="style"?o.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:w,integrity:U,fetchPriority:G}):D==="script"&&o.d.X(v,{crossOrigin:w,integrity:U,fetchPriority:G,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},et.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var D=j(g.as,g.crossOrigin);o.d.M(v,{crossOrigin:D,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(v)},et.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var D=g.as,w=j(D,g.crossOrigin);o.d.L(v,D,{crossOrigin:w,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},et.preloadModule=function(v,g){if(typeof v=="string")if(g){var D=j(g.as,g.crossOrigin);o.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:D,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(v)},et.requestFormReset=function(v){o.d.r(v)},et.unstable_batchedUpdates=function(v,g){return v(g)},et.useFormState=function(v,g,D){return y.H.useFormState(v,g,D)},et.useFormStatus=function(){return y.H.useHostTransitionStatus()},et.version="19.2.3",et}var Sh;function Gy(){if(Sh)return Xs.exports;Sh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Xs.exports=Yy(),Xs.exports}var jh;function Xy(){if(jh)return qn;jh=1;var i=qy(),r=ao(),d=Gy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(h(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return v(n),e;if(u===a)return v(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,f=n.child;f;){if(f===l){c=!0,l=n,a=u;break}if(f===a){c=!0,a=n,l=u;break}f=f.sibling}if(!c){for(f=u.child;f;){if(f===l){c=!0,l=u,a=n;break}if(f===a){c=!0,a=u,l=n;break}f=f.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function D(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=D(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,U=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=Ee&&e[Ee]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case Q:return"Profiler";case Y:return"StrictMode";case te:return"Suspense";case fe:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case F:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ge=Array.isArray,T=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},Se=[],je=-1;function b(e){return{current:e}}function M(e){0>je||(e.current=Se[je],Se[je]=null,je--)}function q(e,t){je++,Se[je]=e.current,e.current=t}var V=b(null),le=b(null),L=b(null),ee=b(null);function ge(e,t){switch(q(L,t),q(le,e),q(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Bd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(V),q(V,e)}function _e(){M(V),M(le),M(L)}function Za(e){e.memoizedState!==null&&q(ee,e);var t=V.current,l=Bd(t,e.type);t!==l&&(q(le,e),q(V,l))}function kn(e){le.current===e&&(M(V),M(le)),ee.current===e&&(M(ee),Mn._currentValue=K)}var xi,fo;function Ul(e){if(xi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);xi=t&&t[1]||"",fo=-1<l.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+xi+e+fo}var bi=!1;function Si(e,t){if(!e||bi)return"";bi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(A){var C=A}Reflect.construct(e,[],O)}else{try{O.call()}catch(A){C=A}e.call(O.prototype)}}else{try{throw Error()}catch(A){C=A}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(A){if(A&&C&&typeof A.stack=="string")return[A.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],f=u[1];if(c&&f){var p=c.split(`
4
- `),E=f.split(`
5
- `);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===E.length)for(a=p.length-1,n=E.length-1;1<=a&&0<=n&&p[a]!==E[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==E[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==E[n]){var _=`
6
- `+p[a].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=a&&0<=n);break}}}finally{bi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ul(l):""}function fm(e,t){switch(e.tag){case 26:case 27:case 5:return Ul(e.type);case 16:return Ul("Lazy");case 13:return e.child!==t&&t!==null?Ul("Suspense Fallback"):Ul("Suspense");case 19:return Ul("SuspenseList");case 0:case 15:return Si(e.type,!1);case 11:return Si(e.type.render,!1);case 1:return Si(e.type,!0);case 31:return Ul("Activity");default:return""}}function ho(e){try{var t="",l=null;do t+=fm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var ji=Object.prototype.hasOwnProperty,zi=i.unstable_scheduleCallback,Ni=i.unstable_cancelCallback,dm=i.unstable_shouldYield,hm=i.unstable_requestPaint,ot=i.unstable_now,mm=i.unstable_getCurrentPriorityLevel,mo=i.unstable_ImmediatePriority,yo=i.unstable_UserBlockingPriority,Jn=i.unstable_NormalPriority,ym=i.unstable_LowPriority,po=i.unstable_IdlePriority,pm=i.log,gm=i.unstable_setDisableYieldValue,Va=null,rt=null;function rl(e){if(typeof pm=="function"&&gm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Va,e)}catch{}}var ft=Math.clz32?Math.clz32:bm,vm=Math.log,xm=Math.LN2;function bm(e){return e>>>=0,e===0?32:31-(vm(e)/xm|0)|0}var Fn=256,$n=262144,Wn=4194304;function Ll(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function In(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Ll(a):(c&=f,c!==0?n=Ll(c):l||(l=f&~e,l!==0&&(n=Ll(l))))):(f=a&~u,f!==0?n=Ll(f):c!==0?n=Ll(c):l||(l=a&~e,l!==0&&(n=Ll(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Sm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function go(){var e=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),e}function Ei(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jm(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,p=e.expirationTimes,E=e.hiddenUpdates;for(l=c&~l;0<l;){var _=31-ft(l),O=1<<_;f[_]=0,p[_]=-1;var C=E[_];if(C!==null)for(E[_]=null,_=0;_<C.length;_++){var A=C[_];A!==null&&(A.lane&=-536870913)}l&=~O}a!==0&&vo(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function vo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ft(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function xo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ft(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function bo(e,t){var l=t&-t;return l=(l&42)!==0?1:Ci(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ci(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function So(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:ch(e.type))}function jo(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var fl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+fl,lt="__reactProps$"+fl,ta="__reactContainer$"+fl,Ai="__reactEvents$"+fl,zm="__reactListeners$"+fl,Nm="__reactHandles$"+fl,zo="__reactResources$"+fl,Ja="__reactMarker$"+fl;function Ti(e){delete e[Fe],delete e[lt],delete e[Ai],delete e[zm],delete e[Nm]}function la(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ta]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Vd(e);e!==null;){if(l=e[Fe])return l;e=Vd(e)}return t}e=l,l=e.parentNode}return null}function aa(e){if(e=e[Fe]||e[ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Fa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function na(e){var t=e[zo];return t||(t=e[zo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[Ja]=!0}var No=new Set,Eo={};function Hl(e,t){ua(e,t),ua(e+"Capture",t)}function ua(e,t){for(Eo[e]=t,e=0;e<t.length;e++)No.add(t[e])}var Em=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]*$"),Co={},wo={};function Cm(e){return ji.call(wo,e)?!0:ji.call(Co,e)?!1:Em.test(e)?wo[e]=!0:(Co[e]=!0,!1)}function Pn(e,t,l){if(Cm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function eu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Xt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ao(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Di(e){if(!e._valueTracker){var t=Ao(e)?"checked":"value";e._valueTracker=wm(e,t,""+e[t])}}function To(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ao(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function tu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Am=/[\n"\\]/g;function jt(e){return e.replace(Am,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _i(e,t,l,a,n,u,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ri(e,c,St(t)):l!=null?Ri(e,c,St(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+St(f):e.removeAttribute("name")}function Do(e,t,l,a,n,u,c,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Di(e);return}l=l!=null?""+St(l):"",t=t!=null?""+St(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Di(e)}function Ri(e,t,l){t==="number"&&tu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ia(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+St(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function _o(e,t,l){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+St(l):""}function Ro(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ge(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=St(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Di(e)}function ca(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Tm=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 Oo(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Tm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Mo(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Oo(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Oo(e,u,t[u])}function Oi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dm=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"]]),_m=/^[\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 lu(e){return _m.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qt(){}var Mi=null;function Ui(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,oa=null;function Uo(e){var t=aa(e);if(t&&(e=t.stateNode)){var l=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_i(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[lt]||null;if(!n)throw Error(o(90));_i(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&To(a)}break e;case"textarea":_o(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ia(e,!!l.multiple,t,!1)}}}var Li=!1;function Lo(e,t,l){if(Li)return e(t,l);Li=!0;try{var a=e(t);return a}finally{if(Li=!1,(sa!==null||oa!==null)&&(Qu(),sa&&(t=sa,e=oa,oa=sa=null,Uo(t),e)))for(t=0;t<e.length;t++)Uo(e[t])}}function $a(e,t){var l=e.stateNode;if(l===null)return null;var a=l[lt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(Zt)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{Hi=!1}var dl=null,Bi=null,au=null;function Ho(){if(au)return au;var e,t=Bi,l=t.length,a,n="value"in dl?dl.value:dl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return au=n.slice(e,1<a?1-a:void 0)}function nu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function uu(){return!0}function Bo(){return!1}function at(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?uu:Bo,this.isPropagationStopped=Bo,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=uu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uu)},persist:function(){},isPersistent:uu}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=at(Bl),Ia=w({},Bl,{view:0,detail:0}),Rm=at(Ia),qi,Yi,Pa,cu=w({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pa&&(Pa&&e.type==="mousemove"?(qi=e.screenX-Pa.screenX,Yi=e.screenY-Pa.screenY):Yi=qi=0,Pa=e),qi)},movementY:function(e){return"movementY"in e?e.movementY:Yi}}),qo=at(cu),Om=w({},cu,{dataTransfer:0}),Mm=at(Om),Um=w({},Ia,{relatedTarget:0}),Gi=at(Um),Lm=w({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hm=at(Lm),Bm=w({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qm=at(Bm),Ym=w({},Bl,{data:0}),Yo=at(Ym),Gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xm={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"},Qm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qm[e])?!!t[e]:!1}function Xi(){return Zm}var Vm=w({},Ia,{key:function(e){if(e.key){var t=Gm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Km=at(Vm),km=w({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Go=at(km),Jm=w({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),Fm=at(Jm),$m=w({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wm=at($m),Im=w({},cu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pm=at(Im),e0=w({},Bl,{newState:0,oldState:0}),t0=at(e0),l0=[9,13,27,32],Qi=Zt&&"CompositionEvent"in window,en=null;Zt&&"documentMode"in document&&(en=document.documentMode);var a0=Zt&&"TextEvent"in window&&!en,Xo=Zt&&(!Qi||en&&8<en&&11>=en),Qo=" ",Zo=!1;function Vo(e,t){switch(e){case"keyup":return l0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function n0(e,t){switch(e){case"compositionend":return Ko(t);case"keypress":return t.which!==32?null:(Zo=!0,Qo);case"textInput":return e=t.data,e===Qo&&Zo?null:e;default:return null}}function u0(e,t){if(ra)return e==="compositionend"||!Qi&&Vo(e,t)?(e=Ho(),au=Bi=dl=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xo&&t.locale!=="ko"?null:t.data;default:return null}}var i0={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 ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!i0[e.type]:t==="textarea"}function Jo(e,t,l,a){sa?oa?oa.push(a):oa=[a]:sa=a,t=$u(t,"onChange"),0<t.length&&(l=new iu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var tn=null,ln=null;function c0(e){_d(e,0)}function su(e){var t=Fa(e);if(To(t))return e}function Fo(e,t){if(e==="change")return t}var $o=!1;if(Zt){var Zi;if(Zt){var Vi="oninput"in document;if(!Vi){var Wo=document.createElement("div");Wo.setAttribute("oninput","return;"),Vi=typeof Wo.oninput=="function"}Zi=Vi}else Zi=!1;$o=Zi&&(!document.documentMode||9<document.documentMode)}function Io(){tn&&(tn.detachEvent("onpropertychange",Po),ln=tn=null)}function Po(e){if(e.propertyName==="value"&&su(ln)){var t=[];Jo(t,ln,e,Ui(e)),Lo(c0,t)}}function s0(e,t,l){e==="focusin"?(Io(),tn=t,ln=l,tn.attachEvent("onpropertychange",Po)):e==="focusout"&&Io()}function o0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return su(ln)}function r0(e,t){if(e==="click")return su(t)}function f0(e,t){if(e==="input"||e==="change")return su(t)}function d0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:d0;function an(e,t){if(dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ji.call(t,n)||!dt(e[n],t[n]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var l=er(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=er(l)}}function lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=tu(e.document)}return t}function Ki(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var h0=Zt&&"documentMode"in document&&11>=document.documentMode,fa=null,ki=null,nn=null,Ji=!1;function nr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ji||fa==null||fa!==tu(a)||(a=fa,"selectionStart"in a&&Ki(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}),nn&&an(nn,a)||(nn=a,a=$u(ki,"onSelect"),0<a.length&&(t=new iu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var da={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Fi={},ur={};Zt&&(ur=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function Yl(e){if(Fi[e])return Fi[e];if(!da[e])return e;var t=da[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ur)return Fi[e]=t[l];return e}var ir=Yl("animationend"),cr=Yl("animationiteration"),sr=Yl("animationstart"),m0=Yl("transitionrun"),y0=Yl("transitionstart"),p0=Yl("transitioncancel"),or=Yl("transitionend"),rr=new Map,$i="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(" ");$i.push("scrollEnd");function Rt(e,t){rr.set(e,t),Hl(t,[e])}var ou=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},zt=[],ha=0,Wi=0;function ru(){for(var e=ha,t=Wi=ha=0;t<e;){var l=zt[t];zt[t++]=null;var a=zt[t];zt[t++]=null;var n=zt[t];zt[t++]=null;var u=zt[t];if(zt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&fr(l,n,u)}}function fu(e,t,l,a){zt[ha++]=e,zt[ha++]=t,zt[ha++]=l,zt[ha++]=a,Wi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ii(e,t,l,a){return fu(e,t,l,a),du(e)}function Gl(e,t){return fu(e,null,null,t),du(e)}function fr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ft(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function du(e){if(50<wn)throw wn=0,cs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function g0(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,l,a){return new g0(e,t,l,a)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vt(e,t){var l=e.alternate;return l===null?(l=ht(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function dr(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Pi(e)&&(c=1);else if(typeof e=="string")c=jy(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=ht(31,l,t,n),e.elementType=pe,e.lanes=u,e;case H:return Xl(l.children,n,u,t);case Y:c=8,n|=24;break;case Q:return e=ht(12,l,t,n|2),e.elementType=Q,e.lanes=u,e;case te:return e=ht(13,l,t,n),e.elementType=te,e.lanes=u,e;case fe:return e=ht(19,l,t,n),e.elementType=fe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:c=10;break e;case X:c=9;break e;case ne:c=11;break e;case $:c=14;break e;case ye:c=16,a=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ht(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Xl(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function ec(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function hr(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function tc(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mr=new WeakMap;function Nt(e,t){if(typeof e=="object"&&e!==null){var l=mr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ho(t)},mr.set(e,t),t)}return{value:e,source:t,stack:ho(t)}}var ya=[],pa=0,mu=null,un=0,Et=[],Ct=0,hl=null,Lt=1,Ht="";function Kt(e,t){ya[pa++]=un,ya[pa++]=mu,mu=e,un=t}function yr(e,t,l){Et[Ct++]=Lt,Et[Ct++]=Ht,Et[Ct++]=hl,hl=e;var a=Lt;e=Ht;var n=32-ft(a)-1;a&=~(1<<n),l+=1;var u=32-ft(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Lt=1<<32-ft(t)+n|l<<n|a,Ht=u+e}else Lt=1<<u|l<<n|a,Ht=e}function lc(e){e.return!==null&&(Kt(e,1),yr(e,1,0))}function ac(e){for(;e===mu;)mu=ya[--pa],ya[pa]=null,un=ya[--pa],ya[pa]=null;for(;e===hl;)hl=Et[--Ct],Et[Ct]=null,Ht=Et[--Ct],Et[Ct]=null,Lt=Et[--Ct],Et[Ct]=null}function pr(e,t){Et[Ct++]=Lt,Et[Ct++]=Ht,Et[Ct++]=hl,Lt=t.id,Ht=t.overflow,hl=e}var $e=null,Re=null,me=!1,ml=null,wt=!1,nc=Error(o(519));function yl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(Nt(t,e)),nc}function gr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[lt]=a,l){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(l=0;l<Tn.length;l++)re(Tn[l],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),Do(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),Ro(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Ud(t.textContent,l)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=Qt),t=!0):t=!1,t||yl(e,!0)}function vr(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:$e=$e.return}}function ga(e){if(e!==$e)return!1;if(!me)return vr(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||js(e.type,e.memoizedProps)),l=!l),l&&Re&&yl(e),vr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Re=Zd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Re=Zd(e)}else t===27?(t=Re,Tl(e.type)?(e=ws,ws=null,Re=e):Re=t):Re=$e?Tt(e.stateNode.nextSibling):null;return!0}function Ql(){Re=$e=null,me=!1}function uc(){var e=ml;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),ml=null),e}function cn(e){ml===null?ml=[e]:ml.push(e)}var ic=b(null),Zl=null,kt=null;function pl(e,t,l){q(ic,t._currentValue),t._currentValue=l}function Jt(e){e._currentValue=ic.current,M(ic)}function cc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function sc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var f=u;u=n;for(var p=0;p<t.length;p++)if(f.context===t[p]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),cc(u.return,l,e),a||(c=null);break e}u=f.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),cc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function va(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var f=n.type;dt(n.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(n===ee.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&sc(t,e,l,a),t.flags|=262144}function yu(e){for(e=e.firstContext;e!==null;){if(!dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Zl=e,kt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return xr(Zl,e)}function pu(e,t){return Zl===null&&Vl(e),xr(e,t)}function xr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},kt===null){if(e===null)throw Error(o(308));kt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kt=kt.next=t;return l}var v0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},x0=i.unstable_scheduleCallback,b0=i.unstable_NormalPriority,Xe={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new v0,data:new Map,refCount:0}}function sn(e){e.refCount--,e.refCount===0&&x0(b0,function(){e.controller.abort()})}var on=null,rc=0,xa=0,ba=null;function S0(e,t){if(on===null){var l=on=[];rc=0,xa=hs(),ba={status:"pending",value:void 0,then:function(a){l.push(a)}}}return rc++,t.then(br,br),t}function br(){if(--rc===0&&on!==null){ba!==null&&(ba.status="fulfilled");var e=on;on=null,xa=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function j0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Sr=T.S;T.S=function(e,t){ud=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&S0(e,t),Sr!==null&&Sr(e,t)};var Kl=b(null);function fc(){var e=Kl.current;return e!==null?e:Te.pooledCache}function gu(e,t){t===null?q(Kl,Kl.current):q(Kl,t.pool)}function jr(){var e=fc();return e===null?null:{parent:Xe._currentValue,pool:e}}var Sa=Error(o(460)),dc=Error(o(474)),vu=Error(o(542)),xu={then:function(){}};function zr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Qt,Qt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cr(e),e;default:if(typeof t.status=="string")t.then(Qt,Qt);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cr(e),e}throw Jl=t,Sa}}function kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Jl=l,Sa):l}}var Jl=null;function Er(){if(Jl===null)throw Error(o(459));var e=Jl;return Jl=null,e}function Cr(e){if(e===Sa||e===vu)throw Error(o(483))}var ja=null,rn=0;function bu(e){var t=rn;return rn+=1,ja===null&&(ja=[]),Nr(ja,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Su(e,t){throw t.$$typeof===U?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wr(e){function t(z,x){if(e){var N=z.deletions;N===null?(z.deletions=[x],z.flags|=16):N.push(x)}}function l(z,x){if(!e)return null;for(;x!==null;)t(z,x),x=x.sibling;return null}function a(z){for(var x=new Map;z!==null;)z.key!==null?x.set(z.key,z):x.set(z.index,z),z=z.sibling;return x}function n(z,x){return z=Vt(z,x),z.index=0,z.sibling=null,z}function u(z,x,N){return z.index=N,e?(N=z.alternate,N!==null?(N=N.index,N<x?(z.flags|=67108866,x):N):(z.flags|=67108866,x)):(z.flags|=1048576,x)}function c(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function f(z,x,N,R){return x===null||x.tag!==6?(x=ec(N,z.mode,R),x.return=z,x):(x=n(x,N),x.return=z,x)}function p(z,x,N,R){var I=N.type;return I===H?_(z,x,N.props.children,R,N.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ye&&kl(I)===x.type)?(x=n(x,N.props),fn(x,N),x.return=z,x):(x=hu(N.type,N.key,N.props,null,z.mode,R),fn(x,N),x.return=z,x)}function E(z,x,N,R){return x===null||x.tag!==4||x.stateNode.containerInfo!==N.containerInfo||x.stateNode.implementation!==N.implementation?(x=tc(N,z.mode,R),x.return=z,x):(x=n(x,N.children||[]),x.return=z,x)}function _(z,x,N,R,I){return x===null||x.tag!==7?(x=Xl(N,z.mode,R,I),x.return=z,x):(x=n(x,N),x.return=z,x)}function O(z,x,N){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=ec(""+x,z.mode,N),x.return=z,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case G:return N=hu(x.type,x.key,x.props,null,z.mode,N),fn(N,x),N.return=z,N;case k:return x=tc(x,z.mode,N),x.return=z,x;case ye:return x=kl(x),O(z,x,N)}if(Ge(x)||W(x))return x=Xl(x,z.mode,N,null),x.return=z,x;if(typeof x.then=="function")return O(z,bu(x),N);if(x.$$typeof===F)return O(z,pu(z,x),N);Su(z,x)}return null}function C(z,x,N,R){var I=x!==null?x.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return I!==null?null:f(z,x,""+N,R);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case G:return N.key===I?p(z,x,N,R):null;case k:return N.key===I?E(z,x,N,R):null;case ye:return N=kl(N),C(z,x,N,R)}if(Ge(N)||W(N))return I!==null?null:_(z,x,N,R,null);if(typeof N.then=="function")return C(z,x,bu(N),R);if(N.$$typeof===F)return C(z,x,pu(z,N),R);Su(z,N)}return null}function A(z,x,N,R,I){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return z=z.get(N)||null,f(x,z,""+R,I);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case G:return z=z.get(R.key===null?N:R.key)||null,p(x,z,R,I);case k:return z=z.get(R.key===null?N:R.key)||null,E(x,z,R,I);case ye:return R=kl(R),A(z,x,N,R,I)}if(Ge(R)||W(R))return z=z.get(N)||null,_(x,z,R,I,null);if(typeof R.then=="function")return A(z,x,N,bu(R),I);if(R.$$typeof===F)return A(z,x,N,pu(x,R),I);Su(x,R)}return null}function Z(z,x,N,R){for(var I=null,ve=null,J=x,ie=x=0,he=null;J!==null&&ie<N.length;ie++){J.index>ie?(he=J,J=null):he=J.sibling;var xe=C(z,J,N[ie],R);if(xe===null){J===null&&(J=he);break}e&&J&&xe.alternate===null&&t(z,J),x=u(xe,x,ie),ve===null?I=xe:ve.sibling=xe,ve=xe,J=he}if(ie===N.length)return l(z,J),me&&Kt(z,ie),I;if(J===null){for(;ie<N.length;ie++)J=O(z,N[ie],R),J!==null&&(x=u(J,x,ie),ve===null?I=J:ve.sibling=J,ve=J);return me&&Kt(z,ie),I}for(J=a(J);ie<N.length;ie++)he=A(J,z,ie,N[ie],R),he!==null&&(e&&he.alternate!==null&&J.delete(he.key===null?ie:he.key),x=u(he,x,ie),ve===null?I=he:ve.sibling=he,ve=he);return e&&J.forEach(function(Ml){return t(z,Ml)}),me&&Kt(z,ie),I}function P(z,x,N,R){if(N==null)throw Error(o(151));for(var I=null,ve=null,J=x,ie=x=0,he=null,xe=N.next();J!==null&&!xe.done;ie++,xe=N.next()){J.index>ie?(he=J,J=null):he=J.sibling;var Ml=C(z,J,xe.value,R);if(Ml===null){J===null&&(J=he);break}e&&J&&Ml.alternate===null&&t(z,J),x=u(Ml,x,ie),ve===null?I=Ml:ve.sibling=Ml,ve=Ml,J=he}if(xe.done)return l(z,J),me&&Kt(z,ie),I;if(J===null){for(;!xe.done;ie++,xe=N.next())xe=O(z,xe.value,R),xe!==null&&(x=u(xe,x,ie),ve===null?I=xe:ve.sibling=xe,ve=xe);return me&&Kt(z,ie),I}for(J=a(J);!xe.done;ie++,xe=N.next())xe=A(J,z,ie,xe.value,R),xe!==null&&(e&&xe.alternate!==null&&J.delete(xe.key===null?ie:xe.key),x=u(xe,x,ie),ve===null?I=xe:ve.sibling=xe,ve=xe);return e&&J.forEach(function(Oy){return t(z,Oy)}),me&&Kt(z,ie),I}function Ae(z,x,N,R){if(typeof N=="object"&&N!==null&&N.type===H&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case G:e:{for(var I=N.key;x!==null;){if(x.key===I){if(I=N.type,I===H){if(x.tag===7){l(z,x.sibling),R=n(x,N.props.children),R.return=z,z=R;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ye&&kl(I)===x.type){l(z,x.sibling),R=n(x,N.props),fn(R,N),R.return=z,z=R;break e}l(z,x);break}else t(z,x);x=x.sibling}N.type===H?(R=Xl(N.props.children,z.mode,R,N.key),R.return=z,z=R):(R=hu(N.type,N.key,N.props,null,z.mode,R),fn(R,N),R.return=z,z=R)}return c(z);case k:e:{for(I=N.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){l(z,x.sibling),R=n(x,N.children||[]),R.return=z,z=R;break e}else{l(z,x);break}else t(z,x);x=x.sibling}R=tc(N,z.mode,R),R.return=z,z=R}return c(z);case ye:return N=kl(N),Ae(z,x,N,R)}if(Ge(N))return Z(z,x,N,R);if(W(N)){if(I=W(N),typeof I!="function")throw Error(o(150));return N=I.call(N),P(z,x,N,R)}if(typeof N.then=="function")return Ae(z,x,bu(N),R);if(N.$$typeof===F)return Ae(z,x,pu(z,N),R);Su(z,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,x!==null&&x.tag===6?(l(z,x.sibling),R=n(x,N),R.return=z,z=R):(l(z,x),R=ec(N,z.mode,R),R.return=z,z=R),c(z)):l(z,x)}return function(z,x,N,R){try{rn=0;var I=Ae(z,x,N,R);return ja=null,I}catch(J){if(J===Sa||J===vu)throw J;var ve=ht(29,J,null,z.mode);return ve.lanes=R,ve.return=z,ve}}}var Fl=wr(!0),Ar=wr(!1),gl=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(be&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=du(e),fr(e,null,l),t}return fu(e,a,t,l),du(e)}function dn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,xo(e,l)}}function yc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var pc=!1;function hn(){if(pc){var e=ba;if(e!==null)throw e}}function mn(e,t,l,a){pc=!1;var n=e.updateQueue;gl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var p=f,E=p.next;p.next=null,c===null?u=E:c.next=E,c=p;var _=e.alternate;_!==null&&(_=_.updateQueue,f=_.lastBaseUpdate,f!==c&&(f===null?_.firstBaseUpdate=E:f.next=E,_.lastBaseUpdate=p))}if(u!==null){var O=n.baseState;c=0,_=E=p=null,f=u;do{var C=f.lane&-536870913,A=C!==f.lane;if(A?(de&C)===C:(a&C)===C){C!==0&&C===xa&&(pc=!0),_!==null&&(_=_.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var Z=e,P=f;C=t;var Ae=l;switch(P.tag){case 1:if(Z=P.payload,typeof Z=="function"){O=Z.call(Ae,O,C);break e}O=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=P.payload,C=typeof Z=="function"?Z.call(Ae,O,C):Z,C==null)break e;O=w({},O,C);break e;case 2:gl=!0}}C=f.callback,C!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[C]:A.push(C))}else A={lane:C,tag:f.tag,payload:f.payload,callback:f.callback,next:null},_===null?(E=_=A,p=O):_=_.next=A,c|=C;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;A=f,f=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);_===null&&(p=O),n.baseState=p,n.firstBaseUpdate=E,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),Nl|=c,e.lanes=c,e.memoizedState=O}}function Tr(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Dr(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tr(l[e],t)}var za=b(null),ju=b(0);function _r(e,t){e=al,q(ju,e),q(za,t),al=e|t.baseLanes}function gc(){q(ju,al),q(za,za.current)}function vc(){al=ju.current,M(za),M(ju)}var mt=b(null),At=null;function bl(e){var t=e.alternate;q(qe,qe.current&1),q(mt,e),At===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(At=e)}function xc(e){q(qe,qe.current),q(mt,e),At===null&&(At=e)}function Rr(e){e.tag===22?(q(qe,qe.current),q(mt,e),At===null&&(At=e)):Sl()}function Sl(){q(qe,qe.current),q(mt,mt.current)}function yt(e){M(mt),At===e&&(At=null),M(qe)}var qe=b(0);function zu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Es(l)||Cs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ft=0,ue=null,Ce=null,Qe=null,Nu=!1,Na=!1,$l=!1,Eu=0,yn=0,Ea=null,z0=0;function Le(){throw Error(o(321))}function bc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!dt(e[l],t[l]))return!1;return!0}function Sc(e,t,l,a,n,u){return Ft=u,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?pf:Lc,$l=!1,u=l(a,n),$l=!1,Na&&(u=Mr(t,l,a,n)),Or(e),u}function Or(e){T.H=vn;var t=Ce!==null&&Ce.next!==null;if(Ft=0,Qe=Ce=ue=null,Nu=!1,yn=0,Ea=null,t)throw Error(o(300));e===null||Ze||(e=e.dependencies,e!==null&&yu(e)&&(Ze=!0))}function Mr(e,t,l,a){ue=e;var n=0;do{if(Na&&(Ea=null),yn=0,Na=!1,25<=n)throw Error(o(301));if(n+=1,Qe=Ce=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=gf,u=t(l,a)}while(Na);return u}function N0(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ue.flags|=1024),t}function jc(){var e=Eu!==0;return Eu=0,e}function zc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Nc(e){if(Nu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Nu=!1}Ft=0,Qe=Ce=ue=null,Na=!1,yn=Eu=0,Ea=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ye(){if(Ce===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Qe===null?ue.memoizedState:Qe.next;if(t!==null)Qe=t,Ce=e;else{if(e===null)throw ue.alternate===null?Error(o(467)):Error(o(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Qe===null?ue.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=yn;return yn+=1,Ea===null&&(Ea=[]),e=Nr(Ea,e,t),t=ue,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?pf:Lc),e}function wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===F)return We(e)}throw Error(o(438,String(e)))}function Ec(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Cu(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ce;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Au(e){var t=Ye();return Cc(t,Ce,e)}function Cc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var f=c=null,p=null,E=t,_=!1;do{var O=E.lane&-536870913;if(O!==E.lane?(de&O)===O:(Ft&O)===O){var C=E.revertLane;if(C===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),O===xa&&(_=!0);else if((Ft&C)===C){E=E.next,C===xa&&(_=!0);continue}else O={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},p===null?(f=p=O,c=u):p=p.next=O,ue.lanes|=C,Nl|=C;O=E.action,$l&&l(u,O),u=E.hasEagerState?E.eagerState:l(u,O)}else C={lane:O,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},p===null?(f=p=C,c=u):p=p.next=C,ue.lanes|=O,Nl|=O;E=E.next}while(E!==null&&E!==t);if(p===null?c=u:p.next=f,!dt(u,e.memoizedState)&&(Ze=!0,_&&(l=ba,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wc(e){var t=Ye(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);dt(u,t.memoizedState)||(Ze=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Ur(e,t,l){var a=ue,n=Ye(),u=me;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!dt((Ce||n).memoizedState,l);if(c&&(n.memoizedState=l,Ze=!0),n=n.queue,Dc(Br.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Qe!==null&&Qe.memoizedState.tag&1){if(a.flags|=2048,Ca(9,{destroy:void 0},Hr.bind(null,a,n,l,t),null),Te===null)throw Error(o(349));u||(Ft&127)!==0||Lr(a,t,l)}return l}function Lr(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Cu(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Hr(e,t,l,a){t.value=l,t.getSnapshot=a,qr(t)&&Yr(e)}function Br(e,t,l){return l(function(){qr(t)&&Yr(e)})}function qr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!dt(e,l)}catch{return!0}}function Yr(e){var t=Gl(e,2);t!==null&&st(t,e,2)}function Ac(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),$l){rl(!0);try{l()}finally{rl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:e},t}function Gr(e,t,l,a){return e.baseState=l,Cc(e,Ce,typeof a=="function"?a:$t)}function E0(e,t,l,a,n){if(_u(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};T.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Xr(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Xr(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=T.T,c={};T.T=c;try{var f=l(n,a),p=T.S;p!==null&&p(c,f),Qr(e,t,f)}catch(E){Tc(e,t,E)}finally{u!==null&&c.types!==null&&(u.types=c.types),T.T=u}}else try{u=l(n,a),Qr(e,t,u)}catch(E){Tc(e,t,E)}}function Qr(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zr(e,t,a)},function(a){return Tc(e,t,a)}):Zr(e,t,l)}function Zr(e,t,l){t.status="fulfilled",t.value=l,Vr(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Xr(e,l)))}function Tc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Vr(t),t=t.next;while(t!==a)}e.action=null}function Vr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kr(e,t){return t}function kr(e,t){if(me){var l=Te.formState;if(l!==null){e:{var a=ue;if(me){if(Re){t:{for(var n=Re,u=wt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Tt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Re=Tt(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:t},l.queue=a,l=hf.bind(null,ue,a),a.dispatch=l,a=Ac(!1),u=Uc.bind(null,ue,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=E0.bind(null,ue,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Jr(e){var t=Ye();return Fr(t,Ce,e)}function Fr(e,t,l){if(t=Cc(e,t,Kr)[0],e=Au($t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(c){throw c===Sa?vu:c}else a=t;t=Ye();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Ca(9,{destroy:void 0},C0.bind(null,n,l),null)),[a,u,e]}function C0(e,t){e.action=t}function $r(e){var t=Ye(),l=Ce;if(l!==null)return Fr(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ca(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Cu(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Wr(){return Ye().memoizedState}function Tu(e,t,l,a){var n=tt();ue.flags|=e,n.memoizedState=Ca(1|t,{destroy:void 0},l,a===void 0?null:a)}function Du(e,t,l,a){var n=Ye();a=a===void 0?null:a;var u=n.memoizedState.inst;Ce!==null&&a!==null&&bc(a,Ce.memoizedState.deps)?n.memoizedState=Ca(t,u,l,a):(ue.flags|=e,n.memoizedState=Ca(1|t,u,l,a))}function Ir(e,t){Tu(8390656,8,e,t)}function Dc(e,t){Du(2048,8,e,t)}function w0(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=Cu(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Pr(e){var t=Ye().memoizedState;return w0({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ef(e,t){return Du(4,2,e,t)}function tf(e,t){return Du(4,4,e,t)}function lf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function af(e,t,l){l=l!=null?l.concat([e]):null,Du(4,4,lf.bind(null,t,e),l)}function _c(){}function nf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&bc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function uf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&bc(t,a[1]))return a[0];if(a=e(),$l){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a}function Rc(e,t,l){return l===void 0||(Ft&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=cd(),ue.lanes|=e,Nl|=e,l)}function cf(e,t,l,a){return dt(l,t)?l:za.current!==null?(e=Rc(e,l,a),dt(e,t)||(Ze=!0),e):(Ft&42)===0||(Ft&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=l):(e=cd(),ue.lanes|=e,Nl|=e,t)}function sf(e,t,l,a,n){var u=B.p;B.p=u!==0&&8>u?u:8;var c=T.T,f={};T.T=f,Uc(e,!1,t,l);try{var p=n(),E=T.S;if(E!==null&&E(f,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var _=j0(p,a);gn(e,t,_,vt(e))}else gn(e,t,a,vt(e))}catch(O){gn(e,t,{then:function(){},status:"rejected",reason:O},vt())}finally{B.p=u,c!==null&&f.types!==null&&(c.types=f.types),T.T=c}}function A0(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=of(e).queue;sf(e,n,t,K,l===null?A0:function(){return rf(e),l(a)})}function of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rf(e){var t=of(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},vt())}function Mc(){return We(Mn)}function ff(){return Ye().memoizedState}function df(){return Ye().memoizedState}function T0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=vl(l);var a=xl(t,e,l);a!==null&&(st(a,t,l),dn(a,t,l)),t={cache:oc()},e.payload=t;return}t=t.return}}function D0(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_u(e)?mf(t,l):(l=Ii(e,t,l,a),l!==null&&(st(l,e,a),yf(l,t,a)))}function hf(e,t,l){var a=vt();gn(e,t,l,a)}function gn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_u(e))mf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,f=u(c,l);if(n.hasEagerState=!0,n.eagerState=f,dt(f,c))return fu(e,t,n,0),Te===null&&ru(),!1}catch{}if(l=Ii(e,t,n,a),l!==null)return st(l,e,a),yf(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:hs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_u(e)){if(t)throw Error(o(479))}else t=Ii(e,l,a,2),t!==null&&st(t,e,2)}function _u(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function mf(e,t){Na=Nu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function yf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,xo(e,l)}}var vn={readContext:We,use:wu,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};vn.useEffectEvent=Le;var pf={readContext:We,use:wu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:Ir,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Tu(4194308,4,lf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Tu(4194308,4,e,t)},useInsertionEffect:function(e,t){Tu(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if($l){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if($l){rl(!0);try{l(t)}finally{rl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=D0.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=hf.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_c,useDeferredValue:function(e,t){var l=tt();return Rc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=sf.bind(null,ue,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=tt();if(me){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Te===null)throw Error(o(349));(de&127)!==0||Lr(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Ir(Br.bind(null,a,u,e),[e]),a.flags|=2048,Ca(9,{destroy:void 0},Hr.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=Te.identifierPrefix;if(me){var l=Ht,a=Lt;l=(a&~(1<<32-ft(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Eu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=z0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mc,useFormState:kr,useActionState:kr,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Uc.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ec,useCacheRefresh:function(){return tt().memoizedState=T0.bind(null,ue)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((be&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Lc={readContext:We,use:wu,useCallback:nf,useContext:We,useEffect:Dc,useImperativeHandle:af,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:uf,useReducer:Au,useRef:Wr,useState:function(){return Au($t)},useDebugValue:_c,useDeferredValue:function(e,t){var l=Ye();return cf(l,Ce.memoizedState,e,t)},useTransition:function(){var e=Au($t)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Ur,useId:ff,useHostTransitionStatus:Mc,useFormState:Jr,useActionState:Jr,useOptimistic:function(e,t){var l=Ye();return Gr(l,Ce,e,t)},useMemoCache:Ec,useCacheRefresh:df};Lc.useEffectEvent=Pr;var gf={readContext:We,use:wu,useCallback:nf,useContext:We,useEffect:Dc,useImperativeHandle:af,useInsertionEffect:ef,useLayoutEffect:tf,useMemo:uf,useReducer:wc,useRef:Wr,useState:function(){return wc($t)},useDebugValue:_c,useDeferredValue:function(e,t){var l=Ye();return Ce===null?Rc(l,e,t):cf(l,Ce.memoizedState,e,t)},useTransition:function(){var e=wc($t)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Ur,useId:ff,useHostTransitionStatus:Mc,useFormState:$r,useActionState:$r,useOptimistic:function(e,t){var l=Ye();return Ce!==null?Gr(l,Ce,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:df};gf.useEffectEvent=Pr;function Hc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:w({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=vl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(st(t,e,a),dn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(st(t,e,a),dn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=vl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(st(t,e,l),dn(t,e,l))}};function vf(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!an(l,a)||!an(n,u):!0}function xf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Bc.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=w({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function bf(e){ou(e)}function Sf(e){console.error(e)}function jf(e){ou(e)}function Ru(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function qc(e,t,l){return l=vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ru(e,t)},l}function Nf(e){return e=vl(e),e.tag=3,e}function Ef(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){zf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){zf(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function _0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&va(t,l,n,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return At===null?Zu():l.alternate===null&&He===0&&(He=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===xu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),rs(e,a,n)),!1;case 22:return l.flags|=65536,a===xu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),rs(e,a,n)),!1}throw Error(o(435,l.tag))}return rs(e,a,n),Zu(),!1}if(me)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==nc&&(e=Error(o(422),{cause:a}),cn(Nt(e,l)))):(a!==nc&&(t=Error(o(423),{cause:a}),cn(Nt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Nt(a,l),n=qc(e.stateNode,a,n),yc(e,n),He!==4&&(He=2)),!1;var u=Error(o(520),{cause:a});if(u=Nt(u,l),Cn===null?Cn=[u]:Cn.push(u),He!==4&&(He=2),t===null)return!0;a=Nt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=qc(l.stateNode,a,e),yc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(El===null||!El.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Nf(n),Ef(n,e,l,a),yc(l,n),!1}l=l.return}while(l!==null);return!1}var Yc=Error(o(461)),Ze=!1;function Ie(e,t,l,a){t.child=e===null?Ar(t,null,l,a):Fl(t,e.child,l,a)}function Cf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return Vl(t),a=Sc(e,t,l,c,u,n),f=jc(),e!==null&&!Ze?(zc(e,t,n),Wt(e,t,n)):(me&&f&&lc(t),t.flags|=1,Ie(e,t,a,n),t.child)}function wf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Pi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Af(e,t,u,a,n)):(e=hu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Jc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:an,l(c,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Vt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Af(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(an(u,a)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=a=u,Jc(e,n))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Gc(e,t,l,a,n)}function Tf(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Df(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gu(t,u!==null?u.cachePool:null),u!==null?_r(t,u):gc(),Rr(t);else return a=t.lanes=536870912,Df(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(gu(t,u.cachePool),_r(t,u),Sl(),t.memoizedState=null):(e!==null&&gu(t,null),gc(),Sl());return Ie(e,t,n,l),t.child}function xn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Df(e,t,l,a,n){var u=fc();return u=u===null?null:{parent:Xe._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&gu(t,null),gc(),Rr(t),e!==null&&va(e,t,a,!0),t.childLanes=n,null}function Ou(e,t){return t=Uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _f(e,t,l){return Fl(t,e.child,null,l),e=Ou(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function R0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=Ou(t,a),t.lanes=536870912,xn(null,e);if(xc(t),(e=Re)?(e=Qd(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=hr(e),l.return=t,t.child=l,$e=t,Re=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Ou(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(xc(t),n)if(t.flags&256)t.flags&=-257,t=_f(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ze||va(e,t,l,!1),n=(l&e.childLanes)!==0,Ze||n){if(a=Te,a!==null&&(c=bo(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Gl(e,c),st(a,e,c),Yc;Zu(),t=_f(e,t,l)}else e=u.treeContext,Re=Tt(c.nextSibling),$e=t,me=!0,ml=null,wt=!1,e!==null&&pr(t,e),t=Ou(t,a),t.flags|=4096;return t}return e=Vt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Mu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Gc(e,t,l,a,n){return Vl(t),l=Sc(e,t,l,a,void 0,n),a=jc(),e!==null&&!Ze?(zc(e,t,n),Wt(e,t,n)):(me&&a&&lc(t),t.flags|=1,Ie(e,t,l,n),t.child)}function Rf(e,t,l,a,n,u){return Vl(t),t.updateQueue=null,l=Mr(t,a,l,n),Or(e),a=jc(),e!==null&&!Ze?(zc(e,t,u),Wt(e,t,u)):(me&&a&&lc(t),t.flags|=1,Ie(e,t,l,u),t.child)}function Of(e,t,l,a,n){if(Vl(t),t.stateNode===null){var u=ma,c=l.contextType;typeof c=="object"&&c!==null&&(u=We(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},hc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?We(c):ma,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Hc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Bc.enqueueReplaceState(u,u.state,null),mn(t,a,u,n),hn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var f=t.memoizedProps,p=Wl(l,f);u.props=p;var E=u.context,_=l.contextType;c=ma,typeof _=="object"&&_!==null&&(c=We(_));var O=l.getDerivedStateFromProps;_=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||E!==c)&&xf(t,u,a,c),gl=!1;var C=t.memoizedState;u.state=C,mn(t,a,u,n),hn(),E=t.memoizedState,f||C!==E||gl?(typeof O=="function"&&(Hc(t,l,O,a),E=t.memoizedState),(p=gl||vf(t,l,p,a,C,E,c))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=E),u.props=a,u.state=E,u.context=c,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,mc(e,t),c=t.memoizedProps,_=Wl(l,c),u.props=_,O=t.pendingProps,C=u.context,E=l.contextType,p=ma,typeof E=="object"&&E!==null&&(p=We(E)),f=l.getDerivedStateFromProps,(E=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==O||C!==p)&&xf(t,u,a,p),gl=!1,C=t.memoizedState,u.state=C,mn(t,a,u,n),hn();var A=t.memoizedState;c!==O||C!==A||gl||e!==null&&e.dependencies!==null&&yu(e.dependencies)?(typeof f=="function"&&(Hc(t,l,f,a),A=t.memoizedState),(_=gl||vf(t,l,_,a,C,A,p)||e!==null&&e.dependencies!==null&&yu(e.dependencies))?(E||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=p,a=_):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Mu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Fl(t,e.child,null,n),t.child=Fl(t,null,l,n)):Ie(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function Mf(e,t,l,a){return Ql(),t.flags|=256,Ie(e,t,l,a),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(e){return{baseLanes:e,cachePool:jr()}}function Zc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=gt),e}function Uf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?bl(t):Sl(),(e=Re)?(e=Qd(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=hr(e),l.return=t,t.child=l,$e=t,Re=null)):e=null,e===null)throw yl(t);return Cs(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Sl(),n=t.mode,f=Uu({mode:"hidden",children:f},n),a=Xl(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=Qc(l),a.childLanes=Zc(e,c,l),t.memoizedState=Xc,xn(null,a)):(bl(t),Vc(t,f))}var p=e.memoizedState;if(p!==null&&(f=p.dehydrated,f!==null)){if(u)t.flags&256?(bl(t),t.flags&=-257,t=Kc(e,t,l)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),f=a.fallback,n=t.mode,a=Uu({mode:"visible",children:a.children},n),f=Xl(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,Fl(t,e.child,null,l),a=t.child,a.memoizedState=Qc(l),a.childLanes=Zc(e,c,l),t.memoizedState=Xc,t=xn(null,a));else if(bl(t),Cs(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var E=c.dgst;c=E,a=Error(o(419)),a.stack="",a.digest=c,cn({value:a,source:null,stack:null}),t=Kc(e,t,l)}else if(Ze||va(e,t,l,!1),c=(l&e.childLanes)!==0,Ze||c){if(c=Te,c!==null&&(a=bo(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Gl(e,a),st(c,e,a),Yc;Es(f)||Zu(),t=Kc(e,t,l)}else Es(f)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Re=Tt(f.nextSibling),$e=t,me=!0,ml=null,wt=!1,e!==null&&pr(t,e),t=Vc(t,a.children),t.flags|=4096);return t}return n?(Sl(),f=a.fallback,n=t.mode,p=e.child,E=p.sibling,a=Vt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,E!==null?f=Vt(E,f):(f=Xl(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,xn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=Qc(l):(n=f.cachePool,n!==null?(p=Xe._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=jr(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Zc(e,c,l),t.memoizedState=Xc,xn(e.child,a)):(bl(t),l=e.child,e=l.sibling,l=Vt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Vc(e,t){return t=Uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uu(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function Kc(e,t,l){return Fl(t,e.child,null,l),e=Vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cc(e.return,t,l)}function kc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Hf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=qe.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,q(qe,c),Ie(e,t,a,l),a=me?un:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,l,t);else if(e.tag===19)Lf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&zu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),kc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&zu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}kc(t,!0,l,null,u,a);break;case"together":kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Nl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(va(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Vt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Vt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yu(e)))}function O0(e,t,l){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),pl(t,Xe,e.memoizedState.cache),Ql();break;case 27:case 5:Za(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Uf(e,t,l):(bl(t),e=Wt(e,t,l),e!==null?e.sibling:null);bl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(va(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Hf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),q(qe,qe.current),a)break;return null;case 22:return t.lanes=0,Tf(e,t,l,t.pendingProps);case 24:pl(t,Xe,e.memoizedState.cache)}return Wt(e,t,l)}function Bf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Jc(e,l)&&(t.flags&128)===0)return Ze=!1,O0(e,t,l);Ze=(e.flags&131072)!==0}else Ze=!1,me&&(t.flags&1048576)!==0&&yr(t,un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=kl(t.elementType),t.type=e,typeof e=="function")Pi(e)?(a=Wl(e,a),t.tag=1,t=Of(null,t,e,a,l)):(t.tag=0,t=Gc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ne){t.tag=11,t=Cf(null,t,e,a,l);break e}else if(n===$){t.tag=14,t=wf(null,t,e,a,l);break e}}throw t=De(e)||e,Error(o(306,t,""))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Wl(a,t.pendingProps),Of(e,t,a,n,l);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,mc(e,t),mn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,pl(t,Xe,a),a!==u.cache&&sc(t,[Xe],l,!0),hn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Mf(e,t,a,l);break e}else if(a!==n){n=Nt(Error(o(424)),t),cn(n),t=Mf(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Re=Tt(e.firstChild),$e=t,me=!0,ml=null,wt=!0,l=Ar(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ql(),a===n){t=Wt(e,t,l);break e}Ie(e,t,a,l)}t=t.child}return t;case 26:return Mu(e,t),e===null?(l=Fd(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=Wu(L.current).createElement(l),a[Fe]=t,a[lt]=e,Pe(a,l,e),ke(a),t.stateNode=a):t.memoizedState=Fd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Za(t),e===null&&me&&(a=t.stateNode=Kd(t.type,t.pendingProps,L.current),$e=t,wt=!0,n=Re,Tl(t.type)?(ws=n,Re=Tt(a.firstChild)):Re=n),Ie(e,t,t.pendingProps.children,l),Mu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=Re)&&(a=oy(a,t.type,t.pendingProps,wt),a!==null?(t.stateNode=a,$e=t,Re=Tt(a.firstChild),wt=!1,n=!0):n=!1),n||yl(t)),Za(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,js(n,u)?a=null:c!==null&&js(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Sc(e,t,N0,null,null,l),Mn._currentValue=n),Mu(e,t),Ie(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=Re)&&(l=ry(l,t.pendingProps,wt),l!==null?(t.stateNode=l,$e=t,Re=null,e=!0):e=!1),e||yl(t)),null;case 13:return Uf(e,t,l);case 4:return ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Fl(t,null,a,l):Ie(e,t,a,l),t.child;case 11:return Cf(e,t,t.type,t.pendingProps,l);case 7:return Ie(e,t,t.pendingProps,l),t.child;case 8:return Ie(e,t,t.pendingProps.children,l),t.child;case 12:return Ie(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),Ie(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Vl(t),n=We(n),a=a(n),t.flags|=1,Ie(e,t,a,l),t.child;case 14:return wf(e,t,t.type,t.pendingProps,l);case 15:return Af(e,t,t.type,t.pendingProps,l);case 19:return Hf(e,t,l);case 31:return R0(e,t,l);case 22:return Tf(e,t,l,t.pendingProps);case 24:return Vl(t),a=We(Xe),e===null?(n=fc(),n===null&&(n=Te,u=oc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},hc(t),pl(t,Xe,n)):((e.lanes&l)!==0&&(mc(e,t),mn(t,null,null,l),hn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),pl(t,Xe,a)):(a=u.cache,pl(t,Xe,a),a!==n.cache&&sc(t,[Xe],l,!0))),Ie(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function It(e){e.flags|=4}function Fc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(fd())e.flags|=8192;else throw Jl=xu,dc}else e.flags&=-16777217}function qf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!eh(t))if(fd())e.flags|=8192;else throw Jl=xu,dc}function Lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?go():536870912,e.lanes|=t,Da|=t)}function bn(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function M0(e,t,l){var a=t.pendingProps;switch(ac(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jt(Xe),_e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ga(t)?It(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uc())),Oe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(It(t),u!==null?(Oe(t),qf(t,u)):(Oe(t),Fc(t,n,null,a,l))):u?u!==e.memoizedState?(It(t),Oe(t),qf(t,u)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&It(t),Oe(t),Fc(t,n,e,a,l)),null;case 27:if(kn(t),l=L.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&It(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=V.current,ga(t)?gr(t):(e=Kd(n,a,l),t.stateNode=e,It(t))}return Oe(t),null;case 5:if(kn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&It(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(u=V.current,ga(t))gr(t);else{var c=Wu(L.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Fe]=t,u[lt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Pe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&It(t)}}return Oe(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&It(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=L.current,ga(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Ud(e.nodeValue,l)),e||yl(t,!0)}else e=Wu(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ga(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ga(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Fe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Lu(t,t.updateQueue),Oe(t),null);case 4:return _e(),e===null&&gs(t.stateNode.containerInfo),Oe(t),null;case 10:return Jt(t.type),Oe(t),null;case 19:if(M(qe),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)bn(a,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=zu(e),u!==null){for(t.flags|=128,bn(a,!1),e=u.updateQueue,t.updateQueue=e,Lu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)dr(l,e),l=l.sibling;return q(qe,qe.current&1|2),me&&Kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ot()>Gu&&(t.flags|=128,n=!0,bn(a,!1),t.lanes=4194304)}else{if(!n)if(e=zu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Lu(t,e),bn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!me)return Oe(t),null}else 2*ot()-a.renderingStartTime>Gu&&l!==536870912&&(t.flags|=128,n=!0,bn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ot(),e.sibling=null,l=qe.current,q(qe,n?l&1|2:l&1),me&&Kt(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return yt(t),vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&Lu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&M(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Jt(Xe),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function U0(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jt(Xe),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kn(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(qe),null;case 4:return _e(),null;case 10:return Jt(t.type),null;case 22:case 23:return yt(t),vc(),e!==null&&M(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jt(Xe),null;case 25:return null;default:return null}}function Yf(e,t){switch(ac(t),t.tag){case 3:Jt(Xe),_e();break;case 26:case 27:case 5:kn(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:M(qe);break;case 10:Jt(t.type);break;case 22:case 23:yt(t),vc(),e!==null&&M(Kl);break;case 24:Jt(Xe)}}function Sn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(f){Ne(t,t.return,f)}}function jl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=t;var p=l,E=f;try{E()}catch(_){Ne(n,p,_)}}}a=a.next}while(a!==u)}}catch(_){Ne(t,t.return,_)}}function Gf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Dr(t,l)}catch(a){Ne(e,e.return,a)}}}function Xf(e,t,l){l.props=Wl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function jn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Qf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function $c(e,t,l){try{var a=e.stateNode;ay(a,e.type,l,t),a[lt]=t}catch(n){Ne(e,e.return,n)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Qt));else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Hu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Tl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hu(e,t,l),e=e.sibling;e!==null;)Hu(e,t,l),e=e.sibling}function Vf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Pe(t,a,l),t[Fe]=e,t[lt]=l}catch(u){Ne(e,e.return,u)}}var Pt=!1,Ve=!1,Pc=!1,Kf=typeof WeakSet=="function"?WeakSet:Set,Je=null;function L0(e,t){if(e=e.containerInfo,bs=ni,e=ar(e),Ki(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,f=-1,p=-1,E=0,_=0,O=e,C=null;t:for(;;){for(var A;O!==l||n!==0&&O.nodeType!==3||(f=c+n),O!==u||a!==0&&O.nodeType!==3||(p=c+a),O.nodeType===3&&(c+=O.nodeValue.length),(A=O.firstChild)!==null;)C=O,O=A;for(;;){if(O===e)break t;if(C===l&&++E===n&&(f=c),C===u&&++_===a&&(p=c),(A=O.nextSibling)!==null)break;O=C,C=O.parentNode}O=A}l=f===-1||p===-1?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ss={focusedElem:e,selectionRange:l},ni=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Z=Wl(l.type,n);e=a.getSnapshotBeforeUpdate(Z,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ne(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ns(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ns(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function kf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:tl(e,l),a&4&&Sn(5,l);break;case 1:if(tl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ne(l,l.return,c)}else{var n=Wl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ne(l,l.return,c)}}a&64&&Gf(l),a&512&&jn(l,l.return);break;case 3:if(tl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Dr(e,t)}catch(c){Ne(l,l.return,c)}}break;case 27:t===null&&a&4&&Vf(l);case 26:case 5:tl(e,l),t===null&&a&4&&Qf(l),a&512&&jn(l,l.return);break;case 12:tl(e,l);break;case 31:tl(e,l),a&4&&$f(e,l);break;case 13:tl(e,l),a&4&&Wf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=V0.bind(null,l),fy(e,l))));break;case 22:if(a=l.memoizedState!==null||Pt,!a){t=t!==null&&t.memoizedState!==null||Ve,n=Pt;var u=Ve;Pt=a,(Ve=t)&&!u?ll(e,l,(l.subtreeFlags&8772)!==0):tl(e,l),Pt=n,Ve=u}break;case 30:break;default:tl(e,l)}}function Jf(e){var t=e.alternate;t!==null&&(e.alternate=null,Jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ti(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,nt=!1;function el(e,t,l){for(l=l.child;l!==null;)Ff(e,t,l),l=l.sibling}function Ff(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Va,l)}catch{}switch(l.tag){case 26:Ve||Bt(l,t),el(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||Bt(l,t);var a=Me,n=nt;Tl(l.type)&&(Me=l.stateNode,nt=!1),el(e,t,l),_n(l.stateNode),Me=a,nt=n;break;case 5:Ve||Bt(l,t);case 6:if(a=Me,n=nt,Me=null,el(e,t,l),Me=a,nt=n,Me!==null)if(nt)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(l.stateNode)}catch(u){Ne(l,t,u)}else try{Me.removeChild(l.stateNode)}catch(u){Ne(l,t,u)}break;case 18:Me!==null&&(nt?(e=Me,Gd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ba(e)):Gd(Me,l.stateNode));break;case 4:a=Me,n=nt,Me=l.stateNode.containerInfo,nt=!0,el(e,t,l),Me=a,nt=n;break;case 0:case 11:case 14:case 15:jl(2,l,t),Ve||jl(4,l,t),el(e,t,l);break;case 1:Ve||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Xf(l,t,a)),el(e,t,l);break;case 21:el(e,t,l);break;case 22:Ve=(a=Ve)||l.memoizedState!==null,el(e,t,l),Ve=a;break;default:el(e,t,l)}}function $f(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ba(e)}catch(l){Ne(t,t.return,l)}}}function Wf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ba(e)}catch(l){Ne(t,t.return,l)}}function H0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kf),t;default:throw Error(o(435,e.tag))}}function Bu(e,t){var l=H0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=K0.bind(null,e,a);a.then(n,n)}})}function ut(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(Tl(f.type)){Me=f.stateNode,nt=!1;break e}break;case 5:Me=f.stateNode,nt=!1;break e;case 3:case 4:Me=f.stateNode.containerInfo,nt=!0;break e}f=f.return}if(Me===null)throw Error(o(160));Ff(u,c,n),Me=null,nt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)If(t,e),t=t.sibling}var Ot=null;function If(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),it(e),a&4&&(jl(3,e,e.return),Sn(3,e),jl(5,e,e.return));break;case 1:ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),a&64&&Pt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ot;if(ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ja]||u[Fe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Pe(u,a,l),u[Fe]=e,ke(u),a=u;break e;case"link":var c=Id("link","href",n).get(a+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(u=c[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(f,1);break t}}u=n.createElement(a),Pe(u,a,l),n.head.appendChild(u);break;case"meta":if(c=Id("meta","content",n).get(a+(l.content||""))){for(f=0;f<c.length;f++)if(u=c[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(f,1);break t}}u=n.createElement(a),Pe(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Fe]=e,ke(u),a=u}e.stateNode=a}else Pd(n,e.type,e.stateNode);else e.stateNode=Wd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Pd(n,e.type,e.stateNode):Wd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&$c(e,e.memoizedProps,l.memoizedProps)}break;case 27:ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),l!==null&&a&4&&$c(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ut(t,e),it(e),a&512&&(Ve||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ca(n,"")}catch(Z){Ne(e,e.return,Z)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,$c(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Pc=!0);break;case 6:if(ut(t,e),it(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Z){Ne(e,e.return,Z)}}break;case 3:if(ei=null,n=Ot,Ot=Iu(t.containerInfo),ut(t,e),Ot=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch(Z){Ne(e,e.return,Z)}Pc&&(Pc=!1,Pf(e));break;case 4:a=Ot,Ot=Iu(e.stateNode.containerInfo),ut(t,e),it(e),Ot=a;break;case 12:ut(t,e),it(e);break;case 31:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 13:ut(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yu=ot()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,E=Pt,_=Ve;if(Pt=E||n,Ve=_||p,ut(t,e),Ve=_,Pt=E,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||Pt||Ve||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=p.stateNode;var O=p.memoizedProps.style,C=O!=null&&O.hasOwnProperty("display")?O.display:null;f.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(Z){Ne(p,p.return,Z)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(Z){Ne(p,p.return,Z)}}}else if(t.tag===18){if(l===null){p=t;try{var A=p.stateNode;n?Xd(A,!0):Xd(p.stateNode,!1)}catch(Z){Ne(p,p.return,Z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Bu(e,l))));break;case 19:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 30:break;case 21:break;default:ut(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Zf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Wc(e);Hu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ca(c,""),l.flags&=-33);var f=Wc(e);Hu(e,f,c);break;case 3:case 4:var p=l.stateNode.containerInfo,E=Wc(e);Ic(e,E,p);break;default:throw Error(o(161))}}catch(_){Ne(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)kf(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jl(4,t,t.return),Il(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Xf(t,t.return,l),Il(t);break;case 27:_n(t.stateNode);case 26:case 5:Bt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function ll(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:ll(n,u,l),Sn(4,u);break;case 1:if(ll(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(E){Ne(a,a.return,E)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)Tr(p[n],f)}catch(E){Ne(a,a.return,E)}}l&&c&64&&Gf(u),jn(u,u.return);break;case 27:Vf(u);case 26:case 5:ll(n,u,l),l&&a===null&&c&4&&Qf(u),jn(u,u.return);break;case 12:ll(n,u,l);break;case 31:ll(n,u,l),l&&c&4&&$f(n,u);break;case 13:ll(n,u,l),l&&c&4&&Wf(n,u);break;case 22:u.memoizedState===null&&ll(n,u,l),jn(u,u.return);break;case 30:break;default:ll(n,u,l)}t=t.sibling}}function es(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&sn(l))}function ts(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e))}function Mt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ed(e,t,l,a),t=t.sibling}function ed(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,l,a),n&2048&&Sn(9,t);break;case 1:Mt(e,t,l,a);break;case 3:Mt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e)));break;case 12:if(n&2048){Mt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,f=u.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){Ne(t,t.return,p)}}else Mt(e,t,l,a);break;case 31:Mt(e,t,l,a);break;case 13:Mt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Mt(e,t,l,a):zn(e,t):u._visibility&2?Mt(e,t,l,a):(u._visibility|=2,wa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&es(c,t);break;case 24:Mt(e,t,l,a),n&2048&&ts(t.alternate,t);break;default:Mt(e,t,l,a)}}function wa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,f=l,p=a,E=c.flags;switch(c.tag){case 0:case 11:case 15:wa(u,c,f,p,n),Sn(8,c);break;case 23:break;case 22:var _=c.stateNode;c.memoizedState!==null?_._visibility&2?wa(u,c,f,p,n):zn(u,c):(_._visibility|=2,wa(u,c,f,p,n)),n&&E&2048&&es(c.alternate,c);break;case 24:wa(u,c,f,p,n),n&&E&2048&&ts(c.alternate,c);break;default:wa(u,c,f,p,n)}t=t.sibling}}function zn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:zn(l,a),n&2048&&es(a.alternate,a);break;case 24:zn(l,a),n&2048&&ts(a.alternate,a);break;default:zn(l,a)}t=t.sibling}}var Nn=8192;function Aa(e,t,l){if(e.subtreeFlags&Nn)for(e=e.child;e!==null;)td(e,t,l),e=e.sibling}function td(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&Nn&&e.memoizedState!==null&&zy(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var a=Ot;Ot=Iu(e.stateNode.containerInfo),Aa(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Nn,Nn=16777216,Aa(e,t,l),Nn=a):Aa(e,t,l));break;default:Aa(e,t,l)}}function ld(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function En(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,nd(a,e)}ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ad(e),e=e.sibling}function ad(e){switch(e.tag){case 0:case 11:case 15:En(e),e.flags&2048&&jl(9,e,e.return);break;case 3:En(e);break;case 12:En(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):En(e);break;default:En(e)}}function qu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,nd(a,e)}ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jl(8,t,t.return),qu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function nd(e,t){for(;Je!==null;){var l=Je;switch(l.tag){case 0:case 11:case 15:jl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:sn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Je=a;else e:for(l=e;Je!==null;){a=Je;var n=a.sibling,u=a.return;if(Jf(a),a===l){Je=null;break e}if(n!==null){n.return=u,Je=n;break e}Je=u}}}var B0={getCacheForType:function(e){var t=We(Xe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Xe).controller.signal}},q0=typeof WeakMap=="function"?WeakMap:Map,be=0,Te=null,oe=null,de=0,ze=0,pt=null,zl=!1,Ta=!1,ls=!1,al=0,He=0,Nl=0,Pl=0,as=0,gt=0,Da=0,Cn=null,ct=null,ns=!1,Yu=0,ud=0,Gu=1/0,Xu=null,El=null,Ke=0,Cl=null,_a=null,nl=0,us=0,is=null,id=null,wn=0,cs=null;function vt(){return(be&2)!==0&&de!==0?de&-de:T.T!==null?hs():So()}function cd(){if(gt===0)if((de&536870912)===0||me){var e=$n;$n<<=1,($n&3932160)===0&&($n=262144),gt=e}else gt=536870912;return e=mt.current,e!==null&&(e.flags|=32),gt}function st(e,t,l){(e===Te&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),wl(e,de,gt,!1)),ka(e,l),((be&2)===0||e!==Te)&&(e===Te&&((be&2)===0&&(Pl|=l),He===4&&wl(e,de,gt,!1)),qt(e))}function sd(e,t,l){if((be&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ka(e,t),n=a?X0(e,t):os(e,t,!0),u=a;do{if(n===0){Ta&&!a&&wl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Y0(l)){n=os(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;n=Cn;var p=f.current.memoizedState.isDehydrated;if(p&&(Ra(f,c).flags|=256),c=os(f,c,!1),c!==2){if(ls&&!p){f.errorRecoveryDisabledLanes|=u,Pl|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ra(e,0),wl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:wl(a,t,gt,!zl);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Yu+300-ot(),10<n)){if(wl(a,t,gt,!zl),In(a,0,!0)!==0)break e;nl=t,a.timeoutHandle=qd(od.bind(null,a,l,ct,Xu,ns,t,gt,Pl,Da,zl,u,"Throttled",-0,0),n);break e}od(a,l,ct,Xu,ns,t,gt,Pl,Da,zl,u,null,-0,0)}}break}while(!0);qt(e)}function od(e,t,l,a,n,u,c,f,p,E,_,O,C,A){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qt},td(t,u,O);var Z=(u&62914560)===u?Yu-ot():(u&4194048)===u?ud-ot():0;if(Z=Ny(O,Z),Z!==null){nl=u,e.cancelPendingCommit=Z(gd.bind(null,e,t,u,l,a,n,c,f,p,_,O,null,C,A)),wl(e,u,c,!E);return}}gd(e,t,u,l,a,n,c,f,p)}function Y0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!dt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wl(e,t,l,a){t&=~as,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ft(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&vo(e,l,t)}function Qu(){return(be&6)===0?(An(0),!1):!0}function ss(){if(oe!==null){if(ze===0)var e=oe.return;else e=oe,kt=Zl=null,Nc(e),ja=null,rn=0,e=oe;for(;e!==null;)Yf(e.alternate,e),e=e.return;oe=null}}function Ra(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,iy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),nl=0,ss(),Te=e,oe=l=Vt(e.current,null),de=t,ze=0,pt=null,zl=!1,Ta=Ka(e,t),ls=!1,Da=gt=as=Pl=Nl=He=0,ct=Cn=null,ns=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ft(a),u=1<<n;t|=e[n],a&=~u}return al=t,ru(),l}function rd(e,t){ue=null,T.H=vn,t===Sa||t===vu?(t=Er(),ze=3):t===dc?(t=Er(),ze=4):ze=t===Yc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,oe===null&&(He=1,Ru(e,Nt(t,e.current)))}function fd(){var e=mt.current;return e===null?!0:(de&4194048)===de?At===null:(de&62914560)===de||(de&536870912)!==0?e===At:!1}function dd(){var e=T.H;return T.H=vn,e===null?vn:e}function hd(){var e=T.A;return T.A=B0,e}function Zu(){He=4,zl||(de&4194048)!==de&&mt.current!==null||(Ta=!0),(Nl&134217727)===0&&(Pl&134217727)===0||Te===null||wl(Te,de,gt,!1)}function os(e,t,l){var a=be;be|=2;var n=dd(),u=hd();(Te!==e||de!==t)&&(Xu=null,Ra(e,t)),t=!1;var c=He;e:do try{if(ze!==0&&oe!==null){var f=oe,p=pt;switch(ze){case 8:ss(),c=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var E=ze;if(ze=0,pt=null,Oa(e,f,p,E),l&&Ta){c=0;break e}break;default:E=ze,ze=0,pt=null,Oa(e,f,p,E)}}G0(),c=He;break}catch(_){rd(e,_)}while(!0);return t&&e.shellSuspendCounter++,kt=Zl=null,be=a,T.H=n,T.A=u,oe===null&&(Te=null,de=0,ru()),c}function G0(){for(;oe!==null;)md(oe)}function X0(e,t){var l=be;be|=2;var a=dd(),n=hd();Te!==e||de!==t?(Xu=null,Gu=ot()+500,Ra(e,t)):Ta=Ka(e,t);e:do try{if(ze!==0&&oe!==null){t=oe;var u=pt;t:switch(ze){case 1:ze=0,pt=null,Oa(e,t,u,1);break;case 2:case 9:if(zr(u)){ze=0,pt=null,yd(t);break}t=function(){ze!==2&&ze!==9||Te!==e||(ze=7),qt(e)},u.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:zr(u)?(ze=0,pt=null,yd(t)):(ze=0,pt=null,Oa(e,t,u,7));break;case 5:var c=null;switch(oe.tag){case 26:c=oe.memoizedState;case 5:case 27:var f=oe;if(c?eh(c):f.stateNode.complete){ze=0,pt=null;var p=f.sibling;if(p!==null)oe=p;else{var E=f.return;E!==null?(oe=E,Vu(E)):oe=null}break t}}ze=0,pt=null,Oa(e,t,u,5);break;case 6:ze=0,pt=null,Oa(e,t,u,6);break;case 8:ss(),He=6;break e;default:throw Error(o(462))}}Q0();break}catch(_){rd(e,_)}while(!0);return kt=Zl=null,T.H=a,T.A=n,be=l,oe!==null?0:(Te=null,de=0,ru(),He)}function Q0(){for(;oe!==null&&!dm();)md(oe)}function md(e){var t=Bf(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?Vu(e):oe=t}function yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Rf(l,t,t.pendingProps,t.type,void 0,de);break;case 11:t=Rf(l,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Nc(t);default:Yf(l,t),t=oe=dr(t,al),t=Bf(l,t,al)}e.memoizedProps=e.pendingProps,t===null?Vu(e):oe=t}function Oa(e,t,l,a){kt=Zl=null,Nc(t),ja=null,rn=0;var n=t.return;try{if(_0(e,n,t,l,de)){He=1,Ru(e,Nt(l,e.current)),oe=null;return}}catch(u){if(n!==null)throw oe=n,u;He=1,Ru(e,Nt(l,e.current)),oe=null;return}t.flags&32768?(me||a===1?e=!0:Ta||(de&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),pd(t,e)):Vu(t)}function Vu(e){var t=e;do{if((t.flags&32768)!==0){pd(t,zl);return}e=t.return;var l=M0(t.alternate,t,al);if(l!==null){oe=l;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);He===0&&(He=5)}function pd(e,t){do{var l=U0(e.alternate,e);if(l!==null){l.flags&=32767,oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=l}while(e!==null);He=6,oe=null}function gd(e,t,l,a,n,u,c,f,p){e.cancelPendingCommit=null;do Ku();while(Ke!==0);if((be&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Wi,jm(e,l,u,c,f,p),e===Te&&(oe=Te=null,de=0),_a=t,Cl=e,nl=l,us=u,is=n,id=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,k0(Jn,function(){return jd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,n=B.p,B.p=2,c=be,be|=4;try{L0(e,t,l)}finally{be=c,B.p=n,T.T=a}}Ke=1,vd(),xd(),bd()}}function vd(){if(Ke===1){Ke=0;var e=Cl,t=_a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=B.p;B.p=2;var n=be;be|=4;try{If(t,e);var u=Ss,c=ar(e.containerInfo),f=u.focusedElem,p=u.selectionRange;if(c!==f&&f&&f.ownerDocument&&lr(f.ownerDocument.documentElement,f)){if(p!==null&&Ki(f)){var E=p.start,_=p.end;if(_===void 0&&(_=E),"selectionStart"in f)f.selectionStart=E,f.selectionEnd=Math.min(_,f.value.length);else{var O=f.ownerDocument||document,C=O&&O.defaultView||window;if(C.getSelection){var A=C.getSelection(),Z=f.textContent.length,P=Math.min(p.start,Z),Ae=p.end===void 0?P:Math.min(p.end,Z);!A.extend&&P>Ae&&(c=Ae,Ae=P,P=c);var z=tr(f,P),x=tr(f,Ae);if(z&&x&&(A.rangeCount!==1||A.anchorNode!==z.node||A.anchorOffset!==z.offset||A.focusNode!==x.node||A.focusOffset!==x.offset)){var N=O.createRange();N.setStart(z.node,z.offset),A.removeAllRanges(),P>Ae?(A.addRange(N),A.extend(x.node,x.offset)):(N.setEnd(x.node,x.offset),A.addRange(N))}}}}for(O=[],A=f;A=A.parentNode;)A.nodeType===1&&O.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<O.length;f++){var R=O[f];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}ni=!!bs,Ss=bs=null}finally{be=n,B.p=a,T.T=l}}e.current=t,Ke=2}}function xd(){if(Ke===2){Ke=0;var e=Cl,t=_a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=B.p;B.p=2;var n=be;be|=4;try{kf(e,t.alternate,t)}finally{be=n,B.p=a,T.T=l}}Ke=3}}function bd(){if(Ke===4||Ke===3){Ke=0,hm();var e=Cl,t=_a,l=nl,a=id;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,_a=Cl=null,Sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),wi(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Va,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,n=B.p,B.p=2,T.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];u(f.value,{componentStack:f.stack})}}finally{T.T=t,B.p=n}}(nl&3)!==0&&Ku(),qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===cs?wn++:(wn=0,cs=e):wn=0,An(0)}}function Sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sn(t)))}function Ku(){return vd(),xd(),bd(),jd()}function jd(){if(Ke!==5)return!1;var e=Cl,t=us;us=0;var l=wi(nl),a=T.T,n=B.p;try{B.p=32>l?32:l,T.T=null,l=is,is=null;var u=Cl,c=nl;if(Ke=0,_a=Cl=null,nl=0,(be&6)!==0)throw Error(o(331));var f=be;if(be|=4,ad(u.current),ed(u,u.current,c,l),be=f,An(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Va,u)}catch{}return!0}finally{B.p=n,T.T=a,Sd(e,t)}}function zd(e,t,l){t=Nt(l,t),t=qc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(ka(e,2),qt(e))}function Ne(e,t,l){if(e.tag===3)zd(e,e,l);else for(;t!==null;){if(t.tag===3){zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=Nt(l,e),l=Nf(2),a=xl(t,l,2),a!==null&&(Ef(l,a,t,e),ka(a,2),qt(a));break}}t=t.return}}function rs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new q0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(ls=!0,n.add(l),e=Z0.bind(null,e,t,l),t.then(e,e))}function Z0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Te===e&&(de&l)===l&&(He===4||He===3&&(de&62914560)===de&&300>ot()-Yu?(be&2)===0&&Ra(e,0):as|=l,Da===de&&(Da=0)),qt(e)}function Nd(e,t){t===0&&(t=go()),e=Gl(e,t),e!==null&&(ka(e,t),qt(e))}function V0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Nd(e,l)}function K0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Nd(e,l)}function k0(e,t){return zi(e,t)}var ku=null,Ma=null,fs=!1,Ju=!1,ds=!1,Al=0;function qt(e){e!==Ma&&e.next===null&&(Ma===null?ku=Ma=e:Ma=Ma.next=e),Ju=!0,fs||(fs=!0,F0())}function An(e,t){if(!ds&&Ju){ds=!0;do for(var l=!1,a=ku;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ft(42|e)+1)-1,u&=n&~(c&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ad(a,u))}else u=de,u=In(a,a===Te?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ka(a,u)||(l=!0,Ad(a,u));a=a.next}while(l);ds=!1}}function J0(){Ed()}function Ed(){Ju=fs=!1;var e=0;Al!==0&&uy()&&(e=Al);for(var t=ot(),l=null,a=ku;a!==null;){var n=a.next,u=Cd(a,t);u===0?(a.next=null,l===null?ku=n:l.next=n,n===null&&(Ma=l)):(l=a,(e!==0||(u&3)!==0)&&(Ju=!0)),a=n}Ke!==0&&Ke!==5||An(e),Al!==0&&(Al=0)}function Cd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-ft(u),f=1<<c,p=n[c];p===-1?((f&l)===0||(f&a)!==0)&&(n[c]=Sm(f,t)):p<=t&&(e.expiredLanes|=f),u&=~f}if(t=Te,l=de,l=In(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ni(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ni(a),wi(l)){case 2:case 8:l=yo;break;case 32:l=Jn;break;case 268435456:l=po;break;default:l=Jn}return a=wd.bind(null,e),l=zi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ni(a),e.callbackPriority=2,e.callbackNode=null,2}function wd(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ku()&&e.callbackNode!==l)return null;var a=de;return a=In(e,e===Te?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(sd(e,a,t),Cd(e,ot()),e.callbackNode!=null&&e.callbackNode===l?wd.bind(null,e):null)}function Ad(e,t){if(Ku())return null;sd(e,t,!0)}function F0(){cy(function(){(be&6)!==0?zi(mo,J0):Ed()})}function hs(){if(Al===0){var e=xa;e===0&&(e=Fn,Fn<<=1,(Fn&261888)===0&&(Fn=256)),Al=e}return Al}function Td(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function Dd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function $0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Td((n[lt]||null).action),c=a.submitter;c&&(t=(t=c[lt]||null)?Td(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var f=new iu("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var p=c?Dd(n,c):new FormData(n);Oc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(f.preventDefault(),p=c?Dd(n,c):new FormData(n),Oc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ms=0;ms<$i.length;ms++){var ys=$i[ms],W0=ys.toLowerCase(),I0=ys[0].toUpperCase()+ys.slice(1);Rt(W0,"on"+I0)}Rt(ir,"onAnimationEnd"),Rt(cr,"onAnimationIteration"),Rt(sr,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(m0,"onTransitionRun"),Rt(y0,"onTransitionStart"),Rt(p0,"onTransitionCancel"),Rt(or,"onTransitionEnd"),ua("onMouseEnter",["mouseout","mouseover"]),ua("onMouseLeave",["mouseout","mouseover"]),ua("onPointerEnter",["pointerout","pointerover"]),ua("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tn="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(" "),P0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tn));function _d(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],p=f.instance,E=f.currentTarget;if(f=f.listener,p!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=E;try{u(n)}catch(_){ou(_)}n.currentTarget=null,u=p}else for(c=0;c<a.length;c++){if(f=a[c],p=f.instance,E=f.currentTarget,f=f.listener,p!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=E;try{u(n)}catch(_){ou(_)}n.currentTarget=null,u=p}}}}function re(e,t){var l=t[Ai];l===void 0&&(l=t[Ai]=new Set);var a=e+"__bubble";l.has(a)||(Rd(t,e,2,!1),l.add(a))}function ps(e,t,l){var a=0;t&&(a|=4),Rd(l,e,a,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[Fu]){e[Fu]=!0,No.forEach(function(l){l!=="selectionchange"&&(P0.has(l)||ps(l,!1,e),ps(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,ps("selectionchange",!1,t))}}function Rd(e,t,l,a){switch(ch(t)){case 2:var n=wy;break;case 8:n=Ay;break;default:n=Rs}l=n.bind(null,t,l,e),n=void 0,!Hi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function vs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=la(f),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=u=c;continue e}f=f.parentNode}}a=a.return}Lo(function(){var E=u,_=Ui(l),O=[];e:{var C=rr.get(e);if(C!==void 0){var A=iu,Z=e;switch(e){case"keypress":if(nu(l)===0)break e;case"keydown":case"keyup":A=Km;break;case"focusin":Z="focus",A=Gi;break;case"focusout":Z="blur",A=Gi;break;case"beforeblur":case"afterblur":A=Gi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=qo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Mm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Fm;break;case ir:case cr:case sr:A=Hm;break;case or:A=Wm;break;case"scroll":case"scrollend":A=Rm;break;case"wheel":A=Pm;break;case"copy":case"cut":case"paste":A=qm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Go;break;case"toggle":case"beforetoggle":A=t0}var P=(t&4)!==0,Ae=!P&&(e==="scroll"||e==="scrollend"),z=P?C!==null?C+"Capture":null:C;P=[];for(var x=E,N;x!==null;){var R=x;if(N=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||N===null||z===null||(R=$a(x,z),R!=null&&P.push(Dn(x,R,N))),Ae)break;x=x.return}0<P.length&&(C=new A(C,Z,null,l,_),O.push({event:C,listeners:P}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",C&&l!==Mi&&(Z=l.relatedTarget||l.fromElement)&&(la(Z)||Z[ta]))break e;if((A||C)&&(C=_.window===_?_:(C=_.ownerDocument)?C.defaultView||C.parentWindow:window,A?(Z=l.relatedTarget||l.toElement,A=E,Z=Z?la(Z):null,Z!==null&&(Ae=h(Z),P=Z.tag,Z!==Ae||P!==5&&P!==27&&P!==6)&&(Z=null)):(A=null,Z=E),A!==Z)){if(P=qo,R="onMouseLeave",z="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(P=Go,R="onPointerLeave",z="onPointerEnter",x="pointer"),Ae=A==null?C:Fa(A),N=Z==null?C:Fa(Z),C=new P(R,x+"leave",A,l,_),C.target=Ae,C.relatedTarget=N,R=null,la(_)===E&&(P=new P(z,x+"enter",Z,l,_),P.target=N,P.relatedTarget=Ae,R=P),Ae=R,A&&Z)t:{for(P=ey,z=A,x=Z,N=0,R=z;R;R=P(R))N++;R=0;for(var I=x;I;I=P(I))R++;for(;0<N-R;)z=P(z),N--;for(;0<R-N;)x=P(x),R--;for(;N--;){if(z===x||x!==null&&z===x.alternate){P=z;break t}z=P(z),x=P(x)}P=null}else P=null;A!==null&&Od(O,C,A,P,!1),Z!==null&&Ae!==null&&Od(O,Ae,Z,P,!0)}}e:{if(C=E?Fa(E):window,A=C.nodeName&&C.nodeName.toLowerCase(),A==="select"||A==="input"&&C.type==="file")var ve=Fo;else if(ko(C))if($o)ve=f0;else{ve=o0;var J=s0}else A=C.nodeName,!A||A.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?E&&Oi(E.elementType)&&(ve=Fo):ve=r0;if(ve&&(ve=ve(e,E))){Jo(O,ve,l,_);break e}J&&J(e,C,E),e==="focusout"&&E&&C.type==="number"&&E.memoizedProps.value!=null&&Ri(C,"number",C.value)}switch(J=E?Fa(E):window,e){case"focusin":(ko(J)||J.contentEditable==="true")&&(fa=J,ki=E,nn=null);break;case"focusout":nn=ki=fa=null;break;case"mousedown":Ji=!0;break;case"contextmenu":case"mouseup":case"dragend":Ji=!1,nr(O,l,_);break;case"selectionchange":if(h0)break;case"keydown":case"keyup":nr(O,l,_)}var ie;if(Qi)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else ra?Vo(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(Xo&&l.locale!=="ko"&&(ra||he!=="onCompositionStart"?he==="onCompositionEnd"&&ra&&(ie=Ho()):(dl=_,Bi="value"in dl?dl.value:dl.textContent,ra=!0)),J=$u(E,he),0<J.length&&(he=new Yo(he,e,null,l,_),O.push({event:he,listeners:J}),ie?he.data=ie:(ie=Ko(l),ie!==null&&(he.data=ie)))),(ie=a0?n0(e,l):u0(e,l))&&(he=$u(E,"onBeforeInput"),0<he.length&&(J=new Yo("onBeforeInput","beforeinput",null,l,_),O.push({event:J,listeners:he}),J.data=ie)),$0(O,e,E,l,_)}_d(O,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $u(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=$a(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=$a(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function ey(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var f=l,p=f.alternate,E=f.stateNode;if(f=f.tag,p!==null&&p===a)break;f!==5&&f!==26&&f!==27||E===null||(p=E,n?(E=$a(l,u),E!=null&&c.unshift(Dn(l,E,p))):n||(E=$a(l,u),E!=null&&c.push(Dn(l,E,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var ty=/\r\n?/g,ly=/\u0000|\uFFFD/g;function Md(e){return(typeof e=="string"?e:""+e).replace(ty,`
9
- `).replace(ly,"")}function Ud(e,t){return t=Md(t),Md(e)===t}function we(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ca(e,""+a);break;case"className":eu(e,"class",a);break;case"tabIndex":eu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":eu(e,l,a);break;case"style":Mo(e,a,u);break;case"data":if(t!=="object"){eu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&we(e,t,"name",n.name,n,null),we(e,t,"formEncType",n.formEncType,n,null),we(e,t,"formMethod",n.formMethod,n,null),we(e,t,"formTarget",n.formTarget,n,null)):(we(e,t,"encType",n.encType,n,null),we(e,t,"method",n.method,n,null),we(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Qt);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=lu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":re("beforetoggle",e),re("toggle",e),Pn(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Pn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Dm.get(l)||l,Pn(e,l,a))}}function xs(e,t,l,a,n,u){switch(l){case"style":Mo(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ca(e,a):(typeof a=="number"||typeof a=="bigint")&&ca(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Qt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eo.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[lt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Pn(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:we(e,t,u,c,l,null)}}n&&we(e,t,"srcSet",l.srcSet,l,null),a&&we(e,t,"src",l.src,l,null);return;case"input":re("invalid",e);var f=u=c=n=null,p=null,E=null;for(a in l)if(l.hasOwnProperty(a)){var _=l[a];if(_!=null)switch(a){case"name":n=_;break;case"type":c=_;break;case"checked":p=_;break;case"defaultChecked":E=_;break;case"value":u=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:we(e,t,a,_,l,null)}}Do(e,u,f,p,E,c,n,!1);return;case"select":re("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:we(e,t,n,f,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ia(e,!!a,t,!1):l!=null&&ia(e,!!a,l,!0);return;case"textarea":re("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:we(e,t,c,f,l,null)}Ro(e,a,n,u);return;case"option":for(p in l)l.hasOwnProperty(p)&&(a=l[p],a!=null)&&(p==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":we(e,t,p,a,l,null));return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<Tn.length;a++)re(Tn[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(E in l)if(l.hasOwnProperty(E)&&(a=l[E],a!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:we(e,t,E,a,l,null)}return;default:if(Oi(t)){for(_ in l)l.hasOwnProperty(_)&&(a=l[_],a!==void 0&&xs(e,t,_,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&we(e,t,f,a,l,null))}function ay(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,f=null,p=null,E=null,_=null;for(A in l){var O=l[A];if(l.hasOwnProperty(A)&&O!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=O;default:a.hasOwnProperty(A)||we(e,t,A,null,a,O)}}for(var C in a){var A=a[C];if(O=l[C],a.hasOwnProperty(C)&&(A!=null||O!=null))switch(C){case"type":u=A;break;case"name":n=A;break;case"checked":E=A;break;case"defaultChecked":_=A;break;case"value":c=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==O&&we(e,t,C,A,a,O)}}_i(e,c,f,p,E,_,u,n);return;case"select":A=c=f=C=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":A=p;default:a.hasOwnProperty(u)||we(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":C=u;break;case"defaultValue":f=u;break;case"multiple":c=u;default:u!==p&&we(e,t,n,u,a,p)}t=f,l=c,a=A,C!=null?ia(e,!!l,C,!1):!!a!=!!l&&(t!=null?ia(e,!!l,t,!0):ia(e,!!l,l?[]:"",!1));return;case"textarea":A=C=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:we(e,t,f,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":C=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&we(e,t,c,n,a,u)}_o(e,C,A);return;case"option":for(var Z in l)C=l[Z],l.hasOwnProperty(Z)&&C!=null&&!a.hasOwnProperty(Z)&&(Z==="selected"?e.selected=!1:we(e,t,Z,null,a,C));for(p in a)C=a[p],A=l[p],a.hasOwnProperty(p)&&C!==A&&(C!=null||A!=null)&&(p==="selected"?e.selected=C&&typeof C!="function"&&typeof C!="symbol":we(e,t,p,C,a,A));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)C=l[P],l.hasOwnProperty(P)&&C!=null&&!a.hasOwnProperty(P)&&we(e,t,P,null,a,C);for(E in a)if(C=a[E],A=l[E],a.hasOwnProperty(E)&&C!==A&&(C!=null||A!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:we(e,t,E,C,a,A)}return;default:if(Oi(t)){for(var Ae in l)C=l[Ae],l.hasOwnProperty(Ae)&&C!==void 0&&!a.hasOwnProperty(Ae)&&xs(e,t,Ae,void 0,a,C);for(_ in a)C=a[_],A=l[_],!a.hasOwnProperty(_)||C===A||C===void 0&&A===void 0||xs(e,t,_,C,a,A);return}}for(var z in l)C=l[z],l.hasOwnProperty(z)&&C!=null&&!a.hasOwnProperty(z)&&we(e,t,z,null,a,C);for(O in a)C=a[O],A=l[O],!a.hasOwnProperty(O)||C===A||C==null&&A==null||we(e,t,O,C,a,A)}function Ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ny(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,f=n.duration;if(u&&f&&Ld(c)){for(c=0,f=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],E=p.startTime;if(E>f)break;var _=p.transferSize,O=p.initiatorType;_&&Ld(O)&&(p=p.responseEnd,c+=_*(p<f?1:(f-E)/(p-E)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var bs=null,Ss=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function js(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zs=null;function uy(){var e=window.event;return e&&e.type==="popstate"?e===zs?!1:(zs=e,!0):(zs=null,!1)}var qd=typeof setTimeout=="function"?setTimeout:void 0,iy=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,cy=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(sy)}:qd;function sy(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function Gd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ba(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")_n(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,_n(l);for(var u=l.firstChild;u;){var c=u.nextSibling,f=u.nodeName;u[Ja]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&_n(e.ownerDocument.body);l=n}while(l);Ba(t)}function Xd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Ns(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ns(l),Ti(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function oy(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ja])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function ry(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function Qd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tt(e.nextSibling),e===null))return null;return e}function Es(e){return e.data==="$?"||e.data==="$~"}function Cs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function fy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Tt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ws=null;function Zd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Tt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Vd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Kd(e,t,l){switch(t=Wu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function _n(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ti(e)}var Dt=new Map,kd=new Set;function Iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=B.d;B.d={f:dy,r:hy,D:my,C:yy,L:py,m:gy,X:xy,S:vy,M:by};function dy(){var e=ul.f(),t=Qu();return e||t}function hy(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?rf(t):ul.r(e)}var Ua=typeof document>"u"?null:document;function Jd(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),kd.has(n)||(kd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Pe(t,"link",e),ke(t),a.head.appendChild(t)))}}function my(e){ul.D(e),Jd("dns-prefetch",e,null)}function yy(e,t){ul.C(e,t),Jd("preconnect",e,t)}function py(e,t,l){ul.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+jt(l.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var u=n;switch(t){case"style":u=La(e);break;case"script":u=Ha(e)}Dt.has(u)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Rn(u))||t==="script"&&a.querySelector(On(u))||(t=a.createElement("link"),Pe(t,"link",e),ke(t),a.head.appendChild(t)))}}function gy(e,t){ul.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!Dt.has(u)&&(e=w({rel:"modulepreload",href:e},t),Dt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(On(u)))return}a=l.createElement("link"),Pe(a,"link",e),ke(a),l.head.appendChild(a)}}}function vy(e,t,l){ul.S(e,t,l);var a=Ua;if(a&&e){var n=na(a).hoistableStyles,u=La(e);t=t||"default";var c=n.get(u);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(Rn(u)))f.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(u))&&As(e,l);var p=c=a.createElement("link");ke(p),Pe(p,"link",e),p._p=new Promise(function(E,_){p.onload=E,p.onerror=_}),p.addEventListener("load",function(){f.loading|=1}),p.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Pu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(u,c)}}}function xy(e,t){ul.X(e,t);var l=Ua;if(l&&e){var a=na(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=w({src:e,async:!0},t),(t=Dt.get(n))&&Ts(e,t),u=l.createElement("script"),ke(u),Pe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function by(e,t){ul.M(e,t);var l=Ua;if(l&&e){var a=na(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=w({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Ts(e,t),u=l.createElement("script"),ke(u),Pe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Fd(e,t,l,a){var n=(n=L.current)?Iu(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=La(l.href),l=na(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=La(l.href);var u=na(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Rn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Dt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dt.set(e,l),u||Sy(n,e,l,c.state))),t&&a===null)throw Error(o(528,""));return c}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(l),l=na(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function La(e){return'href="'+jt(e)+'"'}function Rn(e){return'link[rel="stylesheet"]['+e+"]"}function $d(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Sy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",l),ke(t),e.head.appendChild(t))}function Ha(e){return'[src="'+jt(e)+'"]'}function On(e){return"script[async]"+e}function Wd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(a)return t.instance=a,ke(a),a;var n=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ke(a),Pe(a,"style",n),Pu(a,l.precedence,e),t.instance=a;case"stylesheet":n=La(l.href);var u=e.querySelector(Rn(n));if(u)return t.state.loading|=4,t.instance=u,ke(u),u;a=$d(l),(n=Dt.get(n))&&As(a,n),u=(e.ownerDocument||e).createElement("link"),ke(u);var c=u;return c._p=new Promise(function(f,p){c.onload=f,c.onerror=p}),Pe(u,"link",a),t.state.loading|=4,Pu(u,l.precedence,e),t.instance=u;case"script":return u=Ha(l.src),(n=e.querySelector(On(u)))?(t.instance=n,ke(n),n):(a=l,(n=Dt.get(u))&&(a=w({},l),Ts(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ke(n),Pe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Pu(a,l.precedence,e));return t.instance}function Pu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function As(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ts(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ei=null;function Id(e,t,l){if(ei===null){var a=new Map,n=ei=new Map;n.set(l,a)}else n=ei,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ja]||u[Fe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(u):a.set(c,[u])}}return a}function Pd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function jy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 eh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=La(a.href),u=t.querySelector(Rn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ti.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ke(u);return}u=t.ownerDocument||t,a=$d(a),(n=Dt.get(n))&&As(a,n),u=u.createElement("link"),ke(u);var c=u;c._p=new Promise(function(f,p){c.onload=f,c.onerror=p}),Pe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ti.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ds=0;function Ny(e,t){return e.stylesheets&&e.count===0&&ai(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ai(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Ds===0&&(Ds=62500*ny());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ai(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Ds?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ai(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var li=null;function ai(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,li=new Map,t.forEach(Ey,e),li=null,ti.call(e))}function Ey(e,t){if(!(t.state.loading&4)){var l=li.get(e);if(l)var a=l.get(null);else{l=new Map,li.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=ti.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:F,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Cy(e,t,l,a,n,u,c,f,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function th(e,t,l,a,n,u,c,f,p,E,_,O){return e=new Cy(e,t,l,c,p,E,_,O,f),t=1,u===!0&&(t|=24),u=ht(3,null,null,t),e.current=u,u.stateNode=e,t=oc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},hc(u),e}function lh(e){return e?(e=ma,e):ma}function ah(e,t,l,a,n,u){n=lh(n),a.context===null?a.context=n:a.pendingContext=n,a=vl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=xl(e,a,t),l!==null&&(st(l,e,t),dn(l,e,t))}function nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function _s(e,t){nh(e,t),(e=e.alternate)&&nh(e,t)}function uh(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&st(t,e,67108864),_s(e,67108864)}}function ih(e){if(e.tag===13||e.tag===31){var t=vt();t=Ci(t);var l=Gl(e,t);l!==null&&st(l,e,t),_s(e,t)}}var ni=!0;function wy(e,t,l,a){var n=T.T;T.T=null;var u=B.p;try{B.p=2,Rs(e,t,l,a)}finally{B.p=u,T.T=n}}function Ay(e,t,l,a){var n=T.T;T.T=null;var u=B.p;try{B.p=8,Rs(e,t,l,a)}finally{B.p=u,T.T=n}}function Rs(e,t,l,a){if(ni){var n=Os(a);if(n===null)vs(e,t,a,ui,l),sh(e,a);else if(Dy(n,e,t,l,a))a.stopPropagation();else if(sh(e,a),t&4&&-1<Ty.indexOf(e)){for(;n!==null;){var u=aa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ll(u.pendingLanes);if(c!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var p=1<<31-ft(c);f.entanglements[1]|=p,c&=~p}qt(u),(be&6)===0&&(Gu=ot()+500,An(0))}}break;case 31:case 13:f=Gl(u,2),f!==null&&st(f,u,2),Qu(),_s(u,2)}if(u=Os(a),u===null&&vs(e,t,a,ui,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else vs(e,t,a,null,l)}}function Os(e){return e=Ui(e),Ms(e)}var ui=null;function Ms(e){if(ui=null,e=la(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=j(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ui=e,null}function ch(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mm()){case mo:return 2;case yo:return 8;case Jn:case ym:return 32;case po:return 268435456;default:return 32}default:return 32}}var Us=!1,Dl=null,_l=null,Rl=null,Un=new Map,Ln=new Map,Ol=[],Ty="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 sh(e,t){switch(e){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(t.pointerId)}}function Hn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=aa(t),t!==null&&uh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Dy(e,t,l,a,n){switch(t){case"focusin":return Dl=Hn(Dl,e,t,l,a,n),!0;case"dragenter":return _l=Hn(_l,e,t,l,a,n),!0;case"mouseover":return Rl=Hn(Rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Un.set(u,Hn(Un.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Ln.set(u,Hn(Ln.get(u)||null,e,t,l,a,n)),!0}return!1}function oh(e){var t=la(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,jo(e.priority,function(){ih(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,jo(e.priority,function(){ih(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ii(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Os(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return t=aa(l),t!==null&&uh(t),e.blockedOn=l,!1;t.shift()}return!0}function rh(e,t,l){ii(e)&&l.delete(t)}function _y(){Us=!1,Dl!==null&&ii(Dl)&&(Dl=null),_l!==null&&ii(_l)&&(_l=null),Rl!==null&&ii(Rl)&&(Rl=null),Un.forEach(rh),Ln.forEach(rh)}function ci(e,t){e.blockedOn===t&&(e.blockedOn=null,Us||(Us=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_y)))}var si=null;function fh(e){si!==e&&(si=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){si===e&&(si=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ms(a||l)===null)continue;break}var u=aa(l);u!==null&&(e.splice(t,3),t-=3,Oc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ba(e){function t(p){return ci(p,e)}Dl!==null&&ci(Dl,e),_l!==null&&ci(_l,e),Rl!==null&&ci(Rl,e),Un.forEach(t),Ln.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)oh(l),l.blockedOn===null&&Ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[lt]||null;if(typeof u=="function")c||fh(l);else if(c){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[lt]||null)f=c.formAction;else if(Ms(n)!==null)continue}else f=c.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),fh(l)}}}function dh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Ls(e){this._internalRoot=e}oi.prototype.render=Ls.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=vt();ah(l,a,e,t,null,null)},oi.prototype.unmount=Ls.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ah(e.current,2,null,e,null,null),Qu(),t[ta]=null}};function oi(e){this._internalRoot=e}oi.prototype.unstable_scheduleHydration=function(e){if(e){var t=So();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&oh(e)}};var hh=r.version;if(hh!=="19.2.3")throw Error(o(527,hh,"19.2.3"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?D(e):null,e=e===null?null:e.stateNode,e};var Ry={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ri=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ri.isDisabled&&ri.supportsFiber)try{Va=ri.inject(Ry),rt=ri}catch{}}return qn.createRoot=function(e,t){if(!m(e))throw Error(o(299));var l=!1,a="",n=bf,u=Sf,c=jf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=th(e,1,!1,null,null,l,a,null,n,u,c,dh),e[ta]=t.current,gs(e),new Ls(t)},qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(o(299));var a=!1,n="",u=bf,c=Sf,f=jf,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=th(e,1,!0,t,l??null,a,n,p,u,c,f,dh),t.context=lh(null),l=t.current,a=vt(),a=Ci(a),n=vl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,ka(t,l),qt(t),e[ta]=t.current,gs(e),new oi(t)},qn.version="19.2.3",qn}var zh;function Qy(){if(zh)return qs.exports;zh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),qs.exports=Xy(),qs.exports}var Zy=Qy();var Nh="popstate";function Vy(i={}){function r(o,m){let{pathname:h,search:y,hash:j}=o.location;return $s("",{pathname:h,search:y,hash:j},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function d(o,m){return typeof m=="string"?m:Xn(m)}return ky(r,d,null,i)}function Ue(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function xt(i,r){if(!i){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Ky(){return Math.random().toString(36).substring(2,10)}function Eh(i,r){return{usr:i.state,key:i.key,idx:r}}function $s(i,r,d=null,o){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof r=="string"?Ga(r):r,state:d,key:r&&r.key||o||Ky()}}function Xn({pathname:i="/",search:r="",hash:d=""}){return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),d&&d!=="#"&&(i+=d.charAt(0)==="#"?d:"#"+d),i}function Ga(i){let r={};if(i){let d=i.indexOf("#");d>=0&&(r.hash=i.substring(d),i=i.substring(0,d));let o=i.indexOf("?");o>=0&&(r.search=i.substring(o),i=i.substring(0,o)),i&&(r.pathname=i)}return r}function ky(i,r,d,o={}){let{window:m=document.defaultView,v5Compat:h=!1}=o,y=m.history,j="POP",v=null,g=D();g==null&&(g=0,y.replaceState({...y.state,idx:g},""));function D(){return(y.state||{idx:null}).idx}function w(){j="POP";let Y=D(),Q=Y==null?null:Y-g;g=Y,v&&v({action:j,location:H.location,delta:Q})}function U(Y,Q){j="PUSH";let X=$s(H.location,Y,Q);g=D()+1;let F=Eh(X,g),ne=H.createHref(X);try{y.pushState(F,"",ne)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;m.location.assign(ne)}h&&v&&v({action:j,location:H.location,delta:1})}function G(Y,Q){j="REPLACE";let X=$s(H.location,Y,Q);g=D();let F=Eh(X,g),ne=H.createHref(X);y.replaceState(F,"",ne),h&&v&&v({action:j,location:H.location,delta:0})}function k(Y){return Jy(Y)}let H={get action(){return j},get location(){return i(m,y)},listen(Y){if(v)throw new Error("A history only accepts one active listener");return m.addEventListener(Nh,w),v=Y,()=>{m.removeEventListener(Nh,w),v=null}},createHref(Y){return r(m,Y)},createURL:k,encodeLocation(Y){let Q=k(Y);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:U,replace:G,go(Y){return y.go(Y)}};return H}function Jy(i,r=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(d,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Xn(i);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=d+o),new URL(o,d)}function Hh(i,r,d="/"){return Fy(i,r,d,!1)}function Fy(i,r,d,o){let m=typeof r=="string"?Ga(r):r,h=cl(m.pathname||"/",d);if(h==null)return null;let y=Bh(i);$y(y);let j=null;for(let v=0;j==null&&v<y.length;++v){let g=cp(h);j=up(y[v],g,o)}return j}function Bh(i,r=[],d=[],o="",m=!1){let h=(y,j,v=m,g)=>{let D={relativePath:g===void 0?y.path||"":g,caseSensitive:y.caseSensitive===!0,childrenIndex:j,route:y};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(o)&&v)return;Ue(D.relativePath.startsWith(o),`Absolute route path "${D.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),D.relativePath=D.relativePath.slice(o.length)}let w=il([o,D.relativePath]),U=d.concat(D);y.children&&y.children.length>0&&(Ue(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${w}".`),Bh(y.children,r,U,w,v)),!(y.path==null&&!y.index)&&r.push({path:w,score:ap(w,y.index),routesMeta:U})};return i.forEach((y,j)=>{if(y.path===""||!y.path?.includes("?"))h(y,j);else for(let v of qh(y.path))h(y,j,!0,v)}),r}function qh(i){let r=i.split("/");if(r.length===0)return[];let[d,...o]=r,m=d.endsWith("?"),h=d.replace(/\?$/,"");if(o.length===0)return m?[h,""]:[h];let y=qh(o.join("/")),j=[];return j.push(...y.map(v=>v===""?h:[h,v].join("/"))),m&&j.push(...y),j.map(v=>i.startsWith("/")&&v===""?"/":v)}function $y(i){i.sort((r,d)=>r.score!==d.score?d.score-r.score:np(r.routesMeta.map(o=>o.childrenIndex),d.routesMeta.map(o=>o.childrenIndex)))}var Wy=/^:[\w-]+$/,Iy=3,Py=2,ep=1,tp=10,lp=-2,Ch=i=>i==="*";function ap(i,r){let d=i.split("/"),o=d.length;return d.some(Ch)&&(o+=lp),r&&(o+=Py),d.filter(m=>!Ch(m)).reduce((m,h)=>m+(Wy.test(h)?Iy:h===""?ep:tp),o)}function np(i,r){return i.length===r.length&&i.slice(0,-1).every((o,m)=>o===r[m])?i[i.length-1]-r[r.length-1]:0}function up(i,r,d=!1){let{routesMeta:o}=i,m={},h="/",y=[];for(let j=0;j<o.length;++j){let v=o[j],g=j===o.length-1,D=h==="/"?r:r.slice(h.length)||"/",w=mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:g},D),U=v.route;if(!w&&g&&d&&!o[o.length-1].route.index&&(w=mi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},D)),!w)return null;Object.assign(m,w.params),y.push({params:m,pathname:il([h,w.pathname]),pathnameBase:fp(il([h,w.pathnameBase])),route:U}),w.pathnameBase!=="/"&&(h=il([h,w.pathnameBase]))}return y}function mi(i,r){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[d,o]=ip(i.path,i.caseSensitive,i.end),m=r.match(d);if(!m)return null;let h=m[0],y=h.replace(/(.)\/+$/,"$1"),j=m.slice(1);return{params:o.reduce((g,{paramName:D,isOptional:w},U)=>{if(D==="*"){let k=j[U]||"";y=h.slice(0,h.length-k.length).replace(/(.)\/+$/,"$1")}const G=j[U];return w&&!G?g[D]=void 0:g[D]=(G||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:y,pattern:i}}function ip(i,r=!1,d=!0){xt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,j,v)=>(o.push({paramName:j,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,r?void 0:"i"),o]}function cp(i){try{return i.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return xt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),i}}function cl(i,r){if(r==="/")return i;if(!i.toLowerCase().startsWith(r.toLowerCase()))return null;let d=r.endsWith("/")?r.length-1:r.length,o=i.charAt(d);return o&&o!=="/"?null:i.slice(d)||"/"}var Yh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sp=i=>Yh.test(i);function op(i,r="/"){let{pathname:d,search:o="",hash:m=""}=typeof i=="string"?Ga(i):i,h;if(d)if(sp(d))h=d;else{if(d.includes("//")){let y=d;d=d.replace(/\/\/+/g,"/"),xt(!1,`Pathnames cannot have embedded double slashes - normalizing ${y} -> ${d}`)}d.startsWith("/")?h=wh(d.substring(1),"/"):h=wh(d,r)}else h=r;return{pathname:h,search:dp(o),hash:hp(m)}}function wh(i,r){let d=r.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?d.length>1&&d.pop():m!=="."&&d.push(m)}),d.length>1?d.join("/"):"/"}function Qs(i,r,d,o){return`Cannot include a '${i}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rp(i){return i.filter((r,d)=>d===0||r.route.path&&r.route.path.length>0)}function no(i){let r=rp(i);return r.map((d,o)=>o===r.length-1?d.pathname:d.pathnameBase)}function uo(i,r,d,o=!1){let m;typeof i=="string"?m=Ga(i):(m={...i},Ue(!m.pathname||!m.pathname.includes("?"),Qs("?","pathname","search",m)),Ue(!m.pathname||!m.pathname.includes("#"),Qs("#","pathname","hash",m)),Ue(!m.search||!m.search.includes("#"),Qs("#","search","hash",m)));let h=i===""||m.pathname==="",y=h?"/":m.pathname,j;if(y==null)j=d;else{let w=r.length-1;if(!o&&y.startsWith("..")){let U=y.split("/");for(;U[0]==="..";)U.shift(),w-=1;m.pathname=U.join("/")}j=w>=0?r[w]:"/"}let v=op(m,j),g=y&&y!=="/"&&y.endsWith("/"),D=(h||y===".")&&d.endsWith("/");return!v.pathname.endsWith("/")&&(g||D)&&(v.pathname+="/"),v}var il=i=>i.join("/").replace(/\/\/+/g,"/"),fp=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),dp=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,hp=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,mp=class{constructor(i,r,d,o=!1){this.status=i,this.statusText=r||"",this.internal=o,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function yp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function pp(i){return i.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xh(i,r){let d=i;if(typeof d!="string"||!Yh.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let o=d,m=!1;if(Gh)try{let h=new URL(window.location.href),y=d.startsWith("//")?new URL(h.protocol+d):new URL(d),j=cl(y.pathname,r);y.origin===h.origin&&j!=null?d=j+y.search+y.hash:m=!0}catch{xt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:m,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Qh=["POST","PUT","PATCH","DELETE"];new Set(Qh);var gp=["GET",...Qh];new Set(gp);var Xa=S.createContext(null);Xa.displayName="DataRouter";var pi=S.createContext(null);pi.displayName="DataRouterState";var vp=S.createContext(!1),Zh=S.createContext({isTransitioning:!1});Zh.displayName="ViewTransition";var xp=S.createContext(new Map);xp.displayName="Fetchers";var bp=S.createContext(null);bp.displayName="Await";var bt=S.createContext(null);bt.displayName="Navigation";var Zn=S.createContext(null);Zn.displayName="Location";var Yt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.displayName="Route";var io=S.createContext(null);io.displayName="RouteError";var Vh="REACT_ROUTER_ERROR",Sp="REDIRECT",jp="ROUTE_ERROR_RESPONSE";function zp(i){if(i.startsWith(`${Vh}:${Sp}:{`))try{let r=JSON.parse(i.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Np(i){if(i.startsWith(`${Vh}:${jp}:{`))try{let r=JSON.parse(i.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new mp(r.status,r.statusText,r.data)}catch{}}function Ep(i,{relative:r}={}){Ue(Qa(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:o}=S.useContext(bt),{hash:m,pathname:h,search:y}=Vn(i,{relative:r}),j=h;return d!=="/"&&(j=h==="/"?d:il([d,h])),o.createHref({pathname:j,search:y,hash:m})}function Qa(){return S.useContext(Zn)!=null}function Gt(){return Ue(Qa(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Zn).location}var Kh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kh(i){S.useContext(bt).static||S.useLayoutEffect(i)}function ol(){let{isDataRoute:i}=S.useContext(Yt);return i?Bp():Cp()}function Cp(){Ue(Qa(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(Xa),{basename:r,navigator:d}=S.useContext(bt),{matches:o}=S.useContext(Yt),{pathname:m}=Gt(),h=JSON.stringify(no(o)),y=S.useRef(!1);return kh(()=>{y.current=!0}),S.useCallback((v,g={})=>{if(xt(y.current,Kh),!y.current)return;if(typeof v=="number"){d.go(v);return}let D=uo(v,JSON.parse(h),m,g.relative==="path");i==null&&r!=="/"&&(D.pathname=D.pathname==="/"?r:il([r,D.pathname])),(g.replace?d.replace:d.push)(D,g.state,g)},[r,d,h,m,i])}S.createContext(null);function Vn(i,{relative:r}={}){let{matches:d}=S.useContext(Yt),{pathname:o}=Gt(),m=JSON.stringify(no(d));return S.useMemo(()=>uo(i,JSON.parse(m),o,r==="path"),[i,m,o,r])}function wp(i,r){return Jh(i,r)}function Jh(i,r,d,o,m){Ue(Qa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=S.useContext(bt),{matches:y}=S.useContext(Yt),j=y[y.length-1],v=j?j.params:{},g=j?j.pathname:"/",D=j?j.pathnameBase:"/",w=j&&j.route;{let X=w&&w.path||"";$h(g,!w||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${X}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1
+ function Tx(a,i){for(var r=0;r<i.length;r++){const s=i[r];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(s,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(f){if(f.ep)return;f.ep=!0;const d=r(f);fetch(f.href,d)}})();function uv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var cu={exports:{}},Ai={};var fp;function Ax(){if(fp)return Ai;fp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:a,type:s,key:h,ref:f!==void 0?f:null,props:d}}return Ai.Fragment=i,Ai.jsx=r,Ai.jsxs=r,Ai}var dp;function Rx(){return dp||(dp=1,cu.exports=Ax()),cu.exports}var u=Rx(),ou={exports:{}},pe={};var hp;function Ox(){if(hp)return pe;hp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function N(T){return T===null||typeof T!="object"?null:(T=C&&T[C]||T["@@iterator"],typeof T=="function"?T:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function R(T,G,$){this.props=T,this.context=G,this.refs=j,this.updater=$||D}R.prototype.isReactComponent={},R.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function O(){}O.prototype=R.prototype;function M(T,G,$){this.props=T,this.context=G,this.refs=j,this.updater=$||D}var q=M.prototype=new O;q.constructor=M,w(q,R.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function J(){}var Y={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function le(T,G,$){var te=$.ref;return{$$typeof:a,type:T,key:G,ref:te!==void 0?te:null,props:$}}function re(T,G){return le(T.type,G,T.props)}function se(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function W(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return G[$]})}var ne=/\/+/g;function ee(T,G){return typeof T=="object"&&T!==null&&T.key!=null?W(""+T.key):G.toString(36)}function ae(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,G,$,te,de){var Z=typeof T;(Z==="undefined"||Z==="boolean")&&(T=null);var P=!1;if(T===null)P=!0;else switch(Z){case"bigint":case"string":case"number":P=!0;break;case"object":switch(T.$$typeof){case a:case i:P=!0;break;case S:return P=T._init,_(P(T._payload),G,$,te,de)}}if(P)return de=de(T),P=te===""?"."+ee(T,0):te,Q(de)?($="",P!=null&&($=P.replace(ne,"$&/")+"/"),_(de,G,$,"",function(je){return je})):de!=null&&(se(de)&&(de=re(de,$+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(ne,"$&/")+"/")+P)),G.push(de)),1;P=0;var fe=te===""?".":te+":";if(Q(T))for(var ge=0;ge<T.length;ge++)te=T[ge],Z=fe+ee(te,ge),P+=_(te,G,$,Z,de);else if(ge=N(T),typeof ge=="function")for(T=ge.call(T),ge=0;!(te=T.next()).done;)te=te.value,Z=fe+ee(te,ge++),P+=_(te,G,$,Z,de);else if(Z==="object"){if(typeof T.then=="function")return _(ae(T),G,$,te,de);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return P}function L(T,G,$){if(T==null)return T;var te=[],de=0;return _(T,te,"","",function(Z){return G.call($,Z,de++)}),te}function X(T){if(T._status===-1){var G=T._result;G=G(),G.then(function($){(T._status===0||T._status===-1)&&(T._status=1,T._result=$)},function($){(T._status===0||T._status===-1)&&(T._status=2,T._result=$)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var ce=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},me={map:L,forEach:function(T,G,$){L(T,function(){G.apply(this,arguments)},$)},count:function(T){var G=0;return L(T,function(){G++}),G},toArray:function(T){return L(T,function(G){return G})||[]},only:function(T){if(!se(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=b,pe.Children=me,pe.Component=R,pe.Fragment=r,pe.Profiler=f,pe.PureComponent=M,pe.StrictMode=s,pe.Suspense=v,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,G,$){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var te=w({},T.props),de=T.key;if(G!=null)for(Z in G.key!==void 0&&(de=""+G.key),G)!I.call(G,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&G.ref===void 0||(te[Z]=G[Z]);var Z=arguments.length-2;if(Z===1)te.children=$;else if(1<Z){for(var P=Array(Z),fe=0;fe<Z;fe++)P[fe]=arguments[fe+2];te.children=P}return le(T.type,de,te)},pe.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},pe.createElement=function(T,G,$){var te,de={},Z=null;if(G!=null)for(te in G.key!==void 0&&(Z=""+G.key),G)I.call(G,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(de[te]=G[te]);var P=arguments.length-2;if(P===1)de.children=$;else if(1<P){for(var fe=Array(P),ge=0;ge<P;ge++)fe[ge]=arguments[ge+2];de.children=fe}if(T&&T.defaultProps)for(te in P=T.defaultProps,P)de[te]===void 0&&(de[te]=P[te]);return le(T,Z,de)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:p,render:T}},pe.isValidElement=se,pe.lazy=function(T){return{$$typeof:S,_payload:{_status:-1,_result:T},_init:X}},pe.memo=function(T,G){return{$$typeof:y,type:T,compare:G===void 0?null:G}},pe.startTransition=function(T){var G=Y.T,$={};Y.T=$;try{var te=T(),de=Y.S;de!==null&&de($,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(J,ce)}catch(Z){ce(Z)}finally{G!==null&&$.types!==null&&(G.types=$.types),Y.T=G}},pe.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},pe.use=function(T){return Y.H.use(T)},pe.useActionState=function(T,G,$){return Y.H.useActionState(T,G,$)},pe.useCallback=function(T,G){return Y.H.useCallback(T,G)},pe.useContext=function(T){return Y.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,G){return Y.H.useDeferredValue(T,G)},pe.useEffect=function(T,G){return Y.H.useEffect(T,G)},pe.useEffectEvent=function(T){return Y.H.useEffectEvent(T)},pe.useId=function(){return Y.H.useId()},pe.useImperativeHandle=function(T,G,$){return Y.H.useImperativeHandle(T,G,$)},pe.useInsertionEffect=function(T,G){return Y.H.useInsertionEffect(T,G)},pe.useLayoutEffect=function(T,G){return Y.H.useLayoutEffect(T,G)},pe.useMemo=function(T,G){return Y.H.useMemo(T,G)},pe.useOptimistic=function(T,G){return Y.H.useOptimistic(T,G)},pe.useReducer=function(T,G,$){return Y.H.useReducer(T,G,$)},pe.useRef=function(T){return Y.H.useRef(T)},pe.useState=function(T){return Y.H.useState(T)},pe.useSyncExternalStore=function(T,G,$){return Y.H.useSyncExternalStore(T,G,$)},pe.useTransition=function(){return Y.H.useTransition()},pe.version="19.2.3",pe}var mp;function Fu(){return mp||(mp=1,ou.exports=Ox()),ou.exports}var g=Fu();const Pt=uv(g),fv=Tx({__proto__:null,default:Pt},[g]);var ru={exports:{}},Ri={},su={exports:{}},uu={};var pp;function zx(){return pp||(pp=1,(function(a){function i(_,L){var X=_.length;_.push(L);e:for(;0<X;){var ce=X-1>>>1,me=_[ce];if(0<f(me,L))_[ce]=L,_[X]=me,X=ce;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var L=_[0],X=_.pop();if(X!==L){_[0]=X;e:for(var ce=0,me=_.length,T=me>>>1;ce<T;){var G=2*(ce+1)-1,$=_[G],te=G+1,de=_[te];if(0>f($,X))te<me&&0>f(de,$)?(_[ce]=de,_[te]=X,ce=te):(_[ce]=$,_[G]=X,ce=G);else if(te<me&&0>f(de,X))_[ce]=de,_[te]=X,ce=te;else break e}}return L}function f(_,L){var X=_.sortIndex-L.sortIndex;return X!==0?X:_.id-L.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();a.unstable_now=function(){return h.now()-p}}var v=[],y=[],S=1,b=null,C=3,N=!1,D=!1,w=!1,j=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var L=r(y);L!==null;){if(L.callback===null)s(y);else if(L.startTime<=_)s(y),L.sortIndex=L.expirationTime,i(v,L);else break;L=r(y)}}function Q(_){if(w=!1,q(_),!D)if(r(v)!==null)D=!0,J||(J=!0,W());else{var L=r(y);L!==null&&ae(Q,L.startTime-_)}}var J=!1,Y=-1,I=5,le=-1;function re(){return j?!0:!(a.unstable_now()-le<I)}function se(){if(j=!1,J){var _=a.unstable_now();le=_;var L=!0;try{e:{D=!1,w&&(w=!1,O(Y),Y=-1),N=!0;var X=C;try{t:{for(q(_),b=r(v);b!==null&&!(b.expirationTime>_&&re());){var ce=b.callback;if(typeof ce=="function"){b.callback=null,C=b.priorityLevel;var me=ce(b.expirationTime<=_);if(_=a.unstable_now(),typeof me=="function"){b.callback=me,q(_),L=!0;break t}b===r(v)&&s(v),q(_)}else s(v);b=r(v)}if(b!==null)L=!0;else{var T=r(y);T!==null&&ae(Q,T.startTime-_),L=!1}}break e}finally{b=null,C=X,N=!1}L=void 0}}finally{L?W():J=!1}}}var W;if(typeof M=="function")W=function(){M(se)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ee=ne.port2;ne.port1.onmessage=se,W=function(){ee.postMessage(null)}}else W=function(){R(se,0)};function ae(_,L){Y=R(function(){_(a.unstable_now())},L)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(_){switch(C){case 1:case 2:case 3:var L=3;break;default:L=C}var X=C;C=L;try{return _()}finally{C=X}},a.unstable_requestPaint=function(){j=!0},a.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var X=C;C=_;try{return L()}finally{C=X}},a.unstable_scheduleCallback=function(_,L,X){var ce=a.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ce+X:ce):X=ce,_){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=X+me,_={id:S++,callback:L,priorityLevel:_,startTime:X,expirationTime:me,sortIndex:-1},X>ce?(_.sortIndex=X,i(y,_),r(v)===null&&_===r(y)&&(w?(O(Y),Y=-1):w=!0,ae(Q,X-ce))):(_.sortIndex=me,i(v,_),D||N||(D=!0,J||(J=!0,W()))),_},a.unstable_shouldYield=re,a.unstable_wrapCallback=function(_){var L=C;return function(){var X=C;C=L;try{return _.apply(this,arguments)}finally{C=X}}}})(uu)),uu}var vp;function _x(){return vp||(vp=1,su.exports=zx()),su.exports}var fu={exports:{}},ot={};var gp;function Dx(){if(gp)return ot;gp=1;var a=Fu();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)y+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:v,containerInfo:y,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ot.createPortal=function(v,y){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return d(v,y,null,S)},ot.flushSync=function(v){var y=h.T,S=s.p;try{if(h.T=null,s.p=2,v)return v()}finally{h.T=y,s.p=S,s.d.f()}},ot.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},ot.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ot.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,N=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:N}):S==="script"&&s.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:N,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ot.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var S=p(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},ot.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var S=y.as,b=p(S,y.crossOrigin);s.d.L(v,S,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ot.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},ot.requestFormReset=function(v){s.d.r(v)},ot.unstable_batchedUpdates=function(v,y){return v(y)},ot.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.2.3",ot}var yp;function dv(){if(yp)return fu.exports;yp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),fu.exports=Dx(),fu.exports}var xp;function Mx(){if(xp)return Ri;xp=1;var a=_x(),i=Fu(),r=dv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(d(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var o=c.alternate;if(o===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===o.child){for(o=c.child;o;){if(o===n)return v(c),e;if(o===l)return v(c),t;o=o.sibling}throw Error(s(188))}if(n.return!==l.return)n=c,l=o;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=o;break}if(x===l){m=!0,l=c,n=o;break}x=x.sibling}if(!m){for(x=o.child;x;){if(x===n){m=!0,n=o,l=c;break}if(x===l){m=!0,l=o,n=c;break}x=x.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case R:return"Profiler";case j:return"StrictMode";case Q:return"Suspense";case J:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var ae=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ce=[],me=-1;function T(e){return{current:e}}function G(e){0>me||(e.current=ce[me],ce[me]=null,me--)}function $(e,t){me++,ce[me]=e.current,e.current=t}var te=T(null),de=T(null),Z=T(null),P=T(null);function fe(e,t){switch($(Z,t),$(de,e),$(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mm(t),e=Lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(te),$(te,e)}function ge(){G(te),G(de),G(Z)}function je(e){e.memoizedState!==null&&$(P,e);var t=te.current,n=Lm(t,e.type);t!==n&&($(de,e),$(te,n))}function Ae(e){de.current===e&&(G(te),G(de)),P.current===e&&(G(P),Ci._currentValue=X)}var He,rt;function st(e){if(He===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||"",rt=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+He+e+rt}var hl=!1;function ml(e,t){if(!e||hl)return"";hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(k){var B=k}Reflect.construct(e,[],K)}else{try{K.call()}catch(k){B=k}e.call(K.prototype)}}else{try{throw Error()}catch(k){B=k}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(k){if(k&&B&&typeof k.stack=="string")return[k.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),m=o[0],x=o[1];if(m&&x){var E=m.split(`
4
+ `),H=x.split(`
5
+ `);for(c=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;if(l===E.length||c===H.length)for(l=E.length-1,c=H.length-1;1<=l&&0<=c&&E[l]!==H[c];)c--;for(;1<=l&&0<=c;l--,c--)if(E[l]!==H[c]){if(l!==1||c!==1)do if(l--,c--,0>c||E[l]!==H[c]){var V=`
6
+ `+E[l].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=l&&0<=c);break}}}finally{hl=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?st(n):""}function La(e,t){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return e.child!==t&&t!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return ml(e.type,!1);case 11:return ml(e.type.render,!1);case 1:return ml(e.type,!0);case 31:return st("Activity");default:return""}}function ff(e){try{var t="",n=null;do t+=La(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var Fo=Object.prototype.hasOwnProperty,Ko=a.unstable_scheduleCallback,Qo=a.unstable_cancelCallback,iy=a.unstable_shouldYield,cy=a.unstable_requestPaint,xt=a.unstable_now,oy=a.unstable_getCurrentPriorityLevel,df=a.unstable_ImmediatePriority,hf=a.unstable_UserBlockingPriority,Ji=a.unstable_NormalPriority,ry=a.unstable_LowPriority,mf=a.unstable_IdlePriority,sy=a.log,uy=a.unstable_setDisableYieldValue,Ua=null,bt=null;function Un(e){if(typeof sy=="function"&&uy(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ua,e)}catch{}}var St=Math.clz32?Math.clz32:hy,fy=Math.log,dy=Math.LN2;function hy(e){return e>>>=0,e===0?32:31-(fy(e)/dy|0)|0}var Wi=256,Ii=262144,$i=4194304;function pl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ec(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~o,l!==0?c=pl(l):(m&=x,m!==0?c=pl(m):n||(n=x&~e,n!==0&&(c=pl(n))))):(x=l&~o,x!==0?c=pl(x):m!==0?c=pl(m):n||(n=l&~e,n!==0&&(c=pl(n)))),c===0?0:t!==0&&t!==c&&(t&o)===0&&(o=c&-c,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:c}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function my(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pf(){var e=$i;return $i<<=1,($i&62914560)===0&&($i=4194304),e}function Zo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function py(e,t,n,l,c,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(n=m&~n;0<n;){var V=31-St(n),K=1<<V;x[V]=0,E[V]=-1;var B=H[V];if(B!==null)for(H[V]=null,V=0;V<B.length;V++){var k=B[V];k!==null&&(k.lane&=-536870913)}n&=~K}l!==0&&vf(e,l,0),o!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function vf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function gf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-St(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function yf(e,t){var n=t&-t;return n=(n&42)!==0?1:Po(n),(n&(e.suspendedLanes|t))!==0?0:n}function Po(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xf(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:ap(e.type))}function bf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Hn=Math.random().toString(36).slice(2),tt="__reactFiber$"+Hn,ft="__reactProps$"+Hn,Hl="__reactContainer$"+Hn,Wo="__reactEvents$"+Hn,vy="__reactListeners$"+Hn,gy="__reactHandles$"+Hn,Sf="__reactResources$"+Hn,ka="__reactMarker$"+Hn;function Io(e){delete e[tt],delete e[ft],delete e[Wo],delete e[vy],delete e[gy]}function Bl(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hl]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vm(e);e!==null;){if(n=e[tt])return n;e=Vm(e)}return t}e=n,n=e.parentNode}return null}function kl(e){if(e=e[tt]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Yl(e){var t=e[Sf];return t||(t=e[Sf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[ka]=!0}var wf=new Set,Ef={};function vl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Ef[e]=t,e=0;e<t.length;e++)wf.add(t[e])}var yy=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]*$"),Cf={},Nf={};function xy(e){return Fo.call(Nf,e)?!0:Fo.call(Cf,e)?!1:yy.test(e)?Nf[e]=!0:(Cf[e]=!0,!1)}function tc(e,t,n){if(xy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function nc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function by(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $o(e){if(!e._valueTracker){var t=jf(e)?"checked":"value";e._valueTracker=by(e,t,""+e[t])}}function Tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=jf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function lc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Sy=/[\n"\\]/g;function Ut(e){return e.replace(Sy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function er(e,t,n,l,c,o,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?tr(e,m,Lt(t)):n!=null?tr(e,m,Lt(n)):l!=null&&e.removeAttribute("value"),c==null&&o!=null&&(e.defaultChecked=!!o),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Lt(x):e.removeAttribute("name")}function Af(e,t,n,l,c,o,m,x){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){$o(e);return}n=n!=null?""+Lt(n):"",t=t!=null?""+Lt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),$o(e)}function tr(e,t,n){t==="number"&&lc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vl(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Lt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Rf(e,t,n){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Lt(n):""}function Of(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(ae(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Lt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),$o(e)}function Xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wy=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 zf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||wy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _f(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&zf(e,c,l)}else for(var o in t)t.hasOwnProperty(o)&&zf(e,o,t[o])}function nr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ey=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"]]),Cy=/^[\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 ac(e){return Cy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dn(){}var lr=null;function ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Fl=null;function Df(e){var t=kl(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(er(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[ft]||null;if(!c)throw Error(s(90));er(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Tf(l)}break e;case"textarea":Rf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vl(e,!!n.multiple,t,!1)}}}var ir=!1;function Mf(e,t,n){if(ir)return e(t,n);ir=!0;try{var l=e(t);return l}finally{if(ir=!1,(Gl!==null||Fl!==null)&&(Fc(),Gl&&(t=Gl,e=Fl,Fl=Gl=null,Df(t),e)))for(t=0;t<e.length;t++)Df(e[t])}}function qa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cr=!1;if(hn)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){cr=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{cr=!1}var Bn=null,or=null,ic=null;function Lf(){if(ic)return ic;var e,t=or,n=t.length,l,c="value"in Bn?Bn.value:Bn.textContent,o=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===c[o-l];l++);return ic=c.slice(e,1<l?1-l:void 0)}function cc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function oc(){return!0}function Uf(){return!1}function dt(e){function t(n,l,c,o,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(o):o[x]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?oc:Uf,this.isPropagationStopped=Uf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oc)},persist:function(){},isPersistent:oc}),t}var gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rc=dt(gl),Xa=b({},gl,{view:0,detail:0}),Ny=dt(Xa),rr,sr,Ga,sc=b({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ga&&(Ga&&e.type==="mousemove"?(rr=e.screenX-Ga.screenX,sr=e.screenY-Ga.screenY):sr=rr=0,Ga=e),rr)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),Hf=dt(sc),jy=b({},sc,{dataTransfer:0}),Ty=dt(jy),Ay=b({},Xa,{relatedTarget:0}),ur=dt(Ay),Ry=b({},gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Oy=dt(Ry),zy=b({},gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_y=dt(zy),Dy=b({},gl,{data:0}),Bf=dt(Dy),My={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ly={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"},Uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uy[e])?!!t[e]:!1}function fr(){return Hy}var By=b({},Xa,{key:function(e){if(e.key){var t=My[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ly[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fr,charCode:function(e){return e.type==="keypress"?cc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ky=dt(By),Yy=b({},sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kf=dt(Yy),qy=b({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fr}),Vy=dt(qy),Xy=b({},gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gy=dt(Xy),Fy=b({},sc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ky=dt(Fy),Qy=b({},gl,{newState:0,oldState:0}),Zy=dt(Qy),Py=[9,13,27,32],dr=hn&&"CompositionEvent"in window,Fa=null;hn&&"documentMode"in document&&(Fa=document.documentMode);var Jy=hn&&"TextEvent"in window&&!Fa,Yf=hn&&(!dr||Fa&&8<Fa&&11>=Fa),qf=" ",Vf=!1;function Xf(e,t){switch(e){case"keyup":return Py.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kl=!1;function Wy(e,t){switch(e){case"compositionend":return Gf(t);case"keypress":return t.which!==32?null:(Vf=!0,qf);case"textInput":return e=t.data,e===qf&&Vf?null:e;default:return null}}function Iy(e,t){if(Kl)return e==="compositionend"||!dr&&Xf(e,t)?(e=Lf(),ic=or=Bn=null,Kl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yf&&t.locale!=="ko"?null:t.data;default:return null}}var $y={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 Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$y[e.type]:t==="textarea"}function Kf(e,t,n,l){Gl?Fl?Fl.push(l):Fl=[l]:Gl=l,t=Ic(t,"onChange"),0<t.length&&(n=new rc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ka=null,Qa=null;function e0(e){Am(e,0)}function uc(e){var t=Ya(e);if(Tf(t))return e}function Qf(e,t){if(e==="change")return t}var Zf=!1;if(hn){var hr;if(hn){var mr="oninput"in document;if(!mr){var Pf=document.createElement("div");Pf.setAttribute("oninput","return;"),mr=typeof Pf.oninput=="function"}hr=mr}else hr=!1;Zf=hr&&(!document.documentMode||9<document.documentMode)}function Jf(){Ka&&(Ka.detachEvent("onpropertychange",Wf),Qa=Ka=null)}function Wf(e){if(e.propertyName==="value"&&uc(Qa)){var t=[];Kf(t,Qa,e,ar(e)),Mf(e0,t)}}function t0(e,t,n){e==="focusin"?(Jf(),Ka=t,Qa=n,Ka.attachEvent("onpropertychange",Wf)):e==="focusout"&&Jf()}function n0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uc(Qa)}function l0(e,t){if(e==="click")return uc(t)}function a0(e,t){if(e==="input"||e==="change")return uc(t)}function i0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:i0;function Za(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Fo.call(t,c)||!wt(e[c],t[c]))return!1}return!0}function If(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $f(e,t){var n=If(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function ed(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ed(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function td(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lc(e.document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var c0=hn&&"documentMode"in document&&11>=document.documentMode,Ql=null,vr=null,Pa=null,gr=!1;function nd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gr||Ql==null||Ql!==lc(l)||(l=Ql,"selectionStart"in l&&pr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Pa&&Za(Pa,l)||(Pa=l,l=Ic(vr,"onSelect"),0<l.length&&(t=new rc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ql)))}function yl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},yr={},ld={};hn&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function xl(e){if(yr[e])return yr[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return yr[e]=t[n];return e}var ad=xl("animationend"),id=xl("animationiteration"),cd=xl("animationstart"),o0=xl("transitionrun"),r0=xl("transitionstart"),s0=xl("transitioncancel"),od=xl("transitionend"),rd=new Map,xr="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(" ");xr.push("scrollEnd");function Ft(e,t){rd.set(e,t),vl(t,[e])}var fc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],Pl=0,br=0;function dc(){for(var e=Pl,t=br=Pl=0;t<e;){var n=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var c=Ht[t];Ht[t++]=null;var o=Ht[t];if(Ht[t++]=null,l!==null&&c!==null){var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}o!==0&&sd(n,c,o)}}function hc(e,t,n,l){Ht[Pl++]=e,Ht[Pl++]=t,Ht[Pl++]=n,Ht[Pl++]=l,br|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Sr(e,t,n,l){return hc(e,t,n,l),mc(e)}function bl(e,t){return hc(e,null,null,t),mc(e)}function sd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(c=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,c&&t!==null&&(c=31-St(n),e=o.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),o):null}function mc(e){if(50<gi)throw gi=0,Os=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function u0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,l){return new u0(e,t,n,l)}function wr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ud(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pc(e,t,n,l,c,o){var m=0;if(l=e,typeof e=="function")wr(e)&&(m=1);else if(typeof e=="string")m=px(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Et(31,n,t,c),e.elementType=le,e.lanes=o,e;case w:return Sl(n.children,c,o,t);case j:m=8,c|=24;break;case R:return e=Et(12,n,t,c|2),e.elementType=R,e.lanes=o,e;case Q:return e=Et(13,n,t,c),e.elementType=Q,e.lanes=o,e;case J:return e=Et(19,n,t,c),e.elementType=J,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case O:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case I:m=16,l=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Et(m,n,t,c),t.elementType=e,t.type=l,t.lanes=o,t}function Sl(e,t,n,l){return e=Et(7,e,l,t),e.lanes=n,e}function Er(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function fd(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function Cr(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var dd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=dd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ff(t)},dd.set(e,t),t)}return{value:e,source:t,stack:ff(t)}}var Wl=[],Il=0,vc=null,Ja=0,kt=[],Yt=0,kn=null,$t=1,en="";function pn(e,t){Wl[Il++]=Ja,Wl[Il++]=vc,vc=e,Ja=t}function hd(e,t,n){kt[Yt++]=$t,kt[Yt++]=en,kt[Yt++]=kn,kn=e;var l=$t;e=en;var c=32-St(l)-1;l&=~(1<<c),n+=1;var o=32-St(t)+c;if(30<o){var m=c-c%5;o=(l&(1<<m)-1).toString(32),l>>=m,c-=m,$t=1<<32-St(t)+c|n<<c|l,en=o+e}else $t=1<<o|n<<c|l,en=e}function Nr(e){e.return!==null&&(pn(e,1),hd(e,1,0))}function jr(e){for(;e===vc;)vc=Wl[--Il],Wl[Il]=null,Ja=Wl[--Il],Wl[Il]=null;for(;e===kn;)kn=kt[--Yt],kt[Yt]=null,en=kt[--Yt],kt[Yt]=null,$t=kt[--Yt],kt[Yt]=null}function md(e,t){kt[Yt++]=$t,kt[Yt++]=en,kt[Yt++]=kn,$t=t.id,en=t.overflow,kn=e}var nt=null,Le=null,Ee=!1,Yn=null,qt=!1,Tr=Error(s(519));function qn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wa(Bt(t,e)),Tr}function pd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ft]=l,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<xi.length;n++)be(xi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Af(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Of(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||_m(t.textContent,n)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=dn),t=!0):t=!1,t||qn(e,!0)}function vd(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:nt=nt.return}}function $l(e){if(e!==nt)return!1;if(!Ee)return vd(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fs(e.type,e.memoizedProps)),n=!n),n&&Le&&qn(e),vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=qm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Le=qm(e)}else t===27?(t=Le,tl(e.type)?(e=Js,Js=null,Le=e):Le=t):Le=nt?Xt(e.stateNode.nextSibling):null;return!0}function wl(){Le=nt=null,Ee=!1}function Ar(){var e=Yn;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Yn=null),e}function Wa(e){Yn===null?Yn=[e]:Yn.push(e)}var Rr=T(null),El=null,vn=null;function Vn(e,t,n){$(Rr,t._currentValue),t._currentValue=n}function gn(e){e._currentValue=Rr.current,G(Rr)}function Or(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function zr(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var o=c.dependencies;if(o!==null){var m=c.child;o=o.firstContext;e:for(;o!==null;){var x=o;o=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){o.lanes|=n,x=o.alternate,x!==null&&(x.lanes|=n),Or(o.return,n,e),l||(m=null);break e}o=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Or(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ea(e,t,n,l){e=null;for(var c=t,o=!1;c!==null;){if(!o){if((c.flags&524288)!==0)o=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var x=c.type;wt(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===P.current){if(m=c.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ci):e=[Ci])}c=c.return}e!==null&&zr(t,e,n,l),t.flags|=262144}function gc(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Cl(e){El=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return gd(El,e)}function yc(e,t){return El===null&&Cl(e),gd(e,t)}function gd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},vn===null){if(e===null)throw Error(s(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return n}var f0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},d0=a.unstable_scheduleCallback,h0=a.unstable_NormalPriority,Ke={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _r(){return{controller:new f0,data:new Map,refCount:0}}function Ia(e){e.refCount--,e.refCount===0&&d0(h0,function(){e.controller.abort()})}var $a=null,Dr=0,ta=0,na=null;function m0(e,t){if($a===null){var n=$a=[];Dr=0,ta=Us(),na={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Dr++,t.then(yd,yd),t}function yd(){if(--Dr===0&&$a!==null){na!==null&&(na.status="fulfilled");var e=$a;$a=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function p0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var xd=_.S;_.S=function(e,t){nm=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&m0(e,t),xd!==null&&xd(e,t)};var Nl=T(null);function Mr(){var e=Nl.current;return e!==null?e:Me.pooledCache}function xc(e,t){t===null?$(Nl,Nl.current):$(Nl,t.pool)}function bd(){var e=Mr();return e===null?null:{parent:Ke._currentValue,pool:e}}var la=Error(s(460)),Lr=Error(s(474)),bc=Error(s(542)),Sc={then:function(){}};function Sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(dn,dn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e;default:if(typeof t.status=="string")t.then(dn,dn);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e}throw Tl=t,la}}function jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Tl=n,la):n}}var Tl=null;function Ed(){if(Tl===null)throw Error(s(459));var e=Tl;return Tl=null,e}function Cd(e){if(e===la||e===bc)throw Error(s(483))}var aa=null,ei=0;function wc(e){var t=ei;return ei+=1,aa===null&&(aa=[]),wd(aa,e,t)}function ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ec(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Nd(e){function t(z,A){if(e){var U=z.deletions;U===null?(z.deletions=[A],z.flags|=16):U.push(A)}}function n(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function l(z){for(var A=new Map;z!==null;)z.key!==null?A.set(z.key,z):A.set(z.index,z),z=z.sibling;return A}function c(z,A){return z=mn(z,A),z.index=0,z.sibling=null,z}function o(z,A,U){return z.index=U,e?(U=z.alternate,U!==null?(U=U.index,U<A?(z.flags|=67108866,A):U):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function x(z,A,U,F){return A===null||A.tag!==6?(A=Er(U,z.mode,F),A.return=z,A):(A=c(A,U),A.return=z,A)}function E(z,A,U,F){var ue=U.type;return ue===w?V(z,A,U.props.children,F,U.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&jl(ue)===A.type)?(A=c(A,U.props),ti(A,U),A.return=z,A):(A=pc(U.type,U.key,U.props,null,z.mode,F),ti(A,U),A.return=z,A)}function H(z,A,U,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Cr(U,z.mode,F),A.return=z,A):(A=c(A,U.children||[]),A.return=z,A)}function V(z,A,U,F,ue){return A===null||A.tag!==7?(A=Sl(U,z.mode,F,ue),A.return=z,A):(A=c(A,U),A.return=z,A)}function K(z,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Er(""+A,z.mode,U),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return U=pc(A.type,A.key,A.props,null,z.mode,U),ti(U,A),U.return=z,U;case D:return A=Cr(A,z.mode,U),A.return=z,A;case I:return A=jl(A),K(z,A,U)}if(ae(A)||W(A))return A=Sl(A,z.mode,U,null),A.return=z,A;if(typeof A.then=="function")return K(z,wc(A),U);if(A.$$typeof===M)return K(z,yc(z,A),U);Ec(z,A)}return null}function B(z,A,U,F){var ue=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ue!==null?null:x(z,A,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case N:return U.key===ue?E(z,A,U,F):null;case D:return U.key===ue?H(z,A,U,F):null;case I:return U=jl(U),B(z,A,U,F)}if(ae(U)||W(U))return ue!==null?null:V(z,A,U,F,null);if(typeof U.then=="function")return B(z,A,wc(U),F);if(U.$$typeof===M)return B(z,A,yc(z,U),F);Ec(z,U)}return null}function k(z,A,U,F,ue){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return z=z.get(U)||null,x(A,z,""+F,ue);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return z=z.get(F.key===null?U:F.key)||null,E(A,z,F,ue);case D:return z=z.get(F.key===null?U:F.key)||null,H(A,z,F,ue);case I:return F=jl(F),k(z,A,U,F,ue)}if(ae(F)||W(F))return z=z.get(U)||null,V(A,z,F,ue,null);if(typeof F.then=="function")return k(z,A,U,wc(F),ue);if(F.$$typeof===M)return k(z,A,U,yc(A,F),ue);Ec(A,F)}return null}function ie(z,A,U,F){for(var ue=null,Ce=null,oe=A,ye=A=0,we=null;oe!==null&&ye<U.length;ye++){oe.index>ye?(we=oe,oe=null):we=oe.sibling;var Ne=B(z,oe,U[ye],F);if(Ne===null){oe===null&&(oe=we);break}e&&oe&&Ne.alternate===null&&t(z,oe),A=o(Ne,A,ye),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne,oe=we}if(ye===U.length)return n(z,oe),Ee&&pn(z,ye),ue;if(oe===null){for(;ye<U.length;ye++)oe=K(z,U[ye],F),oe!==null&&(A=o(oe,A,ye),Ce===null?ue=oe:Ce.sibling=oe,Ce=oe);return Ee&&pn(z,ye),ue}for(oe=l(oe);ye<U.length;ye++)we=k(oe,z,ye,U[ye],F),we!==null&&(e&&we.alternate!==null&&oe.delete(we.key===null?ye:we.key),A=o(we,A,ye),Ce===null?ue=we:Ce.sibling=we,Ce=we);return e&&oe.forEach(function(cl){return t(z,cl)}),Ee&&pn(z,ye),ue}function he(z,A,U,F){if(U==null)throw Error(s(151));for(var ue=null,Ce=null,oe=A,ye=A=0,we=null,Ne=U.next();oe!==null&&!Ne.done;ye++,Ne=U.next()){oe.index>ye?(we=oe,oe=null):we=oe.sibling;var cl=B(z,oe,Ne.value,F);if(cl===null){oe===null&&(oe=we);break}e&&oe&&cl.alternate===null&&t(z,oe),A=o(cl,A,ye),Ce===null?ue=cl:Ce.sibling=cl,Ce=cl,oe=we}if(Ne.done)return n(z,oe),Ee&&pn(z,ye),ue;if(oe===null){for(;!Ne.done;ye++,Ne=U.next())Ne=K(z,Ne.value,F),Ne!==null&&(A=o(Ne,A,ye),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne);return Ee&&pn(z,ye),ue}for(oe=l(oe);!Ne.done;ye++,Ne=U.next())Ne=k(oe,z,ye,Ne.value,F),Ne!==null&&(e&&Ne.alternate!==null&&oe.delete(Ne.key===null?ye:Ne.key),A=o(Ne,A,ye),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne);return e&&oe.forEach(function(jx){return t(z,jx)}),Ee&&pn(z,ye),ue}function De(z,A,U,F){if(typeof U=="object"&&U!==null&&U.type===w&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case N:e:{for(var ue=U.key;A!==null;){if(A.key===ue){if(ue=U.type,ue===w){if(A.tag===7){n(z,A.sibling),F=c(A,U.props.children),F.return=z,z=F;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&jl(ue)===A.type){n(z,A.sibling),F=c(A,U.props),ti(F,U),F.return=z,z=F;break e}n(z,A);break}else t(z,A);A=A.sibling}U.type===w?(F=Sl(U.props.children,z.mode,F,U.key),F.return=z,z=F):(F=pc(U.type,U.key,U.props,null,z.mode,F),ti(F,U),F.return=z,z=F)}return m(z);case D:e:{for(ue=U.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(z,A.sibling),F=c(A,U.children||[]),F.return=z,z=F;break e}else{n(z,A);break}else t(z,A);A=A.sibling}F=Cr(U,z.mode,F),F.return=z,z=F}return m(z);case I:return U=jl(U),De(z,A,U,F)}if(ae(U))return ie(z,A,U,F);if(W(U)){if(ue=W(U),typeof ue!="function")throw Error(s(150));return U=ue.call(U),he(z,A,U,F)}if(typeof U.then=="function")return De(z,A,wc(U),F);if(U.$$typeof===M)return De(z,A,yc(z,U),F);Ec(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(z,A.sibling),F=c(A,U),F.return=z,z=F):(n(z,A),F=Er(U,z.mode,F),F.return=z,z=F),m(z)):n(z,A)}return function(z,A,U,F){try{ei=0;var ue=De(z,A,U,F);return aa=null,ue}catch(oe){if(oe===la||oe===bc)throw oe;var Ce=Et(29,oe,null,z.mode);return Ce.lanes=F,Ce.return=z,Ce}}}var Al=Nd(!0),jd=Nd(!1),Xn=!1;function Ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=mc(e),sd(e,null,n),t}return hc(e,l,t,n),mc(e)}function ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,gf(e,n)}}function Br(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?c=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?c=o=t:o=o.next=t}else c=o=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var kr=!1;function li(){if(kr){var e=na;if(e!==null)throw e}}function ai(e,t,n,l){kr=!1;var c=e.updateQueue;Xn=!1;var o=c.firstBaseUpdate,m=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,H=E.next;E.next=null,m===null?o=H:m.next=H,m=E;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==m&&(x===null?V.firstBaseUpdate=H:x.next=H,V.lastBaseUpdate=E))}if(o!==null){var K=c.baseState;m=0,V=H=E=null,x=o;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Se&B)===B:(l&B)===B){B!==0&&B===ta&&(kr=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ie=e,he=x;B=t;var De=n;switch(he.tag){case 1:if(ie=he.payload,typeof ie=="function"){K=ie.call(De,K,B);break e}K=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=he.payload,B=typeof ie=="function"?ie.call(De,K,B):ie,B==null)break e;K=b({},K,B);break e;case 2:Xn=!0}}B=x.callback,B!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[B]:k.push(B))}else k={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(H=V=k,E=K):V=V.next=k,m|=B;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;k=x,x=k.next,k.next=null,c.lastBaseUpdate=k,c.shared.pending=null}}while(!0);V===null&&(E=K),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=V,o===null&&(c.shared.lanes=0),Jn|=m,e.lanes=m,e.memoizedState=K}}function Td(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Ad(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Td(n[e],t)}var ia=T(null),Cc=T(0);function Rd(e,t){e=jn,$(Cc,e),$(ia,t),jn=e|t.baseLanes}function Yr(){$(Cc,jn),$(ia,ia.current)}function qr(){jn=Cc.current,G(ia),G(Cc)}var Ct=T(null),Vt=null;function Kn(e){var t=e.alternate;$(Xe,Xe.current&1),$(Ct,e),Vt===null&&(t===null||ia.current!==null||t.memoizedState!==null)&&(Vt=e)}function Vr(e){$(Xe,Xe.current),$(Ct,e),Vt===null&&(Vt=e)}function Od(e){e.tag===22?($(Xe,Xe.current),$(Ct,e),Vt===null&&(Vt=e)):Qn()}function Qn(){$(Xe,Xe.current),$(Ct,Ct.current)}function Nt(e){G(Ct),Vt===e&&(Vt=null),G(Xe)}var Xe=T(0);function Nc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Zs(n)||Ps(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yn=0,ve=null,ze=null,Qe=null,jc=!1,ca=!1,Rl=!1,Tc=0,ii=0,oa=null,v0=0;function qe(){throw Error(s(321))}function Xr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function Gr(e,t,n,l,c,o){return yn=o,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?hh:is,Rl=!1,o=n(l,c),Rl=!1,ca&&(o=_d(t,n,l,c)),zd(e),o}function zd(e){_.H=ri;var t=ze!==null&&ze.next!==null;if(yn=0,Qe=ze=ve=null,jc=!1,ii=0,oa=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&gc(e)&&(Ze=!0))}function _d(e,t,n,l){ve=e;var c=0;do{if(ca&&(oa=null),ii=0,ca=!1,25<=c)throw Error(s(301));if(c+=1,Qe=ze=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=mh,o=t(n,l)}while(ca);return o}function g0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ci(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ve.flags|=1024),t}function Fr(){var e=Tc!==0;return Tc=0,e}function Kr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Qr(e){if(jc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jc=!1}yn=0,Qe=ze=ve=null,ca=!1,ii=Tc=0,oa=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ve.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ge(){if(ze===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Qe===null?ve.memoizedState:Qe.next;if(t!==null)Qe=t,ze=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Qe===null?ve.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Ac(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ci(e){var t=ii;return ii+=1,oa===null&&(oa=[]),e=wd(oa,e,t),t=ve,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?hh:is),e}function Rc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ci(e);if(e.$$typeof===M)return lt(e)}throw Error(s(438,String(e)))}function Zr(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ac(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=re;return t.index++,n}function xn(e,t){return typeof t=="function"?t(e):t}function Oc(e){var t=Ge();return Pr(t,ze,e)}function Pr(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var c=e.baseQueue,o=l.pending;if(o!==null){if(c!==null){var m=c.next;c.next=o.next,o.next=m}t.baseQueue=c=o,l.pending=null}if(o=e.baseState,c===null)e.memoizedState=o;else{t=c.next;var x=m=null,E=null,H=t,V=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Se&K)===K:(yn&K)===K){var B=H.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),K===ta&&(V=!0);else if((yn&B)===B){H=H.next,B===ta&&(V=!0);continue}else K={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=K,m=o):E=E.next=K,ve.lanes|=B,Jn|=B;K=H.action,Rl&&n(o,K),o=H.hasEagerState?H.eagerState:n(o,K)}else B={lane:K,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=B,m=o):E=E.next=B,ve.lanes|=K,Jn|=K;H=H.next}while(H!==null&&H!==t);if(E===null?m=o:E.next=x,!wt(o,e.memoizedState)&&(Ze=!0,V&&(n=na,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=E,l.lastRenderedState=o}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Jr(e){var t=Ge(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,o=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do o=e(o,m.action),m=m.next;while(m!==c);wt(o,t.memoizedState)||(Ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function Dd(e,t,n){var l=ve,c=Ge(),o=Ee;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!wt((ze||c).memoizedState,n);if(m&&(c.memoizedState=n,Ze=!0),c=c.queue,$r(Ud.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,ra(9,{destroy:void 0},Ld.bind(null,l,c,n,t),null),Me===null)throw Error(s(349));o||(yn&127)!==0||Md(l,t,n)}return n}function Md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=Ac(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ld(e,t,n,l){t.value=n,t.getSnapshot=l,Hd(t)&&Bd(e)}function Ud(e,t,n){return n(function(){Hd(t)&&Bd(e)})}function Hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function Bd(e){var t=bl(e,2);t!==null&&gt(t,e,2)}function Wr(e){var t=ut();if(typeof e=="function"){var n=e;if(e=n(),Rl){Un(!0);try{n()}finally{Un(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},t}function kd(e,t,n,l){return e.baseState=n,Pr(e,ze,typeof l=="function"?l:xn)}function y0(e,t,n,l,c){if(Dc(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};_.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Yd(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yd(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var x=n(c,l),E=_.S;E!==null&&E(m,x),qd(e,t,x)}catch(H){Ir(e,t,H)}finally{o!==null&&m.types!==null&&(o.types=m.types),_.T=o}}else try{o=n(c,l),qd(e,t,o)}catch(H){Ir(e,t,H)}}function qd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Vd(e,t,l)},function(l){return Ir(e,t,l)}):Vd(e,t,n)}function Vd(e,t,n){t.status="fulfilled",t.value=n,Xd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yd(e,n)))}function Ir(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Xd(t),t=t.next;while(t!==l)}e.action=null}function Xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gd(e,t){return t}function Fd(e,t){if(Ee){var n=Me.formState;if(n!==null){e:{var l=ve;if(Ee){if(Le){t:{for(var c=Le,o=qt;c.nodeType!==8;){if(!o){c=null;break t}if(c=Xt(c.nextSibling),c===null){c=null;break t}}o=c.data,c=o==="F!"||o==="F"?c:null}if(c){Le=Xt(c.nextSibling),l=c.data==="F!";break e}}qn(l)}l=!1}l&&(t=n[0])}}return n=ut(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gd,lastRenderedState:t},n.queue=l,n=uh.bind(null,ve,l),l.dispatch=n,l=Wr(!1),o=as.bind(null,ve,!1,l.queue),l=ut(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=y0.bind(null,ve,c,o,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function Kd(e){var t=Ge();return Qd(t,ze,e)}function Qd(e,t,n){if(t=Pr(e,t,Gd)[0],e=Oc(xn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ci(t)}catch(m){throw m===la?bc:m}else l=t;t=Ge();var c=t.queue,o=c.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,ra(9,{destroy:void 0},x0.bind(null,c,n),null)),[l,o,e]}function x0(e,t){e.action=t}function Zd(e){var t=Ge(),n=ze;if(n!==null)return Qd(t,n,e);Ge(),t=t.memoizedState,n=Ge();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ra(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Ac(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Pd(){return Ge().memoizedState}function zc(e,t,n,l){var c=ut();ve.flags|=e,c.memoizedState=ra(1|t,{destroy:void 0},n,l===void 0?null:l)}function _c(e,t,n,l){var c=Ge();l=l===void 0?null:l;var o=c.memoizedState.inst;ze!==null&&l!==null&&Xr(l,ze.memoizedState.deps)?c.memoizedState=ra(t,o,n,l):(ve.flags|=e,c.memoizedState=ra(1|t,o,n,l))}function Jd(e,t){zc(8390656,8,e,t)}function $r(e,t){_c(2048,8,e,t)}function b0(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Ac(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Wd(e){var t=Ge().memoizedState;return b0({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Id(e,t){return _c(4,2,e,t)}function $d(e,t){return _c(4,4,e,t)}function eh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function th(e,t,n){n=n!=null?n.concat([e]):null,_c(4,4,eh.bind(null,t,e),n)}function es(){}function nh(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Xr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function lh(e,t){var n=Ge();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Xr(t,l[1]))return l[0];if(l=e(),Rl){Un(!0);try{e()}finally{Un(!1)}}return n.memoizedState=[l,t],l}function ts(e,t,n){return n===void 0||(yn&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=am(),ve.lanes|=e,Jn|=e,n)}function ah(e,t,n,l){return wt(n,t)?n:ia.current!==null?(e=ts(e,n,l),wt(e,t)||(Ze=!0),e):(yn&42)===0||(yn&1073741824)!==0&&(Se&261930)===0?(Ze=!0,e.memoizedState=n):(e=am(),ve.lanes|=e,Jn|=e,t)}function ih(e,t,n,l,c){var o=L.p;L.p=o!==0&&8>o?o:8;var m=_.T,x={};_.T=x,as(e,!1,t,n);try{var E=c(),H=_.S;if(H!==null&&H(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var V=p0(E,l);oi(e,t,V,At(e))}else oi(e,t,l,At(e))}catch(K){oi(e,t,{then:function(){},status:"rejected",reason:K},At())}finally{L.p=o,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function S0(){}function ns(e,t,n,l){if(e.tag!==5)throw Error(s(476));var c=ch(e).queue;ih(e,c,t,X,n===null?S0:function(){return oh(e),n(l)})}function ch(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:X},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oh(e){var t=ch(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},At())}function ls(){return lt(Ci)}function rh(){return Ge().memoizedState}function sh(){return Ge().memoizedState}function w0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=At();e=Gn(n);var l=Fn(t,e,n);l!==null&&(gt(l,t,n),ni(l,t,n)),t={cache:_r()},e.payload=t;return}t=t.return}}function E0(e,t,n){var l=At();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Dc(e)?fh(t,n):(n=Sr(e,t,n,l),n!==null&&(gt(n,e,l),dh(n,t,l)))}function uh(e,t,n){var l=At();oi(e,t,n,l)}function oi(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dc(e))fh(t,c);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,x=o(m,n);if(c.hasEagerState=!0,c.eagerState=x,wt(x,m))return hc(e,t,c,0),Me===null&&dc(),!1}catch{}if(n=Sr(e,t,c,l),n!==null)return gt(n,e,l),dh(n,t,l),!0}return!1}function as(e,t,n,l){if(l={lane:2,revertLane:Us(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Dc(e)){if(t)throw Error(s(479))}else t=Sr(e,n,l,2),t!==null&&gt(t,e,2)}function Dc(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function fh(e,t){ca=jc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,gf(e,n)}}var ri={readContext:lt,use:Rc,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};ri.useEffectEvent=qe;var hh={readContext:lt,use:Rc,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Jd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,zc(4194308,4,eh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zc(4194308,4,e,t)},useInsertionEffect:function(e,t){zc(4,2,e,t)},useMemo:function(e,t){var n=ut();t=t===void 0?null:t;var l=e();if(Rl){Un(!0);try{e()}finally{Un(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=ut();if(n!==void 0){var c=n(t);if(Rl){Un(!0);try{n(t)}finally{Un(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=E0.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Wr(e);var t=e.queue,n=uh.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:es,useDeferredValue:function(e,t){var n=ut();return ts(n,e,t)},useTransition:function(){var e=Wr(!1);return e=ih.bind(null,ve,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ve,c=ut();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Me===null)throw Error(s(349));(Se&127)!==0||Md(l,t,n)}c.memoizedState=n;var o={value:n,getSnapshot:t};return c.queue=o,Jd(Ud.bind(null,l,o,e),[e]),l.flags|=2048,ra(9,{destroy:void 0},Ld.bind(null,l,o,n,t),null),n},useId:function(){var e=ut(),t=Me.identifierPrefix;if(Ee){var n=en,l=$t;n=(l&~(1<<32-St(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Tc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=v0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ls,useFormState:Fd,useActionState:Fd,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=as.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Zr,useCacheRefresh:function(){return ut().memoizedState=w0.bind(null,ve)},useEffectEvent:function(e){var t=ut(),n={impl:e};return t.memoizedState=n,function(){if((Te&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},is={readContext:lt,use:Rc,useCallback:nh,useContext:lt,useEffect:$r,useImperativeHandle:th,useInsertionEffect:Id,useLayoutEffect:$d,useMemo:lh,useReducer:Oc,useRef:Pd,useState:function(){return Oc(xn)},useDebugValue:es,useDeferredValue:function(e,t){var n=Ge();return ah(n,ze.memoizedState,e,t)},useTransition:function(){var e=Oc(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Dd,useId:rh,useHostTransitionStatus:ls,useFormState:Kd,useActionState:Kd,useOptimistic:function(e,t){var n=Ge();return kd(n,ze,e,t)},useMemoCache:Zr,useCacheRefresh:sh};is.useEffectEvent=Wd;var mh={readContext:lt,use:Rc,useCallback:nh,useContext:lt,useEffect:$r,useImperativeHandle:th,useInsertionEffect:Id,useLayoutEffect:$d,useMemo:lh,useReducer:Jr,useRef:Pd,useState:function(){return Jr(xn)},useDebugValue:es,useDeferredValue:function(e,t){var n=Ge();return ze===null?ts(n,e,t):ah(n,ze.memoizedState,e,t)},useTransition:function(){var e=Jr(xn)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:ci(e),t]},useSyncExternalStore:Dd,useId:rh,useHostTransitionStatus:ls,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,t){var n=Ge();return ze!==null?kd(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Zr,useCacheRefresh:sh};mh.useEffectEvent=Wd;function cs(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var os={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=At(),c=Gn(l);c.payload=t,n!=null&&(c.callback=n),t=Fn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=At(),c=Gn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Fn(e,c,l),t!==null&&(gt(t,e,l),ni(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=At(),l=Gn(n);l.tag=2,t!=null&&(l.callback=t),t=Fn(e,l,n),t!==null&&(gt(t,e,n),ni(t,e,n))}};function ph(e,t,n,l,c,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,m):t.prototype&&t.prototype.isPureReactComponent?!Za(n,l)||!Za(c,o):!0}function vh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function Ol(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function gh(e){fc(e)}function yh(e){console.error(e)}function xh(e){fc(e)}function Mc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function bh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function rs(e,t,n){return n=Gn(n),n.tag=3,n.payload={element:null},n.callback=function(){Mc(e,t)},n}function Sh(e){return e=Gn(e),e.tag=3,e}function wh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var o=l.value;e.payload=function(){return c(o)},e.callback=function(){bh(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){bh(t,n,l),typeof c!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function C0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ea(t,n,c,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?Kc():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ds(e,l,c)),!1;case 22:return n.flags|=65536,l===Sc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Ds(e,l,c)),!1}throw Error(s(435,n.tag))}return Ds(e,l,c),Kc(),!1}if(Ee)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Tr&&(e=Error(s(422),{cause:l}),Wa(Bt(e,n)))):(l!==Tr&&(t=Error(s(423),{cause:l}),Wa(Bt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Bt(l,n),c=rs(e.stateNode,l,c),Br(e,c),Ve!==4&&(Ve=2)),!1;var o=Error(s(520),{cause:l});if(o=Bt(o,n),vi===null?vi=[o]:vi.push(o),Ve!==4&&(Ve=2),t===null)return!0;l=Bt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=rs(n.stateNode,l,e),Br(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Wn===null||!Wn.has(o))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Sh(c),wh(c,e,n,l),Br(n,c),!1}n=n.return}while(n!==null);return!1}var ss=Error(s(461)),Ze=!1;function at(e,t,n,l){t.child=e===null?jd(t,null,n,l):Al(t,e.child,n,l)}function Eh(e,t,n,l,c){n=n.render;var o=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Cl(t),l=Gr(e,t,n,m,o,c),x=Fr(),e!==null&&!Ze?(Kr(e,t,c),bn(e,t,c)):(Ee&&x&&Nr(t),t.flags|=1,at(e,t,l,c),t.child)}function Ch(e,t,n,l,c){if(e===null){var o=n.type;return typeof o=="function"&&!wr(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Nh(e,t,o,l,c)):(e=pc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!gs(e,c)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(m,l)&&e.ref===t.ref)return bn(e,t,c)}return t.flags|=1,e=mn(o,l),e.ref=t.ref,e.return=t,t.child=e}function Nh(e,t,n,l,c){if(e!==null){var o=e.memoizedProps;if(Za(o,l)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=l=o,gs(e,c))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,bn(e,t,c)}return us(e,t,n,l,c)}function jh(e,t,n,l){var c=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,c=0;l!==null;)c=c|l.lanes|l.childLanes,l=l.sibling;l=c&~o}else l=0,t.child=null;return Th(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xc(t,o!==null?o.cachePool:null),o!==null?Rd(t,o):Yr(),Od(t);else return l=t.lanes=536870912,Th(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(xc(t,o.cachePool),Rd(t,o),Qn(),t.memoizedState=null):(e!==null&&xc(t,null),Yr(),Qn());return at(e,t,c,n),t.child}function si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Th(e,t,n,l,c){var o=Mr();return o=o===null?null:{parent:Ke._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&xc(t,null),Yr(),Od(t),e!==null&&ea(e,t,l,!0),t.childLanes=c,null}function Lc(e,t){return t=Hc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ah(e,t,n){return Al(t,e.child,null,n),e=Lc(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function N0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=Lc(t,l),t.lanes=536870912,si(null,e);if(Vr(t),(e=Le)?(e=Ym(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:$t,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=fd(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Lc(t,l)}var o=e.memoizedState;if(o!==null){var m=o.dehydrated;if(Vr(t),c)if(t.flags&256)t.flags&=-257,t=Ah(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ze||ea(e,t,n,!1),c=(n&e.childLanes)!==0,Ze||c){if(l=Me,l!==null&&(m=yf(l,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,bl(e,m),gt(l,e,m),ss;Kc(),t=Ah(e,t,n)}else e=o.treeContext,Le=Xt(m.nextSibling),nt=t,Ee=!0,Yn=null,qt=!1,e!==null&&md(t,e),t=Lc(t,l),t.flags|=4096;return t}return e=mn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function us(e,t,n,l,c){return Cl(t),n=Gr(e,t,n,l,void 0,c),l=Fr(),e!==null&&!Ze?(Kr(e,t,c),bn(e,t,c)):(Ee&&l&&Nr(t),t.flags|=1,at(e,t,n,c),t.child)}function Rh(e,t,n,l,c,o){return Cl(t),t.updateQueue=null,n=_d(t,l,n,c),zd(e),l=Fr(),e!==null&&!Ze?(Kr(e,t,o),bn(e,t,o)):(Ee&&l&&Nr(t),t.flags|=1,at(e,t,n,o),t.child)}function Oh(e,t,n,l,c){if(Cl(t),t.stateNode===null){var o=Jl,m=n.contextType;typeof m=="object"&&m!==null&&(o=lt(m)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=os,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},Ur(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?lt(m):Jl,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(cs(t,n,m,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&os.enqueueReplaceState(o,o.state,null),ai(t,l,o,c),li(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var x=t.memoizedProps,E=Ol(n,x);o.props=E;var H=o.context,V=n.contextType;m=Jl,typeof V=="object"&&V!==null&&(m=lt(V));var K=n.getDerivedStateFromProps;V=typeof K=="function"||typeof o.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,V||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(x||H!==m)&&vh(t,o,l,m),Xn=!1;var B=t.memoizedState;o.state=B,ai(t,l,o,c),li(),H=t.memoizedState,x||B!==H||Xn?(typeof K=="function"&&(cs(t,n,K,l),H=t.memoizedState),(E=Xn||ph(t,n,E,l,B,H,m))?(V||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),o.props=l,o.state=H,o.context=m,l=E):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,Hr(e,t),m=t.memoizedProps,V=Ol(n,m),o.props=V,K=t.pendingProps,B=o.context,H=n.contextType,E=Jl,typeof H=="object"&&H!==null&&(E=lt(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==K||B!==E)&&vh(t,o,l,E),Xn=!1,B=t.memoizedState,o.state=B,ai(t,l,o,c),li();var k=t.memoizedState;m!==K||B!==k||Xn||e!==null&&e.dependencies!==null&&gc(e.dependencies)?(typeof x=="function"&&(cs(t,n,x,l),k=t.memoizedState),(V=Xn||ph(t,n,V,l,B,k,E)||e!==null&&e.dependencies!==null&&gc(e.dependencies))?(H||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,k,E),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,k,E)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),o.props=l,o.state=k,o.context=E,l=V):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,Uc(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,c),t.child=Al(t,null,n,c)):at(e,t,n,c),t.memoizedState=o.state,e=t.child):e=bn(e,t,c),e}function zh(e,t,n,l){return wl(),t.flags|=256,at(e,t,n,l),t.child}var fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ds(e){return{baseLanes:e,cachePool:bd()}}function hs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Tt),e}function _h(e,t,n){var l=t.pendingProps,c=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(c?Kn(t):Qn(),(e=Le)?(e=Ym(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:$t,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=fd(e),n.return=t,t.child=n,nt=t,Le=null)):e=null,e===null)throw qn(t);return Ps(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?(Qn(),c=t.mode,x=Hc({mode:"hidden",children:x},c),l=Sl(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=ds(n),l.childLanes=hs(e,m,n),t.memoizedState=fs,si(null,l)):(Kn(t),ms(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(o)t.flags&256?(Kn(t),t.flags&=-257,t=ps(e,t,n)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),x=l.fallback,c=t.mode,l=Hc({mode:"visible",children:l.children},c),x=Sl(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=ds(n),l.childLanes=hs(e,m,n),t.memoizedState=fs,t=si(null,l));else if(Kn(t),Ps(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(s(419)),l.stack="",l.digest=m,Wa({value:l,source:null,stack:null}),t=ps(e,t,n)}else if(Ze||ea(e,t,n,!1),m=(n&e.childLanes)!==0,Ze||m){if(m=Me,m!==null&&(l=yf(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,bl(e,l),gt(m,e,l),ss;Zs(x)||Kc(),t=ps(e,t,n)}else Zs(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Le=Xt(x.nextSibling),nt=t,Ee=!0,Yn=null,qt=!1,e!==null&&md(t,e),t=ms(t,l.children),t.flags|=4096);return t}return c?(Qn(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=mn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=mn(H,x):(x=Sl(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,si(null,l),l=t.child,x=e.child.memoizedState,x===null?x=ds(n):(c=x.cachePool,c!==null?(E=Ke._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=bd(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=hs(e,m,n),t.memoizedState=fs,si(e.child,l)):(Kn(t),n=e.child,e=n.sibling,n=mn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function ms(e,t){return t=Hc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hc(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function ps(e,t,n){return Al(t,e.child,null,n),e=ms(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Or(e.return,t,n)}function vs(e,t,n,l,c,o){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:o}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=o)}function Mh(e,t,n){var l=t.pendingProps,c=l.revealOrder,o=l.tail;l=l.children;var m=Xe.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,$(Xe,m),at(e,t,l,n),l=Ee?Ja:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dh(e,n,t);else if(e.tag===19)Dh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Nc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),vs(t,!1,c,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Nc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}vs(t,!0,n,null,o,l);break;case"together":vs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gc(e)))}function j0(e,t,n){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Vn(t,Ke,e.memoizedState.cache),wl();break;case 27:case 5:je(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Kn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?_h(e,t,n):(Kn(t),e=bn(e,t,n),e!==null?e.sibling:null);Kn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ea(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Mh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),$(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,jh(e,t,n,t.pendingProps);case 24:Vn(t,Ke,e.memoizedState.cache)}return bn(e,t,n)}function Lh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!gs(e,n)&&(t.flags&128)===0)return Ze=!1,j0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,Ee&&(t.flags&1048576)!==0&&hd(t,Ja,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")wr(e)?(l=Ol(e,l),t.tag=1,t=Oh(null,t,e,l,n)):(t.tag=0,t=us(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Eh(null,t,e,l,n);break e}else if(c===Y){t.tag=14,t=Ch(null,t,e,l,n);break e}}throw t=ee(e)||e,Error(s(306,t,""))}}return t;case 0:return us(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=Ol(l,t.pendingProps),Oh(e,t,l,c,n);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var o=t.memoizedState;c=o.element,Hr(e,t),ai(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Vn(t,Ke,l),l!==o.cache&&zr(t,[Ke],n,!0),li(),l=m.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=zh(e,t,l,n);break e}else if(l!==c){c=Bt(Error(s(424)),t),Wa(c),t=zh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=Xt(e.firstChild),nt=t,Ee=!0,Yn=null,qt=!0,n=jd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wl(),l===c){t=bn(e,t,n);break e}at(e,t,l,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Km(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,l=$c(Z.current).createElement(n),l[tt]=t,l[ft]=e,it(l,n,e),$e(l),t.stateNode=l):t.memoizedState=Km(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&Ee&&(l=t.stateNode=Xm(t.type,t.pendingProps,Z.current),nt=t,qt=!0,c=Le,tl(t.type)?(Js=c,Le=Xt(l.firstChild)):Le=c),at(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((c=l=Le)&&(l=nx(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,nt=t,Le=Xt(l.firstChild),qt=!1,c=!0):c=!1),c||qn(t)),je(t),c=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,l=o.children,Fs(c,o)?l=null:m!==null&&Fs(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Gr(e,t,g0,null,null,n),Ci._currentValue=c),Uc(e,t),at(e,t,l,n),t.child;case 6:return e===null&&Ee&&((e=n=Le)&&(n=lx(n,t.pendingProps,qt),n!==null?(t.stateNode=n,nt=t,Le=null,e=!0):e=!1),e||qn(t)),null;case 13:return _h(e,t,n);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):at(e,t,l,n),t.child;case 11:return Eh(e,t,t.type,t.pendingProps,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Vn(t,t.type,l.value),at(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Cl(t),c=lt(c),l=l(c),t.flags|=1,at(e,t,l,n),t.child;case 14:return Ch(e,t,t.type,t.pendingProps,n);case 15:return Nh(e,t,t.type,t.pendingProps,n);case 19:return Mh(e,t,n);case 31:return N0(e,t,n);case 22:return jh(e,t,n,t.pendingProps);case 24:return Cl(t),l=lt(Ke),e===null?(c=Mr(),c===null&&(c=Me,o=_r(),c.pooledCache=o,o.refCount++,o!==null&&(c.pooledCacheLanes|=n),c=o),t.memoizedState={parent:l,cache:c},Ur(t),Vn(t,Ke,c)):((e.lanes&n)!==0&&(Hr(e,t),ai(t,null,null,n),li()),c=e.memoizedState,o=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Vn(t,Ke,l)):(l=o.cache,Vn(t,Ke,l),l!==c.cache&&zr(t,[Ke],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Sn(e){e.flags|=4}function ys(e,t,n,l,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(rm())e.flags|=8192;else throw Tl=Sc,Lr}else e.flags&=-16777217}function Uh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wm(t))if(rm())e.flags|=8192;else throw Tl=Sc,Lr}function Bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pf():536870912,e.lanes|=t,da|=t)}function ui(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function T0(e,t,n){var l=t.pendingProps;switch(jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),gn(Ke),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($l(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ar())),Ue(t),null;case 26:var c=t.type,o=t.memoizedState;return e===null?(Sn(t),o!==null?(Ue(t),Uh(t,o)):(Ue(t),ys(t,c,null,l,n))):o?o!==e.memoizedState?(Sn(t),Ue(t),Uh(t,o)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),Ue(t),ys(t,c,e,l,n)),null;case 27:if(Ae(t),n=Z.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}e=te.current,$l(t)?pd(t):(e=Xm(c,l,n),t.stateNode=e,Sn(t))}return Ue(t),null;case 5:if(Ae(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}if(o=te.current,$l(t))pd(t);else{var m=$c(Z.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}o[tt]=t,o[ft]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(it(o,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return Ue(t),ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Z.current,$l(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=nt,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||_m(e.nodeValue,n)),e||qn(t,!0)}else e=$c(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=$l(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=Ar(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=$l(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[tt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),c=!1}else c=Ar(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Ue(t),null);case 4:return ge(),e===null&&Ys(t.stateNode.containerInfo),Ue(t),null;case 10:return gn(t.type),Ue(t),null;case 19:if(G(Xe),l=t.memoizedState,l===null)return Ue(t),null;if(c=(t.flags&128)!==0,o=l.rendering,o===null)if(c)ui(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Nc(e),o!==null){for(t.flags|=128,ui(l,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ud(n,e),n=n.sibling;return $(Xe,Xe.current&1|2),Ee&&pn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>Xc&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304)}else{if(!c)if(e=Nc(o),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Ee)return Ue(t),null}else 2*xt()-l.renderingStartTime>Xc&&n!==536870912&&(t.flags|=128,c=!0,ui(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,n=Xe.current,$(Xe,c?n&1|2:n&1),Ee&&pn(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return Nt(t),qr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(Nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gn(Ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function A0(e,t){switch(jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gn(Ke),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Xe),null;case 4:return ge(),null;case 10:return gn(t.type),null;case 22:case 23:return Nt(t),qr(),e!==null&&G(Nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gn(Ke),null;case 25:return null;default:return null}}function Hh(e,t){switch(jr(t),t.tag){case 3:gn(Ke),ge();break;case 26:case 27:case 5:Ae(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:G(Xe);break;case 10:gn(t.type);break;case 22:case 23:Nt(t),qr(),e!==null&&G(Nl);break;case 24:gn(Ke)}}function fi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var o=n.create,m=n.inst;l=o(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){Oe(t,t.return,x)}}function Zn(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var o=c.next;l=o;do{if((l.tag&e)===e){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,c=t;var E=n,H=x;try{H()}catch(V){Oe(c,E,V)}}}l=l.next}while(l!==o)}}catch(V){Oe(t,t.return,V)}}function Bh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ad(t,n)}catch(l){Oe(e,e.return,l)}}}function kh(e,t,n){n.props=Ol(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function di(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){Oe(e,t,c)}}function tn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Oe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Oe(e,t,c)}else n.current=null}function Yh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Oe(e,e.return,c)}}function xs(e,t,n){try{var l=e.stateNode;J0(l,e.type,n,t),l[ft]=t}catch(c){Oe(e,e.return,c)}}function qh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function bs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ss(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dn));else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ss(e,t,n),e=e.sibling;e!==null;)Ss(e,t,n),e=e.sibling}function kc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Vh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);it(t,l,n),t[tt]=e,t[ft]=n}catch(o){Oe(e,e.return,o)}}var wn=!1,Pe=!1,ws=!1,Xh=typeof WeakSet=="function"?WeakSet:Set,et=null;function R0(e,t){if(e=e.containerInfo,Xs=co,e=td(e),pr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,V=0,K=e,B=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==o||l!==0&&K.nodeType!==3||(E=m+l),K.nodeType===3&&(m+=K.nodeValue.length),(k=K.firstChild)!==null;)B=K,K=k;for(;;){if(K===e)break t;if(B===n&&++H===c&&(x=m),B===o&&++V===l&&(E=m),(k=K.nextSibling)!==null)break;K=B,B=K.parentNode}K=k}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gs={focusedElem:e,selectionRange:n},co=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,c=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var ie=Ol(n.type,c);e=l.getSnapshotBeforeUpdate(ie,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(he){Oe(n,n.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Qs(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Gh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Cn(e,n),l&4&&fi(5,n);break;case 1:if(Cn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var c=Ol(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Bh(n),l&512&&di(n,n.return);break;case 3:if(Cn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ad(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&Vh(n);case 26:case 5:Cn(e,n),t===null&&l&4&&Yh(n),l&512&&di(n,n.return);break;case 12:Cn(e,n);break;case 31:Cn(e,n),l&4&&Qh(e,n);break;case 13:Cn(e,n),l&4&&Zh(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=B0.bind(null,n),ax(e,n))));break;case 22:if(l=n.memoizedState!==null||wn,!l){t=t!==null&&t.memoizedState!==null||Pe,c=wn;var o=Pe;wn=l,(Pe=t)&&!o?Nn(e,n,(n.subtreeFlags&8772)!==0):Cn(e,n),wn=c,Pe=o}break;case 30:break;default:Cn(e,n)}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Io(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,ht=!1;function En(e,t,n){for(n=n.child;n!==null;)Kh(e,t,n),n=n.sibling}function Kh(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Pe||tn(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pe||tn(n,t);var l=Be,c=ht;tl(n.type)&&(Be=n.stateNode,ht=!1),En(e,t,n),Si(n.stateNode),Be=l,ht=c;break;case 5:Pe||tn(n,t);case 6:if(l=Be,c=ht,Be=null,En(e,t,n),Be=l,ht=c,Be!==null)if(ht)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(o){Oe(n,t,o)}else try{Be.removeChild(n.stateNode)}catch(o){Oe(n,t,o)}break;case 18:Be!==null&&(ht?(e=Be,Bm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ba(e)):Bm(Be,n.stateNode));break;case 4:l=Be,c=ht,Be=n.stateNode.containerInfo,ht=!0,En(e,t,n),Be=l,ht=c;break;case 0:case 11:case 14:case 15:Zn(2,n,t),Pe||Zn(4,n,t),En(e,t,n);break;case 1:Pe||(tn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&kh(n,t,l)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:Pe=(l=Pe)||n.memoizedState!==null,En(e,t,n),Pe=l;break;default:En(e,t,n)}}function Qh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ba(e)}catch(n){Oe(t,t.return,n)}}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ba(e)}catch(n){Oe(t,t.return,n)}}function O0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xh),t;default:throw Error(s(435,e.tag))}}function Yc(e,t){var n=O0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=k0.bind(null,e,l);l.then(c,c)}})}function mt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],o=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(tl(x.type)){Be=x.stateNode,ht=!1;break e}break;case 5:Be=x.stateNode,ht=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,ht=!0;break e}x=x.return}if(Be===null)throw Error(s(160));Kh(o,m,c),Be=null,ht=!1,o=c.alternate,o!==null&&(o.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ph(t,e),t=t.sibling}var Kt=null;function Ph(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),pt(e),l&4&&(Zn(3,e,e.return),fi(3,e),Zn(5,e,e.return));break;case 1:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&64&&wn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=Kt;if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":o=c.getElementsByTagName("title")[0],(!o||o[ka]||o[tt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=c.createElement(l),c.head.insertBefore(o,c.querySelector("head > title"))),it(o,l,n),o[tt]=e,$e(o),l=o;break e;case"link":var m=Pm("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(o=m[x],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}o=c.createElement(l),it(o,l,n),c.head.appendChild(o);break;case"meta":if(m=Pm("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(o=m[x],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}o=c.createElement(l),it(o,l,n),c.head.appendChild(o);break;default:throw Error(s(468,l))}o[tt]=e,$e(o),l=o}e.stateNode=l}else Jm(c,e.type,e.stateNode);else e.stateNode=Zm(c,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Jm(c,e.type,e.stateNode):Zm(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&xs(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),n!==null&&l&4&&xs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),pt(e),l&512&&(Pe||n===null||tn(n,n.return)),e.flags&32){c=e.stateNode;try{Xl(c,"")}catch(ie){Oe(e,e.return,ie)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,xs(e,c,n!==null?n.memoizedProps:c)),l&1024&&(ws=!0);break;case 6:if(mt(t,e),pt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ie){Oe(e,e.return,ie)}}break;case 3:if(no=null,c=Kt,Kt=eo(t.containerInfo),mt(t,e),Kt=c,pt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ba(t.containerInfo)}catch(ie){Oe(e,e.return,ie)}ws&&(ws=!1,Jh(e));break;case 4:l=Kt,Kt=eo(e.stateNode.containerInfo),mt(t,e),pt(e),Kt=l;break;case 12:mt(t,e),pt(e);break;case 31:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 13:mt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Vc=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=wn,V=Pe;if(wn=H||c,Pe=V||E,mt(t,e),Pe=V,wn=H,pt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||wn||Pe||zl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(o=E.stateNode,c)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var K=E.memoizedProps.style,B=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ie){Oe(E,E.return,ie)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ie){Oe(E,E.return,ie)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?km(k,!0):km(E.stateNode,!1)}catch(ie){Oe(E,E.return,ie)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Yc(e,n))));break;case 19:mt(t,e),pt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 30:break;case 21:break;default:mt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(qh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode,o=bs(e);kc(e,o,c);break;case 5:var m=n.stateNode;n.flags&32&&(Xl(m,""),n.flags&=-33);var x=bs(e);kc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=bs(e);Ss(e,H,E);break;default:throw Error(s(161))}}catch(V){Oe(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gh(e,t.alternate,t),t=t.sibling}function zl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),zl(t);break;case 1:tn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&kh(t,t.return,n),zl(t);break;case 27:Si(t.stateNode);case 26:case 5:tn(t,t.return),zl(t);break;case 22:t.memoizedState===null&&zl(t);break;case 30:zl(t);break;default:zl(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Nn(c,o,n),fi(4,o);break;case 1:if(Nn(c,o,n),l=o,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){Oe(l,l.return,H)}if(l=o,c=l.updateQueue,c!==null){var x=l.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)Td(E[c],x)}catch(H){Oe(l,l.return,H)}}n&&m&64&&Bh(o),di(o,o.return);break;case 27:Vh(o);case 26:case 5:Nn(c,o,n),n&&l===null&&m&4&&Yh(o),di(o,o.return);break;case 12:Nn(c,o,n);break;case 31:Nn(c,o,n),n&&m&4&&Qh(c,o);break;case 13:Nn(c,o,n),n&&m&4&&Zh(c,o);break;case 22:o.memoizedState===null&&Nn(c,o,n),di(o,o.return);break;case 30:break;default:Nn(c,o,n)}t=t.sibling}}function Es(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ia(n))}function Cs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e))}function Qt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wh(e,t,n,l),t=t.sibling}function Wh(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,n,l),c&2048&&fi(9,t);break;case 1:Qt(e,t,n,l);break;case 3:Qt(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e)));break;case 12:if(c&2048){Qt(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,x=o.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Oe(t,t.return,E)}}else Qt(e,t,n,l);break;case 31:Qt(e,t,n,l);break;case 13:Qt(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Qt(e,t,n,l):hi(e,t):o._visibility&2?Qt(e,t,n,l):(o._visibility|=2,sa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Es(m,t);break;case 24:Qt(e,t,n,l),c&2048&&Cs(t.alternate,t);break;default:Qt(e,t,n,l)}}function sa(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:sa(o,m,x,E,c),fi(8,m);break;case 23:break;case 22:var V=m.stateNode;m.memoizedState!==null?V._visibility&2?sa(o,m,x,E,c):hi(o,m):(V._visibility|=2,sa(o,m,x,E,c)),c&&H&2048&&Es(m.alternate,m);break;case 24:sa(o,m,x,E,c),c&&H&2048&&Cs(m.alternate,m);break;default:sa(o,m,x,E,c)}t=t.sibling}}function hi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:hi(n,l),c&2048&&Es(l.alternate,l);break;case 24:hi(n,l),c&2048&&Cs(l.alternate,l);break;default:hi(n,l)}t=t.sibling}}var mi=8192;function ua(e,t,n){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Ih(e,t,n),e=e.sibling}function Ih(e,t,n){switch(e.tag){case 26:ua(e,t,n),e.flags&mi&&e.memoizedState!==null&&vx(n,Kt,e.memoizedState,e.memoizedProps);break;case 5:ua(e,t,n);break;case 3:case 4:var l=Kt;Kt=eo(e.stateNode.containerInfo),ua(e,t,n),Kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=mi,mi=16777216,ua(e,t,n),mi=l):ua(e,t,n));break;default:ua(e,t,n)}}function $h(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,tm(l,e)}$h(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)em(e),e=e.sibling}function em(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qc(e)):pi(e);break;default:pi(e)}}function qc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,tm(l,e)}$h(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),qc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qc(t));break;default:qc(t)}e=e.sibling}}function tm(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Zn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,et=l;else e:for(n=e;et!==null;){l=et;var c=l.sibling,o=l.return;if(Fh(l),l===n){et=null;break e}if(c!==null){c.return=o,et=c;break e}et=o}}}var z0={getCacheForType:function(e){var t=lt(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Ke).controller.signal}},_0=typeof WeakMap=="function"?WeakMap:Map,Te=0,Me=null,xe=null,Se=0,Re=0,jt=null,Pn=!1,fa=!1,Ns=!1,jn=0,Ve=0,Jn=0,_l=0,js=0,Tt=0,da=0,vi=null,vt=null,Ts=!1,Vc=0,nm=0,Xc=1/0,Gc=null,Wn=null,We=0,In=null,ha=null,Tn=0,As=0,Rs=null,lm=null,gi=0,Os=null;function At(){return(Te&2)!==0&&Se!==0?Se&-Se:_.T!==null?Us():xf()}function am(){if(Tt===0)if((Se&536870912)===0||Ee){var e=Ii;Ii<<=1,(Ii&3932160)===0&&(Ii=262144),Tt=e}else Tt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Tt}function gt(e,t,n){(e===Me&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(ma(e,0),$n(e,Se,Tt,!1)),Ba(e,n),((Te&2)===0||e!==Me)&&(e===Me&&((Te&2)===0&&(_l|=n),Ve===4&&$n(e,Se,Tt,!1)),nn(e))}function im(e,t,n){if((Te&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ha(e,t),c=l?L0(e,t):_s(e,t,!0),o=l;do{if(c===0){fa&&!l&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!D0(n)){c=_s(e,t,!1),o=!1;continue}if(c===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;c=vi;var E=x.current.memoizedState.isDehydrated;if(E&&(ma(x,m).flags|=256),m=_s(x,m,!1),m!==2){if(Ns&&!E){x.errorRecoveryDisabledLanes|=o,_l|=o,c=4;break e}o=vt,vt=c,o!==null&&(vt===null?vt=o:vt.push.apply(vt,o))}c=m}if(o=!1,c!==2)continue}}if(c===1){ma(e,0),$n(e,t,0,!0);break}e:{switch(l=e,o=c,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:$n(l,t,Tt,!Pn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(c=Vc+300-xt(),10<c)){if($n(l,t,Tt,!Pn),ec(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Um(cm.bind(null,l,n,vt,Gc,Ts,t,Tt,_l,da,Pn,o,"Throttled",-0,0),c);break e}cm(l,n,vt,Gc,Ts,t,Tt,_l,da,Pn,o,null,-0,0)}}break}while(!0);nn(e)}function cm(e,t,n,l,c,o,m,x,E,H,V,K,B,k){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dn},Ih(t,o,K);var ie=(o&62914560)===o?Vc-xt():(o&4194048)===o?nm-xt():0;if(ie=gx(K,ie),ie!==null){Tn=o,e.cancelPendingCommit=ie(mm.bind(null,e,t,o,n,l,c,m,x,E,V,K,null,B,k)),$n(e,o,m,!H);return}}mm(e,t,o,n,l,c,m,x,E)}function D0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],o=c.getSnapshot;c=c.value;try{if(!wt(o(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,l){t&=~js,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var o=31-St(c),m=1<<o;l[o]=-1,c&=~m}n!==0&&vf(e,n,t)}function Fc(){return(Te&6)===0?(yi(0),!1):!0}function zs(){if(xe!==null){if(Re===0)var e=xe.return;else e=xe,vn=El=null,Qr(e),aa=null,ei=0,e=xe;for(;e!==null;)Hh(e.alternate,e),e=e.return;xe=null}}function ma(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,zs(),Me=e,xe=n=mn(e.current,null),Se=t,Re=0,jt=null,Pn=!1,fa=Ha(e,t),Ns=!1,da=Tt=js=_l=Jn=Ve=0,vt=vi=null,Ts=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-St(l),o=1<<c;t|=e[c],l&=~o}return jn=t,dc(),n}function om(e,t){ve=null,_.H=ri,t===la||t===bc?(t=Ed(),Re=3):t===Lr?(t=Ed(),Re=4):Re=t===ss?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,xe===null&&(Ve=1,Mc(e,Bt(t,e.current)))}function rm(){var e=Ct.current;return e===null?!0:(Se&4194048)===Se?Vt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Vt:!1}function sm(){var e=_.H;return _.H=ri,e===null?ri:e}function um(){var e=_.A;return _.A=z0,e}function Kc(){Ve=4,Pn||(Se&4194048)!==Se&&Ct.current!==null||(fa=!0),(Jn&134217727)===0&&(_l&134217727)===0||Me===null||$n(Me,Se,Tt,!1)}function _s(e,t,n){var l=Te;Te|=2;var c=sm(),o=um();(Me!==e||Se!==t)&&(Gc=null,ma(e,t)),t=!1;var m=Ve;e:do try{if(Re!==0&&xe!==null){var x=xe,E=jt;switch(Re){case 8:zs(),m=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var H=Re;if(Re=0,jt=null,pa(e,x,E,H),n&&fa){m=0;break e}break;default:H=Re,Re=0,jt=null,pa(e,x,E,H)}}M0(),m=Ve;break}catch(V){om(e,V)}while(!0);return t&&e.shellSuspendCounter++,vn=El=null,Te=l,_.H=c,_.A=o,xe===null&&(Me=null,Se=0,dc()),m}function M0(){for(;xe!==null;)fm(xe)}function L0(e,t){var n=Te;Te|=2;var l=sm(),c=um();Me!==e||Se!==t?(Gc=null,Xc=xt()+500,ma(e,t)):fa=Ha(e,t);e:do try{if(Re!==0&&xe!==null){t=xe;var o=jt;t:switch(Re){case 1:Re=0,jt=null,pa(e,t,o,1);break;case 2:case 9:if(Sd(o)){Re=0,jt=null,dm(t);break}t=function(){Re!==2&&Re!==9||Me!==e||(Re=7),nn(e)},o.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Sd(o)?(Re=0,jt=null,dm(t)):(Re=0,jt=null,pa(e,t,o,7));break;case 5:var m=null;switch(xe.tag){case 26:m=xe.memoizedState;case 5:case 27:var x=xe;if(m?Wm(m):x.stateNode.complete){Re=0,jt=null;var E=x.sibling;if(E!==null)xe=E;else{var H=x.return;H!==null?(xe=H,Qc(H)):xe=null}break t}}Re=0,jt=null,pa(e,t,o,5);break;case 6:Re=0,jt=null,pa(e,t,o,6);break;case 8:zs(),Ve=6;break e;default:throw Error(s(462))}}U0();break}catch(V){om(e,V)}while(!0);return vn=El=null,_.H=l,_.A=c,Te=n,xe!==null?0:(Me=null,Se=0,dc(),Ve)}function U0(){for(;xe!==null&&!iy();)fm(xe)}function fm(e){var t=Lh(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Qc(e):xe=t}function dm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Rh(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Rh(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Qr(t);default:Hh(n,t),t=xe=ud(t,jn),t=Lh(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Qc(e):xe=t}function pa(e,t,n,l){vn=El=null,Qr(t),aa=null,ei=0;var c=t.return;try{if(C0(e,c,t,n,Se)){Ve=1,Mc(e,Bt(n,e.current)),xe=null;return}}catch(o){if(c!==null)throw xe=c,o;Ve=1,Mc(e,Bt(n,e.current)),xe=null;return}t.flags&32768?(Ee||l===1?e=!0:fa||(Se&536870912)!==0?e=!1:(Pn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),hm(t,e)):Qc(t)}function Qc(e){var t=e;do{if((t.flags&32768)!==0){hm(t,Pn);return}e=t.return;var n=T0(t.alternate,t,jn);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ve===0&&(Ve=5)}function hm(e,t){do{var n=A0(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ve=6,xe=null}function mm(e,t,n,l,c,o,m,x,E){e.cancelPendingCommit=null;do Zc();while(We!==0);if((Te&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=br,py(e,n,o,m,x,E),e===Me&&(xe=Me=null,Se=0),ha=t,In=e,Tn=n,As=o,Rs=c,lm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Y0(Ji,function(){return xm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,c=L.p,L.p=2,m=Te,Te|=4;try{R0(e,t,n)}finally{Te=m,L.p=c,_.T=l}}We=1,pm(),vm(),gm()}}function pm(){if(We===1){We=0;var e=In,t=ha,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Te;Te|=4;try{Ph(t,e);var o=Gs,m=td(e.containerInfo),x=o.focusedElem,E=o.selectionRange;if(m!==x&&x&&x.ownerDocument&&ed(x.ownerDocument.documentElement,x)){if(E!==null&&pr(x)){var H=E.start,V=E.end;if(V===void 0&&(V=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(V,x.value.length);else{var K=x.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var k=B.getSelection(),ie=x.textContent.length,he=Math.min(E.start,ie),De=E.end===void 0?he:Math.min(E.end,ie);!k.extend&&he>De&&(m=De,De=he,he=m);var z=$f(x,he),A=$f(x,De);if(z&&A&&(k.rangeCount!==1||k.anchorNode!==z.node||k.anchorOffset!==z.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var U=K.createRange();U.setStart(z.node,z.offset),k.removeAllRanges(),he>De?(k.addRange(U),k.extend(A.node,A.offset)):(U.setEnd(A.node,A.offset),k.addRange(U))}}}}for(K=[],k=x;k=k.parentNode;)k.nodeType===1&&K.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var F=K[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}co=!!Xs,Gs=Xs=null}finally{Te=c,L.p=l,_.T=n}}e.current=t,We=2}}function vm(){if(We===2){We=0;var e=In,t=ha,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Te;Te|=4;try{Gh(e,t.alternate,t)}finally{Te=c,L.p=l,_.T=n}}We=3}}function gm(){if(We===4||We===3){We=0,cy();var e=In,t=ha,n=Tn,l=lm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,ha=In=null,ym(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Wn=null),Jo(n),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,c=L.p,L.p=2,_.T=null;try{for(var o=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];o(x.value,{componentStack:x.stack})}}finally{_.T=t,L.p=c}}(Tn&3)!==0&&Zc(),nn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Os?gi++:(gi=0,Os=e):gi=0,yi(0)}}function ym(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ia(t)))}function Zc(){return pm(),vm(),gm(),xm()}function xm(){if(We!==5)return!1;var e=In,t=As;As=0;var n=Jo(Tn),l=_.T,c=L.p;try{L.p=32>n?32:n,_.T=null,n=Rs,Rs=null;var o=In,m=Tn;if(We=0,ha=In=null,Tn=0,(Te&6)!==0)throw Error(s(331));var x=Te;if(Te|=4,em(o.current),Wh(o,o.current,m,n),Te=x,yi(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ua,o)}catch{}return!0}finally{L.p=c,_.T=l,ym(e,t)}}function bm(e,t,n){t=Bt(n,t),t=rs(e.stateNode,t,2),e=Fn(e,t,2),e!==null&&(Ba(e,2),nn(e))}function Oe(e,t,n){if(e.tag===3)bm(e,e,n);else for(;t!==null;){if(t.tag===3){bm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=Bt(n,e),n=Sh(2),l=Fn(t,n,2),l!==null&&(wh(n,l,t,e),Ba(l,2),nn(l));break}}t=t.return}}function Ds(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new _0;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(Ns=!0,c.add(n),e=H0.bind(null,e,t,n),t.then(e,e))}function H0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Me===e&&(Se&n)===n&&(Ve===4||Ve===3&&(Se&62914560)===Se&&300>xt()-Vc?(Te&2)===0&&ma(e,0):js|=n,da===Se&&(da=0)),nn(e)}function Sm(e,t){t===0&&(t=pf()),e=bl(e,t),e!==null&&(Ba(e,t),nn(e))}function B0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sm(e,n)}function k0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Sm(e,n)}function Y0(e,t){return Ko(e,t)}var Pc=null,va=null,Ms=!1,Jc=!1,Ls=!1,el=0;function nn(e){e!==va&&e.next===null&&(va===null?Pc=va=e:va=va.next=e),Jc=!0,Ms||(Ms=!0,V0())}function yi(e,t){if(!Ls&&Jc){Ls=!0;do for(var n=!1,l=Pc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var o=0;else{var m=l.suspendedLanes,x=l.pingedLanes;o=(1<<31-St(42|e)+1)-1,o&=c&~(m&~x),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Nm(l,o))}else o=Se,o=ec(l,l===Me?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Ha(l,o)||(n=!0,Nm(l,o));l=l.next}while(n);Ls=!1}}function q0(){wm()}function wm(){Jc=Ms=!1;var e=0;el!==0&&I0()&&(e=el);for(var t=xt(),n=null,l=Pc;l!==null;){var c=l.next,o=Em(l,t);o===0?(l.next=null,n===null?Pc=c:n.next=c,c===null&&(va=n)):(n=l,(e!==0||(o&3)!==0)&&(Jc=!0)),l=c}We!==0&&We!==5||yi(e),el!==0&&(el=0)}function Em(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-St(o),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=my(x,t)):E<=t&&(e.expiredLanes|=x),o&=~x}if(t=Me,n=Se,n=ec(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Qo(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ha(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Qo(l),Jo(n)){case 2:case 8:n=hf;break;case 32:n=Ji;break;case 268435456:n=mf;break;default:n=Ji}return l=Cm.bind(null,e),n=Ko(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Qo(l),e.callbackPriority=2,e.callbackNode=null,2}function Cm(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zc()&&e.callbackNode!==n)return null;var l=Se;return l=ec(e,e===Me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(im(e,l,t),Em(e,xt()),e.callbackNode!=null&&e.callbackNode===n?Cm.bind(null,e):null)}function Nm(e,t){if(Zc())return null;im(e,t,!0)}function V0(){ex(function(){(Te&6)!==0?Ko(df,q0):wm()})}function Us(){if(el===0){var e=ta;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),el=e}return el}function jm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ac(""+e)}function Tm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function X0(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var o=jm((c[ft]||null).action),m=l.submitter;m&&(t=(t=m[ft]||null)?jm(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var x=new rc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(el!==0){var E=m?Tm(c,m):new FormData(c);ns(n,{pending:!0,data:E,method:c.method,action:o},null,E)}}else typeof o=="function"&&(x.preventDefault(),E=m?Tm(c,m):new FormData(c),ns(n,{pending:!0,data:E,method:c.method,action:o},o,E))},currentTarget:c}]})}}for(var Hs=0;Hs<xr.length;Hs++){var Bs=xr[Hs],G0=Bs.toLowerCase(),F0=Bs[0].toUpperCase()+Bs.slice(1);Ft(G0,"on"+F0)}Ft(ad,"onAnimationEnd"),Ft(id,"onAnimationIteration"),Ft(cd,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(o0,"onTransitionRun"),Ft(r0,"onTransitionStart"),Ft(s0,"onTransitionCancel"),Ft(od,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),K0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function Am(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var m=l.length-1;0<=m;m--){var x=l[m],E=x.instance,H=x.currentTarget;if(x=x.listener,E!==o&&c.isPropagationStopped())break e;o=x,c.currentTarget=H;try{o(c)}catch(V){fc(V)}c.currentTarget=null,o=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==o&&c.isPropagationStopped())break e;o=x,c.currentTarget=H;try{o(c)}catch(V){fc(V)}c.currentTarget=null,o=E}}}}function be(e,t){var n=t[Wo];n===void 0&&(n=t[Wo]=new Set);var l=e+"__bubble";n.has(l)||(Rm(t,e,2,!1),n.add(l))}function ks(e,t,n){var l=0;t&&(l|=4),Rm(n,e,l,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[Wc]){e[Wc]=!0,wf.forEach(function(n){n!=="selectionchange"&&(K0.has(n)||ks(n,!1,e),ks(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wc]||(t[Wc]=!0,ks("selectionchange",!1,t))}}function Rm(e,t,n,l){switch(ap(t)){case 2:var c=bx;break;case 8:c=Sx;break;default:c=tu}n=c.bind(null,t,n,e),c=void 0,!cr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function qs(e,t,n,l,c){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var x=l.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=l.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;x!==null;){if(m=Bl(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=o=m;continue e}x=x.parentNode}}l=l.return}Mf(function(){var H=o,V=ar(n),K=[];e:{var B=rd.get(e);if(B!==void 0){var k=rc,ie=e;switch(e){case"keypress":if(cc(n)===0)break e;case"keydown":case"keyup":k=ky;break;case"focusin":ie="focus",k=ur;break;case"focusout":ie="blur",k=ur;break;case"beforeblur":case"afterblur":k=ur;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Vy;break;case ad:case id:case cd:k=Oy;break;case od:k=Gy;break;case"scroll":case"scrollend":k=Ny;break;case"wheel":k=Ky;break;case"copy":case"cut":case"paste":k=_y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=kf;break;case"toggle":case"beforetoggle":k=Zy}var he=(t&4)!==0,De=!he&&(e==="scroll"||e==="scrollend"),z=he?B!==null?B+"Capture":null:B;he=[];for(var A=H,U;A!==null;){var F=A;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||z===null||(F=qa(A,z),F!=null&&he.push(bi(A,F,U))),De)break;A=A.return}0<he.length&&(B=new k(B,ie,null,n,V),K.push({event:B,listeners:he}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==lr&&(ie=n.relatedTarget||n.fromElement)&&(Bl(ie)||ie[Hl]))break e;if((k||B)&&(B=V.window===V?V:(B=V.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ie=n.relatedTarget||n.toElement,k=H,ie=ie?Bl(ie):null,ie!==null&&(De=d(ie),he=ie.tag,ie!==De||he!==5&&he!==27&&he!==6)&&(ie=null)):(k=null,ie=H),k!==ie)){if(he=Hf,F="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=kf,F="onPointerLeave",z="onPointerEnter",A="pointer"),De=k==null?B:Ya(k),U=ie==null?B:Ya(ie),B=new he(F,A+"leave",k,n,V),B.target=De,B.relatedTarget=U,F=null,Bl(V)===H&&(he=new he(z,A+"enter",ie,n,V),he.target=U,he.relatedTarget=De,F=he),De=F,k&&ie)t:{for(he=Q0,z=k,A=ie,U=0,F=z;F;F=he(F))U++;F=0;for(var ue=A;ue;ue=he(ue))F++;for(;0<U-F;)z=he(z),U--;for(;0<F-U;)A=he(A),F--;for(;U--;){if(z===A||A!==null&&z===A.alternate){he=z;break t}z=he(z),A=he(A)}he=null}else he=null;k!==null&&Om(K,B,k,he,!1),ie!==null&&De!==null&&Om(K,De,ie,he,!0)}}e:{if(B=H?Ya(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Ce=Qf;else if(Ff(B))if(Zf)Ce=a0;else{Ce=n0;var oe=t0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&nr(H.elementType)&&(Ce=Qf):Ce=l0;if(Ce&&(Ce=Ce(e,H))){Kf(K,Ce,n,V);break e}oe&&oe(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&tr(B,"number",B.value)}switch(oe=H?Ya(H):window,e){case"focusin":(Ff(oe)||oe.contentEditable==="true")&&(Ql=oe,vr=H,Pa=null);break;case"focusout":Pa=vr=Ql=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,nd(K,n,V);break;case"selectionchange":if(c0)break;case"keydown":case"keyup":nd(K,n,V)}var ye;if(dr)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Kl?Xf(e,n)&&(we="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(we="onCompositionStart");we&&(Yf&&n.locale!=="ko"&&(Kl||we!=="onCompositionStart"?we==="onCompositionEnd"&&Kl&&(ye=Lf()):(Bn=V,or="value"in Bn?Bn.value:Bn.textContent,Kl=!0)),oe=Ic(H,we),0<oe.length&&(we=new Bf(we,e,null,n,V),K.push({event:we,listeners:oe}),ye?we.data=ye:(ye=Gf(n),ye!==null&&(we.data=ye)))),(ye=Jy?Wy(e,n):Iy(e,n))&&(we=Ic(H,"onBeforeInput"),0<we.length&&(oe=new Bf("onBeforeInput","beforeinput",null,n,V),K.push({event:oe,listeners:we}),oe.data=ye)),X0(K,e,H,n,V)}Am(K,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ic(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,o=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||o===null||(c=qa(e,n),c!=null&&l.unshift(bi(e,c,o)),c=qa(e,t),c!=null&&l.push(bi(e,c,o))),e.tag===3)return l;e=e.return}return[]}function Q0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Om(e,t,n,l,c){for(var o=t._reactName,m=[];n!==null&&n!==l;){var x=n,E=x.alternate,H=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||H===null||(E=H,c?(H=qa(n,o),H!=null&&m.unshift(bi(n,H,E))):c||(H=qa(n,o),H!=null&&m.push(bi(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Z0=/\r\n?/g,P0=/\u0000|\uFFFD/g;function zm(e){return(typeof e=="string"?e:""+e).replace(Z0,`
9
+ `).replace(P0,"")}function _m(e,t){return t=zm(t),zm(e)===t}function _e(e,t,n,l,c,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xl(e,""+l);break;case"className":nc(e,"class",l);break;case"tabIndex":nc(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":nc(e,n,l);break;case"style":_f(e,l,o);break;case"data":if(t!=="object"){nc(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ac(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&_e(e,t,"name",c.name,c,null),_e(e,t,"formEncType",c.formEncType,c,null),_e(e,t,"formMethod",c.formMethod,c,null),_e(e,t,"formTarget",c.formTarget,c,null)):(_e(e,t,"encType",c.encType,c,null),_e(e,t,"method",c.method,c,null),_e(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ac(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=dn);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=ac(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":be("beforetoggle",e),be("toggle",e),tc(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":tc(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ey.get(n)||n,tc(e,n,l))}}function Vs(e,t,n,l,c,o){switch(n){case"style":_f(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=dn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ef.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),o=e[ft]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,c),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):tc(e,n,l)}}}function it(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,c=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,o,m,n,null)}}c&&_e(e,t,"srcSet",n.srcSet,n,null),l&&_e(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var x=o=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var V=n[l];if(V!=null)switch(l){case"name":c=V;break;case"type":m=V;break;case"checked":E=V;break;case"defaultChecked":H=V;break;case"value":o=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:_e(e,t,l,V,n,null)}}Af(e,o,x,E,H,m,c,!1);return;case"select":be("invalid",e),l=m=o=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":o=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:_e(e,t,c,x,n,null)}t=o,n=m,e.multiple=!!l,t!=null?Vl(e,!!l,t,!1):n!=null&&Vl(e,!!l,n,!0);return;case"textarea":be("invalid",e),o=c=l=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":c=x;break;case"children":o=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:_e(e,t,m,x,n,null)}Of(e,l,c,o);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":_e(e,t,E,l,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<xi.length;l++)be(xi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in n)if(n.hasOwnProperty(H)&&(l=n[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:_e(e,t,H,l,n,null)}return;default:if(nr(t)){for(V in n)n.hasOwnProperty(V)&&(l=n[V],l!==void 0&&Vs(e,t,V,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&_e(e,t,x,l,n,null))}function J0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,o=null,m=null,x=null,E=null,H=null,V=null;for(k in n){var K=n[k];if(n.hasOwnProperty(k)&&K!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=K;default:l.hasOwnProperty(k)||_e(e,t,k,null,l,K)}}for(var B in l){var k=l[B];if(K=n[B],l.hasOwnProperty(B)&&(k!=null||K!=null))switch(B){case"type":o=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":V=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==K&&_e(e,t,B,k,l,K)}}er(e,m,x,E,H,V,o,c);return;case"select":k=m=x=B=null;for(o in n)if(E=n[o],n.hasOwnProperty(o)&&E!=null)switch(o){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(o)||_e(e,t,o,null,l,E)}for(c in l)if(o=l[c],E=n[c],l.hasOwnProperty(c)&&(o!=null||E!=null))switch(c){case"value":B=o;break;case"defaultValue":x=o;break;case"multiple":m=o;default:o!==E&&_e(e,t,c,o,l,E)}t=x,n=m,l=k,B!=null?Vl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Vl(e,!!n,t,!0):Vl(e,!!n,n?[]:"",!1));return;case"textarea":k=B=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:_e(e,t,x,null,l,c)}for(m in l)if(c=l[m],o=n[m],l.hasOwnProperty(m)&&(c!=null||o!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:c!==o&&_e(e,t,m,c,l,o)}Rf(e,B,k);return;case"option":for(var ie in n)B=n[ie],n.hasOwnProperty(ie)&&B!=null&&!l.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:_e(e,t,ie,null,l,B));for(E in l)B=l[E],k=n[E],l.hasOwnProperty(E)&&B!==k&&(B!=null||k!=null)&&(E==="selected"?e.selected=B&&typeof B!="function"&&typeof B!="symbol":_e(e,t,E,B,l,k));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 he in n)B=n[he],n.hasOwnProperty(he)&&B!=null&&!l.hasOwnProperty(he)&&_e(e,t,he,null,l,B);for(H in l)if(B=l[H],k=n[H],l.hasOwnProperty(H)&&B!==k&&(B!=null||k!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:_e(e,t,H,B,l,k)}return;default:if(nr(t)){for(var De in n)B=n[De],n.hasOwnProperty(De)&&B!==void 0&&!l.hasOwnProperty(De)&&Vs(e,t,De,void 0,l,B);for(V in l)B=l[V],k=n[V],!l.hasOwnProperty(V)||B===k||B===void 0&&k===void 0||Vs(e,t,V,B,l,k);return}}for(var z in n)B=n[z],n.hasOwnProperty(z)&&B!=null&&!l.hasOwnProperty(z)&&_e(e,t,z,null,l,B);for(K in l)B=l[K],k=n[K],!l.hasOwnProperty(K)||B===k||B==null&&k==null||_e(e,t,K,B,l,k)}function Dm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function W0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var c=n[l],o=c.transferSize,m=c.initiatorType,x=c.duration;if(o&&x&&Dm(m)){for(m=0,x=c.responseEnd,l+=1;l<n.length;l++){var E=n[l],H=E.startTime;if(H>x)break;var V=E.transferSize,K=E.initiatorType;V&&Dm(K)&&(E=E.responseEnd,m+=V*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(o+m)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xs=null,Gs=null;function $c(e){return e.nodeType===9?e:e.ownerDocument}function Mm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Fs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ks=null;function I0(){var e=window.event;return e&&e.type==="popstate"?e===Ks?!1:(Ks=e,!0):(Ks=null,!1)}var Um=typeof setTimeout=="function"?setTimeout:void 0,$0=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,ex=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(e){return Hm.resolve(null).then(e).catch(tx)}:Um;function tx(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Bm(e,t){var n=t,l=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(c),ba(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Si(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Si(n);for(var o=n.firstChild;o;){var m=o.nextSibling,x=o.nodeName;o[ka]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&Si(e.ownerDocument.body);n=c}while(n);ba(t)}function km(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qs(n),Io(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function nx(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function lx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xt(e.nextSibling),e===null))return null;return e}function Ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function Zs(e){return e.data==="$?"||e.data==="$~"}function Ps(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ax(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Js=null;function qm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Xm(e,t,n){switch(t=$c(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Si(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Io(e)}var Gt=new Map,Gm=new Set;function eo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=L.d;L.d={f:ix,r:cx,D:ox,C:rx,L:sx,m:ux,X:dx,S:fx,M:hx};function ix(){var e=An.f(),t=Fc();return e||t}function cx(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?oh(t):An.r(e)}var ga=typeof document>"u"?null:document;function Fm(e,t,n){var l=ga;if(l&&typeof t=="string"&&t){var c=Ut(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Gm.has(c)||(Gm.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),it(t,"link",e),$e(t),l.head.appendChild(t)))}}function ox(e){An.D(e),Fm("dns-prefetch",e,null)}function rx(e,t){An.C(e,t),Fm("preconnect",e,t)}function sx(e,t,n){An.L(e,t,n);var l=ga;if(l&&e&&t){var c='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Ut(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Ut(n.imageSizes)+'"]')):c+='[href="'+Ut(e)+'"]';var o=c;switch(t){case"style":o=ya(e);break;case"script":o=xa(e)}Gt.has(o)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(o,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(wi(o))||t==="script"&&l.querySelector(Ei(o))||(t=l.createElement("link"),it(t,"link",e),$e(t),l.head.appendChild(t)))}}function ux(e,t){An.m(e,t);var n=ga;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',o=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=xa(e)}if(!Gt.has(o)&&(e=b({rel:"modulepreload",href:e},t),Gt.set(o,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ei(o)))return}l=n.createElement("link"),it(l,"link",e),$e(l),n.head.appendChild(l)}}}function fx(e,t,n){An.S(e,t,n);var l=ga;if(l&&e){var c=Yl(l).hoistableStyles,o=ya(e);t=t||"default";var m=c.get(o);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(wi(o)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(o))&&Ws(e,n);var E=m=l.createElement("link");$e(E),it(E,"link",e),E._p=new Promise(function(H,V){E.onload=H,E.onerror=V}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,to(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(o,m)}}}function dx(e,t){An.X(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),o=l.get(c);o||(o=n.querySelector(Ei(c)),o||(e=b({src:e,async:!0},t),(t=Gt.get(c))&&Is(e,t),o=n.createElement("script"),$e(o),it(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(c,o))}}function hx(e,t){An.M(e,t);var n=ga;if(n&&e){var l=Yl(n).hoistableScripts,c=xa(e),o=l.get(c);o||(o=n.querySelector(Ei(c)),o||(e=b({src:e,async:!0,type:"module"},t),(t=Gt.get(c))&&Is(e,t),o=n.createElement("script"),$e(o),it(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(c,o))}}function Km(e,t,n,l){var c=(c=Z.current)?eo(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ya(n.href),n=Yl(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ya(n.href);var o=Yl(c).hoistableStyles,m=o.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=c.querySelector(wi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),o||mx(c,e,n,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xa(n),n=Yl(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ya(e){return'href="'+Ut(e)+'"'}function wi(e){return'link[rel="stylesheet"]['+e+"]"}function Qm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function mx(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),it(t,"link",n),$e(t),e.head.appendChild(t))}function xa(e){return'[src="'+Ut(e)+'"]'}function Ei(e){return"script[async]"+e}function Zm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(n.href)+'"]');if(l)return t.instance=l,$e(l),l;var c=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),$e(l),it(l,"style",c),to(l,n.precedence,e),t.instance=l;case"stylesheet":c=ya(n.href);var o=e.querySelector(wi(c));if(o)return t.state.loading|=4,t.instance=o,$e(o),o;l=Qm(n),(c=Gt.get(c))&&Ws(l,c),o=(e.ownerDocument||e).createElement("link"),$e(o);var m=o;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),it(o,"link",l),t.state.loading|=4,to(o,n.precedence,e),t.instance=o;case"script":return o=xa(n.src),(c=e.querySelector(Ei(o)))?(t.instance=c,$e(c),c):(l=n,(c=Gt.get(o))&&(l=b({},n),Is(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),$e(c),it(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,to(l,n.precedence,e));return t.instance}function to(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,o=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)o=x;else if(o!==c)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var no=null;function Pm(e,t,n){if(no===null){var l=new Map,c=no=new Map;c.set(n,l)}else c=no,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var o=n[c];if(!(o[ka]||o[tt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(o):l.set(m,[o])}}return l}function Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function px(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vx(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ya(l.href),o=t.querySelector(wi(c));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,$e(o);return}o=t.ownerDocument||t,l=Qm(l),(c=Gt.get(c))&&Ws(l,c),o=o.createElement("link"),$e(o);var m=o;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),it(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=lo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var $s=0;function gx(e,t){return e.stylesheets&&e.count===0&&io(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&io(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&$s===0&&($s=62500*W0());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&io(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>$s?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ao=null;function io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ao=new Map,t.forEach(yx,e),ao=null,lo.call(e))}function yx(e,t){if(!(t.state.loading&4)){var n=ao.get(e);if(n)var l=n.get(null);else{n=new Map,ao.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<c.length;o++){var m=c[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}c=t.instance,m=c.getAttribute("data-precedence"),o=n.get(m)||l,o===l&&n.set(null,c),n.set(m,c),this.count++,l=lo.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),o?o.parentNode.insertBefore(c,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ci={$$typeof:M,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function xx(e,t,n,l,c,o,m,x,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Zo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zo(0),this.hiddenUpdates=Zo(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Im(e,t,n,l,c,o,m,x,E,H,V,K){return e=new xx(e,t,n,m,E,H,V,K,x),t=1,o===!0&&(t|=24),o=Et(3,null,null,t),e.current=o,o.stateNode=e,t=_r(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},Ur(o),e}function $m(e){return e?(e=Jl,e):Jl}function ep(e,t,n,l,c,o){c=$m(c),l.context===null?l.context=c:l.pendingContext=c,l=Gn(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Fn(e,l,t),n!==null&&(gt(n,e,t),ni(n,e,t))}function tp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function eu(e,t){tp(e,t),(e=e.alternate)&&tp(e,t)}function np(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&gt(t,e,67108864),eu(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=At();t=Po(t);var n=bl(e,t);n!==null&&gt(n,e,t),eu(e,t)}}var co=!0;function bx(e,t,n,l){var c=_.T;_.T=null;var o=L.p;try{L.p=2,tu(e,t,n,l)}finally{L.p=o,_.T=c}}function Sx(e,t,n,l){var c=_.T;_.T=null;var o=L.p;try{L.p=8,tu(e,t,n,l)}finally{L.p=o,_.T=c}}function tu(e,t,n,l){if(co){var c=nu(l);if(c===null)qs(e,t,l,oo,n),ip(e,l);else if(Ex(c,e,t,n,l))l.stopPropagation();else if(ip(e,l),t&4&&-1<wx.indexOf(e)){for(;c!==null;){var o=kl(c);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=pl(o.pendingLanes);if(m!==0){var x=o;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-St(m);x.entanglements[1]|=E,m&=~E}nn(o),(Te&6)===0&&(Xc=xt()+500,yi(0))}}break;case 31:case 13:x=bl(o,2),x!==null&&gt(x,o,2),Fc(),eu(o,2)}if(o=nu(l),o===null&&qs(e,t,l,oo,n),o===c)break;c=o}c!==null&&l.stopPropagation()}else qs(e,t,l,null,n)}}function nu(e){return e=ar(e),lu(e)}var oo=null;function lu(e){if(oo=null,e=Bl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return oo=e,null}function ap(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oy()){case df:return 2;case hf:return 8;case Ji:case ry:return 32;case mf:return 268435456;default:return 32}default:return 32}}var au=!1,nl=null,ll=null,al=null,Ni=new Map,ji=new Map,il=[],wx="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 ip(e,t){switch(e){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ji.delete(t.pointerId)}}function Ti(e,t,n,l,c,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[c]},t!==null&&(t=kl(t),t!==null&&np(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Ex(e,t,n,l,c){switch(t){case"focusin":return nl=Ti(nl,e,t,n,l,c),!0;case"dragenter":return ll=Ti(ll,e,t,n,l,c),!0;case"mouseover":return al=Ti(al,e,t,n,l,c),!0;case"pointerover":var o=c.pointerId;return Ni.set(o,Ti(Ni.get(o)||null,e,t,n,l,c)),!0;case"gotpointercapture":return o=c.pointerId,ji.set(o,Ti(ji.get(o)||null,e,t,n,l,c)),!0}return!1}function cp(e){var t=Bl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,bf(e.priority,function(){lp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,bf(e.priority,function(){lp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);lr=l,n.target.dispatchEvent(l),lr=null}else return t=kl(n),t!==null&&np(t),e.blockedOn=n,!1;t.shift()}return!0}function op(e,t,n){ro(e)&&n.delete(t)}function Cx(){au=!1,nl!==null&&ro(nl)&&(nl=null),ll!==null&&ro(ll)&&(ll=null),al!==null&&ro(al)&&(al=null),Ni.forEach(op),ji.forEach(op)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,au||(au=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Cx)))}var uo=null;function rp(e){uo!==e&&(uo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){uo===e&&(uo=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(lu(l||n)===null)continue;break}var o=kl(n);o!==null&&(e.splice(t,3),t-=3,ns(o,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function ba(e){function t(E){return so(E,e)}nl!==null&&so(nl,e),ll!==null&&so(ll,e),al!==null&&so(al,e),Ni.forEach(t),ji.forEach(t);for(var n=0;n<il.length;n++){var l=il[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<il.length&&(n=il[0],n.blockedOn===null);)cp(n),n.blockedOn===null&&il.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],o=n[l+1],m=c[ft]||null;if(typeof o=="function")m||rp(n);else if(m){var x=null;if(o&&o.hasAttribute("formAction")){if(c=o,m=o[ft]||null)x=m.formAction;else if(lu(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),rp(n)}}}function sp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function iu(e){this._internalRoot=e}fo.prototype.render=iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=At();ep(n,l,e,t,null,null)},fo.prototype.unmount=iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ep(e.current,2,null,e,null,null),Fc(),t[Hl]=null}};function fo(e){this._internalRoot=e}fo.prototype.unstable_scheduleHydration=function(e){if(e){var t=xf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<il.length&&t!==0&&t<il[n].priority;n++);il.splice(n,0,e),n===0&&cp(e)}};var up=i.version;if(up!=="19.2.3")throw Error(s(527,up,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Nx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{Ua=ho.inject(Nx),bt=ho}catch{}}return Ri.createRoot=function(e,t){if(!f(e))throw Error(s(299));var n=!1,l="",c=gh,o=yh,m=xh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Im(e,1,!1,null,null,n,l,null,c,o,m,sp),e[Hl]=t.current,Ys(e),new iu(t)},Ri.hydrateRoot=function(e,t,n){if(!f(e))throw Error(s(299));var l=!1,c="",o=gh,m=yh,x=xh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Im(e,1,!0,t,n??null,l,c,E,o,m,x,sp),t.context=$m(null),n=t.current,l=At(),l=Po(l),c=Gn(l),c.callback=null,Fn(n,c,l),n=l,t.current.lanes=n,Ba(t,n),nn(t),e[Hl]=t.current,Ys(e),new fo(t)},Ri.version="19.2.3",Ri}var bp;function Lx(){if(bp)return ru.exports;bp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ru.exports=Mx(),ru.exports}var Ux=Lx();var Sp="popstate";function Hx(a={}){function i(s,f){let{pathname:d,search:h,hash:p}=s.location;return Au("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(s,f){return typeof f=="string"?f:Yi(f)}return kx(i,r,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Dt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Bx(){return Math.random().toString(36).substring(2,10)}function wp(a,i){return{usr:a.state,key:a.key,idx:i}}function Au(a,i,r=null,s){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ra(i):i,state:r,key:i&&i.key||s||Bx()}}function Yi({pathname:a="/",search:i="",hash:r=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function Ra(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let s=a.indexOf("?");s>=0&&(i.search=a.substring(s),a=a.substring(0,s)),a&&(i.pathname=a)}return i}function kx(a,i,r,s={}){let{window:f=document.defaultView,v5Compat:d=!1}=s,h=f.history,p="POP",v=null,y=S();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function S(){return(h.state||{idx:null}).idx}function b(){p="POP";let j=S(),R=j==null?null:j-y;y=j,v&&v({action:p,location:w.location,delta:R})}function C(j,R){p="PUSH";let O=Au(w.location,j,R);y=S()+1;let M=wp(O,y),q=w.createHref(O);try{h.pushState(M,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;f.location.assign(q)}d&&v&&v({action:p,location:w.location,delta:1})}function N(j,R){p="REPLACE";let O=Au(w.location,j,R);y=S();let M=wp(O,y),q=w.createHref(O);h.replaceState(M,"",q),d&&v&&v({action:p,location:w.location,delta:0})}function D(j){return Yx(j)}let w={get action(){return p},get location(){return a(f,h)},listen(j){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Sp,b),v=j,()=>{f.removeEventListener(Sp,b),v=null}},createHref(j){return i(f,j)},createURL:D,encodeLocation(j){let R=D(j);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:C,replace:N,go(j){return h.go(j)}};return w}function Yx(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ke(r,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:Yi(a);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function hv(a,i,r="/"){return qx(a,i,r,!1)}function qx(a,i,r,s){let f=typeof i=="string"?Ra(i):i,d=zn(f.pathname||"/",r);if(d==null)return null;let h=mv(a);Vx(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=$x(d);p=Wx(h[v],y,s)}return p}function mv(a,i=[],r=[],s="",f=!1){let d=(h,p,v=f,y)=>{let S={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(s)&&v)return;ke(S.relativePath.startsWith(s),`Absolute route path "${S.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(s.length)}let b=On([s,S.relativePath]),C=r.concat(S);h.children&&h.children.length>0&&(ke(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),mv(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:Px(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of pv(h.path))d(h,p,!0,v)}),i}function pv(a){let i=a.split("/");if(i.length===0)return[];let[r,...s]=i,f=r.endsWith("?"),d=r.replace(/\?$/,"");if(s.length===0)return f?[d,""]:[d];let h=pv(s.join("/")),p=[];return p.push(...h.map(v=>v===""?d:[d,v].join("/"))),f&&p.push(...h),p.map(v=>a.startsWith("/")&&v===""?"/":v)}function Vx(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:Jx(i.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var Xx=/^:[\w-]+$/,Gx=3,Fx=2,Kx=1,Qx=10,Zx=-2,Ep=a=>a==="*";function Px(a,i){let r=a.split("/"),s=r.length;return r.some(Ep)&&(s+=Zx),i&&(s+=Fx),r.filter(f=>!Ep(f)).reduce((f,d)=>f+(Xx.test(d)?Gx:d===""?Kx:Qx),s)}function Jx(a,i){return a.length===i.length&&a.slice(0,-1).every((s,f)=>s===i[f])?a[a.length-1]-i[i.length-1]:0}function Wx(a,i,r=!1){let{routesMeta:s}=a,f={},d="/",h=[];for(let p=0;p<s.length;++p){let v=s[p],y=p===s.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=Ao({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&r&&!s[s.length-1].route.index&&(b=Ao({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(f,b.params),h.push({params:f,pathname:On([d,b.pathname]),pathnameBase:lb(On([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=On([d,b.pathnameBase]))}return h}function Ao(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,s]=Ix(a.path,a.caseSensitive,a.end),f=i.match(r);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:s.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const N=p[C];return b&&!N?y[S]=void 0:y[S]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function Ix(a,i=!1,r=!0){Dt(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let s=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(s.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(s.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),s]}function $x(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Dt(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function zn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,s=a.charAt(r);return s&&s!=="/"?null:a.slice(r)||"/"}var vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eb=a=>vv.test(a);function tb(a,i="/"){let{pathname:r,search:s="",hash:f=""}=typeof a=="string"?Ra(a):a,d;if(r)if(eb(r))d=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),Dt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?d=Cp(r.substring(1),"/"):d=Cp(r,i)}else d=i;return{pathname:d,search:ab(s),hash:ib(f)}}function Cp(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function du(a,i,r,s){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nb(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Ku(a){let i=nb(a);return i.map((r,s)=>s===i.length-1?r.pathname:r.pathnameBase)}function Qu(a,i,r,s=!1){let f;typeof a=="string"?f=Ra(a):(f={...a},ke(!f.pathname||!f.pathname.includes("?"),du("?","pathname","search",f)),ke(!f.pathname||!f.pathname.includes("#"),du("#","pathname","hash",f)),ke(!f.search||!f.search.includes("#"),du("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=r;else{let b=i.length-1;if(!s&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;f.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=tb(f,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var On=a=>a.join("/").replace(/\/\/+/g,"/"),lb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),ab=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,ib=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,cb=class{constructor(a,i,r,s=!1){this.status=a,this.statusText=i||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ob(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function rb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yv(a,i){let r=a;if(typeof r!="string"||!vv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,f=!1;if(gv)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),p=zn(h.pathname,i);h.origin===d.origin&&p!=null?r=p+h.search+h.hash:f=!0}catch{Dt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var xv=["POST","PUT","PATCH","DELETE"];new Set(xv);var sb=["GET",...xv];new Set(sb);var Oa=g.createContext(null);Oa.displayName="DataRouter";var Lo=g.createContext(null);Lo.displayName="DataRouterState";var ub=g.createContext(!1),bv=g.createContext({isTransitioning:!1});bv.displayName="ViewTransition";var fb=g.createContext(new Map);fb.displayName="Fetchers";var db=g.createContext(null);db.displayName="Await";var Mt=g.createContext(null);Mt.displayName="Navigation";var Gi=g.createContext(null);Gi.displayName="Location";var rn=g.createContext({outlet:null,matches:[],isDataRoute:!1});rn.displayName="Route";var Zu=g.createContext(null);Zu.displayName="RouteError";var Sv="REACT_ROUTER_ERROR",hb="REDIRECT",mb="ROUTE_ERROR_RESPONSE";function pb(a){if(a.startsWith(`${Sv}:${hb}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function vb(a){if(a.startsWith(`${Sv}:${mb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new cb(i.status,i.statusText,i.data)}catch{}}function gb(a,{relative:i}={}){ke(za(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=g.useContext(Mt),{hash:f,pathname:d,search:h}=Fi(a,{relative:i}),p=d;return r!=="/"&&(p=d==="/"?r:On([r,d])),s.createHref({pathname:p,search:h,hash:f})}function za(){return g.useContext(Gi)!=null}function sn(){return ke(za(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Gi).location}var wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ev(a){g.useContext(Mt).static||g.useLayoutEffect(a)}function Ln(){let{isDataRoute:a}=g.useContext(rn);return a?Ob():yb()}function yb(){ke(za(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(Oa),{basename:i,navigator:r}=g.useContext(Mt),{matches:s}=g.useContext(rn),{pathname:f}=sn(),d=JSON.stringify(Ku(s)),h=g.useRef(!1);return Ev(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Dt(h.current,wv),!h.current)return;if(typeof v=="number"){r.go(v);return}let S=Qu(v,JSON.parse(d),f,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:On([i,S.pathname])),(y.replace?r.replace:r.push)(S,y.state,y)},[i,r,d,f,a])}g.createContext(null);function Fi(a,{relative:i}={}){let{matches:r}=g.useContext(rn),{pathname:s}=sn(),f=JSON.stringify(Ku(r));return g.useMemo(()=>Qu(a,JSON.parse(f),s,i==="path"),[a,f,s,i])}function xb(a,i){return Cv(a,i)}function Cv(a,i,r,s,f){ke(za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Mt),{matches:h}=g.useContext(rn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let O=b&&b.path||"";jv(y,!b||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${X}"> to <Route path="${X==="/"?"*":`${X}/*`}">.`)}let U=Gt(),G;if(r){let X=typeof r=="string"?Ga(r):r;Ue(D==="/"||X.pathname?.startsWith(D),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${D}" but pathname "${X.pathname}" was given in the \`location\` prop.`),G=X}else G=U;let k=G.pathname||"/",H=k;if(D!=="/"){let X=D.replace(/^\//,"").split("/");H="/"+k.replace(/^\//,"").split("/").slice(X.length).join("/")}let Y=Hh(i,{pathname:H});xt(w||Y!=null,`No routes matched location "${G.pathname}${G.search}${G.hash}" `),xt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${G.pathname}${G.search}${G.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Q=Rp(Y&&Y.map(X=>Object.assign({},X,{params:Object.assign({},v,X.params),pathname:il([D,h.encodeLocation?h.encodeLocation(X.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?D:il([D,h.encodeLocation?h.encodeLocation(X.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),y,d,o,m);return r&&Q?S.createElement(Zn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...G},navigationType:"POP"}},Q):Q}function Ap(){let i=Hp(),r=yp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),d=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},r),d?S.createElement("pre",{style:m},d):null,y)}var Tp=S.createElement(Ap,null),Fh=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.onError?this.props.onError(i,r):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const d=Np(i.digest);d&&(i=d)}let r=i!==void 0?S.createElement(Yt.Provider,{value:this.props.routeContext},S.createElement(io.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Dp,{error:i},r):r}};Fh.contextType=vp;var Zs=new WeakMap;function Dp({children:i,error:r}){let{basename:d}=S.useContext(bt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=zp(r.digest);if(o){let m=Zs.get(r);if(m)throw m;let h=Xh(o.location,d);if(Gh&&!Zs.get(r))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Zs.set(r,y),y}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function _p({routeContext:i,match:r,children:d}){let o=S.useContext(Xa);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(Yt.Provider,{value:i},d)}function Rp(i,r=[],d=null,o=null,m=null){if(i==null){if(!d)return null;if(d.errors)i=d.matches;else if(r.length===0&&!d.initialized&&d.matches.length>0)i=d.matches;else return null}let h=i,y=d?.errors;if(y!=null){let D=h.findIndex(w=>w.route.id&&y?.[w.route.id]!==void 0);Ue(D>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),h=h.slice(0,Math.min(h.length,D+1))}let j=!1,v=-1;if(d)for(let D=0;D<h.length;D++){let w=h[D];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(v=D),w.route.id){let{loaderData:U,errors:G}=d,k=w.route.loader&&!U.hasOwnProperty(w.route.id)&&(!G||G[w.route.id]===void 0);if(w.route.lazy||k){j=!0,v>=0?h=h.slice(0,v+1):h=[h[0]];break}}}let g=d&&o?(D,w)=>{o(D,{location:d.location,params:d.matches?.[0]?.params??{},unstable_pattern:pp(d.matches),errorInfo:w})}:void 0;return h.reduceRight((D,w,U)=>{let G,k=!1,H=null,Y=null;d&&(G=y&&w.route.id?y[w.route.id]:void 0,H=w.route.errorElement||Tp,j&&(v<0&&U===0?($h("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,Y=null):v===U&&(k=!0,Y=w.route.hydrateFallbackElement||null)));let Q=r.concat(h.slice(0,U+1)),X=()=>{let F;return G?F=H:k?F=Y:w.route.Component?F=S.createElement(w.route.Component,null):w.route.element?F=w.route.element:F=D,S.createElement(_p,{match:w,routeContext:{outlet:D,matches:Q,isDataRoute:d!=null},children:F})};return d&&(w.route.ErrorBoundary||w.route.errorElement||U===0)?S.createElement(Fh,{location:d.location,revalidation:d.revalidation,component:H,error:G,children:X(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:g}):X()},null)}function co(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Op(i){let r=S.useContext(Xa);return Ue(r,co(i)),r}function Mp(i){let r=S.useContext(pi);return Ue(r,co(i)),r}function Up(i){let r=S.useContext(Yt);return Ue(r,co(i)),r}function so(i){let r=Up(i),d=r.matches[r.matches.length-1];return Ue(d.route.id,`${i} can only be used on routes that contain a unique "id"`),d.route.id}function Lp(){return so("useRouteId")}function Hp(){let i=S.useContext(io),r=Mp("useRouteError"),d=so("useRouteError");return i!==void 0?i:r.errors?.[d]}function Bp(){let{router:i}=Op("useNavigate"),r=so("useNavigate"),d=S.useRef(!1);return kh(()=>{d.current=!0}),S.useCallback(async(m,h={})=>{xt(d.current,Kh),d.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:r,...h}))},[i,r])}var Ah={};function $h(i,r,d){!r&&!Ah[i]&&(Ah[i]=!0,xt(!1,d))}S.memo(qp);function qp({routes:i,future:r,state:d,onError:o}){return Jh(i,void 0,d,o,r)}function sl({to:i,replace:r,state:d,relative:o}){Ue(Qa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=S.useContext(bt);xt(!m,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=S.useContext(Yt),{pathname:y}=Gt(),j=ol(),v=uo(i,no(h),y,o==="path"),g=JSON.stringify(v);return S.useEffect(()=>{j(JSON.parse(g),{replace:r,state:d,relative:o})},[j,g,o,r,d]),null}function _t(i){Ue(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yp({basename:i="/",children:r=null,location:d,navigationType:o="POP",navigator:m,static:h=!1,unstable_useTransitions:y}){Ue(!Qa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=i.replace(/^\/*/,"/"),v=S.useMemo(()=>({basename:j,navigator:m,static:h,unstable_useTransitions:y,future:{}}),[j,m,h,y]);typeof d=="string"&&(d=Ga(d));let{pathname:g="/",search:D="",hash:w="",state:U=null,key:G="default"}=d,k=S.useMemo(()=>{let H=cl(g,j);return H==null?null:{location:{pathname:H,search:D,hash:w,state:U,key:G},navigationType:o}},[j,g,D,w,U,G,o]);return xt(k!=null,`<Router basename="${j}"> is not able to match the URL "${g}${D}${w}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:S.createElement(bt.Provider,{value:v},S.createElement(Zn.Provider,{children:r,value:k}))}function Gp({children:i,location:r}){return wp(Ws(i),r)}function Ws(i,r=[]){let d=[];return S.Children.forEach(i,(o,m)=>{if(!S.isValidElement(o))return;let h=[...r,m];if(o.type===S.Fragment){d.push.apply(d,Ws(o.props.children,h));return}Ue(o.type===_t,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!o.props.index||!o.props.children,"An index route cannot have child routes.");let y={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(y.children=Ws(o.props.children,h)),d.push(y)}),d}var di="get",hi="application/x-www-form-urlencoded";function gi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Xp(i){return gi(i)&&i.tagName.toLowerCase()==="button"}function Qp(i){return gi(i)&&i.tagName.toLowerCase()==="form"}function Zp(i){return gi(i)&&i.tagName.toLowerCase()==="input"}function Vp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Kp(i,r){return i.button===0&&(!r||r==="_self")&&!Vp(i)}function Is(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((r,d)=>{let o=i[d];return r.concat(Array.isArray(o)?o.map(m=>[d,m]):[[d,o]])},[]))}function kp(i,r){let d=Is(i);return r&&r.forEach((o,m)=>{d.has(m)||r.getAll(m).forEach(h=>{d.append(m,h)})}),d}var fi=null;function Jp(){if(fi===null)try{new FormData(document.createElement("form"),0),fi=!1}catch{fi=!0}return fi}var Fp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vs(i){return i!=null&&!Fp.has(i)?(xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hi}"`),null):i}function $p(i,r){let d,o,m,h,y;if(Qp(i)){let j=i.getAttribute("action");o=j?cl(j,r):null,d=i.getAttribute("method")||di,m=Vs(i.getAttribute("enctype"))||hi,h=new FormData(i)}else if(Xp(i)||Zp(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||j.getAttribute("action");if(o=v?cl(v,r):null,d=i.getAttribute("formmethod")||j.getAttribute("method")||di,m=Vs(i.getAttribute("formenctype"))||Vs(j.getAttribute("enctype"))||hi,h=new FormData(j,i),!Jp()){let{name:g,type:D,value:w}=i;if(D==="image"){let U=g?`${g}.`:"";h.append(`${U}x`,"0"),h.append(`${U}y`,"0")}else g&&h.append(g,w)}}else{if(gi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=di,o=null,m=hi,y=i}return h&&m==="text/plain"&&(y=h,h=void 0),{action:o,method:d.toLowerCase(),encType:m,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function oo(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function Wp(i,r,d,o){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return d?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${o}`:m.pathname=`${m.pathname}.${o}`:m.pathname==="/"?m.pathname=`_root.${o}`:r&&cl(m.pathname,r)==="/"?m.pathname=`${r.replace(/\/$/,"")}/_root.${o}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${o}`,m}async function Ip(i,r){if(i.id in r)return r[i.id];try{let d=await import(i.module);return r[i.id]=d,d}catch(d){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Pp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function eg(i,r,d){let o=await Promise.all(i.map(async m=>{let h=r.routes[m.route.id];if(h){let y=await Ip(h,d);return y.links?y.links():[]}return[]}));return ng(o.flat(1).filter(Pp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function Th(i,r,d,o,m,h){let y=(v,g)=>d[g]?v.route.id!==d[g].route.id:!0,j=(v,g)=>d[g].pathname!==v.pathname||d[g].route.path?.endsWith("*")&&d[g].params["*"]!==v.params["*"];return h==="assets"?r.filter((v,g)=>y(v,g)||j(v,g)):h==="data"?r.filter((v,g)=>{let D=o.routes[v.route.id];if(!D||!D.hasLoader)return!1;if(y(v,g)||j(v,g))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:d[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function tg(i,r,{includeHydrateFallback:d}={}){return lg(i.map(o=>{let m=r.routes[o.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),d&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function lg(i){return[...new Set(i)]}function ag(i){let r={},d=Object.keys(i).sort();for(let o of d)r[o]=i[o];return r}function ng(i,r){let d=new Set;return new Set(r),i.reduce((o,m)=>{let h=JSON.stringify(ag(m));return d.has(h)||(d.add(h),o.push({key:h,link:m})),o},[])}function Wh(){let i=S.useContext(Xa);return oo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function ug(){let i=S.useContext(pi);return oo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var ro=S.createContext(void 0);ro.displayName="FrameworkContext";function Ih(){let i=S.useContext(ro);return oo(i,"You must render this element inside a <HydratedRouter> element"),i}function ig(i,r){let d=S.useContext(ro),[o,m]=S.useState(!1),[h,y]=S.useState(!1),{onFocus:j,onBlur:v,onMouseEnter:g,onMouseLeave:D,onTouchStart:w}=r,U=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let H=Q=>{Q.forEach(X=>{y(X.isIntersecting)})},Y=new IntersectionObserver(H,{threshold:.5});return U.current&&Y.observe(U.current),()=>{Y.disconnect()}}},[i]),S.useEffect(()=>{if(o){let H=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(H)}}},[o]);let G=()=>{m(!0)},k=()=>{m(!1),y(!1)};return d?i!=="intent"?[h,U,{}]:[h,U,{onFocus:Yn(j,G),onBlur:Yn(v,k),onMouseEnter:Yn(g,G),onMouseLeave:Yn(D,k),onTouchStart:Yn(w,G)}]:[!1,U,{}]}function Yn(i,r){return d=>{i&&i(d),d.defaultPrevented||r(d)}}function cg({page:i,...r}){let{router:d}=Wh(),o=S.useMemo(()=>Hh(d.routes,i,d.basename),[d.routes,i,d.basename]);return o?S.createElement(og,{page:i,matches:o,...r}):null}function sg(i){let{manifest:r,routeModules:d}=Ih(),[o,m]=S.useState([]);return S.useEffect(()=>{let h=!1;return eg(i,r,d).then(y=>{h||m(y)}),()=>{h=!0}},[i,r,d]),o}function og({page:i,matches:r,...d}){let o=Gt(),{future:m,manifest:h,routeModules:y}=Ih(),{basename:j}=Wh(),{loaderData:v,matches:g}=ug(),D=S.useMemo(()=>Th(i,r,g,h,o,"data"),[i,r,g,h,o]),w=S.useMemo(()=>Th(i,r,g,h,o,"assets"),[i,r,g,h,o]),U=S.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,Y=!1;if(r.forEach(X=>{let F=h.routes[X.route.id];!F||!F.hasLoader||(!D.some(ne=>ne.route.id===X.route.id)&&X.route.id in v&&y[X.route.id]?.shouldRevalidate||F.hasClientLoader?Y=!0:H.add(X.route.id))}),H.size===0)return[];let Q=Wp(i,j,m.unstable_trailingSlashAwareDataRequests,"data");return Y&&H.size>0&&Q.searchParams.set("_routes",r.filter(X=>H.has(X.route.id)).map(X=>X.route.id).join(",")),[Q.pathname+Q.search]},[j,m.unstable_trailingSlashAwareDataRequests,v,o,h,D,r,i,y]),G=S.useMemo(()=>tg(w,h),[w,h]),k=sg(w);return S.createElement(S.Fragment,null,U.map(H=>S.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...d})),G.map(H=>S.createElement("link",{key:H,rel:"modulepreload",href:H,...d})),k.map(({key:H,link:Y})=>S.createElement("link",{key:H,nonce:d.nonce,...Y})))}function rg(...i){return r=>{i.forEach(d=>{typeof d=="function"?d(r):d!=null&&(d.current=r)})}}var fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fg&&(window.__reactRouterVersion="7.12.0")}catch{}function dg({basename:i,children:r,unstable_useTransitions:d,window:o}){let m=S.useRef();m.current==null&&(m.current=Vy({window:o,v5Compat:!0}));let h=m.current,[y,j]=S.useState({action:h.action,location:h.location}),v=S.useCallback(g=>{d===!1?j(g):S.startTransition(()=>j(g))},[d]);return S.useLayoutEffect(()=>h.listen(v),[h,v]),S.createElement(Yp,{basename:i,children:r,location:y.location,navigationType:y.action,navigator:h,unstable_useTransitions:d})}var Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yi=S.forwardRef(function({onClick:r,discover:d="render",prefetch:o="none",relative:m,reloadDocument:h,replace:y,state:j,target:v,to:g,preventScrollReset:D,viewTransition:w,unstable_defaultShouldRevalidate:U,...G},k){let{basename:H,unstable_useTransitions:Y}=S.useContext(bt),Q=typeof g=="string"&&Ph.test(g),X=Xh(g,H);g=X.to;let F=Ep(g,{relative:m}),[ne,te,fe]=ig(o,G),$=pg(g,{replace:y,state:j,target:v,preventScrollReset:D,relative:m,viewTransition:w,unstable_defaultShouldRevalidate:U,unstable_useTransitions:Y});function ye(ce){r&&r(ce),ce.defaultPrevented||$(ce)}let pe=S.createElement("a",{...G,...fe,href:X.absoluteURL||F,onClick:X.isExternal||h?r:ye,ref:rg(k,te),target:v,"data-discover":!Q&&d==="render"?"true":void 0});return ne&&!Q?S.createElement(S.Fragment,null,pe,S.createElement(cg,{page:F})):pe});yi.displayName="Link";var hg=S.forwardRef(function({"aria-current":r="page",caseSensitive:d=!1,className:o="",end:m=!1,style:h,to:y,viewTransition:j,children:v,...g},D){let w=Vn(y,{relative:g.relative}),U=Gt(),G=S.useContext(pi),{navigator:k,basename:H}=S.useContext(bt),Y=G!=null&&jg(w)&&j===!0,Q=k.encodeLocation?k.encodeLocation(w).pathname:w.pathname,X=U.pathname,F=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;d||(X=X.toLowerCase(),F=F?F.toLowerCase():null,Q=Q.toLowerCase()),F&&H&&(F=cl(F,H)||F);const ne=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let te=X===Q||!m&&X.startsWith(Q)&&X.charAt(ne)==="/",fe=F!=null&&(F===Q||!m&&F.startsWith(Q)&&F.charAt(Q.length)==="/"),$={isActive:te,isPending:fe,isTransitioning:Y},ye=te?r:void 0,pe;typeof o=="function"?pe=o($):pe=[o,te?"active":null,fe?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let ce=typeof h=="function"?h($):h;return S.createElement(yi,{...g,"aria-current":ye,className:pe,ref:D,style:ce,to:y,viewTransition:j},typeof v=="function"?v($):v)});hg.displayName="NavLink";var mg=S.forwardRef(({discover:i="render",fetcherKey:r,navigate:d,reloadDocument:o,replace:m,state:h,method:y=di,action:j,onSubmit:v,relative:g,preventScrollReset:D,viewTransition:w,unstable_defaultShouldRevalidate:U,...G},k)=>{let{unstable_useTransitions:H}=S.useContext(bt),Y=bg(),Q=Sg(j,{relative:g}),X=y.toLowerCase()==="get"?"get":"post",F=typeof j=="string"&&Ph.test(j),ne=te=>{if(v&&v(te),te.defaultPrevented)return;te.preventDefault();let fe=te.nativeEvent.submitter,$=fe?.getAttribute("formmethod")||y,ye=()=>Y(fe||te.currentTarget,{fetcherKey:r,method:$,navigate:d,replace:m,state:h,relative:g,preventScrollReset:D,viewTransition:w,unstable_defaultShouldRevalidate:U});H&&d!==!1?S.startTransition(()=>ye()):ye()};return S.createElement("form",{ref:k,method:X,action:Q,onSubmit:o?v:ne,...G,"data-discover":!F&&i==="render"?"true":void 0})});mg.displayName="Form";function yg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function em(i){let r=S.useContext(Xa);return Ue(r,yg(i)),r}function pg(i,{target:r,replace:d,state:o,preventScrollReset:m,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:j,unstable_useTransitions:v}={}){let g=ol(),D=Gt(),w=Vn(i,{relative:h});return S.useCallback(U=>{if(Kp(U,r)){U.preventDefault();let G=d!==void 0?d:Xn(D)===Xn(w),k=()=>g(i,{replace:G,state:o,preventScrollReset:m,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:j});v?S.startTransition(()=>k()):k()}},[D,g,w,d,o,r,i,m,h,y,j,v])}function gg(i){xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=S.useRef(Is(i)),d=S.useRef(!1),o=Gt(),m=S.useMemo(()=>kp(o.search,d.current?null:r.current),[o.search]),h=ol(),y=S.useCallback((j,v)=>{const g=Is(typeof j=="function"?j(new URLSearchParams(m)):j);d.current=!0,h("?"+g,v)},[h,m]);return[m,y]}var vg=0,xg=()=>`__${String(++vg)}__`;function bg(){let{router:i}=em("useSubmit"),{basename:r}=S.useContext(bt),d=Lp(),o=i.fetch,m=i.navigate;return S.useCallback(async(h,y={})=>{let{action:j,method:v,encType:g,formData:D,body:w}=$p(h,r);if(y.navigate===!1){let U=y.fetcherKey||xg();await o(U,d,y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:D,body:w,formMethod:y.method||v,formEncType:y.encType||g,flushSync:y.flushSync})}else await m(y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:D,body:w,formMethod:y.method||v,formEncType:y.encType||g,replace:y.replace,state:y.state,fromRouteId:d,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,m,r,d])}function Sg(i,{relative:r}={}){let{basename:d}=S.useContext(bt),o=S.useContext(Yt);Ue(o,"useFormAction must be used inside a RouteContext");let[m]=o.matches.slice(-1),h={...Vn(i||".",{relative:r})},y=Gt();if(i==null){h.search=y.search;let j=new URLSearchParams(h.search),v=j.getAll("index");if(v.some(D=>D==="")){j.delete("index"),v.filter(w=>w).forEach(w=>j.append("index",w));let D=j.toString();h.search=D?`?${D}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(h.pathname=h.pathname==="/"?d:il([d,h.pathname])),Xn(h)}function jg(i,{relative:r}={}){let d=S.useContext(Zh);Ue(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=em("useViewTransitionState"),m=Vn(i,{relative:r});if(!d.isTransitioning)return!1;let h=cl(d.currentLocation.pathname,o)||d.currentLocation.pathname,y=cl(d.nextLocation.pathname,o)||d.nextLocation.pathname;return mi(m.pathname,y)!=null||mi(m.pathname,h)!=null}const tm=S.createContext(null);function Ut(){const i=S.useContext(tm);if(!i)throw new Error("useAuth must be used within AuthProvider");return i}function zg({children:i}){const r="/.account/",[d,o]=S.useState(null),[m,h]=S.useState(!0),[y,j]=S.useState(null),[v,g]=S.useState(!1),D=!!d?.account?.logout,w=m,U=async()=>{try{const H=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return H.ok?!!(await H.json()).client:!1}catch{return!1}},G=async()=>{try{const H=await fetch(r,{headers:{Accept:"application/json"},credentials:"include"});if(H.ok){const Y=await H.json();let Q=!1;Y.controls?.account?.logout&&(Q=await U()),g(Q),o(Y.controls||{})}else j(`Failed to load configuration (Status: ${H.status})`)}catch{j("Network error: Could not connect to authentication server")}};S.useEffect(()=>{(async()=>(await G(),h(!1)))()},[r]);const k=async()=>{await G()};return s.jsx(tm.Provider,{value:{controls:d,isInitializing:m,initError:y,idpIndex:r,isLoggedIn:D,authenticating:w,hasOidcPending:v,refetchControls:k},children:i})}const lm=(...i)=>i.filter((r,d,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===d).join(" ").trim();const Ng=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Eg=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,d,o)=>o?o.toUpperCase():d.toLowerCase());const Dh=i=>{const r=Eg(i);return r.charAt(0).toUpperCase()+r.slice(1)};var Cg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const wg=i=>{for(const r in i)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const Ag=S.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:d=2,absoluteStrokeWidth:o,className:m="",children:h,iconNode:y,...j},v)=>S.createElement("svg",{ref:v,...Cg,width:r,height:r,stroke:i,strokeWidth:o?Number(d)*24/Number(r):d,className:lm("lucide",m),...!h&&!wg(j)&&{"aria-hidden":"true"},...j},[...y.map(([g,D])=>S.createElement(g,D)),...Array.isArray(h)?h:[h]]));const Be=(i,r)=>{const d=S.forwardRef(({className:o,...m},h)=>S.createElement(Ag,{ref:h,iconNode:r,className:lm(`lucide-${Ng(Dh(i))}`,`lucide-${i}`,o),...m}));return d.displayName=Dh(i),d};const Tg=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],am=Be("arrow-left",Tg);const Dg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],vi=Be("arrow-right",Dg);const _g=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ea=Be("check",_g);const Rg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Og=Be("chevron-down",Rg);const Mg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],nm=Be("circle-alert",Mg);const Ug=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],um=Be("clock",Ug);const Lg=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ks=Be("copy",Lg);const Hg=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Bg=Be("database",Hg);const qg=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],_h=Be("external-link",qg);const Yg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Gg=Be("globe",Yg);const Xg=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Qg=Be("hard-drive",Xg);const Zg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Vg=Be("info",Zg);const Kg=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ks=Be("key",Kg);const kg=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],im=Be("layers",kg);const Jg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ya=Be("loader-circle",Jg);const Fg=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Gn=Be("lock",Fg);const $g=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Wg=Be("log-out",$g);const Ig=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ps=Be("mail",Ig);const Pg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Js=Be("plus",Pg);const ev=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Qn=Be("shield",ev);const tv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Rh=Be("trash-2",tv);const lv=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],av=Be("user",lv);function cm(){return s.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:s.jsx(Ya,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Kn({children:i,title:r,subtitle:d,icon:o,showBack:m,onBack:h}){return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[s.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),s.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[s.jsxs("div",{className:"flex flex-col items-center mb-6",children:[s.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[m?s.jsx("button",{onClick:h,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:s.jsx(am,{className:"w-4 h-4"})}):s.jsx("div",{className:"w-8"}),s.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:o?s.jsx(o,{className:"w-5 h-5 text-white"}):s.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),s.jsx("div",{className:"w-8"})]}),s.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:r}),d&&s.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:d})]}),i]})]})}function nv({message:i}){return s.jsx(Kn,{title:"Error",subtitle:i,icon:nm,children:s.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const eo="xpod:returnTo";function qa(i){try{i&&sessionStorage.setItem(eo,i)}catch{}}function uv(){try{const i=sessionStorage.getItem(eo);return i&&sessionStorage.removeItem(eo),i}catch{return null}}function iv(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function cv({children:i}){const{isLoggedIn:r,hasOidcPending:d}=Ut(),o=Gt();return r&&d?s.jsx(sl,{to:"/.account/oidc/consent/",replace:!0}):r?s.jsx(s.Fragment,{children:i}):(qa(o.pathname+o.search),s.jsx(sl,{to:"/.account/login/password/",replace:!0}))}function sm(i){var r,d,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var m=i.length;for(r=0;r<m;r++)i[r]&&(d=sm(i[r]))&&(o&&(o+=" "),o+=d)}else for(d in i)i[d]&&(o&&(o+=" "),o+=d);return o}function om(){for(var i,r,d=0,o="",m=arguments.length;d<m;d++)(i=arguments[d])&&(r=sm(i))&&(o&&(o+=" "),o+=r);return o}function to({initialIsRegister:i=!1}){const{controls:r,idpIndex:d,isLoggedIn:o,authenticating:m}=Ut(),h=ol(),[y,j]=S.useState(!1),[v,g]=S.useState(i),[D,w]=S.useState(""),[U,G]=S.useState(""),[k,H]=S.useState(!1),Y=D.length>0&&U.length>0&&D===U;if(S.useEffect(()=>{const te=iv();te&&qa(te)},[]),o)return s.jsx(sl,{to:"/.account/account/",replace:!0});const Q=[{icon:um,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:im,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Qn,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}],X=async te=>{te.preventDefault(),j(!0);const fe=new FormData(te.currentTarget),$=fe.get("email"),ye=fe.get("password");try{if(v){const pe=fe.get("confirmPassword");if(ye!==pe){alert("Passwords do not match"),j(!1);return}let ce=await fetch(r?.account?.create||"/.account/account/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!ce.ok)throw new Error((await ce.json().catch(()=>({}))).message||"Failed to create account");ce=await fetch(d,{headers:{Accept:"application/json"},credentials:"include"});const Ee=await ce.json(),W=Ee.controls?.password?.create;if(!W)throw new Error("Password endpoint not found");if(ce=await fetch(W,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:$,password:ye})}),!ce.ok)throw new Error((await ce.json().catch(()=>({}))).message||"Failed to set password");const se=Ee.controls?.password?.login||r?.password?.login||"/.account/login/password/";if(ce=await fetch(se,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:$,password:ye})}),!ce.ok)throw new Error((await ce.json().catch(()=>({}))).message||"Auto-login failed");window.location.href="/.account/account/"}else{const pe=await fetch(r?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:$,password:ye})}),ce=await pe.json().catch(()=>({}));if(console.log("[Login] Response status:",pe.status),console.log("[Login] Response json:",ce),console.log("[Login] Location header:",pe.headers.get("Location")),pe.ok){const Ee=pe.headers.get("Location");if(console.log("[Login] json.location:",ce.location),console.log("[Login] headerLocation:",Ee),ce.location){console.log("[Login] Redirecting to json.location:",ce.location),window.location.href=ce.location;return}if(Ee){console.log("[Login] Redirecting to headerLocation:",Ee),window.location.href=Ee;return}const W=uv();if(console.log("[Login] returnTo:",W),W){console.log("[Login] Redirecting to returnTo:",W),window.location.href=W;return}console.log("[Login] Checking for OIDC consent...");try{const se=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Login] Consent check status:",se.status),se.ok){console.log("[Login] OIDC flow waiting, redirecting to consent"),window.location.href="/.account/oidc/consent/";return}}catch(se){console.log("[Login] Consent check error:",se)}console.log("[Login] No redirect found, going to dashboard"),window.location.href="/.account/account/"}else alert(ce.message||"Login failed")}}catch(pe){alert(pe.message||"Operation failed")}finally{j(!1)}},F=()=>{g(!v),w(""),G("")},ne=async()=>{if(r?.oidc?.cancel){H(!0);try{const fe=await(await fetch(r.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();fe.location&&(window.location.href=fe.location)}catch{alert("Failed to cancel"),H(!1)}}};return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[s.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[s.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),s.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),s.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[s.jsx("div",{className:"hidden lg:block px-8",children:s.jsxs("div",{className:"max-w-md ml-auto",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",s.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),s.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),s.jsx("div",{className:"space-y-4",children:s.jsx("div",{className:"space-y-3",children:Q.map(({icon:te,title:fe,desc:$})=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:s.jsx(te,{className:"w-4 h-4 text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:fe}),s.jsx("p",{className:"text-[10px] text-zinc-500",children:$})]})]},fe))})}),s.jsx("div",{className:"mt-12",children:s.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",s.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),s.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:s.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[s.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:s.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),s.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),s.jsxs("form",{className:"space-y-4",onSubmit:X,children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ps,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Email"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"password",type:"password",required:!0,value:D,onChange:te=>w(te.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&s.jsxs("div",{className:"relative",children:[Y?s.jsx(ea,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:U,onChange:te=>G(te.target.value),className:om("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",Y?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),!v&&s.jsx("div",{className:"flex justify-end",children:s.jsx("button",{type:"button",onClick:()=>h("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),s.jsx("button",{type:"submit",disabled:y||k,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:y?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:[v?"Sign up":"Sign in",s.jsx(vi,{className:"h-4 w-4"})]})}),m&&!v&&s.jsx("button",{type:"button",onClick:ne,disabled:k||y,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:k?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),s.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:s.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",s.jsx("button",{onClick:F,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function sv(){const{isLoggedIn:i,hasOidcPending:r}=Ut();return i&&r?s.jsx(sl,{to:"/.account/oidc/consent/",replace:!0}):i?s.jsx(sl,{to:"/.account/account/",replace:!0}):s.jsx(to,{})}function ov(){const i=ol(),{isLoggedIn:r}=Ut(),d=[{icon:um,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:im,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Qn,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}];return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[s.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[s.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),s.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),s.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[s.jsx("div",{className:"hidden lg:block px-8",children:s.jsxs("div",{className:"max-w-md ml-auto",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",s.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),s.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),s.jsx("div",{className:"space-y-4",children:s.jsx("div",{className:"space-y-3",children:d.map(({icon:o,title:m,desc:h})=>s.jsxs("div",{className:"flex gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:s.jsx(o,{className:"w-4 h-4 text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:m}),s.jsx("p",{className:"text-[10px] text-zinc-500",children:h})]})]},m))})}),s.jsx("div",{className:"mt-12",children:s.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",s.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),s.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:s.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[s.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[s.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:s.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("div",{className:"lg:hidden mb-8",children:[s.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",s.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),s.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),s.jsx("div",{className:"space-y-2",children:d.map(({icon:o,title:m,desc:h})=>s.jsxs("div",{className:"flex gap-2",children:[s.jsx(o,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-medium text-zinc-900",children:m}),s.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",h]})]})]},m))})]}),s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),s.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),s.jsxs("div",{className:"space-y-3 mb-6",children:[s.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:s.jsx(_h,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),s.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),s.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[s.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:s.jsx(_h,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),s.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),s.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[s.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),s.jsxs("button",{onClick:()=>i(r?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[s.jsx(am,{className:"w-4 h-4"}),r?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Oh(i,r){return`sk-${btoa(`${i}:${r}`)}`}function rv(){const{controls:i,refetchControls:r,hasOidcPending:d}=Ut(),o=ol(),[m,h]=S.useState(!1),[y,j]=S.useState([]),[v,g]=S.useState([]),[D,w]=S.useState(!1),[U,G]=S.useState(""),[k,H]=S.useState(!1),[Y,Q]=S.useState(""),[X,F]=S.useState([]),[ne,te]=S.useState(null),[fe,$]=S.useState(!1),[ye,pe]=S.useState(""),[ce,Ee]=S.useState(""),[W,se]=S.useState(null),[De,Ge]=S.useState(!1),T=S.useRef(null);S.useEffect(()=>{const L=ee=>{T.current&&!T.current.contains(ee.target)&&Ge(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);const B=async(L,ee)=>{try{await navigator.clipboard.writeText(L),se(ee),setTimeout(()=>se(null),2e3)}catch{}},K=async()=>{try{if(i?.account?.webId){const L=await fetch(i.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(L.ok){const ge=(await L.json()).webIdLinks||{};j(Object.keys(ge))}else j([])}if(i?.account?.pod){const L=await fetch(i.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(L.ok){const ge=(await L.json()).pods||{};g(Object.keys(ge).map(_e=>({id:_e})))}else g([])}if(i?.account?.clientCredentials){const L=await fetch(i.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(L.ok){const ge=(await L.json()).clientCredentials||{};F(Object.entries(ge).map(([_e])=>({id:_e})))}else F([])}}catch(L){console.error("Failed to fetch account data:",L)}};S.useEffect(()=>{K()},[i]);const Se=async()=>{if(i?.account?.logout){h(!0);try{(await fetch(i.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await r(),o("/.account/"))}catch{alert("Logout failed")}finally{h(!1)}}},je=async L=>{if(L.preventDefault(),!(!i?.account?.pod||!U.trim())){h(!0);try{const ee=await fetch(i.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:U.trim(),...(()=>{const ge=sessionStorage.getItem("provisionCode");return ge?{settings:{provisionCode:ge}}:{}})()})});if(ee.ok)sessionStorage.removeItem("provisionCode"),G(""),w(!1),await r(),await K();else{const ge=await ee.json().catch(()=>({}));alert(ge.message||"Failed to create pod")}}catch{alert("Network error")}finally{h(!1)}}},b=async L=>{if(L.preventDefault(),!(!i?.account?.webId||!Y.trim())){h(!0);try{const ee=await fetch(i.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:Y.trim()})});if(ee.ok)Q(""),H(!1),await K();else{const ge=await ee.json().catch(()=>({}));alert(ge.message||"Failed to link WebID")}}catch{alert("Network error")}finally{h(!1)}}},M=async L=>{if(confirm(`Delete pod ${L}? This cannot be undone.`)){h(!0);try{(await fetch(L,{method:"DELETE",credentials:"include"})).ok?await K():alert("Failed to delete pod")}catch{alert("Network error")}finally{h(!1)}}},q=async L=>{if(L.preventDefault(),!(!i?.account?.clientCredentials||!ye||!ce.trim())){h(!0);try{const ee=await fetch(i.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:ce.trim(),webId:ye})});if(ee.ok){const ge=await ee.json();te({id:ge.id,secret:ge.secret}),$(!1),pe(""),Ee(""),await K()}else{const ge=await ee.json().catch(()=>({}));alert(ge.message||"Failed to create credential")}}catch{alert("Network error")}finally{h(!1)}}},V=()=>{if(y.length===0){alert("Please create a Pod first to get a WebID");return}pe(y[0]),Ee(""),$(!0)},le=async L=>{if(confirm("Delete this credential? This cannot be undone.")){h(!0);try{(await fetch(L,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await K():alert("Failed to delete credential")}catch{alert("Network error")}finally{h(!1)}}};return s.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[s.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),s.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:s.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:s.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),s.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(yi,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[s.jsx(Vg,{className:"w-3.5 h-3.5"}),"About"]}),s.jsxs("button",{onClick:Se,disabled:m,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[s.jsx(Wg,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),s.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[d&&s.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:s.jsx(Qn,{className:"w-5 h-5 text-[#7C4DFF]"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),s.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),s.jsxs(yi,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",s.jsx(vi,{className:"w-4 h-4"})]})]})}),s.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-1",children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[s.jsx(Qg,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),i?.account?.pod&&s.jsxs("button",{onClick:()=>w(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),s.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),D&&s.jsxs("form",{onSubmit:je,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:U,onChange:L=>G(L.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),s.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:m?"Creating...":"Create"}),s.jsx("button",{type:"button",onClick:()=>w(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?s.jsx("div",{className:"p-4",children:s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"No Pods found. Create one to get started."})}):s.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(L=>s.jsxs("li",{className:"p-3 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[s.jsx(Bg,{className:"w-4 h-4 text-zinc-400 shrink-0"}),s.jsx("a",{href:L.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:L.id})]}),s.jsx("button",{onClick:()=>M(L.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:s.jsx(Rh,{className:"w-4 h-4"})})]},L.id))})})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-1",children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[s.jsx(av,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),i?.account?.webId&&s.jsxs("button",{onClick:()=>H(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),s.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),k&&s.jsxs("form",{onSubmit:b,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"url",value:Y,onChange:L=>Q(L.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),s.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:m?"Linking...":"Link"}),s.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:y.length===0?s.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):s.jsx("ul",{className:"divide-y divide-zinc-100",children:y.map(L=>s.jsxs("li",{className:"p-3 flex items-center gap-3",children:[s.jsx(Gg,{className:"w-4 h-4 text-zinc-400 shrink-0"}),s.jsx("a",{href:L,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:L})]},L))})})]}),s.jsxs("section",{children:[s.jsxs("div",{className:"flex justify-between items-center mb-1",children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[s.jsx(ks,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),i?.account?.clientCredentials&&s.jsxs("button",{onClick:V,disabled:m,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"New Key"]})]}),s.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["API Keys for programmatic access. Use with ",s.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),i?.account?.clientCredentials?s.jsxs(s.Fragment,{children:[fe&&s.jsxs("form",{onSubmit:q,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),s.jsx("input",{type:"text",value:ce,onChange:L=>Ee(L.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),s.jsxs("div",{className:"relative",ref:T,children:[s.jsxs("button",{type:"button",onClick:()=>Ge(!De),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[s.jsx("span",{className:"truncate text-zinc-700",children:ye||"Select WebID"}),s.jsx(Og,{className:`w-4 h-4 text-zinc-400 transition-transform ${De?"rotate-180":""}`})]}),De&&s.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:y.map(L=>s.jsx("button",{type:"button",onClick:()=>{pe(L),Ge(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${ye===L?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:L},L))}),s.jsx("input",{type:"hidden",name:"webId",value:ye,required:!0})]})]}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:()=>$(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),s.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:m?"Creating...":"Create"})]})]}),ne&&s.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:s.jsx(ks,{className:"w-4 h-4 text-emerald-600"})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),s.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),s.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),s.jsx("p",{className:"text-zinc-600 truncate",children:ne.id})]}),s.jsx("button",{onClick:()=>B(ne.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:W==="id"?s.jsx(ea,{className:"w-3.5 h-3.5 text-emerald-500"}):s.jsx(Ks,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),s.jsx("p",{className:"text-zinc-600 break-all",children:ne.secret})]}),s.jsx("button",{onClick:()=>B(ne.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:W==="secret"?s.jsx(ea,{className:"w-3.5 h-3.5 text-emerald-500"}):s.jsx(Ks,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),s.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Oh(ne.id,ne.secret)})]}),s.jsx("button",{onClick:()=>B(Oh(ne.id,ne.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:W==="apikey"?s.jsx(ea,{className:"w-3.5 h-3.5 text-emerald-500"}):s.jsx(Ks,{className:"w-3.5 h-3.5"})})]})]}),s.jsxs("p",{className:"mt-3 text-[10px] text-zinc-400",children:["Use the API Key with: ",s.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),s.jsx("button",{onClick:()=>te(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:X.length===0?s.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):s.jsx("ul",{className:"divide-y divide-zinc-100",children:X.map(L=>s.jsxs("li",{className:"p-3 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[s.jsx(ks,{className:"w-4 h-4 text-zinc-400 shrink-0"}),s.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:L.id})]}),s.jsx("button",{onClick:()=>le(L.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:s.jsx(Rh,{className:"w-4 h-4"})})]},L.id))})})]}):s.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:s.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),s.jsxs("section",{children:[s.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[s.jsx(Qn,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),s.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),s.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),s.jsx("a",{href:i?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function fv(){const{idpIndex:i,isLoggedIn:r,controls:d}=Ut(),o=ol(),[m,h]=S.useState(!0),[y,j]=S.useState(null),[v,g]=S.useState(null),[D,w]=S.useState([]),[U,G]=S.useState(""),[k,H]=S.useState(null),[Y,Q]=S.useState(null),[X,F]=S.useState(!0),ne=`${i}oidc/consent/`,te=`${i}oidc/pick-webid/`,fe=`${i}oidc/cancel`;S.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),qa(window.location.href),(async()=>{try{const W=await fetch(ne,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",W.status),W.status===401||W.status===403){H("Please sign in to continue authorization."),h(!1);return}if(!W.ok){const Ge=await W.json().catch(()=>({}));throw new Error(Ge.message||"Failed to load consent info")}const se=await W.json();j(se.client||{}),g(se.webId||null);const De=await fetch(te,{headers:{Accept:"application/json"},credentials:"include"});if(De.ok){const T=(await De.json()).webIds||[];w(T),se.webId&&T.includes(se.webId)?G(se.webId):T.length>0&&G(T[0])}}catch(W){H(W.message||"Failed to load consent info")}finally{h(!1)}})()},[ne,te]);const $=W=>{try{const se=new URL(W),De=se.pathname.split("/").filter(Boolean);return{provider:se.host,podId:De[0]??"-",full:W}}catch{return{provider:"-",podId:"-",full:W}}},ye=async W=>{try{await navigator.clipboard.writeText(W),Q(W),setTimeout(()=>Q(null),1200)}catch{Q(null)}},pe=async()=>{try{d?.account?.logout&&await fetch(d.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},ce=async W=>{console.log("[Consent] handleConsent called, allow:",W);try{if(h(!0),H(null),!W){console.log("[Consent] Cancelling...");const K=await(await fetch(fe,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",K),K.location&&(window.location.href=K.location);return}if(U&&U!==v){console.log("[Consent] Picking WebID:",U);const B=await fetch(te,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:U,remember:!1})}),K=await B.json();if(!B.ok)throw new Error(K.message||"Failed to select WebID");K.location&&await fetch(K.location,{credentials:"include"})}const se=await fetch(ne,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:X})}),De=await se.json();if(console.log("[Consent] Response:",se.status,De),console.log("[Consent] Location header:",se.headers.get("Location")),!se.ok)throw new Error(De.message||"Consent failed");const Ge=se.headers.get("Location"),T=De.location||Ge;console.log("[Consent] Redirect URL:",T),T?window.location.href=T:(H("Authorization completed but no redirect URL received. The application may need to restart the login flow."),h(!1))}catch(se){H(se.message||"Consent failed"),h(!1)}},Ee=D.length>0?D:v?[v]:[];return s.jsxs(Kn,{title:"Authorize",subtitle:`${y?.client_name||"Application"} requests access`,icon:Qn,children:[!r&&s.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[s.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),s.jsx("button",{onClick:()=>{qa(window.location.href),o("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),k&&s.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[s.jsx(nm,{className:"w-4 h-4 inline mr-2"}),k]}),m?s.jsx("div",{className:"flex justify-center py-6",children:s.jsx(Ya,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):s.jsxs("div",{className:"space-y-4",children:[(y?.client_uri||y?.client_id)&&s.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[y?.client_uri&&s.jsx("div",{children:s.jsx("a",{href:y.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:y.client_uri})}),y?.client_id&&s.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:y.client_id,children:["ID: ",y.client_id]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),Ee.length>0&&s.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",s.jsx("span",{className:"text-zinc-600",children:$(Ee[0]).provider})]})]}),Ee.length===0?s.jsxs("div",{className:"text-center py-4",children:[s.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),s.jsx("button",{onClick:()=>{qa(window.location.href),o("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):s.jsx("div",{className:"space-y-1",children:Ee.map(W=>{const se=$(W);return s.jsxs("label",{className:om("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",U===W?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[s.jsx("input",{type:"radio",name:"webId",value:W,checked:U===W,onChange:De=>G(De.target.value),className:"text-[#7C4DFF]"}),s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:se.full,children:se.podId})}),s.jsx("button",{type:"button",onClick:De=>{De.preventDefault(),ye(W)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:Y===W?"Copied":"Copy"})]},W)})})]}),s.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[s.jsx("input",{type:"checkbox",checked:X,onChange:W=>F(W.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[s.jsx("button",{onClick:()=>ce(!1),disabled:m,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),s.jsx("button",{onClick:()=>ce(!0),disabled:m||Ee.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:m?"Authorizing...":"Authorize"})]}),s.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[s.jsx("button",{type:"button",onClick:()=>{qa(window.location.href),o("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),s.jsx("button",{type:"button",onClick:pe,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function dv(){const{controls:i,isLoggedIn:r}=Ut(),d=ol(),[o,m]=S.useState(!1),[h,y]=S.useState(!1);if(r)return s.jsx(sl,{to:"/.account/account/",replace:!0});const j=async v=>{v.preventDefault(),m(!0);const g=new FormData(v.currentTarget).get("email");try{await fetch(i?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:g})}),y(!0)}catch{alert("Failed to send reset email")}finally{m(!1)}};return s.jsx(Kn,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:Ps,showBack:!0,onBack:()=>d("/.account/login/password/"),children:h?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[s.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:s.jsx(ea,{className:"w-5 h-5 text-emerald-600"})}),s.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),s.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{onClick:()=>d("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),s.jsx("button",{onClick:()=>y(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):s.jsxs("form",{className:"space-y-4",onSubmit:j,children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ps,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),s.jsx("button",{type:"submit",disabled:o,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:o?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:["Send Reset Link ",s.jsx(vi,{className:"h-4 w-4"})]})})]})})}function hv(){const{controls:i,isLoggedIn:r}=Ut(),d=ol(),[o]=gg(),[m,h]=S.useState(!1),[y,j]=S.useState(!1),[v,g]=S.useState(null),[D,w]=S.useState(""),[U,G]=S.useState(""),k=o.get("rid"),H=D.length>0&&U.length>0&&D===U;if(r)return s.jsx(sl,{to:"/.account/account/",replace:!0});if(!k)return s.jsx(sl,{to:"/.account/login/password/forgot/",replace:!0});const Y=async Q=>{if(Q.preventDefault(),!H){g("Passwords do not match");return}h(!0),g(null);try{const X=i?.password?.reset||"/.account/login/password/reset/",F=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:k,password:D})});if(F.ok)j(!0);else{const ne=await F.json().catch(()=>({}));g(ne.message||"Failed to reset password")}}catch{g("Network error")}finally{h(!1)}};return s.jsx(Kn,{title:"Reset Password",subtitle:"Enter your new password.",icon:Gn,children:y?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[s.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:s.jsx(ea,{className:"w-5 h-5 text-emerald-600"})}),s.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),s.jsx("button",{onClick:()=>d("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):s.jsxs("form",{className:"space-y-4",onSubmit:Y,children:[v&&s.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"password",type:"password",required:!0,value:D,onChange:Q=>w(Q.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),s.jsxs("div",{className:"relative",children:[H?s.jsx(ea,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):s.jsx(Gn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),s.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:U,onChange:Q=>G(Q.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${H?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),s.jsx("button",{type:"submit",disabled:m||!H,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:m?s.jsx(Ya,{className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:["Reset Password ",s.jsx(vi,{className:"h-4 w-4"})]})}),s.jsx("div",{className:"text-center",children:s.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function mv(){const{controls:i,isLoggedIn:r}=Ut(),[d,o]=S.useState([]),[m,h]=S.useState(!0);return S.useEffect(()=>{if(r){window.location.href="/.account/account/";return}(async()=>{try{if(i?.main?.logins){const j=await(await fetch(i.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(j.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}o(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=i?.html?.password?.login||"/.account/login/password/"}finally{h(!1)}})()},[i,r]),m?s.jsx(cm,{}):s.jsx(Kn,{title:"Select Login Method",children:s.jsx("div",{className:"space-y-2",children:d.map(([y,j])=>s.jsx("a",{href:j,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:y},y))})})}var rm={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},yv=Object.keys(rm),pv=S.forwardRef(function({control:r,...d},o){const m=S.useRef(null);return S.useLayoutEffect(()=>{const h=m.current;if(!h)return;if(customElements.get("openai-chatkit")){h.setOptions(r.options);return}let y=!0;return customElements.whenDefined("openai-chatkit").then(()=>{y&&h.setOptions(r.options)}),()=>{y=!1}},[r.options]),S.useEffect(()=>{const h=m.current;if(!h)return;const y=new AbortController;for(const j of yv)h.addEventListener(j,v=>{const g=rm[j],D=r.handlers[g];typeof D=="function"&&D(v.detail)},{signal:y.signal});return()=>{y.abort()}},[r.handlers]),s.jsx("openai-chatkit",{ref:h=>{m.current=h,r.setInstance(h),typeof o=="function"?o(h):o&&(o.current=h),m.current},...d})});function Mh(i){return i!==null&&typeof i=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(i))||Array.isArray(i)}function lo(i,r,d=new WeakMap){if(Object.is(i,r))return!0;if(typeof i=="function"&&typeof r=="function")return typeof i==typeof r;if(!Mh(i)||!Mh(r))return!1;const o=d.get(i);if(o&&o===r)return!0;if(d.set(i,r),Array.isArray(i)||Array.isArray(r)){if(!Array.isArray(i)||!Array.isArray(r)||i.length!==r.length)return!1;for(let y=0;y<i.length;y++)if(!lo(i[y],r[y],d))return!1;return!0}const m=Object.keys(i),h=Object.keys(r);if(m.length!==h.length)return!1;for(let y=0;y<m.length;y++){const j=m[y];if(!Object.prototype.hasOwnProperty.call(r,j))return!1;const v=i[j],g=r[j];if(!lo(v,g,d))return!1}return!0}function gv(i){const r=[],d=(h,y)=>y.reduce((j,v)=>j==null?j:j[v],h),o=(h,y)=>(...j)=>{const v=d(i.current,h),g=v?.[y];if(typeof g=="function")return g.apply(v,j)},m=h=>{if(typeof h=="function"){const y=r[r.length-1],j=r.slice(0,-1);return o(j,y)}if(Array.isArray(h)){const y=r.length,j=new Array(h.length);for(let v=0;v<h.length;v++)r[y]=v,j[v]=m(h[v]);return r.length=y,j}if(h&&typeof h=="object"){const y=r.length,j={};for(const v of Object.keys(h))r[y]=v,j[v]=m(h[v]);return r.length=y,j}return h};return m(i.current)}function vv(i){const r=Fs.useRef(i);r.current=i;const d=Fs.useRef(null);return(!d.current||!lo(d.current.snapshot,i))&&(d.current={snapshot:i,shaped:gv(r)}),d.current.shaped}var xv=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function bv(i){const r=S.useRef(null),d=vv(i),o=S.useMemo(()=>xv.reduce((y,j)=>(y[j]=(...v)=>{if(!r.current){console.warn("ChatKit element is not mounted");return}return r.current[j](...v)},y),{}),[]),m=S.useCallback(y=>{r.current=y},[]),h=S.useMemo(()=>{const y={},j={};for(const[v,g]of Object.entries(d))/^on[A-Z]/.test(v)&&v!=="onClientTool"?j[v]=g:y[v]=g;return{setInstance:m,options:y,handlers:j}},[d,m]);return S.useMemo(()=>({...o,control:h,ref:r}),[o,h])}const Uh="http://localhost:3000/chatkit",Lh="domain_pk_localhost_dev";function Sv(){const{isLoggedIn:i}=Ut(),[r,d]=S.useState(""),[o,m]=S.useState(!1),h=S.useCallback(async(j,v={})=>{const g={...v.headers||{}};return r&&(g.Authorization=`Bearer ${r}`),fetch(j,{...v,headers:g,credentials:"include"})},[r]),y=bv({api:{url:Uh,domainKey:Lh,fetch:h},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return s.jsxs("div",{className:"min-h-screen bg-gray-50",children:[s.jsxs("header",{className:"bg-white shadow-sm border-b",children:[s.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:s.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),s.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("button",{onClick:()=>m(!o),className:"text-sm text-gray-500 hover:text-gray-700",children:r?"🔑 API Key Set":"Set API Key"}),s.jsx("div",{className:"text-sm text-gray-500",children:i?s.jsx("span",{className:"text-green-600",children:"● Logged in"}):s.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),o&&s.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:r,onChange:j=>d(j.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),s.jsx("button",{onClick:()=>m(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),s.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),s.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[s.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:s.jsx(pv,{control:y.control,style:{width:"100%",height:"100%"}})}),s.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[s.jsxs("p",{children:[s.jsx("strong",{children:"API URL:"})," ",Uh]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Domain Key:"})," ",Lh]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Auth:"})," ",r?"API Key":i?"Session":"None"]})]})]})]})}function jv(){const{isInitializing:i,initError:r}=Ut();return i?s.jsx(cm,{}):r?s.jsx(nv,{message:r}):s.jsxs(Gp,{children:[s.jsx(_t,{path:"/.account/",element:s.jsx(sv,{})}),s.jsx(_t,{path:"/.account/about/",element:s.jsx(ov,{})}),s.jsx(_t,{path:"/.account/account/",element:s.jsx(cv,{children:s.jsx(rv,{})})}),s.jsx(_t,{path:"/chat/",element:s.jsx(Sv,{})}),s.jsx(_t,{path:"/.account/login/",element:s.jsx(mv,{})}),s.jsx(_t,{path:"/.account/login/password/",element:s.jsx(to,{initialIsRegister:!1})}),s.jsx(_t,{path:"/.account/login/password/register/",element:s.jsx(to,{initialIsRegister:!0})}),s.jsx(_t,{path:"/.account/login/password/forgot/",element:s.jsx(dv,{})}),s.jsx(_t,{path:"/.account/login/password/reset/",element:s.jsx(hv,{})}),s.jsx(_t,{path:"/.account/oidc/consent/",element:s.jsx(fv,{})}),s.jsx(_t,{path:"*",element:s.jsx(sl,{to:"/.account/",replace:!0})})]})}function zv(){return s.jsx(dg,{children:s.jsx(zg,{children:s.jsx(jv,{})})})}try{const i=new URLSearchParams(location.search).get("provisionCode");i&&sessionStorage.setItem("provisionCode",i)}catch{}Zy.createRoot(document.getElementById("root")).render(s.jsx(Fs.StrictMode,{children:s.jsx(zv,{})}));
11
+ Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let C=sn(),N;if(i){let O=typeof i=="string"?Ra(i):i;ke(S==="/"||O.pathname?.startsWith(S),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${O.pathname}" was given in the \`location\` prop.`),N=O}else N=C;let D=N.pathname||"/",w=D;if(S!=="/"){let O=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(O.length).join("/")}let j=hv(a,{pathname:w});Dt(b||j!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Dt(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=Cb(j&&j.map(O=>Object.assign({},O,{params:Object.assign({},v,O.params),pathname:On([S,d.encodeLocation?d.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?S:On([S,d.encodeLocation?d.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),h,r,s,f);return i&&R?g.createElement(Gi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},R):R}function bb(){let a=Rb(),i=ob(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,s="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:s},d={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:d},"ErrorBoundary")," or"," ",g.createElement("code",{style:d},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),r?g.createElement("pre",{style:f},r):null,h)}var Sb=g.createElement(bb,null),Nv=class extends g.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=vb(a.digest);r&&(a=r)}let i=a!==void 0?g.createElement(rn.Provider,{value:this.props.routeContext},g.createElement(Zu.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(wb,{error:a},i):i}};Nv.contextType=ub;var hu=new WeakMap;function wb({children:a,error:i}){let{basename:r}=g.useContext(Mt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=pb(i.digest);if(s){let f=hu.get(i);if(f)throw f;let d=yv(s.location,r);if(gv&&!hu.get(i))if(d.isExternal||s.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:s.replace}));throw hu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function Eb({routeContext:a,match:i,children:r}){let s=g.useContext(Oa);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(rn.Provider,{value:a},r)}function Cb(a,i=[],r=null,s=null,f=null){if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,h=r?.errors;if(h!=null){let S=d.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ke(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let p=!1,v=-1;if(r)for(let S=0;S<d.length;S++){let b=d[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(v=S),b.route.id){let{loaderData:C,errors:N}=r,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!N||N[b.route.id]===void 0);if(b.route.lazy||D){p=!0,v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}let y=r&&s?(S,b)=>{s(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:rb(r.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let N,D=!1,w=null,j=null;r&&(N=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||Sb,p&&(v<0&&C===0?(jv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,j=null):v===C&&(D=!0,j=b.route.hydrateFallbackElement||null)));let R=i.concat(d.slice(0,C+1)),O=()=>{let M;return N?M=w:D?M=j:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(Eb,{match:b,routeContext:{outlet:S,matches:R,isDataRoute:r!=null},children:M})};return r&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(Nv,{location:r.location,revalidation:r.revalidation,component:w,error:N,children:O(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:y}):O()},null)}function Pu(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nb(a){let i=g.useContext(Oa);return ke(i,Pu(a)),i}function jb(a){let i=g.useContext(Lo);return ke(i,Pu(a)),i}function Tb(a){let i=g.useContext(rn);return ke(i,Pu(a)),i}function Ju(a){let i=Tb(a),r=i.matches[i.matches.length-1];return ke(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function Ab(){return Ju("useRouteId")}function Rb(){let a=g.useContext(Zu),i=jb("useRouteError"),r=Ju("useRouteError");return a!==void 0?a:i.errors?.[r]}function Ob(){let{router:a}=Nb("useNavigate"),i=Ju("useNavigate"),r=g.useRef(!1);return Ev(()=>{r.current=!0}),g.useCallback(async(f,d={})=>{Dt(r.current,wv),r.current&&(typeof f=="number"?await a.navigate(f):await a.navigate(f,{fromRouteId:i,...d}))},[a,i])}var Np={};function jv(a,i,r){!i&&!Np[a]&&(Np[a]=!0,Dt(!1,r))}g.memo(zb);function zb({routes:a,future:i,state:r,onError:s}){return Cv(a,void 0,r,s,i)}function _n({to:a,replace:i,state:r,relative:s}){ke(za(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=g.useContext(Mt);Dt(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=g.useContext(rn),{pathname:h}=sn(),p=Ln(),v=Qu(a,Ku(d),h,s==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:r,relative:s})},[p,y,s,i,r]),null}function Rt(a){ke(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _b({basename:a="/",children:i=null,location:r,navigationType:s="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){ke(!za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof r=="string"&&(r=Ra(r));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:N="default"}=r,D=g.useMemo(()=>{let w=zn(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:N},navigationType:s}},[p,y,S,b,C,N,s]);return Dt(D!=null,`<Router basename="${p}"> is not able to match the URL "${y}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:g.createElement(Mt.Provider,{value:v},g.createElement(Gi.Provider,{children:i,value:D}))}function Db({children:a,location:i}){return xb(Ru(a),i)}function Ru(a,i=[]){let r=[];return g.Children.forEach(a,(s,f)=>{if(!g.isValidElement(s))return;let d=[...i,f];if(s.type===g.Fragment){r.push.apply(r,Ru(s.props.children,d));return}ke(s.type===Rt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||d.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Ru(s.props.children,d)),r.push(h)}),r}var Eo="get",Co="application/x-www-form-urlencoded";function Uo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Mb(a){return Uo(a)&&a.tagName.toLowerCase()==="button"}function Lb(a){return Uo(a)&&a.tagName.toLowerCase()==="form"}function Ub(a){return Uo(a)&&a.tagName.toLowerCase()==="input"}function Hb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Bb(a,i){return a.button===0&&(!i||i==="_self")&&!Hb(a)}function Ou(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,r)=>{let s=a[r];return i.concat(Array.isArray(s)?s.map(f=>[r,f]):[[r,s]])},[]))}function kb(a,i){let r=Ou(a);return i&&i.forEach((s,f)=>{r.has(f)||i.getAll(f).forEach(d=>{r.append(f,d)})}),r}var mo=null;function Yb(){if(mo===null)try{new FormData(document.createElement("form"),0),mo=!1}catch{mo=!0}return mo}var qb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mu(a){return a!=null&&!qb.has(a)?(Dt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Co}"`),null):a}function Vb(a,i){let r,s,f,d,h;if(Lb(a)){let p=a.getAttribute("action");s=p?zn(p,i):null,r=a.getAttribute("method")||Eo,f=mu(a.getAttribute("enctype"))||Co,d=new FormData(a)}else if(Mb(a)||Ub(a)&&(a.type==="submit"||a.type==="image")){let p=a.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=a.getAttribute("formaction")||p.getAttribute("action");if(s=v?zn(v,i):null,r=a.getAttribute("formmethod")||p.getAttribute("method")||Eo,f=mu(a.getAttribute("formenctype"))||mu(p.getAttribute("enctype"))||Co,d=new FormData(p,a),!Yb()){let{name:y,type:S,value:b}=a;if(S==="image"){let C=y?`${y}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else y&&d.append(y,b)}}else{if(Uo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Eo,s=null,f=Co,h=a}return d&&f==="text/plain"&&(h=d,d=void 0),{action:s,method:r.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Wu(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Xb(a,i,r,s){let f=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${s}`:f.pathname=`${f.pathname}.${s}`:f.pathname==="/"?f.pathname=`_root.${s}`:i&&zn(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${s}`,f}async function Gb(a,i){if(a.id in i)return i[a.id];try{let r=await import(a.module);return i[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fb(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Kb(a,i,r){let s=await Promise.all(a.map(async f=>{let d=i.routes[f.route.id];if(d){let h=await Gb(d,r);return h.links?h.links():[]}return[]}));return Jb(s.flat(1).filter(Fb).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function jp(a,i,r,s,f,d){let h=(v,y)=>r[y]?v.route.id!==r[y].route.id:!0,p=(v,y)=>r[y].pathname!==v.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==v.params["*"];return d==="assets"?i.filter((v,y)=>h(v,y)||p(v,y)):d==="data"?i.filter((v,y)=>{let S=s.routes[v.route.id];if(!S||!S.hasLoader)return!1;if(h(v,y)||p(v,y))return!0;if(v.route.shouldRevalidate){let b=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Qb(a,i,{includeHydrateFallback:r}={}){return Zb(a.map(s=>{let f=i.routes[s.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Zb(a){return[...new Set(a)]}function Pb(a){let i={},r=Object.keys(a).sort();for(let s of r)i[s]=a[s];return i}function Jb(a,i){let r=new Set;return new Set(i),a.reduce((s,f)=>{let d=JSON.stringify(Pb(f));return r.has(d)||(r.add(d),s.push({key:d,link:f})),s},[])}function Tv(){let a=g.useContext(Oa);return Wu(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Wb(){let a=g.useContext(Lo);return Wu(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var Iu=g.createContext(void 0);Iu.displayName="FrameworkContext";function Av(){let a=g.useContext(Iu);return Wu(a,"You must render this element inside a <HydratedRouter> element"),a}function Ib(a,i){let r=g.useContext(Iu),[s,f]=g.useState(!1),[d,h]=g.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:y,onMouseLeave:S,onTouchStart:b}=i,C=g.useRef(null);g.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=R=>{R.forEach(O=>{h(O.isIntersecting)})},j=new IntersectionObserver(w,{threshold:.5});return C.current&&j.observe(C.current),()=>{j.disconnect()}}},[a]),g.useEffect(()=>{if(s){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[s]);let N=()=>{f(!0)},D=()=>{f(!1),h(!1)};return r?a!=="intent"?[d,C,{}]:[d,C,{onFocus:Oi(p,N),onBlur:Oi(v,D),onMouseEnter:Oi(y,N),onMouseLeave:Oi(S,D),onTouchStart:Oi(b,N)}]:[!1,C,{}]}function Oi(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function $b({page:a,...i}){let{router:r}=Tv(),s=g.useMemo(()=>hv(r.routes,a,r.basename),[r.routes,a,r.basename]);return s?g.createElement(t1,{page:a,matches:s,...i}):null}function e1(a){let{manifest:i,routeModules:r}=Av(),[s,f]=g.useState([]);return g.useEffect(()=>{let d=!1;return Kb(a,i,r).then(h=>{d||f(h)}),()=>{d=!0}},[a,i,r]),s}function t1({page:a,matches:i,...r}){let s=sn(),{future:f,manifest:d,routeModules:h}=Av(),{basename:p}=Tv(),{loaderData:v,matches:y}=Wb(),S=g.useMemo(()=>jp(a,i,y,d,s,"data"),[a,i,y,d,s]),b=g.useMemo(()=>jp(a,i,y,d,s,"assets"),[a,i,y,d,s]),C=g.useMemo(()=>{if(a===s.pathname+s.search+s.hash)return[];let w=new Set,j=!1;if(i.forEach(O=>{let M=d.routes[O.route.id];!M||!M.hasLoader||(!S.some(q=>q.route.id===O.route.id)&&O.route.id in v&&h[O.route.id]?.shouldRevalidate||M.hasClientLoader?j=!0:w.add(O.route.id))}),w.size===0)return[];let R=Xb(a,p,f.unstable_trailingSlashAwareDataRequests,"data");return j&&w.size>0&&R.searchParams.set("_routes",i.filter(O=>w.has(O.route.id)).map(O=>O.route.id).join(",")),[R.pathname+R.search]},[p,f.unstable_trailingSlashAwareDataRequests,v,s,d,S,i,a,h]),N=g.useMemo(()=>Qb(b,d),[b,d]),D=e1(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),N.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),D.map(({key:w,link:j})=>g.createElement("link",{key:w,nonce:r.nonce,...j})))}function n1(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var l1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{l1&&(window.__reactRouterVersion="7.12.0")}catch{}function a1({basename:a,children:i,unstable_useTransitions:r,window:s}){let f=g.useRef();f.current==null&&(f.current=Hx({window:s,v5Compat:!0}));let d=f.current,[h,p]=g.useState({action:d.action,location:d.location}),v=g.useCallback(y=>{r===!1?p(y):g.startTransition(()=>p(y))},[r]);return g.useLayoutEffect(()=>d.listen(v),[d,v]),g.createElement(_b,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var Rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bi=g.forwardRef(function({onClick:i,discover:r="render",prefetch:s="none",relative:f,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...N},D){let{basename:w,unstable_useTransitions:j}=g.useContext(Mt),R=typeof y=="string"&&Rv.test(y),O=yv(y,w);y=O.to;let M=gb(y,{relative:f}),[q,Q,J]=Ib(s,N),Y=r1(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:f,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:j});function I(re){i&&i(re),re.defaultPrevented||Y(re)}let le=g.createElement("a",{...N,...J,href:O.absoluteURL||M,onClick:O.isExternal||d?i:I,ref:n1(D,Q),target:v,"data-discover":!R&&r==="render"?"true":void 0});return q&&!R?g.createElement(g.Fragment,null,le,g.createElement($b,{page:M})):le});Bi.displayName="Link";var i1=g.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:s="",end:f=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Fi(h,{relative:y.relative}),C=sn(),N=g.useContext(Lo),{navigator:D,basename:w}=g.useContext(Mt),j=N!=null&&m1(b)&&p===!0,R=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,O=C.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;r||(O=O.toLowerCase(),M=M?M.toLowerCase():null,R=R.toLowerCase()),M&&w&&(M=zn(M,w)||M);const q=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let Q=O===R||!f&&O.startsWith(R)&&O.charAt(q)==="/",J=M!=null&&(M===R||!f&&M.startsWith(R)&&M.charAt(R.length)==="/"),Y={isActive:Q,isPending:J,isTransitioning:j},I=Q?i:void 0,le;typeof s=="function"?le=s(Y):le=[s,Q?"active":null,J?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(Y):d;return g.createElement(Bi,{...y,"aria-current":I,className:le,ref:S,style:re,to:h,viewTransition:p},typeof v=="function"?v(Y):v)});i1.displayName="NavLink";var c1=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:s,replace:f,state:d,method:h=Eo,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...N},D)=>{let{unstable_useTransitions:w}=g.useContext(Mt),j=d1(),R=h1(p,{relative:y}),O=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Rv.test(p),q=Q=>{if(v&&v(Q),Q.defaultPrevented)return;Q.preventDefault();let J=Q.nativeEvent.submitter,Y=J?.getAttribute("formmethod")||h,I=()=>j(J||Q.currentTarget,{fetcherKey:i,method:Y,navigate:r,replace:f,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&r!==!1?g.startTransition(()=>I()):I()};return g.createElement("form",{ref:D,method:O,action:R,onSubmit:s?v:q,...N,"data-discover":!M&&a==="render"?"true":void 0})});c1.displayName="Form";function o1(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ov(a){let i=g.useContext(Oa);return ke(i,o1(a)),i}function r1(a,{target:i,replace:r,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=Ln(),S=sn(),b=Fi(a,{relative:d});return g.useCallback(C=>{if(Bb(C,i)){C.preventDefault();let N=r!==void 0?r:Yi(S)===Yi(b),D=()=>y(a,{replace:N,state:s,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,r,s,i,a,f,d,h,p,v])}function s1(a){Dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=g.useRef(Ou(a)),r=g.useRef(!1),s=sn(),f=g.useMemo(()=>kb(s.search,r.current?null:i.current),[s.search]),d=Ln(),h=g.useCallback((p,v)=>{const y=Ou(typeof p=="function"?p(new URLSearchParams(f)):p);r.current=!0,d("?"+y,v)},[d,f]);return[f,h]}var u1=0,f1=()=>`__${String(++u1)}__`;function d1(){let{router:a}=Ov("useSubmit"),{basename:i}=g.useContext(Mt),r=Ab(),s=a.fetch,f=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=Vb(d,i);if(h.navigate===!1){let C=h.fetcherKey||f1();await s(C,r,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||v,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[s,f,i,r])}function h1(a,{relative:i}={}){let{basename:r}=g.useContext(Mt),s=g.useContext(rn);ke(s,"useFormAction must be used inside a RouteContext");let[f]=s.matches.slice(-1),d={...Fi(a||".",{relative:i})},h=sn();if(a==null){d.search=h.search;let p=new URLSearchParams(d.search),v=p.getAll("index");if(v.some(S=>S==="")){p.delete("index"),v.filter(b=>b).forEach(b=>p.append("index",b));let S=p.toString();d.search=S?`?${S}`:""}}return(!a||a===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:On([r,d.pathname])),Yi(d)}function m1(a,{relative:i}={}){let r=g.useContext(bv);ke(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Ov("useViewTransitionState"),f=Fi(a,{relative:i});if(!r.isTransitioning)return!1;let d=zn(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=zn(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Ao(f.pathname,h)!=null||Ao(f.pathname,d)!=null}var Ki=dv();const p1=uv(Ki),zv=g.createContext(null);function It(){const a=g.useContext(zv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function v1({children:a}){const i="/.account/",[r,s]=g.useState(null),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!r?.account?.logout,b=f,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},N=async()=>{try{const w=await fetch(i,{headers:{Accept:"application/json"},credentials:"include"});if(w.ok){const j=await w.json();let R=!1;j.controls?.account?.logout&&(R=await C()),y(R),s(j.controls||{})}else p(`Failed to load configuration (Status: ${w.status})`)}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await N(),d(!1)))()},[i]);const D=async()=>{await N()};return u.jsx(zv.Provider,{value:{controls:r,isInitializing:f,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const _v=(...a)=>a.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();const g1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const y1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,s)=>s?s.toUpperCase():r.toLowerCase());const Tp=a=>{const i=y1(a);return i.charAt(0).toUpperCase()+i.slice(1)};var x1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const b1=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const S1=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:f="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...x1,width:i,height:i,stroke:a,strokeWidth:s?Number(r)*24/Number(i):r,className:_v("lucide",f),...!d&&!b1(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Ye=(a,i)=>{const r=g.forwardRef(({className:s,...f},d)=>g.createElement(S1,{ref:d,iconNode:i,className:_v(`lucide-${g1(Tp(a))}`,`lucide-${a}`,s),...f}));return r.displayName=Tp(a),r};const w1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Dv=Ye("arrow-left",w1);const E1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qi=Ye("arrow-right",E1);const C1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rl=Ye("check",C1);const N1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mv=Ye("chevron-down",N1);const j1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lv=Ye("circle-alert",j1);const T1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Uv=Ye("clock",T1);const A1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pu=Ye("copy",A1);const R1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],O1=Ye("database",R1);const z1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ap=Ye("external-link",z1);const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],D1=Ye("globe",_1);const M1=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],L1=Ye("hard-drive",M1);const U1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],H1=Ye("info",U1);const B1=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],vu=Ye("key",B1);const k1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Hv=Ye("layers",k1);const Y1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ta=Ye("loader-circle",Y1);const q1=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ki=Ye("lock",q1);const V1=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],X1=Ye("log-out",V1);const G1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zu=Ye("mail",G1);const F1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],gu=Ye("plus",F1);const K1=[["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6.01 18H6",key:"19vcac"}],["path",{d:"M10.01 18H10",key:"uamcmx"}],["path",{d:"M15 10v4",key:"qjz1xs"}],["path",{d:"M17.84 7.17a4 4 0 0 0-5.66 0",key:"1rif40"}],["path",{d:"M20.66 4.34a8 8 0 0 0-11.31 0",key:"6a5xfq"}]],Q1=Ye("router",K1);const Z1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Vi=Ye("shield",Z1);const P1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Rp=Ye("trash-2",P1);const J1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Bv=Ye("user",J1);function kv(){return u.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Qi({children:a,title:i,subtitle:r,icon:s,showBack:f,onBack:d}){return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[u.jsxs("div",{className:"flex flex-col items-center mb-6",children:[u.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[f?u.jsx("button",{onClick:d,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:u.jsx(Dv,{className:"w-4 h-4"})}):u.jsx("div",{className:"w-8"}),u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?u.jsx(s,{className:"w-5 h-5 text-white"}):u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),u.jsx("div",{className:"w-8"})]}),u.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),r&&u.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),a]})]})}function W1({message:a}){return u.jsx(Qi,{title:"Error",subtitle:a,icon:Lv,children:u.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const _u="xpod:returnTo";function Ca(a){try{a&&sessionStorage.setItem(_u,a)}catch{}}function I1(){try{const a=sessionStorage.getItem(_u);return a&&sessionStorage.removeItem(_u),a}catch{return null}}function $1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function eS(a,i,r=!1){return a&&i&&!r}function Op({children:a,allowOidcPending:i=!1}){const{isLoggedIn:r,hasOidcPending:s}=It(),f=sn();return eS(r,s,i)?u.jsx(_n,{to:"/.account/oidc/consent/",replace:!0}):r?u.jsx(u.Fragment,{children:a}):(Ca(f.pathname+f.search),u.jsx(_n,{to:"/.account/login/password/",replace:!0}))}function Yv(a){var i,r,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(r=Yv(a[i]))&&(s&&(s+=" "),s+=r)}else for(r in a)a[r]&&(s&&(s+=" "),s+=r);return s}function Ie(){for(var a,i,r=0,s="",f=arguments.length;r<f;r++)(a=arguments[r])&&(i=Yv(a))&&(s&&(s+=" "),s+=i);return s}const zp=3,_p=63,tS=/^[a-z0-9-]+$/;function qv(a){return a.trim().toLowerCase()}function Dp(a){const i=qv(a);if(!i)return"Username is required";if(i.length<zp||i.length>_p)return`Username must be ${zp}-${_p} characters`;if(!tS.test(i))return"Username can only contain lowercase letters, numbers, and hyphens";if(i.startsWith("-")||i.endsWith("-"))return"Username cannot start or end with a hyphen"}function nS(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function Vv(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Xv(a,i=nS()){const r={name:a.trim()};return i&&(r.settings={provisionCode:i}),r}async function lS(a,i,r=15e3){const s=Date.now()+r,f=`${i}oidc/pick-webid/`;for(;Date.now()<s;){try{const d=await a(f,{headers:{Accept:"application/json"},credentials:"include"});if(d.ok){const h=await d.json().catch(()=>({}));if((Array.isArray(h.webIds)?h.webIds:[]).length>0)return!0}}catch{}await new Promise(d=>setTimeout(d,500))}return!1}async function aS(a){const i=a.fetchImpl??fetch,{idpIndex:r,username:s,enableManagedProfile:f=!0}=a,d=await i("/api/v1/identity",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({username:s,storageMode:"local"})});if(!d.ok&&d.status!==409&&d.status!==404)throw new Error((await d.json().catch(()=>({}))).message||"Failed to create WebID profile");let h=await i(r,{headers:{Accept:"application/json"},credentials:"include"});const p=await h.json().catch(()=>({})),v=p.controls?.account?.pod,y=p.controls?.account?.webId;if(!v)throw new Error("Pod creation endpoint not found");if(h=await i(v,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Xv(s))}),!h.ok){const N=await h.json().catch(()=>({}));throw new Error(N.message||"Failed to create pod")}const S=await h.json().catch(()=>({}));Vv();const b=typeof S.podUrl=="string"&&S.podUrl.length>0?S.podUrl:void 0;if(b&&await i(`/api/v1/identity/${encodeURIComponent(s)}/storage`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({storageUrl:b,storageMode:"local"})}).catch(()=>{}),f&&d.status!==404&&y){const N=await i(`/api/v1/identity/${encodeURIComponent(s)}`,{headers:{Accept:"application/json"},credentials:"include"});if(!N.ok)throw new Error((await N.json().catch(()=>({}))).message||"Failed to load WebID profile");const D=await N.json().catch(()=>({})),w=typeof D.webidUrl=="string"?D.webidUrl:"";if(!w)throw new Error("WebID profile URL missing");const j=await i(y,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:w})});if(!j.ok)throw new Error((await j.json().catch(()=>({}))).message||"Failed to link WebID");const R=await i(`${r}oidc/pick-webid/`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:w,remember:!1})});if(!R.ok)throw new Error((await R.json().catch(()=>({}))).message||"Failed to select WebID")}await lS(i,r);const C=await i("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"});return C.ok&&(await C.json().catch(()=>({}))).client?{redirectedToConsent:!0}:{redirectedToConsent:!1}}function Du({initialIsRegister:a=!1}){const{controls:i,idpIndex:r,isLoggedIn:s,authenticating:f}=It(),d=Ln(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,N]=g.useState(""),[D,w]=g.useState(""),[j,R]=g.useState(!1),O=C.length>0&&D.length>0&&C===D,M=v?Dp(S):void 0;if(g.useEffect(()=>{const I=$1();I&&Ca(I)},[]),s)return u.jsx(_n,{to:"/.account/account/",replace:!0});const q=[{icon:Uv,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Hv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Vi,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}],Q=async I=>{I.preventDefault(),p(!0);const le=new FormData(I.currentTarget),re=le.get("email"),se=le.get("password");try{if(v){const W=le.get("confirmPassword"),ne=qv(le.get("username")),ee=Dp(ne);if(se!==W){alert("Passwords do not match"),p(!1);return}if(ee){alert(ee),p(!1);return}let ae=await fetch(i?.account?.create||"/.account/account/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!ae.ok)throw new Error((await ae.json().catch(()=>({}))).message||"Failed to create account");ae=await fetch(r,{headers:{Accept:"application/json"},credentials:"include"});const _=await ae.json(),L=_.controls?.password?.create;if(!L)throw new Error("Password endpoint not found");if(ae=await fetch(L,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:se})}),!ae.ok)throw new Error((await ae.json().catch(()=>({}))).message||"Failed to set password");const X=_.controls?.password?.login||i?.password?.login||"/.account/login/password/";if(ae=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:se})}),!ae.ok)throw new Error((await ae.json().catch(()=>({}))).message||"Auto-login failed");const ce=await aS({idpIndex:r,username:ne});window.location.href=ce.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const W=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:re,password:se})}),ne=await W.json().catch(()=>({}));if(W.ok){const ee=W.headers.get("Location");if(ne.location){window.location.href=ne.location;return}if(ee){window.location.href=ee;return}const ae=I1();if(ae){window.location.href=ae;return}try{if((await fetch("/.account/oidc/consent/",{headers:{Accept:"application/json"},credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else alert(ne.message||"Login failed")}}catch(W){alert(W.message||"Operation failed")}finally{p(!1)}},J=()=>{y(!v),b(""),N(""),w("")},Y=async()=>{if(i?.oidc?.cancel){R(!0);try{const le=await(await fetch(i.oidc.cancel,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include"})).json();le.location&&(window.location.href=le.location)}catch{alert("Failed to cancel"),R(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:q.map(({icon:I,title:le,desc:re})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(I,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:le}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:re})]})]},le))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:v?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),u.jsxs("form",{className:"space-y-4",onSubmit:Q,children:[u.jsxs("div",{className:"space-y-3",children:[v&&u.jsxs("div",{className:"relative",children:[u.jsx(Bv,{className:Ie("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",M&&S.length>0?"text-amber-500":"text-zinc-400")}),u.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:S,onChange:I=>b(I.target.value.toLowerCase()),className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",M&&S.length>0?"border-amber-300 focus:border-amber-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(zu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Email"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:I=>N(I.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),v&&u.jsxs("div",{className:"relative",children:[O?u.jsx(rl,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:I=>w(I.target.value),className:Ie("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",O?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&u.jsx("p",{className:Ie("text-[11px] leading-relaxed",M&&S.length>0?"text-amber-600":"text-zinc-500"),children:M&&S.length>0?M:"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens."}),!v&&u.jsx("div",{className:"flex justify-end",children:u.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),u.jsx("button",{type:"submit",disabled:h||j||!!(v&&M),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:h?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:[v?"Sign up":"Sign in",u.jsx(qi,{className:"h-4 w-4"})]})}),f&&!v&&u.jsx("button",{type:"button",onClick:Y,disabled:j||h,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:j?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),u.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:u.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",u.jsx("button",{onClick:J,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function iS(){const{isLoggedIn:a,hasOidcPending:i}=It();return a&&i?u.jsx(_n,{to:"/.account/oidc/consent/",replace:!0}):a?u.jsx(_n,{to:"/.account/account/",replace:!0}):u.jsx(Du,{})}function cS(){const a=Ln(),{isLoggedIn:i}=It(),r=[{icon:Uv,title:"Your AI Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:Hv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Vi,title:"One Secretary, A Thousand Agents",desc:"Full power, full privacy"}];return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[u.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[u.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),u.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),u.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[u.jsx("div",{className:"hidden lg:block px-8",children:u.jsxs("div",{className:"max-w-md ml-auto",children:[u.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:u.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-4",children:u.jsx("div",{className:"space-y-3",children:r.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},f))})}),u.jsx("div",{className:"mt-12",children:u.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",u.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),u.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[u.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[u.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:u.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"lg:hidden mb-8",children:[u.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",u.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),u.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),u.jsx("div",{className:"space-y-2",children:r.map(({icon:s,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),u.jsxs("div",{children:[u.jsx("span",{className:"text-xs font-medium text-zinc-900",children:f}),u.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},f))})]}),u.jsxs("div",{className:"mb-6",children:[u.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),u.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),u.jsxs("div",{className:"space-y-3 mb-6",children:[u.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Ap,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),u.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[u.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:u.jsx(Ap,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),u.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),u.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[u.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),u.jsxs("button",{onClick:()=>a(i?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[u.jsx(Dv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Mp(a,i){return`sk-${btoa(`${a}:${i}`)}`}function oS(){const{controls:a,refetchControls:i,hasOidcPending:r}=It(),s=Ln(),[f,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,N]=g.useState(""),[D,w]=g.useState(!1),[j,R]=g.useState(""),[O,M]=g.useState([]),[q,Q]=g.useState(null),[J,Y]=g.useState(!1),[I,le]=g.useState(""),[re,se]=g.useState(""),[W,ne]=g.useState(null),[ee,ae]=g.useState(!1),_=g.useRef(null);g.useEffect(()=>{const Z=P=>{_.current&&!_.current.contains(P.target)&&ae(!1)};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[]);const L=async(Z,P)=>{try{await navigator.clipboard.writeText(Z),ne(P),setTimeout(()=>ne(null),2e3)}catch{}},X=async()=>{try{if(a?.account?.webId){const Z=await fetch(a.account.webId,{headers:{Accept:"application/json"},credentials:"include"});if(Z.ok){const fe=(await Z.json()).webIdLinks||{};p(Object.keys(fe))}else p([])}if(a?.account?.pod){const Z=await fetch(a.account.pod,{headers:{Accept:"application/json"},credentials:"include"});if(Z.ok){const fe=(await Z.json()).pods||{};y(Object.keys(fe).map(ge=>({id:ge})))}else y([])}if(a?.account?.clientCredentials){const Z=await fetch(a.account.clientCredentials,{headers:{Accept:"application/json"},credentials:"include"});if(Z.ok){const fe=(await Z.json()).clientCredentials||{};M(Object.entries(fe).map(([ge])=>({id:ge})))}else M([])}}catch(Z){console.error("Failed to fetch account data:",Z)}};g.useEffect(()=>{X()},[a]);const ce=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:{Accept:"application/json"},credentials:"include"})).ok&&(await i(),s("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},me=async Z=>{if(Z.preventDefault(),!(!a?.account?.pod||!C.trim())){d(!0);try{const P=await fetch(a.account.pod,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify(Xv(C))});if(P.ok)Vv(),N(""),b(!1),await i(),await X(),r&&s("/.account/oidc/consent/");else{const fe=await P.json().catch(()=>({}));alert(fe.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},T=async Z=>{if(Z.preventDefault(),!(!a?.account?.webId||!j.trim())){d(!0);try{const P=await fetch(a.account.webId,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:j.trim()})});if(P.ok)R(""),w(!1),await X();else{const fe=await P.json().catch(()=>({}));alert(fe.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},G=async Z=>{if(confirm(`Delete pod ${Z}? This cannot be undone.`)){d(!0);try{(await fetch(Z,{method:"DELETE",credentials:"include"})).ok?await X():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},$=async Z=>{if(Z.preventDefault(),!(!a?.account?.clientCredentials||!I||!re.trim())){d(!0);try{const P=await fetch(a.account.clientCredentials,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({name:re.trim(),webId:I})});if(P.ok){const fe=await P.json();Q({id:fe.id,secret:fe.secret}),Y(!1),le(""),se(""),await X()}else{const fe=await P.json().catch(()=>({}));alert(fe.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},te=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}le(h[0]),se(""),Y(!0)},de=async Z=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(Z,{method:"DELETE",headers:{Accept:"application/json"},credentials:"include"})).ok?await X():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return u.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[u.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:u.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),u.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:u.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:u.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),u.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Bi,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(H1,{className:"w-3.5 h-3.5"}),"About"]}),u.jsxs("button",{onClick:ce,disabled:f,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[u.jsx(X1,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),u.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&u.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:u.jsx(Vi,{className:"w-5 h-5 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),u.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),u.jsxs(Bi,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",u.jsx(qi,{className:"w-4 h-4"})]})]})}),u.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(Q1,{className:"w-4 h-4 text-[#7C4DFF]"}),"外网接入"]}),u.jsxs(Bi,{to:"/.account/settings/",className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:["去设置",u.jsx(qi,{className:"w-3.5 h-3.5"})]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"登录后可在设置页填写隧道 / FRP 凭证,将当前节点从局域网访问升级为外网可访问,且不影响现有数据。"}),u.jsx("div",{className:"rounded-xl border border-zinc-200 bg-white p-4 shadow-sm",children:u.jsx("p",{className:"text-xs text-zinc-600 leading-6",children:"如果你现在只在局域网使用 Xpod,后续需要远程访问时,进入设置页配置隧道供应商与 Token 即可。"})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(L1,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&u.jsxs("button",{onClick:()=>b(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),S&&u.jsxs("form",{onSubmit:me,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"text",value:C,onChange:Z=>N(Z.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"}),u.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?u.jsx("div",{className:"p-4",children:u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"No Pods found. Create one to get started."})}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(Z=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(O1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:Z.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:Z.id})]}),u.jsx("button",{onClick:()=>G(Z.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:u.jsx(Rp,{className:"w-4 h-4"})})]},Z.id))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(Bv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&u.jsxs("button",{onClick:()=>w(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),u.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),D&&u.jsxs("form",{onSubmit:T,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"url",value:j,onChange:Z=>R(Z.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Linking...":"Link"}),u.jsx("button",{type:"button",onClick:()=>w(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(Z=>u.jsxs("li",{className:"p-3 flex items-center gap-3",children:[u.jsx(D1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:Z,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:Z})]},Z))})})]}),u.jsxs("section",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[u.jsx(vu,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&u.jsxs("button",{onClick:te,disabled:f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[u.jsx(gu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),u.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["API Keys for programmatic access. Use with ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),a?.account?.clientCredentials?u.jsxs(u.Fragment,{children:[J&&u.jsxs("form",{onSubmit:$,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),u.jsx("input",{type:"text",value:re,onChange:Z=>se(Z.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),u.jsxs("div",{className:"relative",ref:_,children:[u.jsxs("button",{type:"button",onClick:()=>ae(!ee),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[u.jsx("span",{className:"truncate text-zinc-700",children:I||"Select WebID"}),u.jsx(Mv,{className:`w-4 h-4 text-zinc-400 transition-transform ${ee?"rotate-180":""}`})]}),ee&&u.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:h.map(Z=>u.jsx("button",{type:"button",onClick:()=>{le(Z),ae(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${I===Z?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:Z},Z))}),u.jsx("input",{type:"hidden",name:"webId",value:I,required:!0})]})]}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:()=>Y(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),u.jsx("button",{type:"submit",disabled:f,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:f?"Creating...":"Create"})]})]}),q&&u.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:u.jsxs("div",{className:"flex items-start gap-3",children:[u.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:u.jsx(vu,{className:"w-4 h-4 text-emerald-600"})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),u.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),u.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),u.jsx("p",{className:"text-zinc-600 truncate",children:q.id})]}),u.jsx("button",{onClick:()=>L(q.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:W==="id"?u.jsx(rl,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(pu,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),u.jsx("p",{className:"text-zinc-600 break-all",children:q.secret})]}),u.jsx("button",{onClick:()=>L(q.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:W==="secret"?u.jsx(rl,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(pu,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),u.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Mp(q.id,q.secret)})]}),u.jsx("button",{onClick:()=>L(Mp(q.id,q.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:W==="apikey"?u.jsx(rl,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(pu,{className:"w-3.5 h-3.5"})})]})]}),u.jsxs("p",{className:"mt-3 text-[10px] text-zinc-400",children:["Use the API Key with: ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"})]}),u.jsx("button",{onClick:()=>Q(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:O.length===0?u.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:O.map(Z=>u.jsxs("li",{className:"p-3 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[u.jsx(vu,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:Z.id})]}),u.jsx("button",{onClick:()=>de(Z.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:u.jsx(Rp,{className:"w-4 h-4"})})]},Z.id))})})]}):u.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:u.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),u.jsxs("section",{children:[u.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[u.jsx(Vi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),u.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),u.jsx("a",{href:a?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function rS(){const{idpIndex:a,isLoggedIn:i,controls:r}=It(),s=Ln(),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,N]=g.useState(""),[D,w]=g.useState(null),[j,R]=g.useState(null),[O,M]=g.useState(!0),q=`${a}oidc/consent/`,Q=`${a}oidc/pick-webid/`,J=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Ca(window.location.href),(async()=>{try{const W=await fetch(q,{headers:{Accept:"application/json"},credentials:"include"});if(console.log("[Consent] GET consent response status:",W.status),W.status===401||W.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!W.ok){const ae=await W.json().catch(()=>({}));throw new Error(ae.message||"Failed to load consent info")}const ne=await W.json();p(ne.client||{}),y(ne.webId||null);const ee=await fetch(Q,{headers:{Accept:"application/json"},credentials:"include"});if(ee.ok){const _=(await ee.json()).webIds||[];b(_),ne.webId&&_.includes(ne.webId)?N(ne.webId):_.length>0&&N(_[0])}}catch(W){w(W.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=W=>{try{const ne=new URL(W),ee=ne.pathname.split("/").filter(Boolean);return{provider:ne.host,podId:ee[0]??"-",full:W}}catch{return{provider:"-",podId:"-",full:W}}},I=async W=>{try{await navigator.clipboard.writeText(W),R(W),setTimeout(()=>R(null),1200)}catch{R(null)}},le=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",credentials:"include"}),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},re=async W=>{console.log("[Consent] handleConsent called, allow:",W);try{if(d(!0),w(null),!W){console.log("[Consent] Cancelling...");const X=await(await fetch(J,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",X),X.location&&(window.location.href=X.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),X=await L.json();if(!L.ok)throw new Error(X.message||"Failed to select WebID");X.location&&await fetch(X.location,{credentials:"include"})}const ne=await fetch(q,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({remember:O})}),ee=await ne.json();if(console.log("[Consent] Response:",ne.status,ee),console.log("[Consent] Location header:",ne.headers.get("Location")),!ne.ok)throw new Error(ee.message||"Consent failed");const ae=ne.headers.get("Location"),_=ee.location||ae;console.log("[Consent] Redirect URL:",_),_?window.location.href=_:(w("Authorization completed but no redirect URL received. The application may need to restart the login flow."),d(!1))}catch(ne){w(ne.message||"Consent failed"),d(!1)}},se=S.length>0?S:v?[v]:[];return u.jsxs(Qi,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Vi,children:[!i&&u.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[u.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),D&&u.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[u.jsx(Lv,{className:"w-4 h-4 inline mr-2"}),D]}),f?u.jsx("div",{className:"flex justify-center py-6",children:u.jsx(Ta,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):u.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&u.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&u.jsx("div",{children:u.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&u.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),se.length>0&&u.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",u.jsx("span",{className:"text-zinc-600",children:Y(se[0]).provider})]})]}),se.length===0?u.jsxs("div",{className:"text-center py-4",children:[u.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),u.jsx("button",{onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):u.jsx("div",{className:"space-y-1",children:se.map(W=>{const ne=Y(W);return u.jsxs("label",{className:Ie("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===W?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[u.jsx("input",{type:"radio",name:"webId",value:W,checked:C===W,onChange:ee=>N(ee.target.value),className:"text-[#7C4DFF]"}),u.jsx("div",{className:"min-w-0 flex-1",children:u.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:ne.full,children:ne.podId})}),u.jsx("button",{type:"button",onClick:ee=>{ee.preventDefault(),I(W)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:j===W?"Copied":"Copy"})]},W)})})]}),u.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:O,onChange:W=>M(W.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[u.jsx("button",{onClick:()=>re(!1),disabled:f,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:"Deny"}),u.jsx("button",{onClick:()=>re(!0),disabled:f||se.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:f?"Authorizing...":"Authorize"})]}),u.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[u.jsx("button",{type:"button",onClick:()=>{Ca(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),u.jsx("button",{type:"button",onClick:le,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function sS(){const{controls:a,isLoggedIn:i}=It(),r=Ln(),[s,f]=g.useState(!1),[d,h]=g.useState(!1);if(i)return u.jsx(_n,{to:"/.account/account/",replace:!0});const p=async v=>{v.preventDefault(),f(!0);const y=new FormData(v.currentTarget).get("email");try{await fetch(a?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:y})}),h(!0)}catch{alert("Failed to send reset email")}finally{f(!1)}};return u.jsx(Qi,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:zu,showBack:!0,onBack:()=>r("/.account/login/password/"),children:d?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(rl,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),u.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),u.jsx("button",{onClick:()=>h(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):u.jsxs("form",{className:"space-y-4",onSubmit:p,children:[u.jsxs("div",{className:"relative",children:[u.jsx(zu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),u.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Send Reset Link ",u.jsx(qi,{className:"h-4 w-4"})]})})]})})}function uS(){const{controls:a,isLoggedIn:i}=It(),r=Ln(),[s]=s1(),[f,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,N]=g.useState(""),D=s.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return u.jsx(_n,{to:"/.account/account/",replace:!0});if(!D)return u.jsx(_n,{to:"/.account/login/password/forgot/",replace:!0});const j=async R=>{if(R.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const O=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(O,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:D,password:S})});if(M.ok)p(!0);else{const q=await M.json().catch(()=>({}));y(q.message||"Failed to reset password")}}catch{y("Network error")}finally{d(!1)}};return u.jsx(Qi,{title:"Reset Password",subtitle:"Enter your new password.",icon:ki,children:h?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[u.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:u.jsx(rl,{className:"w-5 h-5 text-emerald-600"})}),u.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),u.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):u.jsxs("form",{className:"space-y-4",onSubmit:j,children:[v&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"relative",children:[u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:R=>b(R.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),u.jsxs("div",{className:"relative",children:[w?u.jsx(rl,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(ki,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),u.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:C,onChange:R=>N(R.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${w?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),u.jsx("button",{type:"submit",disabled:f||!w,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:f?u.jsx(Ta,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Reset Password ",u.jsx(qi,{className:"h-4 w-4"})]})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function fS(){const{controls:a,isLoggedIn:i}=It(),[r,s]=g.useState([]),[f,d]=g.useState(!0);return g.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(a?.main?.logins){const p=await(await fetch(a.main.logins,{headers:{Accept:"application/json"},credentials:"include"})).json(),v=Object.entries(p.logins||{});if(v.length===1){window.location.href=v[0][1];return}if(v.length===0){window.location.href="/.account/login/password/";return}s(v)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=a?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[a,i]),f?u.jsx(kv,{}):u.jsx(Qi,{title:"Select Login Method",children:u.jsx("div",{className:"space-y-2",children:r.map(([h,p])=>u.jsx("a",{href:p,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:h},h))})})}var Gv={"chatkit.error":"onError","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect"},dS=Object.keys(Gv),hS=g.forwardRef(function({control:i,...r},s){const f=g.useRef(null);return g.useLayoutEffect(()=>{const d=f.current;if(!d)return;if(customElements.get("openai-chatkit")){d.setOptions(i.options);return}let h=!0;return customElements.whenDefined("openai-chatkit").then(()=>{h&&d.setOptions(i.options)}),()=>{h=!1}},[i.options]),g.useEffect(()=>{const d=f.current;if(!d)return;const h=new AbortController;for(const p of dS)d.addEventListener(p,v=>{const y=Gv[p],S=i.handlers[y];typeof S=="function"&&S(v.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),u.jsx("openai-chatkit",{ref:d=>{f.current=d,i.setInstance(d),typeof s=="function"?s(d):s&&(s.current=d),f.current},...r})});function Lp(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Mu(a,i,r=new WeakMap){if(Object.is(a,i))return!0;if(typeof a=="function"&&typeof i=="function")return typeof a==typeof i;if(!Lp(a)||!Lp(i))return!1;const s=r.get(a);if(s&&s===i)return!0;if(r.set(a,i),Array.isArray(a)||Array.isArray(i)){if(!Array.isArray(a)||!Array.isArray(i)||a.length!==i.length)return!1;for(let h=0;h<a.length;h++)if(!Mu(a[h],i[h],r))return!1;return!0}const f=Object.keys(a),d=Object.keys(i);if(f.length!==d.length)return!1;for(let h=0;h<f.length;h++){const p=f[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const v=a[p],y=i[p];if(!Mu(v,y,r))return!1}return!0}function mS(a){const i=[],r=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),s=(d,h)=>(...p)=>{const v=r(a.current,d),y=v?.[h];if(typeof y=="function")return y.apply(v,p)},f=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return s(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let v=0;v<d.length;v++)i[h]=v,p[v]=f(d[v]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const v of Object.keys(d))i[h]=v,p[v]=f(d[v]);return i.length=h,p}return d};return f(a.current)}function pS(a){const i=Pt.useRef(a);i.current=a;const r=Pt.useRef(null);return(!r.current||!Mu(r.current.snapshot,a))&&(r.current={snapshot:a,shaped:mS(i)}),r.current.shaped}var vS=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function gS(a){const i=g.useRef(null),r=pS(a),s=g.useMemo(()=>vS.reduce((h,p)=>(h[p]=(...v)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...v)},h),{}),[]),f=g.useCallback(h=>{i.current=h},[]),d=g.useMemo(()=>{const h={},p={};for(const[v,y]of Object.entries(r))/^on[A-Z]/.test(v)&&v!=="onClientTool"?p[v]=y:h[v]=y;return{setInstance:f,options:h,handlers:p}},[r,f]);return g.useMemo(()=>({...s,control:d,ref:i}),[s,d])}const Up="http://localhost:3000/chatkit",Hp="domain_pk_localhost_dev";function yS(){const{isLoggedIn:a}=It(),[i,r]=g.useState(""),[s,f]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i&&(y.Authorization=`Bearer ${i}`),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=gS({api:{url:Up,domainKey:Hp,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return u.jsxs("div",{className:"min-h-screen bg-gray-50",children:[u.jsxs("header",{className:"bg-white shadow-sm border-b",children:[u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:u.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),u.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("button",{onClick:()=>f(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),u.jsx("div",{className:"text-sm text-gray-500",children:a?u.jsx("span",{className:"text-green-600",children:"● Logged in"}):u.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&u.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:i,onChange:p=>r(p.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),u.jsx("button",{onClick:()=>f(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),u.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),u.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[u.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:u.jsx(hS,{control:h.control,style:{width:"100%",height:"100%"}})}),u.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"API URL:"})," ",Up]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Domain Key:"})," ",Hp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function zi(a){const{className:i,variant:r,children:s}=a;return u.jsx("div",{className:Ie("rounded-xl bg-background",r==="bordered"&&"border border-border",i),children:s})}function _i(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("px-5 pt-5",i),children:r})}function Di(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("text-base font-semibold",i),children:r})}function Mi(a){const{className:i,children:r}=a;return u.jsx("div",{className:Ie("px-5 pb-5 pt-4",i),children:r})}function yu(a){const{className:i,variant:r="default",size:s="default",children:f,...d}=a,h="inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50 disabled:pointer-events-none",p={default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/80",ghost:"bg-transparent hover:bg-muted text-foreground"},v={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return u.jsx("button",{className:Ie(h,p[r],v[s],i),...d,children:f})}function Rn(a){const{className:i,...r}=a;return u.jsx("input",{className:Ie("w-full h-10 rounded-md border border-input bg-background px-3 py-2 text-sm","placeholder:text-muted-foreground","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",i),...r})}function po(a){const{className:i,...r}=a;return u.jsx("label",{className:Ie("text-sm font-medium text-foreground",i),...r})}function Bp(a,[i,r]){return Math.min(r,Math.max(i,a))}function Je(a,i,{checkForDefaultPrevented:r=!0}={}){return function(f){if(a?.(f),r===!1||!f.defaultPrevented)return i?.(f)}}function $u(a,i=[]){let r=[];function s(d,h){const p=g.createContext(h),v=r.length;r=[...r,h];const y=b=>{const{scope:C,children:N,...D}=b,w=C?.[a]?.[v]||p,j=g.useMemo(()=>D,Object.values(D));return u.jsx(w.Provider,{value:j,children:N})};y.displayName=d+"Provider";function S(b,C){const N=C?.[a]?.[v]||p,D=g.useContext(N);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[y,S]}const f=()=>{const d=r.map(h=>g.createContext(h));return function(p){const v=p?.[a]||d;return g.useMemo(()=>({[`__scope${a}`]:{...p,[a]:v}}),[p,v])}};return f.scopeName=a,[s,xS(f,...i)]}function xS(...a){const i=a[0];if(a.length===1)return i;const r=()=>{const s=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=s.reduce((p,{useScope:v,scopeName:y})=>{const b=v(d)[`__scope${y}`];return{...p,...b}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}function kp(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Fv(...a){return i=>{let r=!1;const s=a.map(f=>{const d=kp(f,i);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let f=0;f<s.length;f++){const d=s[f];typeof d=="function"?d():kp(a[f],null)}}}}function ct(...a){return g.useCallback(Fv(...a),a)}function Ro(a){const i=bS(a),r=g.forwardRef((s,f)=>{const{children:d,...h}=s,p=g.Children.toArray(d),v=p.find(wS);if(v){const y=v.props.children,S=p.map(b=>b===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:b);return u.jsx(i,{...h,ref:f,children:g.isValidElement(y)?g.cloneElement(y,void 0,S):null})}return u.jsx(i,{...h,ref:f,children:d})});return r.displayName=`${a}.Slot`,r}function bS(a){const i=g.forwardRef((r,s)=>{const{children:f,...d}=r;if(g.isValidElement(f)){const h=CS(f),p=ES(d,f.props);return f.type!==g.Fragment&&(p.ref=s?Fv(s,h):h),g.cloneElement(f,p)}return g.Children.count(f)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var SS=Symbol("radix.slottable");function wS(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===SS}function ES(a,i){const r={...i};for(const s in i){const f=a[s],d=i[s];/^on[A-Z]/.test(s)?f&&d?r[s]=(...p)=>{const v=d(...p);return f(...p),v}:f&&(r[s]=f):s==="style"?r[s]={...f,...d}:s==="className"&&(r[s]=[f,d].filter(Boolean).join(" "))}return{...a,...r}}function CS(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?a.props.ref:a.props.ref||a.ref)}function NS(a){const i=a+"CollectionProvider",[r,s]=$u(i),[f,d]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:j,children:R}=w,O=Pt.useRef(null),M=Pt.useRef(new Map).current;return u.jsx(f,{scope:j,itemMap:M,collectionRef:O,children:R})};h.displayName=i;const p=a+"CollectionSlot",v=Ro(p),y=Pt.forwardRef((w,j)=>{const{scope:R,children:O}=w,M=d(p,R),q=ct(j,M.collectionRef);return u.jsx(v,{ref:q,children:O})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=Ro(S),N=Pt.forwardRef((w,j)=>{const{scope:R,children:O,...M}=w,q=Pt.useRef(null),Q=ct(j,q),J=d(S,R);return Pt.useEffect(()=>(J.itemMap.set(q,{ref:q,...M}),()=>{J.itemMap.delete(q)})),u.jsx(C,{[b]:"",ref:Q,children:O})});N.displayName=S;function D(w){const j=d(a+"CollectionConsumer",w);return Pt.useCallback(()=>{const O=j.collectionRef.current;if(!O)return[];const M=Array.from(O.querySelectorAll(`[${b}]`));return Array.from(j.itemMap.values()).sort((J,Y)=>M.indexOf(J.ref.current)-M.indexOf(Y.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:h,Slot:y,ItemSlot:N},D,s]}var jS=g.createContext(void 0);function TS(a){const i=g.useContext(jS);return a||i||"ltr"}var AS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=AS.reduce((a,i)=>{const r=Ro(`Primitive.${i}`),s=g.forwardRef((f,d)=>{const{asChild:h,...p}=f,v=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...p,ref:d})});return s.displayName=`Primitive.${i}`,{...a,[i]:s}},{});function RS(a,i){a&&Ki.flushSync(()=>a.dispatchEvent(i))}function Dl(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...r)=>i.current?.(...r),[])}function OS(a,i=globalThis?.document){const r=Dl(a);g.useEffect(()=>{const s=f=>{f.key==="Escape"&&r(f)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[r,i])}var zS="DismissableLayer",Lu="dismissableLayer.update",_S="dismissableLayer.pointerDownOutside",DS="dismissableLayer.focusOutside",Yp,Kv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qv=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(Kv),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,N]=g.useState({}),D=ct(i,Y=>b(Y)),w=Array.from(y.layers),[j]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),R=w.indexOf(j),O=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=O>=R,Q=US(Y=>{const I=Y.target,le=[...y.branches].some(re=>re.contains(I));!q||le||(f?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),J=HS(Y=>{const I=Y.target;[...y.branches].some(re=>re.contains(I))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return OS(Y=>{O===y.layers.size-1&&(s?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Yp=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),qp(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=Yp)}},[S,C,r,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),qp())},[S,y]),g.useEffect(()=>{const Y=()=>N({});return document.addEventListener(Lu,Y),()=>document.removeEventListener(Lu,Y)},[]),u.jsx(Fe.div,{...v,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...a.style},onFocusCapture:Je(a.onFocusCapture,J.onFocusCapture),onBlurCapture:Je(a.onBlurCapture,J.onBlurCapture),onPointerDownCapture:Je(a.onPointerDownCapture,Q.onPointerDownCapture)})});Qv.displayName=zS;var MS="DismissableLayerBranch",LS=g.forwardRef((a,i)=>{const r=g.useContext(Kv),s=g.useRef(null),f=ct(i,s);return g.useEffect(()=>{const d=s.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),u.jsx(Fe.div,{...a,ref:f})});LS.displayName=MS;function US(a,i=globalThis?.document){const r=Dl(a),s=g.useRef(!1),f=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!s.current){let v=function(){Zv(_S,r,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",f.current),f.current=v,i.addEventListener("click",f.current,{once:!0})):v()}else i.removeEventListener("click",f.current);s.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",f.current)}},[i,r]),{onPointerDownCapture:()=>s.current=!0}}function HS(a,i=globalThis?.document){const r=Dl(a),s=g.useRef(!1);return g.useEffect(()=>{const f=d=>{d.target&&!s.current&&Zv(DS,r,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",f),()=>i.removeEventListener("focusin",f)},[i,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function qp(){const a=new CustomEvent(Lu);document.dispatchEvent(a)}function Zv(a,i,r,{discrete:s}){const f=r.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:r});i&&f.addEventListener(a,i,{once:!0}),s?RS(f,d):f.dispatchEvent(d)}var xu=0;function BS(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Vp()),document.body.insertAdjacentElement("beforeend",a[1]??Vp()),xu++,()=>{xu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),xu--}},[])}function Vp(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var bu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Xp={bubbles:!1,cancelable:!0},kS="FocusScope",Pv=g.forwardRef((a,i)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Dl(f),S=Dl(d),b=g.useRef(null),C=ct(i,w=>v(w)),N=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let w=function(M){if(N.paused||!p)return;const q=M.target;p.contains(q)?b.current=q:ol(b.current,{select:!0})},j=function(M){if(N.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||ol(b.current,{select:!0}))},R=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&ol(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",j);const O=new MutationObserver(R);return p&&O.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",j),O.disconnect()}}},[s,p,N.paused]),g.useEffect(()=>{if(p){Fp.add(N);const w=document.activeElement;if(!p.contains(w)){const R=new CustomEvent(bu,Xp);p.addEventListener(bu,y),p.dispatchEvent(R),R.defaultPrevented||(YS(FS(Jv(p)),{select:!0}),document.activeElement===w&&ol(p))}return()=>{p.removeEventListener(bu,y),setTimeout(()=>{const R=new CustomEvent(Su,Xp);p.addEventListener(Su,S),p.dispatchEvent(R),R.defaultPrevented||ol(w??document.body,{select:!0}),p.removeEventListener(Su,S),Fp.remove(N)},0)}}},[p,y,S,N]);const D=g.useCallback(w=>{if(!r&&!s||N.paused)return;const j=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,R=document.activeElement;if(j&&R){const O=w.currentTarget,[M,q]=qS(O);M&&q?!w.shiftKey&&R===q?(w.preventDefault(),r&&ol(M,{select:!0})):w.shiftKey&&R===M&&(w.preventDefault(),r&&ol(q,{select:!0})):R===O&&w.preventDefault()}},[r,s,N.paused]);return u.jsx(Fe.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});Pv.displayName=kS;function YS(a,{select:i=!1}={}){const r=document.activeElement;for(const s of a)if(ol(s,{select:i}),document.activeElement!==r)return}function qS(a){const i=Jv(a),r=Gp(i,a),s=Gp(i.reverse(),a);return[r,s]}function Jv(a){const i=[],r=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const f=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||f?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function Gp(a,i){for(const r of a)if(!VS(r,{upTo:i}))return r}function VS(a,{upTo:i}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(i!==void 0&&a===i)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function XS(a){return a instanceof HTMLInputElement&&"select"in a}function ol(a,{select:i=!1}={}){if(a&&a.focus){const r=document.activeElement;a.focus({preventScroll:!0}),a!==r&&XS(a)&&i&&a.select()}}var Fp=GS();function GS(){let a=[];return{add(i){const r=a[0];i!==r&&r?.pause(),a=Kp(a,i),a.unshift(i)},remove(i){a=Kp(a,i),a[0]?.resume()}}}function Kp(a,i){const r=[...a],s=r.indexOf(i);return s!==-1&&r.splice(s,1),r}function FS(a){return a.filter(i=>i.tagName!=="A")}var yt=globalThis?.document?g.useLayoutEffect:()=>{},KS=fv[" useId ".trim().toString()]||(()=>{}),QS=0;function ef(a){const[i,r]=g.useState(KS());return yt(()=>{r(s=>s??String(QS++))},[a]),i?`radix-${i}`:""}const ZS=["top","right","bottom","left"],sl=Math.min,zt=Math.max,Oo=Math.round,vo=Math.floor,cn=a=>({x:a,y:a}),PS={left:"right",right:"left",bottom:"top",top:"bottom"},JS={start:"end",end:"start"};function Uu(a,i,r){return zt(a,sl(i,r))}function Dn(a,i){return typeof a=="function"?a(i):a}function Mn(a){return a.split("-")[0]}function _a(a){return a.split("-")[1]}function tf(a){return a==="x"?"y":"x"}function nf(a){return a==="y"?"height":"width"}const WS=new Set(["top","bottom"]);function an(a){return WS.has(Mn(a))?"y":"x"}function lf(a){return tf(an(a))}function IS(a,i,r){r===void 0&&(r=!1);const s=_a(a),f=lf(a),d=nf(f);let h=f==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=zo(h)),[h,zo(h)]}function $S(a){const i=zo(a);return[Hu(a),i,Hu(i)]}function Hu(a){return a.replace(/start|end/g,i=>JS[i])}const Qp=["left","right"],Zp=["right","left"],ew=["top","bottom"],tw=["bottom","top"];function nw(a,i,r){switch(a){case"top":case"bottom":return r?i?Zp:Qp:i?Qp:Zp;case"left":case"right":return i?ew:tw;default:return[]}}function lw(a,i,r,s){const f=_a(a);let d=nw(Mn(a),r==="start",s);return f&&(d=d.map(h=>h+"-"+f),i&&(d=d.concat(d.map(Hu)))),d}function zo(a){return a.replace(/left|right|bottom|top/g,i=>PS[i])}function aw(a){return{top:0,right:0,bottom:0,left:0,...a}}function Wv(a){return typeof a!="number"?aw(a):{top:a,right:a,bottom:a,left:a}}function _o(a){const{x:i,y:r,width:s,height:f}=a;return{width:s,height:f,top:r,left:i,right:i+s,bottom:r+f,x:i,y:r}}function Pp(a,i,r){let{reference:s,floating:f}=a;const d=an(i),h=lf(i),p=nf(h),v=Mn(i),y=d==="y",S=s.x+s.width/2-f.width/2,b=s.y+s.height/2-f.height/2,C=s[p]/2-f[p]/2;let N;switch(v){case"top":N={x:S,y:s.y-f.height};break;case"bottom":N={x:S,y:s.y+s.height};break;case"right":N={x:s.x+s.width,y:b};break;case"left":N={x:s.x-f.width,y:b};break;default:N={x:s.x,y:s.y}}switch(_a(i)){case"start":N[h]-=C*(r&&y?-1:1);break;case"end":N[h]+=C*(r&&y?-1:1);break}return N}async function iw(a,i){var r;i===void 0&&(i={});const{x:s,y:f,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:N=0}=Dn(i,a),D=Wv(N),j=p[C?b==="floating"?"reference":"floating":b],R=_o(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(j)))==null||r?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),O=b==="floating"?{x:s,y:f,width:h.floating.width,height:h.floating.height}:h.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),q=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},Q=_o(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:O,offsetParent:M,strategy:v}):O);return{top:(R.top-Q.top+D.top)/q.y,bottom:(Q.bottom-R.bottom+D.bottom)/q.y,left:(R.left-Q.left+D.left)/q.x,right:(Q.right-R.right+D.right)/q.x}}const cw=async(a,i,r)=>{const{placement:s="bottom",strategy:f="absolute",middleware:d=[],platform:h}=r,p=d.filter(Boolean),v=await(h.isRTL==null?void 0:h.isRTL(i));let y=await h.getElementRects({reference:a,floating:i,strategy:f}),{x:S,y:b}=Pp(y,s,v),C=s,N={},D=0;for(let j=0;j<p.length;j++){var w;const{name:R,fn:O}=p[j],{x:M,y:q,data:Q,reset:J}=await O({x:S,y:b,initialPlacement:s,placement:C,strategy:f,middlewareData:N,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:iw},elements:{reference:a,floating:i}});S=M??S,b=q??b,N={...N,[R]:{...N[R],...Q}},J&&D<=50&&(D++,typeof J=="object"&&(J.placement&&(C=J.placement),J.rects&&(y=J.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:f}):J.rects),{x:S,y:b}=Pp(y,C,v)),j=-1)}return{x:S,y:b,placement:C,strategy:f,middlewareData:N}},ow=a=>({name:"arrow",options:a,async fn(i){const{x:r,y:s,placement:f,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=Dn(a,i)||{};if(y==null)return{};const b=Wv(S),C={x:r,y:s},N=lf(f),D=nf(N),w=await h.getDimensions(y),j=N==="y",R=j?"top":"left",O=j?"bottom":"right",M=j?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[N]-C[N]-d.floating[D],Q=C[N]-d.reference[N],J=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=J?J[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(J)))&&(Y=p.floating[M]||d.floating[D]);const I=q/2-Q/2,le=Y/2-w[D]/2-1,re=sl(b[R],le),se=sl(b[O],le),W=re,ne=Y-w[D]-se,ee=Y/2-w[D]/2+I,ae=Uu(W,ee,ne),_=!v.arrow&&_a(f)!=null&&ee!==ae&&d.reference[D]/2-(ee<W?re:se)-w[D]/2<0,L=_?ee<W?ee-W:ee-ne:0;return{[N]:C[N]+L,data:{[N]:ae,centerOffset:ee-ae-L,..._&&{alignmentOffset:L}},reset:_}}}),rw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var r,s;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...j}=Dn(a,i);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const R=Mn(f),O=an(p),M=Mn(p)===p,q=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Q=C||(M||!w?[zo(p)]:$S(p)),J=D!=="none";!C&&J&&Q.push(...lw(p,w,D,q));const Y=[p,...Q],I=await v.detectOverflow(i,j),le=[];let re=((s=d.flip)==null?void 0:s.overflows)||[];if(S&&le.push(I[R]),b){const ee=IS(f,h,q);le.push(I[ee[0]],I[ee[1]])}if(re=[...re,{placement:f,overflows:le}],!le.every(ee=>ee<=0)){var se,W;const ee=(((se=d.flip)==null?void 0:se.index)||0)+1,ae=Y[ee];if(ae&&(!(b==="alignment"?O!==an(ae):!1)||re.every(X=>an(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:ee,overflows:re},reset:{placement:ae}};let _=(W=re.filter(L=>L.overflows[0]<=0).sort((L,X)=>L.overflows[1]-X.overflows[1])[0])==null?void 0:W.placement;if(!_)switch(N){case"bestFit":{var ne;const L=(ne=re.filter(X=>{if(J){const ce=an(X.placement);return ce===O||ce==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(ce=>ce>0).reduce((ce,me)=>ce+me,0)]).sort((X,ce)=>X[1]-ce[1])[0])==null?void 0:ne[0];L&&(_=L);break}case"initialPlacement":_=p;break}if(f!==_)return{reset:{placement:_}}}return{}}}};function Jp(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function Wp(a){return ZS.some(i=>a[i]>=0)}const sw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:r,platform:s}=i,{strategy:f="referenceHidden",...d}=Dn(a,i);switch(f){case"referenceHidden":{const h=await s.detectOverflow(i,{...d,elementContext:"reference"}),p=Jp(h,r.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Wp(p)}}}case"escaped":{const h=await s.detectOverflow(i,{...d,altBoundary:!0}),p=Jp(h,r.floating);return{data:{escapedOffsets:p,escaped:Wp(p)}}}default:return{}}}}},Iv=new Set(["left","top"]);async function uw(a,i){const{placement:r,platform:s,elements:f}=a,d=await(s.isRTL==null?void 0:s.isRTL(f.floating)),h=Mn(r),p=_a(r),v=an(r)==="y",y=Iv.has(h)?-1:1,S=d&&v?-1:1,b=Dn(i,a);let{mainAxis:C,crossAxis:N,alignmentAxis:D}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof D=="number"&&(N=p==="end"?D*-1:D),v?{x:N*S,y:C*y}:{x:C*y,y:N*S}}const fw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var r,s;const{x:f,y:d,placement:h,middlewareData:p}=i,v=await uw(i,a);return h===((r=p.offset)==null?void 0:r.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:h}}}}},dw=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:r,y:s,placement:f,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:R=>{let{x:O,y:M}=R;return{x:O,y:M}}},...y}=Dn(a,i),S={x:r,y:s},b=await d.detectOverflow(i,y),C=an(Mn(f)),N=tf(C);let D=S[N],w=S[C];if(h){const R=N==="y"?"top":"left",O=N==="y"?"bottom":"right",M=D+b[R],q=D-b[O];D=Uu(M,D,q)}if(p){const R=C==="y"?"top":"left",O=C==="y"?"bottom":"right",M=w+b[R],q=w-b[O];w=Uu(M,w,q)}const j=v.fn({...i,[N]:D,[C]:w});return{...j,data:{x:j.x-r,y:j.y-s,enabled:{[N]:h,[C]:p}}}}}},hw=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:r,y:s,placement:f,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=Dn(a,i),S={x:r,y:s},b=an(f),C=tf(b);let N=S[C],D=S[b];const w=Dn(p,i),j=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const M=C==="y"?"height":"width",q=d.reference[C]-d.floating[M]+j.mainAxis,Q=d.reference[C]+d.reference[M]-j.mainAxis;N<q?N=q:N>Q&&(N=Q)}if(y){var R,O;const M=C==="y"?"width":"height",q=Iv.has(Mn(f)),Q=d.reference[b]-d.floating[M]+(q&&((R=h.offset)==null?void 0:R[b])||0)+(q?0:j.crossAxis),J=d.reference[b]+d.reference[M]+(q?0:((O=h.offset)==null?void 0:O[b])||0)-(q?j.crossAxis:0);D<Q?D=Q:D>J&&(D=J)}return{[C]:N,[b]:D}}}},mw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var r,s;const{placement:f,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=Dn(a,i),S=await h.detectOverflow(i,y),b=Mn(f),C=_a(f),N=an(f)==="y",{width:D,height:w}=d.floating;let j,R;b==="top"||b==="bottom"?(j=b,R=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(R=b,j=C==="end"?"top":"bottom");const O=w-S.top-S.bottom,M=D-S.left-S.right,q=sl(w-S[j],O),Q=sl(D-S[R],M),J=!i.middlewareData.shift;let Y=q,I=Q;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(I=M),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(Y=O),J&&!C){const re=zt(S.left,0),se=zt(S.right,0),W=zt(S.top,0),ne=zt(S.bottom,0);N?I=D-2*(re!==0||se!==0?re+se:zt(S.left,S.right)):Y=w-2*(W!==0||ne!==0?W+ne:zt(S.top,S.bottom))}await v({...i,availableWidth:I,availableHeight:Y});const le=await h.getDimensions(p.floating);return D!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}};function Ho(){return typeof window<"u"}function Da(a){return $v(a)?(a.nodeName||"").toLowerCase():"#document"}function _t(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function un(a){var i;return(i=($v(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function $v(a){return Ho()?a instanceof Node||a instanceof _t(a).Node:!1}function Jt(a){return Ho()?a instanceof Element||a instanceof _t(a).Element:!1}function on(a){return Ho()?a instanceof HTMLElement||a instanceof _t(a).HTMLElement:!1}function Ip(a){return!Ho()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof _t(a).ShadowRoot}const pw=new Set(["inline","contents"]);function Zi(a){const{overflow:i,overflowX:r,overflowY:s,display:f}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(i+s+r)&&!pw.has(f)}const vw=new Set(["table","td","th"]);function gw(a){return vw.has(Da(a))}const yw=[":popover-open",":modal"];function Bo(a){return yw.some(i=>{try{return a.matches(i)}catch{return!1}})}const xw=["transform","translate","scale","rotate","perspective"],bw=["transform","translate","scale","rotate","perspective","filter"],Sw=["paint","layout","strict","content"];function af(a){const i=cf(),r=Jt(a)?Wt(a):a;return xw.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||bw.some(s=>(r.willChange||"").includes(s))||Sw.some(s=>(r.contain||"").includes(s))}function ww(a){let i=ul(a);for(;on(i)&&!Aa(i);){if(af(i))return i;if(Bo(i))return null;i=ul(i)}return null}function cf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ew=new Set(["html","body","#document"]);function Aa(a){return Ew.has(Da(a))}function Wt(a){return _t(a).getComputedStyle(a)}function ko(a){return Jt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ul(a){if(Da(a)==="html")return a;const i=a.assignedSlot||a.parentNode||Ip(a)&&a.host||un(a);return Ip(i)?i.host:i}function eg(a){const i=ul(a);return Aa(i)?a.ownerDocument?a.ownerDocument.body:a.body:on(i)&&Zi(i)?i:eg(i)}function Xi(a,i,r){var s;i===void 0&&(i=[]),r===void 0&&(r=!0);const f=eg(a),d=f===((s=a.ownerDocument)==null?void 0:s.body),h=_t(f);if(d){const p=Bu(h);return i.concat(h,h.visualViewport||[],Zi(f)?f:[],p&&r?Xi(p):[])}return i.concat(f,Xi(f,[],r))}function Bu(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function tg(a){const i=Wt(a);let r=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const f=on(a),d=f?a.offsetWidth:r,h=f?a.offsetHeight:s,p=Oo(r)!==d||Oo(s)!==h;return p&&(r=d,s=h),{width:r,height:s,$:p}}function of(a){return Jt(a)?a:a.contextElement}function Na(a){const i=of(a);if(!on(i))return cn(1);const r=i.getBoundingClientRect(),{width:s,height:f,$:d}=tg(i);let h=(d?Oo(r.width):r.width)/s,p=(d?Oo(r.height):r.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const Cw=cn(0);function ng(a){const i=_t(a);return!cf()||!i.visualViewport?Cw:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Nw(a,i,r){return i===void 0&&(i=!1),!r||i&&r!==_t(a)?!1:i}function Ml(a,i,r,s){i===void 0&&(i=!1),r===void 0&&(r=!1);const f=a.getBoundingClientRect(),d=of(a);let h=cn(1);i&&(s?Jt(s)&&(h=Na(s)):h=Na(a));const p=Nw(d,r,s)?ng(d):cn(0);let v=(f.left+p.x)/h.x,y=(f.top+p.y)/h.y,S=f.width/h.x,b=f.height/h.y;if(d){const C=_t(d),N=s&&Jt(s)?_t(s):s;let D=C,w=Bu(D);for(;w&&s&&N!==D;){const j=Na(w),R=w.getBoundingClientRect(),O=Wt(w),M=R.left+(w.clientLeft+parseFloat(O.paddingLeft))*j.x,q=R.top+(w.clientTop+parseFloat(O.paddingTop))*j.y;v*=j.x,y*=j.y,S*=j.x,b*=j.y,v+=M,y+=q,D=_t(w),w=Bu(D)}}return _o({width:S,height:b,x:v,y})}function Yo(a,i){const r=ko(a).scrollLeft;return i?i.left+r:Ml(un(a)).left+r}function lg(a,i){const r=a.getBoundingClientRect(),s=r.left+i.scrollLeft-Yo(a,r),f=r.top+i.scrollTop;return{x:s,y:f}}function jw(a){let{elements:i,rect:r,offsetParent:s,strategy:f}=a;const d=f==="fixed",h=un(s),p=i?Bo(i.floating):!1;if(s===h||p&&d)return r;let v={scrollLeft:0,scrollTop:0},y=cn(1);const S=cn(0),b=on(s);if((b||!b&&!d)&&((Da(s)!=="body"||Zi(h))&&(v=ko(s)),on(s))){const N=Ml(s);y=Na(s),S.x=N.x+s.clientLeft,S.y=N.y+s.clientTop}const C=h&&!b&&!d?lg(h,v):cn(0);return{width:r.width*y.x,height:r.height*y.y,x:r.x*y.x-v.scrollLeft*y.x+S.x+C.x,y:r.y*y.y-v.scrollTop*y.y+S.y+C.y}}function Tw(a){return Array.from(a.getClientRects())}function Aw(a){const i=un(a),r=ko(a),s=a.ownerDocument.body,f=zt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),d=zt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let h=-r.scrollLeft+Yo(a);const p=-r.scrollTop;return Wt(s).direction==="rtl"&&(h+=zt(i.clientWidth,s.clientWidth)-f),{width:f,height:d,x:h,y:p}}const $p=25;function Rw(a,i){const r=_t(a),s=un(a),f=r.visualViewport;let d=s.clientWidth,h=s.clientHeight,p=0,v=0;if(f){d=f.width,h=f.height;const S=cf();(!S||S&&i==="fixed")&&(p=f.offsetLeft,v=f.offsetTop)}const y=Yo(s);if(y<=0){const S=s.ownerDocument,b=S.body,C=getComputedStyle(b),N=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(s.clientWidth-b.clientWidth-N);D<=$p&&(d-=D)}else y<=$p&&(d+=y);return{width:d,height:h,x:p,y:v}}const Ow=new Set(["absolute","fixed"]);function zw(a,i){const r=Ml(a,!0,i==="fixed"),s=r.top+a.clientTop,f=r.left+a.clientLeft,d=on(a)?Na(a):cn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=f*d.x,y=s*d.y;return{width:h,height:p,x:v,y}}function ev(a,i,r){let s;if(i==="viewport")s=Rw(a,r);else if(i==="document")s=Aw(un(a));else if(Jt(i))s=zw(i,r);else{const f=ng(a);s={x:i.x-f.x,y:i.y-f.y,width:i.width,height:i.height}}return _o(s)}function ag(a,i){const r=ul(a);return r===i||!Jt(r)||Aa(r)?!1:Wt(r).position==="fixed"||ag(r,i)}function _w(a,i){const r=i.get(a);if(r)return r;let s=Xi(a,[],!1).filter(p=>Jt(p)&&Da(p)!=="body"),f=null;const d=Wt(a).position==="fixed";let h=d?ul(a):a;for(;Jt(h)&&!Aa(h);){const p=Wt(h),v=af(h);!v&&p.position==="fixed"&&(f=null),(d?!v&&!f:!v&&p.position==="static"&&!!f&&Ow.has(f.position)||Zi(h)&&!v&&ag(a,h))?s=s.filter(S=>S!==h):f=p,h=ul(h)}return i.set(a,s),s}function Dw(a){let{element:i,boundary:r,rootBoundary:s,strategy:f}=a;const h=[...r==="clippingAncestors"?Bo(i)?[]:_w(i,this._c):[].concat(r),s],p=h[0],v=h.reduce((y,S)=>{const b=ev(i,S,f);return y.top=zt(b.top,y.top),y.right=sl(b.right,y.right),y.bottom=sl(b.bottom,y.bottom),y.left=zt(b.left,y.left),y},ev(i,p,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function Mw(a){const{width:i,height:r}=tg(a);return{width:i,height:r}}function Lw(a,i,r){const s=on(i),f=un(i),d=r==="fixed",h=Ml(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=cn(0);function y(){v.x=Yo(f)}if(s||!s&&!d)if((Da(i)!=="body"||Zi(f))&&(p=ko(i)),s){const N=Ml(i,!0,d,i);v.x=N.x+i.clientLeft,v.y=N.y+i.clientTop}else f&&y();d&&!s&&f&&y();const S=f&&!s&&!d?lg(f,p):cn(0),b=h.left+p.scrollLeft-v.x-S.x,C=h.top+p.scrollTop-v.y-S.y;return{x:b,y:C,width:h.width,height:h.height}}function wu(a){return Wt(a).position==="static"}function tv(a,i){if(!on(a)||Wt(a).position==="fixed")return null;if(i)return i(a);let r=a.offsetParent;return un(a)===r&&(r=r.ownerDocument.body),r}function ig(a,i){const r=_t(a);if(Bo(a))return r;if(!on(a)){let f=ul(a);for(;f&&!Aa(f);){if(Jt(f)&&!wu(f))return f;f=ul(f)}return r}let s=tv(a,i);for(;s&&gw(s)&&wu(s);)s=tv(s,i);return s&&Aa(s)&&wu(s)&&!af(s)?r:s||ww(a)||r}const Uw=async function(a){const i=this.getOffsetParent||ig,r=this.getDimensions,s=await r(a.floating);return{reference:Lw(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Hw(a){return Wt(a).direction==="rtl"}const Bw={convertOffsetParentRelativeRectToViewportRelativeRect:jw,getDocumentElement:un,getClippingRect:Dw,getOffsetParent:ig,getElementRects:Uw,getClientRects:Tw,getDimensions:Mw,getScale:Na,isElement:Jt,isRTL:Hw};function cg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function kw(a,i){let r=null,s;const f=un(a);function d(){var p;clearTimeout(s),(p=r)==null||p.disconnect(),r=null}function h(p,v){p===void 0&&(p=!1),v===void 0&&(v=1),d();const y=a.getBoundingClientRect(),{left:S,top:b,width:C,height:N}=y;if(p||i(),!C||!N)return;const D=vo(b),w=vo(f.clientWidth-(S+C)),j=vo(f.clientHeight-(b+N)),R=vo(S),M={rootMargin:-D+"px "+-w+"px "+-j+"px "+-R+"px",threshold:zt(0,sl(1,v))||1};let q=!0;function Q(J){const Y=J[0].intersectionRatio;if(Y!==v){if(!q)return h();Y?h(!1,Y):s=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!cg(y,a.getBoundingClientRect())&&h(),q=!1}try{r=new IntersectionObserver(Q,{...M,root:f.ownerDocument})}catch{r=new IntersectionObserver(Q,M)}r.observe(a)}return h(!0),d}function Yw(a,i,r,s){s===void 0&&(s={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,y=of(a),S=f||d?[...y?Xi(y):[],...Xi(i)]:[];S.forEach(R=>{f&&R.addEventListener("scroll",r,{passive:!0}),d&&R.addEventListener("resize",r)});const b=y&&p?kw(y,r):null;let C=-1,N=null;h&&(N=new ResizeObserver(R=>{let[O]=R;O&&O.target===y&&N&&(N.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=N)==null||M.observe(i)})),r()}),y&&!v&&N.observe(y),N.observe(i));let D,w=v?Ml(a):null;v&&j();function j(){const R=Ml(a);w&&!cg(w,R)&&r(),w=R,D=requestAnimationFrame(j)}return r(),()=>{var R;S.forEach(O=>{f&&O.removeEventListener("scroll",r),d&&O.removeEventListener("resize",r)}),b?.(),(R=N)==null||R.disconnect(),N=null,v&&cancelAnimationFrame(D)}}const qw=fw,Vw=dw,Xw=rw,Gw=mw,Fw=sw,nv=ow,Kw=hw,Qw=(a,i,r)=>{const s=new Map,f={platform:Bw,...r},d={...f.platform,_c:s};return cw(a,i,{...f,platform:d})};var Zw=typeof document<"u",Pw=function(){},No=Zw?g.useLayoutEffect:Pw;function Do(a,i){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(typeof a=="function"&&a.toString()===i.toString())return!0;let r,s,f;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(r=a.length,r!==i.length)return!1;for(s=r;s--!==0;)if(!Do(a[s],i[s]))return!1;return!0}if(f=Object.keys(a),r=f.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(i,f[s]))return!1;for(s=r;s--!==0;){const d=f[s];if(!(d==="_owner"&&a.$$typeof)&&!Do(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function og(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function lv(a,i){const r=og(a);return Math.round(i*r)/r}function Eu(a){const i=g.useRef(a);return No(()=>{i.current=a}),i}function Jw(a){a===void 0&&(a={});const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:v,open:y}=a,[S,b]=g.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[C,N]=g.useState(s);Do(C,s)||N(s);const[D,w]=g.useState(null),[j,R]=g.useState(null),O=g.useCallback(X=>{X!==J.current&&(J.current=X,w(X))},[]),M=g.useCallback(X=>{X!==Y.current&&(Y.current=X,R(X))},[]),q=d||D,Q=h||j,J=g.useRef(null),Y=g.useRef(null),I=g.useRef(S),le=v!=null,re=Eu(v),se=Eu(f),W=Eu(y),ne=g.useCallback(()=>{if(!J.current||!Y.current)return;const X={placement:i,strategy:r,middleware:C};se.current&&(X.platform=se.current),Qw(J.current,Y.current,X).then(ce=>{const me={...ce,isPositioned:W.current!==!1};ee.current&&!Do(I.current,me)&&(I.current=me,Ki.flushSync(()=>{b(me)}))})},[C,i,r,se,W]);No(()=>{y===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,b(X=>({...X,isPositioned:!1})))},[y]);const ee=g.useRef(!1);No(()=>(ee.current=!0,()=>{ee.current=!1}),[]),No(()=>{if(q&&(J.current=q),Q&&(Y.current=Q),q&&Q){if(re.current)return re.current(q,Q,ne);ne()}},[q,Q,ne,re,le]);const ae=g.useMemo(()=>({reference:J,floating:Y,setReference:O,setFloating:M}),[O,M]),_=g.useMemo(()=>({reference:q,floating:Q}),[q,Q]),L=g.useMemo(()=>{const X={position:r,left:0,top:0};if(!_.floating)return X;const ce=lv(_.floating,S.x),me=lv(_.floating,S.y);return p?{...X,transform:"translate("+ce+"px, "+me+"px)",...og(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ce,top:me}},[r,p,_.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:ne,refs:ae,elements:_,floatingStyles:L}),[S,ne,ae,_,L])}const Ww=a=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:a,fn(r){const{element:s,padding:f}=typeof a=="function"?a(r):a;return s&&i(s)?s.current!=null?nv({element:s.current,padding:f}).fn(r):{}:s?nv({element:s,padding:f}).fn(r):{}}}},Iw=(a,i)=>({...qw(a),options:[a,i]}),$w=(a,i)=>({...Vw(a),options:[a,i]}),eE=(a,i)=>({...Kw(a),options:[a,i]}),tE=(a,i)=>({...Xw(a),options:[a,i]}),nE=(a,i)=>({...Gw(a),options:[a,i]}),lE=(a,i)=>({...Fw(a),options:[a,i]}),aE=(a,i)=>({...Ww(a),options:[a,i]});var iE="Arrow",rg=g.forwardRef((a,i)=>{const{children:r,width:s=10,height:f=5,...d}=a;return u.jsx(Fe.svg,{...d,ref:i,width:s,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});rg.displayName=iE;var cE=rg;function oE(a){const[i,r]=g.useState(void 0);return yt(()=>{if(a){r({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const d=f[0];let h,p;if("borderBoxSize"in d){const v=d.borderBoxSize,y=Array.isArray(v)?v[0]:v;h=y.inlineSize,p=y.blockSize}else h=a.offsetWidth,p=a.offsetHeight;r({width:h,height:p})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else r(void 0)},[a]),i}var rf="Popper",[sg,ug]=$u(rf),[rE,fg]=sg(rf),dg=a=>{const{__scopePopper:i,children:r}=a,[s,f]=g.useState(null);return u.jsx(rE,{scope:i,anchor:s,onAnchorChange:f,children:r})};dg.displayName=rf;var hg="PopperAnchor",mg=g.forwardRef((a,i)=>{const{__scopePopper:r,virtualRef:s,...f}=a,d=fg(hg,r),h=g.useRef(null),p=ct(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=s?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),s?null:u.jsx(Fe.div,{...f,ref:p})});mg.displayName=hg;var sf="PopperContent",[sE,uE]=sg(sf),pg=g.forwardRef((a,i)=>{const{__scopePopper:r,side:s="bottom",sideOffset:f=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:N="optimized",onPlaced:D,...w}=a,j=fg(sf,r),[R,O]=g.useState(null),M=ct(i,P=>O(P)),[q,Q]=g.useState(null),J=oE(q),Y=J?.width??0,I=J?.height??0,le=s+(d!=="center"?"-"+d:""),re=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},se=Array.isArray(y)?y:[y],W=se.length>0,ne={padding:re,boundary:se.filter(dE),altBoundary:W},{refs:ee,floatingStyles:ae,placement:_,isPositioned:L,middlewareData:X}=Jw({strategy:"fixed",placement:le,whileElementsMounted:(...P)=>Yw(...P,{animationFrame:N==="always"}),elements:{reference:j.anchor},middleware:[Iw({mainAxis:f+I,alignmentAxis:h}),v&&$w({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?eE():void 0,...ne}),v&&tE({...ne}),nE({...ne,apply:({elements:P,rects:fe,availableWidth:ge,availableHeight:je})=>{const{width:Ae,height:He}=fe.reference,rt=P.floating.style;rt.setProperty("--radix-popper-available-width",`${ge}px`),rt.setProperty("--radix-popper-available-height",`${je}px`),rt.setProperty("--radix-popper-anchor-width",`${Ae}px`),rt.setProperty("--radix-popper-anchor-height",`${He}px`)}}),q&&aE({element:q,padding:p}),hE({arrowWidth:Y,arrowHeight:I}),C&&lE({strategy:"referenceHidden",...ne})]}),[ce,me]=yg(_),T=Dl(D);yt(()=>{L&&T?.()},[L,T]);const G=X.arrow?.x,$=X.arrow?.y,te=X.arrow?.centerOffset!==0,[de,Z]=g.useState();return yt(()=>{R&&Z(window.getComputedStyle(R).zIndex)},[R]),u.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:L?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(sE,{scope:r,placedSide:ce,onArrowChange:Q,arrowX:G,arrowY:$,shouldHideArrow:te,children:u.jsx(Fe.div,{"data-side":ce,"data-align":me,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});pg.displayName=sf;var vg="PopperArrow",fE={top:"bottom",right:"left",bottom:"top",left:"right"},gg=g.forwardRef(function(i,r){const{__scopePopper:s,...f}=i,d=uE(vg,s),h=fE[d.placedSide];return u.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:u.jsx(cE,{...f,ref:r,style:{...f.style,display:"block"}})})});gg.displayName=vg;function dE(a){return a!==null}var hE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:r,rects:s,middlewareData:f}=i,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=yg(r),b={start:"0%",center:"50%",end:"100%"}[S],C=(f.arrow?.x??0)+p/2,N=(f.arrow?.y??0)+v/2;let D="",w="";return y==="bottom"?(D=h?b:`${C}px`,w=`${-v}px`):y==="top"?(D=h?b:`${C}px`,w=`${s.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${N}px`):y==="left"&&(D=`${s.floating.width+v}px`,w=h?b:`${N}px`),{data:{x:D,y:w}}}});function yg(a){const[i,r="center"]=a.split("-");return[i,r]}var mE=dg,pE=mg,vE=pg,gE=gg,yE="Portal",xg=g.forwardRef((a,i)=>{const{container:r,...s}=a,[f,d]=g.useState(!1);yt(()=>d(!0),[]);const h=r||f&&globalThis?.document?.body;return h?p1.createPortal(u.jsx(Fe.div,{...s,ref:i}),h):null});xg.displayName=yE;var xE=fv[" useInsertionEffect ".trim().toString()]||yt;function av({prop:a,defaultProp:i,onChange:r=()=>{},caller:s}){const[f,d,h]=bE({defaultProp:i,onChange:r}),p=a!==void 0,v=p?a:f;{const S=g.useRef(a!==void 0);g.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${s} is changing from ${b?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=p},[p,s])}const y=g.useCallback(S=>{if(p){const b=SE(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function bE({defaultProp:a,onChange:i}){const[r,s]=g.useState(a),f=g.useRef(r),d=g.useRef(i);return xE(()=>{d.current=i},[i]),g.useEffect(()=>{f.current!==r&&(d.current?.(r),f.current=r)},[r,f]),[r,s,d]}function SE(a){return typeof a=="function"}function wE(a){const i=g.useRef({value:a,previous:a});return g.useMemo(()=>(i.current.value!==a&&(i.current.previous=i.current.value,i.current.value=a),i.current.previous),[a])}var bg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),EE="VisuallyHidden",CE=g.forwardRef((a,i)=>u.jsx(Fe.span,{...a,ref:i,style:{...bg,...a.style}}));CE.displayName=EE;var NE=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Sa=new WeakMap,go=new WeakMap,yo={},Cu=0,Sg=function(a){return a&&(a.host||Sg(a.parentNode))},jE=function(a,i){return i.map(function(r){if(a.contains(r))return r;var s=Sg(r);return s&&a.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",a,". Doing nothing"),null)}).filter(function(r){return!!r})},TE=function(a,i,r,s){var f=jE(i,Array.isArray(a)?a:[a]);yo[r]||(yo[r]=new WeakMap);var d=yo[r],h=[],p=new Set,v=new Set(f),y=function(b){!b||p.has(b)||(p.add(b),y(b.parentNode))};f.forEach(y);var S=function(b){!b||v.has(b)||Array.prototype.forEach.call(b.children,function(C){if(p.has(C))S(C);else try{var N=C.getAttribute(s),D=N!==null&&N!=="false",w=(Sa.get(C)||0)+1,j=(d.get(C)||0)+1;Sa.set(C,w),d.set(C,j),h.push(C),w===1&&D&&go.set(C,!0),j===1&&C.setAttribute(r,"true"),D||C.setAttribute(s,"true")}catch(R){console.error("aria-hidden: cannot operate on ",C,R)}})};return S(i),p.clear(),Cu++,function(){h.forEach(function(b){var C=Sa.get(b)-1,N=d.get(b)-1;Sa.set(b,C),d.set(b,N),C||(go.has(b)||b.removeAttribute(s),go.delete(b)),N||b.removeAttribute(r)}),Cu--,Cu||(Sa=new WeakMap,Sa=new WeakMap,go=new WeakMap,yo={})}},AE=function(a,i,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(a)?a:[a]),f=NE(a);return f?(s.push.apply(s,Array.from(f.querySelectorAll("[aria-live], script"))),TE(s,f,r,"aria-hidden")):function(){return null}},ln=function(){return ln=Object.assign||function(i){for(var r,s=1,f=arguments.length;s<f;s++){r=arguments[s];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])}return i},ln.apply(this,arguments)};function wg(a,i){var r={};for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.indexOf(s)<0&&(r[s]=a[s]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,s=Object.getOwnPropertySymbols(a);f<s.length;f++)i.indexOf(s[f])<0&&Object.prototype.propertyIsEnumerable.call(a,s[f])&&(r[s[f]]=a[s[f]]);return r}function RE(a,i,r){if(r||arguments.length===2)for(var s=0,f=i.length,d;s<f;s++)(d||!(s in i))&&(d||(d=Array.prototype.slice.call(i,0,s)),d[s]=i[s]);return a.concat(d||Array.prototype.slice.call(i))}var jo="right-scroll-bar-position",To="width-before-scroll-bar",OE="with-scroll-bars-hidden",zE="--removed-body-scroll-bar-size";function Nu(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function _E(a,i){var r=g.useState(function(){return{value:a,callback:i,facade:{get current(){return r.value},set current(s){var f=r.value;f!==s&&(r.value=s,r.callback(s,f))}}}})[0];return r.callback=i,r.facade}var DE=typeof window<"u"?g.useLayoutEffect:g.useEffect,iv=new WeakMap;function ME(a,i){var r=_E(null,function(s){return a.forEach(function(f){return Nu(f,s)})});return DE(function(){var s=iv.get(r);if(s){var f=new Set(s),d=new Set(a),h=r.current;f.forEach(function(p){d.has(p)||Nu(p,null)}),d.forEach(function(p){f.has(p)||Nu(p,h)})}iv.set(r,a)},[a]),r}function LE(a){return a}function UE(a,i){i===void 0&&(i=LE);var r=[],s=!1,f={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:a},useMedium:function(d){var h=i(d,s);return r.push(h),function(){r=r.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(s=!0;r.length;){var h=r;r=[],h.forEach(d)}r={push:function(p){return d(p)},filter:function(){return r}}},assignMedium:function(d){s=!0;var h=[];if(r.length){var p=r;r=[],p.forEach(d),h=r}var v=function(){var S=h;h=[],S.forEach(d)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(S){h.push(S),y()},filter:function(S){return h=h.filter(S),r}}}};return f}function HE(a){a===void 0&&(a={});var i=UE(null);return i.options=ln({async:!0,ssr:!1},a),i}var Eg=function(a){var i=a.sideCar,r=wg(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,ln({},r))};Eg.isSideCarExport=!0;function BE(a,i){return a.useMedium(i),Eg}var Cg=HE(),ju=function(){},qo=g.forwardRef(function(a,i){var r=g.useRef(null),s=g.useState({onScrollCapture:ju,onWheelCapture:ju,onTouchMoveCapture:ju}),f=s[0],d=s[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,N=a.noRelative,D=a.noIsolation,w=a.inert,j=a.allowPinchZoom,R=a.as,O=R===void 0?"div":R,M=a.gapMode,q=wg(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,J=ME([r,i]),Y=ln(ln({},q),f);return g.createElement(g.Fragment,null,S&&g.createElement(Q,{sideCar:Cg,removeScrollBar:y,shards:b,noRelative:N,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!j,lockRef:r,gapMode:M}),h?g.cloneElement(g.Children.only(p),ln(ln({},Y),{ref:J})):g.createElement(O,ln({},Y,{className:v,ref:J}),p))});qo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qo.classNames={fullWidth:To,zeroRight:jo};var kE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YE(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=kE();return i&&a.setAttribute("nonce",i),a}function qE(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function VE(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var XE=function(){var a=0,i=null;return{add:function(r){a==0&&(i=YE())&&(qE(i,r),VE(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},GE=function(){var a=XE();return function(i,r){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&r])}},Ng=function(){var a=GE(),i=function(r){var s=r.styles,f=r.dynamic;return a(s,f),null};return i},FE={left:0,top:0,right:0,gap:0},Tu=function(a){return parseInt(a||"",10)||0},KE=function(a){var i=window.getComputedStyle(document.body),r=i[a==="padding"?"paddingLeft":"marginLeft"],s=i[a==="padding"?"paddingTop":"marginTop"],f=i[a==="padding"?"paddingRight":"marginRight"];return[Tu(r),Tu(s),Tu(f)]},QE=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return FE;var i=KE(a),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-r+i[2]-i[0])}},ZE=Ng(),ja="data-scroll-locked",PE=function(a,i,r,s){var f=a.left,d=a.top,h=a.right,p=a.gap;return r===void 0&&(r="margin"),`
12
+ .`.concat(OE,` {
13
+ overflow: hidden `).concat(s,`;
14
+ padding-right: `).concat(p,"px ").concat(s,`;
15
+ }
16
+ body[`).concat(ja,`] {
17
+ overflow: hidden `).concat(s,`;
18
+ overscroll-behavior: contain;
19
+ `).concat([i&&"position: relative ".concat(s,";"),r==="margin"&&`
20
+ padding-left: `.concat(f,`px;
21
+ padding-top: `).concat(d,`px;
22
+ padding-right: `).concat(h,`px;
23
+ margin-left:0;
24
+ margin-top:0;
25
+ margin-right: `).concat(p,"px ").concat(s,`;
26
+ `),r==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
27
+ }
28
+
29
+ .`).concat(jo,` {
30
+ right: `).concat(p,"px ").concat(s,`;
31
+ }
32
+
33
+ .`).concat(To,` {
34
+ margin-right: `).concat(p,"px ").concat(s,`;
35
+ }
36
+
37
+ .`).concat(jo," .").concat(jo,` {
38
+ right: 0 `).concat(s,`;
39
+ }
40
+
41
+ .`).concat(To," .").concat(To,` {
42
+ margin-right: 0 `).concat(s,`;
43
+ }
44
+
45
+ body[`).concat(ja,`] {
46
+ `).concat(zE,": ").concat(p,`px;
47
+ }
48
+ `)},cv=function(){var a=parseInt(document.body.getAttribute(ja)||"0",10);return isFinite(a)?a:0},JE=function(){g.useEffect(function(){return document.body.setAttribute(ja,(cv()+1).toString()),function(){var a=cv()-1;a<=0?document.body.removeAttribute(ja):document.body.setAttribute(ja,a.toString())}},[])},WE=function(a){var i=a.noRelative,r=a.noImportant,s=a.gapMode,f=s===void 0?"margin":s;JE();var d=g.useMemo(function(){return QE(f)},[f]);return g.createElement(ZE,{styles:PE(d,!i,f,r?"":"!important")})},ku=!1;if(typeof window<"u")try{var xo=Object.defineProperty({},"passive",{get:function(){return ku=!0,!0}});window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch{ku=!1}var wa=ku?{passive:!1}:!1,IE=function(a){return a.tagName==="TEXTAREA"},jg=function(a,i){if(!(a instanceof Element))return!1;var r=window.getComputedStyle(a);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!IE(a)&&r[i]==="visible")},$E=function(a){return jg(a,"overflowY")},e2=function(a){return jg(a,"overflowX")},ov=function(a,i){var r=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var f=Tg(a,s);if(f){var d=Ag(a,s),h=d[1],p=d[2];if(h>p)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},t2=function(a){var i=a.scrollTop,r=a.scrollHeight,s=a.clientHeight;return[i,r,s]},n2=function(a){var i=a.scrollLeft,r=a.scrollWidth,s=a.clientWidth;return[i,r,s]},Tg=function(a,i){return a==="v"?$E(i):e2(i)},Ag=function(a,i){return a==="v"?t2(i):n2(i)},l2=function(a,i){return a==="h"&&i==="rtl"?-1:1},a2=function(a,i,r,s,f){var d=l2(a,window.getComputedStyle(i).direction),h=d*s,p=r.target,v=i.contains(p),y=!1,S=h>0,b=0,C=0;do{if(!p)break;var N=Ag(a,p),D=N[0],w=N[1],j=N[2],R=w-j-d*D;(D||R)&&Tg(a,p)&&(b+=R,C+=D);var O=p.parentNode;p=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!v&&p!==document.body||v&&(i.contains(p)||i===p));return(S&&Math.abs(b)<1||!S&&Math.abs(C)<1)&&(y=!0),y},bo=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},rv=function(a){return[a.deltaX,a.deltaY]},sv=function(a){return a&&"current"in a?a.current:a},i2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},c2=function(a){return`
49
+ .block-interactivity-`.concat(a,` {pointer-events: none;}
50
+ .allow-interactivity-`).concat(a,` {pointer-events: all;}
51
+ `)},o2=0,Ea=[];function r2(a){var i=g.useRef([]),r=g.useRef([0,0]),s=g.useRef(),f=g.useState(o2++)[0],d=g.useState(Ng)[0],h=g.useRef(a);g.useEffect(function(){h.current=a},[a]),g.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(f));var w=RE([a.lockRef.current],(a.shards||[]).map(sv),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var R=bo(w),O=r.current,M="deltaX"in w?w.deltaX:O[0]-R[0],q="deltaY"in w?w.deltaY:O[1]-R[1],Q,J=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&J.type==="range")return!1;var I=window.getSelection(),le=I&&I.anchorNode,re=le?le===J||le.contains(J):!1;if(re)return!1;var se=ov(Y,J);if(!se)return!0;if(se?Q=Y:(Q=Y==="v"?"h":"v",se=ov(Y,J)),!se)return!1;if(!s.current&&"changedTouches"in w&&(M||q)&&(s.current=Q),!Q)return!0;var W=s.current||Q;return a2(W,j,w,W==="h"?M:q)},[]),v=g.useCallback(function(w){var j=w;if(!(!Ea.length||Ea[Ea.length-1]!==d)){var R="deltaY"in j?rv(j):bo(j),O=i.current.filter(function(Q){return Q.name===j.type&&(Q.target===j.target||j.target===Q.shadowParent)&&i2(Q.delta,R)})[0];if(O&&O.should){j.cancelable&&j.preventDefault();return}if(!O){var M=(h.current.shards||[]).map(sv).filter(Boolean).filter(function(Q){return Q.contains(j.target)}),q=M.length>0?p(j,M[0]):!h.current.noIsolation;q&&j.cancelable&&j.preventDefault()}}},[]),y=g.useCallback(function(w,j,R,O){var M={name:w,delta:j,target:R,should:O,shadowParent:s2(R)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),S=g.useCallback(function(w){r.current=bo(w),s.current=void 0},[]),b=g.useCallback(function(w){y(w.type,rv(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,bo(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return Ea.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,wa),document.addEventListener("touchmove",v,wa),document.addEventListener("touchstart",S,wa),function(){Ea=Ea.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,wa),document.removeEventListener("touchmove",v,wa),document.removeEventListener("touchstart",S,wa)}},[]);var N=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:c2(f)}):null,N?g.createElement(WE,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function s2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const u2=BE(Cg,r2);var Rg=g.forwardRef(function(a,i){return g.createElement(qo,ln({},a,{ref:i,sideCar:u2}))});Rg.classNames=qo.classNames;var f2=[" ","Enter","ArrowUp","ArrowDown"],d2=[" ","Enter"],Ll="Select",[Vo,Xo,h2]=NS(Ll),[Ma]=$u(Ll,[h2,ug]),Go=ug(),[m2,fl]=Ma(Ll),[p2,v2]=Ma(Ll),Og=a=>{const{__scopeSelect:i,children:r,open:s,defaultOpen:f,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:N,form:D}=a,w=Go(i),[j,R]=g.useState(null),[O,M]=g.useState(null),[q,Q]=g.useState(!1),J=TS(y),[Y,I]=av({prop:s,defaultProp:f??!1,onChange:d,caller:Ll}),[le,re]=av({prop:h,defaultProp:p,onChange:v,caller:Ll}),se=g.useRef(null),W=j?D||!!j.closest("form"):!0,[ne,ee]=g.useState(new Set),ae=Array.from(ne).map(_=>_.props.value).join(";");return u.jsx(mE,{...w,children:u.jsxs(m2,{required:N,scope:i,trigger:j,onTriggerChange:R,valueNode:O,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:ef(),value:le,onValueChange:re,open:Y,onOpenChange:I,dir:J,triggerPointerDownPosRef:se,disabled:C,children:[u.jsx(Vo.Provider,{scope:i,children:u.jsx(p2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{ee(L=>new Set(L).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{ee(L=>{const X=new Set(L);return X.delete(_),X})},[]),children:r})}),W?u.jsxs(Wg,{"aria-hidden":!0,required:N,tabIndex:-1,name:S,autoComplete:b,value:le,onChange:_=>re(_.target.value),disabled:C,form:D,children:[le===void 0?u.jsx("option",{value:""}):null,Array.from(ne)]},ae):null]})})};Og.displayName=Ll;var zg="SelectTrigger",_g=g.forwardRef((a,i)=>{const{__scopeSelect:r,disabled:s=!1,...f}=a,d=Go(r),h=fl(zg,r),p=h.disabled||s,v=ct(i,h.onTriggerChange),y=Xo(r),S=g.useRef("touch"),[b,C,N]=$g(w=>{const j=y().filter(M=>!M.disabled),R=j.find(M=>M.value===h.value),O=ey(j,w,R);O!==void 0&&h.onValueChange(O.value)}),D=w=>{p||(h.onOpenChange(!0),N()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(pE,{asChild:!0,...d,children:u.jsx(Fe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":Ig(h.value)?"":void 0,...f,ref:v,onClick:Je(f.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:Je(f.onPointerDown,w=>{S.current=w.pointerType;const j=w.target;j.hasPointerCapture(w.pointerId)&&j.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:Je(f.onKeyDown,w=>{const j=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(j&&w.key===" ")&&f2.includes(w.key)&&(D(),w.preventDefault())})})})});_g.displayName=zg;var Dg="SelectValue",Mg=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:s,style:f,children:d,placeholder:h="",...p}=a,v=fl(Dg,r),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=ct(i,v.onValueNodeChange);return yt(()=>{y(S)},[y,S]),u.jsx(Fe.span,{...p,ref:b,style:{pointerEvents:"none"},children:Ig(v.value)?u.jsx(u.Fragment,{children:h}):d})});Mg.displayName=Dg;var g2="SelectIcon",Lg=g.forwardRef((a,i)=>{const{__scopeSelect:r,children:s,...f}=a;return u.jsx(Fe.span,{"aria-hidden":!0,...f,ref:i,children:s||"▼"})});Lg.displayName=g2;var y2="SelectPortal",Ug=a=>u.jsx(xg,{asChild:!0,...a});Ug.displayName=y2;var Ul="SelectContent",Hg=g.forwardRef((a,i)=>{const r=fl(Ul,a.__scopeSelect),[s,f]=g.useState();if(yt(()=>{f(new DocumentFragment)},[]),!r.open){const d=s;return d?Ki.createPortal(u.jsx(Bg,{scope:a.__scopeSelect,children:u.jsx(Vo.Slot,{scope:a.__scopeSelect,children:u.jsx("div",{children:a.children})})}),d):null}return u.jsx(kg,{...a,ref:i})});Hg.displayName=Ul;var Zt=10,[Bg,dl]=Ma(Ul),x2="SelectContentImpl",b2=Ro("SelectContent.RemoveScroll"),kg=g.forwardRef((a,i)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:j,...R}=a,O=fl(Ul,r),[M,q]=g.useState(null),[Q,J]=g.useState(null),Y=ct(i,P=>q(P)),[I,le]=g.useState(null),[re,se]=g.useState(null),W=Xo(r),[ne,ee]=g.useState(!1),ae=g.useRef(!1);g.useEffect(()=>{if(M)return AE(M)},[M]),BS();const _=g.useCallback(P=>{const[fe,...ge]=W().map(He=>He.ref.current),[je]=ge.slice(-1),Ae=document.activeElement;for(const He of P)if(He===Ae||(He?.scrollIntoView({block:"nearest"}),He===fe&&Q&&(Q.scrollTop=0),He===je&&Q&&(Q.scrollTop=Q.scrollHeight),He?.focus(),document.activeElement!==Ae))return},[W,Q]),L=g.useCallback(()=>_([I,M]),[_,I,M]);g.useEffect(()=>{ne&&L()},[ne,L]);const{onOpenChange:X,triggerPointerDownPosRef:ce}=O;g.useEffect(()=>{if(M){let P={x:0,y:0};const fe=je=>{P={x:Math.abs(Math.round(je.pageX)-(ce.current?.x??0)),y:Math.abs(Math.round(je.pageY)-(ce.current?.y??0))}},ge=je=>{P.x<=10&&P.y<=10?je.preventDefault():M.contains(je.target)||X(!1),document.removeEventListener("pointermove",fe),ce.current=null};return ce.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",ge,{capture:!0})}}},[M,X,ce]),g.useEffect(()=>{const P=()=>X(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[X]);const[me,T]=$g(P=>{const fe=W().filter(Ae=>!Ae.disabled),ge=fe.find(Ae=>Ae.ref.current===document.activeElement),je=ey(fe,P,ge);je&&setTimeout(()=>je.ref.current.focus())}),G=g.useCallback((P,fe,ge)=>{const je=!ae.current&&!ge;(O.value!==void 0&&O.value===fe||je)&&(le(P),je&&(ae.current=!0))},[O.value]),$=g.useCallback(()=>M?.focus(),[M]),te=g.useCallback((P,fe,ge)=>{const je=!ae.current&&!ge;(O.value!==void 0&&O.value===fe||je)&&se(P)},[O.value]),de=s==="popper"?Yu:Yg,Z=de===Yu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:j}:{};return u.jsx(Bg,{scope:r,content:M,viewport:Q,onViewportChange:J,itemRefCallback:G,selectedItem:I,onItemLeave:$,itemTextRefCallback:te,focusSelectedItem:L,selectedItemText:re,position:s,isPositioned:ne,searchRef:me,children:u.jsx(Rg,{as:b2,allowPinchZoom:!0,children:u.jsx(Pv,{asChild:!0,trapped:O.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:Je(f,P=>{O.trigger?.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(Qv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:u.jsx(de,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:P=>P.preventDefault(),...R,...Z,onPlaced:()=>ee(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:Je(R.onKeyDown,P=>{const fe=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!fe&&P.key.length===1&&T(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let je=W().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);if(["ArrowUp","End"].includes(P.key)&&(je=je.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const Ae=P.target,He=je.indexOf(Ae);je=je.slice(He+1)}setTimeout(()=>_(je)),P.preventDefault()}})})})})})})});kg.displayName=x2;var S2="SelectItemAlignedPosition",Yg=g.forwardRef((a,i)=>{const{__scopeSelect:r,onPlaced:s,...f}=a,d=fl(Ul,r),h=dl(Ul,r),[p,v]=g.useState(null),[y,S]=g.useState(null),b=ct(i,Y=>S(Y)),C=Xo(r),N=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:j,selectedItemText:R,focusSelectedItem:O}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&j&&R){const Y=d.trigger.getBoundingClientRect(),I=y.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),re=R.getBoundingClientRect();if(d.dir!=="rtl"){const Ae=re.left-I.left,He=le.left-Ae,rt=Y.left-He,st=Y.width+rt,hl=Math.max(st,I.width),ml=window.innerWidth-Zt,La=Bp(He,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.left=La+"px"}else{const Ae=I.right-re.right,He=window.innerWidth-le.right-Ae,rt=window.innerWidth-Y.right-He,st=Y.width+rt,hl=Math.max(st,I.width),ml=window.innerWidth-Zt,La=Bp(He,[Zt,Math.max(Zt,ml-hl)]);p.style.minWidth=st+"px",p.style.right=La+"px"}const se=C(),W=window.innerHeight-Zt*2,ne=w.scrollHeight,ee=window.getComputedStyle(y),ae=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),L=parseInt(ee.borderBottomWidth,10),X=parseInt(ee.paddingBottom,10),ce=ae+_+ne+X+L,me=Math.min(j.offsetHeight*5,ce),T=window.getComputedStyle(w),G=parseInt(T.paddingTop,10),$=parseInt(T.paddingBottom,10),te=Y.top+Y.height/2-Zt,de=W-te,Z=j.offsetHeight/2,P=j.offsetTop+Z,fe=ae+_+P,ge=ce-fe;if(fe<=te){const Ae=se.length>0&&j===se[se.length-1].ref.current;p.style.bottom="0px";const He=y.clientHeight-w.offsetTop-w.offsetHeight,rt=Math.max(de,Z+(Ae?$:0)+He+L),st=fe+rt;p.style.height=st+"px"}else{const Ae=se.length>0&&j===se[0].ref.current;p.style.top="0px";const rt=Math.max(te,ae+w.offsetTop+(Ae?G:0)+Z)+ge;p.style.height=rt+"px",w.scrollTop=fe-te+w.offsetTop}p.style.margin=`${Zt}px 0`,p.style.minHeight=me+"px",p.style.maxHeight=W+"px",s?.(),requestAnimationFrame(()=>N.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,j,R,d.dir,s]);yt(()=>M(),[M]);const[q,Q]=g.useState();yt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const J=g.useCallback(Y=>{Y&&D.current===!0&&(M(),O?.(),D.current=!1)},[M,O]);return u.jsx(E2,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:N,onScrollButtonChange:J,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:u.jsx(Fe.div,{...f,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...f.style}})})})});Yg.displayName=S2;var w2="SelectPopperPosition",Yu=g.forwardRef((a,i)=>{const{__scopeSelect:r,align:s="start",collisionPadding:f=Zt,...d}=a,h=Go(r);return u.jsx(vE,{...h,...d,ref:i,align:s,collisionPadding:f,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Yu.displayName=w2;var[E2,uf]=Ma(Ul,{}),qu="SelectViewport",qg=g.forwardRef((a,i)=>{const{__scopeSelect:r,nonce:s,...f}=a,d=dl(qu,r),h=uf(qu,r),p=ct(i,d.onViewportChange),v=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(Vo.Slot,{scope:r,children:u.jsx(Fe.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:Je(f.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const N=Math.abs(v.current-S.scrollTop);if(N>0){const D=window.innerHeight-Zt*2,w=parseFloat(b.style.minHeight),j=parseFloat(b.style.height),R=Math.max(w,j);if(R<D){const O=R+N,M=Math.min(D,O),q=O-M;b.style.height=M+"px",b.style.bottom==="0px"&&(S.scrollTop=q>0?q:0,b.style.justifyContent="flex-end")}}}v.current=S.scrollTop})})})]})});qg.displayName=qu;var Vg="SelectGroup",[C2,N2]=Ma(Vg),j2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a,f=ef();return u.jsx(C2,{scope:r,id:f,children:u.jsx(Fe.div,{role:"group","aria-labelledby":f,...s,ref:i})})});j2.displayName=Vg;var Xg="SelectLabel",Gg=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a,f=N2(Xg,r);return u.jsx(Fe.div,{id:f.id,...s,ref:i})});Gg.displayName=Xg;var Mo="SelectItem",[T2,Fg]=Ma(Mo),Kg=g.forwardRef((a,i)=>{const{__scopeSelect:r,value:s,disabled:f=!1,textValue:d,...h}=a,p=fl(Mo,r),v=dl(Mo,r),y=p.value===s,[S,b]=g.useState(d??""),[C,N]=g.useState(!1),D=ct(i,O=>v.itemRefCallback?.(O,s,f)),w=ef(),j=g.useRef("touch"),R=()=>{f||(p.onValueChange(s),p.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(T2,{scope:r,value:s,disabled:f,textId:w,isSelected:y,onItemTextChange:g.useCallback(O=>{b(M=>M||(O?.textContent??"").trim())},[]),children:u.jsx(Vo.ItemSlot,{scope:r,value:s,disabled:f,textValue:S,children:u.jsx(Fe.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...h,ref:D,onFocus:Je(h.onFocus,()=>N(!0)),onBlur:Je(h.onBlur,()=>N(!1)),onClick:Je(h.onClick,()=>{j.current!=="mouse"&&R()}),onPointerUp:Je(h.onPointerUp,()=>{j.current==="mouse"&&R()}),onPointerDown:Je(h.onPointerDown,O=>{j.current=O.pointerType}),onPointerMove:Je(h.onPointerMove,O=>{j.current=O.pointerType,f?v.onItemLeave?.():j.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(h.onPointerLeave,O=>{O.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:Je(h.onKeyDown,O=>{v.searchRef?.current!==""&&O.key===" "||(d2.includes(O.key)&&R(),O.key===" "&&O.preventDefault())})})})})});Kg.displayName=Mo;var Li="SelectItemText",Qg=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:s,style:f,...d}=a,h=fl(Li,r),p=dl(Li,r),v=Fg(Li,r),y=v2(Li,r),[S,b]=g.useState(null),C=ct(i,R=>b(R),v.onItemTextChange,R=>p.itemTextRefCallback?.(R,v.value,v.disabled)),N=S?.textContent,D=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:N},v.value),[v.disabled,v.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:j}=y;return yt(()=>(w(D),()=>j(D)),[w,j,D]),u.jsxs(u.Fragment,{children:[u.jsx(Fe.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Ki.createPortal(d.children,h.valueNode):null]})});Qg.displayName=Li;var Zg="SelectItemIndicator",Pg=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a;return Fg(Zg,r).isSelected?u.jsx(Fe.span,{"aria-hidden":!0,...s,ref:i}):null});Pg.displayName=Zg;var Vu="SelectScrollUpButton",A2=g.forwardRef((a,i)=>{const r=dl(Vu,a.__scopeSelect),s=uf(Vu,a.__scopeSelect),[f,d]=g.useState(!1),h=ct(i,s.onScrollButtonChange);return yt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const y=v.scrollTop>0;d(y)};const v=r.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),f?u.jsx(Jg,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});A2.displayName=Vu;var Xu="SelectScrollDownButton",R2=g.forwardRef((a,i)=>{const r=dl(Xu,a.__scopeSelect),s=uf(Xu,a.__scopeSelect),[f,d]=g.useState(!1),h=ct(i,s.onScrollButtonChange);return yt(()=>{if(r.viewport&&r.isPositioned){let p=function(){const y=v.scrollHeight-v.clientHeight,S=Math.ceil(v.scrollTop)<y;d(S)};const v=r.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),f?u.jsx(Jg,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});R2.displayName=Xu;var Jg=g.forwardRef((a,i)=>{const{__scopeSelect:r,onAutoScroll:s,...f}=a,d=dl("SelectScrollButton",r),h=g.useRef(null),p=Xo(r),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),yt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Fe.div,{"aria-hidden":!0,...f,ref:i,style:{flexShrink:0,...f.style},onPointerDown:Je(f.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(s,50))}),onPointerMove:Je(f.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(s,50))}),onPointerLeave:Je(f.onPointerLeave,()=>{v()})})}),O2="SelectSeparator",z2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a;return u.jsx(Fe.div,{"aria-hidden":!0,...s,ref:i})});z2.displayName=O2;var Gu="SelectArrow",_2=g.forwardRef((a,i)=>{const{__scopeSelect:r,...s}=a,f=Go(r),d=fl(Gu,r),h=dl(Gu,r);return d.open&&h.position==="popper"?u.jsx(gE,{...f,...s,ref:i}):null});_2.displayName=Gu;var D2="SelectBubbleInput",Wg=g.forwardRef(({__scopeSelect:a,value:i,...r},s)=>{const f=g.useRef(null),d=ct(s,f),h=wE(i);return g.useEffect(()=>{const p=f.current;if(!p)return;const v=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(v,"value").set;if(h!==i&&S){const b=new Event("change",{bubbles:!0});S.call(p,i),p.dispatchEvent(b)}},[h,i]),u.jsx(Fe.select,{...r,style:{...bg,...r.style},ref:d,defaultValue:i})});Wg.displayName=D2;function Ig(a){return a===""||a===void 0}function $g(a){const i=Dl(a),r=g.useRef(""),s=g.useRef(0),f=g.useCallback(h=>{const p=r.current+h;i(p),(function v(y){r.current=y,window.clearTimeout(s.current),y!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,f,d]}function ey(a,i,r){const f=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=r?a.indexOf(r):-1;let h=M2(a,Math.max(d,0));f.length===1&&(h=h.filter(y=>y!==r));const v=h.find(y=>y.textValue.toLowerCase().startsWith(f.toLowerCase()));return v!==r?v:void 0}function M2(a,i){return a.map((r,s)=>a[(i+s)%a.length])}var L2=Og,ty=_g,U2=Mg,H2=Lg,B2=Ug,ny=Hg,k2=qg,ly=Gg,ay=Kg,Y2=Qg,q2=Pg;const So=L2,wo=U2,Ui=g.forwardRef(({className:a,children:i,...r},s)=>u.jsxs(ty,{ref:s,className:Ie("flex h-9 items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background","placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a),...r,children:[i,u.jsx(H2,{asChild:!0,children:u.jsx(Mv,{className:"h-4 w-4 opacity-50"})})]}));Ui.displayName=ty.displayName;const Hi=g.forwardRef(({className:a,children:i,position:r="popper",...s},f)=>u.jsx(B2,{children:u.jsx(ny,{ref:f,className:Ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...s,children:u.jsx(k2,{className:Ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Hi.displayName=ny.displayName;const V2=g.forwardRef(({className:a,...i},r)=>u.jsx(ly,{ref:r,className:Ie("px-2 py-1.5 text-sm font-semibold",a),...i}));V2.displayName=ly.displayName;const Ot=g.forwardRef(({className:a,children:i,...r},s)=>u.jsxs(ay,{ref:s,className:Ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(q2,{children:u.jsx(rl,{className:"h-4 w-4"})})}),u.jsx(Y2,{children:i})]}));Ot.displayName=ay.displayName;const Pi="/api/admin";async function X2(){try{const a=await fetch(`${Pi}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function G2(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",r=await fetch(Pi+"/public-ip"+i);if(r.ok)return await r.json()}catch(i){console.error("Failed to get public ip check:",i)}return null}async function F2(a){try{return(await fetch(`${Pi}/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:a})})).ok}catch(i){return console.error("Failed to update admin config:",i),!1}}async function K2(){try{return(await fetch(`${Pi}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function Q2(){try{const a=await fetch(`${Pi}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const Z2=["XPOD_DEPLOY_MODE","CSS_ROOT_FILE_PATH","CSS_BASE_URL","XPOD_TUNNEL_PROVIDER","CLOUDFLARE_TUNNEL_TOKEN","SAKURA_TUNNEL_TOKEN","XPOD_HTTPS_MODE","XPOD_HTTPS_CERT_PATH","XPOD_HTTPS_KEY_PATH","CSS_PORT","CSS_SPARQL_ENDPOINT","CSS_IDENTITY_DB_URL","CSS_LOGGING_LEVEL","CSS_SHOW_STACK_TRACE"];function P2(){const[a,i]=g.useState({}),[r,s]=g.useState(null),[f,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,N]=g.useState(""),[D,w]=g.useState(!1),j=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",R=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",O=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=r?.status??"unknown",q=j==="local",J=!!a.XPOD_CLOUD_API_ENDPOINT,Y=q&&J;g.useEffect(()=>{le()},[]),g.useEffect(()=>{h||re(a.CSS_BASE_URL)},[a.CSS_BASE_URL,j,h]),g.useEffect(()=>{h||(Y?I():d(null))},[Y,h]);const I=async()=>{try{const L=await Q2();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},le=async()=>{try{const L=await X2();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},re=async L=>{b(!0);try{const X=await G2(L);s(X)}catch(X){console.error("Failed to refresh public ip check:",X),s(null)}finally{b(!1)}},se=async()=>{if(ae)return N(ae),!1;y(!0),N("");try{const L={};for(const ce of Z2)ce in a&&(L[ce]=a[ce]);const X=await F2(L);return N(X?"配置已保存,需要重启服务生效":"保存失败"),!!X}catch{return N("保存失败"),!1}finally{y(!1)}},W=async()=>{N("正在重启服务..."),await K2()?(N("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):N("重启失败")},ne=async()=>{await se()&&await W()},ee=(L,X)=>{i(ce=>({...ce,[L]:X}))},ae=g.useMemo(()=>{if(R==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(R==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&f?.mode==="tunnel"&&R==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const X=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&X&&R==="none"&&O==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[f?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,O,Y,j,R]),_=g.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?u.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):u.jsxs("div",{className:"p-8 max-w-4xl",children:[u.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"存储目录"})}),u.jsx(Mi,{className:"space-y-2",children:u.jsx(Rn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>ee("CSS_ROOT_FILE_PATH",L.target.value)})})]}),u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"访问地址"})}),u.jsxs(Mi,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:j,onValueChange:L=>ee("XPOD_DEPLOY_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"local",children:"边缘部署"}),u.jsx(Ot,{value:"standalone",children:"独立部署"})]})]}),Y?u.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:f?.fqdn||"(等待分配)"}):u.jsx(Rn,{className:"flex-1",value:a.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:L=>ee("CSS_BASE_URL",L.target.value),placeholder:"https://your-domain.com"})]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:j==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{className:"pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Di,{children:"隧道供应商"}),u.jsxs("span",{className:"text-sm",children:["外网:",u.jsx("span",{className:Ie("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),u.jsxs(Mi,{className:"space-y-2",children:[Y&&f?.mode==="tunnel"?u.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,j==="standalone"?u.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:R,onValueChange:L=>ee("XPOD_TUNNEL_PROVIDER",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"none",children:"不使用隧道"}),u.jsx(Ot,{value:"cloudflare",children:"Cloudflare"}),u.jsx(Ot,{value:"sakura_frp",children:"Sakura FRP"})]})]}),R==="cloudflare"&&u.jsx(Rn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>ee("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),R==="sakura_frp"&&u.jsx(Rn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>ee("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),j==="standalone"&&u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"https证书"})}),u.jsx(Mi,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(So,{value:O,onValueChange:L=>ee("XPOD_HTTPS_MODE",L),children:[u.jsx(Ui,{className:"w-36 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"none",children:"关闭"}),u.jsx(Ot,{value:"acme",children:"自动申请 (ACME)"}),u.jsx(Ot,{value:"manual",children:"手动证书"})]})]}),O==="manual"&&u.jsxs(u.Fragment,{children:[u.jsx(Rn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>ee("XPOD_HTTPS_CERT_PATH",L.target.value)}),u.jsx(Rn,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:L=>ee("XPOD_HTTPS_KEY_PATH",L.target.value)})]})]})})]}),u.jsx("div",{className:"mb-6",children:u.jsx(yu,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&u.jsxs(zi,{variant:"bordered",className:"mb-6",children:[u.jsx(_i,{children:u.jsx(Di,{children:"高级设置"})}),u.jsxs(Mi,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(po,{children:"端口"}),u.jsx(Rn,{value:a.CSS_PORT||"3000",onChange:L=>ee("CSS_PORT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"SPARQL 存储"}),u.jsx(Rn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>ee("CSS_SPARQL_ENDPOINT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"身份数据库"}),u.jsx(Rn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>ee("CSS_IDENTITY_DB_URL",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(po,{children:"日志级别"}),u.jsxs(So,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>ee("CSS_LOGGING_LEVEL",L),children:[u.jsx(Ui,{className:"w-40 shrink-0",children:u.jsx(wo,{})}),u.jsxs(Hi,{children:[u.jsx(Ot,{value:"error",children:"error"}),u.jsx(Ot,{value:"warn",children:"warn"}),u.jsx(Ot,{value:"info",children:"info"}),u.jsx(Ot,{value:"debug",children:"debug"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("input",{type:"checkbox",id:"showStackTrace",checked:a.CSS_SHOW_STACK_TRACE==="true",onChange:L=>ee("CSS_SHOW_STACK_TRACE",L.target.checked?"true":"false"),className:"rounded border-input"}),u.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(yu,{onClick:()=>{se()},disabled:v||!!ae,children:v?"保存中...":"保存配置"}),u.jsx(yu,{variant:"secondary",onClick:()=>{ne()},disabled:v||!!ae,children:"保存并重启"})]}),(C||ae)&&u.jsx("div",{className:Ie("mt-4 text-sm",ae||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||ae})]})}function J2(){const{isInitializing:a,initError:i}=It();return a?u.jsx(kv,{}):i?u.jsx(W1,{message:i}):u.jsxs(Db,{children:[u.jsx(Rt,{path:"/.account/",element:u.jsx(iS,{})}),u.jsx(Rt,{path:"/.account/about/",element:u.jsx(cS,{})}),u.jsx(Rt,{path:"/.account/account/",element:u.jsx(Op,{allowOidcPending:!0,children:u.jsx(oS,{})})}),u.jsx(Rt,{path:"/.account/settings/",element:u.jsx(Op,{allowOidcPending:!0,children:u.jsx(P2,{})})}),u.jsx(Rt,{path:"/chat/",element:u.jsx(yS,{})}),u.jsx(Rt,{path:"/.account/login/",element:u.jsx(fS,{})}),u.jsx(Rt,{path:"/.account/login/password/",element:u.jsx(Du,{initialIsRegister:!1})}),u.jsx(Rt,{path:"/.account/login/password/register/",element:u.jsx(Du,{initialIsRegister:!0})}),u.jsx(Rt,{path:"/.account/login/password/forgot/",element:u.jsx(sS,{})}),u.jsx(Rt,{path:"/.account/login/password/reset/",element:u.jsx(uS,{})}),u.jsx(Rt,{path:"/.account/oidc/consent/",element:u.jsx(rS,{})}),u.jsx(Rt,{path:"*",element:u.jsx(_n,{to:"/.account/",replace:!0})})]})}function W2(){return u.jsx(a1,{children:u.jsx(v1,{children:u.jsx(J2,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}Ux.createRoot(document.getElementById("root")).render(u.jsx(Pt.StrictMode,{children:u.jsx(W2,{})}));