@undefineds.co/xpod 0.2.42 → 0.2.44
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.
- package/dist/api/handlers/WebIdProfileHandler.js +9 -1
- package/dist/api/handlers/WebIdProfileHandler.js.map +1 -1
- package/dist/components/context.jsonld +45 -0
- package/dist/storage/quint/BaseQuintStore.jsonld +82 -0
- package/dist/storage/quint/PgQuintStore.d.ts +43 -3
- package/dist/storage/quint/PgQuintStore.js +596 -28
- package/dist/storage/quint/PgQuintStore.js.map +1 -1
- package/dist/storage/quint/PgQuintStore.jsonld +202 -0
- package/dist/storage/quint/SqliteQuintStore.jsonld +82 -0
- package/dist/storage/quint/index.d.ts +1 -0
- package/dist/storage/quint/index.js +1 -0
- package/dist/storage/quint/index.js.map +1 -1
- package/dist/storage/quint/types.d.ts +13 -0
- package/dist/storage/quint/types.js.map +1 -1
- package/dist/storage/quint/value-types.d.ts +32 -0
- package/dist/storage/quint/value-types.js +100 -0
- package/dist/storage/quint/value-types.js.map +1 -0
- package/package.json +1 -1
- package/static/app/assets/main.js +22 -22
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
function Vx(a,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const f in r)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(r,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>r[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"]'))r(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"&&r(h)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();function Nv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hu={exports:{}},zi={};var Np;function Xx(){if(Np)return zi;Np=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,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:r,key:h,ref:f!==void 0?f:null,props:d}}return zi.Fragment=i,zi.jsx=o,zi.jsxs=o,zi}var jp;function Gx(){return jp||(jp=1,hu.exports=Xx()),hu.exports}var u=Gx(),mu={exports:{}},ye={};var Tp;function Fx(){if(Tp)return ye;Tp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=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 j(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function z(N,G,Z){this.props=N,this.context=G,this.refs=T,this.updater=Z||D}z.prototype.isReactComponent={},z.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function R(){}R.prototype=z.prototype;function M(N,G,Z){this.props=N,this.context=G,this.refs=T,this.updater=Z||D}var q=M.prototype=new R;q.constructor=M,w(q,z.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function P(){}var Y={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function le(N,G,Z){var W=Z.ref;return{$$typeof:a,type:N,key:G,ref:W!==void 0?W:null,props:Z}}function se(N,G){return le(N.type,G,N.props)}function ue(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function $(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Z){return G[Z]})}var te=/\/+/g;function ee(N,G){return typeof N=="object"&&N!==null&&N.key!=null?$(""+N.key):G.toString(36)}function fe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(P,P):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,G,Z,W,oe){var he=typeof N;(he==="undefined"||he==="boolean")&&(N=null);var J=!1;if(N===null)J=!0;else switch(he){case"bigint":case"string":case"number":J=!0;break;case"object":switch(N.$$typeof){case a:case i:J=!0;break;case S:return J=N._init,_(J(N._payload),G,Z,W,oe)}}if(J)return oe=oe(N),J=W===""?"."+ee(N,0):W,Q(oe)?(Z="",J!=null&&(Z=J.replace(te,"$&/")+"/"),_(oe,G,Z,"",function(ie){return ie})):oe!=null&&(ue(oe)&&(oe=se(oe,Z+(oe.key==null||N&&N.key===oe.key?"":(""+oe.key).replace(te,"$&/")+"/")+J)),G.push(oe)),1;J=0;var me=W===""?".":W+":";if(Q(N))for(var I=0;I<N.length;I++)W=N[I],he=me+ee(W,I),J+=_(W,G,Z,he,oe);else if(I=j(N),typeof I=="function")for(N=I.call(N),I=0;!(W=N.next()).done;)W=W.value,he=me+ee(W,I++),J+=_(W,G,Z,he,oe);else if(he==="object"){if(typeof N.then=="function")return _(fe(N),G,Z,W,oe);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return J}function L(N,G,Z){if(N==null)return N;var W=[],oe=0;return _(N,W,"","",function(he){return G.call(Z,he,oe++)}),W}function V(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(Z){(N._status===0||N._status===-1)&&(N._status=1,N._result=Z)},function(Z){(N._status===0||N._status===-1)&&(N._status=2,N._result=Z)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var ae=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ve={map:L,forEach:function(N,G,Z){L(N,function(){G.apply(this,arguments)},Z)},count:function(N){var G=0;return L(N,function(){G++}),G},toArray:function(N){return L(N,function(G){return G})||[]},only:function(N){if(!ue(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ye.Activity=b,ye.Children=ve,ye.Component=z,ye.Fragment=o,ye.Profiler=f,ye.PureComponent=M,ye.StrictMode=r,ye.Suspense=v,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ye.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Y.H.useMemoCache(N)}},ye.cache=function(N){return function(){return N.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(N,G,Z){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=w({},N.props),oe=N.key;if(G!=null)for(he in G.key!==void 0&&(oe=""+G.key),G)!ne.call(G,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&G.ref===void 0||(W[he]=G[he]);var he=arguments.length-2;if(he===1)W.children=Z;else if(1<he){for(var J=Array(he),me=0;me<he;me++)J[me]=arguments[me+2];W.children=J}return le(N.type,oe,W)},ye.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},ye.createElement=function(N,G,Z){var W,oe={},he=null;if(G!=null)for(W in G.key!==void 0&&(he=""+G.key),G)ne.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(oe[W]=G[W]);var J=arguments.length-2;if(J===1)oe.children=Z;else if(1<J){for(var me=Array(J),I=0;I<J;I++)me[I]=arguments[I+2];oe.children=me}if(N&&N.defaultProps)for(W in J=N.defaultProps,J)oe[W]===void 0&&(oe[W]=J[W]);return le(N,he,oe)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(N){return{$$typeof:p,render:N}},ye.isValidElement=ue,ye.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:V}},ye.memo=function(N,G){return{$$typeof:y,type:N,compare:G===void 0?null:G}},ye.startTransition=function(N){var G=Y.T,Z={};Y.T=Z;try{var W=N(),oe=Y.S;oe!==null&&oe(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(P,ae)}catch(he){ae(he)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),Y.T=G}},ye.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ye.use=function(N){return Y.H.use(N)},ye.useActionState=function(N,G,Z){return Y.H.useActionState(N,G,Z)},ye.useCallback=function(N,G){return Y.H.useCallback(N,G)},ye.useContext=function(N){return Y.H.useContext(N)},ye.useDebugValue=function(){},ye.useDeferredValue=function(N,G){return Y.H.useDeferredValue(N,G)},ye.useEffect=function(N,G){return Y.H.useEffect(N,G)},ye.useEffectEvent=function(N){return Y.H.useEffectEvent(N)},ye.useId=function(){return Y.H.useId()},ye.useImperativeHandle=function(N,G,Z){return Y.H.useImperativeHandle(N,G,Z)},ye.useInsertionEffect=function(N,G){return Y.H.useInsertionEffect(N,G)},ye.useLayoutEffect=function(N,G){return Y.H.useLayoutEffect(N,G)},ye.useMemo=function(N,G){return Y.H.useMemo(N,G)},ye.useOptimistic=function(N,G){return Y.H.useOptimistic(N,G)},ye.useReducer=function(N,G,Z){return Y.H.useReducer(N,G,Z)},ye.useRef=function(N){return Y.H.useRef(N)},ye.useState=function(N){return Y.H.useState(N)},ye.useSyncExternalStore=function(N,G,Z){return Y.H.useSyncExternalStore(N,G,Z)},ye.useTransition=function(){return Y.H.useTransition()},ye.version="19.2.3",ye}var Ap;function ef(){return Ap||(Ap=1,mu.exports=Fx()),mu.exports}var g=ef();const It=Nv(g),jv=Vx({__proto__:null,default:It},[g]);var pu={exports:{}},Oi={},vu={exports:{}},gu={};var Rp;function Kx(){return Rp||(Rp=1,(function(a){function i(_,L){var V=_.length;_.push(L);e:for(;0<V;){var ae=V-1>>>1,ve=_[ae];if(0<f(ve,L))_[ae]=L,_[V]=ve,V=ae;else break e}}function o(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var L=_[0],V=_.pop();if(V!==L){_[0]=V;e:for(var ae=0,ve=_.length,N=ve>>>1;ae<N;){var G=2*(ae+1)-1,Z=_[G],W=G+1,oe=_[W];if(0>f(Z,V))W<ve&&0>f(oe,Z)?(_[ae]=oe,_[W]=V,ae=W):(_[ae]=Z,_[G]=V,ae=G);else if(W<ve&&0>f(oe,V))_[ae]=oe,_[W]=V,ae=W;else break e}}return L}function f(_,L){var V=_.sortIndex-L.sortIndex;return V!==0?V:_.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,j=!1,D=!1,w=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var L=o(y);L!==null;){if(L.callback===null)r(y);else if(L.startTime<=_)r(y),L.sortIndex=L.expirationTime,i(v,L);else break;L=o(y)}}function Q(_){if(w=!1,q(_),!D)if(o(v)!==null)D=!0,P||(P=!0,$());else{var L=o(y);L!==null&&fe(Q,L.startTime-_)}}var P=!1,Y=-1,ne=5,le=-1;function se(){return T?!0:!(a.unstable_now()-le<ne)}function ue(){if(T=!1,P){var _=a.unstable_now();le=_;var L=!0;try{e:{D=!1,w&&(w=!1,R(Y),Y=-1),j=!0;var V=C;try{t:{for(q(_),b=o(v);b!==null&&!(b.expirationTime>_&&se());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,C=b.priorityLevel;var ve=ae(b.expirationTime<=_);if(_=a.unstable_now(),typeof ve=="function"){b.callback=ve,q(_),L=!0;break t}b===o(v)&&r(v),q(_)}else r(v);b=o(v)}if(b!==null)L=!0;else{var N=o(y);N!==null&&fe(Q,N.startTime-_),L=!1}}break e}finally{b=null,C=V,j=!1}L=void 0}}finally{L?$():P=!1}}}var $;if(typeof M=="function")$=function(){M(ue)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ee=te.port2;te.port1.onmessage=ue,$=function(){ee.postMessage(null)}}else $=function(){z(ue,0)};function fe(_,L){Y=z(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"):ne=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 V=C;C=L;try{return _()}finally{C=V}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=C;C=_;try{return L()}finally{C=V}},a.unstable_scheduleCallback=function(_,L,V){var ae=a.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ae+V:ae):V=ae,_){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=V+ve,_={id:S++,callback:L,priorityLevel:_,startTime:V,expirationTime:ve,sortIndex:-1},V>ae?(_.sortIndex=V,i(y,_),o(v)===null&&_===o(y)&&(w?(R(Y),Y=-1):w=!0,fe(Q,V-ae))):(_.sortIndex=ve,i(v,_),D||j||(D=!0,P||(P=!0,$()))),_},a.unstable_shouldYield=se,a.unstable_wrapCallback=function(_){var L=C;return function(){var V=C;C=L;try{return _.apply(this,arguments)}finally{C=V}}}})(gu)),gu}var zp;function Qx(){return zp||(zp=1,vu.exports=Kx()),vu.exports}var yu={exports:{}},ft={};var Op;function Zx(){if(Op)return ft;Op=1;var a=ef();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 o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},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 ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ft.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)},ft.flushSync=function(v){var y=h.T,S=r.p;try{if(h.T=null,r.p=2,v)return v()}finally{h.T=y,r.p=S,r.d.f()}},ft.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(v,y))},ft.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ft.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,j=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?r.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:j}):S==="script"&&r.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:j,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ft.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);r.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&&r.d.M(v)},ft.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);r.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})}},ft.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);r.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 r.d.m(v)},ft.requestFormReset=function(v){r.d.r(v)},ft.unstable_batchedUpdates=function(v,y){return v(y)},ft.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},ft.useFormStatus=function(){return h.H.useHostTransitionStatus()},ft.version="19.2.3",ft}var _p;function Tv(){if(_p)return yu.exports;_p=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(),yu.exports=Zx(),yu.exports}var Dp;function Px(){if(Dp)return Oi;Dp=1;var a=Qx(),i=ef(),o=Tv();function r(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(r(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return v(c),e;if(s===l)return v(c),t;s=s.sibling}throw Error(r(188))}if(n.return!==l.return)n=c,l=s;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=s;break}if(x===l){m=!0,l=c,n=s;break}x=x.sibling}if(!m){for(x=s.child;x;){if(x===n){m=!0,n=s,l=c;break}if(x===l){m=!0,l=s,n=c;break}x=x.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(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"),j=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case z:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case P:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case R: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 ne:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var fe=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ae=[],ve=-1;function N(e){return{current:e}}function G(e){0>ve||(e.current=ae[ve],ae[ve]=null,ve--)}function Z(e,t){ve++,ae[ve]=e.current,e.current=t}var W=N(null),oe=N(null),he=N(null),J=N(null);function me(e,t){switch(Z(he,t),Z(oe,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zm(t),e=Pm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),Z(W,e)}function I(){G(W),G(oe),G(he)}function ie(e){e.memoizedState!==null&&Z(J,e);var t=W.current,n=Pm(t,e.type);t!==n&&(Z(oe,e),Z(W,n))}function ge(e){oe.current===e&&(G(W),G(oe)),J.current===e&&(G(J),ji._currentValue=V)}var Ne,Ye;function tt(e){if(Ne===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ne=t&&t[1]||"",Ye=-1<n.stack.indexOf(`
|
|
1
|
+
function Xx(a,i){for(var r=0;r<i.length;r++){const o=i[r];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in a)){const d=Object.getOwnPropertyDescriptor(o,u);d&&Object.defineProperty(a,u,d.get?d:{enumerable:!0,get:()=>o[u]})}}}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 u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function Nv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hu={exports:{}},zi={};var Np;function Gx(){if(Np)return zi;Np=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(o,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var p in u)p!=="key"&&(d[p]=u[p])}else d=u;return u=d.ref,{$$typeof:a,type:o,key:h,ref:u!==void 0?u:null,props:d}}return zi.Fragment=i,zi.jsx=r,zi.jsxs=r,zi}var jp;function Fx(){return jp||(jp=1,hu.exports=Gx()),hu.exports}var f=Fx(),mu={exports:{}},ye={};var Tp;function Kx(){if(Tp)return ye;Tp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=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 j(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function z(N,G,Z){this.props=N,this.context=G,this.refs=T,this.updater=Z||D}z.prototype.isReactComponent={},z.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,G,"setState")},z.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function R(){}R.prototype=z.prototype;function M(N,G,Z){this.props=N,this.context=G,this.refs=T,this.updater=Z||D}var q=M.prototype=new R;q.constructor=M,w(q,z.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function P(){}var Y={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function le(N,G,Z){var W=Z.ref;return{$$typeof:a,type:N,key:G,ref:W!==void 0?W:null,props:Z}}function se(N,G){return le(N.type,G,N.props)}function ue(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function $(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(Z){return G[Z]})}var te=/\/+/g;function ee(N,G){return typeof N=="object"&&N!==null&&N.key!=null?$(""+N.key):G.toString(36)}function fe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(P,P):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function _(N,G,Z,W,re){var he=typeof N;(he==="undefined"||he==="boolean")&&(N=null);var J=!1;if(N===null)J=!0;else switch(he){case"bigint":case"string":case"number":J=!0;break;case"object":switch(N.$$typeof){case a:case i:J=!0;break;case S:return J=N._init,_(J(N._payload),G,Z,W,re)}}if(J)return re=re(N),J=W===""?"."+ee(N,0):W,Q(re)?(Z="",J!=null&&(Z=J.replace(te,"$&/")+"/"),_(re,G,Z,"",function(ie){return ie})):re!=null&&(ue(re)&&(re=se(re,Z+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(te,"$&/")+"/")+J)),G.push(re)),1;J=0;var me=W===""?".":W+":";if(Q(N))for(var I=0;I<N.length;I++)W=N[I],he=me+ee(W,I),J+=_(W,G,Z,he,re);else if(I=j(N),typeof I=="function")for(N=I.call(N),I=0;!(W=N.next()).done;)W=W.value,he=me+ee(W,I++),J+=_(W,G,Z,he,re);else if(he==="object"){if(typeof N.then=="function")return _(fe(N),G,Z,W,re);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return J}function L(N,G,Z){if(N==null)return N;var W=[],re=0;return _(N,W,"","",function(he){return G.call(Z,he,re++)}),W}function V(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(Z){(N._status===0||N._status===-1)&&(N._status=1,N._result=Z)},function(Z){(N._status===0||N._status===-1)&&(N._status=2,N._result=Z)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var ae=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ve={map:L,forEach:function(N,G,Z){L(N,function(){G.apply(this,arguments)},Z)},count:function(N){var G=0;return L(N,function(){G++}),G},toArray:function(N){return L(N,function(G){return G})||[]},only:function(N){if(!ue(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ye.Activity=b,ye.Children=ve,ye.Component=z,ye.Fragment=r,ye.Profiler=u,ye.PureComponent=M,ye.StrictMode=o,ye.Suspense=v,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ye.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Y.H.useMemoCache(N)}},ye.cache=function(N){return function(){return N.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(N,G,Z){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=w({},N.props),re=N.key;if(G!=null)for(he in G.key!==void 0&&(re=""+G.key),G)!ne.call(G,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&G.ref===void 0||(W[he]=G[he]);var he=arguments.length-2;if(he===1)W.children=Z;else if(1<he){for(var J=Array(he),me=0;me<he;me++)J[me]=arguments[me+2];W.children=J}return le(N.type,re,W)},ye.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},ye.createElement=function(N,G,Z){var W,re={},he=null;if(G!=null)for(W in G.key!==void 0&&(he=""+G.key),G)ne.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(re[W]=G[W]);var J=arguments.length-2;if(J===1)re.children=Z;else if(1<J){for(var me=Array(J),I=0;I<J;I++)me[I]=arguments[I+2];re.children=me}if(N&&N.defaultProps)for(W in J=N.defaultProps,J)re[W]===void 0&&(re[W]=J[W]);return le(N,he,re)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(N){return{$$typeof:p,render:N}},ye.isValidElement=ue,ye.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:V}},ye.memo=function(N,G){return{$$typeof:y,type:N,compare:G===void 0?null:G}},ye.startTransition=function(N){var G=Y.T,Z={};Y.T=Z;try{var W=N(),re=Y.S;re!==null&&re(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(P,ae)}catch(he){ae(he)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),Y.T=G}},ye.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ye.use=function(N){return Y.H.use(N)},ye.useActionState=function(N,G,Z){return Y.H.useActionState(N,G,Z)},ye.useCallback=function(N,G){return Y.H.useCallback(N,G)},ye.useContext=function(N){return Y.H.useContext(N)},ye.useDebugValue=function(){},ye.useDeferredValue=function(N,G){return Y.H.useDeferredValue(N,G)},ye.useEffect=function(N,G){return Y.H.useEffect(N,G)},ye.useEffectEvent=function(N){return Y.H.useEffectEvent(N)},ye.useId=function(){return Y.H.useId()},ye.useImperativeHandle=function(N,G,Z){return Y.H.useImperativeHandle(N,G,Z)},ye.useInsertionEffect=function(N,G){return Y.H.useInsertionEffect(N,G)},ye.useLayoutEffect=function(N,G){return Y.H.useLayoutEffect(N,G)},ye.useMemo=function(N,G){return Y.H.useMemo(N,G)},ye.useOptimistic=function(N,G){return Y.H.useOptimistic(N,G)},ye.useReducer=function(N,G,Z){return Y.H.useReducer(N,G,Z)},ye.useRef=function(N){return Y.H.useRef(N)},ye.useState=function(N){return Y.H.useState(N)},ye.useSyncExternalStore=function(N,G,Z){return Y.H.useSyncExternalStore(N,G,Z)},ye.useTransition=function(){return Y.H.useTransition()},ye.version="19.2.3",ye}var Ap;function ef(){return Ap||(Ap=1,mu.exports=Kx()),mu.exports}var g=ef();const It=Nv(g),jv=Xx({__proto__:null,default:It},[g]);var pu={exports:{}},Oi={},vu={exports:{}},gu={};var Rp;function Qx(){return Rp||(Rp=1,(function(a){function i(_,L){var V=_.length;_.push(L);e:for(;0<V;){var ae=V-1>>>1,ve=_[ae];if(0<u(ve,L))_[ae]=L,_[V]=ve,V=ae;else break e}}function r(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var L=_[0],V=_.pop();if(V!==L){_[0]=V;e:for(var ae=0,ve=_.length,N=ve>>>1;ae<N;){var G=2*(ae+1)-1,Z=_[G],W=G+1,re=_[W];if(0>u(Z,V))W<ve&&0>u(re,Z)?(_[ae]=re,_[W]=V,ae=W):(_[ae]=Z,_[G]=V,ae=G);else if(W<ve&&0>u(re,V))_[ae]=re,_[W]=V,ae=W;else break e}}return L}function u(_,L){var V=_.sortIndex-L.sortIndex;return V!==0?V:_.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,j=!1,D=!1,w=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var L=r(y);L!==null;){if(L.callback===null)o(y);else if(L.startTime<=_)o(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,P||(P=!0,$());else{var L=r(y);L!==null&&fe(Q,L.startTime-_)}}var P=!1,Y=-1,ne=5,le=-1;function se(){return T?!0:!(a.unstable_now()-le<ne)}function ue(){if(T=!1,P){var _=a.unstable_now();le=_;var L=!0;try{e:{D=!1,w&&(w=!1,R(Y),Y=-1),j=!0;var V=C;try{t:{for(q(_),b=r(v);b!==null&&!(b.expirationTime>_&&se());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,C=b.priorityLevel;var ve=ae(b.expirationTime<=_);if(_=a.unstable_now(),typeof ve=="function"){b.callback=ve,q(_),L=!0;break t}b===r(v)&&o(v),q(_)}else o(v);b=r(v)}if(b!==null)L=!0;else{var N=r(y);N!==null&&fe(Q,N.startTime-_),L=!1}}break e}finally{b=null,C=V,j=!1}L=void 0}}finally{L?$():P=!1}}}var $;if(typeof M=="function")$=function(){M(ue)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ee=te.port2;te.port1.onmessage=ue,$=function(){ee.postMessage(null)}}else $=function(){z(ue,0)};function fe(_,L){Y=z(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"):ne=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 V=C;C=L;try{return _()}finally{C=V}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=C;C=_;try{return L()}finally{C=V}},a.unstable_scheduleCallback=function(_,L,V){var ae=a.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ae+V:ae):V=ae,_){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=V+ve,_={id:S++,callback:L,priorityLevel:_,startTime:V,expirationTime:ve,sortIndex:-1},V>ae?(_.sortIndex=V,i(y,_),r(v)===null&&_===r(y)&&(w?(R(Y),Y=-1):w=!0,fe(Q,V-ae))):(_.sortIndex=ve,i(v,_),D||j||(D=!0,P||(P=!0,$()))),_},a.unstable_shouldYield=se,a.unstable_wrapCallback=function(_){var L=C;return function(){var V=C;C=L;try{return _.apply(this,arguments)}finally{C=V}}}})(gu)),gu}var zp;function Zx(){return zp||(zp=1,vu.exports=Qx()),vu.exports}var yu={exports:{}},ft={};var Op;function Px(){if(Op)return ft;Op=1;var a=ef();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 o={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},u=Symbol.for("react.portal");function d(v,y,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,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 ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ft.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)},ft.flushSync=function(v){var y=h.T,S=o.p;try{if(h.T=null,o.p=2,v)return v()}finally{h.T=y,o.p=S,o.d.f()}},ft.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(v,y))},ft.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ft.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,j=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;S==="style"?o.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:j}):S==="script"&&o.d.X(v,{crossOrigin:b,integrity:C,fetchPriority:j,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ft.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);o.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&&o.d.M(v)},ft.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);o.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})}},ft.preloadModule=function(v,y){if(typeof v=="string")if(y){var S=p(y.as,y.crossOrigin);o.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 o.d.m(v)},ft.requestFormReset=function(v){o.d.r(v)},ft.unstable_batchedUpdates=function(v,y){return v(y)},ft.useFormState=function(v,y,S){return h.H.useFormState(v,y,S)},ft.useFormStatus=function(){return h.H.useHostTransitionStatus()},ft.version="19.2.3",ft}var _p;function Tv(){if(_p)return yu.exports;_p=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(),yu.exports=Px(),yu.exports}var Dp;function Jx(){if(Dp)return Oi;Dp=1;var a=Zx(),i=ef(),r=Tv();function o(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 u(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(o(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return v(c),e;if(s===l)return v(c),t;s=s.sibling}throw Error(o(188))}if(n.return!==l.return)n=c,l=s;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,l=s;break}if(x===l){m=!0,l=c,n=s;break}x=x.sibling}if(!m){for(x=s.child;x;){if(x===n){m=!0,n=s,l=c;break}if(x===l){m=!0,l=s,n=c;break}x=x.sibling}if(!m)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(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"),j=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),M=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case z:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case P:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case M:return e.displayName||"Context";case R: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 ne:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var fe=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,V={pending:!1,data:null,method:null,action:null},ae=[],ve=-1;function N(e){return{current:e}}function G(e){0>ve||(e.current=ae[ve],ae[ve]=null,ve--)}function Z(e,t){ve++,ae[ve]=e.current,e.current=t}var W=N(null),re=N(null),he=N(null),J=N(null);function me(e,t){switch(Z(he,t),Z(re,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zm(t),e=Pm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),Z(W,e)}function I(){G(W),G(re),G(he)}function ie(e){e.memoizedState!==null&&Z(J,e);var t=W.current,n=Pm(t,e.type);t!==n&&(Z(re,e),Z(W,n))}function ge(e){re.current===e&&(G(W),G(re)),J.current===e&&(G(J),ji._currentValue=V)}var Ne,Ye;function tt(e){if(Ne===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ne=t&&t[1]||"",Ye=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Ne+e+Ye}var pn=!1;function nt(e,t){if(!e||pn)return"";pn=!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 s=l.DetermineComponentFrameRoot(),m=s[0],x=s[1];if(m&&x){var E=m.split(`
|
|
4
4
|
`),H=x.split(`
|
|
5
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 X=`
|
|
6
6
|
`+E[l].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=l&&0<=c);break}}}finally{pn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tt(n):""}function tn(e,t){switch(e.tag){case 26:case 27:case 5:return tt(e.type);case 16:return tt("Lazy");case 13:return e.child!==t&&t!==null?tt("Suspense Fallback"):tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return tt("Activity");default:return""}}function Nf(e){try{var t="",n=null;do t+=tn(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var Wo=Object.prototype.hasOwnProperty,$o=a.unstable_scheduleCallback,er=a.unstable_cancelCallback,by=a.unstable_shouldYield,Sy=a.unstable_requestPaint,St=a.unstable_now,wy=a.unstable_getCurrentPriorityLevel,jf=a.unstable_ImmediatePriority,Tf=a.unstable_UserBlockingPriority,Ii=a.unstable_NormalPriority,Ey=a.unstable_LowPriority,Af=a.unstable_IdlePriority,Cy=a.log,Ny=a.unstable_setDisableYieldValue,Ba=null,wt=null;function Vn(e){if(typeof Cy=="function"&&Ny(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Ba,e)}catch{}}var Et=Math.clz32?Math.clz32:Ay,jy=Math.log,Ty=Math.LN2;function Ay(e){return e>>>=0,e===0?32:31-(jy(e)/Ty|0)|0}var Wi=256,$i=262144,ec=4194304;function yl(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 tc(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,s=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~s,l!==0?c=yl(l):(m&=x,m!==0?c=yl(m):n||(n=x&~e,n!==0&&(c=yl(n))))):(x=l&~s,x!==0?c=yl(x):m!==0?c=yl(m):n||(n=l&~e,n!==0&&(c=yl(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ry(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 Rf(){var e=ec;return ec<<=1,(ec&62914560)===0&&(ec=4194304),e}function tr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ya(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zy(e,t,n,l,c,s){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 X=31-Et(n),K=1<<X;x[X]=0,E[X]=-1;var B=H[X];if(B!==null)for(H[X]=null,X=0;X<B.length;X++){var k=B[X];k!==null&&(k.lane&=-536870913)}n&=~K}l!==0&&zf(e,l,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(m&~t))}function zf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Of(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Et(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function _f(e,t){var n=t&-t;return n=(n&42)!==0?1:nr(n),(n&(e.suspendedLanes|t))!==0?0:n}function nr(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 lr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Df(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:yp(e.type))}function Mf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Xn=Math.random().toString(36).slice(2),it="__reactFiber$"+Xn,ht="__reactProps$"+Xn,Yl="__reactContainer$"+Xn,ar="__reactEvents$"+Xn,Oy="__reactListeners$"+Xn,_y="__reactHandles$"+Xn,Lf="__reactResources$"+Xn,qa="__reactMarker$"+Xn;function ir(e){delete e[it],delete e[ht],delete e[ar],delete e[Oy],delete e[_y]}function ql(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yl]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=np(e);e!==null;){if(n=e[it])return n;e=np(e)}return t}e=n,n=e.parentNode}return null}function Vl(e){if(e=e[it]||e[Yl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Xl(e){var t=e[Lf];return t||(t=e[Lf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[qa]=!0}var Uf=new Set,Hf={};function xl(e,t){Gl(e,t),Gl(e+"Capture",t)}function Gl(e,t){for(Hf[e]=t,e=0;e<t.length;e++)Uf.add(t[e])}var Dy=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]*$"),Bf={},kf={};function My(e){return Wo.call(kf,e)?!0:Wo.call(Bf,e)?!1:Dy.test(e)?kf[e]=!0:(Bf[e]=!0,!1)}function nc(e,t,n){if(My(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 lc(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 vn(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 Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ly(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,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,s.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 cr(e){if(!e._valueTracker){var t=Yf(e)?"checked":"value";e._valueTracker=Ly(e,t,""+e[t])}}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Yf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ac(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 Uy=/[\n"\\]/g;function Bt(e){return e.replace(Uy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function or(e,t,n,l,c,s,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=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?rr(e,m,Ht(t)):n!=null?rr(e,m,Ht(n)):l!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Ht(x):e.removeAttribute("name")}function Vf(e,t,n,l,c,s,m,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){cr(e);return}n=n!=null?""+Ht(n):"",t=t!=null?""+Ht(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),cr(e)}function rr(e,t,n){t==="number"&&ac(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Fl(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=""+Ht(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 Xf(e,t,n){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ht(n):""}function Gf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(fe(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ht(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),cr(e)}function Kl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hy=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 Ff(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||Hy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Kf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(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&&Ff(e,c,l)}else for(var s in t)t.hasOwnProperty(s)&&Ff(e,s,t[s])}function sr(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 By=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"]]),ky=/^[\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 ic(e){return ky.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function gn(){}var ur=null;function fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ql=null,Zl=null;function Qf(e){var t=Vl(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(or(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="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[ht]||null;if(!c)throw Error(r(90));or(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&&qf(l)}break e;case"textarea":Xf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Fl(e,!!n.multiple,t,!1)}}}var dr=!1;function Zf(e,t,n){if(dr)return e(t,n);dr=!0;try{var l=e(t);return l}finally{if(dr=!1,(Ql!==null||Zl!==null)&&(Kc(),Ql&&(t=Ql,e=Zl,Zl=Ql=null,Qf(t),e)))for(t=0;t<e.length;t++)Qf(e[t])}}function Xa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ht]||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(r(231,t,typeof n));return n}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hr=!1;if(yn)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){hr=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{hr=!1}var Gn=null,mr=null,cc=null;function Pf(){if(cc)return cc;var e,t=mr,n=t.length,l,c="value"in Gn?Gn.value:Gn.textContent,s=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[s-l];l++);return cc=c.slice(e,1<l?1-l:void 0)}function oc(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 rc(){return!0}function Jf(){return!1}function mt(e){function t(n,l,c,s,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=s,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?rc:Jf,this.isPropagationStopped=Jf,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=rc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=rc)},persist:function(){},isPersistent:rc}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sc=mt(bl),Fa=b({},bl,{view:0,detail:0}),Yy=mt(Fa),pr,vr,Ka,uc=b({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yr,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!==Ka&&(Ka&&e.type==="mousemove"?(pr=e.screenX-Ka.screenX,vr=e.screenY-Ka.screenY):vr=pr=0,Ka=e),pr)},movementY:function(e){return"movementY"in e?e.movementY:vr}}),If=mt(uc),qy=b({},uc,{dataTransfer:0}),Vy=mt(qy),Xy=b({},Fa,{relatedTarget:0}),gr=mt(Xy),Gy=b({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Fy=mt(Gy),Ky=b({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qy=mt(Ky),Zy=b({},bl,{data:0}),Wf=mt(Zy),Py={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jy={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"},Iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iy[e])?!!t[e]:!1}function yr(){return Wy}var $y=b({},Fa,{key:function(e){if(e.key){var t=Py[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yr,charCode:function(e){return e.type==="keypress"?oc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e0=mt($y),t0=b({},uc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=mt(t0),n0=b({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yr}),l0=mt(n0),a0=b({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),i0=mt(a0),c0=b({},uc,{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}),o0=mt(c0),r0=b({},bl,{newState:0,oldState:0}),s0=mt(r0),u0=[9,13,27,32],xr=yn&&"CompositionEvent"in window,Qa=null;yn&&"documentMode"in document&&(Qa=document.documentMode);var f0=yn&&"TextEvent"in window&&!Qa,ed=yn&&(!xr||Qa&&8<Qa&&11>=Qa),td=" ",nd=!1;function ld(e,t){switch(e){case"keyup":return u0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function d0(e,t){switch(e){case"compositionend":return ad(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function h0(e,t){if(Pl)return e==="compositionend"||!xr&&ld(e,t)?(e=Pf(),cc=mr=Gn=null,Pl=!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 ed&&t.locale!=="ko"?null:t.data;default:return null}}var m0={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 id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!m0[e.type]:t==="textarea"}function cd(e,t,n,l){Ql?Zl?Zl.push(l):Zl=[l]:Ql=l,t=$c(t,"onChange"),0<t.length&&(n=new sc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Za=null,Pa=null;function p0(e){Vm(e,0)}function fc(e){var t=Va(e);if(qf(t))return e}function od(e,t){if(e==="change")return t}var rd=!1;if(yn){var br;if(yn){var Sr="oninput"in document;if(!Sr){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),Sr=typeof sd.oninput=="function"}br=Sr}else br=!1;rd=br&&(!document.documentMode||9<document.documentMode)}function ud(){Za&&(Za.detachEvent("onpropertychange",fd),Pa=Za=null)}function fd(e){if(e.propertyName==="value"&&fc(Pa)){var t=[];cd(t,Pa,e,fr(e)),Zf(p0,t)}}function v0(e,t,n){e==="focusin"?(ud(),Za=t,Pa=n,Za.attachEvent("onpropertychange",fd)):e==="focusout"&&ud()}function g0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fc(Pa)}function y0(e,t){if(e==="click")return fc(t)}function x0(e,t){if(e==="input"||e==="change")return fc(t)}function b0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:b0;function Ja(e,t){if(Ct(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(!Wo.call(t,c)||!Ct(e[c],t[c]))return!1}return!0}function dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hd(e,t){var n=dd(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=dd(n)}}function md(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?md(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ac(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=ac(e.document)}return t}function wr(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 S0=yn&&"documentMode"in document&&11>=document.documentMode,Jl=null,Er=null,Ia=null,Cr=!1;function vd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cr||Jl==null||Jl!==ac(l)||(l=Jl,"selectionStart"in l&&wr(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}),Ia&&Ja(Ia,l)||(Ia=l,l=$c(Er,"onSelect"),0<l.length&&(t=new sc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Jl)))}function Sl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Il={animationend:Sl("Animation","AnimationEnd"),animationiteration:Sl("Animation","AnimationIteration"),animationstart:Sl("Animation","AnimationStart"),transitionrun:Sl("Transition","TransitionRun"),transitionstart:Sl("Transition","TransitionStart"),transitioncancel:Sl("Transition","TransitionCancel"),transitionend:Sl("Transition","TransitionEnd")},Nr={},gd={};yn&&(gd=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function wl(e){if(Nr[e])return Nr[e];if(!Il[e])return e;var t=Il[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gd)return Nr[e]=t[n];return e}var yd=wl("animationend"),xd=wl("animationiteration"),bd=wl("animationstart"),w0=wl("transitionrun"),E0=wl("transitionstart"),C0=wl("transitioncancel"),Sd=wl("transitionend"),wd=new Map,jr="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(" ");jr.push("scrollEnd");function Qt(e,t){wd.set(e,t),xl(t,[e])}var dc=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)},kt=[],Wl=0,Tr=0;function hc(){for(var e=Wl,t=Tr=Wl=0;t<e;){var n=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var c=kt[t];kt[t++]=null;var s=kt[t];if(kt[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}s!==0&&Ed(n,c,s)}}function mc(e,t,n,l){kt[Wl++]=e,kt[Wl++]=t,kt[Wl++]=n,kt[Wl++]=l,Tr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ar(e,t,n,l){return mc(e,t,n,l),pc(e)}function El(e,t){return mc(e,null,null,t),pc(e)}function Ed(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-Et(n),e=s.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),s):null}function pc(e){if(50<xi)throw xi=0,Hs=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function N0(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 Nt(e,t,n,l){return new N0(e,t,n,l)}function Rr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var n=e.alternate;return n===null?(n=Nt(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 Cd(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 vc(e,t,n,l,c,s){var m=0;if(l=e,typeof e=="function")Rr(e)&&(m=1);else if(typeof e=="string")m=zx(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Nt(31,n,t,c),e.elementType=le,e.lanes=s,e;case w:return Cl(n.children,c,s,t);case T:m=8,c|=24;break;case z:return e=Nt(12,n,t,c|2),e.elementType=z,e.lanes=s,e;case Q:return e=Nt(13,n,t,c),e.elementType=Q,e.lanes=s,e;case P:return e=Nt(19,n,t,c),e.elementType=P,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case R:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case ne:m=16,l=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Nt(m,n,t,c),t.elementType=e,t.type=l,t.lanes=s,t}function Cl(e,t,n,l){return e=Nt(7,e,l,t),e.lanes=n,e}function zr(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Nd(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function Or(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jd=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var n=jd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nf(t)},jd.set(e,t),t)}return{value:e,source:t,stack:Nf(t)}}var ea=[],ta=0,gc=null,Wa=0,qt=[],Vt=0,Fn=null,nn=1,ln="";function bn(e,t){ea[ta++]=Wa,ea[ta++]=gc,gc=e,Wa=t}function Td(e,t,n){qt[Vt++]=nn,qt[Vt++]=ln,qt[Vt++]=Fn,Fn=e;var l=nn;e=ln;var c=32-Et(l)-1;l&=~(1<<c),n+=1;var s=32-Et(t)+c;if(30<s){var m=c-c%5;s=(l&(1<<m)-1).toString(32),l>>=m,c-=m,nn=1<<32-Et(t)+c|n<<c|l,ln=s+e}else nn=1<<s|n<<c|l,ln=e}function _r(e){e.return!==null&&(bn(e,1),Td(e,1,0))}function Dr(e){for(;e===gc;)gc=ea[--ta],ea[ta]=null,Wa=ea[--ta],ea[ta]=null;for(;e===Fn;)Fn=qt[--Vt],qt[Vt]=null,ln=qt[--Vt],qt[Vt]=null,nn=qt[--Vt],qt[Vt]=null}function Ad(e,t){qt[Vt++]=nn,qt[Vt++]=ln,qt[Vt++]=Fn,nn=t.id,ln=t.overflow,Fn=e}var ct=null,Ue=null,je=!1,Kn=null,Xt=!1,Mr=Error(r(519));function Qn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $a(Yt(t,e)),Mr}function Rd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[it]=e,t[ht]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Si.length;n++)we(Si[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Vf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Gf(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||Km(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||Qn(e,!0)}function zd(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ct=ct.return}}function na(e){if(e!==ct)return!1;if(!je)return zd(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ws(e.type,e.memoizedProps)),n=!n),n&&Ue&&Qn(e),zd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=tp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ue=tp(e)}else t===27?(t=Ue,ol(e.type)?(e=lu,lu=null,Ue=e):Ue=t):Ue=ct?Ft(e.stateNode.nextSibling):null;return!0}function Nl(){Ue=ct=null,je=!1}function Lr(){var e=Kn;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Kn=null),e}function $a(e){Kn===null?Kn=[e]:Kn.push(e)}var Ur=N(null),jl=null,Sn=null;function Zn(e,t,n){Z(Ur,t._currentValue),t._currentValue=n}function wn(e){e._currentValue=Ur.current,G(Ur)}function Hr(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 Br(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var m=c.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){s.lanes|=n,x=s.alternate,x!==null&&(x.lanes|=n),Hr(s.return,n,e),l||(m=null);break e}s=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(r(341));m.lanes|=n,s=m.alternate,s!==null&&(s.lanes|=n),Hr(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 la(e,t,n,l){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=c.type;Ct(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===J.current){if(m=c.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ji):e=[ji])}c=c.return}e!==null&&Br(t,e,n,l),t.flags|=262144}function yc(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){jl=e,Sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Od(jl,e)}function xc(e,t){return jl===null&&Tl(e),Od(e,t)}function Od(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sn===null){if(e===null)throw Error(r(308));Sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sn=Sn.next=t;return n}var j0=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()})}},T0=a.unstable_scheduleCallback,A0=a.unstable_NormalPriority,Ze={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kr(){return{controller:new j0,data:new Map,refCount:0}}function ei(e){e.refCount--,e.refCount===0&&T0(A0,function(){e.controller.abort()})}var ti=null,Yr=0,aa=0,ia=null;function R0(e,t){if(ti===null){var n=ti=[];Yr=0,aa=Xs(),ia={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Yr++,t.then(_d,_d),t}function _d(){if(--Yr===0&&ti!==null){ia!==null&&(ia.status="fulfilled");var e=ti;ti=null,aa=0,ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function z0(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 Dd=_.S;_.S=function(e,t){vm=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&R0(e,t),Dd!==null&&Dd(e,t)};var Al=N(null);function qr(){var e=Al.current;return e!==null?e:Le.pooledCache}function bc(e,t){t===null?Z(Al,Al.current):Z(Al,t.pool)}function Md(){var e=qr();return e===null?null:{parent:Ze._currentValue,pool:e}}var ca=Error(r(460)),Vr=Error(r(474)),Sc=Error(r(542)),wc={then:function(){}};function Ld(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ud(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bd(e),e;default:if(typeof t.status=="string")t.then(gn,gn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,Bd(e),e}throw zl=t,ca}}function Rl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(zl=n,ca):n}}var zl=null;function Hd(){if(zl===null)throw Error(r(459));var e=zl;return zl=null,e}function Bd(e){if(e===ca||e===Sc)throw Error(r(483))}var oa=null,ni=0;function Ec(e){var t=ni;return ni+=1,oa===null&&(oa=[]),Ud(oa,e,t)}function li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Cc(e,t){throw t.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kd(e){function t(O,A){if(e){var U=O.deletions;U===null?(O.deletions=[A],O.flags|=16):U.push(A)}}function n(O,A){if(!e)return null;for(;A!==null;)t(O,A),A=A.sibling;return null}function l(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function c(O,A){return O=xn(O,A),O.index=0,O.sibling=null,O}function s(O,A,U){return O.index=U,e?(U=O.alternate,U!==null?(U=U.index,U<A?(O.flags|=67108866,A):U):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function m(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,A,U,F){return A===null||A.tag!==6?(A=zr(U,O.mode,F),A.return=O,A):(A=c(A,U),A.return=O,A)}function E(O,A,U,F){var de=U.type;return de===w?X(O,A,U.props.children,F,U.key):A!==null&&(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&Rl(de)===A.type)?(A=c(A,U.props),li(A,U),A.return=O,A):(A=vc(U.type,U.key,U.props,null,O.mode,F),li(A,U),A.return=O,A)}function H(O,A,U,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Or(U,O.mode,F),A.return=O,A):(A=c(A,U.children||[]),A.return=O,A)}function X(O,A,U,F,de){return A===null||A.tag!==7?(A=Cl(U,O.mode,F,de),A.return=O,A):(A=c(A,U),A.return=O,A)}function K(O,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=zr(""+A,O.mode,U),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return U=vc(A.type,A.key,A.props,null,O.mode,U),li(U,A),U.return=O,U;case D:return A=Or(A,O.mode,U),A.return=O,A;case ne:return A=Rl(A),K(O,A,U)}if(fe(A)||$(A))return A=Cl(A,O.mode,U,null),A.return=O,A;if(typeof A.then=="function")return K(O,Ec(A),U);if(A.$$typeof===M)return K(O,xc(O,A),U);Cc(O,A)}return null}function B(O,A,U,F){var de=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return de!==null?null:x(O,A,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return U.key===de?E(O,A,U,F):null;case D:return U.key===de?H(O,A,U,F):null;case ne:return U=Rl(U),B(O,A,U,F)}if(fe(U)||$(U))return de!==null?null:X(O,A,U,F,null);if(typeof U.then=="function")return B(O,A,Ec(U),F);if(U.$$typeof===M)return B(O,A,xc(O,U),F);Cc(O,U)}return null}function k(O,A,U,F,de){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(U)||null,x(A,O,""+F,de);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case j:return O=O.get(F.key===null?U:F.key)||null,E(A,O,F,de);case D:return O=O.get(F.key===null?U:F.key)||null,H(A,O,F,de);case ne:return F=Rl(F),k(O,A,U,F,de)}if(fe(F)||$(F))return O=O.get(U)||null,X(A,O,F,de,null);if(typeof F.then=="function")return k(O,A,U,Ec(F),de);if(F.$$typeof===M)return k(O,A,U,xc(A,F),de);Cc(A,F)}return null}function ce(O,A,U,F){for(var de=null,Te=null,re=A,be=A=0,Ce=null;re!==null&&be<U.length;be++){re.index>be?(Ce=re,re=null):Ce=re.sibling;var Ae=B(O,re,U[be],F);if(Ae===null){re===null&&(re=Ce);break}e&&re&&Ae.alternate===null&&t(O,re),A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae,re=Ce}if(be===U.length)return n(O,re),je&&bn(O,be),de;if(re===null){for(;be<U.length;be++)re=K(O,U[be],F),re!==null&&(A=s(re,A,be),Te===null?de=re:Te.sibling=re,Te=re);return je&&bn(O,be),de}for(re=l(re);be<U.length;be++)Ce=k(re,O,be,U[be],F),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?be:Ce.key),A=s(Ce,A,be),Te===null?de=Ce:Te.sibling=Ce,Te=Ce);return e&&re.forEach(function(dl){return t(O,dl)}),je&&bn(O,be),de}function pe(O,A,U,F){if(U==null)throw Error(r(151));for(var de=null,Te=null,re=A,be=A=0,Ce=null,Ae=U.next();re!==null&&!Ae.done;be++,Ae=U.next()){re.index>be?(Ce=re,re=null):Ce=re.sibling;var dl=B(O,re,Ae.value,F);if(dl===null){re===null&&(re=Ce);break}e&&re&&dl.alternate===null&&t(O,re),A=s(dl,A,be),Te===null?de=dl:Te.sibling=dl,Te=dl,re=Ce}if(Ae.done)return n(O,re),je&&bn(O,be),de;if(re===null){for(;!Ae.done;be++,Ae=U.next())Ae=K(O,Ae.value,F),Ae!==null&&(A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae);return je&&bn(O,be),de}for(re=l(re);!Ae.done;be++,Ae=U.next())Ae=k(re,O,be,Ae.value,F),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?be:Ae.key),A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae);return e&&re.forEach(function(qx){return t(O,qx)}),je&&bn(O,be),de}function Me(O,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 j:e:{for(var de=U.key;A!==null;){if(A.key===de){if(de=U.type,de===w){if(A.tag===7){n(O,A.sibling),F=c(A,U.props.children),F.return=O,O=F;break e}}else if(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&Rl(de)===A.type){n(O,A.sibling),F=c(A,U.props),li(F,U),F.return=O,O=F;break e}n(O,A);break}else t(O,A);A=A.sibling}U.type===w?(F=Cl(U.props.children,O.mode,F,U.key),F.return=O,O=F):(F=vc(U.type,U.key,U.props,null,O.mode,F),li(F,U),F.return=O,O=F)}return m(O);case D:e:{for(de=U.key;A!==null;){if(A.key===de)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(O,A.sibling),F=c(A,U.children||[]),F.return=O,O=F;break e}else{n(O,A);break}else t(O,A);A=A.sibling}F=Or(U,O.mode,F),F.return=O,O=F}return m(O);case ne:return U=Rl(U),Me(O,A,U,F)}if(fe(U))return ce(O,A,U,F);if($(U)){if(de=$(U),typeof de!="function")throw Error(r(150));return U=de.call(U),pe(O,A,U,F)}if(typeof U.then=="function")return Me(O,A,Ec(U),F);if(U.$$typeof===M)return Me(O,A,xc(O,U),F);Cc(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(O,A.sibling),F=c(A,U),F.return=O,O=F):(n(O,A),F=zr(U,O.mode,F),F.return=O,O=F),m(O)):n(O,A)}return function(O,A,U,F){try{ni=0;var de=Me(O,A,U,F);return oa=null,de}catch(re){if(re===ca||re===Sc)throw re;var Te=Nt(29,re,null,O.mode);return Te.lanes=F,Te.return=O,Te}}}var Ol=kd(!0),Yd=kd(!1),Pn=!1;function Xr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gr(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 Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=pc(e),Ed(e,null,n),t}return mc(e,l,t,n),pc(e)}function ai(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,Of(e,n)}}function Fr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=m:s=s.next=m,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:s,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 ii(){if(Kr){var e=ia;if(e!==null)throw e}}function ci(e,t,n,l){Kr=!1;var c=e.updateQueue;Pn=!1;var s=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?s=H:m.next=H,m=E;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==m&&(x===null?X.firstBaseUpdate=H:x.next=H,X.lastBaseUpdate=E))}if(s!==null){var K=c.baseState;m=0,X=H=E=null,x=s;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Ee&B)===B:(l&B)===B){B!==0&&B===aa&&(Kr=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ce=e,pe=x;B=t;var Me=n;switch(pe.tag){case 1:if(ce=pe.payload,typeof ce=="function"){K=ce.call(Me,K,B);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=pe.payload,B=typeof ce=="function"?ce.call(Me,K,B):ce,B==null)break e;K=b({},K,B);break e;case 2:Pn=!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},X===null?(H=X=k,E=K):X=X.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);X===null&&(E=K),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=X,s===null&&(c.shared.lanes=0),nl|=m,e.lanes=m,e.memoizedState=K}}function qd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Vd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qd(n[e],t)}var ra=N(null),Nc=N(0);function Xd(e,t){e=On,Z(Nc,e),Z(ra,t),On=e|t.baseLanes}function Qr(){Z(Nc,On),Z(ra,ra.current)}function Zr(){On=Nc.current,G(ra),G(Nc)}var jt=N(null),Gt=null;function Wn(e){var t=e.alternate;Z(Ge,Ge.current&1),Z(jt,e),Gt===null&&(t===null||ra.current!==null||t.memoizedState!==null)&&(Gt=e)}function Pr(e){Z(Ge,Ge.current),Z(jt,e),Gt===null&&(Gt=e)}function Gd(e){e.tag===22?(Z(Ge,Ge.current),Z(jt,e),Gt===null&&(Gt=e)):$n()}function $n(){Z(Ge,Ge.current),Z(jt,jt.current)}function Tt(e){G(jt),Gt===e&&(Gt=null),G(Ge)}var Ge=N(0);function jc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||tu(n)||nu(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 En=0,xe=null,_e=null,Pe=null,Tc=!1,sa=!1,_l=!1,Ac=0,oi=0,ua=null,O0=0;function qe(){throw Error(r(321))}function Jr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function Ir(e,t,n,l,c,s){return En=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Th:ds,_l=!1,s=n(l,c),_l=!1,sa&&(s=Kd(t,n,l,c)),Fd(e),s}function Fd(e){_.H=ui;var t=_e!==null&&_e.next!==null;if(En=0,Pe=_e=xe=null,Tc=!1,oi=0,ua=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&yc(e)&&(Je=!0))}function Kd(e,t,n,l){xe=e;var c=0;do{if(sa&&(ua=null),oi=0,sa=!1,25<=c)throw Error(r(301));if(c+=1,Pe=_e=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}_.H=Ah,s=t(n,l)}while(sa);return s}function _0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ri(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(xe.flags|=1024),t}function Wr(){var e=Ac!==0;return Ac=0,e}function $r(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(Tc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Tc=!1}En=0,Pe=_e=xe=null,sa=!1,oi=Ac=0,ua=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?xe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Fe(){if(_e===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Pe===null?xe.memoizedState:Pe.next;if(t!==null)Pe=t,_e=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Pe===null?xe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Rc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ri(e){var t=oi;return oi+=1,ua===null&&(ua=[]),e=Ud(ua,e,t),t=xe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Th:ds),e}function zc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ri(e);if(e.$$typeof===M)return ot(e)}throw Error(r(438,String(e)))}function ts(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=xe.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=Rc(),xe.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]=se;return t.index++,n}function Cn(e,t){return typeof t=="function"?t(e):t}function Oc(e){var t=Fe();return ns(t,_e,e)}function ns(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=e.baseQueue,s=l.pending;if(s!==null){if(c!==null){var m=c.next;c.next=s.next,s.next=m}t.baseQueue=c=s,l.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var x=m=null,E=null,H=t,X=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Ee&K)===K:(En&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===aa&&(X=!0);else if((En&B)===B){H=H.next,B===aa&&(X=!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=s):E=E.next=K,xe.lanes|=B,nl|=B;K=H.action,_l&&n(s,K),s=H.hasEagerState?H.eagerState:n(s,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=s):E=E.next=B,xe.lanes|=K,nl|=K;H=H.next}while(H!==null&&H!==t);if(E===null?m=s:E.next=x,!Ct(s,e.memoizedState)&&(Je=!0,X&&(n=ia,n!==null)))throw n;e.memoizedState=s,e.baseState=m,e.baseQueue=E,l.lastRenderedState=s}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ls(e){var t=Fe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do s=e(s,m.action),m=m.next;while(m!==c);Ct(s,t.memoizedState)||(Je=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function Qd(e,t,n){var l=xe,c=Fe(),s=je;if(s){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!Ct((_e||c).memoizedState,n);if(m&&(c.memoizedState=n,Je=!0),c=c.queue,cs(Jd.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Pe!==null&&Pe.memoizedState.tag&1){if(l.flags|=2048,fa(9,{destroy:void 0},Pd.bind(null,l,c,n,t),null),Le===null)throw Error(r(349));s||(En&127)!==0||Zd(l,t,n)}return n}function Zd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Rc(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pd(e,t,n,l){t.value=n,t.getSnapshot=l,Id(t)&&Wd(e)}function Jd(e,t,n){return n(function(){Id(t)&&Wd(e)})}function Id(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function Wd(e){var t=El(e,2);t!==null&&xt(t,e,2)}function as(e){var t=dt();if(typeof e=="function"){var n=e;if(e=n(),_l){Vn(!0);try{n()}finally{Vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:e},t}function $d(e,t,n,l){return e.baseState=n,ns(e,_e,typeof l=="function"?l:Cn)}function D0(e,t,n,l,c){if(Mc(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){s.listeners.push(m)}};_.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,eh(t,s)):(s.next=n.next,t.pending=n.next=s)}}function eh(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var s=_.T,m={};_.T=m;try{var x=n(c,l),E=_.S;E!==null&&E(m,x),th(e,t,x)}catch(H){is(e,t,H)}finally{s!==null&&m.types!==null&&(s.types=m.types),_.T=s}}else try{s=n(c,l),th(e,t,s)}catch(H){is(e,t,H)}}function th(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){nh(e,t,l)},function(l){return is(e,t,l)}):nh(e,t,n)}function nh(e,t,n){t.status="fulfilled",t.value=n,lh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,eh(e,n)))}function is(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,lh(t),t=t.next;while(t!==l)}e.action=null}function lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ah(e,t){return t}function ih(e,t){if(je){var n=Le.formState;if(n!==null){e:{var l=xe;if(je){if(Ue){t:{for(var c=Ue,s=Xt;c.nodeType!==8;){if(!s){c=null;break t}if(c=Ft(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){Ue=Ft(c.nextSibling),l=c.data==="F!";break e}}Qn(l)}l=!1}l&&(t=n[0])}}return n=dt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ah,lastRenderedState:t},n.queue=l,n=Ch.bind(null,xe,l),l.dispatch=n,l=as(!1),s=fs.bind(null,xe,!1,l.queue),l=dt(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=D0.bind(null,xe,c,s,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function ch(e){var t=Fe();return oh(t,_e,e)}function oh(e,t,n){if(t=ns(e,t,ah)[0],e=Oc(Cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ri(t)}catch(m){throw m===ca?Sc:m}else l=t;t=Fe();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,fa(9,{destroy:void 0},M0.bind(null,c,n),null)),[l,s,e]}function M0(e,t){e.action=t}function rh(e){var t=Fe(),n=_e;if(n!==null)return oh(t,n,e);Fe(),t=t.memoizedState,n=Fe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function fa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Rc(),xe.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 sh(){return Fe().memoizedState}function _c(e,t,n,l){var c=dt();xe.flags|=e,c.memoizedState=fa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Dc(e,t,n,l){var c=Fe();l=l===void 0?null:l;var s=c.memoizedState.inst;_e!==null&&l!==null&&Jr(l,_e.memoizedState.deps)?c.memoizedState=fa(t,s,n,l):(xe.flags|=e,c.memoizedState=fa(1|t,s,n,l))}function uh(e,t){_c(8390656,8,e,t)}function cs(e,t){Dc(2048,8,e,t)}function L0(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Rc(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fh(e){var t=Fe().memoizedState;return L0({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function dh(e,t){return Dc(4,2,e,t)}function hh(e,t){return Dc(4,4,e,t)}function mh(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 ph(e,t,n){n=n!=null?n.concat([e]):null,Dc(4,4,mh.bind(null,t,e),n)}function os(){}function vh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Jr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function gh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Jr(t,l[1]))return l[0];if(l=e(),_l){Vn(!0);try{e()}finally{Vn(!1)}}return n.memoizedState=[l,t],l}function rs(e,t,n){return n===void 0||(En&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ym(),xe.lanes|=e,nl|=e,n)}function yh(e,t,n,l){return Ct(n,t)?n:ra.current!==null?(e=rs(e,n,l),Ct(e,t)||(Je=!0),e):(En&42)===0||(En&1073741824)!==0&&(Ee&261930)===0?(Je=!0,e.memoizedState=n):(e=ym(),xe.lanes|=e,nl|=e,t)}function xh(e,t,n,l,c){var s=L.p;L.p=s!==0&&8>s?s:8;var m=_.T,x={};_.T=x,fs(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 X=z0(E,l);si(e,t,X,zt(e))}else si(e,t,l,zt(e))}catch(K){si(e,t,{then:function(){},status:"rejected",reason:K},zt())}finally{L.p=s,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function U0(){}function ss(e,t,n,l){if(e.tag!==5)throw Error(r(476));var c=bh(e).queue;xh(e,c,t,V,n===null?U0:function(){return Sh(e),n(l)})}function bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sh(e){var t=bh(e);t.next===null&&(t=e.alternate.memoizedState),si(e,t.next.queue,{},zt())}function us(){return ot(ji)}function wh(){return Fe().memoizedState}function Eh(){return Fe().memoizedState}function H0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=zt();e=Jn(n);var l=In(t,e,n);l!==null&&(xt(l,t,n),ai(l,t,n)),t={cache:kr()},e.payload=t;return}t=t.return}}function B0(e,t,n){var l=zt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mc(e)?Nh(t,n):(n=Ar(e,t,n,l),n!==null&&(xt(n,e,l),jh(n,t,l)))}function Ch(e,t,n){var l=zt();si(e,t,n,l)}function si(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mc(e))Nh(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var m=t.lastRenderedState,x=s(m,n);if(c.hasEagerState=!0,c.eagerState=x,Ct(x,m))return mc(e,t,c,0),Le===null&&hc(),!1}catch{}if(n=Ar(e,t,c,l),n!==null)return xt(n,e,l),jh(n,t,l),!0}return!1}function fs(e,t,n,l){if(l={lane:2,revertLane:Xs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mc(e)){if(t)throw Error(r(479))}else t=Ar(e,n,l,2),t!==null&&xt(t,e,2)}function Mc(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Nh(e,t){sa=Tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Of(e,n)}}var ui={readContext:ot,use:zc,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};ui.useEffectEvent=qe;var Th={readContext:ot,use:zc,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:uh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,_c(4194308,4,mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _c(4194308,4,e,t)},useInsertionEffect:function(e,t){_c(4,2,e,t)},useMemo:function(e,t){var n=dt();t=t===void 0?null:t;var l=e();if(_l){Vn(!0);try{e()}finally{Vn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=dt();if(n!==void 0){var c=n(t);if(_l){Vn(!0);try{n(t)}finally{Vn(!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=B0.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=as(e);var t=e.queue,n=Ch.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:os,useDeferredValue:function(e,t){var n=dt();return rs(n,e,t)},useTransition:function(){var e=as(!1);return e=xh.bind(null,xe,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=xe,c=dt();if(je){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Le===null)throw Error(r(349));(Ee&127)!==0||Zd(l,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,uh(Jd.bind(null,l,s,e),[e]),l.flags|=2048,fa(9,{destroy:void 0},Pd.bind(null,l,s,n,t),null),n},useId:function(){var e=dt(),t=Le.identifierPrefix;if(je){var n=ln,l=nn;n=(l&~(1<<32-Et(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ac++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=O0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:us,useFormState:ih,useActionState:ih,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fs.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ts,useCacheRefresh:function(){return dt().memoizedState=H0.bind(null,xe)},useEffectEvent:function(e){var t=dt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},ds={readContext:ot,use:zc,useCallback:vh,useContext:ot,useEffect:cs,useImperativeHandle:ph,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:gh,useReducer:Oc,useRef:sh,useState:function(){return Oc(Cn)},useDebugValue:os,useDeferredValue:function(e,t){var n=Fe();return yh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Oc(Cn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:ri(e),t]},useSyncExternalStore:Qd,useId:wh,useHostTransitionStatus:us,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var n=Fe();return $d(n,_e,e,t)},useMemoCache:ts,useCacheRefresh:Eh};ds.useEffectEvent=fh;var Ah={readContext:ot,use:zc,useCallback:vh,useContext:ot,useEffect:cs,useImperativeHandle:ph,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:gh,useReducer:ls,useRef:sh,useState:function(){return ls(Cn)},useDebugValue:os,useDeferredValue:function(e,t){var n=Fe();return _e===null?rs(n,e,t):yh(n,_e.memoizedState,e,t)},useTransition:function(){var e=ls(Cn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:ri(e),t]},useSyncExternalStore:Qd,useId:wh,useHostTransitionStatus:us,useFormState:rh,useActionState:rh,useOptimistic:function(e,t){var n=Fe();return _e!==null?$d(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ts,useCacheRefresh:Eh};Ah.useEffectEvent=fh;function hs(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 ms={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=zt(),c=Jn(l);c.payload=t,n!=null&&(c.callback=n),t=In(e,c,l),t!==null&&(xt(t,e,l),ai(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=zt(),c=Jn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=In(e,c,l),t!==null&&(xt(t,e,l),ai(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zt(),l=Jn(n);l.tag=2,t!=null&&(l.callback=t),t=In(e,l,n),t!==null&&(xt(t,e,n),ai(t,e,n))}};function Rh(e,t,n,l,c,s,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,m):t.prototype&&t.prototype.isPureReactComponent?!Ja(n,l)||!Ja(c,s):!0}function zh(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&&ms.enqueueReplaceState(t,t.state,null)}function Dl(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 Oh(e){dc(e)}function _h(e){console.error(e)}function Dh(e){dc(e)}function Lc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Mh(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 ps(e,t,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Lc(e,t)},n}function Lh(e){return e=Jn(e),e.tag=3,e}function Uh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=l.value;e.payload=function(){return c(s)},e.callback=function(){Mh(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Mh(t,n,l),typeof c!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function k0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&la(t,n,c,!0),n=jt.current,n!==null){switch(n.tag){case 31:case 13:return Gt===null?Qc():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===wc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ys(e,l,c)),!1;case 22:return n.flags|=65536,l===wc?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)),Ys(e,l,c)),!1}throw Error(r(435,n.tag))}return Ys(e,l,c),Qc(),!1}if(je)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Mr&&(e=Error(r(422),{cause:l}),$a(Yt(e,n)))):(l!==Mr&&(t=Error(r(423),{cause:l}),$a(Yt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Yt(l,n),c=ps(e.stateNode,l,c),Fr(e,c),Ve!==4&&(Ve=2)),!1;var s=Error(r(520),{cause:l});if(s=Yt(s,n),yi===null?yi=[s]:yi.push(s),Ve!==4&&(Ve=2),t===null)return!0;l=Yt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ps(n.stateNode,l,e),Fr(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(ll===null||!ll.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Lh(c),Uh(c,e,n,l),Fr(n,c),!1}n=n.return}while(n!==null);return!1}var vs=Error(r(461)),Je=!1;function rt(e,t,n,l){t.child=e===null?Yd(t,null,n,l):Ol(t,e.child,n,l)}function Hh(e,t,n,l,c){n=n.render;var s=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Tl(t),l=Ir(e,t,n,m,s,c),x=Wr(),e!==null&&!Je?($r(e,t,c),Nn(e,t,c)):(je&&x&&_r(t),t.flags|=1,rt(e,t,l,c),t.child)}function Bh(e,t,n,l,c){if(e===null){var s=n.type;return typeof s=="function"&&!Rr(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,kh(e,t,s,l,c)):(e=vc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Cs(e,c)){var m=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ja,n(m,l)&&e.ref===t.ref)return Nn(e,t,c)}return t.flags|=1,e=xn(s,l),e.ref=t.ref,e.return=t,t.child=e}function kh(e,t,n,l,c){if(e!==null){var s=e.memoizedProps;if(Ja(s,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=s,Cs(e,c))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Nn(e,t,c)}return gs(e,t,n,l,c)}function Yh(e,t,n,l){var c=l.children,s=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(s=s!==null?s.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&~s}else l=0,t.child=null;return qh(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bc(t,s!==null?s.cachePool:null),s!==null?Xd(t,s):Qr(),Gd(t);else return l=t.lanes=536870912,qh(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(bc(t,s.cachePool),Xd(t,s),$n(),t.memoizedState=null):(e!==null&&bc(t,null),Qr(),$n());return rt(e,t,c,n),t.child}function fi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qh(e,t,n,l,c){var s=qr();return s=s===null?null:{parent:Ze._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&bc(t,null),Qr(),Gd(t),e!==null&&la(e,t,l,!0),t.childLanes=c,null}function Uc(e,t){return t=Bc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vh(e,t,n){return Ol(t,e.child,null,n),e=Uc(t,t.pendingProps),e.flags|=2,Tt(t),t.memoizedState=null,e}function Y0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=Uc(t,l),t.lanes=536870912,fi(null,e);if(Pr(t),(e=Ue)?(e=ep(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Nd(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Qn(t);return t.lanes=536870912,null}return Uc(t,l)}var s=e.memoizedState;if(s!==null){var m=s.dehydrated;if(Pr(t),c)if(t.flags&256)t.flags&=-257,t=Vh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||la(e,t,n,!1),c=(n&e.childLanes)!==0,Je||c){if(l=Le,l!==null&&(m=_f(l,n),m!==0&&m!==s.retryLane))throw s.retryLane=m,El(e,m),xt(l,e,m),vs;Qc(),t=Vh(e,t,n)}else e=s.treeContext,Ue=Ft(m.nextSibling),ct=t,je=!0,Kn=null,Xt=!1,e!==null&&Ad(t,e),t=Uc(t,l),t.flags|=4096;return t}return e=xn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(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(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gs(e,t,n,l,c){return Tl(t),n=Ir(e,t,n,l,void 0,c),l=Wr(),e!==null&&!Je?($r(e,t,c),Nn(e,t,c)):(je&&l&&_r(t),t.flags|=1,rt(e,t,n,c),t.child)}function Xh(e,t,n,l,c,s){return Tl(t),t.updateQueue=null,n=Kd(t,l,n,c),Fd(e),l=Wr(),e!==null&&!Je?($r(e,t,s),Nn(e,t,s)):(je&&l&&_r(t),t.flags|=1,rt(e,t,n,s),t.child)}function Gh(e,t,n,l,c){if(Tl(t),t.stateNode===null){var s=$l,m=n.contextType;typeof m=="object"&&m!==null&&(s=ot(m)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ms,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Xr(t),m=n.contextType,s.context=typeof m=="object"&&m!==null?ot(m):$l,s.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(hs(t,n,m,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(m=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),m!==s.state&&ms.enqueueReplaceState(s,s.state,null),ci(t,l,s,c),ii(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,E=Dl(n,x);s.props=E;var H=s.context,X=n.contextType;m=$l,typeof X=="object"&&X!==null&&(m=ot(X));var K=n.getDerivedStateFromProps;X=typeof K=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,X||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||H!==m)&&zh(t,s,l,m),Pn=!1;var B=t.memoizedState;s.state=B,ci(t,l,s,c),ii(),H=t.memoizedState,x||B!==H||Pn?(typeof K=="function"&&(hs(t,n,K,l),H=t.memoizedState),(E=Pn||Rh(t,n,E,l,B,H,m))?(X||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),s.props=l,s.state=H,s.context=m,l=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Gr(e,t),m=t.memoizedProps,X=Dl(n,m),s.props=X,K=t.pendingProps,B=s.context,H=n.contextType,E=$l,typeof H=="object"&&H!==null&&(E=ot(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m!==K||B!==E)&&zh(t,s,l,E),Pn=!1,B=t.memoizedState,s.state=B,ci(t,l,s,c),ii();var k=t.memoizedState;m!==K||B!==k||Pn||e!==null&&e.dependencies!==null&&yc(e.dependencies)?(typeof x=="function"&&(hs(t,n,x,l),k=t.memoizedState),(X=Pn||Rh(t,n,X,l,B,k,E)||e!==null&&e.dependencies!==null&&yc(e.dependencies))?(H||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,k,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,k,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),s.props=l,s.state=k,s.context=E,l=X):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Hc(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Ol(t,e.child,null,c),t.child=Ol(t,null,n,c)):rt(e,t,n,c),t.memoizedState=s.state,e=t.child):e=Nn(e,t,c),e}function Fh(e,t,n,l){return Nl(),t.flags|=256,rt(e,t,n,l),t.child}var ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xs(e){return{baseLanes:e,cachePool:Md()}}function bs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function Kh(e,t,n){var l=t.pendingProps,c=!1,s=(t.flags&128)!==0,m;if((m=s)||(m=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(c?Wn(t):$n(),(e=Ue)?(e=ep(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Nd(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Qn(t);return nu(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?($n(),c=t.mode,x=Bc({mode:"hidden",children:x},c),l=Cl(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=xs(n),l.childLanes=bs(e,m,n),t.memoizedState=ys,fi(null,l)):(Wn(t),Ss(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(s)t.flags&256?(Wn(t),t.flags&=-257,t=ws(e,t,n)):t.memoizedState!==null?($n(),t.child=e.child,t.flags|=128,t=null):($n(),x=l.fallback,c=t.mode,l=Bc({mode:"visible",children:l.children},c),x=Cl(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Ol(t,e.child,null,n),l=t.child,l.memoizedState=xs(n),l.childLanes=bs(e,m,n),t.memoizedState=ys,t=fi(null,l));else if(Wn(t),nu(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(r(419)),l.stack="",l.digest=m,$a({value:l,source:null,stack:null}),t=ws(e,t,n)}else if(Je||la(e,t,n,!1),m=(n&e.childLanes)!==0,Je||m){if(m=Le,m!==null&&(l=_f(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,El(e,l),xt(m,e,l),vs;tu(x)||Qc(),t=ws(e,t,n)}else tu(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ue=Ft(x.nextSibling),ct=t,je=!0,Kn=null,Xt=!1,e!==null&&Ad(t,e),t=Ss(t,l.children),t.flags|=4096);return t}return c?($n(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=xn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=xn(H,x):(x=Cl(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,fi(null,l),l=t.child,x=e.child.memoizedState,x===null?x=xs(n):(c=x.cachePool,c!==null?(E=Ze._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=Md(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=bs(e,m,n),t.memoizedState=ys,fi(e.child,l)):(Wn(t),n=e.child,e=n.sibling,n=xn(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 Ss(e,t){return t=Bc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bc(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function ws(e,t,n){return Ol(t,e.child,null,n),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Hr(e.return,t,n)}function Es(e,t,n,l,c,s){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:s}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=s)}function Zh(e,t,n){var l=t.pendingProps,c=l.revealOrder,s=l.tail;l=l.children;var m=Ge.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,Z(Ge,m),rt(e,t,l,n),l=je?Wa:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qh(e,n,t);else if(e.tag===19)Qh(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&&jc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Es(t,!1,c,n,s,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&&jc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Es(t,!0,n,null,s,l);break;case"together":Es(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(la(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yc(e)))}function q0(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Zn(t,Ze,e.memoizedState.cache),Nl();break;case 27:case 5:ie(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Wn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Kh(e,t,n):(Wn(t),e=Nn(e,t,n),e!==null?e.sibling:null);Wn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(la(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Zh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(Ge,Ge.current),l)break;return null;case 22:return t.lanes=0,Yh(e,t,n,t.pendingProps);case 24:Zn(t,Ze,e.memoizedState.cache)}return Nn(e,t,n)}function Ph(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Cs(e,n)&&(t.flags&128)===0)return Je=!1,q0(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,je&&(t.flags&1048576)!==0&&Td(t,Wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Rl(t.elementType),t.type=e,typeof e=="function")Rr(e)?(l=Dl(e,l),t.tag=1,t=Gh(null,t,e,l,n)):(t.tag=0,t=gs(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Hh(null,t,e,l,n);break e}else if(c===Y){t.tag=14,t=Bh(null,t,e,l,n);break e}}throw t=ee(e)||e,Error(r(306,t,""))}}return t;case 0:return gs(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=Dl(l,t.pendingProps),Gh(e,t,l,c,n);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var s=t.memoizedState;c=s.element,Gr(e,t),ci(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Zn(t,Ze,l),l!==s.cache&&Br(t,[Ze],n,!0),ii(),l=m.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Fh(e,t,l,n);break e}else if(l!==c){c=Yt(Error(r(424)),t),$a(c),t=Fh(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,Ue=Ft(e.firstChild),ct=t,je=!0,Kn=null,Xt=!0,n=Yd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nl(),l===c){t=Nn(e,t,n);break e}rt(e,t,l,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=cp(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,l=eo(he.current).createElement(n),l[it]=t,l[ht]=e,st(l,n,e),lt(l),t.stateNode=l):t.memoizedState=cp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ie(t),e===null&&je&&(l=t.stateNode=lp(t.type,t.pendingProps,he.current),ct=t,Xt=!0,c=Ue,ol(t.type)?(lu=c,Ue=Ft(l.firstChild)):Ue=c),rt(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((c=l=Ue)&&(l=gx(l,t.type,t.pendingProps,Xt),l!==null?(t.stateNode=l,ct=t,Ue=Ft(l.firstChild),Xt=!1,c=!0):c=!1),c||Qn(t)),ie(t),c=t.type,s=t.pendingProps,m=e!==null?e.memoizedProps:null,l=s.children,Ws(c,s)?l=null:m!==null&&Ws(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Ir(e,t,_0,null,null,n),ji._currentValue=c),Hc(e,t),rt(e,t,l,n),t.child;case 6:return e===null&&je&&((e=n=Ue)&&(n=yx(n,t.pendingProps,Xt),n!==null?(t.stateNode=n,ct=t,Ue=null,e=!0):e=!1),e||Qn(t)),null;case 13:return Kh(e,t,n);case 4:return me(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ol(t,null,l,n):rt(e,t,l,n),t.child;case 11:return Hh(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Zn(t,t.type,l.value),rt(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Tl(t),c=ot(c),l=l(c),t.flags|=1,rt(e,t,l,n),t.child;case 14:return Bh(e,t,t.type,t.pendingProps,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 19:return Zh(e,t,n);case 31:return Y0(e,t,n);case 22:return Yh(e,t,n,t.pendingProps);case 24:return Tl(t),l=ot(Ze),e===null?(c=qr(),c===null&&(c=Le,s=kr(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:l,cache:c},Xr(t),Zn(t,Ze,c)):((e.lanes&n)!==0&&(Gr(e,t),ci(t,null,null,n),ii()),c=e.memoizedState,s=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Zn(t,Ze,l)):(l=s.cache,Zn(t,Ze,l),l!==c.cache&&Br(t,[Ze],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function jn(e){e.flags|=4}function Ns(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(wm())e.flags|=8192;else throw zl=wc,Vr}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fp(t))if(wm())e.flags|=8192;else throw zl=wc,Vr}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rf():536870912,e.lanes|=t,pa|=t)}function di(e,t){if(!je)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 He(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 V0(e,t,n){var l=t.pendingProps;switch(Dr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wn(Ze),I(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(na(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lr())),He(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(jn(t),s!==null?(He(t),Jh(t,s)):(He(t),Ns(t,c,null,l,n))):s?s!==e.memoizedState?(jn(t),He(t),Jh(t,s)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&jn(t),He(t),Ns(t,c,e,l,n)),null;case 27:if(ge(t),n=he.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return He(t),null}e=W.current,na(t)?Rd(t):(e=lp(c,l,n),t.stateNode=e,jn(t))}return He(t),null;case 5:if(ge(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return He(t),null}if(s=W.current,na(t))Rd(t);else{var m=eo(he.current);switch(s){case 1:s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=m.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}s[it]=t,s[ht]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)s.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=s;e:switch(st(s,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&&jn(t)}}return He(t),Ns(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,na(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=ct,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Km(e.nodeValue,n)),e||Qn(t,!0)}else e=eo(e).createTextNode(l),e[it]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=na(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=Lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Tt(t),t):(Tt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=na(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[it]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),c=!1}else c=Lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Tt(t),t):(Tt(t),null)}return Tt(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),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),He(t),null);case 4:return I(),e===null&&Qs(t.stateNode.containerInfo),He(t),null;case 10:return wn(t.type),He(t),null;case 19:if(G(Ge),l=t.memoizedState,l===null)return He(t),null;if(c=(t.flags&128)!==0,s=l.rendering,s===null)if(c)di(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=jc(e),s!==null){for(t.flags|=128,di(l,!1),e=s.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Cd(n,e),n=n.sibling;return Z(Ge,Ge.current&1|2),je&&bn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Gc&&(t.flags|=128,c=!0,di(l,!1),t.lanes=4194304)}else{if(!c)if(e=jc(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),di(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!je)return He(t),null}else 2*St()-l.renderingStartTime>Gc&&n!==536870912&&(t.flags|=128,c=!0,di(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,n=Ge.current,Z(Ge,c?n&1|2:n&1),je&&bn(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Tt(t),Zr(),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&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&kc(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(Al),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wn(Ze),He(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function X0(e,t){switch(Dr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wn(Ze),I(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(Tt(t),t.alternate===null)throw Error(r(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Tt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ge),null;case 4:return I(),null;case 10:return wn(t.type),null;case 22:case 23:return Tt(t),Zr(),e!==null&&G(Al),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wn(Ze),null;case 25:return null;default:return null}}function Ih(e,t){switch(Dr(t),t.tag){case 3:wn(Ze),I();break;case 26:case 27:case 5:ge(t);break;case 4:I();break;case 31:t.memoizedState!==null&&Tt(t);break;case 13:Tt(t);break;case 19:G(Ge);break;case 10:wn(t.type);break;case 22:case 23:Tt(t),Zr(),e!==null&&G(Al);break;case 24:wn(Ze)}}function hi(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 s=n.create,m=n.inst;l=s(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){Oe(t,t.return,x)}}function el(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var s=c.next;l=s;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(X){Oe(c,E,X)}}}l=l.next}while(l!==s)}}catch(X){Oe(t,t.return,X)}}function Wh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Vd(t,n)}catch(l){Oe(e,e.return,l)}}}function $h(e,t,n){n.props=Dl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function mi(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 an(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 em(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 js(e,t,n){try{var l=e.stateNode;fx(l,e.type,n,t),l[ht]=t}catch(c){Oe(e,e.return,c)}}function tm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ol(e.type)||e.tag===4}function Ts(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(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&&ol(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 As(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=gn));else if(l!==4&&(l===27&&ol(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Yc(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&&ol(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function nm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);st(t,l,n),t[it]=e,t[ht]=n}catch(s){Oe(e,e.return,s)}}var Tn=!1,Ie=!1,Rs=!1,lm=typeof WeakSet=="function"?WeakSet:Set,at=null;function G0(e,t){if(e=e.containerInfo,Js=oo,e=pd(e),wr(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,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,X=0,K=e,B=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==s||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===s&&++X===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(Is={focusedElem:e,selectionRange:n},oo=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(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&&s!==null){e=void 0,n=t,c=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var ce=Dl(n.type,c);e=l.getSnapshotBeforeUpdate(ce,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Oe(n,n.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)eu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eu(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function am(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),l&4&&hi(5,n);break;case 1:if(Rn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var c=Dl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Wh(n),l&512&&mi(n,n.return);break;case 3:if(Rn(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{Vd(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&nm(n);case 26:case 5:Rn(e,n),t===null&&l&4&&em(n),l&512&&mi(n,n.return);break;case 12:Rn(e,n);break;case 31:Rn(e,n),l&4&&om(e,n);break;case 13:Rn(e,n),l&4&&rm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$0.bind(null,n),xx(e,n))));break;case 22:if(l=n.memoizedState!==null||Tn,!l){t=t!==null&&t.memoizedState!==null||Ie,c=Tn;var s=Ie;Tn=l,(Ie=t)&&!s?zn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),Tn=c,Ie=s}break;case 30:break;default:Rn(e,n)}}function im(e){var t=e.alternate;t!==null&&(e.alternate=null,im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ir(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,pt=!1;function An(e,t,n){for(n=n.child;n!==null;)cm(e,t,n),n=n.sibling}function cm(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Ba,n)}catch{}switch(n.tag){case 26:Ie||an(n,t),An(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ie||an(n,t);var l=Be,c=pt;ol(n.type)&&(Be=n.stateNode,pt=!1),An(e,t,n),Ei(n.stateNode),Be=l,pt=c;break;case 5:Ie||an(n,t);case 6:if(l=Be,c=pt,Be=null,An(e,t,n),Be=l,pt=c,Be!==null)if(pt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(s){Oe(n,t,s)}else try{Be.removeChild(n.stateNode)}catch(s){Oe(n,t,s)}break;case 18:Be!==null&&(pt?(e=Be,Wm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ea(e)):Wm(Be,n.stateNode));break;case 4:l=Be,c=pt,Be=n.stateNode.containerInfo,pt=!0,An(e,t,n),Be=l,pt=c;break;case 0:case 11:case 14:case 15:el(2,n,t),Ie||el(4,n,t),An(e,t,n);break;case 1:Ie||(an(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&$h(n,t,l)),An(e,t,n);break;case 21:An(e,t,n);break;case 22:Ie=(l=Ie)||n.memoizedState!==null,An(e,t,n),Ie=l;break;default:An(e,t,n)}}function om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ea(e)}catch(n){Oe(t,t.return,n)}}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ea(e)}catch(n){Oe(t,t.return,n)}}function F0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lm),t;default:throw Error(r(435,e.tag))}}function qc(e,t){var n=F0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=ex.bind(null,e,l);l.then(c,c)}})}function vt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],s=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(ol(x.type)){Be=x.stateNode,pt=!1;break e}break;case 5:Be=x.stateNode,pt=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,pt=!0;break e}x=x.return}if(Be===null)throw Error(r(160));cm(s,m,c),Be=null,pt=!1,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sm(t,e),t=t.sibling}var Zt=null;function sm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),gt(e),l&4&&(el(3,e,e.return),hi(3,e),el(5,e,e.return));break;case 1:vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),l&64&&Tn&&(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=Zt;if(vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),l&4){var s=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":s=c.getElementsByTagName("title")[0],(!s||s[qa]||s[it]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=c.createElement(l),c.head.insertBefore(s,c.querySelector("head > title"))),st(s,l,n),s[it]=e,lt(s),l=s;break e;case"link":var m=sp("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(s=m[x],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}s=c.createElement(l),st(s,l,n),c.head.appendChild(s);break;case"meta":if(m=sp("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(s=m[x],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}s=c.createElement(l),st(s,l,n),c.head.appendChild(s);break;default:throw Error(r(468,l))}s[it]=e,lt(s),l=s}e.stateNode=l}else up(c,e.type,e.stateNode);else e.stateNode=rp(c,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?up(c,e.type,e.stateNode):rp(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&js(e,e.memoizedProps,n.memoizedProps)}break;case 27:vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),n!==null&&l&4&&js(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),e.flags&32){c=e.stateNode;try{Kl(c,"")}catch(ce){Oe(e,e.return,ce)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,js(e,c,n!==null?n.memoizedProps:c)),l&1024&&(Rs=!0);break;case 6:if(vt(t,e),gt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ce){Oe(e,e.return,ce)}}break;case 3:if(lo=null,c=Zt,Zt=to(t.containerInfo),vt(t,e),Zt=c,gt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ea(t.containerInfo)}catch(ce){Oe(e,e.return,ce)}Rs&&(Rs=!1,um(e));break;case 4:l=Zt,Zt=to(e.stateNode.containerInfo),vt(t,e),gt(e),Zt=l;break;case 12:vt(t,e),gt(e);break;case 31:vt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 13:vt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xc=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=Tn,X=Ie;if(Tn=H||c,Ie=X||E,vt(t,e),Ie=X,Tn=H,gt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||Tn||Ie||Ml(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(s=E.stateNode,c)m=s.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(ce){Oe(E,E.return,ce)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ce){Oe(E,E.return,ce)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?$m(k,!0):$m(E.stateNode,!1)}catch(ce){Oe(E,E.return,ce)}}}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,qc(e,n))));break;case 19:vt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 30:break;case 21:break;default:vt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(tm(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,s=Ts(e);Yc(e,s,c);break;case 5:var m=n.stateNode;n.flags&32&&(Kl(m,""),n.flags&=-33);var x=Ts(e);Yc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=Ts(e);As(e,H,E);break;default:throw Error(r(161))}}catch(X){Oe(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function um(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;um(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)am(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Ml(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$h(t,t.return,n),Ml(t);break;case 27:Ei(t.stateNode);case 26:case 5:an(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function zn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,s=t,m=s.flags;switch(s.tag){case 0:case 11:case 15:zn(c,s,n),hi(4,s);break;case 1:if(zn(c,s,n),l=s,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){Oe(l,l.return,H)}if(l=s,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++)qd(E[c],x)}catch(H){Oe(l,l.return,H)}}n&&m&64&&Wh(s),mi(s,s.return);break;case 27:nm(s);case 26:case 5:zn(c,s,n),n&&l===null&&m&4&&em(s),mi(s,s.return);break;case 12:zn(c,s,n);break;case 31:zn(c,s,n),n&&m&4&&om(c,s);break;case 13:zn(c,s,n),n&&m&4&&rm(c,s);break;case 22:s.memoizedState===null&&zn(c,s,n),mi(s,s.return);break;case 30:break;default:zn(c,s,n)}t=t.sibling}}function zs(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&&ei(n))}function Os(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ei(e))}function Pt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fm(e,t,n,l),t=t.sibling}function fm(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,l),c&2048&&hi(9,t);break;case 1:Pt(e,t,n,l);break;case 3:Pt(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&&ei(e)));break;case 12:if(c&2048){Pt(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,m=s.id,x=s.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Oe(t,t.return,E)}}else Pt(e,t,n,l);break;case 31:Pt(e,t,n,l);break;case 13:Pt(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,m=t.alternate,t.memoizedState!==null?s._visibility&2?Pt(e,t,n,l):pi(e,t):s._visibility&2?Pt(e,t,n,l):(s._visibility|=2,da(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&zs(m,t);break;case 24:Pt(e,t,n,l),c&2048&&Os(t.alternate,t);break;default:Pt(e,t,n,l)}}function da(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:da(s,m,x,E,c),hi(8,m);break;case 23:break;case 22:var X=m.stateNode;m.memoizedState!==null?X._visibility&2?da(s,m,x,E,c):pi(s,m):(X._visibility|=2,da(s,m,x,E,c)),c&&H&2048&&zs(m.alternate,m);break;case 24:da(s,m,x,E,c),c&&H&2048&&Os(m.alternate,m);break;default:da(s,m,x,E,c)}t=t.sibling}}function pi(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:pi(n,l),c&2048&&zs(l.alternate,l);break;case 24:pi(n,l),c&2048&&Os(l.alternate,l);break;default:pi(n,l)}t=t.sibling}}var vi=8192;function ha(e,t,n){if(e.subtreeFlags&vi)for(e=e.child;e!==null;)dm(e,t,n),e=e.sibling}function dm(e,t,n){switch(e.tag){case 26:ha(e,t,n),e.flags&vi&&e.memoizedState!==null&&Ox(n,Zt,e.memoizedState,e.memoizedProps);break;case 5:ha(e,t,n);break;case 3:case 4:var l=Zt;Zt=to(e.stateNode.containerInfo),ha(e,t,n),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=vi,vi=16777216,ha(e,t,n),vi=l):ha(e,t,n));break;default:ha(e,t,n)}}function hm(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 gi(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];at=l,pm(l,e)}hm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mm(e),e=e.sibling}function mm(e){switch(e.tag){case 0:case 11:case 15:gi(e),e.flags&2048&&el(9,e,e.return);break;case 3:gi(e);break;case 12:gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vc(e)):gi(e);break;default:gi(e)}}function Vc(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];at=l,pm(l,e)}hm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Vc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vc(t));break;default:Vc(t)}e=e.sibling}}function pm(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:el(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:ei(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var c=l.sibling,s=l.return;if(im(l),l===n){at=null;break e}if(c!==null){c.return=s,at=c;break e}at=s}}}var K0={getCacheForType:function(e){var t=ot(Ze),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Ze).controller.signal}},Q0=typeof WeakMap=="function"?WeakMap:Map,Re=0,Le=null,Se=null,Ee=0,ze=0,At=null,tl=!1,ma=!1,_s=!1,On=0,Ve=0,nl=0,Ll=0,Ds=0,Rt=0,pa=0,yi=null,yt=null,Ms=!1,Xc=0,vm=0,Gc=1/0,Fc=null,ll=null,et=0,al=null,va=null,_n=0,Ls=0,Us=null,gm=null,xi=0,Hs=null;function zt(){return(Re&2)!==0&&Ee!==0?Ee&-Ee:_.T!==null?Xs():Df()}function ym(){if(Rt===0)if((Ee&536870912)===0||je){var e=$i;$i<<=1,($i&3932160)===0&&($i=262144),Rt=e}else Rt=536870912;return e=jt.current,e!==null&&(e.flags|=32),Rt}function xt(e,t,n){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(ga(e,0),il(e,Ee,Rt,!1)),Ya(e,n),((Re&2)===0||e!==Le)&&(e===Le&&((Re&2)===0&&(Ll|=n),Ve===4&&il(e,Ee,Rt,!1)),cn(e))}function xm(e,t,n){if((Re&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),c=l?J0(e,t):ks(e,t,!0),s=l;do{if(c===0){ma&&!l&&il(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Z0(n)){c=ks(e,t,!1),s=!1;continue}if(c===2){if(s=t,e.errorRecoveryDisabledLanes&s)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=yi;var E=x.current.memoizedState.isDehydrated;if(E&&(ga(x,m).flags|=256),m=ks(x,m,!1),m!==2){if(_s&&!E){x.errorRecoveryDisabledLanes|=s,Ll|=s,c=4;break e}s=yt,yt=c,s!==null&&(yt===null?yt=s:yt.push.apply(yt,s))}c=m}if(s=!1,c!==2)continue}}if(c===1){ga(e,0),il(e,t,0,!0);break}e:{switch(l=e,s=c,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:il(l,t,Rt,!tl);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=Xc+300-St(),10<c)){if(il(l,t,Rt,!tl),tc(l,0,!0)!==0)break e;_n=t,l.timeoutHandle=Jm(bm.bind(null,l,n,yt,Fc,Ms,t,Rt,Ll,pa,tl,s,"Throttled",-0,0),c);break e}bm(l,n,yt,Fc,Ms,t,Rt,Ll,pa,tl,s,null,-0,0)}}break}while(!0);cn(e)}function bm(e,t,n,l,c,s,m,x,E,H,X,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:gn},dm(t,s,K);var ce=(s&62914560)===s?Xc-St():(s&4194048)===s?vm-St():0;if(ce=_x(K,ce),ce!==null){_n=s,e.cancelPendingCommit=ce(Am.bind(null,e,t,s,n,l,c,m,x,E,X,K,null,B,k)),il(e,s,m,!H);return}}Am(e,t,s,n,l,c,m,x,E)}function Z0(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],s=c.getSnapshot;c=c.value;try{if(!Ct(s(),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 il(e,t,n,l){t&=~Ds,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var s=31-Et(c),m=1<<s;l[s]=-1,c&=~m}n!==0&&zf(e,n,t)}function Kc(){return(Re&6)===0?(bi(0),!1):!0}function Bs(){if(Se!==null){if(ze===0)var e=Se.return;else e=Se,Sn=jl=null,es(e),oa=null,ni=0,e=Se;for(;e!==null;)Ih(e.alternate,e),e=e.return;Se=null}}function ga(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,mx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),_n=0,Bs(),Le=e,Se=n=xn(e.current,null),Ee=t,ze=0,At=null,tl=!1,ma=ka(e,t),_s=!1,pa=Rt=Ds=Ll=nl=Ve=0,yt=yi=null,Ms=!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-Et(l),s=1<<c;t|=e[c],l&=~s}return On=t,hc(),n}function Sm(e,t){xe=null,_.H=ui,t===ca||t===Sc?(t=Hd(),ze=3):t===Vr?(t=Hd(),ze=4):ze=t===vs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,Se===null&&(Ve=1,Lc(e,Yt(t,e.current)))}function wm(){var e=jt.current;return e===null?!0:(Ee&4194048)===Ee?Gt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Gt:!1}function Em(){var e=_.H;return _.H=ui,e===null?ui:e}function Cm(){var e=_.A;return _.A=K0,e}function Qc(){Ve=4,tl||(Ee&4194048)!==Ee&&jt.current!==null||(ma=!0),(nl&134217727)===0&&(Ll&134217727)===0||Le===null||il(Le,Ee,Rt,!1)}function ks(e,t,n){var l=Re;Re|=2;var c=Em(),s=Cm();(Le!==e||Ee!==t)&&(Fc=null,ga(e,t)),t=!1;var m=Ve;e:do try{if(ze!==0&&Se!==null){var x=Se,E=At;switch(ze){case 8:Bs(),m=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var H=ze;if(ze=0,At=null,ya(e,x,E,H),n&&ma){m=0;break e}break;default:H=ze,ze=0,At=null,ya(e,x,E,H)}}P0(),m=Ve;break}catch(X){Sm(e,X)}while(!0);return t&&e.shellSuspendCounter++,Sn=jl=null,Re=l,_.H=c,_.A=s,Se===null&&(Le=null,Ee=0,hc()),m}function P0(){for(;Se!==null;)Nm(Se)}function J0(e,t){var n=Re;Re|=2;var l=Em(),c=Cm();Le!==e||Ee!==t?(Fc=null,Gc=St()+500,ga(e,t)):ma=ka(e,t);e:do try{if(ze!==0&&Se!==null){t=Se;var s=At;t:switch(ze){case 1:ze=0,At=null,ya(e,t,s,1);break;case 2:case 9:if(Ld(s)){ze=0,At=null,jm(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),cn(e)},s.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Ld(s)?(ze=0,At=null,jm(t)):(ze=0,At=null,ya(e,t,s,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var x=Se;if(m?fp(m):x.stateNode.complete){ze=0,At=null;var E=x.sibling;if(E!==null)Se=E;else{var H=x.return;H!==null?(Se=H,Zc(H)):Se=null}break t}}ze=0,At=null,ya(e,t,s,5);break;case 6:ze=0,At=null,ya(e,t,s,6);break;case 8:Bs(),Ve=6;break e;default:throw Error(r(462))}}I0();break}catch(X){Sm(e,X)}while(!0);return Sn=jl=null,_.H=l,_.A=c,Re=n,Se!==null?0:(Le=null,Ee=0,hc(),Ve)}function I0(){for(;Se!==null&&!by();)Nm(Se)}function Nm(e){var t=Ph(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?Zc(e):Se=t}function jm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Xh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:es(t);default:Ih(n,t),t=Se=Cd(t,On),t=Ph(n,t,On)}e.memoizedProps=e.pendingProps,t===null?Zc(e):Se=t}function ya(e,t,n,l){Sn=jl=null,es(t),oa=null,ni=0;var c=t.return;try{if(k0(e,c,t,n,Ee)){Ve=1,Lc(e,Yt(n,e.current)),Se=null;return}}catch(s){if(c!==null)throw Se=c,s;Ve=1,Lc(e,Yt(n,e.current)),Se=null;return}t.flags&32768?(je||l===1?e=!0:ma||(Ee&536870912)!==0?e=!1:(tl=e=!0,(l===2||l===9||l===3||l===6)&&(l=jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Tm(t,e)):Zc(t)}function Zc(e){var t=e;do{if((t.flags&32768)!==0){Tm(t,tl);return}e=t.return;var n=V0(t.alternate,t,On);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ve===0&&(Ve=5)}function Tm(e,t){do{var n=X0(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ve=6,Se=null}function Am(e,t,n,l,c,s,m,x,E){e.cancelPendingCommit=null;do Pc();while(et!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=Tr,zy(e,n,s,m,x,E),e===Le&&(Se=Le=null,Ee=0),va=t,al=e,_n=n,Ls=s,Us=c,gm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tx(Ii,function(){return Dm(),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=Re,Re|=4;try{G0(e,t,n)}finally{Re=m,L.p=c,_.T=l}}et=1,Rm(),zm(),Om()}}function Rm(){if(et===1){et=0;var e=al,t=va,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{sm(t,e);var s=Is,m=pd(e.containerInfo),x=s.focusedElem,E=s.selectionRange;if(m!==x&&x&&x.ownerDocument&&md(x.ownerDocument.documentElement,x)){if(E!==null&&wr(x)){var H=E.start,X=E.end;if(X===void 0&&(X=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(X,x.value.length);else{var K=x.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var k=B.getSelection(),ce=x.textContent.length,pe=Math.min(E.start,ce),Me=E.end===void 0?pe:Math.min(E.end,ce);!k.extend&&pe>Me&&(m=Me,Me=pe,pe=m);var O=hd(x,pe),A=hd(x,Me);if(O&&A&&(k.rangeCount!==1||k.anchorNode!==O.node||k.anchorOffset!==O.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var U=K.createRange();U.setStart(O.node,O.offset),k.removeAllRanges(),pe>Me?(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}}oo=!!Js,Is=Js=null}finally{Re=c,L.p=l,_.T=n}}e.current=t,et=2}}function zm(){if(et===2){et=0;var e=al,t=va,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{am(e,t.alternate,t)}finally{Re=c,L.p=l,_.T=n}}et=3}}function Om(){if(et===4||et===3){et=0,Sy();var e=al,t=va,n=_n,l=gm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,va=al=null,_m(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ll=null),lr(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Ba,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 s=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];s(x.value,{componentStack:x.stack})}}finally{_.T=t,L.p=c}}(_n&3)!==0&&Pc(),cn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Hs?xi++:(xi=0,Hs=e):xi=0,bi(0)}}function _m(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ei(t)))}function Pc(){return Rm(),zm(),Om(),Dm()}function Dm(){if(et!==5)return!1;var e=al,t=Ls;Ls=0;var n=lr(_n),l=_.T,c=L.p;try{L.p=32>n?32:n,_.T=null,n=Us,Us=null;var s=al,m=_n;if(et=0,va=al=null,_n=0,(Re&6)!==0)throw Error(r(331));var x=Re;if(Re|=4,mm(s.current),fm(s,s.current,m,n),Re=x,bi(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Ba,s)}catch{}return!0}finally{L.p=c,_.T=l,_m(e,t)}}function Mm(e,t,n){t=Yt(n,t),t=ps(e.stateNode,t,2),e=In(e,t,2),e!==null&&(Ya(e,2),cn(e))}function Oe(e,t,n){if(e.tag===3)Mm(e,e,n);else for(;t!==null;){if(t.tag===3){Mm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ll===null||!ll.has(l))){e=Yt(n,e),n=Lh(2),l=In(t,n,2),l!==null&&(Uh(n,l,t,e),Ya(l,2),cn(l));break}}t=t.return}}function Ys(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Q0;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)||(_s=!0,c.add(n),e=W0.bind(null,e,t,n),t.then(e,e))}function W0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Ee&n)===n&&(Ve===4||Ve===3&&(Ee&62914560)===Ee&&300>St()-Xc?(Re&2)===0&&ga(e,0):Ds|=n,pa===Ee&&(pa=0)),cn(e)}function Lm(e,t){t===0&&(t=Rf()),e=El(e,t),e!==null&&(Ya(e,t),cn(e))}function $0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lm(e,n)}function ex(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(r(314))}l!==null&&l.delete(t),Lm(e,n)}function tx(e,t){return $o(e,t)}var Jc=null,xa=null,qs=!1,Ic=!1,Vs=!1,cl=0;function cn(e){e!==xa&&e.next===null&&(xa===null?Jc=xa=e:xa=xa.next=e),Ic=!0,qs||(qs=!0,lx())}function bi(e,t){if(!Vs&&Ic){Vs=!0;do for(var n=!1,l=Jc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var s=0;else{var m=l.suspendedLanes,x=l.pingedLanes;s=(1<<31-Et(42|e)+1)-1,s&=c&~(m&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,km(l,s))}else s=Ee,s=tc(l,l===Le?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||ka(l,s)||(n=!0,km(l,s));l=l.next}while(n);Vs=!1}}function nx(){Um()}function Um(){Ic=qs=!1;var e=0;cl!==0&&hx()&&(e=cl);for(var t=St(),n=null,l=Jc;l!==null;){var c=l.next,s=Hm(l,t);s===0?(l.next=null,n===null?Jc=c:n.next=c,c===null&&(xa=n)):(n=l,(e!==0||(s&3)!==0)&&(Ic=!0)),l=c}et!==0&&et!==5||bi(e),cl!==0&&(cl=0)}function Hm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var m=31-Et(s),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=Ry(x,t)):E<=t&&(e.expiredLanes|=x),s&=~x}if(t=Le,n=Ee,n=tc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&er(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ka(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&er(l),lr(n)){case 2:case 8:n=Tf;break;case 32:n=Ii;break;case 268435456:n=Af;break;default:n=Ii}return l=Bm.bind(null,e),n=$o(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&er(l),e.callbackPriority=2,e.callbackNode=null,2}function Bm(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Pc()&&e.callbackNode!==n)return null;var l=Ee;return l=tc(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(xm(e,l,t),Hm(e,St()),e.callbackNode!=null&&e.callbackNode===n?Bm.bind(null,e):null)}function km(e,t){if(Pc())return null;xm(e,t,!0)}function lx(){px(function(){(Re&6)!==0?$o(jf,nx):Um()})}function Xs(){if(cl===0){var e=aa;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),cl=e}return cl}function Ym(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ic(""+e)}function qm(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 ax(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var s=Ym((c[ht]||null).action),m=l.submitter;m&&(t=(t=m[ht]||null)?Ym(t.formAction):m.getAttribute("formAction"),t!==null&&(s=t,m=null));var x=new sc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cl!==0){var E=m?qm(c,m):new FormData(c);ss(n,{pending:!0,data:E,method:c.method,action:s},null,E)}}else typeof s=="function"&&(x.preventDefault(),E=m?qm(c,m):new FormData(c),ss(n,{pending:!0,data:E,method:c.method,action:s},s,E))},currentTarget:c}]})}}for(var Gs=0;Gs<jr.length;Gs++){var Fs=jr[Gs],ix=Fs.toLowerCase(),cx=Fs[0].toUpperCase()+Fs.slice(1);Qt(ix,"on"+cx)}Qt(yd,"onAnimationEnd"),Qt(xd,"onAnimationIteration"),Qt(bd,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(w0,"onTransitionRun"),Qt(E0,"onTransitionStart"),Qt(C0,"onTransitionCancel"),Qt(Sd,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Si));function Vm(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 s=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!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=H;try{s(c)}catch(X){dc(X)}c.currentTarget=null,s=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=H;try{s(c)}catch(X){dc(X)}c.currentTarget=null,s=E}}}}function we(e,t){var n=t[ar];n===void 0&&(n=t[ar]=new Set);var l=e+"__bubble";n.has(l)||(Xm(t,e,2,!1),n.add(l))}function Ks(e,t,n){var l=0;t&&(l|=4),Xm(n,e,l,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Qs(e){if(!e[Wc]){e[Wc]=!0,Uf.forEach(function(n){n!=="selectionchange"&&(ox.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 Xm(e,t,n,l){switch(yp(t)){case 2:var c=Lx;break;case 8:c=Ux;break;default:c=ru}n=c.bind(null,t,n,e),c=void 0,!hr||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 Zs(e,t,n,l,c){var s=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=ql(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=s=m;continue e}x=x.parentNode}}l=l.return}Zf(function(){var H=s,X=fr(n),K=[];e:{var B=wd.get(e);if(B!==void 0){var k=sc,ce=e;switch(e){case"keypress":if(oc(n)===0)break e;case"keydown":case"keyup":k=e0;break;case"focusin":ce="focus",k=gr;break;case"focusout":ce="blur",k=gr;break;case"beforeblur":case"afterblur":k=gr;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=If;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Vy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=l0;break;case yd:case xd:case bd:k=Fy;break;case Sd:k=i0;break;case"scroll":case"scrollend":k=Yy;break;case"wheel":k=o0;break;case"copy":case"cut":case"paste":k=Qy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=$f;break;case"toggle":case"beforetoggle":k=s0}var pe=(t&4)!==0,Me=!pe&&(e==="scroll"||e==="scrollend"),O=pe?B!==null?B+"Capture":null:B;pe=[];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||O===null||(F=Xa(A,O),F!=null&&pe.push(wi(A,F,U))),Me)break;A=A.return}0<pe.length&&(B=new k(B,ce,null,n,X),K.push({event:B,listeners:pe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==ur&&(ce=n.relatedTarget||n.fromElement)&&(ql(ce)||ce[Yl]))break e;if((k||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ce=n.relatedTarget||n.toElement,k=H,ce=ce?ql(ce):null,ce!==null&&(Me=d(ce),pe=ce.tag,ce!==Me||pe!==5&&pe!==27&&pe!==6)&&(ce=null)):(k=null,ce=H),k!==ce)){if(pe=If,F="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=$f,F="onPointerLeave",O="onPointerEnter",A="pointer"),Me=k==null?B:Va(k),U=ce==null?B:Va(ce),B=new pe(F,A+"leave",k,n,X),B.target=Me,B.relatedTarget=U,F=null,ql(X)===H&&(pe=new pe(O,A+"enter",ce,n,X),pe.target=U,pe.relatedTarget=Me,F=pe),Me=F,k&&ce)t:{for(pe=rx,O=k,A=ce,U=0,F=O;F;F=pe(F))U++;F=0;for(var de=A;de;de=pe(de))F++;for(;0<U-F;)O=pe(O),U--;for(;0<F-U;)A=pe(A),F--;for(;U--;){if(O===A||A!==null&&O===A.alternate){pe=O;break t}O=pe(O),A=pe(A)}pe=null}else pe=null;k!==null&&Gm(K,B,k,pe,!1),ce!==null&&Me!==null&&Gm(K,Me,ce,pe,!0)}}e:{if(B=H?Va(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Te=od;else if(id(B))if(rd)Te=x0;else{Te=g0;var re=v0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&sr(H.elementType)&&(Te=od):Te=y0;if(Te&&(Te=Te(e,H))){cd(K,Te,n,X);break e}re&&re(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&rr(B,"number",B.value)}switch(re=H?Va(H):window,e){case"focusin":(id(re)||re.contentEditable==="true")&&(Jl=re,Er=H,Ia=null);break;case"focusout":Ia=Er=Jl=null;break;case"mousedown":Cr=!0;break;case"contextmenu":case"mouseup":case"dragend":Cr=!1,vd(K,n,X);break;case"selectionchange":if(S0)break;case"keydown":case"keyup":vd(K,n,X)}var be;if(xr)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Pl?ld(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(ed&&n.locale!=="ko"&&(Pl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Pl&&(be=Pf()):(Gn=X,mr="value"in Gn?Gn.value:Gn.textContent,Pl=!0)),re=$c(H,Ce),0<re.length&&(Ce=new Wf(Ce,e,null,n,X),K.push({event:Ce,listeners:re}),be?Ce.data=be:(be=ad(n),be!==null&&(Ce.data=be)))),(be=f0?d0(e,n):h0(e,n))&&(Ce=$c(H,"onBeforeInput"),0<Ce.length&&(re=new Wf("onBeforeInput","beforeinput",null,n,X),K.push({event:re,listeners:Ce}),re.data=be)),ax(K,e,H,n,X)}Vm(K,t)})}function wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $c(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=Xa(e,n),c!=null&&l.unshift(wi(e,c,s)),c=Xa(e,t),c!=null&&l.push(wi(e,c,s))),e.tag===3)return l;e=e.return}return[]}function rx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gm(e,t,n,l,c){for(var s=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=Xa(n,s),H!=null&&m.unshift(wi(n,H,E))):c||(H=Xa(n,s),H!=null&&m.push(wi(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var sx=/\r\n?/g,ux=/\u0000|\uFFFD/g;function Fm(e){return(typeof e=="string"?e:""+e).replace(sx,`
|
|
9
|
-
`).replace(ux,"")}function Km(e,t){return t=Fm(t),Fm(e)===t}function De(e,t,n,l,c,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Kl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Kl(e,""+l);break;case"className":lc(e,"class",l);break;case"tabIndex":lc(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":lc(e,n,l);break;case"style":Kf(e,l,s);break;case"data":if(t!=="object"){lc(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=ic(""+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 s=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",c.name,c,null),De(e,t,"formEncType",c.formEncType,c,null),De(e,t,"formMethod",c.formMethod,c,null),De(e,t,"formTarget",c.formTarget,c,null)):(De(e,t,"encType",c.encType,c,null),De(e,t,"method",c.method,c,null),De(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ic(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=gn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(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=ic(""+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":we("beforetoggle",e),we("toggle",e),nc(e,"popover",l);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":nc(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=By.get(n)||n,nc(e,n,l))}}function Ps(e,t,n,l,c,s){switch(n){case"style":Kf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Kl(e,l):(typeof l=="number"||typeof l=="bigint")&&Kl(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),s=e[ht]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,c),typeof l=="function")){typeof s!="function"&&s!==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,""):nc(e,n,l)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var m=n[s];if(m!=null)switch(s){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,s,m,n,null)}}c&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var x=s=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var X=n[l];if(X!=null)switch(l){case"name":c=X;break;case"type":m=X;break;case"checked":E=X;break;case"defaultChecked":H=X;break;case"value":s=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,t));break;default:De(e,t,l,X,n,null)}}Vf(e,s,x,E,H,m,c,!1);return;case"select":we("invalid",e),l=m=s=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":s=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:De(e,t,c,x,n,null)}t=s,n=m,e.multiple=!!l,t!=null?Fl(e,!!l,t,!1):n!=null&&Fl(e,!!l,n,!0);return;case"textarea":we("invalid",e),s=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":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:De(e,t,m,x,n,null)}Gf(e,l,c,s);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":De(e,t,E,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<Si.length;l++)we(Si[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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(r(137,t));default:De(e,t,H,l,n,null)}return;default:if(sr(t)){for(X in n)n.hasOwnProperty(X)&&(l=n[X],l!==void 0&&Ps(e,t,X,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&De(e,t,x,l,n,null))}function fx(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,s=null,m=null,x=null,E=null,H=null,X=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)||De(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":s=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":X=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:k!==K&&De(e,t,B,k,l,K)}}or(e,m,x,E,H,X,s,c);return;case"select":k=m=x=B=null;for(s in n)if(E=n[s],n.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(s)||De(e,t,s,null,l,E)}for(c in l)if(s=l[c],E=n[c],l.hasOwnProperty(c)&&(s!=null||E!=null))switch(c){case"value":B=s;break;case"defaultValue":x=s;break;case"multiple":m=s;default:s!==E&&De(e,t,c,s,l,E)}t=x,n=m,l=k,B!=null?Fl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Fl(e,!!n,t,!0):Fl(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:De(e,t,x,null,l,c)}for(m in l)if(c=l[m],s=n[m],l.hasOwnProperty(m)&&(c!=null||s!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==s&&De(e,t,m,c,l,s)}Xf(e,B,k);return;case"option":for(var ce in n)B=n[ce],n.hasOwnProperty(ce)&&B!=null&&!l.hasOwnProperty(ce)&&(ce==="selected"?e.selected=!1:De(e,t,ce,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":De(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 pe in n)B=n[pe],n.hasOwnProperty(pe)&&B!=null&&!l.hasOwnProperty(pe)&&De(e,t,pe,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(r(137,t));break;default:De(e,t,H,B,l,k)}return;default:if(sr(t)){for(var Me in n)B=n[Me],n.hasOwnProperty(Me)&&B!==void 0&&!l.hasOwnProperty(Me)&&Ps(e,t,Me,void 0,l,B);for(X in l)B=l[X],k=n[X],!l.hasOwnProperty(X)||B===k||B===void 0&&k===void 0||Ps(e,t,X,B,l,k);return}}for(var O in n)B=n[O],n.hasOwnProperty(O)&&B!=null&&!l.hasOwnProperty(O)&&De(e,t,O,null,l,B);for(K in l)B=l[K],k=n[K],!l.hasOwnProperty(K)||B===k||B==null&&k==null||De(e,t,K,B,l,k)}function Qm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dx(){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],s=c.transferSize,m=c.initiatorType,x=c.duration;if(s&&x&&Qm(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 X=E.transferSize,K=E.initiatorType;X&&Qm(K)&&(E=E.responseEnd,m+=X*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(s+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 Js=null,Is=null;function eo(e){return e.nodeType===9?e:e.ownerDocument}function Zm(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 Pm(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 Ws(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 $s=null;function hx(){var e=window.event;return e&&e.type==="popstate"?e===$s?!1:($s=e,!0):($s=null,!1)}var Jm=typeof setTimeout=="function"?setTimeout:void 0,mx=typeof clearTimeout=="function"?clearTimeout:void 0,Im=typeof Promise=="function"?Promise:void 0,px=typeof queueMicrotask=="function"?queueMicrotask:typeof Im<"u"?function(e){return Im.resolve(null).then(e).catch(vx)}:Jm;function vx(e){setTimeout(function(){throw e})}function ol(e){return e==="head"}function Wm(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),Ea(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ei(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ei(n);for(var s=n.firstChild;s;){var m=s.nextSibling,x=s.nodeName;s[qa]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=m}}else n==="body"&&Ei(e.ownerDocument.body);n=c}while(n);Ea(t)}function $m(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 eu(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":eu(n),ir(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function gx(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[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function yx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function ep(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function tu(e){return e.data==="$?"||e.data==="$~"}function nu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xx(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 Ft(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 lu=null;function tp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function np(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 lp(e,t,n){switch(t=eo(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ir(e)}var Kt=new Map,ap=new Set;function to(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=L.d;L.d={f:bx,r:Sx,D:wx,C:Ex,L:Cx,m:Nx,X:Tx,S:jx,M:Ax};function bx(){var e=Dn.f(),t=Kc();return e||t}function Sx(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Sh(t):Dn.r(e)}var ba=typeof document>"u"?null:document;function ip(e,t,n){var l=ba;if(l&&typeof t=="string"&&t){var c=Bt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),ap.has(c)||(ap.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),st(t,"link",e),lt(t),l.head.appendChild(t)))}}function wx(e){Dn.D(e),ip("dns-prefetch",e,null)}function Ex(e,t){Dn.C(e,t),ip("preconnect",e,t)}function Cx(e,t,n){Dn.L(e,t,n);var l=ba;if(l&&e&&t){var c='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Bt(n.imageSizes)+'"]')):c+='[href="'+Bt(e)+'"]';var s=c;switch(t){case"style":s=Sa(e);break;case"script":s=wa(e)}Kt.has(s)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(s,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Ci(s))||t==="script"&&l.querySelector(Ni(s))||(t=l.createElement("link"),st(t,"link",e),lt(t),l.head.appendChild(t)))}}function Nx(e,t){Dn.m(e,t);var n=ba;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Bt(l)+'"][href="'+Bt(e)+'"]',s=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=wa(e)}if(!Kt.has(s)&&(e=b({rel:"modulepreload",href:e},t),Kt.set(s,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ni(s)))return}l=n.createElement("link"),st(l,"link",e),lt(l),n.head.appendChild(l)}}}function jx(e,t,n){Dn.S(e,t,n);var l=ba;if(l&&e){var c=Xl(l).hoistableStyles,s=Sa(e);t=t||"default";var m=c.get(s);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(Ci(s)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(s))&&au(e,n);var E=m=l.createElement("link");lt(E),st(E,"link",e),E._p=new Promise(function(H,X){E.onload=H,E.onerror=X}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,no(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(s,m)}}}function Tx(e,t){Dn.X(e,t);var n=ba;if(n&&e){var l=Xl(n).hoistableScripts,c=wa(e),s=l.get(c);s||(s=n.querySelector(Ni(c)),s||(e=b({src:e,async:!0},t),(t=Kt.get(c))&&iu(e,t),s=n.createElement("script"),lt(s),st(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function Ax(e,t){Dn.M(e,t);var n=ba;if(n&&e){var l=Xl(n).hoistableScripts,c=wa(e),s=l.get(c);s||(s=n.querySelector(Ni(c)),s||(e=b({src:e,async:!0,type:"module"},t),(t=Kt.get(c))&&iu(e,t),s=n.createElement("script"),lt(s),st(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function cp(e,t,n,l){var c=(c=he.current)?to(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Sa(n.href),n=Xl(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=Sa(n.href);var s=Xl(c).hoistableStyles,m=s.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,m),(s=c.querySelector(Ci(e)))&&!s._p&&(m.instance=s,m.state.loading=5),Kt.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},Kt.set(e,n),s||Rx(c,e,n,m.state))),t&&l===null)throw Error(r(528,""));return m}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(n),n=Xl(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(r(444,e))}}function Sa(e){return'href="'+Bt(e)+'"'}function Ci(e){return'link[rel="stylesheet"]['+e+"]"}function op(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Rx(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}),st(t,"link",n),lt(t),e.head.appendChild(t))}function wa(e){return'[src="'+Bt(e)+'"]'}function Ni(e){return"script[async]"+e}function rp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(l)return t.instance=l,lt(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"),lt(l),st(l,"style",c),no(l,n.precedence,e),t.instance=l;case"stylesheet":c=Sa(n.href);var s=e.querySelector(Ci(c));if(s)return t.state.loading|=4,t.instance=s,lt(s),s;l=op(n),(c=Kt.get(c))&&au(l,c),s=(e.ownerDocument||e).createElement("link"),lt(s);var m=s;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),st(s,"link",l),t.state.loading|=4,no(s,n.precedence,e),t.instance=s;case"script":return s=wa(n.src),(c=e.querySelector(Ni(s)))?(t.instance=c,lt(c),c):(l=n,(c=Kt.get(s))&&(l=b({},n),iu(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),lt(c),st(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,no(l,n.precedence,e));return t.instance}function no(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,s=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)s=x;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function iu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lo=null;function sp(e,t,n){if(lo===null){var l=new Map,c=lo=new Map;c.set(n,l)}else c=lo,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 s=n[c];if(!(s[qa]||s[it]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var m=s.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(s):l.set(m,[s])}}return l}function up(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function zx(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 fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ox(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=Sa(l.href),s=t.querySelector(Ci(c));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ao.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,lt(s);return}s=t.ownerDocument||t,l=op(l),(c=Kt.get(c))&&au(l,c),s=s.createElement("link"),lt(s);var m=s;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),st(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ao.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var cu=0;function _x(e,t){return e.stylesheets&&e.count===0&&co(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&co(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&cu===0&&(cu=62500*dx());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&co(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>cu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ao(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)co(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var io=null;function co(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,io=new Map,t.forEach(Dx,e),io=null,ao.call(e))}function Dx(e,t){if(!(t.state.loading&4)){var n=io.get(e);if(n)var l=n.get(null);else{n=new Map,io.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var m=c[s];(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"),s=n.get(m)||l,s===l&&n.set(null,c),n.set(m,c),this.count++,l=ao.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ji={$$typeof:M,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Mx(e,t,n,l,c,s,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=tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tr(0),this.hiddenUpdates=tr(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function dp(e,t,n,l,c,s,m,x,E,H,X,K){return e=new Mx(e,t,n,m,E,H,X,K,x),t=1,s===!0&&(t|=24),s=Nt(3,null,null,t),e.current=s,s.stateNode=e,t=kr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},Xr(s),e}function hp(e){return e?(e=$l,e):$l}function mp(e,t,n,l,c,s){c=hp(c),l.context===null?l.context=c:l.pendingContext=c,l=Jn(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=In(e,l,t),n!==null&&(xt(n,e,t),ai(n,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ou(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function vp(e){if(e.tag===13||e.tag===31){var t=El(e,67108864);t!==null&&xt(t,e,67108864),ou(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=zt();t=nr(t);var n=El(e,t);n!==null&&xt(n,e,t),ou(e,t)}}var oo=!0;function Lx(e,t,n,l){var c=_.T;_.T=null;var s=L.p;try{L.p=2,ru(e,t,n,l)}finally{L.p=s,_.T=c}}function Ux(e,t,n,l){var c=_.T;_.T=null;var s=L.p;try{L.p=8,ru(e,t,n,l)}finally{L.p=s,_.T=c}}function ru(e,t,n,l){if(oo){var c=su(l);if(c===null)Zs(e,t,l,ro,n),xp(e,l);else if(Bx(c,e,t,n,l))l.stopPropagation();else if(xp(e,l),t&4&&-1<Hx.indexOf(e)){for(;c!==null;){var s=Vl(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var m=yl(s.pendingLanes);if(m!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-Et(m);x.entanglements[1]|=E,m&=~E}cn(s),(Re&6)===0&&(Gc=St()+500,bi(0))}}break;case 31:case 13:x=El(s,2),x!==null&&xt(x,s,2),Kc(),ou(s,2)}if(s=su(l),s===null&&Zs(e,t,l,ro,n),s===c)break;c=s}c!==null&&l.stopPropagation()}else Zs(e,t,l,null,n)}}function su(e){return e=fr(e),uu(e)}var ro=null;function uu(e){if(ro=null,e=ql(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 ro=e,null}function yp(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(wy()){case jf:return 2;case Tf:return 8;case Ii:case Ey:return 32;case Af:return 268435456;default:return 32}default:return 32}}var fu=!1,rl=null,sl=null,ul=null,Ti=new Map,Ai=new Map,fl=[],Hx="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 xp(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(t.pointerId)}}function Ri(e,t,n,l,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[c]},t!==null&&(t=Vl(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Bx(e,t,n,l,c){switch(t){case"focusin":return rl=Ri(rl,e,t,n,l,c),!0;case"dragenter":return sl=Ri(sl,e,t,n,l,c),!0;case"mouseover":return ul=Ri(ul,e,t,n,l,c),!0;case"pointerover":var s=c.pointerId;return Ti.set(s,Ri(Ti.get(s)||null,e,t,n,l,c)),!0;case"gotpointercapture":return s=c.pointerId,Ai.set(s,Ri(Ai.get(s)||null,e,t,n,l,c)),!0}return!1}function bp(e){var t=ql(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,Mf(e.priority,function(){gp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Mf(e.priority,function(){gp(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 so(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=su(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ur=l,n.target.dispatchEvent(l),ur=null}else return t=Vl(n),t!==null&&vp(t),e.blockedOn=n,!1;t.shift()}return!0}function Sp(e,t,n){so(e)&&n.delete(t)}function kx(){fu=!1,rl!==null&&so(rl)&&(rl=null),sl!==null&&so(sl)&&(sl=null),ul!==null&&so(ul)&&(ul=null),Ti.forEach(Sp),Ai.forEach(Sp)}function uo(e,t){e.blockedOn===t&&(e.blockedOn=null,fu||(fu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,kx)))}var fo=null;function wp(e){fo!==e&&(fo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){fo===e&&(fo=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(uu(l||n)===null)continue;break}var s=Vl(n);s!==null&&(e.splice(t,3),t-=3,ss(s,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function Ea(e){function t(E){return uo(E,e)}rl!==null&&uo(rl,e),sl!==null&&uo(sl,e),ul!==null&&uo(ul,e),Ti.forEach(t),Ai.forEach(t);for(var n=0;n<fl.length;n++){var l=fl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<fl.length&&(n=fl[0],n.blockedOn===null);)bp(n),n.blockedOn===null&&fl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],s=n[l+1],m=c[ht]||null;if(typeof s=="function")m||wp(n);else if(m){var x=null;if(s&&s.hasAttribute("formAction")){if(c=s,m=s[ht]||null)x=m.formAction;else if(uu(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),wp(n)}}}function Ep(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.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 s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 du(e){this._internalRoot=e}ho.prototype.render=du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=zt();mp(n,l,e,t,null,null)},ho.prototype.unmount=du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mp(e.current,2,null,e,null,null),Kc(),t[Yl]=null}};function ho(e){this._internalRoot=e}ho.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fl.length&&t!==0&&t<fl[n].priority;n++);fl.splice(n,0,e),n===0&&bp(e)}};var Cp=i.version;if(Cp!=="19.2.3")throw Error(r(527,Cp,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Yx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mo.isDisabled&&mo.supportsFiber)try{Ba=mo.inject(Yx),wt=mo}catch{}}return Oi.createRoot=function(e,t){if(!f(e))throw Error(r(299));var n=!1,l="",c=Oh,s=_h,m=Dh;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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=dp(e,1,!1,null,null,n,l,null,c,s,m,Ep),e[Yl]=t.current,Qs(e),new du(t)},Oi.hydrateRoot=function(e,t,n){if(!f(e))throw Error(r(299));var l=!1,c="",s=Oh,m=_h,x=Dh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=dp(e,1,!0,t,n??null,l,c,E,s,m,x,Ep),t.context=hp(null),n=t.current,l=zt(),l=nr(l),c=Jn(l),c.callback=null,In(n,c,l),n=l,t.current.lanes=n,Ya(t,n),cn(t),e[Yl]=t.current,Qs(e),new ho(t)},Oi.version="19.2.3",Oi}var Mp;function Jx(){if(Mp)return pu.exports;Mp=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(),pu.exports=Px(),pu.exports}var Ix=Jx();var Lp="popstate";function Wx(a={}){function i(r,f){let{pathname:d,search:h,hash:p}=r.location;return Uu("",{pathname:d,search:h,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function o(r,f){return typeof f=="string"?f:qi(f)}return eb(i,o,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Lt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function $x(){return Math.random().toString(36).substring(2,10)}function Up(a,i){return{usr:a.state,key:a.key,idx:i}}function Uu(a,i,o=null,r){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?_a(i):i,state:o,key:i&&i.key||r||$x()}}function qi({pathname:a="/",search:i="",hash:o=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(a+=o.charAt(0)==="#"?o:"#"+o),a}function _a(a){let i={};if(a){let o=a.indexOf("#");o>=0&&(i.hash=a.substring(o),a=a.substring(0,o));let r=a.indexOf("?");r>=0&&(i.search=a.substring(r),a=a.substring(0,r)),a&&(i.pathname=a)}return i}function eb(a,i,o,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,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 T=S(),z=T==null?null:T-y;y=T,v&&v({action:p,location:w.location,delta:z})}function C(T,z){p="PUSH";let R=Uu(w.location,T,z);y=S()+1;let M=Up(R,y),q=w.createHref(R);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 j(T,z){p="REPLACE";let R=Uu(w.location,T,z);y=S();let M=Up(R,y),q=w.createHref(R);h.replaceState(M,"",q),d&&v&&v({action:p,location:w.location,delta:0})}function D(T){return tb(T)}let w={get action(){return p},get location(){return a(f,h)},listen(T){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(Lp,b),v=T,()=>{f.removeEventListener(Lp,b),v=null}},createHref(T){return i(f,T)},createURL:D,encodeLocation(T){let z=D(T);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:j,go(T){return h.go(T)}};return w}function tb(a,i=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),ke(o,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:qi(a);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Av(a,i,o="/"){return nb(a,i,o,!1)}function nb(a,i,o,r){let f=typeof i=="string"?_a(i):i,d=Hn(f.pathname||"/",o);if(d==null)return null;let h=Rv(a);lb(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=mb(d);p=db(h[v],y,r)}return p}function Rv(a,i=[],o=[],r="",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(r)&&v)return;ke(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let b=Un([r,S.relativePath]),C=o.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}".`),Rv(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:ub(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of zv(h.path))d(h,p,!0,v)}),i}function zv(a){let i=a.split("/");if(i.length===0)return[];let[o,...r]=i,f=o.endsWith("?"),d=o.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let h=zv(r.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 lb(a){a.sort((i,o)=>i.score!==o.score?o.score-i.score:fb(i.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var ab=/^:[\w-]+$/,ib=3,cb=2,ob=1,rb=10,sb=-2,Hp=a=>a==="*";function ub(a,i){let o=a.split("/"),r=o.length;return o.some(Hp)&&(r+=sb),i&&(r+=cb),o.filter(f=>!Hp(f)).reduce((f,d)=>f+(ab.test(d)?ib:d===""?ob:rb),r)}function fb(a,i){return a.length===i.length&&a.slice(0,-1).every((r,f)=>r===i[f])?a[a.length-1]-i[i.length-1]:0}function db(a,i,o=!1){let{routesMeta:r}=a,f={},d="/",h=[];for(let p=0;p<r.length;++p){let v=r[p],y=p===r.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=zo({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&o&&!r[r.length-1].route.index&&(b=zo({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(f,b.params),h.push({params:f,pathname:Un([d,b.pathname]),pathnameBase:yb(Un([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=Un([d,b.pathnameBase]))}return h}function zo(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[o,r]=hb(a.path,a.caseSensitive,a.end),f=i.match(o);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:r.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const j=p[C];return b&&!j?y[S]=void 0:y[S]=(j||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function hb(a,i=!1,o=!0){Lt(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 r=[],f="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(r.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),f+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":a!==""&&a!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),r]}function mb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Lt(!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 Hn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,r=a.charAt(o);return r&&r!=="/"?null:a.slice(o)||"/"}var Ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pb=a=>Ov.test(a);function vb(a,i="/"){let{pathname:o,search:r="",hash:f=""}=typeof a=="string"?_a(a):a,d;if(o)if(pb(o))d=o;else{if(o.includes("//")){let h=o;o=o.replace(/\/\/+/g,"/"),Lt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${o}`)}o.startsWith("/")?d=Bp(o.substring(1),"/"):d=Bp(o,i)}else d=i;return{pathname:d,search:xb(r),hash:bb(f)}}function Bp(a,i){let o=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function xu(a,i,o,r){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gb(a){return a.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function tf(a){let i=gb(a);return i.map((o,r)=>r===i.length-1?o.pathname:o.pathnameBase)}function nf(a,i,o,r=!1){let f;typeof a=="string"?f=_a(a):(f={...a},ke(!f.pathname||!f.pathname.includes("?"),xu("?","pathname","search",f)),ke(!f.pathname||!f.pathname.includes("#"),xu("#","pathname","hash",f)),ke(!f.search||!f.search.includes("#"),xu("#","search","hash",f)));let d=a===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=o;else{let b=i.length-1;if(!r&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;f.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=vb(f,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var Un=a=>a.join("/").replace(/\/\/+/g,"/"),yb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),xb=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,bb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Sb=class{constructor(a,i,o,r=!1){this.status=a,this.statusText=i||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function wb(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Eb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var _v=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dv(a,i){let o=a;if(typeof o!="string"||!Ov.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,f=!1;if(_v)try{let d=new URL(window.location.href),h=o.startsWith("//")?new URL(d.protocol+o):new URL(o),p=Hn(h.pathname,i);h.origin===d.origin&&p!=null?o=p+h.search+h.hash:f=!0}catch{Lt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Mv=["POST","PUT","PATCH","DELETE"];new Set(Mv);var Cb=["GET",...Mv];new Set(Cb);var Da=g.createContext(null);Da.displayName="DataRouter";var Yo=g.createContext(null);Yo.displayName="DataRouterState";var Nb=g.createContext(!1),Lv=g.createContext({isTransitioning:!1});Lv.displayName="ViewTransition";var jb=g.createContext(new Map);jb.displayName="Fetchers";var Tb=g.createContext(null);Tb.displayName="Await";var Ut=g.createContext(null);Ut.displayName="Navigation";var Fi=g.createContext(null);Fi.displayName="Location";var dn=g.createContext({outlet:null,matches:[],isDataRoute:!1});dn.displayName="Route";var lf=g.createContext(null);lf.displayName="RouteError";var Uv="REACT_ROUTER_ERROR",Ab="REDIRECT",Rb="ROUTE_ERROR_RESPONSE";function zb(a){if(a.startsWith(`${Uv}:${Ab}:{`))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 Ob(a){if(a.startsWith(`${Uv}:${Rb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Sb(i.status,i.statusText,i.data)}catch{}}function _b(a,{relative:i}={}){ke(Ma(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=g.useContext(Ut),{hash:f,pathname:d,search:h}=Ki(a,{relative:i}),p=d;return o!=="/"&&(p=d==="/"?o:Un([o,d])),r.createHref({pathname:p,search:h,hash:f})}function Ma(){return g.useContext(Fi)!=null}function hn(){return ke(Ma(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Fi).location}var Hv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Bv(a){g.useContext(Ut).static||g.useLayoutEffect(a)}function qn(){let{isDataRoute:a}=g.useContext(dn);return a?Fb():Db()}function Db(){ke(Ma(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(Da),{basename:i,navigator:o}=g.useContext(Ut),{matches:r}=g.useContext(dn),{pathname:f}=hn(),d=JSON.stringify(tf(r)),h=g.useRef(!1);return Bv(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Lt(h.current,Hv),!h.current)return;if(typeof v=="number"){o.go(v);return}let S=nf(v,JSON.parse(d),f,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:Un([i,S.pathname])),(y.replace?o.replace:o.push)(S,y.state,y)},[i,o,d,f,a])}g.createContext(null);function Ki(a,{relative:i}={}){let{matches:o}=g.useContext(dn),{pathname:r}=hn(),f=JSON.stringify(tf(o));return g.useMemo(()=>nf(a,JSON.parse(f),r,i==="path"),[a,f,r,i])}function Mb(a,i){return kv(a,i)}function kv(a,i,o,r,f){ke(Ma(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Ut),{matches:h}=g.useContext(dn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let R=b&&b.path||"";qv(y,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) 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.
|
|
8
|
+
`+l.stack}}var Ir=Object.prototype.hasOwnProperty,Wr=a.unstable_scheduleCallback,$r=a.unstable_cancelCallback,Sy=a.unstable_shouldYield,wy=a.unstable_requestPaint,St=a.unstable_now,Ey=a.unstable_getCurrentPriorityLevel,jf=a.unstable_ImmediatePriority,Tf=a.unstable_UserBlockingPriority,Ii=a.unstable_NormalPriority,Cy=a.unstable_LowPriority,Af=a.unstable_IdlePriority,Ny=a.log,jy=a.unstable_setDisableYieldValue,Ba=null,wt=null;function Vn(e){if(typeof Ny=="function"&&jy(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Ba,e)}catch{}}var Et=Math.clz32?Math.clz32:Ry,Ty=Math.log,Ay=Math.LN2;function Ry(e){return e>>>=0,e===0?32:31-(Ty(e)/Ay|0)|0}var Wi=256,$i=262144,ec=4194304;function yl(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 tc(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,s=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~s,l!==0?c=yl(l):(m&=x,m!==0?c=yl(m):n||(n=x&~e,n!==0&&(c=yl(n))))):(x=l&~s,x!==0?c=yl(x):m!==0?c=yl(m):n||(n=l&~e,n!==0&&(c=yl(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zy(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 Rf(){var e=ec;return ec<<=1,(ec&62914560)===0&&(ec=4194304),e}function eo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ya(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oy(e,t,n,l,c,s){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 X=31-Et(n),K=1<<X;x[X]=0,E[X]=-1;var B=H[X];if(B!==null)for(H[X]=null,X=0;X<B.length;X++){var k=B[X];k!==null&&(k.lane&=-536870913)}n&=~K}l!==0&&zf(e,l,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(m&~t))}function zf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Of(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Et(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function _f(e,t){var n=t&-t;return n=(n&42)!==0?1:to(n),(n&(e.suspendedLanes|t))!==0?0:n}function to(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 no(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Df(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:yp(e.type))}function Mf(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Xn=Math.random().toString(36).slice(2),it="__reactFiber$"+Xn,ht="__reactProps$"+Xn,Yl="__reactContainer$"+Xn,lo="__reactEvents$"+Xn,_y="__reactListeners$"+Xn,Dy="__reactHandles$"+Xn,Lf="__reactResources$"+Xn,qa="__reactMarker$"+Xn;function ao(e){delete e[it],delete e[ht],delete e[lo],delete e[_y],delete e[Dy]}function ql(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yl]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=np(e);e!==null;){if(n=e[it])return n;e=np(e)}return t}e=n,n=e.parentNode}return null}function Vl(e){if(e=e[it]||e[Yl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Xl(e){var t=e[Lf];return t||(t=e[Lf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[qa]=!0}var Uf=new Set,Hf={};function xl(e,t){Gl(e,t),Gl(e+"Capture",t)}function Gl(e,t){for(Hf[e]=t,e=0;e<t.length;e++)Uf.add(t[e])}var My=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]*$"),Bf={},kf={};function Ly(e){return Ir.call(kf,e)?!0:Ir.call(Bf,e)?!1:My.test(e)?kf[e]=!0:(Bf[e]=!0,!1)}function nc(e,t,n){if(Ly(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 lc(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 vn(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 Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uy(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,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,s.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 io(e){if(!e._valueTracker){var t=Yf(e)?"checked":"value";e._valueTracker=Uy(e,t,""+e[t])}}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Yf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ac(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 Hy=/[\n"\\]/g;function Bt(e){return e.replace(Hy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function co(e,t,n,l,c,s,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=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ro(e,m,Ht(t)):n!=null?ro(e,m,Ht(n)):l!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Ht(x):e.removeAttribute("name")}function Vf(e,t,n,l,c,s,m,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){io(e);return}n=n!=null?""+Ht(n):"",t=t!=null?""+Ht(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),io(e)}function ro(e,t,n){t==="number"&&ac(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Fl(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=""+Ht(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 Xf(e,t,n){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ht(n):""}function Gf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(fe(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ht(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),io(e)}function Kl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var By=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 Ff(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||By.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Kf(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(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&&Ff(e,c,l)}else for(var s in t)t.hasOwnProperty(s)&&Ff(e,s,t[s])}function oo(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 ky=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"]]),Yy=/^[\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 ic(e){return Yy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function gn(){}var so=null;function uo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ql=null,Zl=null;function Qf(e){var t=Vl(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(co(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="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[ht]||null;if(!c)throw Error(o(90));co(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&&qf(l)}break e;case"textarea":Xf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Fl(e,!!n.multiple,t,!1)}}}var fo=!1;function Zf(e,t,n){if(fo)return e(t,n);fo=!0;try{var l=e(t);return l}finally{if(fo=!1,(Ql!==null||Zl!==null)&&(Kc(),Ql&&(t=Ql,e=Zl,Zl=Ql=null,Qf(t),e)))for(t=0;t<e.length;t++)Qf(e[t])}}function Xa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ht]||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(o(231,t,typeof n));return n}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ho=!1;if(yn)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){ho=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{ho=!1}var Gn=null,mo=null,cc=null;function Pf(){if(cc)return cc;var e,t=mo,n=t.length,l,c="value"in Gn?Gn.value:Gn.textContent,s=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[s-l];l++);return cc=c.slice(e,1<l?1-l:void 0)}function rc(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 Jf(){return!1}function mt(e){function t(n,l,c,s,m){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=s,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?oc:Jf,this.isPropagationStopped=Jf,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 bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sc=mt(bl),Fa=b({},bl,{view:0,detail:0}),qy=mt(Fa),po,vo,Ka,uc=b({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yo,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!==Ka&&(Ka&&e.type==="mousemove"?(po=e.screenX-Ka.screenX,vo=e.screenY-Ka.screenY):vo=po=0,Ka=e),po)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),If=mt(uc),Vy=b({},uc,{dataTransfer:0}),Xy=mt(Vy),Gy=b({},Fa,{relatedTarget:0}),go=mt(Gy),Fy=b({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ky=mt(Fy),Qy=b({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zy=mt(Qy),Py=b({},bl,{data:0}),Wf=mt(Py),Jy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iy={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"},Wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $y(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wy[e])?!!t[e]:!1}function yo(){return $y}var e0=b({},Fa,{key:function(e){if(e.key){var t=Jy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Iy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yo,charCode:function(e){return e.type==="keypress"?rc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),t0=mt(e0),n0=b({},uc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=mt(n0),l0=b({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yo}),a0=mt(l0),i0=b({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),c0=mt(i0),r0=b({},uc,{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}),o0=mt(r0),s0=b({},bl,{newState:0,oldState:0}),u0=mt(s0),f0=[9,13,27,32],xo=yn&&"CompositionEvent"in window,Qa=null;yn&&"documentMode"in document&&(Qa=document.documentMode);var d0=yn&&"TextEvent"in window&&!Qa,ed=yn&&(!xo||Qa&&8<Qa&&11>=Qa),td=" ",nd=!1;function ld(e,t){switch(e){case"keyup":return f0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function h0(e,t){switch(e){case"compositionend":return ad(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function m0(e,t){if(Pl)return e==="compositionend"||!xo&&ld(e,t)?(e=Pf(),cc=mo=Gn=null,Pl=!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 ed&&t.locale!=="ko"?null:t.data;default:return null}}var p0={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 id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!p0[e.type]:t==="textarea"}function cd(e,t,n,l){Ql?Zl?Zl.push(l):Zl=[l]:Ql=l,t=$c(t,"onChange"),0<t.length&&(n=new sc("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Za=null,Pa=null;function v0(e){Vm(e,0)}function fc(e){var t=Va(e);if(qf(t))return e}function rd(e,t){if(e==="change")return t}var od=!1;if(yn){var bo;if(yn){var So="oninput"in document;if(!So){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),So=typeof sd.oninput=="function"}bo=So}else bo=!1;od=bo&&(!document.documentMode||9<document.documentMode)}function ud(){Za&&(Za.detachEvent("onpropertychange",fd),Pa=Za=null)}function fd(e){if(e.propertyName==="value"&&fc(Pa)){var t=[];cd(t,Pa,e,uo(e)),Zf(v0,t)}}function g0(e,t,n){e==="focusin"?(ud(),Za=t,Pa=n,Za.attachEvent("onpropertychange",fd)):e==="focusout"&&ud()}function y0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fc(Pa)}function x0(e,t){if(e==="click")return fc(t)}function b0(e,t){if(e==="input"||e==="change")return fc(t)}function S0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:S0;function Ja(e,t){if(Ct(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(!Ir.call(t,c)||!Ct(e[c],t[c]))return!1}return!0}function dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hd(e,t){var n=dd(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=dd(n)}}function md(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?md(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ac(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=ac(e.document)}return t}function wo(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 w0=yn&&"documentMode"in document&&11>=document.documentMode,Jl=null,Eo=null,Ia=null,Co=!1;function vd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Co||Jl==null||Jl!==ac(l)||(l=Jl,"selectionStart"in l&&wo(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}),Ia&&Ja(Ia,l)||(Ia=l,l=$c(Eo,"onSelect"),0<l.length&&(t=new sc("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Jl)))}function Sl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Il={animationend:Sl("Animation","AnimationEnd"),animationiteration:Sl("Animation","AnimationIteration"),animationstart:Sl("Animation","AnimationStart"),transitionrun:Sl("Transition","TransitionRun"),transitionstart:Sl("Transition","TransitionStart"),transitioncancel:Sl("Transition","TransitionCancel"),transitionend:Sl("Transition","TransitionEnd")},No={},gd={};yn&&(gd=document.createElement("div").style,"AnimationEvent"in window||(delete Il.animationend.animation,delete Il.animationiteration.animation,delete Il.animationstart.animation),"TransitionEvent"in window||delete Il.transitionend.transition);function wl(e){if(No[e])return No[e];if(!Il[e])return e;var t=Il[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gd)return No[e]=t[n];return e}var yd=wl("animationend"),xd=wl("animationiteration"),bd=wl("animationstart"),E0=wl("transitionrun"),C0=wl("transitionstart"),N0=wl("transitioncancel"),Sd=wl("transitionend"),wd=new Map,jo="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(" ");jo.push("scrollEnd");function Qt(e,t){wd.set(e,t),xl(t,[e])}var dc=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)},kt=[],Wl=0,To=0;function hc(){for(var e=Wl,t=To=Wl=0;t<e;){var n=kt[t];kt[t++]=null;var l=kt[t];kt[t++]=null;var c=kt[t];kt[t++]=null;var s=kt[t];if(kt[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}s!==0&&Ed(n,c,s)}}function mc(e,t,n,l){kt[Wl++]=e,kt[Wl++]=t,kt[Wl++]=n,kt[Wl++]=l,To|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ao(e,t,n,l){return mc(e,t,n,l),pc(e)}function El(e,t){return mc(e,null,null,t),pc(e)}function Ed(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-Et(n),e=s.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),s):null}function pc(e){if(50<xi)throw xi=0,Hs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function j0(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 Nt(e,t,n,l){return new j0(e,t,n,l)}function Ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var n=e.alternate;return n===null?(n=Nt(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 Cd(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 vc(e,t,n,l,c,s){var m=0;if(l=e,typeof e=="function")Ro(e)&&(m=1);else if(typeof e=="string")m=Ox(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Nt(31,n,t,c),e.elementType=le,e.lanes=s,e;case w:return Cl(n.children,c,s,t);case T:m=8,c|=24;break;case z:return e=Nt(12,n,t,c|2),e.elementType=z,e.lanes=s,e;case Q:return e=Nt(13,n,t,c),e.elementType=Q,e.lanes=s,e;case P:return e=Nt(19,n,t,c),e.elementType=P,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case R:m=9;break e;case q:m=11;break e;case Y:m=14;break e;case ne:m=16,l=null;break e}m=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Nt(m,n,t,c),t.elementType=e,t.type=l,t.lanes=s,t}function Cl(e,t,n,l){return e=Nt(7,e,l,t),e.lanes=n,e}function zo(e,t,n){return e=Nt(6,e,null,t),e.lanes=n,e}function Nd(e){var t=Nt(18,null,null,0);return t.stateNode=e,t}function Oo(e,t,n){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jd=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var n=jd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nf(t)},jd.set(e,t),t)}return{value:e,source:t,stack:Nf(t)}}var ea=[],ta=0,gc=null,Wa=0,qt=[],Vt=0,Fn=null,nn=1,ln="";function bn(e,t){ea[ta++]=Wa,ea[ta++]=gc,gc=e,Wa=t}function Td(e,t,n){qt[Vt++]=nn,qt[Vt++]=ln,qt[Vt++]=Fn,Fn=e;var l=nn;e=ln;var c=32-Et(l)-1;l&=~(1<<c),n+=1;var s=32-Et(t)+c;if(30<s){var m=c-c%5;s=(l&(1<<m)-1).toString(32),l>>=m,c-=m,nn=1<<32-Et(t)+c|n<<c|l,ln=s+e}else nn=1<<s|n<<c|l,ln=e}function _o(e){e.return!==null&&(bn(e,1),Td(e,1,0))}function Do(e){for(;e===gc;)gc=ea[--ta],ea[ta]=null,Wa=ea[--ta],ea[ta]=null;for(;e===Fn;)Fn=qt[--Vt],qt[Vt]=null,ln=qt[--Vt],qt[Vt]=null,nn=qt[--Vt],qt[Vt]=null}function Ad(e,t){qt[Vt++]=nn,qt[Vt++]=ln,qt[Vt++]=Fn,nn=t.id,ln=t.overflow,Fn=e}var ct=null,Ue=null,je=!1,Kn=null,Xt=!1,Mo=Error(o(519));function Qn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $a(Yt(t,e)),Mo}function Rd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[it]=e,t[ht]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Si.length;n++)we(Si[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Vf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Gf(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||Km(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||Qn(e,!0)}function zd(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ct=ct.return}}function na(e){if(e!==ct)return!1;if(!je)return zd(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ws(e.type,e.memoizedProps)),n=!n),n&&Ue&&Qn(e),zd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=tp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=tp(e)}else t===27?(t=Ue,rl(e.type)?(e=lu,lu=null,Ue=e):Ue=t):Ue=ct?Ft(e.stateNode.nextSibling):null;return!0}function Nl(){Ue=ct=null,je=!1}function Lo(){var e=Kn;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Kn=null),e}function $a(e){Kn===null?Kn=[e]:Kn.push(e)}var Uo=N(null),jl=null,Sn=null;function Zn(e,t,n){Z(Uo,t._currentValue),t._currentValue=n}function wn(e){e._currentValue=Uo.current,G(Uo)}function Ho(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 Bo(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var m=c.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){s.lanes|=n,x=s.alternate,x!==null&&(x.lanes|=n),Ho(s.return,n,e),l||(m=null);break e}s=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(o(341));m.lanes|=n,s=m.alternate,s!==null&&(s.lanes|=n),Ho(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 la(e,t,n,l){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var x=c.type;Ct(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===J.current){if(m=c.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ji):e=[ji])}c=c.return}e!==null&&Bo(t,e,n,l),t.flags|=262144}function yc(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){jl=e,Sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Od(jl,e)}function xc(e,t){return jl===null&&Tl(e),Od(e,t)}function Od(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sn===null){if(e===null)throw Error(o(308));Sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sn=Sn.next=t;return n}var T0=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()})}},A0=a.unstable_scheduleCallback,R0=a.unstable_NormalPriority,Ze={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ko(){return{controller:new T0,data:new Map,refCount:0}}function ei(e){e.refCount--,e.refCount===0&&A0(R0,function(){e.controller.abort()})}var ti=null,Yo=0,aa=0,ia=null;function z0(e,t){if(ti===null){var n=ti=[];Yo=0,aa=Xs(),ia={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Yo++,t.then(_d,_d),t}function _d(){if(--Yo===0&&ti!==null){ia!==null&&(ia.status="fulfilled");var e=ti;ti=null,aa=0,ia=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function O0(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 Dd=_.S;_.S=function(e,t){vm=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&z0(e,t),Dd!==null&&Dd(e,t)};var Al=N(null);function qo(){var e=Al.current;return e!==null?e:Le.pooledCache}function bc(e,t){t===null?Z(Al,Al.current):Z(Al,t.pool)}function Md(){var e=qo();return e===null?null:{parent:Ze._currentValue,pool:e}}var ca=Error(o(460)),Vo=Error(o(474)),Sc=Error(o(542)),wc={then:function(){}};function Ld(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ud(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bd(e),e;default:if(typeof t.status=="string")t.then(gn,gn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Bd(e),e}throw zl=t,ca}}function Rl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(zl=n,ca):n}}var zl=null;function Hd(){if(zl===null)throw Error(o(459));var e=zl;return zl=null,e}function Bd(e){if(e===ca||e===Sc)throw Error(o(483))}var ra=null,ni=0;function Ec(e){var t=ni;return ni+=1,ra===null&&(ra=[]),Ud(ra,e,t)}function li(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Cc(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kd(e){function t(O,A){if(e){var U=O.deletions;U===null?(O.deletions=[A],O.flags|=16):U.push(A)}}function n(O,A){if(!e)return null;for(;A!==null;)t(O,A),A=A.sibling;return null}function l(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function c(O,A){return O=xn(O,A),O.index=0,O.sibling=null,O}function s(O,A,U){return O.index=U,e?(U=O.alternate,U!==null?(U=U.index,U<A?(O.flags|=67108866,A):U):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function m(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,A,U,F){return A===null||A.tag!==6?(A=zo(U,O.mode,F),A.return=O,A):(A=c(A,U),A.return=O,A)}function E(O,A,U,F){var de=U.type;return de===w?X(O,A,U.props.children,F,U.key):A!==null&&(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&Rl(de)===A.type)?(A=c(A,U.props),li(A,U),A.return=O,A):(A=vc(U.type,U.key,U.props,null,O.mode,F),li(A,U),A.return=O,A)}function H(O,A,U,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==U.containerInfo||A.stateNode.implementation!==U.implementation?(A=Oo(U,O.mode,F),A.return=O,A):(A=c(A,U.children||[]),A.return=O,A)}function X(O,A,U,F,de){return A===null||A.tag!==7?(A=Cl(U,O.mode,F,de),A.return=O,A):(A=c(A,U),A.return=O,A)}function K(O,A,U){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=zo(""+A,O.mode,U),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return U=vc(A.type,A.key,A.props,null,O.mode,U),li(U,A),U.return=O,U;case D:return A=Oo(A,O.mode,U),A.return=O,A;case ne:return A=Rl(A),K(O,A,U)}if(fe(A)||$(A))return A=Cl(A,O.mode,U,null),A.return=O,A;if(typeof A.then=="function")return K(O,Ec(A),U);if(A.$$typeof===M)return K(O,xc(O,A),U);Cc(O,A)}return null}function B(O,A,U,F){var de=A!==null?A.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return de!==null?null:x(O,A,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return U.key===de?E(O,A,U,F):null;case D:return U.key===de?H(O,A,U,F):null;case ne:return U=Rl(U),B(O,A,U,F)}if(fe(U)||$(U))return de!==null?null:X(O,A,U,F,null);if(typeof U.then=="function")return B(O,A,Ec(U),F);if(U.$$typeof===M)return B(O,A,xc(O,U),F);Cc(O,U)}return null}function k(O,A,U,F,de){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(U)||null,x(A,O,""+F,de);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case j:return O=O.get(F.key===null?U:F.key)||null,E(A,O,F,de);case D:return O=O.get(F.key===null?U:F.key)||null,H(A,O,F,de);case ne:return F=Rl(F),k(O,A,U,F,de)}if(fe(F)||$(F))return O=O.get(U)||null,X(A,O,F,de,null);if(typeof F.then=="function")return k(O,A,U,Ec(F),de);if(F.$$typeof===M)return k(O,A,U,xc(A,F),de);Cc(A,F)}return null}function ce(O,A,U,F){for(var de=null,Te=null,oe=A,be=A=0,Ce=null;oe!==null&&be<U.length;be++){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var Ae=B(O,oe,U[be],F);if(Ae===null){oe===null&&(oe=Ce);break}e&&oe&&Ae.alternate===null&&t(O,oe),A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae,oe=Ce}if(be===U.length)return n(O,oe),je&&bn(O,be),de;if(oe===null){for(;be<U.length;be++)oe=K(O,U[be],F),oe!==null&&(A=s(oe,A,be),Te===null?de=oe:Te.sibling=oe,Te=oe);return je&&bn(O,be),de}for(oe=l(oe);be<U.length;be++)Ce=k(oe,O,be,U[be],F),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?be:Ce.key),A=s(Ce,A,be),Te===null?de=Ce:Te.sibling=Ce,Te=Ce);return e&&oe.forEach(function(dl){return t(O,dl)}),je&&bn(O,be),de}function pe(O,A,U,F){if(U==null)throw Error(o(151));for(var de=null,Te=null,oe=A,be=A=0,Ce=null,Ae=U.next();oe!==null&&!Ae.done;be++,Ae=U.next()){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var dl=B(O,oe,Ae.value,F);if(dl===null){oe===null&&(oe=Ce);break}e&&oe&&dl.alternate===null&&t(O,oe),A=s(dl,A,be),Te===null?de=dl:Te.sibling=dl,Te=dl,oe=Ce}if(Ae.done)return n(O,oe),je&&bn(O,be),de;if(oe===null){for(;!Ae.done;be++,Ae=U.next())Ae=K(O,Ae.value,F),Ae!==null&&(A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae);return je&&bn(O,be),de}for(oe=l(oe);!Ae.done;be++,Ae=U.next())Ae=k(oe,O,be,Ae.value,F),Ae!==null&&(e&&Ae.alternate!==null&&oe.delete(Ae.key===null?be:Ae.key),A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae);return e&&oe.forEach(function(Vx){return t(O,Vx)}),je&&bn(O,be),de}function Me(O,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 j:e:{for(var de=U.key;A!==null;){if(A.key===de){if(de=U.type,de===w){if(A.tag===7){n(O,A.sibling),F=c(A,U.props.children),F.return=O,O=F;break e}}else if(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&Rl(de)===A.type){n(O,A.sibling),F=c(A,U.props),li(F,U),F.return=O,O=F;break e}n(O,A);break}else t(O,A);A=A.sibling}U.type===w?(F=Cl(U.props.children,O.mode,F,U.key),F.return=O,O=F):(F=vc(U.type,U.key,U.props,null,O.mode,F),li(F,U),F.return=O,O=F)}return m(O);case D:e:{for(de=U.key;A!==null;){if(A.key===de)if(A.tag===4&&A.stateNode.containerInfo===U.containerInfo&&A.stateNode.implementation===U.implementation){n(O,A.sibling),F=c(A,U.children||[]),F.return=O,O=F;break e}else{n(O,A);break}else t(O,A);A=A.sibling}F=Oo(U,O.mode,F),F.return=O,O=F}return m(O);case ne:return U=Rl(U),Me(O,A,U,F)}if(fe(U))return ce(O,A,U,F);if($(U)){if(de=$(U),typeof de!="function")throw Error(o(150));return U=de.call(U),pe(O,A,U,F)}if(typeof U.then=="function")return Me(O,A,Ec(U),F);if(U.$$typeof===M)return Me(O,A,xc(O,U),F);Cc(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,A!==null&&A.tag===6?(n(O,A.sibling),F=c(A,U),F.return=O,O=F):(n(O,A),F=zo(U,O.mode,F),F.return=O,O=F),m(O)):n(O,A)}return function(O,A,U,F){try{ni=0;var de=Me(O,A,U,F);return ra=null,de}catch(oe){if(oe===ca||oe===Sc)throw oe;var Te=Nt(29,oe,null,O.mode);return Te.lanes=F,Te.return=O,Te}}}var Ol=kd(!0),Yd=kd(!1),Pn=!1;function Xo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Go(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 Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=pc(e),Ed(e,null,n),t}return mc(e,l,t,n),pc(e)}function ai(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,Of(e,n)}}function Fo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=m:s=s.next=m,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:s,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 Ko=!1;function ii(){if(Ko){var e=ia;if(e!==null)throw e}}function ci(e,t,n,l){Ko=!1;var c=e.updateQueue;Pn=!1;var s=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?s=H:m.next=H,m=E;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==m&&(x===null?X.firstBaseUpdate=H:x.next=H,X.lastBaseUpdate=E))}if(s!==null){var K=c.baseState;m=0,X=H=E=null,x=s;do{var B=x.lane&-536870913,k=B!==x.lane;if(k?(Ee&B)===B:(l&B)===B){B!==0&&B===aa&&(Ko=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ce=e,pe=x;B=t;var Me=n;switch(pe.tag){case 1:if(ce=pe.payload,typeof ce=="function"){K=ce.call(Me,K,B);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=pe.payload,B=typeof ce=="function"?ce.call(Me,K,B):ce,B==null)break e;K=b({},K,B);break e;case 2:Pn=!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},X===null?(H=X=k,E=K):X=X.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);X===null&&(E=K),c.baseState=E,c.firstBaseUpdate=H,c.lastBaseUpdate=X,s===null&&(c.shared.lanes=0),nl|=m,e.lanes=m,e.memoizedState=K}}function qd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Vd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qd(n[e],t)}var oa=N(null),Nc=N(0);function Xd(e,t){e=On,Z(Nc,e),Z(oa,t),On=e|t.baseLanes}function Qo(){Z(Nc,On),Z(oa,oa.current)}function Zo(){On=Nc.current,G(oa),G(Nc)}var jt=N(null),Gt=null;function Wn(e){var t=e.alternate;Z(Ge,Ge.current&1),Z(jt,e),Gt===null&&(t===null||oa.current!==null||t.memoizedState!==null)&&(Gt=e)}function Po(e){Z(Ge,Ge.current),Z(jt,e),Gt===null&&(Gt=e)}function Gd(e){e.tag===22?(Z(Ge,Ge.current),Z(jt,e),Gt===null&&(Gt=e)):$n()}function $n(){Z(Ge,Ge.current),Z(jt,jt.current)}function Tt(e){G(jt),Gt===e&&(Gt=null),G(Ge)}var Ge=N(0);function jc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||tu(n)||nu(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 En=0,xe=null,_e=null,Pe=null,Tc=!1,sa=!1,_l=!1,Ac=0,ri=0,ua=null,_0=0;function qe(){throw Error(o(321))}function Jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function Io(e,t,n,l,c,s){return En=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Th:ds,_l=!1,s=n(l,c),_l=!1,sa&&(s=Kd(t,n,l,c)),Fd(e),s}function Fd(e){_.H=ui;var t=_e!==null&&_e.next!==null;if(En=0,Pe=_e=xe=null,Tc=!1,ri=0,ua=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&yc(e)&&(Je=!0))}function Kd(e,t,n,l){xe=e;var c=0;do{if(sa&&(ua=null),ri=0,sa=!1,25<=c)throw Error(o(301));if(c+=1,Pe=_e=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}_.H=Ah,s=t(n,l)}while(sa);return s}function D0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?oi(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(xe.flags|=1024),t}function Wo(){var e=Ac!==0;return Ac=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function es(e){if(Tc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Tc=!1}En=0,Pe=_e=xe=null,sa=!1,ri=Ac=0,ua=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?xe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Fe(){if(_e===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Pe===null?xe.memoizedState:Pe.next;if(t!==null)Pe=t,_e=e;else{if(e===null)throw xe.alternate===null?Error(o(467)):Error(o(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Pe===null?xe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Rc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oi(e){var t=ri;return ri+=1,ua===null&&(ua=[]),e=Ud(ua,e,t),t=xe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Th:ds),e}function zc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return oi(e);if(e.$$typeof===M)return rt(e)}throw Error(o(438,String(e)))}function ts(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=xe.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=Rc(),xe.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]=se;return t.index++,n}function Cn(e,t){return typeof t=="function"?t(e):t}function Oc(e){var t=Fe();return ns(t,_e,e)}function ns(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var c=e.baseQueue,s=l.pending;if(s!==null){if(c!==null){var m=c.next;c.next=s.next,s.next=m}t.baseQueue=c=s,l.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var x=m=null,E=null,H=t,X=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Ee&K)===K:(En&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===aa&&(X=!0);else if((En&B)===B){H=H.next,B===aa&&(X=!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=s):E=E.next=K,xe.lanes|=B,nl|=B;K=H.action,_l&&n(s,K),s=H.hasEagerState?H.eagerState:n(s,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=s):E=E.next=B,xe.lanes|=K,nl|=K;H=H.next}while(H!==null&&H!==t);if(E===null?m=s:E.next=x,!Ct(s,e.memoizedState)&&(Je=!0,X&&(n=ia,n!==null)))throw n;e.memoizedState=s,e.baseState=m,e.baseQueue=E,l.lastRenderedState=s}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ls(e){var t=Fe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do s=e(s,m.action),m=m.next;while(m!==c);Ct(s,t.memoizedState)||(Je=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function Qd(e,t,n){var l=xe,c=Fe(),s=je;if(s){if(n===void 0)throw Error(o(407));n=n()}else n=t();var m=!Ct((_e||c).memoizedState,n);if(m&&(c.memoizedState=n,Je=!0),c=c.queue,cs(Jd.bind(null,l,c,e),[e]),c.getSnapshot!==t||m||Pe!==null&&Pe.memoizedState.tag&1){if(l.flags|=2048,fa(9,{destroy:void 0},Pd.bind(null,l,c,n,t),null),Le===null)throw Error(o(349));s||(En&127)!==0||Zd(l,t,n)}return n}function Zd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Rc(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pd(e,t,n,l){t.value=n,t.getSnapshot=l,Id(t)&&Wd(e)}function Jd(e,t,n){return n(function(){Id(t)&&Wd(e)})}function Id(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function Wd(e){var t=El(e,2);t!==null&&xt(t,e,2)}function as(e){var t=dt();if(typeof e=="function"){var n=e;if(e=n(),_l){Vn(!0);try{n()}finally{Vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:e},t}function $d(e,t,n,l){return e.baseState=n,ns(e,_e,typeof l=="function"?l:Cn)}function M0(e,t,n,l,c){if(Mc(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){s.listeners.push(m)}};_.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,eh(t,s)):(s.next=n.next,t.pending=n.next=s)}}function eh(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var s=_.T,m={};_.T=m;try{var x=n(c,l),E=_.S;E!==null&&E(m,x),th(e,t,x)}catch(H){is(e,t,H)}finally{s!==null&&m.types!==null&&(s.types=m.types),_.T=s}}else try{s=n(c,l),th(e,t,s)}catch(H){is(e,t,H)}}function th(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){nh(e,t,l)},function(l){return is(e,t,l)}):nh(e,t,n)}function nh(e,t,n){t.status="fulfilled",t.value=n,lh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,eh(e,n)))}function is(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,lh(t),t=t.next;while(t!==l)}e.action=null}function lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ah(e,t){return t}function ih(e,t){if(je){var n=Le.formState;if(n!==null){e:{var l=xe;if(je){if(Ue){t:{for(var c=Ue,s=Xt;c.nodeType!==8;){if(!s){c=null;break t}if(c=Ft(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){Ue=Ft(c.nextSibling),l=c.data==="F!";break e}}Qn(l)}l=!1}l&&(t=n[0])}}return n=dt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ah,lastRenderedState:t},n.queue=l,n=Ch.bind(null,xe,l),l.dispatch=n,l=as(!1),s=fs.bind(null,xe,!1,l.queue),l=dt(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=M0.bind(null,xe,c,s,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function ch(e){var t=Fe();return rh(t,_e,e)}function rh(e,t,n){if(t=ns(e,t,ah)[0],e=Oc(Cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=oi(t)}catch(m){throw m===ca?Sc:m}else l=t;t=Fe();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,fa(9,{destroy:void 0},L0.bind(null,c,n),null)),[l,s,e]}function L0(e,t){e.action=t}function oh(e){var t=Fe(),n=_e;if(n!==null)return rh(t,n,e);Fe(),t=t.memoizedState,n=Fe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function fa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Rc(),xe.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 sh(){return Fe().memoizedState}function _c(e,t,n,l){var c=dt();xe.flags|=e,c.memoizedState=fa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Dc(e,t,n,l){var c=Fe();l=l===void 0?null:l;var s=c.memoizedState.inst;_e!==null&&l!==null&&Jo(l,_e.memoizedState.deps)?c.memoizedState=fa(t,s,n,l):(xe.flags|=e,c.memoizedState=fa(1|t,s,n,l))}function uh(e,t){_c(8390656,8,e,t)}function cs(e,t){Dc(2048,8,e,t)}function U0(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Rc(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fh(e){var t=Fe().memoizedState;return U0({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function dh(e,t){return Dc(4,2,e,t)}function hh(e,t){return Dc(4,4,e,t)}function mh(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 ph(e,t,n){n=n!=null?n.concat([e]):null,Dc(4,4,mh.bind(null,t,e),n)}function rs(){}function vh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Jo(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function gh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Jo(t,l[1]))return l[0];if(l=e(),_l){Vn(!0);try{e()}finally{Vn(!1)}}return n.memoizedState=[l,t],l}function os(e,t,n){return n===void 0||(En&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ym(),xe.lanes|=e,nl|=e,n)}function yh(e,t,n,l){return Ct(n,t)?n:oa.current!==null?(e=os(e,n,l),Ct(e,t)||(Je=!0),e):(En&42)===0||(En&1073741824)!==0&&(Ee&261930)===0?(Je=!0,e.memoizedState=n):(e=ym(),xe.lanes|=e,nl|=e,t)}function xh(e,t,n,l,c){var s=L.p;L.p=s!==0&&8>s?s:8;var m=_.T,x={};_.T=x,fs(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 X=O0(E,l);si(e,t,X,zt(e))}else si(e,t,l,zt(e))}catch(K){si(e,t,{then:function(){},status:"rejected",reason:K},zt())}finally{L.p=s,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function H0(){}function ss(e,t,n,l){if(e.tag!==5)throw Error(o(476));var c=bh(e).queue;xh(e,c,t,V,n===null?H0:function(){return Sh(e),n(l)})}function bh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sh(e){var t=bh(e);t.next===null&&(t=e.alternate.memoizedState),si(e,t.next.queue,{},zt())}function us(){return rt(ji)}function wh(){return Fe().memoizedState}function Eh(){return Fe().memoizedState}function B0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=zt();e=Jn(n);var l=In(t,e,n);l!==null&&(xt(l,t,n),ai(l,t,n)),t={cache:ko()},e.payload=t;return}t=t.return}}function k0(e,t,n){var l=zt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mc(e)?Nh(t,n):(n=Ao(e,t,n,l),n!==null&&(xt(n,e,l),jh(n,t,l)))}function Ch(e,t,n){var l=zt();si(e,t,n,l)}function si(e,t,n,l){var c={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mc(e))Nh(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var m=t.lastRenderedState,x=s(m,n);if(c.hasEagerState=!0,c.eagerState=x,Ct(x,m))return mc(e,t,c,0),Le===null&&hc(),!1}catch{}if(n=Ao(e,t,c,l),n!==null)return xt(n,e,l),jh(n,t,l),!0}return!1}function fs(e,t,n,l){if(l={lane:2,revertLane:Xs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mc(e)){if(t)throw Error(o(479))}else t=Ao(e,n,l,2),t!==null&&xt(t,e,2)}function Mc(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Nh(e,t){sa=Tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Of(e,n)}}var ui={readContext:rt,use:zc,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};ui.useEffectEvent=qe;var Th={readContext:rt,use:zc,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:uh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,_c(4194308,4,mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _c(4194308,4,e,t)},useInsertionEffect:function(e,t){_c(4,2,e,t)},useMemo:function(e,t){var n=dt();t=t===void 0?null:t;var l=e();if(_l){Vn(!0);try{e()}finally{Vn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=dt();if(n!==void 0){var c=n(t);if(_l){Vn(!0);try{n(t)}finally{Vn(!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=k0.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=as(e);var t=e.queue,n=Ch.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rs,useDeferredValue:function(e,t){var n=dt();return os(n,e,t)},useTransition:function(){var e=as(!1);return e=xh.bind(null,xe,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=xe,c=dt();if(je){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Le===null)throw Error(o(349));(Ee&127)!==0||Zd(l,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,uh(Jd.bind(null,l,s,e),[e]),l.flags|=2048,fa(9,{destroy:void 0},Pd.bind(null,l,s,n,t),null),n},useId:function(){var e=dt(),t=Le.identifierPrefix;if(je){var n=ln,l=nn;n=(l&~(1<<32-Et(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ac++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=_0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:us,useFormState:ih,useActionState:ih,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=fs.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ts,useCacheRefresh:function(){return dt().memoizedState=B0.bind(null,xe)},useEffectEvent:function(e){var t=dt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},ds={readContext:rt,use:zc,useCallback:vh,useContext:rt,useEffect:cs,useImperativeHandle:ph,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:gh,useReducer:Oc,useRef:sh,useState:function(){return Oc(Cn)},useDebugValue:rs,useDeferredValue:function(e,t){var n=Fe();return yh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Oc(Cn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:oi(e),t]},useSyncExternalStore:Qd,useId:wh,useHostTransitionStatus:us,useFormState:ch,useActionState:ch,useOptimistic:function(e,t){var n=Fe();return $d(n,_e,e,t)},useMemoCache:ts,useCacheRefresh:Eh};ds.useEffectEvent=fh;var Ah={readContext:rt,use:zc,useCallback:vh,useContext:rt,useEffect:cs,useImperativeHandle:ph,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:gh,useReducer:ls,useRef:sh,useState:function(){return ls(Cn)},useDebugValue:rs,useDeferredValue:function(e,t){var n=Fe();return _e===null?os(n,e,t):yh(n,_e.memoizedState,e,t)},useTransition:function(){var e=ls(Cn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:oi(e),t]},useSyncExternalStore:Qd,useId:wh,useHostTransitionStatus:us,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var n=Fe();return _e!==null?$d(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ts,useCacheRefresh:Eh};Ah.useEffectEvent=fh;function hs(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 ms={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=zt(),c=Jn(l);c.payload=t,n!=null&&(c.callback=n),t=In(e,c,l),t!==null&&(xt(t,e,l),ai(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=zt(),c=Jn(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=In(e,c,l),t!==null&&(xt(t,e,l),ai(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zt(),l=Jn(n);l.tag=2,t!=null&&(l.callback=t),t=In(e,l,n),t!==null&&(xt(t,e,n),ai(t,e,n))}};function Rh(e,t,n,l,c,s,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,m):t.prototype&&t.prototype.isPureReactComponent?!Ja(n,l)||!Ja(c,s):!0}function zh(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&&ms.enqueueReplaceState(t,t.state,null)}function Dl(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 Oh(e){dc(e)}function _h(e){console.error(e)}function Dh(e){dc(e)}function Lc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Mh(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 ps(e,t,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Lc(e,t)},n}function Lh(e){return e=Jn(e),e.tag=3,e}function Uh(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=l.value;e.payload=function(){return c(s)},e.callback=function(){Mh(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Mh(t,n,l),typeof c!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function Y0(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&la(t,n,c,!0),n=jt.current,n!==null){switch(n.tag){case 31:case 13:return Gt===null?Qc():n.alternate===null&&Ve===0&&(Ve=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===wc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ys(e,l,c)),!1;case 22:return n.flags|=65536,l===wc?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)),Ys(e,l,c)),!1}throw Error(o(435,n.tag))}return Ys(e,l,c),Qc(),!1}if(je)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==Mo&&(e=Error(o(422),{cause:l}),$a(Yt(e,n)))):(l!==Mo&&(t=Error(o(423),{cause:l}),$a(Yt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Yt(l,n),c=ps(e.stateNode,l,c),Fo(e,c),Ve!==4&&(Ve=2)),!1;var s=Error(o(520),{cause:l});if(s=Yt(s,n),yi===null?yi=[s]:yi.push(s),Ve!==4&&(Ve=2),t===null)return!0;l=Yt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ps(n.stateNode,l,e),Fo(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(ll===null||!ll.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Lh(c),Uh(c,e,n,l),Fo(n,c),!1}n=n.return}while(n!==null);return!1}var vs=Error(o(461)),Je=!1;function ot(e,t,n,l){t.child=e===null?Yd(t,null,n,l):Ol(t,e.child,n,l)}function Hh(e,t,n,l,c){n=n.render;var s=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Tl(t),l=Io(e,t,n,m,s,c),x=Wo(),e!==null&&!Je?($o(e,t,c),Nn(e,t,c)):(je&&x&&_o(t),t.flags|=1,ot(e,t,l,c),t.child)}function Bh(e,t,n,l,c){if(e===null){var s=n.type;return typeof s=="function"&&!Ro(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,kh(e,t,s,l,c)):(e=vc(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Cs(e,c)){var m=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ja,n(m,l)&&e.ref===t.ref)return Nn(e,t,c)}return t.flags|=1,e=xn(s,l),e.ref=t.ref,e.return=t,t.child=e}function kh(e,t,n,l,c){if(e!==null){var s=e.memoizedProps;if(Ja(s,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=s,Cs(e,c))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Nn(e,t,c)}return gs(e,t,n,l,c)}function Yh(e,t,n,l){var c=l.children,s=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(s=s!==null?s.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&~s}else l=0,t.child=null;return qh(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bc(t,s!==null?s.cachePool:null),s!==null?Xd(t,s):Qo(),Gd(t);else return l=t.lanes=536870912,qh(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(bc(t,s.cachePool),Xd(t,s),$n(),t.memoizedState=null):(e!==null&&bc(t,null),Qo(),$n());return ot(e,t,c,n),t.child}function fi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qh(e,t,n,l,c){var s=qo();return s=s===null?null:{parent:Ze._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&bc(t,null),Qo(),Gd(t),e!==null&&la(e,t,l,!0),t.childLanes=c,null}function Uc(e,t){return t=Bc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vh(e,t,n){return Ol(t,e.child,null,n),e=Uc(t,t.pendingProps),e.flags|=2,Tt(t),t.memoizedState=null,e}function q0(e,t,n){var l=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=Uc(t,l),t.lanes=536870912,fi(null,e);if(Po(t),(e=Ue)?(e=ep(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Nd(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Qn(t);return t.lanes=536870912,null}return Uc(t,l)}var s=e.memoizedState;if(s!==null){var m=s.dehydrated;if(Po(t),c)if(t.flags&256)t.flags&=-257,t=Vh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Je||la(e,t,n,!1),c=(n&e.childLanes)!==0,Je||c){if(l=Le,l!==null&&(m=_f(l,n),m!==0&&m!==s.retryLane))throw s.retryLane=m,El(e,m),xt(l,e,m),vs;Qc(),t=Vh(e,t,n)}else e=s.treeContext,Ue=Ft(m.nextSibling),ct=t,je=!0,Kn=null,Xt=!1,e!==null&&Ad(t,e),t=Uc(t,l),t.flags|=4096;return t}return e=xn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(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(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gs(e,t,n,l,c){return Tl(t),n=Io(e,t,n,l,void 0,c),l=Wo(),e!==null&&!Je?($o(e,t,c),Nn(e,t,c)):(je&&l&&_o(t),t.flags|=1,ot(e,t,n,c),t.child)}function Xh(e,t,n,l,c,s){return Tl(t),t.updateQueue=null,n=Kd(t,l,n,c),Fd(e),l=Wo(),e!==null&&!Je?($o(e,t,s),Nn(e,t,s)):(je&&l&&_o(t),t.flags|=1,ot(e,t,n,s),t.child)}function Gh(e,t,n,l,c){if(Tl(t),t.stateNode===null){var s=$l,m=n.contextType;typeof m=="object"&&m!==null&&(s=rt(m)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ms,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Xo(t),m=n.contextType,s.context=typeof m=="object"&&m!==null?rt(m):$l,s.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(hs(t,n,m,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(m=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),m!==s.state&&ms.enqueueReplaceState(s,s.state,null),ci(t,l,s,c),ii(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,E=Dl(n,x);s.props=E;var H=s.context,X=n.contextType;m=$l,typeof X=="object"&&X!==null&&(m=rt(X));var K=n.getDerivedStateFromProps;X=typeof K=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,X||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||H!==m)&&zh(t,s,l,m),Pn=!1;var B=t.memoizedState;s.state=B,ci(t,l,s,c),ii(),H=t.memoizedState,x||B!==H||Pn?(typeof K=="function"&&(hs(t,n,K,l),H=t.memoizedState),(E=Pn||Rh(t,n,E,l,B,H,m))?(X||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),s.props=l,s.state=H,s.context=m,l=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Go(e,t),m=t.memoizedProps,X=Dl(n,m),s.props=X,K=t.pendingProps,B=s.context,H=n.contextType,E=$l,typeof H=="object"&&H!==null&&(E=rt(H)),x=n.getDerivedStateFromProps,(H=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m!==K||B!==E)&&zh(t,s,l,E),Pn=!1,B=t.memoizedState,s.state=B,ci(t,l,s,c),ii();var k=t.memoizedState;m!==K||B!==k||Pn||e!==null&&e.dependencies!==null&&yc(e.dependencies)?(typeof x=="function"&&(hs(t,n,x,l),k=t.memoizedState),(X=Pn||Rh(t,n,X,l,B,k,E)||e!==null&&e.dependencies!==null&&yc(e.dependencies))?(H||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,k,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,k,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),s.props=l,s.state=k,s.context=E,l=X):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Hc(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Ol(t,e.child,null,c),t.child=Ol(t,null,n,c)):ot(e,t,n,c),t.memoizedState=s.state,e=t.child):e=Nn(e,t,c),e}function Fh(e,t,n,l){return Nl(),t.flags|=256,ot(e,t,n,l),t.child}var ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xs(e){return{baseLanes:e,cachePool:Md()}}function bs(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function Kh(e,t,n){var l=t.pendingProps,c=!1,s=(t.flags&128)!==0,m;if((m=s)||(m=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(c?Wn(t):$n(),(e=Ue)?(e=ep(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:nn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Nd(e),n.return=t,t.child=n,ct=t,Ue=null)):e=null,e===null)throw Qn(t);return nu(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,c?($n(),c=t.mode,x=Bc({mode:"hidden",children:x},c),l=Cl(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=xs(n),l.childLanes=bs(e,m,n),t.memoizedState=ys,fi(null,l)):(Wn(t),Ss(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(s)t.flags&256?(Wn(t),t.flags&=-257,t=ws(e,t,n)):t.memoizedState!==null?($n(),t.child=e.child,t.flags|=128,t=null):($n(),x=l.fallback,c=t.mode,l=Bc({mode:"visible",children:l.children},c),x=Cl(x,c,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Ol(t,e.child,null,n),l=t.child,l.memoizedState=xs(n),l.childLanes=bs(e,m,n),t.memoizedState=ys,t=fi(null,l));else if(Wn(t),nu(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var H=m.dgst;m=H,l=Error(o(419)),l.stack="",l.digest=m,$a({value:l,source:null,stack:null}),t=ws(e,t,n)}else if(Je||la(e,t,n,!1),m=(n&e.childLanes)!==0,Je||m){if(m=Le,m!==null&&(l=_f(m,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,El(e,l),xt(m,e,l),vs;tu(x)||Qc(),t=ws(e,t,n)}else tu(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ue=Ft(x.nextSibling),ct=t,je=!0,Kn=null,Xt=!1,e!==null&&Ad(t,e),t=Ss(t,l.children),t.flags|=4096);return t}return c?($n(),x=l.fallback,c=t.mode,E=e.child,H=E.sibling,l=xn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?x=xn(H,x):(x=Cl(x,c,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,fi(null,l),l=t.child,x=e.child.memoizedState,x===null?x=xs(n):(c=x.cachePool,c!==null?(E=Ze._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=Md(),x={baseLanes:x.baseLanes|n,cachePool:c}),l.memoizedState=x,l.childLanes=bs(e,m,n),t.memoizedState=ys,fi(e.child,l)):(Wn(t),n=e.child,e=n.sibling,n=xn(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 Ss(e,t){return t=Bc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bc(e,t){return e=Nt(22,e,null,t),e.lanes=0,e}function ws(e,t,n){return Ol(t,e.child,null,n),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ho(e.return,t,n)}function Es(e,t,n,l,c,s){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c,treeForkCount:s}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=c,m.treeForkCount=s)}function Zh(e,t,n){var l=t.pendingProps,c=l.revealOrder,s=l.tail;l=l.children;var m=Ge.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,Z(Ge,m),ot(e,t,l,n),l=je?Wa:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qh(e,n,t);else if(e.tag===19)Qh(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&&jc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Es(t,!1,c,n,s,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&&jc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Es(t,!0,n,null,s,l);break;case"together":Es(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(la(e,t,n,!1),(n&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,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yc(e)))}function V0(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Zn(t,Ze,e.memoizedState.cache),Nl();break;case 27:case 5:ie(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Po(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Wn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Kh(e,t,n):(Wn(t),e=Nn(e,t,n),e!==null?e.sibling:null);Wn(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(la(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return Zh(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(Ge,Ge.current),l)break;return null;case 22:return t.lanes=0,Yh(e,t,n,t.pendingProps);case 24:Zn(t,Ze,e.memoizedState.cache)}return Nn(e,t,n)}function Ph(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Cs(e,n)&&(t.flags&128)===0)return Je=!1,V0(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,je&&(t.flags&1048576)!==0&&Td(t,Wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Rl(t.elementType),t.type=e,typeof e=="function")Ro(e)?(l=Dl(e,l),t.tag=1,t=Gh(null,t,e,l,n)):(t.tag=0,t=gs(null,t,e,l,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Hh(null,t,e,l,n);break e}else if(c===Y){t.tag=14,t=Bh(null,t,e,l,n);break e}}throw t=ee(e)||e,Error(o(306,t,""))}}return t;case 0:return gs(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=Dl(l,t.pendingProps),Gh(e,t,l,c,n);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var s=t.memoizedState;c=s.element,Go(e,t),ci(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Zn(t,Ze,l),l!==s.cache&&Bo(t,[Ze],n,!0),ii(),l=m.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Fh(e,t,l,n);break e}else if(l!==c){c=Yt(Error(o(424)),t),$a(c),t=Fh(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,Ue=Ft(e.firstChild),ct=t,je=!0,Kn=null,Xt=!0,n=Yd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nl(),l===c){t=Nn(e,t,n);break e}ot(e,t,l,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=cp(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,l=er(he.current).createElement(n),l[it]=t,l[ht]=e,st(l,n,e),lt(l),t.stateNode=l):t.memoizedState=cp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ie(t),e===null&&je&&(l=t.stateNode=lp(t.type,t.pendingProps,he.current),ct=t,Xt=!0,c=Ue,rl(t.type)?(lu=c,Ue=Ft(l.firstChild)):Ue=c),ot(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((c=l=Ue)&&(l=yx(l,t.type,t.pendingProps,Xt),l!==null?(t.stateNode=l,ct=t,Ue=Ft(l.firstChild),Xt=!1,c=!0):c=!1),c||Qn(t)),ie(t),c=t.type,s=t.pendingProps,m=e!==null?e.memoizedProps:null,l=s.children,Ws(c,s)?l=null:m!==null&&Ws(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=Io(e,t,D0,null,null,n),ji._currentValue=c),Hc(e,t),ot(e,t,l,n),t.child;case 6:return e===null&&je&&((e=n=Ue)&&(n=xx(n,t.pendingProps,Xt),n!==null?(t.stateNode=n,ct=t,Ue=null,e=!0):e=!1),e||Qn(t)),null;case 13:return Kh(e,t,n);case 4:return me(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ol(t,null,l,n):ot(e,t,l,n),t.child;case 11:return Hh(e,t,t.type,t.pendingProps,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Zn(t,t.type,l.value),ot(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Tl(t),c=rt(c),l=l(c),t.flags|=1,ot(e,t,l,n),t.child;case 14:return Bh(e,t,t.type,t.pendingProps,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 19:return Zh(e,t,n);case 31:return q0(e,t,n);case 22:return Yh(e,t,n,t.pendingProps);case 24:return Tl(t),l=rt(Ze),e===null?(c=qo(),c===null&&(c=Le,s=ko(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:l,cache:c},Xo(t),Zn(t,Ze,c)):((e.lanes&n)!==0&&(Go(e,t),ci(t,null,null,n),ii()),c=e.memoizedState,s=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Zn(t,Ze,l)):(l=s.cache,Zn(t,Ze,l),l!==c.cache&&Bo(t,[Ze],n,!0))),ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function jn(e){e.flags|=4}function Ns(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(wm())e.flags|=8192;else throw zl=wc,Vo}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fp(t))if(wm())e.flags|=8192;else throw zl=wc,Vo}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rf():536870912,e.lanes|=t,pa|=t)}function di(e,t){if(!je)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 He(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 X0(e,t,n){var l=t.pendingProps;switch(Do(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wn(Ze),I(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(na(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lo())),He(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(jn(t),s!==null?(He(t),Jh(t,s)):(He(t),Ns(t,c,null,l,n))):s?s!==e.memoizedState?(jn(t),He(t),Jh(t,s)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&jn(t),He(t),Ns(t,c,e,l,n)),null;case 27:if(ge(t),n=he.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=W.current,na(t)?Rd(t):(e=lp(c,l,n),t.stateNode=e,jn(t))}return He(t),null;case 5:if(ge(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(s=W.current,na(t))Rd(t);else{var m=er(he.current);switch(s){case 1:s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=m.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}s[it]=t,s[ht]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)s.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=s;e:switch(st(s,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&&jn(t)}}return He(t),Ns(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=he.current,na(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=ct,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Km(e.nodeValue,n)),e||Qn(t,!0)}else e=er(e).createTextNode(l),e[it]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=na(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[it]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=Lo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Tt(t),t):(Tt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=na(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[it]=t}else Nl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),c=!1}else c=Lo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Tt(t),t):(Tt(t),null)}return Tt(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),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==c&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),He(t),null);case 4:return I(),e===null&&Qs(t.stateNode.containerInfo),He(t),null;case 10:return wn(t.type),He(t),null;case 19:if(G(Ge),l=t.memoizedState,l===null)return He(t),null;if(c=(t.flags&128)!==0,s=l.rendering,s===null)if(c)di(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=jc(e),s!==null){for(t.flags|=128,di(l,!1),e=s.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Cd(n,e),n=n.sibling;return Z(Ge,Ge.current&1|2),je&&bn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Gc&&(t.flags|=128,c=!0,di(l,!1),t.lanes=4194304)}else{if(!c)if(e=jc(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),di(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!je)return He(t),null}else 2*St()-l.renderingStartTime>Gc&&n!==536870912&&(t.flags|=128,c=!0,di(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,n=Ge.current,Z(Ge,c?n&1|2:n&1),je&&bn(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return Tt(t),Zo(),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&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&kc(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(Al),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wn(Ze),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function G0(e,t){switch(Do(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wn(Ze),I(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(Tt(t),t.alternate===null)throw Error(o(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Tt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Ge),null;case 4:return I(),null;case 10:return wn(t.type),null;case 22:case 23:return Tt(t),Zo(),e!==null&&G(Al),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wn(Ze),null;case 25:return null;default:return null}}function Ih(e,t){switch(Do(t),t.tag){case 3:wn(Ze),I();break;case 26:case 27:case 5:ge(t);break;case 4:I();break;case 31:t.memoizedState!==null&&Tt(t);break;case 13:Tt(t);break;case 19:G(Ge);break;case 10:wn(t.type);break;case 22:case 23:Tt(t),Zo(),e!==null&&G(Al);break;case 24:wn(Ze)}}function hi(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 s=n.create,m=n.inst;l=s(),m.destroy=l}n=n.next}while(n!==c)}}catch(x){Oe(t,t.return,x)}}function el(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var s=c.next;l=s;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(X){Oe(c,E,X)}}}l=l.next}while(l!==s)}}catch(X){Oe(t,t.return,X)}}function Wh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Vd(t,n)}catch(l){Oe(e,e.return,l)}}}function $h(e,t,n){n.props=Dl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function mi(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 an(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 em(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 js(e,t,n){try{var l=e.stateNode;dx(l,e.type,n,t),l[ht]=t}catch(c){Oe(e,e.return,c)}}function tm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rl(e.type)||e.tag===4}function Ts(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tm(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&&rl(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 As(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=gn));else if(l!==4&&(l===27&&rl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Yc(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&&rl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function nm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);st(t,l,n),t[it]=e,t[ht]=n}catch(s){Oe(e,e.return,s)}}var Tn=!1,Ie=!1,Rs=!1,lm=typeof WeakSet=="function"?WeakSet:Set,at=null;function F0(e,t){if(e=e.containerInfo,Js=rr,e=pd(e),wo(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,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,H=0,X=0,K=e,B=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==s||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===s&&++X===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(Is={focusedElem:e,selectionRange:n},rr=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(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&&s!==null){e=void 0,n=t,c=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var ce=Dl(n.type,c);e=l.getSnapshotBeforeUpdate(ce,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Oe(n,n.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)eu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eu(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,at=e;break}at=t.return}}function am(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(e,n),l&4&&hi(5,n);break;case 1:if(Rn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var c=Dl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Wh(n),l&512&&mi(n,n.return);break;case 3:if(Rn(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{Vd(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&nm(n);case 26:case 5:Rn(e,n),t===null&&l&4&&em(n),l&512&&mi(n,n.return);break;case 12:Rn(e,n);break;case 31:Rn(e,n),l&4&&rm(e,n);break;case 13:Rn(e,n),l&4&&om(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ex.bind(null,n),bx(e,n))));break;case 22:if(l=n.memoizedState!==null||Tn,!l){t=t!==null&&t.memoizedState!==null||Ie,c=Tn;var s=Ie;Tn=l,(Ie=t)&&!s?zn(e,n,(n.subtreeFlags&8772)!==0):Rn(e,n),Tn=c,Ie=s}break;case 30:break;default:Rn(e,n)}}function im(e){var t=e.alternate;t!==null&&(e.alternate=null,im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ao(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,pt=!1;function An(e,t,n){for(n=n.child;n!==null;)cm(e,t,n),n=n.sibling}function cm(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Ba,n)}catch{}switch(n.tag){case 26:Ie||an(n,t),An(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ie||an(n,t);var l=Be,c=pt;rl(n.type)&&(Be=n.stateNode,pt=!1),An(e,t,n),Ei(n.stateNode),Be=l,pt=c;break;case 5:Ie||an(n,t);case 6:if(l=Be,c=pt,Be=null,An(e,t,n),Be=l,pt=c,Be!==null)if(pt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(n.stateNode)}catch(s){Oe(n,t,s)}else try{Be.removeChild(n.stateNode)}catch(s){Oe(n,t,s)}break;case 18:Be!==null&&(pt?(e=Be,Wm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ea(e)):Wm(Be,n.stateNode));break;case 4:l=Be,c=pt,Be=n.stateNode.containerInfo,pt=!0,An(e,t,n),Be=l,pt=c;break;case 0:case 11:case 14:case 15:el(2,n,t),Ie||el(4,n,t),An(e,t,n);break;case 1:Ie||(an(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&$h(n,t,l)),An(e,t,n);break;case 21:An(e,t,n);break;case 22:Ie=(l=Ie)||n.memoizedState!==null,An(e,t,n),Ie=l;break;default:An(e,t,n)}}function rm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ea(e)}catch(n){Oe(t,t.return,n)}}}function om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ea(e)}catch(n){Oe(t,t.return,n)}}function K0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new lm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new lm),t;default:throw Error(o(435,e.tag))}}function qc(e,t){var n=K0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var c=tx.bind(null,e,l);l.then(c,c)}})}function vt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],s=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(rl(x.type)){Be=x.stateNode,pt=!1;break e}break;case 5:Be=x.stateNode,pt=!1;break e;case 3:case 4:Be=x.stateNode.containerInfo,pt=!0;break e}x=x.return}if(Be===null)throw Error(o(160));cm(s,m,c),Be=null,pt=!1,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sm(t,e),t=t.sibling}var Zt=null;function sm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),gt(e),l&4&&(el(3,e,e.return),hi(3,e),el(5,e,e.return));break;case 1:vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),l&64&&Tn&&(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=Zt;if(vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),l&4){var s=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":s=c.getElementsByTagName("title")[0],(!s||s[qa]||s[it]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=c.createElement(l),c.head.insertBefore(s,c.querySelector("head > title"))),st(s,l,n),s[it]=e,lt(s),l=s;break e;case"link":var m=sp("link","href",c).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(s=m[x],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}s=c.createElement(l),st(s,l,n),c.head.appendChild(s);break;case"meta":if(m=sp("meta","content",c).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(s=m[x],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}s=c.createElement(l),st(s,l,n),c.head.appendChild(s);break;default:throw Error(o(468,l))}s[it]=e,lt(s),l=s}e.stateNode=l}else up(c,e.type,e.stateNode);else e.stateNode=op(c,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?up(c,e.type,e.stateNode):op(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&js(e,e.memoizedProps,n.memoizedProps)}break;case 27:vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),n!==null&&l&4&&js(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vt(t,e),gt(e),l&512&&(Ie||n===null||an(n,n.return)),e.flags&32){c=e.stateNode;try{Kl(c,"")}catch(ce){Oe(e,e.return,ce)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,js(e,c,n!==null?n.memoizedProps:c)),l&1024&&(Rs=!0);break;case 6:if(vt(t,e),gt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ce){Oe(e,e.return,ce)}}break;case 3:if(lr=null,c=Zt,Zt=tr(t.containerInfo),vt(t,e),Zt=c,gt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ea(t.containerInfo)}catch(ce){Oe(e,e.return,ce)}Rs&&(Rs=!1,um(e));break;case 4:l=Zt,Zt=tr(e.stateNode.containerInfo),vt(t,e),gt(e),Zt=l;break;case 12:vt(t,e),gt(e);break;case 31:vt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 13:vt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xc=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,H=Tn,X=Ie;if(Tn=H||c,Ie=X||E,vt(t,e),Ie=X,Tn=H,gt(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||Tn||Ie||Ml(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(s=E.stateNode,c)m=s.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(ce){Oe(E,E.return,ce)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ce){Oe(E,E.return,ce)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?$m(k,!0):$m(E.stateNode,!1)}catch(ce){Oe(E,E.return,ce)}}}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,qc(e,n))));break;case 19:vt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qc(e,l)));break;case 30:break;case 21:break;default:vt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(tm(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,s=Ts(e);Yc(e,s,c);break;case 5:var m=n.stateNode;n.flags&32&&(Kl(m,""),n.flags&=-33);var x=Ts(e);Yc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,H=Ts(e);As(e,H,E);break;default:throw Error(o(161))}}catch(X){Oe(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function um(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;um(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)am(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Ml(t);break;case 1:an(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$h(t,t.return,n),Ml(t);break;case 27:Ei(t.stateNode);case 26:case 5:an(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function zn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,s=t,m=s.flags;switch(s.tag){case 0:case 11:case 15:zn(c,s,n),hi(4,s);break;case 1:if(zn(c,s,n),l=s,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(H){Oe(l,l.return,H)}if(l=s,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++)qd(E[c],x)}catch(H){Oe(l,l.return,H)}}n&&m&64&&Wh(s),mi(s,s.return);break;case 27:nm(s);case 26:case 5:zn(c,s,n),n&&l===null&&m&4&&em(s),mi(s,s.return);break;case 12:zn(c,s,n);break;case 31:zn(c,s,n),n&&m&4&&rm(c,s);break;case 13:zn(c,s,n),n&&m&4&&om(c,s);break;case 22:s.memoizedState===null&&zn(c,s,n),mi(s,s.return);break;case 30:break;default:zn(c,s,n)}t=t.sibling}}function zs(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&&ei(n))}function Os(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ei(e))}function Pt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fm(e,t,n,l),t=t.sibling}function fm(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,l),c&2048&&hi(9,t);break;case 1:Pt(e,t,n,l);break;case 3:Pt(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&&ei(e)));break;case 12:if(c&2048){Pt(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,m=s.id,x=s.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Oe(t,t.return,E)}}else Pt(e,t,n,l);break;case 31:Pt(e,t,n,l);break;case 13:Pt(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,m=t.alternate,t.memoizedState!==null?s._visibility&2?Pt(e,t,n,l):pi(e,t):s._visibility&2?Pt(e,t,n,l):(s._visibility|=2,da(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),c&2048&&zs(m,t);break;case 24:Pt(e,t,n,l),c&2048&&Os(t.alternate,t);break;default:Pt(e,t,n,l)}}function da(e,t,n,l,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,m=t,x=n,E=l,H=m.flags;switch(m.tag){case 0:case 11:case 15:da(s,m,x,E,c),hi(8,m);break;case 23:break;case 22:var X=m.stateNode;m.memoizedState!==null?X._visibility&2?da(s,m,x,E,c):pi(s,m):(X._visibility|=2,da(s,m,x,E,c)),c&&H&2048&&zs(m.alternate,m);break;case 24:da(s,m,x,E,c),c&&H&2048&&Os(m.alternate,m);break;default:da(s,m,x,E,c)}t=t.sibling}}function pi(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:pi(n,l),c&2048&&zs(l.alternate,l);break;case 24:pi(n,l),c&2048&&Os(l.alternate,l);break;default:pi(n,l)}t=t.sibling}}var vi=8192;function ha(e,t,n){if(e.subtreeFlags&vi)for(e=e.child;e!==null;)dm(e,t,n),e=e.sibling}function dm(e,t,n){switch(e.tag){case 26:ha(e,t,n),e.flags&vi&&e.memoizedState!==null&&_x(n,Zt,e.memoizedState,e.memoizedProps);break;case 5:ha(e,t,n);break;case 3:case 4:var l=Zt;Zt=tr(e.stateNode.containerInfo),ha(e,t,n),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=vi,vi=16777216,ha(e,t,n),vi=l):ha(e,t,n));break;default:ha(e,t,n)}}function hm(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 gi(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];at=l,pm(l,e)}hm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mm(e),e=e.sibling}function mm(e){switch(e.tag){case 0:case 11:case 15:gi(e),e.flags&2048&&el(9,e,e.return);break;case 3:gi(e);break;case 12:gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vc(e)):gi(e);break;default:gi(e)}}function Vc(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];at=l,pm(l,e)}hm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Vc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vc(t));break;default:Vc(t)}e=e.sibling}}function pm(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:el(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:ei(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var c=l.sibling,s=l.return;if(im(l),l===n){at=null;break e}if(c!==null){c.return=s,at=c;break e}at=s}}}var Q0={getCacheForType:function(e){var t=rt(Ze),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rt(Ze).controller.signal}},Z0=typeof WeakMap=="function"?WeakMap:Map,Re=0,Le=null,Se=null,Ee=0,ze=0,At=null,tl=!1,ma=!1,_s=!1,On=0,Ve=0,nl=0,Ll=0,Ds=0,Rt=0,pa=0,yi=null,yt=null,Ms=!1,Xc=0,vm=0,Gc=1/0,Fc=null,ll=null,et=0,al=null,va=null,_n=0,Ls=0,Us=null,gm=null,xi=0,Hs=null;function zt(){return(Re&2)!==0&&Ee!==0?Ee&-Ee:_.T!==null?Xs():Df()}function ym(){if(Rt===0)if((Ee&536870912)===0||je){var e=$i;$i<<=1,($i&3932160)===0&&($i=262144),Rt=e}else Rt=536870912;return e=jt.current,e!==null&&(e.flags|=32),Rt}function xt(e,t,n){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(ga(e,0),il(e,Ee,Rt,!1)),Ya(e,n),((Re&2)===0||e!==Le)&&(e===Le&&((Re&2)===0&&(Ll|=n),Ve===4&&il(e,Ee,Rt,!1)),cn(e))}function xm(e,t,n){if((Re&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ka(e,t),c=l?I0(e,t):ks(e,t,!0),s=l;do{if(c===0){ma&&!l&&il(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!P0(n)){c=ks(e,t,!1),s=!1;continue}if(c===2){if(s=t,e.errorRecoveryDisabledLanes&s)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=yi;var E=x.current.memoizedState.isDehydrated;if(E&&(ga(x,m).flags|=256),m=ks(x,m,!1),m!==2){if(_s&&!E){x.errorRecoveryDisabledLanes|=s,Ll|=s,c=4;break e}s=yt,yt=c,s!==null&&(yt===null?yt=s:yt.push.apply(yt,s))}c=m}if(s=!1,c!==2)continue}}if(c===1){ga(e,0),il(e,t,0,!0);break}e:{switch(l=e,s=c,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:il(l,t,Rt,!tl);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=Xc+300-St(),10<c)){if(il(l,t,Rt,!tl),tc(l,0,!0)!==0)break e;_n=t,l.timeoutHandle=Jm(bm.bind(null,l,n,yt,Fc,Ms,t,Rt,Ll,pa,tl,s,"Throttled",-0,0),c);break e}bm(l,n,yt,Fc,Ms,t,Rt,Ll,pa,tl,s,null,-0,0)}}break}while(!0);cn(e)}function bm(e,t,n,l,c,s,m,x,E,H,X,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:gn},dm(t,s,K);var ce=(s&62914560)===s?Xc-St():(s&4194048)===s?vm-St():0;if(ce=Dx(K,ce),ce!==null){_n=s,e.cancelPendingCommit=ce(Am.bind(null,e,t,s,n,l,c,m,x,E,X,K,null,B,k)),il(e,s,m,!H);return}}Am(e,t,s,n,l,c,m,x,E)}function P0(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],s=c.getSnapshot;c=c.value;try{if(!Ct(s(),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 il(e,t,n,l){t&=~Ds,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var s=31-Et(c),m=1<<s;l[s]=-1,c&=~m}n!==0&&zf(e,n,t)}function Kc(){return(Re&6)===0?(bi(0),!1):!0}function Bs(){if(Se!==null){if(ze===0)var e=Se.return;else e=Se,Sn=jl=null,es(e),ra=null,ni=0,e=Se;for(;e!==null;)Ih(e.alternate,e),e=e.return;Se=null}}function ga(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,px(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),_n=0,Bs(),Le=e,Se=n=xn(e.current,null),Ee=t,ze=0,At=null,tl=!1,ma=ka(e,t),_s=!1,pa=Rt=Ds=Ll=nl=Ve=0,yt=yi=null,Ms=!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-Et(l),s=1<<c;t|=e[c],l&=~s}return On=t,hc(),n}function Sm(e,t){xe=null,_.H=ui,t===ca||t===Sc?(t=Hd(),ze=3):t===Vo?(t=Hd(),ze=4):ze=t===vs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,Se===null&&(Ve=1,Lc(e,Yt(t,e.current)))}function wm(){var e=jt.current;return e===null?!0:(Ee&4194048)===Ee?Gt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Gt:!1}function Em(){var e=_.H;return _.H=ui,e===null?ui:e}function Cm(){var e=_.A;return _.A=Q0,e}function Qc(){Ve=4,tl||(Ee&4194048)!==Ee&&jt.current!==null||(ma=!0),(nl&134217727)===0&&(Ll&134217727)===0||Le===null||il(Le,Ee,Rt,!1)}function ks(e,t,n){var l=Re;Re|=2;var c=Em(),s=Cm();(Le!==e||Ee!==t)&&(Fc=null,ga(e,t)),t=!1;var m=Ve;e:do try{if(ze!==0&&Se!==null){var x=Se,E=At;switch(ze){case 8:Bs(),m=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var H=ze;if(ze=0,At=null,ya(e,x,E,H),n&&ma){m=0;break e}break;default:H=ze,ze=0,At=null,ya(e,x,E,H)}}J0(),m=Ve;break}catch(X){Sm(e,X)}while(!0);return t&&e.shellSuspendCounter++,Sn=jl=null,Re=l,_.H=c,_.A=s,Se===null&&(Le=null,Ee=0,hc()),m}function J0(){for(;Se!==null;)Nm(Se)}function I0(e,t){var n=Re;Re|=2;var l=Em(),c=Cm();Le!==e||Ee!==t?(Fc=null,Gc=St()+500,ga(e,t)):ma=ka(e,t);e:do try{if(ze!==0&&Se!==null){t=Se;var s=At;t:switch(ze){case 1:ze=0,At=null,ya(e,t,s,1);break;case 2:case 9:if(Ld(s)){ze=0,At=null,jm(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),cn(e)},s.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Ld(s)?(ze=0,At=null,jm(t)):(ze=0,At=null,ya(e,t,s,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var x=Se;if(m?fp(m):x.stateNode.complete){ze=0,At=null;var E=x.sibling;if(E!==null)Se=E;else{var H=x.return;H!==null?(Se=H,Zc(H)):Se=null}break t}}ze=0,At=null,ya(e,t,s,5);break;case 6:ze=0,At=null,ya(e,t,s,6);break;case 8:Bs(),Ve=6;break e;default:throw Error(o(462))}}W0();break}catch(X){Sm(e,X)}while(!0);return Sn=jl=null,_.H=l,_.A=c,Re=n,Se!==null?0:(Le=null,Ee=0,hc(),Ve)}function W0(){for(;Se!==null&&!Sy();)Nm(Se)}function Nm(e){var t=Ph(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?Zc(e):Se=t}function jm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Xh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:es(t);default:Ih(n,t),t=Se=Cd(t,On),t=Ph(n,t,On)}e.memoizedProps=e.pendingProps,t===null?Zc(e):Se=t}function ya(e,t,n,l){Sn=jl=null,es(t),ra=null,ni=0;var c=t.return;try{if(Y0(e,c,t,n,Ee)){Ve=1,Lc(e,Yt(n,e.current)),Se=null;return}}catch(s){if(c!==null)throw Se=c,s;Ve=1,Lc(e,Yt(n,e.current)),Se=null;return}t.flags&32768?(je||l===1?e=!0:ma||(Ee&536870912)!==0?e=!1:(tl=e=!0,(l===2||l===9||l===3||l===6)&&(l=jt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Tm(t,e)):Zc(t)}function Zc(e){var t=e;do{if((t.flags&32768)!==0){Tm(t,tl);return}e=t.return;var n=X0(t.alternate,t,On);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ve===0&&(Ve=5)}function Tm(e,t){do{var n=G0(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ve=6,Se=null}function Am(e,t,n,l,c,s,m,x,E){e.cancelPendingCommit=null;do Pc();while(et!==0);if((Re&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=To,Oy(e,n,s,m,x,E),e===Le&&(Se=Le=null,Ee=0),va=t,al=e,_n=n,Ls=s,Us=c,gm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nx(Ii,function(){return Dm(),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=Re,Re|=4;try{F0(e,t,n)}finally{Re=m,L.p=c,_.T=l}}et=1,Rm(),zm(),Om()}}function Rm(){if(et===1){et=0;var e=al,t=va,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{sm(t,e);var s=Is,m=pd(e.containerInfo),x=s.focusedElem,E=s.selectionRange;if(m!==x&&x&&x.ownerDocument&&md(x.ownerDocument.documentElement,x)){if(E!==null&&wo(x)){var H=E.start,X=E.end;if(X===void 0&&(X=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(X,x.value.length);else{var K=x.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var k=B.getSelection(),ce=x.textContent.length,pe=Math.min(E.start,ce),Me=E.end===void 0?pe:Math.min(E.end,ce);!k.extend&&pe>Me&&(m=Me,Me=pe,pe=m);var O=hd(x,pe),A=hd(x,Me);if(O&&A&&(k.rangeCount!==1||k.anchorNode!==O.node||k.anchorOffset!==O.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var U=K.createRange();U.setStart(O.node,O.offset),k.removeAllRanges(),pe>Me?(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}}rr=!!Js,Is=Js=null}finally{Re=c,L.p=l,_.T=n}}e.current=t,et=2}}function zm(){if(et===2){et=0;var e=al,t=va,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=L.p;L.p=2;var c=Re;Re|=4;try{am(e,t.alternate,t)}finally{Re=c,L.p=l,_.T=n}}et=3}}function Om(){if(et===4||et===3){et=0,wy();var e=al,t=va,n=_n,l=gm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,va=al=null,_m(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ll=null),no(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Ba,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 s=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];s(x.value,{componentStack:x.stack})}}finally{_.T=t,L.p=c}}(_n&3)!==0&&Pc(),cn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Hs?xi++:(xi=0,Hs=e):xi=0,bi(0)}}function _m(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ei(t)))}function Pc(){return Rm(),zm(),Om(),Dm()}function Dm(){if(et!==5)return!1;var e=al,t=Ls;Ls=0;var n=no(_n),l=_.T,c=L.p;try{L.p=32>n?32:n,_.T=null,n=Us,Us=null;var s=al,m=_n;if(et=0,va=al=null,_n=0,(Re&6)!==0)throw Error(o(331));var x=Re;if(Re|=4,mm(s.current),fm(s,s.current,m,n),Re=x,bi(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Ba,s)}catch{}return!0}finally{L.p=c,_.T=l,_m(e,t)}}function Mm(e,t,n){t=Yt(n,t),t=ps(e.stateNode,t,2),e=In(e,t,2),e!==null&&(Ya(e,2),cn(e))}function Oe(e,t,n){if(e.tag===3)Mm(e,e,n);else for(;t!==null;){if(t.tag===3){Mm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ll===null||!ll.has(l))){e=Yt(n,e),n=Lh(2),l=In(t,n,2),l!==null&&(Uh(n,l,t,e),Ya(l,2),cn(l));break}}t=t.return}}function Ys(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Z0;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)||(_s=!0,c.add(n),e=$0.bind(null,e,t,n),t.then(e,e))}function $0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Ee&n)===n&&(Ve===4||Ve===3&&(Ee&62914560)===Ee&&300>St()-Xc?(Re&2)===0&&ga(e,0):Ds|=n,pa===Ee&&(pa=0)),cn(e)}function Lm(e,t){t===0&&(t=Rf()),e=El(e,t),e!==null&&(Ya(e,t),cn(e))}function ex(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lm(e,n)}function tx(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(o(314))}l!==null&&l.delete(t),Lm(e,n)}function nx(e,t){return Wr(e,t)}var Jc=null,xa=null,qs=!1,Ic=!1,Vs=!1,cl=0;function cn(e){e!==xa&&e.next===null&&(xa===null?Jc=xa=e:xa=xa.next=e),Ic=!0,qs||(qs=!0,ax())}function bi(e,t){if(!Vs&&Ic){Vs=!0;do for(var n=!1,l=Jc;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var s=0;else{var m=l.suspendedLanes,x=l.pingedLanes;s=(1<<31-Et(42|e)+1)-1,s&=c&~(m&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,km(l,s))}else s=Ee,s=tc(l,l===Le?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||ka(l,s)||(n=!0,km(l,s));l=l.next}while(n);Vs=!1}}function lx(){Um()}function Um(){Ic=qs=!1;var e=0;cl!==0&&mx()&&(e=cl);for(var t=St(),n=null,l=Jc;l!==null;){var c=l.next,s=Hm(l,t);s===0?(l.next=null,n===null?Jc=c:n.next=c,c===null&&(xa=n)):(n=l,(e!==0||(s&3)!==0)&&(Ic=!0)),l=c}et!==0&&et!==5||bi(e),cl!==0&&(cl=0)}function Hm(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var m=31-Et(s),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&l)!==0)&&(c[m]=zy(x,t)):E<=t&&(e.expiredLanes|=x),s&=~x}if(t=Le,n=Ee,n=tc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&$r(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ka(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&$r(l),no(n)){case 2:case 8:n=Tf;break;case 32:n=Ii;break;case 268435456:n=Af;break;default:n=Ii}return l=Bm.bind(null,e),n=Wr(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&$r(l),e.callbackPriority=2,e.callbackNode=null,2}function Bm(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Pc()&&e.callbackNode!==n)return null;var l=Ee;return l=tc(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(xm(e,l,t),Hm(e,St()),e.callbackNode!=null&&e.callbackNode===n?Bm.bind(null,e):null)}function km(e,t){if(Pc())return null;xm(e,t,!0)}function ax(){vx(function(){(Re&6)!==0?Wr(jf,lx):Um()})}function Xs(){if(cl===0){var e=aa;e===0&&(e=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),cl=e}return cl}function Ym(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ic(""+e)}function qm(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 ix(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var s=Ym((c[ht]||null).action),m=l.submitter;m&&(t=(t=m[ht]||null)?Ym(t.formAction):m.getAttribute("formAction"),t!==null&&(s=t,m=null));var x=new sc("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cl!==0){var E=m?qm(c,m):new FormData(c);ss(n,{pending:!0,data:E,method:c.method,action:s},null,E)}}else typeof s=="function"&&(x.preventDefault(),E=m?qm(c,m):new FormData(c),ss(n,{pending:!0,data:E,method:c.method,action:s},s,E))},currentTarget:c}]})}}for(var Gs=0;Gs<jo.length;Gs++){var Fs=jo[Gs],cx=Fs.toLowerCase(),rx=Fs[0].toUpperCase()+Fs.slice(1);Qt(cx,"on"+rx)}Qt(yd,"onAnimationEnd"),Qt(xd,"onAnimationIteration"),Qt(bd,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(E0,"onTransitionRun"),Qt(C0,"onTransitionStart"),Qt(N0,"onTransitionCancel"),Qt(Sd,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Si="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(" "),ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Si));function Vm(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 s=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!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=H;try{s(c)}catch(X){dc(X)}c.currentTarget=null,s=E}else for(m=0;m<l.length;m++){if(x=l[m],E=x.instance,H=x.currentTarget,x=x.listener,E!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=H;try{s(c)}catch(X){dc(X)}c.currentTarget=null,s=E}}}}function we(e,t){var n=t[lo];n===void 0&&(n=t[lo]=new Set);var l=e+"__bubble";n.has(l)||(Xm(t,e,2,!1),n.add(l))}function Ks(e,t,n){var l=0;t&&(l|=4),Xm(n,e,l,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Qs(e){if(!e[Wc]){e[Wc]=!0,Uf.forEach(function(n){n!=="selectionchange"&&(ox.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 Xm(e,t,n,l){switch(yp(t)){case 2:var c=Ux;break;case 8:c=Hx;break;default:c=ou}n=c.bind(null,t,n,e),c=void 0,!ho||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 Zs(e,t,n,l,c){var s=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=ql(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){l=s=m;continue e}x=x.parentNode}}l=l.return}Zf(function(){var H=s,X=uo(n),K=[];e:{var B=wd.get(e);if(B!==void 0){var k=sc,ce=e;switch(e){case"keypress":if(rc(n)===0)break e;case"keydown":case"keyup":k=t0;break;case"focusin":ce="focus",k=go;break;case"focusout":ce="blur",k=go;break;case"beforeblur":case"afterblur":k=go;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=If;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Xy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=a0;break;case yd:case xd:case bd:k=Ky;break;case Sd:k=c0;break;case"scroll":case"scrollend":k=qy;break;case"wheel":k=o0;break;case"copy":case"cut":case"paste":k=Zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=$f;break;case"toggle":case"beforetoggle":k=u0}var pe=(t&4)!==0,Me=!pe&&(e==="scroll"||e==="scrollend"),O=pe?B!==null?B+"Capture":null:B;pe=[];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||O===null||(F=Xa(A,O),F!=null&&pe.push(wi(A,F,U))),Me)break;A=A.return}0<pe.length&&(B=new k(B,ce,null,n,X),K.push({event:B,listeners:pe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",B&&n!==so&&(ce=n.relatedTarget||n.fromElement)&&(ql(ce)||ce[Yl]))break e;if((k||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,k?(ce=n.relatedTarget||n.toElement,k=H,ce=ce?ql(ce):null,ce!==null&&(Me=d(ce),pe=ce.tag,ce!==Me||pe!==5&&pe!==27&&pe!==6)&&(ce=null)):(k=null,ce=H),k!==ce)){if(pe=If,F="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=$f,F="onPointerLeave",O="onPointerEnter",A="pointer"),Me=k==null?B:Va(k),U=ce==null?B:Va(ce),B=new pe(F,A+"leave",k,n,X),B.target=Me,B.relatedTarget=U,F=null,ql(X)===H&&(pe=new pe(O,A+"enter",ce,n,X),pe.target=U,pe.relatedTarget=Me,F=pe),Me=F,k&&ce)t:{for(pe=sx,O=k,A=ce,U=0,F=O;F;F=pe(F))U++;F=0;for(var de=A;de;de=pe(de))F++;for(;0<U-F;)O=pe(O),U--;for(;0<F-U;)A=pe(A),F--;for(;U--;){if(O===A||A!==null&&O===A.alternate){pe=O;break t}O=pe(O),A=pe(A)}pe=null}else pe=null;k!==null&&Gm(K,B,k,pe,!1),ce!==null&&Me!==null&&Gm(K,Me,ce,pe,!0)}}e:{if(B=H?Va(H):window,k=B.nodeName&&B.nodeName.toLowerCase(),k==="select"||k==="input"&&B.type==="file")var Te=rd;else if(id(B))if(od)Te=b0;else{Te=y0;var oe=g0}else k=B.nodeName,!k||k.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?H&&oo(H.elementType)&&(Te=rd):Te=x0;if(Te&&(Te=Te(e,H))){cd(K,Te,n,X);break e}oe&&oe(e,B,H),e==="focusout"&&H&&B.type==="number"&&H.memoizedProps.value!=null&&ro(B,"number",B.value)}switch(oe=H?Va(H):window,e){case"focusin":(id(oe)||oe.contentEditable==="true")&&(Jl=oe,Eo=H,Ia=null);break;case"focusout":Ia=Eo=Jl=null;break;case"mousedown":Co=!0;break;case"contextmenu":case"mouseup":case"dragend":Co=!1,vd(K,n,X);break;case"selectionchange":if(w0)break;case"keydown":case"keyup":vd(K,n,X)}var be;if(xo)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Pl?ld(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(ed&&n.locale!=="ko"&&(Pl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Pl&&(be=Pf()):(Gn=X,mo="value"in Gn?Gn.value:Gn.textContent,Pl=!0)),oe=$c(H,Ce),0<oe.length&&(Ce=new Wf(Ce,e,null,n,X),K.push({event:Ce,listeners:oe}),be?Ce.data=be:(be=ad(n),be!==null&&(Ce.data=be)))),(be=d0?h0(e,n):m0(e,n))&&(Ce=$c(H,"onBeforeInput"),0<Ce.length&&(oe=new Wf("onBeforeInput","beforeinput",null,n,X),K.push({event:oe,listeners:Ce}),oe.data=be)),ix(K,e,H,n,X)}Vm(K,t)})}function wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $c(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=Xa(e,n),c!=null&&l.unshift(wi(e,c,s)),c=Xa(e,t),c!=null&&l.push(wi(e,c,s))),e.tag===3)return l;e=e.return}return[]}function sx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gm(e,t,n,l,c){for(var s=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=Xa(n,s),H!=null&&m.unshift(wi(n,H,E))):c||(H=Xa(n,s),H!=null&&m.push(wi(n,H,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var ux=/\r\n?/g,fx=/\u0000|\uFFFD/g;function Fm(e){return(typeof e=="string"?e:""+e).replace(ux,`
|
|
9
|
+
`).replace(fx,"")}function Km(e,t){return t=Fm(t),Fm(e)===t}function De(e,t,n,l,c,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Kl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Kl(e,""+l);break;case"className":lc(e,"class",l);break;case"tabIndex":lc(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":lc(e,n,l);break;case"style":Kf(e,l,s);break;case"data":if(t!=="object"){lc(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=ic(""+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 s=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",c.name,c,null),De(e,t,"formEncType",c.formEncType,c,null),De(e,t,"formMethod",c.formMethod,c,null),De(e,t,"formTarget",c.formTarget,c,null)):(De(e,t,"encType",c.encType,c,null),De(e,t,"method",c.method,c,null),De(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ic(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=gn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(o(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=ic(""+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":we("beforetoggle",e),we("toggle",e),nc(e,"popover",l);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":nc(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=ky.get(n)||n,nc(e,n,l))}}function Ps(e,t,n,l,c,s){switch(n){case"style":Kf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Kl(e,l):(typeof l=="number"||typeof l=="bigint")&&Kl(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),s=e[ht]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,c),typeof l=="function")){typeof s!="function"&&s!==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,""):nc(e,n,l)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var m=n[s];if(m!=null)switch(s){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,s,m,n,null)}}c&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var x=s=m=c=null,E=null,H=null;for(l in n)if(n.hasOwnProperty(l)){var X=n[l];if(X!=null)switch(l){case"name":c=X;break;case"type":m=X;break;case"checked":E=X;break;case"defaultChecked":H=X;break;case"value":s=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(o(137,t));break;default:De(e,t,l,X,n,null)}}Vf(e,s,x,E,H,m,c,!1);return;case"select":we("invalid",e),l=m=s=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":s=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:De(e,t,c,x,n,null)}t=s,n=m,e.multiple=!!l,t!=null?Fl(e,!!l,t,!1):n!=null&&Fl(e,!!l,n,!0);return;case"textarea":we("invalid",e),s=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":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:De(e,t,m,x,n,null)}Gf(e,l,c,s);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":De(e,t,E,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<Si.length;l++)we(Si[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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(o(137,t));default:De(e,t,H,l,n,null)}return;default:if(oo(t)){for(X in n)n.hasOwnProperty(X)&&(l=n[X],l!==void 0&&Ps(e,t,X,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&De(e,t,x,l,n,null))}function dx(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,s=null,m=null,x=null,E=null,H=null,X=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)||De(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":s=k;break;case"name":c=k;break;case"checked":H=k;break;case"defaultChecked":X=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,t));break;default:k!==K&&De(e,t,B,k,l,K)}}co(e,m,x,E,H,X,s,c);return;case"select":k=m=x=B=null;for(s in n)if(E=n[s],n.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":k=E;default:l.hasOwnProperty(s)||De(e,t,s,null,l,E)}for(c in l)if(s=l[c],E=n[c],l.hasOwnProperty(c)&&(s!=null||E!=null))switch(c){case"value":B=s;break;case"defaultValue":x=s;break;case"multiple":m=s;default:s!==E&&De(e,t,c,s,l,E)}t=x,n=m,l=k,B!=null?Fl(e,!!n,B,!1):!!l!=!!n&&(t!=null?Fl(e,!!n,t,!0):Fl(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:De(e,t,x,null,l,c)}for(m in l)if(c=l[m],s=n[m],l.hasOwnProperty(m)&&(c!=null||s!=null))switch(m){case"value":B=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==s&&De(e,t,m,c,l,s)}Xf(e,B,k);return;case"option":for(var ce in n)B=n[ce],n.hasOwnProperty(ce)&&B!=null&&!l.hasOwnProperty(ce)&&(ce==="selected"?e.selected=!1:De(e,t,ce,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":De(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 pe in n)B=n[pe],n.hasOwnProperty(pe)&&B!=null&&!l.hasOwnProperty(pe)&&De(e,t,pe,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(o(137,t));break;default:De(e,t,H,B,l,k)}return;default:if(oo(t)){for(var Me in n)B=n[Me],n.hasOwnProperty(Me)&&B!==void 0&&!l.hasOwnProperty(Me)&&Ps(e,t,Me,void 0,l,B);for(X in l)B=l[X],k=n[X],!l.hasOwnProperty(X)||B===k||B===void 0&&k===void 0||Ps(e,t,X,B,l,k);return}}for(var O in n)B=n[O],n.hasOwnProperty(O)&&B!=null&&!l.hasOwnProperty(O)&&De(e,t,O,null,l,B);for(K in l)B=l[K],k=n[K],!l.hasOwnProperty(K)||B===k||B==null&&k==null||De(e,t,K,B,l,k)}function Qm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hx(){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],s=c.transferSize,m=c.initiatorType,x=c.duration;if(s&&x&&Qm(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 X=E.transferSize,K=E.initiatorType;X&&Qm(K)&&(E=E.responseEnd,m+=X*(E<x?1:(x-H)/(E-H)))}if(--l,t+=8*(s+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 Js=null,Is=null;function er(e){return e.nodeType===9?e:e.ownerDocument}function Zm(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 Pm(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 Ws(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 $s=null;function mx(){var e=window.event;return e&&e.type==="popstate"?e===$s?!1:($s=e,!0):($s=null,!1)}var Jm=typeof setTimeout=="function"?setTimeout:void 0,px=typeof clearTimeout=="function"?clearTimeout:void 0,Im=typeof Promise=="function"?Promise:void 0,vx=typeof queueMicrotask=="function"?queueMicrotask:typeof Im<"u"?function(e){return Im.resolve(null).then(e).catch(gx)}:Jm;function gx(e){setTimeout(function(){throw e})}function rl(e){return e==="head"}function Wm(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),Ea(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ei(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ei(n);for(var s=n.firstChild;s;){var m=s.nextSibling,x=s.nodeName;s[qa]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=m}}else n==="body"&&Ei(e.ownerDocument.body);n=c}while(n);Ea(t)}function $m(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 eu(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":eu(n),ao(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function yx(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[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function xx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ft(e.nextSibling),e===null))return null;return e}function ep(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function tu(e){return e.data==="$?"||e.data==="$~"}function nu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bx(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 Ft(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 lu=null;function tp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ft(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function np(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 lp(e,t,n){switch(t=er(n),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 Ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ao(e)}var Kt=new Map,ap=new Set;function tr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=L.d;L.d={f:Sx,r:wx,D:Ex,C:Cx,L:Nx,m:jx,X:Ax,S:Tx,M:Rx};function Sx(){var e=Dn.f(),t=Kc();return e||t}function wx(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Sh(t):Dn.r(e)}var ba=typeof document>"u"?null:document;function ip(e,t,n){var l=ba;if(l&&typeof t=="string"&&t){var c=Bt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),ap.has(c)||(ap.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),st(t,"link",e),lt(t),l.head.appendChild(t)))}}function Ex(e){Dn.D(e),ip("dns-prefetch",e,null)}function Cx(e,t){Dn.C(e,t),ip("preconnect",e,t)}function Nx(e,t,n){Dn.L(e,t,n);var l=ba;if(l&&e&&t){var c='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Bt(n.imageSizes)+'"]')):c+='[href="'+Bt(e)+'"]';var s=c;switch(t){case"style":s=Sa(e);break;case"script":s=wa(e)}Kt.has(s)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Kt.set(s,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(Ci(s))||t==="script"&&l.querySelector(Ni(s))||(t=l.createElement("link"),st(t,"link",e),lt(t),l.head.appendChild(t)))}}function jx(e,t){Dn.m(e,t);var n=ba;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Bt(l)+'"][href="'+Bt(e)+'"]',s=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=wa(e)}if(!Kt.has(s)&&(e=b({rel:"modulepreload",href:e},t),Kt.set(s,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ni(s)))return}l=n.createElement("link"),st(l,"link",e),lt(l),n.head.appendChild(l)}}}function Tx(e,t,n){Dn.S(e,t,n);var l=ba;if(l&&e){var c=Xl(l).hoistableStyles,s=Sa(e);t=t||"default";var m=c.get(s);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(Ci(s)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Kt.get(s))&&au(e,n);var E=m=l.createElement("link");lt(E),st(E,"link",e),E._p=new Promise(function(H,X){E.onload=H,E.onerror=X}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,nr(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(s,m)}}}function Ax(e,t){Dn.X(e,t);var n=ba;if(n&&e){var l=Xl(n).hoistableScripts,c=wa(e),s=l.get(c);s||(s=n.querySelector(Ni(c)),s||(e=b({src:e,async:!0},t),(t=Kt.get(c))&&iu(e,t),s=n.createElement("script"),lt(s),st(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function Rx(e,t){Dn.M(e,t);var n=ba;if(n&&e){var l=Xl(n).hoistableScripts,c=wa(e),s=l.get(c);s||(s=n.querySelector(Ni(c)),s||(e=b({src:e,async:!0,type:"module"},t),(t=Kt.get(c))&&iu(e,t),s=n.createElement("script"),lt(s),st(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(c,s))}}function cp(e,t,n,l){var c=(c=he.current)?tr(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Sa(n.href),n=Xl(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=Sa(n.href);var s=Xl(c).hoistableStyles,m=s.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,m),(s=c.querySelector(Ci(e)))&&!s._p&&(m.instance=s,m.state.loading=5),Kt.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},Kt.set(e,n),s||zx(c,e,n,m.state))),t&&l===null)throw Error(o(528,""));return m}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(n),n=Xl(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(o(444,e))}}function Sa(e){return'href="'+Bt(e)+'"'}function Ci(e){return'link[rel="stylesheet"]['+e+"]"}function rp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function zx(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}),st(t,"link",n),lt(t),e.head.appendChild(t))}function wa(e){return'[src="'+Bt(e)+'"]'}function Ni(e){return"script[async]"+e}function op(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(l)return t.instance=l,lt(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"),lt(l),st(l,"style",c),nr(l,n.precedence,e),t.instance=l;case"stylesheet":c=Sa(n.href);var s=e.querySelector(Ci(c));if(s)return t.state.loading|=4,t.instance=s,lt(s),s;l=rp(n),(c=Kt.get(c))&&au(l,c),s=(e.ownerDocument||e).createElement("link"),lt(s);var m=s;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),st(s,"link",l),t.state.loading|=4,nr(s,n.precedence,e),t.instance=s;case"script":return s=wa(n.src),(c=e.querySelector(Ni(s)))?(t.instance=c,lt(c),c):(l=n,(c=Kt.get(s))&&(l=b({},n),iu(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),lt(c),st(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,nr(l,n.precedence,e));return t.instance}function nr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,s=c,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)s=x;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function au(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function iu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lr=null;function sp(e,t,n){if(lr===null){var l=new Map,c=lr=new Map;c.set(n,l)}else c=lr,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 s=n[c];if(!(s[qa]||s[it]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var m=s.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(s):l.set(m,[s])}}return l}function up(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ox(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 fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _x(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=Sa(l.href),s=t.querySelector(Ci(c));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ar.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,lt(s);return}s=t.ownerDocument||t,l=rp(l),(c=Kt.get(c))&&au(l,c),s=s.createElement("link"),lt(s);var m=s;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),st(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ar.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var cu=0;function Dx(e,t){return e.stylesheets&&e.count===0&&cr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&cr(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&cu===0&&(cu=62500*hx());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cr(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>cu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function ar(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ir=null;function cr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ir=new Map,t.forEach(Mx,e),ir=null,ar.call(e))}function Mx(e,t){if(!(t.state.loading&4)){var n=ir.get(e);if(n)var l=n.get(null);else{n=new Map,ir.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var m=c[s];(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"),s=n.get(m)||l,s===l&&n.set(null,c),n.set(m,c),this.count++,l=ar.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var ji={$$typeof:M,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Lx(e,t,n,l,c,s,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=eo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.hiddenUpdates=eo(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function dp(e,t,n,l,c,s,m,x,E,H,X,K){return e=new Lx(e,t,n,m,E,H,X,K,x),t=1,s===!0&&(t|=24),s=Nt(3,null,null,t),e.current=s,s.stateNode=e,t=ko(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},Xo(s),e}function hp(e){return e?(e=$l,e):$l}function mp(e,t,n,l,c,s){c=hp(c),l.context===null?l.context=c:l.pendingContext=c,l=Jn(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=In(e,l,t),n!==null&&(xt(n,e,t),ai(n,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ru(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function vp(e){if(e.tag===13||e.tag===31){var t=El(e,67108864);t!==null&&xt(t,e,67108864),ru(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=zt();t=to(t);var n=El(e,t);n!==null&&xt(n,e,t),ru(e,t)}}var rr=!0;function Ux(e,t,n,l){var c=_.T;_.T=null;var s=L.p;try{L.p=2,ou(e,t,n,l)}finally{L.p=s,_.T=c}}function Hx(e,t,n,l){var c=_.T;_.T=null;var s=L.p;try{L.p=8,ou(e,t,n,l)}finally{L.p=s,_.T=c}}function ou(e,t,n,l){if(rr){var c=su(l);if(c===null)Zs(e,t,l,or,n),xp(e,l);else if(kx(c,e,t,n,l))l.stopPropagation();else if(xp(e,l),t&4&&-1<Bx.indexOf(e)){for(;c!==null;){var s=Vl(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var m=yl(s.pendingLanes);if(m!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-Et(m);x.entanglements[1]|=E,m&=~E}cn(s),(Re&6)===0&&(Gc=St()+500,bi(0))}}break;case 31:case 13:x=El(s,2),x!==null&&xt(x,s,2),Kc(),ru(s,2)}if(s=su(l),s===null&&Zs(e,t,l,or,n),s===c)break;c=s}c!==null&&l.stopPropagation()}else Zs(e,t,l,null,n)}}function su(e){return e=uo(e),uu(e)}var or=null;function uu(e){if(or=null,e=ql(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 or=e,null}function yp(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(Ey()){case jf:return 2;case Tf:return 8;case Ii:case Cy:return 32;case Af:return 268435456;default:return 32}default:return 32}}var fu=!1,ol=null,sl=null,ul=null,Ti=new Map,Ai=new Map,fl=[],Bx="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 xp(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ai.delete(t.pointerId)}}function Ri(e,t,n,l,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[c]},t!==null&&(t=Vl(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function kx(e,t,n,l,c){switch(t){case"focusin":return ol=Ri(ol,e,t,n,l,c),!0;case"dragenter":return sl=Ri(sl,e,t,n,l,c),!0;case"mouseover":return ul=Ri(ul,e,t,n,l,c),!0;case"pointerover":var s=c.pointerId;return Ti.set(s,Ri(Ti.get(s)||null,e,t,n,l,c)),!0;case"gotpointercapture":return s=c.pointerId,Ai.set(s,Ri(Ai.get(s)||null,e,t,n,l,c)),!0}return!1}function bp(e){var t=ql(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,Mf(e.priority,function(){gp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Mf(e.priority,function(){gp(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 sr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=su(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);so=l,n.target.dispatchEvent(l),so=null}else return t=Vl(n),t!==null&&vp(t),e.blockedOn=n,!1;t.shift()}return!0}function Sp(e,t,n){sr(e)&&n.delete(t)}function Yx(){fu=!1,ol!==null&&sr(ol)&&(ol=null),sl!==null&&sr(sl)&&(sl=null),ul!==null&&sr(ul)&&(ul=null),Ti.forEach(Sp),Ai.forEach(Sp)}function ur(e,t){e.blockedOn===t&&(e.blockedOn=null,fu||(fu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Yx)))}var fr=null;function wp(e){fr!==e&&(fr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){fr===e&&(fr=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(uu(l||n)===null)continue;break}var s=Vl(n);s!==null&&(e.splice(t,3),t-=3,ss(s,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function Ea(e){function t(E){return ur(E,e)}ol!==null&&ur(ol,e),sl!==null&&ur(sl,e),ul!==null&&ur(ul,e),Ti.forEach(t),Ai.forEach(t);for(var n=0;n<fl.length;n++){var l=fl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<fl.length&&(n=fl[0],n.blockedOn===null);)bp(n),n.blockedOn===null&&fl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],s=n[l+1],m=c[ht]||null;if(typeof s=="function")m||wp(n);else if(m){var x=null;if(s&&s.hasAttribute("formAction")){if(c=s,m=s[ht]||null)x=m.formAction;else if(uu(c)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),wp(n)}}}function Ep(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.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 s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 du(e){this._internalRoot=e}dr.prototype.render=du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=zt();mp(n,l,e,t,null,null)},dr.prototype.unmount=du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mp(e.current,2,null,e,null,null),Kc(),t[Yl]=null}};function dr(e){this._internalRoot=e}dr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fl.length&&t!==0&&t<fl[n].priority;n++);fl.splice(n,0,e),n===0&&bp(e)}};var Cp=i.version;if(Cp!=="19.2.3")throw Error(o(527,Cp,"19.2.3"));L.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=y(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var qx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hr.isDisabled&&hr.supportsFiber)try{Ba=hr.inject(qx),wt=hr}catch{}}return Oi.createRoot=function(e,t){if(!u(e))throw Error(o(299));var n=!1,l="",c=Oh,s=_h,m=Dh;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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=dp(e,1,!1,null,null,n,l,null,c,s,m,Ep),e[Yl]=t.current,Qs(e),new du(t)},Oi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(o(299));var l=!1,c="",s=Oh,m=_h,x=Dh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=dp(e,1,!0,t,n??null,l,c,E,s,m,x,Ep),t.context=hp(null),n=t.current,l=zt(),l=to(l),c=Jn(l),c.callback=null,In(n,c,l),n=l,t.current.lanes=n,Ya(t,n),cn(t),e[Yl]=t.current,Qs(e),new dr(t)},Oi.version="19.2.3",Oi}var Mp;function Ix(){if(Mp)return pu.exports;Mp=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(),pu.exports=Jx(),pu.exports}var Wx=Ix();var Lp="popstate";function $x(a={}){function i(o,u){let{pathname:d,search:h,hash:p}=o.location;return Uu("",{pathname:d,search:h,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(o,u){return typeof u=="string"?u:qi(u)}return tb(i,r,null,a)}function ke(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Lt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function eb(){return Math.random().toString(36).substring(2,10)}function Up(a,i){return{usr:a.state,key:a.key,idx:i}}function Uu(a,i,r=null,o){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?_a(i):i,state:r,key:i&&i.key||o||eb()}}function qi({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 _a(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let o=a.indexOf("?");o>=0&&(i.search=a.substring(o),a=a.substring(0,o)),a&&(i.pathname=a)}return i}function tb(a,i,r,o={}){let{window:u=document.defaultView,v5Compat:d=!1}=o,h=u.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 T=S(),z=T==null?null:T-y;y=T,v&&v({action:p,location:w.location,delta:z})}function C(T,z){p="PUSH";let R=Uu(w.location,T,z);y=S()+1;let M=Up(R,y),q=w.createHref(R);try{h.pushState(M,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;u.location.assign(q)}d&&v&&v({action:p,location:w.location,delta:1})}function j(T,z){p="REPLACE";let R=Uu(w.location,T,z);y=S();let M=Up(R,y),q=w.createHref(R);h.replaceState(M,"",q),d&&v&&v({action:p,location:w.location,delta:0})}function D(T){return nb(T)}let w={get action(){return p},get location(){return a(u,h)},listen(T){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(Lp,b),v=T,()=>{u.removeEventListener(Lp,b),v=null}},createHref(T){return i(u,T)},createURL:D,encodeLocation(T){let z=D(T);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:C,replace:j,go(T){return h.go(T)}};return w}function nb(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 o=typeof a=="string"?a:qi(a);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Av(a,i,r="/"){return lb(a,i,r,!1)}function lb(a,i,r,o){let u=typeof i=="string"?_a(i):i,d=Hn(u.pathname||"/",r);if(d==null)return null;let h=Rv(a);ab(h);let p=null;for(let v=0;p==null&&v<h.length;++v){let y=pb(d);p=hb(h[v],y,o)}return p}function Rv(a,i=[],r=[],o="",u=!1){let d=(h,p,v=u,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(o)&&v)return;ke(S.relativePath.startsWith(o),`Absolute route path "${S.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(o.length)}let b=Un([o,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}".`),Rv(h.children,i,C,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:fb(b,h.index),routesMeta:C})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let v of zv(h.path))d(h,p,!0,v)}),i}function zv(a){let i=a.split("/");if(i.length===0)return[];let[r,...o]=i,u=r.endsWith("?"),d=r.replace(/\?$/,"");if(o.length===0)return u?[d,""]:[d];let h=zv(o.join("/")),p=[];return p.push(...h.map(v=>v===""?d:[d,v].join("/"))),u&&p.push(...h),p.map(v=>a.startsWith("/")&&v===""?"/":v)}function ab(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:db(i.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var ib=/^:[\w-]+$/,cb=3,rb=2,ob=1,sb=10,ub=-2,Hp=a=>a==="*";function fb(a,i){let r=a.split("/"),o=r.length;return r.some(Hp)&&(o+=ub),i&&(o+=rb),r.filter(u=>!Hp(u)).reduce((u,d)=>u+(ib.test(d)?cb:d===""?ob:sb),o)}function db(a,i){return a.length===i.length&&a.slice(0,-1).every((o,u)=>o===i[u])?a[a.length-1]-i[i.length-1]:0}function hb(a,i,r=!1){let{routesMeta:o}=a,u={},d="/",h=[];for(let p=0;p<o.length;++p){let v=o[p],y=p===o.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=Rr({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},S),C=v.route;if(!b&&y&&r&&!o[o.length-1].route.index&&(b=Rr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},S)),!b)return null;Object.assign(u,b.params),h.push({params:u,pathname:Un([d,b.pathname]),pathnameBase:xb(Un([d,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(d=Un([d,b.pathnameBase]))}return h}function Rr(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,o]=mb(a.path,a.caseSensitive,a.end),u=i.match(r);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:o.reduce((y,{paramName:S,isOptional:b},C)=>{if(S==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const j=p[C];return b&&!j?y[S]=void 0:y[S]=(j||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:a}}function mb(a,i=!1,r=!0){Lt(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 o=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,v)=>(o.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(o.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),o]}function pb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Lt(!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 Hn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,o=a.charAt(r);return o&&o!=="/"?null:a.slice(r)||"/"}var Ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vb=a=>Ov.test(a);function gb(a,i="/"){let{pathname:r,search:o="",hash:u=""}=typeof a=="string"?_a(a):a,d;if(r)if(vb(r))d=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),Lt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?d=Bp(r.substring(1),"/"):d=Bp(r,i)}else d=i;return{pathname:d,search:bb(o),hash:Sb(u)}}function Bp(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function xu(a,i,r,o){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}]. 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 yb(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function tf(a){let i=yb(a);return i.map((r,o)=>o===i.length-1?r.pathname:r.pathnameBase)}function nf(a,i,r,o=!1){let u;typeof a=="string"?u=_a(a):(u={...a},ke(!u.pathname||!u.pathname.includes("?"),xu("?","pathname","search",u)),ke(!u.pathname||!u.pathname.includes("#"),xu("#","pathname","hash",u)),ke(!u.search||!u.search.includes("#"),xu("#","search","hash",u)));let d=a===""||u.pathname==="",h=d?"/":u.pathname,p;if(h==null)p=r;else{let b=i.length-1;if(!o&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),b-=1;u.pathname=C.join("/")}p=b>=0?i[b]:"/"}let v=gb(u,p),y=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||S)&&(v.pathname+="/"),v}var Un=a=>a.join("/").replace(/\/\/+/g,"/"),xb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),bb=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Sb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,wb=class{constructor(a,i,r,o=!1){this.status=a,this.statusText=i||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Eb(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Cb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var _v=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dv(a,i){let r=a;if(typeof r!="string"||!Ov.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,u=!1;if(_v)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),p=Hn(h.pathname,i);h.origin===d.origin&&p!=null?r=p+h.search+h.hash:u=!0}catch{Lt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Mv=["POST","PUT","PATCH","DELETE"];new Set(Mv);var Nb=["GET",...Mv];new Set(Nb);var Da=g.createContext(null);Da.displayName="DataRouter";var kr=g.createContext(null);kr.displayName="DataRouterState";var jb=g.createContext(!1),Lv=g.createContext({isTransitioning:!1});Lv.displayName="ViewTransition";var Tb=g.createContext(new Map);Tb.displayName="Fetchers";var Ab=g.createContext(null);Ab.displayName="Await";var Ut=g.createContext(null);Ut.displayName="Navigation";var Fi=g.createContext(null);Fi.displayName="Location";var dn=g.createContext({outlet:null,matches:[],isDataRoute:!1});dn.displayName="Route";var lf=g.createContext(null);lf.displayName="RouteError";var Uv="REACT_ROUTER_ERROR",Rb="REDIRECT",zb="ROUTE_ERROR_RESPONSE";function Ob(a){if(a.startsWith(`${Uv}:${Rb}:{`))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 _b(a){if(a.startsWith(`${Uv}:${zb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new wb(i.status,i.statusText,i.data)}catch{}}function Db(a,{relative:i}={}){ke(Ma(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=g.useContext(Ut),{hash:u,pathname:d,search:h}=Ki(a,{relative:i}),p=d;return r!=="/"&&(p=d==="/"?r:Un([r,d])),o.createHref({pathname:p,search:h,hash:u})}function Ma(){return g.useContext(Fi)!=null}function hn(){return ke(Ma(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Fi).location}var Hv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Bv(a){g.useContext(Ut).static||g.useLayoutEffect(a)}function qn(){let{isDataRoute:a}=g.useContext(dn);return a?Kb():Mb()}function Mb(){ke(Ma(),"useNavigate() may be used only in the context of a <Router> component.");let a=g.useContext(Da),{basename:i,navigator:r}=g.useContext(Ut),{matches:o}=g.useContext(dn),{pathname:u}=hn(),d=JSON.stringify(tf(o)),h=g.useRef(!1);return Bv(()=>{h.current=!0}),g.useCallback((v,y={})=>{if(Lt(h.current,Hv),!h.current)return;if(typeof v=="number"){r.go(v);return}let S=nf(v,JSON.parse(d),u,y.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:Un([i,S.pathname])),(y.replace?r.replace:r.push)(S,y.state,y)},[i,r,d,u,a])}g.createContext(null);function Ki(a,{relative:i}={}){let{matches:r}=g.useContext(dn),{pathname:o}=hn(),u=JSON.stringify(tf(r));return g.useMemo(()=>nf(a,JSON.parse(u),o,i==="path"),[a,u,o,i])}function Lb(a,i){return kv(a,i)}function kv(a,i,r,o,u){ke(Ma(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=g.useContext(Ut),{matches:h}=g.useContext(dn),p=h[h.length-1],v=p?p.params:{},y=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let R=b&&b.path||"";qv(y,!b||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let C=hn(),j;if(i){let R=typeof i=="string"?_a(i):i;ke(S==="/"||R.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 "${R.pathname}" was given in the \`location\` prop.`),j=R}else j=C;let D=j.pathname||"/",w=D;if(S!=="/"){let R=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=Av(a,{pathname:w});Lt(b||T!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),Lt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.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 z=kb(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},v,R.params),pathname:Un([S,d.encodeLocation?d.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?S:Un([S,d.encodeLocation?d.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),h,o,r,f);return i&&z?g.createElement(Fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...j},navigationType:"POP"}},z):z}function Lb(){let a=Gb(),i=wb(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},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),o?g.createElement("pre",{style:f},o):null,h)}var Ub=g.createElement(Lb,null),Yv=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 o=Ob(a.digest);o&&(a=o)}let i=a!==void 0?g.createElement(dn.Provider,{value:this.props.routeContext},g.createElement(lf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(Hb,{error:a},i):i}};Yv.contextType=Nb;var bu=new WeakMap;function Hb({children:a,error:i}){let{basename:o}=g.useContext(Ut);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=zb(i.digest);if(r){let f=bu.get(i);if(f)throw f;let d=Dv(r.location,o);if(_v&&!bu.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw bu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function Bb({routeContext:a,match:i,children:o}){let r=g.useContext(Da);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(dn.Provider,{value:a},o)}function kb(a,i=[],o=null,r=null,f=null){if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let d=a,h=o?.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(o)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:j}=o,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!j||j[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=o&&r?(S,b)=>{r(S,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Eb(o.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let j,D=!1,w=null,T=null;o&&(j=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||Ub,p&&(v<0&&C===0?(qv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,T=null):v===C&&(D=!0,T=b.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,C+1)),R=()=>{let M;return j?M=w:D?M=T:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(Bb,{match:b,routeContext:{outlet:S,matches:z,isDataRoute:o!=null},children:M})};return o&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(Yv,{location:o.location,revalidation:o.revalidation,component:w,error:j,children:R(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):R()},null)}function af(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yb(a){let i=g.useContext(Da);return ke(i,af(a)),i}function qb(a){let i=g.useContext(Yo);return ke(i,af(a)),i}function Vb(a){let i=g.useContext(dn);return ke(i,af(a)),i}function cf(a){let i=Vb(a),o=i.matches[i.matches.length-1];return ke(o.route.id,`${a} can only be used on routes that contain a unique "id"`),o.route.id}function Xb(){return cf("useRouteId")}function Gb(){let a=g.useContext(lf),i=qb("useRouteError"),o=cf("useRouteError");return a!==void 0?a:i.errors?.[o]}function Fb(){let{router:a}=Yb("useNavigate"),i=cf("useNavigate"),o=g.useRef(!1);return Bv(()=>{o.current=!0}),g.useCallback(async(f,d={})=>{Lt(o.current,Hv),o.current&&(typeof f=="number"?await a.navigate(f):await a.navigate(f,{fromRouteId:i,...d}))},[a,i])}var kp={};function qv(a,i,o){!i&&!kp[a]&&(kp[a]=!0,Lt(!1,o))}g.memo(Kb);function Kb({routes:a,future:i,state:o,onError:r}){return kv(a,void 0,o,r,i)}function Bn({to:a,replace:i,state:o,relative:r}){ke(Ma(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=g.useContext(Ut);Lt(!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(dn),{pathname:h}=hn(),p=qn(),v=nf(a,tf(d),h,r==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:o,relative:r})},[p,y,r,i,o]),null}function Ot(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 Qb({basename:a="/",children:i=null,location:o,navigationType:r="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){ke(!Ma(),"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 o=="string"&&(o=_a(o));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:j="default"}=o,D=g.useMemo(()=>{let w=Hn(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:j},navigationType:r}},[p,y,S,b,C,j,r]);return Lt(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(Ut.Provider,{value:v},g.createElement(Fi.Provider,{children:i,value:D}))}function Zb({children:a,location:i}){return Mb(Hu(a),i)}function Hu(a,i=[]){let o=[];return g.Children.forEach(a,(r,f)=>{if(!g.isValidElement(r))return;let d=[...i,f];if(r.type===g.Fragment){o.push.apply(o,Hu(r.props.children,d));return}ke(r.type===Ot,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ke(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Hu(r.props.children,d)),o.push(h)}),o}var No="get",jo="application/x-www-form-urlencoded";function qo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Pb(a){return qo(a)&&a.tagName.toLowerCase()==="button"}function Jb(a){return qo(a)&&a.tagName.toLowerCase()==="form"}function Ib(a){return qo(a)&&a.tagName.toLowerCase()==="input"}function Wb(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function $b(a,i){return a.button===0&&(!i||i==="_self")&&!Wb(a)}function Bu(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,o)=>{let r=a[o];return i.concat(Array.isArray(r)?r.map(f=>[o,f]):[[o,r]])},[]))}function eS(a,i){let o=Bu(a);return i&&i.forEach((r,f)=>{o.has(f)||i.getAll(f).forEach(d=>{o.append(f,d)})}),o}var po=null;function tS(){if(po===null)try{new FormData(document.createElement("form"),0),po=!1}catch{po=!0}return po}var nS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Su(a){return a!=null&&!nS.has(a)?(Lt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jo}"`),null):a}function lS(a,i){let o,r,f,d,h;if(Jb(a)){let p=a.getAttribute("action");r=p?Hn(p,i):null,o=a.getAttribute("method")||No,f=Su(a.getAttribute("enctype"))||jo,d=new FormData(a)}else if(Pb(a)||Ib(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(r=v?Hn(v,i):null,o=a.getAttribute("formmethod")||p.getAttribute("method")||No,f=Su(a.getAttribute("formenctype"))||Su(p.getAttribute("enctype"))||jo,d=new FormData(p,a),!tS()){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(qo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=No,r=null,f=jo,h=a}return d&&f==="text/plain"&&(h=d,d=void 0),{action:r,method:o.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function of(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function aS(a,i,o,r){let f=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:i&&Hn(f.pathname,i)==="/"?f.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${r}`,f}async function iS(a,i){if(a.id in i)return i[a.id];try{let o=await import(a.module);return i[a.id]=o,o}catch(o){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function cS(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 oS(a,i,o){let r=await Promise.all(a.map(async f=>{let d=i.routes[f.route.id];if(d){let h=await iS(d,o);return h.links?h.links():[]}return[]}));return fS(r.flat(1).filter(cS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Yp(a,i,o,r,f,d){let h=(v,y)=>o[y]?v.route.id!==o[y].route.id:!0,p=(v,y)=>o[y].pathname!==v.pathname||o[y].route.path?.endsWith("*")&&o[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=r.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:o[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function rS(a,i,{includeHydrateFallback:o}={}){return sS(a.map(r=>{let f=i.routes[r.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function sS(a){return[...new Set(a)]}function uS(a){let i={},o=Object.keys(a).sort();for(let r of o)i[r]=a[r];return i}function fS(a,i){let o=new Set;return new Set(i),a.reduce((r,f)=>{let d=JSON.stringify(uS(f));return o.has(d)||(o.add(d),r.push({key:d,link:f})),r},[])}function Vv(){let a=g.useContext(Da);return of(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function dS(){let a=g.useContext(Yo);return of(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var rf=g.createContext(void 0);rf.displayName="FrameworkContext";function Xv(){let a=g.useContext(rf);return of(a,"You must render this element inside a <HydratedRouter> element"),a}function hS(a,i){let o=g.useContext(rf),[r,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=z=>{z.forEach(R=>{h(R.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return C.current&&T.observe(C.current),()=>{T.disconnect()}}},[a]),g.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let j=()=>{f(!0)},D=()=>{f(!1),h(!1)};return o?a!=="intent"?[d,C,{}]:[d,C,{onFocus:_i(p,j),onBlur:_i(v,D),onMouseEnter:_i(y,j),onMouseLeave:_i(S,D),onTouchStart:_i(b,j)}]:[!1,C,{}]}function _i(a,i){return o=>{a&&a(o),o.defaultPrevented||i(o)}}function mS({page:a,...i}){let{router:o}=Vv(),r=g.useMemo(()=>Av(o.routes,a,o.basename),[o.routes,a,o.basename]);return r?g.createElement(vS,{page:a,matches:r,...i}):null}function pS(a){let{manifest:i,routeModules:o}=Xv(),[r,f]=g.useState([]);return g.useEffect(()=>{let d=!1;return oS(a,i,o).then(h=>{d||f(h)}),()=>{d=!0}},[a,i,o]),r}function vS({page:a,matches:i,...o}){let r=hn(),{future:f,manifest:d,routeModules:h}=Xv(),{basename:p}=Vv(),{loaderData:v,matches:y}=dS(),S=g.useMemo(()=>Yp(a,i,y,d,r,"data"),[a,i,y,d,r]),b=g.useMemo(()=>Yp(a,i,y,d,r,"assets"),[a,i,y,d,r]),C=g.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let w=new Set,T=!1;if(i.forEach(R=>{let M=d.routes[R.route.id];!M||!M.hasLoader||(!S.some(q=>q.route.id===R.route.id)&&R.route.id in v&&h[R.route.id]?.shouldRevalidate||M.hasClientLoader?T=!0:w.add(R.route.id))}),w.size===0)return[];let z=aS(a,p,f.unstable_trailingSlashAwareDataRequests,"data");return T&&w.size>0&&z.searchParams.set("_routes",i.filter(R=>w.has(R.route.id)).map(R=>R.route.id).join(",")),[z.pathname+z.search]},[p,f.unstable_trailingSlashAwareDataRequests,v,r,d,S,i,a,h]),j=g.useMemo(()=>rS(b,d),[b,d]),D=pS(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...o})),j.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...o})),D.map(({key:w,link:T})=>g.createElement("link",{key:w,nonce:o.nonce,...T})))}function gS(...a){return i=>{a.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var yS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yS&&(window.__reactRouterVersion="7.12.0")}catch{}function xS({basename:a,children:i,unstable_useTransitions:o,window:r}){let f=g.useRef();f.current==null&&(f.current=Wx({window:r,v5Compat:!0}));let d=f.current,[h,p]=g.useState({action:d.action,location:d.location}),v=g.useCallback(y=>{o===!1?p(y):g.startTransition(()=>p(y))},[o]);return g.useLayoutEffect(()=>d.listen(v),[d,v]),g.createElement(Qb,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:o})}var Gv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Oo=g.forwardRef(function({onClick:i,discover:o="render",prefetch:r="none",relative:f,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D){let{basename:w,unstable_useTransitions:T}=g.useContext(Ut),z=typeof y=="string"&&Gv.test(y),R=Dv(y,w);y=R.to;let M=_b(y,{relative:f}),[q,Q,P]=hS(r,j),Y=ES(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:f,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:T});function ne(se){i&&i(se),se.defaultPrevented||Y(se)}let le=g.createElement("a",{...j,...P,href:R.absoluteURL||M,onClick:R.isExternal||d?i:ne,ref:gS(D,Q),target:v,"data-discover":!z&&o==="render"?"true":void 0});return q&&!z?g.createElement(g.Fragment,null,le,g.createElement(mS,{page:M})):le});Oo.displayName="Link";var bS=g.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:r="",end:f=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Ki(h,{relative:y.relative}),C=hn(),j=g.useContext(Yo),{navigator:D,basename:w}=g.useContext(Ut),T=j!=null&&RS(b)&&p===!0,z=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,R=C.pathname,M=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;o||(R=R.toLowerCase(),M=M?M.toLowerCase():null,z=z.toLowerCase()),M&&w&&(M=Hn(M,w)||M);const q=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Q=R===z||!f&&R.startsWith(z)&&R.charAt(q)==="/",P=M!=null&&(M===z||!f&&M.startsWith(z)&&M.charAt(z.length)==="/"),Y={isActive:Q,isPending:P,isTransitioning:T},ne=Q?i:void 0,le;typeof r=="function"?le=r(Y):le=[r,Q?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let se=typeof d=="function"?d(Y):d;return g.createElement(Oo,{...y,"aria-current":ne,className:le,ref:S,style:se,to:h,viewTransition:p},typeof v=="function"?v(Y):v)});bS.displayName="NavLink";var SS=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:o,reloadDocument:r,replace:f,state:d,method:h=No,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D)=>{let{unstable_useTransitions:w}=g.useContext(Ut),T=TS(),z=AS(p,{relative:y}),R=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Gv.test(p),q=Q=>{if(v&&v(Q),Q.defaultPrevented)return;Q.preventDefault();let P=Q.nativeEvent.submitter,Y=P?.getAttribute("formmethod")||h,ne=()=>T(P||Q.currentTarget,{fetcherKey:i,method:Y,navigate:o,replace:f,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&o!==!1?g.startTransition(()=>ne()):ne()};return g.createElement("form",{ref:D,method:R,action:z,onSubmit:r?v:q,...j,"data-discover":!M&&a==="render"?"true":void 0})});SS.displayName="Form";function wS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fv(a){let i=g.useContext(Da);return ke(i,wS(a)),i}function ES(a,{target:i,replace:o,state:r,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=qn(),S=hn(),b=Ki(a,{relative:d});return g.useCallback(C=>{if($b(C,i)){C.preventDefault();let j=o!==void 0?o:qi(S)===qi(b),D=()=>y(a,{replace:j,state:r,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,o,r,i,a,f,d,h,p,v])}function CS(a){Lt(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(Bu(a)),o=g.useRef(!1),r=hn(),f=g.useMemo(()=>eS(r.search,o.current?null:i.current),[r.search]),d=qn(),h=g.useCallback((p,v)=>{const y=Bu(typeof p=="function"?p(new URLSearchParams(f)):p);o.current=!0,d("?"+y,v)},[d,f]);return[f,h]}var NS=0,jS=()=>`__${String(++NS)}__`;function TS(){let{router:a}=Fv("useSubmit"),{basename:i}=g.useContext(Ut),o=Xb(),r=a.fetch,f=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=lS(d,i);if(h.navigate===!1){let C=h.fetcherKey||jS();await r(C,o,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:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,f,i,o])}function AS(a,{relative:i}={}){let{basename:o}=g.useContext(Ut),r=g.useContext(dn);ke(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d={...Ki(a||".",{relative:i})},h=hn();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"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Un([o,d.pathname])),qi(d)}function RS(a,{relative:i}={}){let o=g.useContext(Lv);ke(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Fv("useViewTransitionState"),f=Ki(a,{relative:i});if(!o.isTransitioning)return!1;let d=Hn(o.currentLocation.pathname,r)||o.currentLocation.pathname,h=Hn(o.nextLocation.pathname,r)||o.nextLocation.pathname;return zo(f.pathname,h)!=null||zo(f.pathname,d)!=null}var Qi=Tv();const zS=Nv(Qi),sf="css-account",uf="xpod.cssAccountToken",OS="CSS-Account-Token";function ff(){return typeof window<"u"&&typeof document<"u"}function _S(){if(!ff())return;const a=document.cookie.split(";");for(const i of a){const[o,...r]=i.trim().split("=");if(o===sf){const f=r.join("=");try{return f?decodeURIComponent(f):void 0}catch{return}}}}function Kv(a){ff()&&(document.cookie=`${sf}=${encodeURIComponent(a)}; Path=/; SameSite=Lax`)}function DS(){ff()&&(document.cookie=`${sf}=; Path=/; SameSite=Lax; Max-Age=0`)}function MS(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(uf)||void 0}catch{return}}function LS(a){if(!(typeof window>"u"))try{window.sessionStorage.setItem(uf,a)}catch{}}function US(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(uf)}catch{}}function wu(a){a&&(LS(a),Kv(a))}function df(){US(),DS()}function HS(){const a=_S();if(a)return a;const i=MS();if(i)return Kv(i),i}function sn(a,i={Accept:"application/json"}){const o={...i};return a&&!BS(o,"Authorization")&&(o.Authorization=`${OS} ${a}`),o}function Ke(a={Accept:"application/json"}){return sn(HS(),a)}function BS(a,i){const o=i.toLowerCase();return Object.keys(a).some(r=>r.toLowerCase()===o)}const Qv=g.createContext(null);function en(){const a=g.useContext(Qv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function kS({children:a}){const i="/.account/",[o,r]=g.useState(null),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!o?.account?.logout,b=f,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:Ke(),credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},j=async()=>{try{const w=await fetch(i,{headers:Ke(),credentials:"include"});if(w.ok){const T=await w.json();let z=!1;T.controls?.account?.logout&&(z=await C()),y(z),r(T.controls||{})}else{if(w.status===401||w.status===403){df(),y(!1),r({});return}p(`Failed to load configuration (Status: ${w.status})`)}}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await j(),d(!1)))()},[i]);const D=async()=>{await j()};return u.jsx(Qv.Provider,{value:{controls:o,isInitializing:f,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const Zv=(...a)=>a.filter((i,o,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===o).join(" ").trim();const YS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const qS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,r)=>r?r.toUpperCase():o.toLowerCase());const qp=a=>{const i=qS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var VS={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 XS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const GS=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:f="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...VS,width:i,height:i,stroke:a,strokeWidth:r?Number(o)*24/Number(i):o,className:Zv("lucide",f),...!d&&!XS(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Xe=(a,i)=>{const o=g.forwardRef(({className:r,...f},d)=>g.createElement(GS,{ref:d,iconNode:i,className:Zv(`lucide-${YS(qp(a))}`,`lucide-${a}`,r),...f}));return o.displayName=qp(a),o};const FS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Pv=Xe("arrow-left",FS);const KS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Vo=Xe("arrow-right",KS);const QS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ln=Xe("check",QS);const ZS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jv=Xe("chevron-down",ZS);const PS=[["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"}]],Iv=Xe("circle-alert",PS);const JS=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Wv=Xe("clock",JS);const IS=[["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"}]],vo=Xe("copy",IS);const WS=[["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"}]],$S=Xe("database",WS);const e1=[["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"}]],Vp=Xe("external-link",e1);const t1=[["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"}]],n1=Xe("globe",t1);const l1=[["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"}]],a1=Xe("hard-drive",l1);const i1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],c1=Xe("info",i1);const o1=[["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"}]],Eu=Xe("key",o1);const r1=[["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"}]],$v=Xe("layers",r1);const s1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],za=Xe("loader-circle",s1);const u1=[["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"}]],Yi=Xe("lock",u1);const f1=[["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"}]],d1=Xe("log-out",f1);const h1=[["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"}]],ku=Xe("mail",h1);const m1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Cu=Xe("plus",m1);const p1=[["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=Xe("shield",p1);const v1=[["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"}]],Xp=Xe("trash-2",v1);const g1=[["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"}]],eg=Xe("user",g1);function tg(){return u.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:u.jsx(za,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Zi({children:a,title:i,subtitle:o,icon:r,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(Pv,{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:r?u.jsx(r,{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}),o&&u.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:o})]}),a]})]})}function y1({message:a}){return u.jsx(Zi,{title:"Error",subtitle:a,icon:Iv,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 Yu="xpod:returnTo";function Ta(a){try{a&&sessionStorage.setItem(Yu,a)}catch{}}function x1(){try{const a=sessionStorage.getItem(Yu);return a&&sessionStorage.removeItem(Yu),a}catch{return null}}function b1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function S1(a,i,o=!1){return a&&i&&!o}function Gp({children:a,allowOidcPending:i=!1}){const{isLoggedIn:o,hasOidcPending:r}=en(),f=hn();return S1(o,r,i)?u.jsx(Bn,{to:"/.account/oidc/consent/",replace:!0}):o?u.jsx(u.Fragment,{children:a}):(Ta(f.pathname+f.search),u.jsx(Bn,{to:"/.account/login/password/",replace:!0}))}function ng(a){var i,o,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(o=ng(a[i]))&&(r&&(r+=" "),r+=o)}else for(o in a)a[o]&&(r&&(r+=" "),r+=o);return r}function $e(){for(var a,i,o=0,r="",f=arguments.length;o<f;o++)(a=arguments[o])&&(i=ng(a))&&(r&&(r+=" "),r+=i);return r}const Fp=3,_o=63,w1=/^[a-z0-9-]+$/;function Xi(a){return a.trim().toLowerCase()}function Do(a){const i=Xi(a);if(!i)return"Username is required";if(i.length<Fp||i.length>_o)return`Username must be ${Fp}-${_o} characters`;if(!w1.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 E1(a,i=5){const r=Xi(a).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,_o-3)||"user",f=Array.from({length:Math.max(i,3)},(d,h)=>`${r}-${h+1}`);return Array.from(new Set(f.map(d=>d.slice(0,_o)).filter(d=>!Do(d)))).slice(0,i)}function C1(a){if(typeof window<"u")return"/api/v1/identity";try{const i=new URL(a);return i.hostname.startsWith("id.")?`${i.protocol}//api.${i.hostname.slice(3)}/api/v1/identity`:`${i.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function lg(a,i,o){const r=`${C1(i)}/${encodeURIComponent(a)}`;try{const f=await o(r,{headers:{Accept:"application/json"},credentials:"include"});if(f.status===404)return!1;if(f.ok||f.status===409)return!0}catch{}}async function N1(a,i,o,r=3){const f=E1(a,Math.max(r*2,5)),d=[];for(const h of f)if(await lg(h,i,o)===!1&&d.push(h),d.length>=r)break;return d}async function Kp(a,i,o=fetch){const r=Xi(a),f=Do(r);if(f)return{available:!1,suggestions:[],error:f};const d=await lg(r,i,o);return d===!1?{available:!0,suggestions:[]}:d===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await N1(r,i,o)}}function j1(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function qu(){try{sessionStorage.removeItem("provisionCode")}catch{}}function ag(a,i=j1()){const o={name:a.trim()};return i&&(o.settings={provisionCode:i}),o}class Xo extends Error{code;constructor(i,o){super(i),this.name="RegistrationError",this.code=o}}async function hf(a){const i=await a.json().catch(()=>{});return i?.message||i?.error}function T1(a){return a?/There already is a resource at/i.test(a)||/Username already taken/i.test(a):!1}function A1(a){return a?/already is a login for this e-mail address/i.test(a)||/email(?: address)? is already/i.test(a)||/already registered/i.test(a):!1}function R1(a,i){try{return new URL(a,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===i}catch{return!1}}async function z1(a,i,o,r){const f=await a(i,{headers:sn(r),credentials:"include"});if(!f.ok)return!1;const d=await f.json().catch(()=>({}));return Object.keys(d.pods??{}).some(h=>R1(h,o))}async function O1(a){const i=a.fetchImpl??fetch;let o=await i(a.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to create account");const r=await o.json().catch(()=>({})),f=typeof r.authorization=="string"?r.authorization:"";if(!f)throw new Error("Account token not returned");if(o=await i(a.idpIndex,{headers:sn(f),credentials:"include"}),!o.ok)throw new Error((await o.json().catch(()=>({}))).message||"Failed to load account controls");const d=await o.json().catch(()=>({})),h=d.controls?.password?.create,p=d.controls?.password?.login;if(!h)throw new Error("Password endpoint not found");if(!p)throw new Error("Login endpoint not found");if(o=await i(h,{method:"POST",headers:{...sn(f),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})}),!o.ok){const v=await hf(o);throw A1(v)?new Xo("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(v||"Failed to set password")}return{accountToken:f,loginUrl:p}}async function _1(a){const o=await(a.fetchImpl??fetch)(a.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})});if(!o.ok){const d=await hf(o);throw a.duplicateEmailRecovery?new Xo("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(d||"Auto-login failed")}const r=await o.json().catch(()=>({})),f=typeof r.authorization=="string"?r.authorization:"";if(!f)throw new Error("Account token not returned after login");return{accountToken:f}}async function Qp(a,i,o,r,f=15e3){const d=Date.now()+f;let h=o?.pod,p=o?.webId;for(;Date.now()<d;){try{if(!h&&!p){const v=await a(i,{headers:sn(r),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));h=y.controls?.account?.pod,p=y.controls?.account?.webId}}if(p){const v=await a(p,{headers:sn(r),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));if(Object.keys(y.webIdLinks??{}).length>0)return!0}}if(h){const v=await a(h,{headers:sn(r),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));if(Object.keys(y.pods??{}).length>0)return!0}}}catch{}await new Promise(v=>setTimeout(v,500))}return!1}async function Zp(a){const i=a.fetchImpl??fetch,{accountToken:o,idpIndex:r,username:f}=a;let d=await i(r,{headers:sn(o),credentials:"include"});const h=await d.json().catch(()=>({})),p=h.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await z1(i,p,f,o))return qu(),await Qp(i,r,h.controls?.account,o),{createdPod:!0,redirectedToConsent:await Pp(i,o)};if(d=await i(p,{method:"POST",headers:{...sn(o),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(ag(f))}),!d.ok){const v=await hf(d);throw T1(v)?new Xo("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(v||"Failed to create pod")}return await d.json().catch(()=>({})),qu(),await Qp(i,r,h.controls?.account,o),{createdPod:!0,redirectedToConsent:await Pp(i,o)}}async function Pp(a,i){const o=await a("/.account/oidc/consent/",{headers:sn(i),credentials:"include"});return!!(o.ok&&(await o.json().catch(()=>({}))).client)}function Vu({initialIsRegister:a=!1}){const{controls:i,idpIndex:o,isLoggedIn:r,authenticating:f}=en(),d=qn(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,j]=g.useState(""),[D,w]=g.useState(""),[T,z]=g.useState(!1),[R,M]=g.useState(!1),[q,Q]=g.useState(null),[P,Y]=g.useState([]),[ne,le]=g.useState(null),[se,ue]=g.useState(""),[$,te]=g.useState(null),[ee,fe]=g.useState(null),_=C.length>0&&D.length>0&&C===D,L=Xi(S),V=v?Do(L):void 0;if(g.useEffect(()=>{const Z=b1();Z&&Ta(Z)},[]),g.useEffect(()=>{if(!v){M(!1),Q(null),Y([]),le(null);return}if(!L){M(!1),Q(null),Y([]),le(null);return}if(V){M(!1),Q(!1),Y([]),le(V);return}let Z=!1;M(!0);const W=window.setTimeout(async()=>{const oe=await Kp(L,o);Z||(M(!1),Q(oe.available),Y(oe.suggestions),le(oe.error??null))},300);return()=>{Z=!0,window.clearTimeout(W)}},[o,v,L,V]),r)return u.jsx(Bn,{to:"/.account/account/",replace:!0});const ae=[{icon:Wv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:$v,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:Vi,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],ve=async Z=>{Z.preventDefault(),p(!0),te(null),fe(null);const W=new FormData(Z.currentTarget),oe=W.get("email"),he=W.get("password");try{if(v){const J=W.get("confirmPassword"),me=Xi(W.get("username")),I=Do(me);if(he!==J){alert("Passwords do not match"),p(!1);return}if(I){alert(I),p(!1);return}const ie=await Kp(me,o),ge=i?.password?.login||"/.account/login/password/",Ne=async(nt=!1)=>{const tn=await _1({duplicateEmailRecovery:nt,email:oe,fetchImpl:fetch,loginUrl:ge,password:he});return wu(tn.accountToken),tn.accountToken};if(!ie.available){let nt;try{nt=await Ne()}catch{}if(nt){const tn=await Zp({accountToken:nt,idpIndex:o,username:me});window.location.href=tn.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/";return}Q(!1),Y(ie.suggestions),le(ie.error??"Username is already taken"),p(!1);return}if(ie.error){Q(!1),le(ie.error),p(!1);return}let Ye;const tt=await Ne().catch(()=>{});if(tt)Ye=tt;else try{Ye=(await O1({accountCreateUrl:i?.account?.create||"/.account/account/",email:oe,password:he,idpIndex:o})).accountToken,wu(Ye)}catch(nt){if(!(nt instanceof Xo)||nt.code!=="EMAIL_ALREADY_REGISTERED")throw nt;Ye=await Ne(!0)}const pn=await Zp({accountToken:Ye,idpIndex:o,username:me});window.location.href=pn.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const J=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:oe,password:he})}),me=await J.json().catch(()=>({}));if(J.ok){wu(typeof me.authorization=="string"?me.authorization:void 0);const I=J.headers.get("Location");if(me.location){window.location.href=me.location;return}if(I){window.location.href=I;return}const ie=x1();if(ie){window.location.href=ie;return}try{if((await fetch("/.account/oidc/consent/",{headers:Ke(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else fe(me.message||"Login failed")}}catch(J){J?.name==="RegistrationError"&&J.code==="EMAIL_ALREADY_REGISTERED"?te(J.message):J?.name==="RegistrationError"&&J.code==="USERNAME_ALREADY_TAKEN"?(Q(!1),le(J.message)):fe(J.message||"Operation failed")}finally{p(!1)}},N=()=>{y(!v),b(""),j(""),w(""),M(!1),Q(null),Y([]),le(null),ue(""),te(null),fe(null)},G=async()=>{if(i?.oidc?.cancel){z(!0);try{const W=await(await fetch(i.oidc.cancel,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();W.location&&(window.location.href=W.location)}catch{alert("Failed to cancel"),z(!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:ae.map(({icon:Z,title:W,desc:oe})=>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(Z,{className:"w-4 h-4 text-[#7C4DFF]"})}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:W}),u.jsx("p",{className:"text-[10px] text-zinc-500",children:oe})]})]},W))})}),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:ve,children:[ee&&u.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:ee}),u.jsxs("div",{className:"space-y-3",children:[v&&u.jsxs("div",{className:"relative",children:[u.jsx(eg,{className:$e("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",V&&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:Z=>b(Z.target.value),className:$e("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",V&&S.length>0||q===!1?"border-amber-300 focus:border-amber-500":q?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(ku,{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,value:se,onChange:Z=>{ue(Z.target.value),$&&te(null)},className:$e("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",$?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),$&&u.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[$," ",u.jsx("button",{type:"button",onClick:()=>{y(!1),te(null),fe(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),u.jsxs("div",{className:"relative",children:[u.jsx(Yi,{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:Z=>j(Z.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:[_?u.jsx(Ln,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(Yi,{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:Z=>w(Z.target.value),className:$e("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",_?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&u.jsx("p",{className:$e("text-[11px] leading-relaxed",V&&S.length>0||q===!1?"text-amber-600":q?"text-emerald-600":"text-zinc-500"),children:V&&S.length>0?V:R?"Checking username availability...":ne||(L&&q===!1?"Username is already taken.":L&&q?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),v&&P.length>0&&!V&&q===!1&&u.jsx("div",{className:"flex flex-wrap gap-2",children:P.map(Z=>u.jsx("button",{type:"button",onClick:()=>b(Z),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:Z},Z))}),!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||T||!!(v&&(V||R||q===!1)),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(za,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:[v?"Sign up":"Sign in",u.jsx(Vo,{className:"h-4 w-4"})]})}),f&&!v&&u.jsx("button",{type:"button",onClick:G,disabled:T||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:T?u.jsx(za,{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:N,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function D1(){const{isLoggedIn:a,hasOidcPending:i}=en();return a&&i?u.jsx(Bn,{to:"/.account/oidc/consent/",replace:!0}):a?u.jsx(Bn,{to:"/.account/account/",replace:!0}):u.jsx(Vu,{})}function M1(){const a=qn(),{isLoggedIn:i}=en(),o=[{icon:Wv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:$v,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Vi,title:"One Secretary, Many 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:o.map(({icon:r,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(r,{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:o.map(({icon:r,title:f,desc:d})=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx(r,{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(Vp,{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(Vp,{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(Pv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function L1(a){try{const o=new URL(a).pathname.split("/").filter(Boolean);return o[o.length-1]}catch{return}}function U1(a){const i=a?.pods;return!i||typeof i!="object"?[]:Object.entries(i).map(([o,r])=>({id:o,resourceUrl:r,name:L1(o)}))}function Nu(a,i){return`sk-${btoa(`${a}:${i}`)}`}function H1(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:a,hostname:i,origin:o}=window.location;return i.startsWith("id.")?`${a}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${o}/v1`:`${o.replace(/\/$/,"")}/v1`}function B1(){const{controls:a,refetchControls:i,hasOidcPending:o}=en(),r=qn(),[f,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,j]=g.useState(!1),[D,w]=g.useState(""),[T,z]=g.useState(!1),[R,M]=g.useState(""),[q,Q]=g.useState([]),[P,Y]=g.useState(null),[ne,le]=g.useState(!1),[se,ue]=g.useState(""),[$,te]=g.useState(""),[ee,fe]=g.useState(null),[_,L]=g.useState(!1),V=g.useRef(null),ae=H1();g.useEffect(()=>{const I=ie=>{V.current&&!V.current.contains(ie.target)&&L(!1)};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);const ve=async(I,ie)=>{try{await navigator.clipboard.writeText(I),fe(ie),setTimeout(()=>fe(null),2e3)}catch{}},N=async()=>{try{let I=[];if(a?.account?.webId){const ie=await fetch(a.account.webId,{headers:Ke(),credentials:"include"});if(ie.ok){const Ne=(await ie.json()).webIdLinks||{};I=Object.keys(Ne),p(I)}else p([])}else p([]);if(a?.account?.pod){const ie=await fetch(a.account.pod,{headers:Ke(),credentials:"include"});if(ie.ok){const ge=await ie.json(),Ne=U1(ge);y(Ne),b(Ne.length===0&&I.length>0)}else y([]),b(I.length>0)}else y([]),b(!1);if(a?.account?.clientCredentials){const ie=await fetch(a.account.clientCredentials,{headers:Ke(),credentials:"include"});if(ie.ok){const Ne=(await ie.json()).clientCredentials||{};Q(Object.entries(Ne).map(([Ye])=>({id:Ye})))}else Q([])}}catch(I){console.error("Failed to fetch account data:",I)}};g.useEffect(()=>{N()},[a]);const G=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:Ke(),credentials:"include"})).ok&&(df(),await i(),r("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},Z=async I=>{if(I.preventDefault(),!(!a?.account?.pod||!D.trim())){d(!0);try{const ie=await fetch(a.account.pod,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(ag(D))});if(ie.ok)qu(),w(""),j(!1),await i(),await N(),o&&r("/.account/oidc/consent/");else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},W=async I=>{if(I.preventDefault(),!(!a?.account?.webId||!R.trim())){d(!0);try{const ie=await fetch(a.account.webId,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:R.trim()})});if(ie.ok)M(""),z(!1),await N();else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},oe=async I=>{if(confirm(`Delete pod ${I}? This cannot be undone.`)){d(!0);try{(await fetch(I,{method:"DELETE",headers:Ke(),credentials:"include"})).ok?await N():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},he=async I=>{if(I.preventDefault(),!(!a?.account?.clientCredentials||!se||!$.trim())){d(!0);try{const ie=await fetch(a.account.clientCredentials,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:$.trim(),webId:se})});if(ie.ok){const ge=await ie.json();Y({id:ge.id,secret:ge.secret}),le(!1),ue(""),te(""),await N()}else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},J=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}ue(h[0]),te(""),le(!0)},me=async I=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(I,{method:"DELETE",headers:Ke(),credentials:"include"})).ok?await N():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(Oo,{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(c1,{className:"w-3.5 h-3.5"}),"About"]}),u.jsxs("button",{onClick:G,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(d1,{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:[o&&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(Oo,{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(Vo,{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(a1,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&u.jsxs("button",{onClick:()=>j(!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(Cu,{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."}),C&&u.jsxs("form",{onSubmit:Z,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:D,onChange:I=>w(I.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:()=>j(!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:S?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):u.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(I=>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($S,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("a",{href:I.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:I.id}),I.name&&u.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",I.name]})]})]}),u.jsx("button",{onClick:()=>oe(I.resourceUrl),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:u.jsx(Xp,{className:"w-4 h-4"})})]},I.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(eg,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&u.jsxs("button",{onClick:()=>z(!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(Cu,{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."}),T&&u.jsxs("form",{onSubmit:W,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:R,onChange:I=>M(I.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:()=>z(!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(I=>u.jsxs("li",{className:"p-3 flex items-center gap-3",children:[u.jsx(n1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("a",{href:I,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:I})]},I))})})]}),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(Eu,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&u.jsxs("button",{onClick:J,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(Cu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),u.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",u.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",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:[ne&&u.jsxs("form",{onSubmit:he,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:$,onChange:I=>te(I.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:V,children:[u.jsxs("button",{type:"button",onClick:()=>L(!_),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:se||"Select WebID"}),u.jsx(Jv,{className:`w-4 h-4 text-zinc-400 transition-transform ${_?"rotate-180":""}`})]}),_&&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(I=>u.jsx("button",{type:"button",onClick:()=>{ue(I),L(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${se===I?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:I},I))}),u.jsx("input",{type:"hidden",name:"webId",value:se,required:!0})]})]}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:()=>le(!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"})]})]}),P&&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(Eu,{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:P.id})]}),u.jsx("button",{onClick:()=>ve(P.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:ee==="id"?u.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(vo,{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:P.secret})]}),u.jsx("button",{onClick:()=>ve(P.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:ee==="secret"?u.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(vo,{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:Nu(P.id,P.secret)})]}),u.jsx("button",{onClick:()=>ve(Nu(P.id,P.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:ee==="apikey"?u.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(vo,{className:"w-3.5 h-3.5"})})]})]}),u.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[u.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),u.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[u.jsxs("div",{className:"flex items-start justify-between gap-2",children:[u.jsxs("div",{className:"min-w-0",children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),u.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),u.jsx("button",{onClick:()=>ve(ae,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:ee==="baseurl"?u.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):u.jsx(vo,{className:"w-3.5 h-3.5"})})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),u.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",Nu(P.id,P.secret)]})]}),u.jsxs("div",{children:[u.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),u.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),u.jsx("button",{onClick:()=>Y(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:q.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:q.map(I=>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(Eu,{className:"w-4 h-4 text-zinc-400 shrink-0"}),u.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:I.id})]}),u.jsx("button",{onClick:()=>me(I.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(Xp,{className:"w-4 h-4"})})]},I.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 k1(){const{idpIndex:a,isLoggedIn:i,controls:o}=en(),r=qn(),[f,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,j]=g.useState(""),[D,w]=g.useState(null),[T,z]=g.useState(null),[R,M]=g.useState(!0),q=`${a}oidc/consent/`,Q=`${a}oidc/pick-webid/`,P=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Ta(window.location.href),(async()=>{try{const $=await fetch(q,{headers:Ke(),credentials:"include"});if(console.log("[Consent] GET consent response status:",$.status),$.status===401||$.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!$.ok){const fe=await $.json().catch(()=>({}));throw new Error(fe.message||"Failed to load consent info")}const te=await $.json();p(te.client||{}),y(te.webId||null);const ee=await fetch(Q,{headers:Ke(),credentials:"include"});if(ee.ok){const _=(await ee.json()).webIds||[];b(_),te.webId&&_.includes(te.webId)?j(te.webId):_.length>0&&j(_[0])}}catch($){w($.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=$=>{try{const te=new URL($),ee=te.pathname.split("/").filter(Boolean);return{provider:te.host,podId:ee[0]??"-",full:$}}catch{return{provider:"-",podId:"-",full:$}}},ne=async $=>{try{await navigator.clipboard.writeText($),z($),setTimeout(()=>z(null),1200)}catch{z(null)}},le=async()=>{try{o?.account?.logout&&await fetch(o.account.logout,{method:"POST",headers:Ke(),credentials:"include"}),df(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},se=async $=>{console.log("[Consent] handleConsent called, allow:",$);try{if(d(!0),w(null),!$){console.log("[Consent] Cancelling...");const V=await(await fetch(P,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",V),V.location&&(window.location.href=V.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Q,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),V=await L.json();if(!L.ok)throw new Error(V.message||"Failed to select WebID");V.location&&await fetch(V.location,{credentials:"include"})}const te=await fetch(q,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:R})}),ee=await te.json();if(console.log("[Consent] Response:",te.status,ee),console.log("[Consent] Location header:",te.headers.get("Location")),!te.ok)throw new Error(ee.message||"Consent failed");const fe=te.headers.get("Location"),_=ee.location||fe;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(te){w(te.message||"Consent failed"),d(!1)}},ue=S.length>0?S:v?[v]:[];return u.jsxs(Zi,{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:()=>{Ta(window.location.href),r("/.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(Iv,{className:"w-4 h-4 inline mr-2"}),D]}),f?u.jsx("div",{className:"flex justify-center py-6",children:u.jsx(za,{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"}),ue.length>0&&u.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",u.jsx("span",{className:"text-zinc-600",children:Y(ue[0]).provider})]})]}),ue.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:()=>{Ta(window.location.href),r("/.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:ue.map($=>{const te=Y($);return u.jsxs("label",{className:$e("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===$?"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:$,checked:C===$,onChange:ee=>j(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:te.full,children:te.podId})}),u.jsx("button",{type:"button",onClick:ee=>{ee.preventDefault(),ne($)},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:T===$?"Copied":"Copy"})]},$)})})]}),u.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:R,onChange:$=>M($.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:()=>se(!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:()=>se(!0),disabled:f||ue.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:()=>{Ta(window.location.href),r("/.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 Y1(){const{controls:a,isLoggedIn:i}=en(),o=qn(),[r,f]=g.useState(!1),[d,h]=g.useState(!1);if(i)return u.jsx(Bn,{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(Zi,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:ku,showBack:!0,onBack:()=>o("/.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(Ln,{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:()=>o("/.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(ku,{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:r,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:r?u.jsx(za,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Send Reset Link ",u.jsx(Vo,{className:"h-4 w-4"})]})})]})})}function q1(){const{controls:a,isLoggedIn:i}=en(),o=qn(),[r]=CS(),[f,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,j]=g.useState(""),D=r.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return u.jsx(Bn,{to:"/.account/account/",replace:!0});if(!D)return u.jsx(Bn,{to:"/.account/login/password/forgot/",replace:!0});const T=async z=>{if(z.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const R=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(R,{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(Zi,{title:"Reset Password",subtitle:"Enter your new password.",icon:Yi,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(Ln,{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:()=>o("/.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:T,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(Yi,{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:z=>b(z.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(Ln,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):u.jsx(Yi,{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:z=>j(z.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(za,{className:"w-4 h-4 animate-spin"}):u.jsxs(u.Fragment,{children:["Reset Password ",u.jsx(Vo,{className:"h-4 w-4"})]})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>o("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function V1(){const{controls:a,isLoggedIn:i}=en(),[o,r]=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:Ke(),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}r(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(tg,{}):u.jsx(Zi,{title:"Select Login Method",children:u.jsx("div",{className:"space-y-2",children:o.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 ig={"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"},X1=Object.keys(ig),G1=g.forwardRef(function({control:i,...o},r){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 X1)d.addEventListener(p,v=>{const y=ig[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 r=="function"?r(d):r&&(r.current=d),f.current},...o})});function Jp(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Xu(a,i,o=new WeakMap){if(Object.is(a,i))return!0;if(typeof a=="function"&&typeof i=="function")return typeof a==typeof i;if(!Jp(a)||!Jp(i))return!1;const r=o.get(a);if(r&&r===i)return!0;if(o.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(!Xu(a[h],i[h],o))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(!Xu(v,y,o))return!1}return!0}function F1(a){const i=[],o=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),r=(d,h)=>(...p)=>{const v=o(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 r(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 K1(a){const i=It.useRef(a);i.current=a;const o=It.useRef(null);return(!o.current||!Xu(o.current.snapshot,a))&&(o.current={snapshot:a,shaped:F1(i)}),o.current.shaped}var Q1=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function Z1(a){const i=g.useRef(null),o=K1(a),r=g.useMemo(()=>Q1.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(o))/^on[A-Z]/.test(v)&&v!=="onClientTool"?p[v]=y:h[v]=y;return{setInstance:f,options:h,handlers:p}},[o,f]);return g.useMemo(()=>({...r,control:d,ref:i}),[r,d])}const Ip="http://localhost:3000/chatkit",Wp="domain_pk_localhost_dev";function P1(){const{isLoggedIn:a}=en(),[i,o]=g.useState(""),[r,f]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i?y.Authorization=`Bearer ${i}`:Object.assign(y,Ke(y)),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=Z1({api:{url:Ip,domainKey:Wp,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(!r),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"})})]})]}),r&&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=>o(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(G1,{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:"})," ",Ip]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Domain Key:"})," ",Wp]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function Di(a){const{className:i,variant:o,children:r}=a;return u.jsx("div",{className:$e("rounded-xl bg-background",o==="bordered"&&"border border-border",i),children:r})}function Mi(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("px-5 pt-5",i),children:o})}function Li(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("text-base font-semibold",i),children:o})}function Ui(a){const{className:i,children:o}=a;return u.jsx("div",{className:$e("px-5 pb-5 pt-4",i),children:o})}function ju(a){const{className:i,variant:o="default",size:r="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:$e(h,p[o],v[r],i),...d,children:f})}function Mn(a){const{className:i,...o}=a;return u.jsx("input",{className:$e("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),...o})}function go(a){const{className:i,...o}=a;return u.jsx("label",{className:$e("text-sm font-medium text-foreground",i),...o})}function $p(a,[i,o]){return Math.min(o,Math.max(i,a))}function We(a,i,{checkForDefaultPrevented:o=!0}={}){return function(f){if(a?.(f),o===!1||!f.defaultPrevented)return i?.(f)}}function mf(a,i=[]){let o=[];function r(d,h){const p=g.createContext(h),v=o.length;o=[...o,h];const y=b=>{const{scope:C,children:j,...D}=b,w=C?.[a]?.[v]||p,T=g.useMemo(()=>D,Object.values(D));return u.jsx(w.Provider,{value:T,children:j})};y.displayName=d+"Provider";function S(b,C){const j=C?.[a]?.[v]||p,D=g.useContext(j);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=o.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,[r,J1(f,...i)]}function J1(...a){const i=a[0];if(a.length===1)return i;const o=()=>{const r=a.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(d){const h=r.reduce((p,{useScope:v,scopeName:y})=>{const b=v(d)[`__scope${y}`];return{...p,...b}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return o.scopeName=i.scopeName,o}function ev(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function cg(...a){return i=>{let o=!1;const r=a.map(f=>{const d=ev(f,i);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let f=0;f<r.length;f++){const d=r[f];typeof d=="function"?d():ev(a[f],null)}}}}function ut(...a){return g.useCallback(cg(...a),a)}function Mo(a){const i=I1(a),o=g.forwardRef((r,f)=>{const{children:d,...h}=r,p=g.Children.toArray(d),v=p.find($1);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 o.displayName=`${a}.Slot`,o}function I1(a){const i=g.forwardRef((o,r)=>{const{children:f,...d}=o;if(g.isValidElement(f)){const h=tw(f),p=ew(d,f.props);return f.type!==g.Fragment&&(p.ref=r?cg(r,h):h),g.cloneElement(f,p)}return g.Children.count(f)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var W1=Symbol("radix.slottable");function $1(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===W1}function ew(a,i){const o={...i};for(const r in i){const f=a[r],d=i[r];/^on[A-Z]/.test(r)?f&&d?o[r]=(...p)=>{const v=d(...p);return f(...p),v}:f&&(o[r]=f):r==="style"?o[r]={...f,...d}:r==="className"&&(o[r]=[f,d].filter(Boolean).join(" "))}return{...a,...o}}function tw(a){let i=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?a.ref:(i=Object.getOwnPropertyDescriptor(a,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?a.props.ref:a.props.ref||a.ref)}function nw(a){const i=a+"CollectionProvider",[o,r]=mf(i),[f,d]=o(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:T,children:z}=w,R=It.useRef(null),M=It.useRef(new Map).current;return u.jsx(f,{scope:T,itemMap:M,collectionRef:R,children:z})};h.displayName=i;const p=a+"CollectionSlot",v=Mo(p),y=It.forwardRef((w,T)=>{const{scope:z,children:R}=w,M=d(p,z),q=ut(T,M.collectionRef);return u.jsx(v,{ref:q,children:R})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=Mo(S),j=It.forwardRef((w,T)=>{const{scope:z,children:R,...M}=w,q=It.useRef(null),Q=ut(T,q),P=d(S,z);return It.useEffect(()=>(P.itemMap.set(q,{ref:q,...M}),()=>{P.itemMap.delete(q)})),u.jsx(C,{[b]:"",ref:Q,children:R})});j.displayName=S;function D(w){const T=d(a+"CollectionConsumer",w);return It.useCallback(()=>{const R=T.collectionRef.current;if(!R)return[];const M=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(T.itemMap.values()).sort((P,Y)=>M.indexOf(P.ref.current)-M.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:h,Slot:y,ItemSlot:j},D,r]}var lw=g.createContext(void 0);function aw(a){const i=g.useContext(lw);return a||i||"ltr"}var iw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=iw.reduce((a,i)=>{const o=Mo(`Primitive.${i}`),r=g.forwardRef((f,d)=>{const{asChild:h,...p}=f,v=h?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(v,{...p,ref:d})});return r.displayName=`Primitive.${i}`,{...a,[i]:r}},{});function cw(a,i){a&&Qi.flushSync(()=>a.dispatchEvent(i))}function Ul(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...o)=>i.current?.(...o),[])}function ow(a,i=globalThis?.document){const o=Ul(a);g.useEffect(()=>{const r=f=>{f.key==="Escape"&&o(f)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[o,i])}var rw="DismissableLayer",Gu="dismissableLayer.update",sw="dismissableLayer.pointerDownOutside",uw="dismissableLayer.focusOutside",tv,og=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rg=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(og),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,j]=g.useState({}),D=ut(i,Y=>b(Y)),w=Array.from(y.layers),[T]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=w.indexOf(T),R=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=R>=z,Q=hw(Y=>{const ne=Y.target,le=[...y.branches].some(se=>se.contains(ne));!q||le||(f?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),P=mw(Y=>{const ne=Y.target;[...y.branches].some(se=>se.contains(ne))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return ow(Y=>{R===y.layers.size-1&&(r?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return o&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(tv=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),nv(),()=>{o&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=tv)}},[S,C,o,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),nv())},[S,y]),g.useEffect(()=>{const Y=()=>j({});return document.addEventListener(Gu,Y),()=>document.removeEventListener(Gu,Y)},[]),u.jsx(Qe.div,{...v,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...a.style},onFocusCapture:We(a.onFocusCapture,P.onFocusCapture),onBlurCapture:We(a.onBlurCapture,P.onBlurCapture),onPointerDownCapture:We(a.onPointerDownCapture,Q.onPointerDownCapture)})});rg.displayName=rw;var fw="DismissableLayerBranch",dw=g.forwardRef((a,i)=>{const o=g.useContext(og),r=g.useRef(null),f=ut(i,r);return g.useEffect(()=>{const d=r.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),u.jsx(Qe.div,{...a,ref:f})});dw.displayName=fw;function hw(a,i=globalThis?.document){const o=Ul(a),r=g.useRef(!1),f=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!r.current){let v=function(){sg(sw,o,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);r.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",f.current)}},[i,o]),{onPointerDownCapture:()=>r.current=!0}}function mw(a,i=globalThis?.document){const o=Ul(a),r=g.useRef(!1);return g.useEffect(()=>{const f=d=>{d.target&&!r.current&&sg(uw,o,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",f),()=>i.removeEventListener("focusin",f)},[i,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nv(){const a=new CustomEvent(Gu);document.dispatchEvent(a)}function sg(a,i,o,{discrete:r}){const f=o.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:o});i&&f.addEventListener(a,i,{once:!0}),r?cw(f,d):f.dispatchEvent(d)}var Tu=0;function pw(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??lv()),document.body.insertAdjacentElement("beforeend",a[1]??lv()),Tu++,()=>{Tu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Tu--}},[])}function lv(){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 Au="focusScope.autoFocusOnMount",Ru="focusScope.autoFocusOnUnmount",av={bubbles:!1,cancelable:!0},vw="FocusScope",ug=g.forwardRef((a,i)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Ul(f),S=Ul(d),b=g.useRef(null),C=ut(i,w=>v(w)),j=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let w=function(M){if(j.paused||!p)return;const q=M.target;p.contains(q)?b.current=q:hl(b.current,{select:!0})},T=function(M){if(j.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||hl(b.current,{select:!0}))},z=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&hl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const R=new MutationObserver(z);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),R.disconnect()}}},[r,p,j.paused]),g.useEffect(()=>{if(p){cv.add(j);const w=document.activeElement;if(!p.contains(w)){const z=new CustomEvent(Au,av);p.addEventListener(Au,y),p.dispatchEvent(z),z.defaultPrevented||(gw(ww(fg(p)),{select:!0}),document.activeElement===w&&hl(p))}return()=>{p.removeEventListener(Au,y),setTimeout(()=>{const z=new CustomEvent(Ru,av);p.addEventListener(Ru,S),p.dispatchEvent(z),z.defaultPrevented||hl(w??document.body,{select:!0}),p.removeEventListener(Ru,S),cv.remove(j)},0)}}},[p,y,S,j]);const D=g.useCallback(w=>{if(!o&&!r||j.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,z=document.activeElement;if(T&&z){const R=w.currentTarget,[M,q]=yw(R);M&&q?!w.shiftKey&&z===q?(w.preventDefault(),o&&hl(M,{select:!0})):w.shiftKey&&z===M&&(w.preventDefault(),o&&hl(q,{select:!0})):z===R&&w.preventDefault()}},[o,r,j.paused]);return u.jsx(Qe.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});ug.displayName=vw;function gw(a,{select:i=!1}={}){const o=document.activeElement;for(const r of a)if(hl(r,{select:i}),document.activeElement!==o)return}function yw(a){const i=fg(a),o=iv(i,a),r=iv(i.reverse(),a);return[o,r]}function fg(a){const i=[],o=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const f=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||f?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function iv(a,i){for(const o of a)if(!xw(o,{upTo:i}))return o}function xw(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 bw(a){return a instanceof HTMLInputElement&&"select"in a}function hl(a,{select:i=!1}={}){if(a&&a.focus){const o=document.activeElement;a.focus({preventScroll:!0}),a!==o&&bw(a)&&i&&a.select()}}var cv=Sw();function Sw(){let a=[];return{add(i){const o=a[0];i!==o&&o?.pause(),a=ov(a,i),a.unshift(i)},remove(i){a=ov(a,i),a[0]?.resume()}}}function ov(a,i){const o=[...a],r=o.indexOf(i);return r!==-1&&o.splice(r,1),o}function ww(a){return a.filter(i=>i.tagName!=="A")}var bt=globalThis?.document?g.useLayoutEffect:()=>{},Ew=jv[" useId ".trim().toString()]||(()=>{}),Cw=0;function pf(a){const[i,o]=g.useState(Ew());return bt(()=>{o(r=>r??String(Cw++))},[a]),i?`radix-${i}`:""}const Nw=["top","right","bottom","left"],ml=Math.min,Dt=Math.max,Lo=Math.round,yo=Math.floor,un=a=>({x:a,y:a}),jw={left:"right",right:"left",bottom:"top",top:"bottom"},Tw={start:"end",end:"start"};function Fu(a,i,o){return Dt(a,ml(i,o))}function kn(a,i){return typeof a=="function"?a(i):a}function Yn(a){return a.split("-")[0]}function La(a){return a.split("-")[1]}function vf(a){return a==="x"?"y":"x"}function gf(a){return a==="y"?"height":"width"}const Aw=new Set(["top","bottom"]);function rn(a){return Aw.has(Yn(a))?"y":"x"}function yf(a){return vf(rn(a))}function Rw(a,i,o){o===void 0&&(o=!1);const r=La(a),f=yf(a),d=gf(f);let h=f==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Uo(h)),[h,Uo(h)]}function zw(a){const i=Uo(a);return[Ku(a),i,Ku(i)]}function Ku(a){return a.replace(/start|end/g,i=>Tw[i])}const rv=["left","right"],sv=["right","left"],Ow=["top","bottom"],_w=["bottom","top"];function Dw(a,i,o){switch(a){case"top":case"bottom":return o?i?sv:rv:i?rv:sv;case"left":case"right":return i?Ow:_w;default:return[]}}function Mw(a,i,o,r){const f=La(a);let d=Dw(Yn(a),o==="start",r);return f&&(d=d.map(h=>h+"-"+f),i&&(d=d.concat(d.map(Ku)))),d}function Uo(a){return a.replace(/left|right|bottom|top/g,i=>jw[i])}function Lw(a){return{top:0,right:0,bottom:0,left:0,...a}}function dg(a){return typeof a!="number"?Lw(a):{top:a,right:a,bottom:a,left:a}}function Ho(a){const{x:i,y:o,width:r,height:f}=a;return{width:r,height:f,top:o,left:i,right:i+r,bottom:o+f,x:i,y:o}}function uv(a,i,o){let{reference:r,floating:f}=a;const d=rn(i),h=yf(i),p=gf(h),v=Yn(i),y=d==="y",S=r.x+r.width/2-f.width/2,b=r.y+r.height/2-f.height/2,C=r[p]/2-f[p]/2;let j;switch(v){case"top":j={x:S,y:r.y-f.height};break;case"bottom":j={x:S,y:r.y+r.height};break;case"right":j={x:r.x+r.width,y:b};break;case"left":j={x:r.x-f.width,y:b};break;default:j={x:r.x,y:r.y}}switch(La(i)){case"start":j[h]-=C*(o&&y?-1:1);break;case"end":j[h]+=C*(o&&y?-1:1);break}return j}async function Uw(a,i){var o;i===void 0&&(i={});const{x:r,y:f,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:j=0}=kn(i,a),D=dg(j),T=p[C?b==="floating"?"reference":"floating":b],z=Ho(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(T)))==null||o?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),R=b==="floating"?{x:r,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=Ho(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:M,strategy:v}):R);return{top:(z.top-Q.top+D.top)/q.y,bottom:(Q.bottom-z.bottom+D.bottom)/q.y,left:(z.left-Q.left+D.left)/q.x,right:(Q.right-z.right+D.right)/q.x}}const Hw=async(a,i,o)=>{const{placement:r="bottom",strategy:f="absolute",middleware:d=[],platform:h}=o,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}=uv(y,r,v),C=r,j={},D=0;for(let T=0;T<p.length;T++){var w;const{name:z,fn:R}=p[T],{x:M,y:q,data:Q,reset:P}=await R({x:S,y:b,initialPlacement:r,placement:C,strategy:f,middlewareData:j,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:Uw},elements:{reference:a,floating:i}});S=M??S,b=q??b,j={...j,[z]:{...j[z],...Q}},P&&D<=50&&(D++,typeof P=="object"&&(P.placement&&(C=P.placement),P.rects&&(y=P.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:f}):P.rects),{x:S,y:b}=uv(y,C,v)),T=-1)}return{x:S,y:b,placement:C,strategy:f,middlewareData:j}},Bw=a=>({name:"arrow",options:a,async fn(i){const{x:o,y:r,placement:f,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=kn(a,i)||{};if(y==null)return{};const b=dg(S),C={x:o,y:r},j=yf(f),D=gf(j),w=await h.getDimensions(y),T=j==="y",z=T?"top":"left",R=T?"bottom":"right",M=T?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[j]-C[j]-d.floating[D],Q=C[j]-d.reference[j],P=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=P?P[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(P)))&&(Y=p.floating[M]||d.floating[D]);const ne=q/2-Q/2,le=Y/2-w[D]/2-1,se=ml(b[z],le),ue=ml(b[R],le),$=se,te=Y-w[D]-ue,ee=Y/2-w[D]/2+ne,fe=Fu($,ee,te),_=!v.arrow&&La(f)!=null&&ee!==fe&&d.reference[D]/2-(ee<$?se:ue)-w[D]/2<0,L=_?ee<$?ee-$:ee-te:0;return{[j]:C[j]+L,data:{[j]:fe,centerOffset:ee-fe-L,..._&&{alignmentOffset:L}},reset:_}}}),kw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var o,r;const{placement:f,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...T}=kn(a,i);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const z=Yn(f),R=rn(p),M=Yn(p)===p,q=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Q=C||(M||!w?[Uo(p)]:zw(p)),P=D!=="none";!C&&P&&Q.push(...Mw(p,w,D,q));const Y=[p,...Q],ne=await v.detectOverflow(i,T),le=[];let se=((r=d.flip)==null?void 0:r.overflows)||[];if(S&&le.push(ne[z]),b){const ee=Rw(f,h,q);le.push(ne[ee[0]],ne[ee[1]])}if(se=[...se,{placement:f,overflows:le}],!le.every(ee=>ee<=0)){var ue,$;const ee=(((ue=d.flip)==null?void 0:ue.index)||0)+1,fe=Y[ee];if(fe&&(!(b==="alignment"?R!==rn(fe):!1)||se.every(V=>rn(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:ee,overflows:se},reset:{placement:fe}};let _=($=se.filter(L=>L.overflows[0]<=0).sort((L,V)=>L.overflows[1]-V.overflows[1])[0])==null?void 0:$.placement;if(!_)switch(j){case"bestFit":{var te;const L=(te=se.filter(V=>{if(P){const ae=rn(V.placement);return ae===R||ae==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ae=>ae>0).reduce((ae,ve)=>ae+ve,0)]).sort((V,ae)=>V[1]-ae[1])[0])==null?void 0:te[0];L&&(_=L);break}case"initialPlacement":_=p;break}if(f!==_)return{reset:{placement:_}}}return{}}}};function fv(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function dv(a){return Nw.some(i=>a[i]>=0)}const Yw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:o,platform:r}=i,{strategy:f="referenceHidden",...d}=kn(a,i);switch(f){case"referenceHidden":{const h=await r.detectOverflow(i,{...d,elementContext:"reference"}),p=fv(h,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:dv(p)}}}case"escaped":{const h=await r.detectOverflow(i,{...d,altBoundary:!0}),p=fv(h,o.floating);return{data:{escapedOffsets:p,escaped:dv(p)}}}default:return{}}}}},hg=new Set(["left","top"]);async function qw(a,i){const{placement:o,platform:r,elements:f}=a,d=await(r.isRTL==null?void 0:r.isRTL(f.floating)),h=Yn(o),p=La(o),v=rn(o)==="y",y=hg.has(h)?-1:1,S=d&&v?-1:1,b=kn(i,a);let{mainAxis:C,crossAxis:j,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"&&(j=p==="end"?D*-1:D),v?{x:j*S,y:C*y}:{x:C*y,y:j*S}}const Vw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var o,r;const{x:f,y:d,placement:h,middlewareData:p}=i,v=await qw(i,a);return h===((o=p.offset)==null?void 0:o.placement)&&(r=p.arrow)!=null&&r.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:h}}}}},Xw=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:o,y:r,placement:f,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:z=>{let{x:R,y:M}=z;return{x:R,y:M}}},...y}=kn(a,i),S={x:o,y:r},b=await d.detectOverflow(i,y),C=rn(Yn(f)),j=vf(C);let D=S[j],w=S[C];if(h){const z=j==="y"?"top":"left",R=j==="y"?"bottom":"right",M=D+b[z],q=D-b[R];D=Fu(M,D,q)}if(p){const z=C==="y"?"top":"left",R=C==="y"?"bottom":"right",M=w+b[z],q=w-b[R];w=Fu(M,w,q)}const T=v.fn({...i,[j]:D,[C]:w});return{...T,data:{x:T.x-o,y:T.y-r,enabled:{[j]:h,[C]:p}}}}}},Gw=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:o,y:r,placement:f,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=kn(a,i),S={x:o,y:r},b=rn(f),C=vf(b);let j=S[C],D=S[b];const w=kn(p,i),T=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]+T.mainAxis,Q=d.reference[C]+d.reference[M]-T.mainAxis;j<q?j=q:j>Q&&(j=Q)}if(y){var z,R;const M=C==="y"?"width":"height",q=hg.has(Yn(f)),Q=d.reference[b]-d.floating[M]+(q&&((z=h.offset)==null?void 0:z[b])||0)+(q?0:T.crossAxis),P=d.reference[b]+d.reference[M]+(q?0:((R=h.offset)==null?void 0:R[b])||0)-(q?T.crossAxis:0);D<Q?D=Q:D>P&&(D=P)}return{[C]:j,[b]:D}}}},Fw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var o,r;const{placement:f,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=kn(a,i),S=await h.detectOverflow(i,y),b=Yn(f),C=La(f),j=rn(f)==="y",{width:D,height:w}=d.floating;let T,z;b==="top"||b==="bottom"?(T=b,z=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(z=b,T=C==="end"?"top":"bottom");const R=w-S.top-S.bottom,M=D-S.left-S.right,q=ml(w-S[T],R),Q=ml(D-S[z],M),P=!i.middlewareData.shift;let Y=q,ne=Q;if((o=i.middlewareData.shift)!=null&&o.enabled.x&&(ne=M),(r=i.middlewareData.shift)!=null&&r.enabled.y&&(Y=R),P&&!C){const se=Dt(S.left,0),ue=Dt(S.right,0),$=Dt(S.top,0),te=Dt(S.bottom,0);j?ne=D-2*(se!==0||ue!==0?se+ue:Dt(S.left,S.right)):Y=w-2*($!==0||te!==0?$+te:Dt(S.top,S.bottom))}await v({...i,availableWidth:ne,availableHeight:Y});const le=await h.getDimensions(p.floating);return D!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}};function Go(){return typeof window<"u"}function Ua(a){return mg(a)?(a.nodeName||"").toLowerCase():"#document"}function Mt(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function mn(a){var i;return(i=(mg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function mg(a){return Go()?a instanceof Node||a instanceof Mt(a).Node:!1}function Wt(a){return Go()?a instanceof Element||a instanceof Mt(a).Element:!1}function fn(a){return Go()?a instanceof HTMLElement||a instanceof Mt(a).HTMLElement:!1}function hv(a){return!Go()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Mt(a).ShadowRoot}const Kw=new Set(["inline","contents"]);function Pi(a){const{overflow:i,overflowX:o,overflowY:r,display:f}=$t(a);return/auto|scroll|overlay|hidden|clip/.test(i+r+o)&&!Kw.has(f)}const Qw=new Set(["table","td","th"]);function Zw(a){return Qw.has(Ua(a))}const Pw=[":popover-open",":modal"];function Fo(a){return Pw.some(i=>{try{return a.matches(i)}catch{return!1}})}const Jw=["transform","translate","scale","rotate","perspective"],Iw=["transform","translate","scale","rotate","perspective","filter"],Ww=["paint","layout","strict","content"];function xf(a){const i=bf(),o=Wt(a)?$t(a):a;return Jw.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!i&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!i&&(o.filter?o.filter!=="none":!1)||Iw.some(r=>(o.willChange||"").includes(r))||Ww.some(r=>(o.contain||"").includes(r))}function $w(a){let i=pl(a);for(;fn(i)&&!Oa(i);){if(xf(i))return i;if(Fo(i))return null;i=pl(i)}return null}function bf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eE=new Set(["html","body","#document"]);function Oa(a){return eE.has(Ua(a))}function $t(a){return Mt(a).getComputedStyle(a)}function Ko(a){return Wt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function pl(a){if(Ua(a)==="html")return a;const i=a.assignedSlot||a.parentNode||hv(a)&&a.host||mn(a);return hv(i)?i.host:i}function pg(a){const i=pl(a);return Oa(i)?a.ownerDocument?a.ownerDocument.body:a.body:fn(i)&&Pi(i)?i:pg(i)}function Gi(a,i,o){var r;i===void 0&&(i=[]),o===void 0&&(o=!0);const f=pg(a),d=f===((r=a.ownerDocument)==null?void 0:r.body),h=Mt(f);if(d){const p=Qu(h);return i.concat(h,h.visualViewport||[],Pi(f)?f:[],p&&o?Gi(p):[])}return i.concat(f,Gi(f,[],o))}function Qu(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function vg(a){const i=$t(a);let o=parseFloat(i.width)||0,r=parseFloat(i.height)||0;const f=fn(a),d=f?a.offsetWidth:o,h=f?a.offsetHeight:r,p=Lo(o)!==d||Lo(r)!==h;return p&&(o=d,r=h),{width:o,height:r,$:p}}function Sf(a){return Wt(a)?a:a.contextElement}function Aa(a){const i=Sf(a);if(!fn(i))return un(1);const o=i.getBoundingClientRect(),{width:r,height:f,$:d}=vg(i);let h=(d?Lo(o.width):o.width)/r,p=(d?Lo(o.height):o.height)/f;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const tE=un(0);function gg(a){const i=Mt(a);return!bf()||!i.visualViewport?tE:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function nE(a,i,o){return i===void 0&&(i=!1),!o||i&&o!==Mt(a)?!1:i}function Hl(a,i,o,r){i===void 0&&(i=!1),o===void 0&&(o=!1);const f=a.getBoundingClientRect(),d=Sf(a);let h=un(1);i&&(r?Wt(r)&&(h=Aa(r)):h=Aa(a));const p=nE(d,o,r)?gg(d):un(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=Mt(d),j=r&&Wt(r)?Mt(r):r;let D=C,w=Qu(D);for(;w&&r&&j!==D;){const T=Aa(w),z=w.getBoundingClientRect(),R=$t(w),M=z.left+(w.clientLeft+parseFloat(R.paddingLeft))*T.x,q=z.top+(w.clientTop+parseFloat(R.paddingTop))*T.y;v*=T.x,y*=T.y,S*=T.x,b*=T.y,v+=M,y+=q,D=Mt(w),w=Qu(D)}}return Ho({width:S,height:b,x:v,y})}function Qo(a,i){const o=Ko(a).scrollLeft;return i?i.left+o:Hl(mn(a)).left+o}function yg(a,i){const o=a.getBoundingClientRect(),r=o.left+i.scrollLeft-Qo(a,o),f=o.top+i.scrollTop;return{x:r,y:f}}function lE(a){let{elements:i,rect:o,offsetParent:r,strategy:f}=a;const d=f==="fixed",h=mn(r),p=i?Fo(i.floating):!1;if(r===h||p&&d)return o;let v={scrollLeft:0,scrollTop:0},y=un(1);const S=un(0),b=fn(r);if((b||!b&&!d)&&((Ua(r)!=="body"||Pi(h))&&(v=Ko(r)),fn(r))){const j=Hl(r);y=Aa(r),S.x=j.x+r.clientLeft,S.y=j.y+r.clientTop}const C=h&&!b&&!d?yg(h,v):un(0);return{width:o.width*y.x,height:o.height*y.y,x:o.x*y.x-v.scrollLeft*y.x+S.x+C.x,y:o.y*y.y-v.scrollTop*y.y+S.y+C.y}}function aE(a){return Array.from(a.getClientRects())}function iE(a){const i=mn(a),o=Ko(a),r=a.ownerDocument.body,f=Dt(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),d=Dt(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight);let h=-o.scrollLeft+Qo(a);const p=-o.scrollTop;return $t(r).direction==="rtl"&&(h+=Dt(i.clientWidth,r.clientWidth)-f),{width:f,height:d,x:h,y:p}}const mv=25;function cE(a,i){const o=Mt(a),r=mn(a),f=o.visualViewport;let d=r.clientWidth,h=r.clientHeight,p=0,v=0;if(f){d=f.width,h=f.height;const S=bf();(!S||S&&i==="fixed")&&(p=f.offsetLeft,v=f.offsetTop)}const y=Qo(r);if(y<=0){const S=r.ownerDocument,b=S.body,C=getComputedStyle(b),j=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(r.clientWidth-b.clientWidth-j);D<=mv&&(d-=D)}else y<=mv&&(d+=y);return{width:d,height:h,x:p,y:v}}const oE=new Set(["absolute","fixed"]);function rE(a,i){const o=Hl(a,!0,i==="fixed"),r=o.top+a.clientTop,f=o.left+a.clientLeft,d=fn(a)?Aa(a):un(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=f*d.x,y=r*d.y;return{width:h,height:p,x:v,y}}function pv(a,i,o){let r;if(i==="viewport")r=cE(a,o);else if(i==="document")r=iE(mn(a));else if(Wt(i))r=rE(i,o);else{const f=gg(a);r={x:i.x-f.x,y:i.y-f.y,width:i.width,height:i.height}}return Ho(r)}function xg(a,i){const o=pl(a);return o===i||!Wt(o)||Oa(o)?!1:$t(o).position==="fixed"||xg(o,i)}function sE(a,i){const o=i.get(a);if(o)return o;let r=Gi(a,[],!1).filter(p=>Wt(p)&&Ua(p)!=="body"),f=null;const d=$t(a).position==="fixed";let h=d?pl(a):a;for(;Wt(h)&&!Oa(h);){const p=$t(h),v=xf(h);!v&&p.position==="fixed"&&(f=null),(d?!v&&!f:!v&&p.position==="static"&&!!f&&oE.has(f.position)||Pi(h)&&!v&&xg(a,h))?r=r.filter(S=>S!==h):f=p,h=pl(h)}return i.set(a,r),r}function uE(a){let{element:i,boundary:o,rootBoundary:r,strategy:f}=a;const h=[...o==="clippingAncestors"?Fo(i)?[]:sE(i,this._c):[].concat(o),r],p=h[0],v=h.reduce((y,S)=>{const b=pv(i,S,f);return y.top=Dt(b.top,y.top),y.right=ml(b.right,y.right),y.bottom=ml(b.bottom,y.bottom),y.left=Dt(b.left,y.left),y},pv(i,p,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function fE(a){const{width:i,height:o}=vg(a);return{width:i,height:o}}function dE(a,i,o){const r=fn(i),f=mn(i),d=o==="fixed",h=Hl(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=un(0);function y(){v.x=Qo(f)}if(r||!r&&!d)if((Ua(i)!=="body"||Pi(f))&&(p=Ko(i)),r){const j=Hl(i,!0,d,i);v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}else f&&y();d&&!r&&f&&y();const S=f&&!r&&!d?yg(f,p):un(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 zu(a){return $t(a).position==="static"}function vv(a,i){if(!fn(a)||$t(a).position==="fixed")return null;if(i)return i(a);let o=a.offsetParent;return mn(a)===o&&(o=o.ownerDocument.body),o}function bg(a,i){const o=Mt(a);if(Fo(a))return o;if(!fn(a)){let f=pl(a);for(;f&&!Oa(f);){if(Wt(f)&&!zu(f))return f;f=pl(f)}return o}let r=vv(a,i);for(;r&&Zw(r)&&zu(r);)r=vv(r,i);return r&&Oa(r)&&zu(r)&&!xf(r)?o:r||$w(a)||o}const hE=async function(a){const i=this.getOffsetParent||bg,o=this.getDimensions,r=await o(a.floating);return{reference:dE(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mE(a){return $t(a).direction==="rtl"}const pE={convertOffsetParentRelativeRectToViewportRelativeRect:lE,getDocumentElement:mn,getClippingRect:uE,getOffsetParent:bg,getElementRects:hE,getClientRects:aE,getDimensions:fE,getScale:Aa,isElement:Wt,isRTL:mE};function Sg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function vE(a,i){let o=null,r;const f=mn(a);function d(){var p;clearTimeout(r),(p=o)==null||p.disconnect(),o=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:j}=y;if(p||i(),!C||!j)return;const D=yo(b),w=yo(f.clientWidth-(S+C)),T=yo(f.clientHeight-(b+j)),z=yo(S),M={rootMargin:-D+"px "+-w+"px "+-T+"px "+-z+"px",threshold:Dt(0,ml(1,v))||1};let q=!0;function Q(P){const Y=P[0].intersectionRatio;if(Y!==v){if(!q)return h();Y?h(!1,Y):r=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!Sg(y,a.getBoundingClientRect())&&h(),q=!1}try{o=new IntersectionObserver(Q,{...M,root:f.ownerDocument})}catch{o=new IntersectionObserver(Q,M)}o.observe(a)}return h(!0),d}function gE(a,i,o,r){r===void 0&&(r={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=r,y=Sf(a),S=f||d?[...y?Gi(y):[],...Gi(i)]:[];S.forEach(z=>{f&&z.addEventListener("scroll",o,{passive:!0}),d&&z.addEventListener("resize",o)});const b=y&&p?vE(y,o):null;let C=-1,j=null;h&&(j=new ResizeObserver(z=>{let[R]=z;R&&R.target===y&&j&&(j.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=j)==null||M.observe(i)})),o()}),y&&!v&&j.observe(y),j.observe(i));let D,w=v?Hl(a):null;v&&T();function T(){const z=Hl(a);w&&!Sg(w,z)&&o(),w=z,D=requestAnimationFrame(T)}return o(),()=>{var z;S.forEach(R=>{f&&R.removeEventListener("scroll",o),d&&R.removeEventListener("resize",o)}),b?.(),(z=j)==null||z.disconnect(),j=null,v&&cancelAnimationFrame(D)}}const yE=Vw,xE=Xw,bE=kw,SE=Fw,wE=Yw,gv=Bw,EE=Gw,CE=(a,i,o)=>{const r=new Map,f={platform:pE,...o},d={...f.platform,_c:r};return Hw(a,i,{...f,platform:d})};var NE=typeof document<"u",jE=function(){},To=NE?g.useLayoutEffect:jE;function Bo(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 o,r,f;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==i.length)return!1;for(r=o;r--!==0;)if(!Bo(a[r],i[r]))return!1;return!0}if(f=Object.keys(a),o=f.length,o!==Object.keys(i).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(i,f[r]))return!1;for(r=o;r--!==0;){const d=f[r];if(!(d==="_owner"&&a.$$typeof)&&!Bo(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function wg(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(a,i){const o=wg(a);return Math.round(i*o)/o}function Ou(a){const i=g.useRef(a);return To(()=>{i.current=a}),i}function TE(a){a===void 0&&(a={});const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:f,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:v,open:y}=a,[S,b]=g.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[C,j]=g.useState(r);Bo(C,r)||j(r);const[D,w]=g.useState(null),[T,z]=g.useState(null),R=g.useCallback(V=>{V!==P.current&&(P.current=V,w(V))},[]),M=g.useCallback(V=>{V!==Y.current&&(Y.current=V,z(V))},[]),q=d||D,Q=h||T,P=g.useRef(null),Y=g.useRef(null),ne=g.useRef(S),le=v!=null,se=Ou(v),ue=Ou(f),$=Ou(y),te=g.useCallback(()=>{if(!P.current||!Y.current)return;const V={placement:i,strategy:o,middleware:C};ue.current&&(V.platform=ue.current),CE(P.current,Y.current,V).then(ae=>{const ve={...ae,isPositioned:$.current!==!1};ee.current&&!Bo(ne.current,ve)&&(ne.current=ve,Qi.flushSync(()=>{b(ve)}))})},[C,i,o,ue,$]);To(()=>{y===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[y]);const ee=g.useRef(!1);To(()=>(ee.current=!0,()=>{ee.current=!1}),[]),To(()=>{if(q&&(P.current=q),Q&&(Y.current=Q),q&&Q){if(se.current)return se.current(q,Q,te);te()}},[q,Q,te,se,le]);const fe=g.useMemo(()=>({reference:P,floating:Y,setReference:R,setFloating:M}),[R,M]),_=g.useMemo(()=>({reference:q,floating:Q}),[q,Q]),L=g.useMemo(()=>{const V={position:o,left:0,top:0};if(!_.floating)return V;const ae=yv(_.floating,S.x),ve=yv(_.floating,S.y);return p?{...V,transform:"translate("+ae+"px, "+ve+"px)",...wg(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ae,top:ve}},[o,p,_.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:te,refs:fe,elements:_,floatingStyles:L}),[S,te,fe,_,L])}const AE=a=>{function i(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:a,fn(o){const{element:r,padding:f}=typeof a=="function"?a(o):a;return r&&i(r)?r.current!=null?gv({element:r.current,padding:f}).fn(o):{}:r?gv({element:r,padding:f}).fn(o):{}}}},RE=(a,i)=>({...yE(a),options:[a,i]}),zE=(a,i)=>({...xE(a),options:[a,i]}),OE=(a,i)=>({...EE(a),options:[a,i]}),_E=(a,i)=>({...bE(a),options:[a,i]}),DE=(a,i)=>({...SE(a),options:[a,i]}),ME=(a,i)=>({...wE(a),options:[a,i]}),LE=(a,i)=>({...AE(a),options:[a,i]});var UE="Arrow",Eg=g.forwardRef((a,i)=>{const{children:o,width:r=10,height:f=5,...d}=a;return u.jsx(Qe.svg,{...d,ref:i,width:r,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?o:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Eg.displayName=UE;var HE=Eg;function BE(a){const[i,o]=g.useState(void 0);return bt(()=>{if(a){o({width:a.offsetWidth,height:a.offsetHeight});const r=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;o({width:h,height:p})});return r.observe(a,{box:"border-box"}),()=>r.unobserve(a)}else o(void 0)},[a]),i}var wf="Popper",[Cg,Ng]=mf(wf),[kE,jg]=Cg(wf),Tg=a=>{const{__scopePopper:i,children:o}=a,[r,f]=g.useState(null);return u.jsx(kE,{scope:i,anchor:r,onAnchorChange:f,children:o})};Tg.displayName=wf;var Ag="PopperAnchor",Rg=g.forwardRef((a,i)=>{const{__scopePopper:o,virtualRef:r,...f}=a,d=jg(Ag,o),h=g.useRef(null),p=ut(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=r?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),r?null:u.jsx(Qe.div,{...f,ref:p})});Rg.displayName=Ag;var Ef="PopperContent",[YE,qE]=Cg(Ef),zg=g.forwardRef((a,i)=>{const{__scopePopper:o,side:r="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:j="optimized",onPlaced:D,...w}=a,T=jg(Ef,o),[z,R]=g.useState(null),M=ut(i,J=>R(J)),[q,Q]=g.useState(null),P=BE(q),Y=P?.width??0,ne=P?.height??0,le=r+(d!=="center"?"-"+d:""),se=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ue=Array.isArray(y)?y:[y],$=ue.length>0,te={padding:se,boundary:ue.filter(XE),altBoundary:$},{refs:ee,floatingStyles:fe,placement:_,isPositioned:L,middlewareData:V}=TE({strategy:"fixed",placement:le,whileElementsMounted:(...J)=>gE(...J,{animationFrame:j==="always"}),elements:{reference:T.anchor},middleware:[RE({mainAxis:f+ne,alignmentAxis:h}),v&&zE({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?OE():void 0,...te}),v&&_E({...te}),DE({...te,apply:({elements:J,rects:me,availableWidth:I,availableHeight:ie})=>{const{width:ge,height:Ne}=me.reference,Ye=J.floating.style;Ye.setProperty("--radix-popper-available-width",`${I}px`),Ye.setProperty("--radix-popper-available-height",`${ie}px`),Ye.setProperty("--radix-popper-anchor-width",`${ge}px`),Ye.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),q&&LE({element:q,padding:p}),GE({arrowWidth:Y,arrowHeight:ne}),C&&ME({strategy:"referenceHidden",...te})]}),[ae,ve]=Dg(_),N=Ul(D);bt(()=>{L&&N?.()},[L,N]);const G=V.arrow?.x,Z=V.arrow?.y,W=V.arrow?.centerOffset!==0,[oe,he]=g.useState();return bt(()=>{z&&he(window.getComputedStyle(z).zIndex)},[z]),u.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:L?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(YE,{scope:o,placedSide:ae,onArrowChange:Q,arrowX:G,arrowY:Z,shouldHideArrow:W,children:u.jsx(Qe.div,{"data-side":ae,"data-align":ve,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});zg.displayName=Ef;var Og="PopperArrow",VE={top:"bottom",right:"left",bottom:"top",left:"right"},_g=g.forwardRef(function(i,o){const{__scopePopper:r,...f}=i,d=qE(Og,r),h=VE[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(HE,{...f,ref:o,style:{...f.style,display:"block"}})})});_g.displayName=Og;function XE(a){return a!==null}var GE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:o,rects:r,middlewareData:f}=i,h=f.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=Dg(o),b={start:"0%",center:"50%",end:"100%"}[S],C=(f.arrow?.x??0)+p/2,j=(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=`${r.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${j}px`):y==="left"&&(D=`${r.floating.width+v}px`,w=h?b:`${j}px`),{data:{x:D,y:w}}}});function Dg(a){const[i,o="center"]=a.split("-");return[i,o]}var FE=Tg,KE=Rg,QE=zg,ZE=_g,PE="Portal",Mg=g.forwardRef((a,i)=>{const{container:o,...r}=a,[f,d]=g.useState(!1);bt(()=>d(!0),[]);const h=o||f&&globalThis?.document?.body;return h?zS.createPortal(u.jsx(Qe.div,{...r,ref:i}),h):null});Mg.displayName=PE;var JE=jv[" useInsertionEffect ".trim().toString()]||bt;function xv({prop:a,defaultProp:i,onChange:o=()=>{},caller:r}){const[f,d,h]=IE({defaultProp:i,onChange:o}),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(`${r} 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,r])}const y=g.useCallback(S=>{if(p){const b=WE(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function IE({defaultProp:a,onChange:i}){const[o,r]=g.useState(a),f=g.useRef(o),d=g.useRef(i);return JE(()=>{d.current=i},[i]),g.useEffect(()=>{f.current!==o&&(d.current?.(o),f.current=o)},[o,f]),[o,r,d]}function WE(a){return typeof a=="function"}function $E(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 Lg=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"}),e2="VisuallyHidden",t2=g.forwardRef((a,i)=>u.jsx(Qe.span,{...a,ref:i,style:{...Lg,...a.style}}));t2.displayName=e2;var n2=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Ca=new WeakMap,xo=new WeakMap,bo={},_u=0,Ug=function(a){return a&&(a.host||Ug(a.parentNode))},l2=function(a,i){return i.map(function(o){if(a.contains(o))return o;var r=Ug(o);return r&&a.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",a,". Doing nothing"),null)}).filter(function(o){return!!o})},a2=function(a,i,o,r){var f=l2(i,Array.isArray(a)?a:[a]);bo[o]||(bo[o]=new WeakMap);var d=bo[o],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 j=C.getAttribute(r),D=j!==null&&j!=="false",w=(Ca.get(C)||0)+1,T=(d.get(C)||0)+1;Ca.set(C,w),d.set(C,T),h.push(C),w===1&&D&&xo.set(C,!0),T===1&&C.setAttribute(o,"true"),D||C.setAttribute(r,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return S(i),p.clear(),_u++,function(){h.forEach(function(b){var C=Ca.get(b)-1,j=d.get(b)-1;Ca.set(b,C),d.set(b,j),C||(xo.has(b)||b.removeAttribute(r),xo.delete(b)),j||b.removeAttribute(o)}),_u--,_u||(Ca=new WeakMap,Ca=new WeakMap,xo=new WeakMap,bo={})}},i2=function(a,i,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(a)?a:[a]),f=n2(a);return f?(r.push.apply(r,Array.from(f.querySelectorAll("[aria-live], script"))),a2(r,f,o,"aria-hidden")):function(){return null}},on=function(){return on=Object.assign||function(i){for(var o,r=1,f=arguments.length;r<f;r++){o=arguments[r];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(i[d]=o[d])}return i},on.apply(this,arguments)};function Hg(a,i){var o={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&i.indexOf(r)<0&&(o[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,r=Object.getOwnPropertySymbols(a);f<r.length;f++)i.indexOf(r[f])<0&&Object.prototype.propertyIsEnumerable.call(a,r[f])&&(o[r[f]]=a[r[f]]);return o}function c2(a,i,o){if(o||arguments.length===2)for(var r=0,f=i.length,d;r<f;r++)(d||!(r in i))&&(d||(d=Array.prototype.slice.call(i,0,r)),d[r]=i[r]);return a.concat(d||Array.prototype.slice.call(i))}var Ao="right-scroll-bar-position",Ro="width-before-scroll-bar",o2="with-scroll-bars-hidden",r2="--removed-body-scroll-bar-size";function Du(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function s2(a,i){var o=g.useState(function(){return{value:a,callback:i,facade:{get current(){return o.value},set current(r){var f=o.value;f!==r&&(o.value=r,o.callback(r,f))}}}})[0];return o.callback=i,o.facade}var u2=typeof window<"u"?g.useLayoutEffect:g.useEffect,bv=new WeakMap;function f2(a,i){var o=s2(null,function(r){return a.forEach(function(f){return Du(f,r)})});return u2(function(){var r=bv.get(o);if(r){var f=new Set(r),d=new Set(a),h=o.current;f.forEach(function(p){d.has(p)||Du(p,null)}),d.forEach(function(p){f.has(p)||Du(p,h)})}bv.set(o,a)},[a]),o}function d2(a){return a}function h2(a,i){i===void 0&&(i=d2);var o=[],r=!1,f={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:a},useMedium:function(d){var h=i(d,r);return o.push(h),function(){o=o.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(r=!0;o.length;){var h=o;o=[],h.forEach(d)}o={push:function(p){return d(p)},filter:function(){return o}}},assignMedium:function(d){r=!0;var h=[];if(o.length){var p=o;o=[],p.forEach(d),h=o}var v=function(){var S=h;h=[],S.forEach(d)},y=function(){return Promise.resolve().then(v)};y(),o={push:function(S){h.push(S),y()},filter:function(S){return h=h.filter(S),o}}}};return f}function m2(a){a===void 0&&(a={});var i=h2(null);return i.options=on({async:!0,ssr:!1},a),i}var Bg=function(a){var i=a.sideCar,o=Hg(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,on({},o))};Bg.isSideCarExport=!0;function p2(a,i){return a.useMedium(i),Bg}var kg=m2(),Mu=function(){},Zo=g.forwardRef(function(a,i){var o=g.useRef(null),r=g.useState({onScrollCapture:Mu,onWheelCapture:Mu,onTouchMoveCapture:Mu}),f=r[0],d=r[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,j=a.noRelative,D=a.noIsolation,w=a.inert,T=a.allowPinchZoom,z=a.as,R=z===void 0?"div":z,M=a.gapMode,q=Hg(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,P=f2([o,i]),Y=on(on({},q),f);return g.createElement(g.Fragment,null,S&&g.createElement(Q,{sideCar:kg,removeScrollBar:y,shards:b,noRelative:j,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!T,lockRef:o,gapMode:M}),h?g.cloneElement(g.Children.only(p),on(on({},Y),{ref:P})):g.createElement(R,on({},Y,{className:v,ref:P}),p))});Zo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zo.classNames={fullWidth:Ro,zeroRight:Ao};var v2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function g2(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=v2();return i&&a.setAttribute("nonce",i),a}function y2(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function x2(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var b2=function(){var a=0,i=null;return{add:function(o){a==0&&(i=g2())&&(y2(i,o),x2(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},S2=function(){var a=b2();return function(i,o){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&o])}},Yg=function(){var a=S2(),i=function(o){var r=o.styles,f=o.dynamic;return a(r,f),null};return i},w2={left:0,top:0,right:0,gap:0},Lu=function(a){return parseInt(a||"",10)||0},E2=function(a){var i=window.getComputedStyle(document.body),o=i[a==="padding"?"paddingLeft":"marginLeft"],r=i[a==="padding"?"paddingTop":"marginTop"],f=i[a==="padding"?"paddingRight":"marginRight"];return[Lu(o),Lu(r),Lu(f)]},C2=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return w2;var i=E2(a),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-o+i[2]-i[0])}},N2=Yg(),Ra="data-scroll-locked",j2=function(a,i,o,r){var f=a.left,d=a.top,h=a.right,p=a.gap;return o===void 0&&(o="margin"),`
|
|
11
|
+
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let C=hn(),j;if(i){let R=typeof i=="string"?_a(i):i;ke(S==="/"||R.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 "${R.pathname}" was given in the \`location\` prop.`),j=R}else j=C;let D=j.pathname||"/",w=D;if(S!=="/"){let R=S.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=Av(a,{pathname:w});Lt(b||T!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),Lt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.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 z=Yb(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},v,R.params),pathname:Un([S,d.encodeLocation?d.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?S:Un([S,d.encodeLocation?d.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),h,r,o,u);return i&&z?g.createElement(Fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...j},navigationType:"POP"}},z):z}function Ub(){let a=Fb(),i=Eb(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},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:u},r):null,h)}var Hb=g.createElement(Ub,null),Yv=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=_b(a.digest);r&&(a=r)}let i=a!==void 0?g.createElement(dn.Provider,{value:this.props.routeContext},g.createElement(lf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?g.createElement(Bb,{error:a},i):i}};Yv.contextType=jb;var bu=new WeakMap;function Bb({children:a,error:i}){let{basename:r}=g.useContext(Ut);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let o=Ob(i.digest);if(o){let u=bu.get(i);if(u)throw u;let d=Dv(o.location,r);if(_v&&!bu.get(i))if(d.isExternal||o.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:o.replace}));throw bu.set(i,h),h}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function kb({routeContext:a,match:i,children:r}){let o=g.useContext(Da);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(dn.Provider,{value:a},r)}function Yb(a,i=[],r=null,o=null,u=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:j}=r,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!j||j[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&&o?(S,b)=>{o(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Cb(r.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,C)=>{let j,D=!1,w=null,T=null;r&&(j=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||Hb,p&&(v<0&&C===0?(qv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,T=null):v===C&&(D=!0,T=b.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,C+1)),R=()=>{let M;return j?M=w:D?M=T:b.route.Component?M=g.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,g.createElement(kb,{match:b,routeContext:{outlet:S,matches:z,isDataRoute:r!=null},children:M})};return r&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?g.createElement(Yv,{location:r.location,revalidation:r.revalidation,component:w,error:j,children:R(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:y}):R()},null)}function af(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qb(a){let i=g.useContext(Da);return ke(i,af(a)),i}function Vb(a){let i=g.useContext(kr);return ke(i,af(a)),i}function Xb(a){let i=g.useContext(dn);return ke(i,af(a)),i}function cf(a){let i=Xb(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 Gb(){return cf("useRouteId")}function Fb(){let a=g.useContext(lf),i=Vb("useRouteError"),r=cf("useRouteError");return a!==void 0?a:i.errors?.[r]}function Kb(){let{router:a}=qb("useNavigate"),i=cf("useNavigate"),r=g.useRef(!1);return Bv(()=>{r.current=!0}),g.useCallback(async(u,d={})=>{Lt(r.current,Hv),r.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:i,...d}))},[a,i])}var kp={};function qv(a,i,r){!i&&!kp[a]&&(kp[a]=!0,Lt(!1,r))}g.memo(Qb);function Qb({routes:a,future:i,state:r,onError:o}){return kv(a,void 0,r,o,i)}function Bn({to:a,replace:i,state:r,relative:o}){ke(Ma(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=g.useContext(Ut);Lt(!u,"<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(dn),{pathname:h}=hn(),p=qn(),v=nf(a,tf(d),h,o==="path"),y=JSON.stringify(v);return g.useEffect(()=>{p(JSON.parse(y),{replace:i,state:r,relative:o})},[p,y,o,i,r]),null}function Ot(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 Zb({basename:a="/",children:i=null,location:r,navigationType:o="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){ke(!Ma(),"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:u,static:d,unstable_useTransitions:h,future:{}}),[p,u,d,h]);typeof r=="string"&&(r=_a(r));let{pathname:y="/",search:S="",hash:b="",state:C=null,key:j="default"}=r,D=g.useMemo(()=>{let w=Hn(y,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:C,key:j},navigationType:o}},[p,y,S,b,C,j,o]);return Lt(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(Ut.Provider,{value:v},g.createElement(Fi.Provider,{children:i,value:D}))}function Pb({children:a,location:i}){return Lb(Hu(a),i)}function Hu(a,i=[]){let r=[];return g.Children.forEach(a,(o,u)=>{if(!g.isValidElement(o))return;let d=[...i,u];if(o.type===g.Fragment){r.push.apply(r,Hu(o.props.children,d));return}ke(o.type===Ot,`[${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>`),ke(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||d.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&&(h.children=Hu(o.props.children,d)),r.push(h)}),r}var Cr="get",Nr="application/x-www-form-urlencoded";function Yr(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Jb(a){return Yr(a)&&a.tagName.toLowerCase()==="button"}function Ib(a){return Yr(a)&&a.tagName.toLowerCase()==="form"}function Wb(a){return Yr(a)&&a.tagName.toLowerCase()==="input"}function $b(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function eS(a,i){return a.button===0&&(!i||i==="_self")&&!$b(a)}function Bu(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,r)=>{let o=a[r];return i.concat(Array.isArray(o)?o.map(u=>[r,u]):[[r,o]])},[]))}function tS(a,i){let r=Bu(a);return i&&i.forEach((o,u)=>{r.has(u)||i.getAll(u).forEach(d=>{r.append(u,d)})}),r}var mr=null;function nS(){if(mr===null)try{new FormData(document.createElement("form"),0),mr=!1}catch{mr=!0}return mr}var lS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Su(a){return a!=null&&!lS.has(a)?(Lt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nr}"`),null):a}function aS(a,i){let r,o,u,d,h;if(Ib(a)){let p=a.getAttribute("action");o=p?Hn(p,i):null,r=a.getAttribute("method")||Cr,u=Su(a.getAttribute("enctype"))||Nr,d=new FormData(a)}else if(Jb(a)||Wb(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(o=v?Hn(v,i):null,r=a.getAttribute("formmethod")||p.getAttribute("method")||Cr,u=Su(a.getAttribute("formenctype"))||Su(p.getAttribute("enctype"))||Nr,d=new FormData(p,a),!nS()){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(Yr(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Cr,o=null,u=Nr,h=a}return d&&u==="text/plain"&&(h=d,d=void 0),{action:o,method:r.toLowerCase(),encType:u,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rf(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function iS(a,i,r,o){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:i&&Hn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${o}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${o}`,u}async function cS(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 rS(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 oS(a,i,r){let o=await Promise.all(a.map(async u=>{let d=i.routes[u.route.id];if(d){let h=await cS(d,r);return h.links?h.links():[]}return[]}));return dS(o.flat(1).filter(rS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Yp(a,i,r,o,u,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=o.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(u.pathname+u.search+u.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 sS(a,i,{includeHydrateFallback:r}={}){return uS(a.map(o=>{let u=i.routes[o.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function uS(a){return[...new Set(a)]}function fS(a){let i={},r=Object.keys(a).sort();for(let o of r)i[o]=a[o];return i}function dS(a,i){let r=new Set;return new Set(i),a.reduce((o,u)=>{let d=JSON.stringify(fS(u));return r.has(d)||(r.add(d),o.push({key:d,link:u})),o},[])}function Vv(){let a=g.useContext(Da);return rf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function hS(){let a=g.useContext(kr);return rf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var of=g.createContext(void 0);of.displayName="FrameworkContext";function Xv(){let a=g.useContext(of);return rf(a,"You must render this element inside a <HydratedRouter> element"),a}function mS(a,i){let r=g.useContext(of),[o,u]=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=z=>{z.forEach(R=>{h(R.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return C.current&&T.observe(C.current),()=>{T.disconnect()}}},[a]),g.useEffect(()=>{if(o){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[o]);let j=()=>{u(!0)},D=()=>{u(!1),h(!1)};return r?a!=="intent"?[d,C,{}]:[d,C,{onFocus:_i(p,j),onBlur:_i(v,D),onMouseEnter:_i(y,j),onMouseLeave:_i(S,D),onTouchStart:_i(b,j)}]:[!1,C,{}]}function _i(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function pS({page:a,...i}){let{router:r}=Vv(),o=g.useMemo(()=>Av(r.routes,a,r.basename),[r.routes,a,r.basename]);return o?g.createElement(gS,{page:a,matches:o,...i}):null}function vS(a){let{manifest:i,routeModules:r}=Xv(),[o,u]=g.useState([]);return g.useEffect(()=>{let d=!1;return oS(a,i,r).then(h=>{d||u(h)}),()=>{d=!0}},[a,i,r]),o}function gS({page:a,matches:i,...r}){let o=hn(),{future:u,manifest:d,routeModules:h}=Xv(),{basename:p}=Vv(),{loaderData:v,matches:y}=hS(),S=g.useMemo(()=>Yp(a,i,y,d,o,"data"),[a,i,y,d,o]),b=g.useMemo(()=>Yp(a,i,y,d,o,"assets"),[a,i,y,d,o]),C=g.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let w=new Set,T=!1;if(i.forEach(R=>{let M=d.routes[R.route.id];!M||!M.hasLoader||(!S.some(q=>q.route.id===R.route.id)&&R.route.id in v&&h[R.route.id]?.shouldRevalidate||M.hasClientLoader?T=!0:w.add(R.route.id))}),w.size===0)return[];let z=iS(a,p,u.unstable_trailingSlashAwareDataRequests,"data");return T&&w.size>0&&z.searchParams.set("_routes",i.filter(R=>w.has(R.route.id)).map(R=>R.route.id).join(",")),[z.pathname+z.search]},[p,u.unstable_trailingSlashAwareDataRequests,v,o,d,S,i,a,h]),j=g.useMemo(()=>sS(b,d),[b,d]),D=vS(b);return g.createElement(g.Fragment,null,C.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),j.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),D.map(({key:w,link:T})=>g.createElement("link",{key:w,nonce:r.nonce,...T})))}function yS(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var xS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{xS&&(window.__reactRouterVersion="7.12.0")}catch{}function bS({basename:a,children:i,unstable_useTransitions:r,window:o}){let u=g.useRef();u.current==null&&(u.current=$x({window:o,v5Compat:!0}));let d=u.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(Zb,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var Gv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zr=g.forwardRef(function({onClick:i,discover:r="render",prefetch:o="none",relative:u,reloadDocument:d,replace:h,state:p,target:v,to:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D){let{basename:w,unstable_useTransitions:T}=g.useContext(Ut),z=typeof y=="string"&&Gv.test(y),R=Dv(y,w);y=R.to;let M=Db(y,{relative:u}),[q,Q,P]=mS(o,j),Y=CS(y,{replace:h,state:p,target:v,preventScrollReset:S,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:C,unstable_useTransitions:T});function ne(se){i&&i(se),se.defaultPrevented||Y(se)}let le=g.createElement("a",{...j,...P,href:R.absoluteURL||M,onClick:R.isExternal||d?i:ne,ref:yS(D,Q),target:v,"data-discover":!z&&r==="render"?"true":void 0});return q&&!z?g.createElement(g.Fragment,null,le,g.createElement(pS,{page:M})):le});zr.displayName="Link";var SS=g.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:o="",end:u=!1,style:d,to:h,viewTransition:p,children:v,...y},S){let b=Ki(h,{relative:y.relative}),C=hn(),j=g.useContext(kr),{navigator:D,basename:w}=g.useContext(Ut),T=j!=null&&zS(b)&&p===!0,z=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,R=C.pathname,M=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(R=R.toLowerCase(),M=M?M.toLowerCase():null,z=z.toLowerCase()),M&&w&&(M=Hn(M,w)||M);const q=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Q=R===z||!u&&R.startsWith(z)&&R.charAt(q)==="/",P=M!=null&&(M===z||!u&&M.startsWith(z)&&M.charAt(z.length)==="/"),Y={isActive:Q,isPending:P,isTransitioning:T},ne=Q?i:void 0,le;typeof o=="function"?le=o(Y):le=[o,Q?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let se=typeof d=="function"?d(Y):d;return g.createElement(zr,{...y,"aria-current":ne,className:le,ref:S,style:se,to:h,viewTransition:p},typeof v=="function"?v(Y):v)});SS.displayName="NavLink";var wS=g.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:o,replace:u,state:d,method:h=Cr,action:p,onSubmit:v,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C,...j},D)=>{let{unstable_useTransitions:w}=g.useContext(Ut),T=AS(),z=RS(p,{relative:y}),R=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Gv.test(p),q=Q=>{if(v&&v(Q),Q.defaultPrevented)return;Q.preventDefault();let P=Q.nativeEvent.submitter,Y=P?.getAttribute("formmethod")||h,ne=()=>T(P||Q.currentTarget,{fetcherKey:i,method:Y,navigate:r,replace:u,state:d,relative:y,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:C});w&&r!==!1?g.startTransition(()=>ne()):ne()};return g.createElement("form",{ref:D,method:R,action:z,onSubmit:o?v:q,...j,"data-discover":!M&&a==="render"?"true":void 0})});wS.displayName="Form";function ES(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fv(a){let i=g.useContext(Da);return ke(i,ES(a)),i}function CS(a,{target:i,replace:r,state:o,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v}={}){let y=qn(),S=hn(),b=Ki(a,{relative:d});return g.useCallback(C=>{if(eS(C,i)){C.preventDefault();let j=r!==void 0?r:qi(S)===qi(b),D=()=>y(a,{replace:j,state:o,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});v?g.startTransition(()=>D()):D()}},[S,y,b,r,o,i,a,u,d,h,p,v])}function NS(a){Lt(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(Bu(a)),r=g.useRef(!1),o=hn(),u=g.useMemo(()=>tS(o.search,r.current?null:i.current),[o.search]),d=qn(),h=g.useCallback((p,v)=>{const y=Bu(typeof p=="function"?p(new URLSearchParams(u)):p);r.current=!0,d("?"+y,v)},[d,u]);return[u,h]}var jS=0,TS=()=>`__${String(++jS)}__`;function AS(){let{router:a}=Fv("useSubmit"),{basename:i}=g.useContext(Ut),r=Gb(),o=a.fetch,u=a.navigate;return g.useCallback(async(d,h={})=>{let{action:p,method:v,encType:y,formData:S,body:b}=aS(d,i);if(h.navigate===!1){let C=h.fetcherKey||TS();await o(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 u(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})},[o,u,i,r])}function RS(a,{relative:i}={}){let{basename:r}=g.useContext(Ut),o=g.useContext(dn);ke(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),d={...Ki(a||".",{relative:i})},h=hn();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===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:Un([r,d.pathname])),qi(d)}function zS(a,{relative:i}={}){let r=g.useContext(Lv);ke(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Fv("useViewTransitionState"),u=Ki(a,{relative:i});if(!r.isTransitioning)return!1;let d=Hn(r.currentLocation.pathname,o)||r.currentLocation.pathname,h=Hn(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Rr(u.pathname,h)!=null||Rr(u.pathname,d)!=null}var Qi=Tv();const OS=Nv(Qi),sf="css-account",uf="xpod.cssAccountToken",_S="CSS-Account-Token";function ff(){return typeof window<"u"&&typeof document<"u"}function DS(){if(!ff())return;const a=document.cookie.split(";");for(const i of a){const[r,...o]=i.trim().split("=");if(r===sf){const u=o.join("=");try{return u?decodeURIComponent(u):void 0}catch{return}}}}function Kv(a){ff()&&(document.cookie=`${sf}=${encodeURIComponent(a)}; Path=/; SameSite=Lax`)}function MS(){ff()&&(document.cookie=`${sf}=; Path=/; SameSite=Lax; Max-Age=0`)}function LS(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(uf)||void 0}catch{return}}function US(a){if(!(typeof window>"u"))try{window.sessionStorage.setItem(uf,a)}catch{}}function HS(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(uf)}catch{}}function wu(a){a&&(US(a),Kv(a))}function df(){HS(),MS()}function BS(){const a=DS();if(a)return a;const i=LS();if(i)return Kv(i),i}function sn(a,i={Accept:"application/json"}){const r={...i};return a&&!kS(r,"Authorization")&&(r.Authorization=`${_S} ${a}`),r}function Ke(a={Accept:"application/json"}){return sn(BS(),a)}function kS(a,i){const r=i.toLowerCase();return Object.keys(a).some(o=>o.toLowerCase()===r)}const Qv=g.createContext(null);function en(){const a=g.useContext(Qv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function YS({children:a}){const i="/.account/",[r,o]=g.useState(null),[u,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(!1),S=!!r?.account?.logout,b=u,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:Ke(),credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},j=async()=>{try{const w=await fetch(i,{headers:Ke(),credentials:"include"});if(w.ok){const T=await w.json();let z=!1;T.controls?.account?.logout&&(z=await C()),y(z),o(T.controls||{})}else{if(w.status===401||w.status===403){df(),y(!1),o({});return}p(`Failed to load configuration (Status: ${w.status})`)}}catch{p("Network error: Could not connect to authentication server")}};g.useEffect(()=>{(async()=>(await j(),d(!1)))()},[i]);const D=async()=>{await j()};return f.jsx(Qv.Provider,{value:{controls:r,isInitializing:u,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:v,refetchControls:D},children:a})}const Zv=(...a)=>a.filter((i,r,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===r).join(" ").trim();const qS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const VS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,o)=>o?o.toUpperCase():r.toLowerCase());const qp=a=>{const i=VS(a);return i.charAt(0).toUpperCase()+i.slice(1)};var XS={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 GS=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const FS=g.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:u="",children:d,iconNode:h,...p},v)=>g.createElement("svg",{ref:v,...XS,width:i,height:i,stroke:a,strokeWidth:o?Number(r)*24/Number(i):r,className:Zv("lucide",u),...!d&&!GS(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,S])=>g.createElement(y,S)),...Array.isArray(d)?d:[d]]));const Xe=(a,i)=>{const r=g.forwardRef(({className:o,...u},d)=>g.createElement(FS,{ref:d,iconNode:i,className:Zv(`lucide-${qS(qp(a))}`,`lucide-${a}`,o),...u}));return r.displayName=qp(a),r};const KS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Pv=Xe("arrow-left",KS);const QS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],qr=Xe("arrow-right",QS);const ZS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ln=Xe("check",ZS);const PS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jv=Xe("chevron-down",PS);const JS=[["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"}]],Iv=Xe("circle-alert",JS);const IS=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Wv=Xe("clock",IS);const WS=[["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"}]],pr=Xe("copy",WS);const $S=[["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"}]],e1=Xe("database",$S);const t1=[["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"}]],Vp=Xe("external-link",t1);const n1=[["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"}]],l1=Xe("globe",n1);const a1=[["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"}]],i1=Xe("hard-drive",a1);const c1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],r1=Xe("info",c1);const o1=[["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"}]],Eu=Xe("key",o1);const s1=[["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"}]],$v=Xe("layers",s1);const u1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],za=Xe("loader-circle",u1);const f1=[["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"}]],Yi=Xe("lock",f1);const d1=[["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"}]],h1=Xe("log-out",d1);const m1=[["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"}]],ku=Xe("mail",m1);const p1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Cu=Xe("plus",p1);const v1=[["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=Xe("shield",v1);const g1=[["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"}]],Xp=Xe("trash-2",g1);const y1=[["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"}]],eg=Xe("user",y1);function tg(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(za,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Zi({children:a,title:i,subtitle:r,icon:o,showBack:u,onBack:d}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.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:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[u?f.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:f.jsx(Pv,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:o?f.jsx(o,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),r&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),a]})]})}function x1({message:a}){return f.jsx(Zi,{title:"Error",subtitle:a,icon:Iv,children:f.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 Yu="xpod:returnTo";function Ta(a){try{a&&sessionStorage.setItem(Yu,a)}catch{}}function b1(){try{const a=sessionStorage.getItem(Yu);return a&&sessionStorage.removeItem(Yu),a}catch{return null}}function S1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function w1(a,i,r=!1){return a&&i&&!r}function Gp({children:a,allowOidcPending:i=!1}){const{isLoggedIn:r,hasOidcPending:o}=en(),u=hn();return w1(r,o,i)?f.jsx(Bn,{to:"/.account/oidc/consent/",replace:!0}):r?f.jsx(f.Fragment,{children:a}):(Ta(u.pathname+u.search),f.jsx(Bn,{to:"/.account/login/password/",replace:!0}))}function ng(a){var i,r,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(i=0;i<u;i++)a[i]&&(r=ng(a[i]))&&(o&&(o+=" "),o+=r)}else for(r in a)a[r]&&(o&&(o+=" "),o+=r);return o}function $e(){for(var a,i,r=0,o="",u=arguments.length;r<u;r++)(a=arguments[r])&&(i=ng(a))&&(o&&(o+=" "),o+=i);return o}const Fp=3,Or=63,E1=/^[a-z0-9-]+$/;function Xi(a){return a.trim().toLowerCase()}function _r(a){const i=Xi(a);if(!i)return"Username is required";if(i.length<Fp||i.length>Or)return`Username must be ${Fp}-${Or} characters`;if(!E1.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 C1(a,i=5){const o=Xi(a).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,Or-3)||"user",u=Array.from({length:Math.max(i,3)},(d,h)=>`${o}-${h+1}`);return Array.from(new Set(u.map(d=>d.slice(0,Or)).filter(d=>!_r(d)))).slice(0,i)}function N1(a){if(typeof window<"u")return"/api/v1/identity";try{const i=new URL(a);return i.hostname.startsWith("id.")?`${i.protocol}//api.${i.hostname.slice(3)}/api/v1/identity`:`${i.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function lg(a,i,r){const o=`${N1(i)}/${encodeURIComponent(a)}`;try{const u=await r(o,{headers:{Accept:"application/json"},credentials:"include"});if(u.status===404)return!1;if(u.ok||u.status===409)return!0}catch{}}async function j1(a,i,r,o=3){const u=C1(a,Math.max(o*2,5)),d=[];for(const h of u)if(await lg(h,i,r)===!1&&d.push(h),d.length>=o)break;return d}async function Kp(a,i,r=fetch){const o=Xi(a),u=_r(o);if(u)return{available:!1,suggestions:[],error:u};const d=await lg(o,i,r);return d===!1?{available:!0,suggestions:[]}:d===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await j1(o,i,r)}}function T1(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function qu(){try{sessionStorage.removeItem("provisionCode")}catch{}}function ag(a,i=T1()){const r={name:a.trim()};return i&&(r.settings={provisionCode:i}),r}class Vr extends Error{code;constructor(i,r){super(i),this.name="RegistrationError",this.code=r}}async function hf(a){const i=await a.json().catch(()=>{});return i?.message||i?.error}function A1(a){return a.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function R1(a,i){if(!a)return!1;const r=A1(a);if(r)return ig(r,i);const o=a.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return o?o===i:/Username already taken/i.test(a)}function z1(a){return a?/already is a login for this e-mail address/i.test(a)||/email(?: address)? is already/i.test(a)||/already registered/i.test(a):!1}function ig(a,i){try{return new URL(a,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===i}catch{return!1}}async function O1(a,i,r,o){const u=await a(i,{headers:sn(o),credentials:"include"});if(!u.ok)return!1;const d=await u.json().catch(()=>({}));return Object.keys(d.pods??{}).some(h=>ig(h,r))}async function _1(a){const i=a.fetchImpl??fetch;let r=await i(a.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to create account");const o=await r.json().catch(()=>({})),u=typeof o.authorization=="string"?o.authorization:"";if(!u)throw new Error("Account token not returned");if(r=await i(a.idpIndex,{headers:sn(u),credentials:"include"}),!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to load account controls");const d=await r.json().catch(()=>({})),h=d.controls?.password?.create,p=d.controls?.password?.login;if(!h)throw new Error("Password endpoint not found");if(!p)throw new Error("Login endpoint not found");if(r=await i(h,{method:"POST",headers:{...sn(u),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})}),!r.ok){const v=await hf(r);throw z1(v)?new Vr("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(v||"Failed to set password")}return{accountToken:u,loginUrl:p}}async function D1(a){const r=await(a.fetchImpl??fetch)(a.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})});if(!r.ok){const d=await hf(r);throw a.duplicateEmailRecovery?new Vr("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(d||"Auto-login failed")}const o=await r.json().catch(()=>({})),u=typeof o.authorization=="string"?o.authorization:"";if(!u)throw new Error("Account token not returned after login");return{accountToken:u}}async function Qp(a,i,r,o,u=15e3){const d=Date.now()+u;let h=r?.pod,p=r?.webId;for(;Date.now()<d;){try{if(!h&&!p){const v=await a(i,{headers:sn(o),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));h=y.controls?.account?.pod,p=y.controls?.account?.webId}}if(p){const v=await a(p,{headers:sn(o),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));if(Object.keys(y.webIdLinks??{}).length>0)return!0}}if(h){const v=await a(h,{headers:sn(o),credentials:"include"});if(v.ok){const y=await v.json().catch(()=>({}));if(Object.keys(y.pods??{}).length>0)return!0}}}catch{}await new Promise(v=>setTimeout(v,500))}return!1}async function Zp(a){const i=a.fetchImpl??fetch,{accountToken:r,idpIndex:o,username:u}=a;let d=await i(o,{headers:sn(r),credentials:"include"});const h=await d.json().catch(()=>({})),p=h.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await O1(i,p,u,r))return qu(),await Qp(i,o,h.controls?.account,r),{createdPod:!0,redirectedToConsent:await Pp(i,r)};if(d=await i(p,{method:"POST",headers:{...sn(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(ag(u))}),!d.ok){const v=await hf(d);throw R1(v,u)?new Vr("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(v||"Failed to create pod")}return await d.json().catch(()=>({})),qu(),await Qp(i,o,h.controls?.account,r),{createdPod:!0,redirectedToConsent:await Pp(i,r)}}async function Pp(a,i){const r=await a("/.account/oidc/consent/",{headers:sn(i),credentials:"include"});return!!(r.ok&&(await r.json().catch(()=>({}))).client)}function Vu({initialIsRegister:a=!1}){const{controls:i,idpIndex:r,isLoggedIn:o,authenticating:u}=en(),d=qn(),[h,p]=g.useState(!1),[v,y]=g.useState(a),[S,b]=g.useState(""),[C,j]=g.useState(""),[D,w]=g.useState(""),[T,z]=g.useState(!1),[R,M]=g.useState(!1),[q,Q]=g.useState(null),[P,Y]=g.useState([]),[ne,le]=g.useState(null),[se,ue]=g.useState(""),[$,te]=g.useState(null),[ee,fe]=g.useState(null),_=C.length>0&&D.length>0&&C===D,L=Xi(S),V=v?_r(L):void 0;if(g.useEffect(()=>{const Z=S1();Z&&Ta(Z)},[]),g.useEffect(()=>{if(!v){M(!1),Q(null),Y([]),le(null);return}if(!L){M(!1),Q(null),Y([]),le(null);return}if(V){M(!1),Q(!1),Y([]),le(V);return}let Z=!1;M(!0);const W=window.setTimeout(async()=>{const re=await Kp(L,r);Z||(M(!1),Q(re.available),Y(re.suggestions),le(re.error??null))},300);return()=>{Z=!0,window.clearTimeout(W)}},[r,v,L,V]),o)return f.jsx(Bn,{to:"/.account/account/",replace:!0});const ae=[{icon:Wv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:$v,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:Vi,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],ve=async Z=>{Z.preventDefault(),p(!0),te(null),fe(null);const W=new FormData(Z.currentTarget),re=W.get("email"),he=W.get("password");try{if(v){const J=W.get("confirmPassword"),me=Xi(W.get("username")),I=_r(me);if(he!==J){alert("Passwords do not match"),p(!1);return}if(I){alert(I),p(!1);return}const ie=await Kp(me,r),ge=i?.password?.login||"/.account/login/password/",Ne=async(nt=!1)=>{const tn=await D1({duplicateEmailRecovery:nt,email:re,fetchImpl:fetch,loginUrl:ge,password:he});return wu(tn.accountToken),tn.accountToken};if(!ie.available){let nt;try{nt=await Ne()}catch{}if(nt){const tn=await Zp({accountToken:nt,idpIndex:r,username:me});window.location.href=tn.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/";return}Q(!1),Y(ie.suggestions),le(ie.error??"Username is already taken"),p(!1);return}if(ie.error){Q(!1),le(ie.error),p(!1);return}let Ye;const tt=await Ne().catch(()=>{});if(tt)Ye=tt;else try{Ye=(await _1({accountCreateUrl:i?.account?.create||"/.account/account/",email:re,password:he,idpIndex:r})).accountToken,wu(Ye)}catch(nt){if(!(nt instanceof Vr)||nt.code!=="EMAIL_ALREADY_REGISTERED")throw nt;Ye=await Ne(!0)}const pn=await Zp({accountToken:Ye,idpIndex:r,username:me});window.location.href=pn.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const J=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:he})}),me=await J.json().catch(()=>({}));if(J.ok){wu(typeof me.authorization=="string"?me.authorization:void 0);const I=J.headers.get("Location");if(me.location){window.location.href=me.location;return}if(I){window.location.href=I;return}const ie=b1();if(ie){window.location.href=ie;return}try{if((await fetch("/.account/oidc/consent/",{headers:Ke(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else fe(me.message||"Login failed")}}catch(J){J?.name==="RegistrationError"&&J.code==="EMAIL_ALREADY_REGISTERED"?te(J.message):J?.name==="RegistrationError"&&J.code==="USERNAME_ALREADY_TAKEN"?(Q(!1),le(J.message)):fe(J.message||"Operation failed")}finally{p(!1)}},N=()=>{y(!v),b(""),j(""),w(""),M(!1),Q(null),Y([]),le(null),ue(""),te(null),fe(null)},G=async()=>{if(i?.oidc?.cancel){z(!0);try{const W=await(await fetch(i.oidc.cancel,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();W.location&&(window.location.href=W.location)}catch{alert("Failed to cancel"),z(!1)}}};return f.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:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:ae.map(({icon:Z,title:W,desc:re})=>f.jsxs("div",{className:"flex gap-3",children:[f.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:f.jsx(Z,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:W}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:re})]})]},W))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),f.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."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:ve,children:[ee&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:ee}),f.jsxs("div",{className:"space-y-3",children:[v&&f.jsxs("div",{className:"relative",children:[f.jsx(eg,{className:$e("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",V&&S.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:S,onChange:Z=>b(Z.target.value),className:$e("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",V&&S.length>0||q===!1?"border-amber-300 focus:border-amber-500":q?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(ku,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:se,onChange:Z=>{ue(Z.target.value),$&&te(null)},className:$e("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",$?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),$&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[$," ",f.jsx("button",{type:"button",onClick:()=>{y(!1),te(null),fe(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Yi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:Z=>j(Z.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&&f.jsxs("div",{className:"relative",children:[_?f.jsx(Ln,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(Yi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:Z=>w(Z.target.value),className:$e("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",_?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&f.jsx("p",{className:$e("text-[11px] leading-relaxed",V&&S.length>0||q===!1?"text-amber-600":q?"text-emerald-600":"text-zinc-500"),children:V&&S.length>0?V:R?"Checking username availability...":ne||(L&&q===!1?"Username is already taken.":L&&q?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),v&&P.length>0&&!V&&q===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:P.map(Z=>f.jsx("button",{type:"button",onClick:()=>b(Z),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:Z},Z))}),!v&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:h||T||!!(v&&(V||R||q===!1)),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?f.jsx(za,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[v?"Sign up":"Sign in",f.jsx(qr,{className:"h-4 w-4"})]})}),u&&!v&&f.jsx("button",{type:"button",onClick:G,disabled:T||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:T?f.jsx(za,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:N,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function M1(){const{isLoggedIn:a,hasOidcPending:i}=en();return a&&i?f.jsx(Bn,{to:"/.account/oidc/consent/",replace:!0}):a?f.jsx(Bn,{to:"/.account/account/",replace:!0}):f.jsx(Vu,{})}function L1(){const a=qn(),{isLoggedIn:i}=en(),r=[{icon:Wv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:$v,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Vi,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.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:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:r.map(({icon:o,title:u,desc:d})=>f.jsxs("div",{className:"flex gap-3",children:[f.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:f.jsx(o,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:u}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},u))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-2",children:r.map(({icon:o,title:u,desc:d})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(o,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:u}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},u))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.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:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(Vp,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.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:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(Vp,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.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:[f.jsx(Pv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function U1(a){try{const r=new URL(a).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function H1(a){const i=a?.pods;return!i||typeof i!="object"?[]:Object.entries(i).map(([r,o])=>({id:r,resourceUrl:o,name:U1(r)}))}function Nu(a,i){return`sk-${btoa(`${a}:${i}`)}`}function B1(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:a,hostname:i,origin:r}=window.location;return i.startsWith("id.")?`${a}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function k1(){const{controls:a,refetchControls:i,hasOidcPending:r}=en(),o=qn(),[u,d]=g.useState(!1),[h,p]=g.useState([]),[v,y]=g.useState([]),[S,b]=g.useState(!1),[C,j]=g.useState(!1),[D,w]=g.useState(""),[T,z]=g.useState(!1),[R,M]=g.useState(""),[q,Q]=g.useState([]),[P,Y]=g.useState(null),[ne,le]=g.useState(!1),[se,ue]=g.useState(""),[$,te]=g.useState(""),[ee,fe]=g.useState(null),[_,L]=g.useState(!1),V=g.useRef(null),ae=B1();g.useEffect(()=>{const I=ie=>{V.current&&!V.current.contains(ie.target)&&L(!1)};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);const ve=async(I,ie)=>{try{await navigator.clipboard.writeText(I),fe(ie),setTimeout(()=>fe(null),2e3)}catch{}},N=async()=>{try{let I=[];if(a?.account?.webId){const ie=await fetch(a.account.webId,{headers:Ke(),credentials:"include"});if(ie.ok){const Ne=(await ie.json()).webIdLinks||{};I=Object.keys(Ne),p(I)}else p([])}else p([]);if(a?.account?.pod){const ie=await fetch(a.account.pod,{headers:Ke(),credentials:"include"});if(ie.ok){const ge=await ie.json(),Ne=H1(ge);y(Ne),b(Ne.length===0&&I.length>0)}else y([]),b(I.length>0)}else y([]),b(!1);if(a?.account?.clientCredentials){const ie=await fetch(a.account.clientCredentials,{headers:Ke(),credentials:"include"});if(ie.ok){const Ne=(await ie.json()).clientCredentials||{};Q(Object.entries(Ne).map(([Ye])=>({id:Ye})))}else Q([])}}catch(I){console.error("Failed to fetch account data:",I)}};g.useEffect(()=>{N()},[a]);const G=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:Ke(),credentials:"include"})).ok&&(df(),await i(),o("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},Z=async I=>{if(I.preventDefault(),!(!a?.account?.pod||!D.trim())){d(!0);try{const ie=await fetch(a.account.pod,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(ag(D))});if(ie.ok)qu(),w(""),j(!1),await i(),await N(),r&&o("/.account/oidc/consent/");else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},W=async I=>{if(I.preventDefault(),!(!a?.account?.webId||!R.trim())){d(!0);try{const ie=await fetch(a.account.webId,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:R.trim()})});if(ie.ok)M(""),z(!1),await N();else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},re=async I=>{if(confirm(`Delete pod ${I}? This cannot be undone.`)){d(!0);try{(await fetch(I,{method:"DELETE",headers:Ke(),credentials:"include"})).ok?await N():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},he=async I=>{if(I.preventDefault(),!(!a?.account?.clientCredentials||!se||!$.trim())){d(!0);try{const ie=await fetch(a.account.clientCredentials,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:$.trim(),webId:se})});if(ie.ok){const ge=await ie.json();Y({id:ge.id,secret:ge.secret}),le(!1),ue(""),te(""),await N()}else{const ge=await ie.json().catch(()=>({}));alert(ge.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},J=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}ue(h[0]),te(""),le(!0)},me=async I=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(I,{method:"DELETE",headers:Ke(),credentials:"include"})).ok?await N():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(zr,{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:[f.jsx(r1,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:G,disabled:u,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:[f.jsx(h1,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(Vi,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(zr,{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",f.jsx(qr,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(i1,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&f.jsxs("button",{onClick:()=>j(!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:[f.jsx(Cu,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),C&&f.jsxs("form",{onSubmit:Z,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:D,onChange:I=>w(I.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}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:v.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:S?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:v.map(I=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(e1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:I.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:I.id}),I.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",I.name]})]})]}),f.jsx("button",{onClick:()=>re(I.resourceUrl),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(Xp,{className:"w-4 h-4"})})]},I.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(eg,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&f.jsxs("button",{onClick:()=>z(!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:[f.jsx(Cu,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),T&&f.jsxs("form",{onSubmit:W,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:R,onChange:I=>M(I.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}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>z(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(I=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(l1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:I,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:I})]},I))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(Eu,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&f.jsxs("button",{onClick:J,disabled:u,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:[f.jsx(Cu,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),a?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[ne&&f.jsxs("form",{onSubmit:he,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:$,onChange:I=>te(I.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})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:V,children:[f.jsxs("button",{type:"button",onClick:()=>L(!_),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:[f.jsx("span",{className:"truncate text-zinc-700",children:se||"Select WebID"}),f.jsx(Jv,{className:`w-4 h-4 text-zinc-400 transition-transform ${_?"rotate-180":""}`})]}),_&&f.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(I=>f.jsx("button",{type:"button",onClick:()=>{ue(I),L(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${se===I?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:I},I))}),f.jsx("input",{type:"hidden",name:"webId",value:se,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>le(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Creating...":"Create"})]})]}),P&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(Eu,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:P.id})]}),f.jsx("button",{onClick:()=>ve(P.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:ee==="id"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(pr,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:P.secret})]}),f.jsx("button",{onClick:()=>ve(P.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:ee==="secret"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(pr,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Nu(P.id,P.secret)})]}),f.jsx("button",{onClick:()=>ve(Nu(P.id,P.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:ee==="apikey"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(pr,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),f.jsx("button",{onClick:()=>ve(ae,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:ee==="baseurl"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(pr,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",Nu(P.id,P.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>Y(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:q.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:q.map(I=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Eu,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:I.id})]}),f.jsx("button",{onClick:()=>me(I.id),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(Xp,{className:"w-4 h-4"})})]},I.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(Vi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.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 Y1(){const{idpIndex:a,isLoggedIn:i,controls:r}=en(),o=qn(),[u,d]=g.useState(!0),[h,p]=g.useState(null),[v,y]=g.useState(null),[S,b]=g.useState([]),[C,j]=g.useState(""),[D,w]=g.useState(null),[T,z]=g.useState(null),[R,M]=g.useState(!0),q=`${a}oidc/consent/`,Q=`${a}oidc/pick-webid/`,P=`${a}oidc/cancel`;g.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Ta(window.location.href),(async()=>{try{const $=await fetch(q,{headers:Ke(),credentials:"include"});if(console.log("[Consent] GET consent response status:",$.status),$.status===401||$.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!$.ok){const fe=await $.json().catch(()=>({}));throw new Error(fe.message||"Failed to load consent info")}const te=await $.json();p(te.client||{}),y(te.webId||null);const ee=await fetch(Q,{headers:Ke(),credentials:"include"});if(ee.ok){const _=(await ee.json()).webIds||[];b(_),te.webId&&_.includes(te.webId)?j(te.webId):_.length>0&&j(_[0])}}catch($){w($.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=$=>{try{const te=new URL($),ee=te.pathname.split("/").filter(Boolean);return{provider:te.host,podId:ee[0]??"-",full:$}}catch{return{provider:"-",podId:"-",full:$}}},ne=async $=>{try{await navigator.clipboard.writeText($),z($),setTimeout(()=>z(null),1200)}catch{z(null)}},le=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",headers:Ke(),credentials:"include"}),df(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},se=async $=>{console.log("[Consent] handleConsent called, allow:",$);try{if(d(!0),w(null),!$){console.log("[Consent] Cancelling...");const V=await(await fetch(P,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",V),V.location&&(window.location.href=V.location);return}if(C&&C!==v){console.log("[Consent] Picking WebID:",C);const L=await fetch(Q,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),V=await L.json();if(!L.ok)throw new Error(V.message||"Failed to select WebID");V.location&&await fetch(V.location,{credentials:"include"})}const te=await fetch(q,{method:"POST",headers:Ke({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:R})}),ee=await te.json();if(console.log("[Consent] Response:",te.status,ee),console.log("[Consent] Location header:",te.headers.get("Location")),!te.ok)throw new Error(ee.message||"Consent failed");const fe=te.headers.get("Location"),_=ee.location||fe;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(te){w(te.message||"Consent failed"),d(!1)}},ue=S.length>0?S:v?[v]:[];return f.jsxs(Zi,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Vi,children:[!i&&f.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:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{Ta(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"})]}),D&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Iv,{className:"w-4 h-4 inline mr-2"}),D]}),u?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(za,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),ue.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:Y(ue[0]).provider})]})]}),ue.length===0?f.jsxs("div",{className:"text-center py-4",children:[f.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),f.jsx("button",{onClick:()=>{Ta(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"})]}):f.jsx("div",{className:"space-y-1",children:ue.map($=>{const te=Y($);return f.jsxs("label",{className:$e("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===$?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:$,checked:C===$,onChange:ee=>j(ee.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:te.full,children:te.podId})}),f.jsx("button",{type:"button",onClick:ee=>{ee.preventDefault(),ne($)},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:T===$?"Copied":"Copy"})]},$)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:R,onChange:$=>M($.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>se(!1),disabled:u,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"}),f.jsx("button",{onClick:()=>se(!0),disabled:u||ue.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:u?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{Ta(window.location.href),o("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:le,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function q1(){const{controls:a,isLoggedIn:i}=en(),r=qn(),[o,u]=g.useState(!1),[d,h]=g.useState(!1);if(i)return f.jsx(Bn,{to:"/.account/account/",replace:!0});const p=async v=>{v.preventDefault(),u(!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{u(!1)}};return f.jsx(Zi,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:ku,showBack:!0,onBack:()=>r("/.account/login/password/"),children:d?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Ln,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.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"}),f.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"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:p,children:[f.jsxs("div",{className:"relative",children:[f.jsx(ku,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.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"})]}),f.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?f.jsx(za,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(qr,{className:"h-4 w-4"})]})})]})})}function V1(){const{controls:a,isLoggedIn:i}=en(),r=qn(),[o]=NS(),[u,d]=g.useState(!1),[h,p]=g.useState(!1),[v,y]=g.useState(null),[S,b]=g.useState(""),[C,j]=g.useState(""),D=o.get("rid"),w=S.length>0&&C.length>0&&S===C;if(i)return f.jsx(Bn,{to:"/.account/account/",replace:!0});if(!D)return f.jsx(Bn,{to:"/.account/login/password/forgot/",replace:!0});const T=async z=>{if(z.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const R=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(R,{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 f.jsx(Zi,{title:"Reset Password",subtitle:"Enter your new password.",icon:Yi,children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Ln,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.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"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:T,children:[v&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:v}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(Yi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:z=>b(z.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"})]}),f.jsxs("div",{className:"relative",children:[w?f.jsx(Ln,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(Yi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:C,onChange:z=>j(z.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"})]})]}),f.jsx("button",{type:"submit",disabled:u||!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:u?f.jsx(za,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(qr,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function X1(){const{controls:a,isLoggedIn:i}=en(),[r,o]=g.useState([]),[u,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:Ke(),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}o(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]),u?f.jsx(tg,{}):f.jsx(Zi,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:r.map(([h,p])=>f.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 cg={"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"},G1=Object.keys(cg),F1=g.forwardRef(function({control:i,...r},o){const u=g.useRef(null);return g.useLayoutEffect(()=>{const d=u.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=u.current;if(!d)return;const h=new AbortController;for(const p of G1)d.addEventListener(p,v=>{const y=cg[p],S=i.handlers[y];typeof S=="function"&&S(v.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),f.jsx("openai-chatkit",{ref:d=>{u.current=d,i.setInstance(d),typeof o=="function"?o(d):o&&(o.current=d),u.current},...r})});function Jp(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Xu(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(!Jp(a)||!Jp(i))return!1;const o=r.get(a);if(o&&o===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(!Xu(a[h],i[h],r))return!1;return!0}const u=Object.keys(a),d=Object.keys(i);if(u.length!==d.length)return!1;for(let h=0;h<u.length;h++){const p=u[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const v=a[p],y=i[p];if(!Xu(v,y,r))return!1}return!0}function K1(a){const i=[],r=(d,h)=>h.reduce((p,v)=>p==null?p:p[v],d),o=(d,h)=>(...p)=>{const v=r(a.current,d),y=v?.[h];if(typeof y=="function")return y.apply(v,p)},u=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return o(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]=u(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]=u(d[v]);return i.length=h,p}return d};return u(a.current)}function Q1(a){const i=It.useRef(a);i.current=a;const r=It.useRef(null);return(!r.current||!Xu(r.current.snapshot,a))&&(r.current={snapshot:a,shaped:K1(i)}),r.current.shaped}var Z1=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function P1(a){const i=g.useRef(null),r=Q1(a),o=g.useMemo(()=>Z1.reduce((h,p)=>(h[p]=(...v)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...v)},h),{}),[]),u=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:u,options:h,handlers:p}},[r,u]);return g.useMemo(()=>({...o,control:d,ref:i}),[o,d])}const Ip="http://localhost:3000/chatkit",Wp="domain_pk_localhost_dev";function J1(){const{isLoggedIn:a}=en(),[i,r]=g.useState(""),[o,u]=g.useState(!1),d=g.useCallback(async(p,v={})=>{const y={...v.headers||{}};return i?y.Authorization=`Bearer ${i}`:Object.assign(y,Ke(y)),fetch(p,{...v,headers:y,credentials:"include"})},[i]),h=P1({api:{url:Ip,domainKey:Wp,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>u(!o),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:a?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),o&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.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"}),f.jsx("button",{onClick:()=>u(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(F1,{control:h.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",Ip]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",Wp]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function Di(a){const{className:i,variant:r,children:o}=a;return f.jsx("div",{className:$e("rounded-xl bg-background",r==="bordered"&&"border border-border",i),children:o})}function Mi(a){const{className:i,children:r}=a;return f.jsx("div",{className:$e("px-5 pt-5",i),children:r})}function Li(a){const{className:i,children:r}=a;return f.jsx("div",{className:$e("text-base font-semibold",i),children:r})}function Ui(a){const{className:i,children:r}=a;return f.jsx("div",{className:$e("px-5 pb-5 pt-4",i),children:r})}function ju(a){const{className:i,variant:r="default",size:o="default",children:u,...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 f.jsx("button",{className:$e(h,p[r],v[o],i),...d,children:u})}function Mn(a){const{className:i,...r}=a;return f.jsx("input",{className:$e("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 vr(a){const{className:i,...r}=a;return f.jsx("label",{className:$e("text-sm font-medium text-foreground",i),...r})}function $p(a,[i,r]){return Math.min(r,Math.max(i,a))}function We(a,i,{checkForDefaultPrevented:r=!0}={}){return function(u){if(a?.(u),r===!1||!u.defaultPrevented)return i?.(u)}}function mf(a,i=[]){let r=[];function o(d,h){const p=g.createContext(h),v=r.length;r=[...r,h];const y=b=>{const{scope:C,children:j,...D}=b,w=C?.[a]?.[v]||p,T=g.useMemo(()=>D,Object.values(D));return f.jsx(w.Provider,{value:T,children:j})};y.displayName=d+"Provider";function S(b,C){const j=C?.[a]?.[v]||p,D=g.useContext(j);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[y,S]}const u=()=>{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 u.scopeName=a,[o,I1(u,...i)]}function I1(...a){const i=a[0];if(a.length===1)return i;const r=()=>{const o=a.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const h=o.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 ev(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function rg(...a){return i=>{let r=!1;const o=a.map(u=>{const d=ev(u,i);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let u=0;u<o.length;u++){const d=o[u];typeof d=="function"?d():ev(a[u],null)}}}}function ut(...a){return g.useCallback(rg(...a),a)}function Dr(a){const i=W1(a),r=g.forwardRef((o,u)=>{const{children:d,...h}=o,p=g.Children.toArray(d),v=p.find(ew);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 f.jsx(i,{...h,ref:u,children:g.isValidElement(y)?g.cloneElement(y,void 0,S):null})}return f.jsx(i,{...h,ref:u,children:d})});return r.displayName=`${a}.Slot`,r}function W1(a){const i=g.forwardRef((r,o)=>{const{children:u,...d}=r;if(g.isValidElement(u)){const h=nw(u),p=tw(d,u.props);return u.type!==g.Fragment&&(p.ref=o?rg(o,h):h),g.cloneElement(u,p)}return g.Children.count(u)>1?g.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var $1=Symbol("radix.slottable");function ew(a){return g.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===$1}function tw(a,i){const r={...i};for(const o in i){const u=a[o],d=i[o];/^on[A-Z]/.test(o)?u&&d?r[o]=(...p)=>{const v=d(...p);return u(...p),v}:u&&(r[o]=u):o==="style"?r[o]={...u,...d}:o==="className"&&(r[o]=[u,d].filter(Boolean).join(" "))}return{...a,...r}}function nw(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 lw(a){const i=a+"CollectionProvider",[r,o]=mf(i),[u,d]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:T,children:z}=w,R=It.useRef(null),M=It.useRef(new Map).current;return f.jsx(u,{scope:T,itemMap:M,collectionRef:R,children:z})};h.displayName=i;const p=a+"CollectionSlot",v=Dr(p),y=It.forwardRef((w,T)=>{const{scope:z,children:R}=w,M=d(p,z),q=ut(T,M.collectionRef);return f.jsx(v,{ref:q,children:R})});y.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",C=Dr(S),j=It.forwardRef((w,T)=>{const{scope:z,children:R,...M}=w,q=It.useRef(null),Q=ut(T,q),P=d(S,z);return It.useEffect(()=>(P.itemMap.set(q,{ref:q,...M}),()=>{P.itemMap.delete(q)})),f.jsx(C,{[b]:"",ref:Q,children:R})});j.displayName=S;function D(w){const T=d(a+"CollectionConsumer",w);return It.useCallback(()=>{const R=T.collectionRef.current;if(!R)return[];const M=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(T.itemMap.values()).sort((P,Y)=>M.indexOf(P.ref.current)-M.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:h,Slot:y,ItemSlot:j},D,o]}var aw=g.createContext(void 0);function iw(a){const i=g.useContext(aw);return a||i||"ltr"}var cw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=cw.reduce((a,i)=>{const r=Dr(`Primitive.${i}`),o=g.forwardRef((u,d)=>{const{asChild:h,...p}=u,v=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(v,{...p,ref:d})});return o.displayName=`Primitive.${i}`,{...a,[i]:o}},{});function rw(a,i){a&&Qi.flushSync(()=>a.dispatchEvent(i))}function Ul(a){const i=g.useRef(a);return g.useEffect(()=>{i.current=a}),g.useMemo(()=>(...r)=>i.current?.(...r),[])}function ow(a,i=globalThis?.document){const r=Ul(a);g.useEffect(()=>{const o=u=>{u.key==="Escape"&&r(u)};return i.addEventListener("keydown",o,{capture:!0}),()=>i.removeEventListener("keydown",o,{capture:!0})},[r,i])}var sw="DismissableLayer",Gu="dismissableLayer.update",uw="dismissableLayer.pointerDownOutside",fw="dismissableLayer.focusOutside",tv,og=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sg=g.forwardRef((a,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...v}=a,y=g.useContext(og),[S,b]=g.useState(null),C=S?.ownerDocument??globalThis?.document,[,j]=g.useState({}),D=ut(i,Y=>b(Y)),w=Array.from(y.layers),[T]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),z=w.indexOf(T),R=S?w.indexOf(S):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=R>=z,Q=mw(Y=>{const ne=Y.target,le=[...y.branches].some(se=>se.contains(ne));!q||le||(u?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),P=pw(Y=>{const ne=Y.target;[...y.branches].some(se=>se.contains(ne))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return ow(Y=>{R===y.layers.size-1&&(o?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),g.useEffect(()=>{if(S)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(tv=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),nv(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=tv)}},[S,C,r,y]),g.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),nv())},[S,y]),g.useEffect(()=>{const Y=()=>j({});return document.addEventListener(Gu,Y),()=>document.removeEventListener(Gu,Y)},[]),f.jsx(Qe.div,{...v,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...a.style},onFocusCapture:We(a.onFocusCapture,P.onFocusCapture),onBlurCapture:We(a.onBlurCapture,P.onBlurCapture),onPointerDownCapture:We(a.onPointerDownCapture,Q.onPointerDownCapture)})});sg.displayName=sw;var dw="DismissableLayerBranch",hw=g.forwardRef((a,i)=>{const r=g.useContext(og),o=g.useRef(null),u=ut(i,o);return g.useEffect(()=>{const d=o.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),f.jsx(Qe.div,{...a,ref:u})});hw.displayName=dw;function mw(a,i=globalThis?.document){const r=Ul(a),o=g.useRef(!1),u=g.useRef(()=>{});return g.useEffect(()=>{const d=p=>{if(p.target&&!o.current){let v=function(){ug(uw,r,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=v,i.addEventListener("click",u.current,{once:!0})):v()}else i.removeEventListener("click",u.current);o.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",u.current)}},[i,r]),{onPointerDownCapture:()=>o.current=!0}}function pw(a,i=globalThis?.document){const r=Ul(a),o=g.useRef(!1);return g.useEffect(()=>{const u=d=>{d.target&&!o.current&&ug(fw,r,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function nv(){const a=new CustomEvent(Gu);document.dispatchEvent(a)}function ug(a,i,r,{discrete:o}){const u=r.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:r});i&&u.addEventListener(a,i,{once:!0}),o?rw(u,d):u.dispatchEvent(d)}var Tu=0;function vw(){g.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??lv()),document.body.insertAdjacentElement("beforeend",a[1]??lv()),Tu++,()=>{Tu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Tu--}},[])}function lv(){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 Au="focusScope.autoFocusOnMount",Ru="focusScope.autoFocusOnUnmount",av={bubbles:!1,cancelable:!0},gw="FocusScope",fg=g.forwardRef((a,i)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...h}=a,[p,v]=g.useState(null),y=Ul(u),S=Ul(d),b=g.useRef(null),C=ut(i,w=>v(w)),j=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(o){let w=function(M){if(j.paused||!p)return;const q=M.target;p.contains(q)?b.current=q:hl(b.current,{select:!0})},T=function(M){if(j.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||hl(b.current,{select:!0}))},z=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&hl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const R=new MutationObserver(z);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),R.disconnect()}}},[o,p,j.paused]),g.useEffect(()=>{if(p){cv.add(j);const w=document.activeElement;if(!p.contains(w)){const z=new CustomEvent(Au,av);p.addEventListener(Au,y),p.dispatchEvent(z),z.defaultPrevented||(yw(Ew(dg(p)),{select:!0}),document.activeElement===w&&hl(p))}return()=>{p.removeEventListener(Au,y),setTimeout(()=>{const z=new CustomEvent(Ru,av);p.addEventListener(Ru,S),p.dispatchEvent(z),z.defaultPrevented||hl(w??document.body,{select:!0}),p.removeEventListener(Ru,S),cv.remove(j)},0)}}},[p,y,S,j]);const D=g.useCallback(w=>{if(!r&&!o||j.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,z=document.activeElement;if(T&&z){const R=w.currentTarget,[M,q]=xw(R);M&&q?!w.shiftKey&&z===q?(w.preventDefault(),r&&hl(M,{select:!0})):w.shiftKey&&z===M&&(w.preventDefault(),r&&hl(q,{select:!0})):z===R&&w.preventDefault()}},[r,o,j.paused]);return f.jsx(Qe.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});fg.displayName=gw;function yw(a,{select:i=!1}={}){const r=document.activeElement;for(const o of a)if(hl(o,{select:i}),document.activeElement!==r)return}function xw(a){const i=dg(a),r=iv(i,a),o=iv(i.reverse(),a);return[r,o]}function dg(a){const i=[],r=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const u=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||u?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function iv(a,i){for(const r of a)if(!bw(r,{upTo:i}))return r}function bw(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 Sw(a){return a instanceof HTMLInputElement&&"select"in a}function hl(a,{select:i=!1}={}){if(a&&a.focus){const r=document.activeElement;a.focus({preventScroll:!0}),a!==r&&Sw(a)&&i&&a.select()}}var cv=ww();function ww(){let a=[];return{add(i){const r=a[0];i!==r&&r?.pause(),a=rv(a,i),a.unshift(i)},remove(i){a=rv(a,i),a[0]?.resume()}}}function rv(a,i){const r=[...a],o=r.indexOf(i);return o!==-1&&r.splice(o,1),r}function Ew(a){return a.filter(i=>i.tagName!=="A")}var bt=globalThis?.document?g.useLayoutEffect:()=>{},Cw=jv[" useId ".trim().toString()]||(()=>{}),Nw=0;function pf(a){const[i,r]=g.useState(Cw());return bt(()=>{r(o=>o??String(Nw++))},[a]),i?`radix-${i}`:""}const jw=["top","right","bottom","left"],ml=Math.min,Dt=Math.max,Mr=Math.round,gr=Math.floor,un=a=>({x:a,y:a}),Tw={left:"right",right:"left",bottom:"top",top:"bottom"},Aw={start:"end",end:"start"};function Fu(a,i,r){return Dt(a,ml(i,r))}function kn(a,i){return typeof a=="function"?a(i):a}function Yn(a){return a.split("-")[0]}function La(a){return a.split("-")[1]}function vf(a){return a==="x"?"y":"x"}function gf(a){return a==="y"?"height":"width"}const Rw=new Set(["top","bottom"]);function on(a){return Rw.has(Yn(a))?"y":"x"}function yf(a){return vf(on(a))}function zw(a,i,r){r===void 0&&(r=!1);const o=La(a),u=yf(a),d=gf(u);let h=u==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Lr(h)),[h,Lr(h)]}function Ow(a){const i=Lr(a);return[Ku(a),i,Ku(i)]}function Ku(a){return a.replace(/start|end/g,i=>Aw[i])}const ov=["left","right"],sv=["right","left"],_w=["top","bottom"],Dw=["bottom","top"];function Mw(a,i,r){switch(a){case"top":case"bottom":return r?i?sv:ov:i?ov:sv;case"left":case"right":return i?_w:Dw;default:return[]}}function Lw(a,i,r,o){const u=La(a);let d=Mw(Yn(a),r==="start",o);return u&&(d=d.map(h=>h+"-"+u),i&&(d=d.concat(d.map(Ku)))),d}function Lr(a){return a.replace(/left|right|bottom|top/g,i=>Tw[i])}function Uw(a){return{top:0,right:0,bottom:0,left:0,...a}}function hg(a){return typeof a!="number"?Uw(a):{top:a,right:a,bottom:a,left:a}}function Ur(a){const{x:i,y:r,width:o,height:u}=a;return{width:o,height:u,top:r,left:i,right:i+o,bottom:r+u,x:i,y:r}}function uv(a,i,r){let{reference:o,floating:u}=a;const d=on(i),h=yf(i),p=gf(h),v=Yn(i),y=d==="y",S=o.x+o.width/2-u.width/2,b=o.y+o.height/2-u.height/2,C=o[p]/2-u[p]/2;let j;switch(v){case"top":j={x:S,y:o.y-u.height};break;case"bottom":j={x:S,y:o.y+o.height};break;case"right":j={x:o.x+o.width,y:b};break;case"left":j={x:o.x-u.width,y:b};break;default:j={x:o.x,y:o.y}}switch(La(i)){case"start":j[h]-=C*(r&&y?-1:1);break;case"end":j[h]+=C*(r&&y?-1:1);break}return j}async function Hw(a,i){var r;i===void 0&&(i={});const{x:o,y:u,platform:d,rects:h,elements:p,strategy:v}=a,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:C=!1,padding:j=0}=kn(i,a),D=hg(j),T=p[C?b==="floating"?"reference":"floating":b],z=Ur(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(T)))==null||r?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:S,strategy:v})),R=b==="floating"?{x:o,y:u,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=Ur(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:M,strategy:v}):R);return{top:(z.top-Q.top+D.top)/q.y,bottom:(Q.bottom-z.bottom+D.bottom)/q.y,left:(z.left-Q.left+D.left)/q.x,right:(Q.right-z.right+D.right)/q.x}}const Bw=async(a,i,r)=>{const{placement:o="bottom",strategy:u="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:u}),{x:S,y:b}=uv(y,o,v),C=o,j={},D=0;for(let T=0;T<p.length;T++){var w;const{name:z,fn:R}=p[T],{x:M,y:q,data:Q,reset:P}=await R({x:S,y:b,initialPlacement:o,placement:C,strategy:u,middlewareData:j,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:Hw},elements:{reference:a,floating:i}});S=M??S,b=q??b,j={...j,[z]:{...j[z],...Q}},P&&D<=50&&(D++,typeof P=="object"&&(P.placement&&(C=P.placement),P.rects&&(y=P.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:u}):P.rects),{x:S,y:b}=uv(y,C,v)),T=-1)}return{x:S,y:b,placement:C,strategy:u,middlewareData:j}},kw=a=>({name:"arrow",options:a,async fn(i){const{x:r,y:o,placement:u,rects:d,platform:h,elements:p,middlewareData:v}=i,{element:y,padding:S=0}=kn(a,i)||{};if(y==null)return{};const b=hg(S),C={x:r,y:o},j=yf(u),D=gf(j),w=await h.getDimensions(y),T=j==="y",z=T?"top":"left",R=T?"bottom":"right",M=T?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[j]-C[j]-d.floating[D],Q=C[j]-d.reference[j],P=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=P?P[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(P)))&&(Y=p.floating[M]||d.floating[D]);const ne=q/2-Q/2,le=Y/2-w[D]/2-1,se=ml(b[z],le),ue=ml(b[R],le),$=se,te=Y-w[D]-ue,ee=Y/2-w[D]/2+ne,fe=Fu($,ee,te),_=!v.arrow&&La(u)!=null&&ee!==fe&&d.reference[D]/2-(ee<$?se:ue)-w[D]/2<0,L=_?ee<$?ee-$:ee-te:0;return{[j]:C[j]+L,data:{[j]:fe,centerOffset:ee-fe-L,..._&&{alignmentOffset:L}},reset:_}}}),Yw=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var r,o;const{placement:u,middlewareData:d,rects:h,initialPlacement:p,platform:v,elements:y}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...T}=kn(a,i);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const z=Yn(u),R=on(p),M=Yn(p)===p,q=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Q=C||(M||!w?[Lr(p)]:Ow(p)),P=D!=="none";!C&&P&&Q.push(...Lw(p,w,D,q));const Y=[p,...Q],ne=await v.detectOverflow(i,T),le=[];let se=((o=d.flip)==null?void 0:o.overflows)||[];if(S&&le.push(ne[z]),b){const ee=zw(u,h,q);le.push(ne[ee[0]],ne[ee[1]])}if(se=[...se,{placement:u,overflows:le}],!le.every(ee=>ee<=0)){var ue,$;const ee=(((ue=d.flip)==null?void 0:ue.index)||0)+1,fe=Y[ee];if(fe&&(!(b==="alignment"?R!==on(fe):!1)||se.every(V=>on(V.placement)===R?V.overflows[0]>0:!0)))return{data:{index:ee,overflows:se},reset:{placement:fe}};let _=($=se.filter(L=>L.overflows[0]<=0).sort((L,V)=>L.overflows[1]-V.overflows[1])[0])==null?void 0:$.placement;if(!_)switch(j){case"bestFit":{var te;const L=(te=se.filter(V=>{if(P){const ae=on(V.placement);return ae===R||ae==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ae=>ae>0).reduce((ae,ve)=>ae+ve,0)]).sort((V,ae)=>V[1]-ae[1])[0])==null?void 0:te[0];L&&(_=L);break}case"initialPlacement":_=p;break}if(u!==_)return{reset:{placement:_}}}return{}}}};function fv(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function dv(a){return jw.some(i=>a[i]>=0)}const qw=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:r,platform:o}=i,{strategy:u="referenceHidden",...d}=kn(a,i);switch(u){case"referenceHidden":{const h=await o.detectOverflow(i,{...d,elementContext:"reference"}),p=fv(h,r.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:dv(p)}}}case"escaped":{const h=await o.detectOverflow(i,{...d,altBoundary:!0}),p=fv(h,r.floating);return{data:{escapedOffsets:p,escaped:dv(p)}}}default:return{}}}}},mg=new Set(["left","top"]);async function Vw(a,i){const{placement:r,platform:o,elements:u}=a,d=await(o.isRTL==null?void 0:o.isRTL(u.floating)),h=Yn(r),p=La(r),v=on(r)==="y",y=mg.has(h)?-1:1,S=d&&v?-1:1,b=kn(i,a);let{mainAxis:C,crossAxis:j,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"&&(j=p==="end"?D*-1:D),v?{x:j*S,y:C*y}:{x:C*y,y:j*S}}const Xw=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var r,o;const{x:u,y:d,placement:h,middlewareData:p}=i,v=await Vw(i,a);return h===((r=p.offset)==null?void 0:r.placement)&&(o=p.arrow)!=null&&o.alignmentOffset?{}:{x:u+v.x,y:d+v.y,data:{...v,placement:h}}}}},Gw=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:r,y:o,placement:u,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:v={fn:z=>{let{x:R,y:M}=z;return{x:R,y:M}}},...y}=kn(a,i),S={x:r,y:o},b=await d.detectOverflow(i,y),C=on(Yn(u)),j=vf(C);let D=S[j],w=S[C];if(h){const z=j==="y"?"top":"left",R=j==="y"?"bottom":"right",M=D+b[z],q=D-b[R];D=Fu(M,D,q)}if(p){const z=C==="y"?"top":"left",R=C==="y"?"bottom":"right",M=w+b[z],q=w-b[R];w=Fu(M,w,q)}const T=v.fn({...i,[j]:D,[C]:w});return{...T,data:{x:T.x-r,y:T.y-o,enabled:{[j]:h,[C]:p}}}}}},Fw=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:r,y:o,placement:u,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:v=!0,crossAxis:y=!0}=kn(a,i),S={x:r,y:o},b=on(u),C=vf(b);let j=S[C],D=S[b];const w=kn(p,i),T=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]+T.mainAxis,Q=d.reference[C]+d.reference[M]-T.mainAxis;j<q?j=q:j>Q&&(j=Q)}if(y){var z,R;const M=C==="y"?"width":"height",q=mg.has(Yn(u)),Q=d.reference[b]-d.floating[M]+(q&&((z=h.offset)==null?void 0:z[b])||0)+(q?0:T.crossAxis),P=d.reference[b]+d.reference[M]+(q?0:((R=h.offset)==null?void 0:R[b])||0)-(q?T.crossAxis:0);D<Q?D=Q:D>P&&(D=P)}return{[C]:j,[b]:D}}}},Kw=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var r,o;const{placement:u,rects:d,platform:h,elements:p}=i,{apply:v=()=>{},...y}=kn(a,i),S=await h.detectOverflow(i,y),b=Yn(u),C=La(u),j=on(u)==="y",{width:D,height:w}=d.floating;let T,z;b==="top"||b==="bottom"?(T=b,z=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(z=b,T=C==="end"?"top":"bottom");const R=w-S.top-S.bottom,M=D-S.left-S.right,q=ml(w-S[T],R),Q=ml(D-S[z],M),P=!i.middlewareData.shift;let Y=q,ne=Q;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(ne=M),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(Y=R),P&&!C){const se=Dt(S.left,0),ue=Dt(S.right,0),$=Dt(S.top,0),te=Dt(S.bottom,0);j?ne=D-2*(se!==0||ue!==0?se+ue:Dt(S.left,S.right)):Y=w-2*($!==0||te!==0?$+te:Dt(S.top,S.bottom))}await v({...i,availableWidth:ne,availableHeight:Y});const le=await h.getDimensions(p.floating);return D!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}};function Xr(){return typeof window<"u"}function Ua(a){return pg(a)?(a.nodeName||"").toLowerCase():"#document"}function Mt(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function mn(a){var i;return(i=(pg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function pg(a){return Xr()?a instanceof Node||a instanceof Mt(a).Node:!1}function Wt(a){return Xr()?a instanceof Element||a instanceof Mt(a).Element:!1}function fn(a){return Xr()?a instanceof HTMLElement||a instanceof Mt(a).HTMLElement:!1}function hv(a){return!Xr()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Mt(a).ShadowRoot}const Qw=new Set(["inline","contents"]);function Pi(a){const{overflow:i,overflowX:r,overflowY:o,display:u}=$t(a);return/auto|scroll|overlay|hidden|clip/.test(i+o+r)&&!Qw.has(u)}const Zw=new Set(["table","td","th"]);function Pw(a){return Zw.has(Ua(a))}const Jw=[":popover-open",":modal"];function Gr(a){return Jw.some(i=>{try{return a.matches(i)}catch{return!1}})}const Iw=["transform","translate","scale","rotate","perspective"],Ww=["transform","translate","scale","rotate","perspective","filter"],$w=["paint","layout","strict","content"];function xf(a){const i=bf(),r=Wt(a)?$t(a):a;return Iw.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||Ww.some(o=>(r.willChange||"").includes(o))||$w.some(o=>(r.contain||"").includes(o))}function eE(a){let i=pl(a);for(;fn(i)&&!Oa(i);){if(xf(i))return i;if(Gr(i))return null;i=pl(i)}return null}function bf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tE=new Set(["html","body","#document"]);function Oa(a){return tE.has(Ua(a))}function $t(a){return Mt(a).getComputedStyle(a)}function Fr(a){return Wt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function pl(a){if(Ua(a)==="html")return a;const i=a.assignedSlot||a.parentNode||hv(a)&&a.host||mn(a);return hv(i)?i.host:i}function vg(a){const i=pl(a);return Oa(i)?a.ownerDocument?a.ownerDocument.body:a.body:fn(i)&&Pi(i)?i:vg(i)}function Gi(a,i,r){var o;i===void 0&&(i=[]),r===void 0&&(r=!0);const u=vg(a),d=u===((o=a.ownerDocument)==null?void 0:o.body),h=Mt(u);if(d){const p=Qu(h);return i.concat(h,h.visualViewport||[],Pi(u)?u:[],p&&r?Gi(p):[])}return i.concat(u,Gi(u,[],r))}function Qu(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function gg(a){const i=$t(a);let r=parseFloat(i.width)||0,o=parseFloat(i.height)||0;const u=fn(a),d=u?a.offsetWidth:r,h=u?a.offsetHeight:o,p=Mr(r)!==d||Mr(o)!==h;return p&&(r=d,o=h),{width:r,height:o,$:p}}function Sf(a){return Wt(a)?a:a.contextElement}function Aa(a){const i=Sf(a);if(!fn(i))return un(1);const r=i.getBoundingClientRect(),{width:o,height:u,$:d}=gg(i);let h=(d?Mr(r.width):r.width)/o,p=(d?Mr(r.height):r.height)/u;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const nE=un(0);function yg(a){const i=Mt(a);return!bf()||!i.visualViewport?nE:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function lE(a,i,r){return i===void 0&&(i=!1),!r||i&&r!==Mt(a)?!1:i}function Hl(a,i,r,o){i===void 0&&(i=!1),r===void 0&&(r=!1);const u=a.getBoundingClientRect(),d=Sf(a);let h=un(1);i&&(o?Wt(o)&&(h=Aa(o)):h=Aa(a));const p=lE(d,r,o)?yg(d):un(0);let v=(u.left+p.x)/h.x,y=(u.top+p.y)/h.y,S=u.width/h.x,b=u.height/h.y;if(d){const C=Mt(d),j=o&&Wt(o)?Mt(o):o;let D=C,w=Qu(D);for(;w&&o&&j!==D;){const T=Aa(w),z=w.getBoundingClientRect(),R=$t(w),M=z.left+(w.clientLeft+parseFloat(R.paddingLeft))*T.x,q=z.top+(w.clientTop+parseFloat(R.paddingTop))*T.y;v*=T.x,y*=T.y,S*=T.x,b*=T.y,v+=M,y+=q,D=Mt(w),w=Qu(D)}}return Ur({width:S,height:b,x:v,y})}function Kr(a,i){const r=Fr(a).scrollLeft;return i?i.left+r:Hl(mn(a)).left+r}function xg(a,i){const r=a.getBoundingClientRect(),o=r.left+i.scrollLeft-Kr(a,r),u=r.top+i.scrollTop;return{x:o,y:u}}function aE(a){let{elements:i,rect:r,offsetParent:o,strategy:u}=a;const d=u==="fixed",h=mn(o),p=i?Gr(i.floating):!1;if(o===h||p&&d)return r;let v={scrollLeft:0,scrollTop:0},y=un(1);const S=un(0),b=fn(o);if((b||!b&&!d)&&((Ua(o)!=="body"||Pi(h))&&(v=Fr(o)),fn(o))){const j=Hl(o);y=Aa(o),S.x=j.x+o.clientLeft,S.y=j.y+o.clientTop}const C=h&&!b&&!d?xg(h,v):un(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 iE(a){return Array.from(a.getClientRects())}function cE(a){const i=mn(a),r=Fr(a),o=a.ownerDocument.body,u=Dt(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),d=Dt(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight);let h=-r.scrollLeft+Kr(a);const p=-r.scrollTop;return $t(o).direction==="rtl"&&(h+=Dt(i.clientWidth,o.clientWidth)-u),{width:u,height:d,x:h,y:p}}const mv=25;function rE(a,i){const r=Mt(a),o=mn(a),u=r.visualViewport;let d=o.clientWidth,h=o.clientHeight,p=0,v=0;if(u){d=u.width,h=u.height;const S=bf();(!S||S&&i==="fixed")&&(p=u.offsetLeft,v=u.offsetTop)}const y=Kr(o);if(y<=0){const S=o.ownerDocument,b=S.body,C=getComputedStyle(b),j=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(o.clientWidth-b.clientWidth-j);D<=mv&&(d-=D)}else y<=mv&&(d+=y);return{width:d,height:h,x:p,y:v}}const oE=new Set(["absolute","fixed"]);function sE(a,i){const r=Hl(a,!0,i==="fixed"),o=r.top+a.clientTop,u=r.left+a.clientLeft,d=fn(a)?Aa(a):un(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,v=u*d.x,y=o*d.y;return{width:h,height:p,x:v,y}}function pv(a,i,r){let o;if(i==="viewport")o=rE(a,r);else if(i==="document")o=cE(mn(a));else if(Wt(i))o=sE(i,r);else{const u=yg(a);o={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return Ur(o)}function bg(a,i){const r=pl(a);return r===i||!Wt(r)||Oa(r)?!1:$t(r).position==="fixed"||bg(r,i)}function uE(a,i){const r=i.get(a);if(r)return r;let o=Gi(a,[],!1).filter(p=>Wt(p)&&Ua(p)!=="body"),u=null;const d=$t(a).position==="fixed";let h=d?pl(a):a;for(;Wt(h)&&!Oa(h);){const p=$t(h),v=xf(h);!v&&p.position==="fixed"&&(u=null),(d?!v&&!u:!v&&p.position==="static"&&!!u&&oE.has(u.position)||Pi(h)&&!v&&bg(a,h))?o=o.filter(S=>S!==h):u=p,h=pl(h)}return i.set(a,o),o}function fE(a){let{element:i,boundary:r,rootBoundary:o,strategy:u}=a;const h=[...r==="clippingAncestors"?Gr(i)?[]:uE(i,this._c):[].concat(r),o],p=h[0],v=h.reduce((y,S)=>{const b=pv(i,S,u);return y.top=Dt(b.top,y.top),y.right=ml(b.right,y.right),y.bottom=ml(b.bottom,y.bottom),y.left=Dt(b.left,y.left),y},pv(i,p,u));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function dE(a){const{width:i,height:r}=gg(a);return{width:i,height:r}}function hE(a,i,r){const o=fn(i),u=mn(i),d=r==="fixed",h=Hl(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const v=un(0);function y(){v.x=Kr(u)}if(o||!o&&!d)if((Ua(i)!=="body"||Pi(u))&&(p=Fr(i)),o){const j=Hl(i,!0,d,i);v.x=j.x+i.clientLeft,v.y=j.y+i.clientTop}else u&&y();d&&!o&&u&&y();const S=u&&!o&&!d?xg(u,p):un(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 zu(a){return $t(a).position==="static"}function vv(a,i){if(!fn(a)||$t(a).position==="fixed")return null;if(i)return i(a);let r=a.offsetParent;return mn(a)===r&&(r=r.ownerDocument.body),r}function Sg(a,i){const r=Mt(a);if(Gr(a))return r;if(!fn(a)){let u=pl(a);for(;u&&!Oa(u);){if(Wt(u)&&!zu(u))return u;u=pl(u)}return r}let o=vv(a,i);for(;o&&Pw(o)&&zu(o);)o=vv(o,i);return o&&Oa(o)&&zu(o)&&!xf(o)?r:o||eE(a)||r}const mE=async function(a){const i=this.getOffsetParent||Sg,r=this.getDimensions,o=await r(a.floating);return{reference:hE(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function pE(a){return $t(a).direction==="rtl"}const vE={convertOffsetParentRelativeRectToViewportRelativeRect:aE,getDocumentElement:mn,getClippingRect:fE,getOffsetParent:Sg,getElementRects:mE,getClientRects:iE,getDimensions:dE,getScale:Aa,isElement:Wt,isRTL:pE};function wg(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function gE(a,i){let r=null,o;const u=mn(a);function d(){var p;clearTimeout(o),(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:j}=y;if(p||i(),!C||!j)return;const D=gr(b),w=gr(u.clientWidth-(S+C)),T=gr(u.clientHeight-(b+j)),z=gr(S),M={rootMargin:-D+"px "+-w+"px "+-T+"px "+-z+"px",threshold:Dt(0,ml(1,v))||1};let q=!0;function Q(P){const Y=P[0].intersectionRatio;if(Y!==v){if(!q)return h();Y?h(!1,Y):o=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!wg(y,a.getBoundingClientRect())&&h(),q=!1}try{r=new IntersectionObserver(Q,{...M,root:u.ownerDocument})}catch{r=new IntersectionObserver(Q,M)}r.observe(a)}return h(!0),d}function yE(a,i,r,o){o===void 0&&(o={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=o,y=Sf(a),S=u||d?[...y?Gi(y):[],...Gi(i)]:[];S.forEach(z=>{u&&z.addEventListener("scroll",r,{passive:!0}),d&&z.addEventListener("resize",r)});const b=y&&p?gE(y,r):null;let C=-1,j=null;h&&(j=new ResizeObserver(z=>{let[R]=z;R&&R.target===y&&j&&(j.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var M;(M=j)==null||M.observe(i)})),r()}),y&&!v&&j.observe(y),j.observe(i));let D,w=v?Hl(a):null;v&&T();function T(){const z=Hl(a);w&&!wg(w,z)&&r(),w=z,D=requestAnimationFrame(T)}return r(),()=>{var z;S.forEach(R=>{u&&R.removeEventListener("scroll",r),d&&R.removeEventListener("resize",r)}),b?.(),(z=j)==null||z.disconnect(),j=null,v&&cancelAnimationFrame(D)}}const xE=Xw,bE=Gw,SE=Yw,wE=Kw,EE=qw,gv=kw,CE=Fw,NE=(a,i,r)=>{const o=new Map,u={platform:vE,...r},d={...u.platform,_c:o};return Bw(a,i,{...u,platform:d})};var jE=typeof document<"u",TE=function(){},jr=jE?g.useLayoutEffect:TE;function Hr(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,o,u;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(r=a.length,r!==i.length)return!1;for(o=r;o--!==0;)if(!Hr(a[o],i[o]))return!1;return!0}if(u=Object.keys(a),r=u.length,r!==Object.keys(i).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(i,u[o]))return!1;for(o=r;o--!==0;){const d=u[o];if(!(d==="_owner"&&a.$$typeof)&&!Hr(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function Eg(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function yv(a,i){const r=Eg(a);return Math.round(i*r)/r}function Ou(a){const i=g.useRef(a);return jr(()=>{i.current=a}),i}function AE(a){a===void 0&&(a={});const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:u,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,j]=g.useState(o);Hr(C,o)||j(o);const[D,w]=g.useState(null),[T,z]=g.useState(null),R=g.useCallback(V=>{V!==P.current&&(P.current=V,w(V))},[]),M=g.useCallback(V=>{V!==Y.current&&(Y.current=V,z(V))},[]),q=d||D,Q=h||T,P=g.useRef(null),Y=g.useRef(null),ne=g.useRef(S),le=v!=null,se=Ou(v),ue=Ou(u),$=Ou(y),te=g.useCallback(()=>{if(!P.current||!Y.current)return;const V={placement:i,strategy:r,middleware:C};ue.current&&(V.platform=ue.current),NE(P.current,Y.current,V).then(ae=>{const ve={...ae,isPositioned:$.current!==!1};ee.current&&!Hr(ne.current,ve)&&(ne.current=ve,Qi.flushSync(()=>{b(ve)}))})},[C,i,r,ue,$]);jr(()=>{y===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[y]);const ee=g.useRef(!1);jr(()=>(ee.current=!0,()=>{ee.current=!1}),[]),jr(()=>{if(q&&(P.current=q),Q&&(Y.current=Q),q&&Q){if(se.current)return se.current(q,Q,te);te()}},[q,Q,te,se,le]);const fe=g.useMemo(()=>({reference:P,floating:Y,setReference:R,setFloating:M}),[R,M]),_=g.useMemo(()=>({reference:q,floating:Q}),[q,Q]),L=g.useMemo(()=>{const V={position:r,left:0,top:0};if(!_.floating)return V;const ae=yv(_.floating,S.x),ve=yv(_.floating,S.y);return p?{...V,transform:"translate("+ae+"px, "+ve+"px)",...Eg(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:ve}},[r,p,_.floating,S.x,S.y]);return g.useMemo(()=>({...S,update:te,refs:fe,elements:_,floatingStyles:L}),[S,te,fe,_,L])}const RE=a=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:a,fn(r){const{element:o,padding:u}=typeof a=="function"?a(r):a;return o&&i(o)?o.current!=null?gv({element:o.current,padding:u}).fn(r):{}:o?gv({element:o,padding:u}).fn(r):{}}}},zE=(a,i)=>({...xE(a),options:[a,i]}),OE=(a,i)=>({...bE(a),options:[a,i]}),_E=(a,i)=>({...CE(a),options:[a,i]}),DE=(a,i)=>({...SE(a),options:[a,i]}),ME=(a,i)=>({...wE(a),options:[a,i]}),LE=(a,i)=>({...EE(a),options:[a,i]}),UE=(a,i)=>({...RE(a),options:[a,i]});var HE="Arrow",Cg=g.forwardRef((a,i)=>{const{children:r,width:o=10,height:u=5,...d}=a;return f.jsx(Qe.svg,{...d,ref:i,width:o,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cg.displayName=HE;var BE=Cg;function kE(a){const[i,r]=g.useState(void 0);return bt(()=>{if(a){r({width:a.offsetWidth,height:a.offsetHeight});const o=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[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 o.observe(a,{box:"border-box"}),()=>o.unobserve(a)}else r(void 0)},[a]),i}var wf="Popper",[Ng,jg]=mf(wf),[YE,Tg]=Ng(wf),Ag=a=>{const{__scopePopper:i,children:r}=a,[o,u]=g.useState(null);return f.jsx(YE,{scope:i,anchor:o,onAnchorChange:u,children:r})};Ag.displayName=wf;var Rg="PopperAnchor",zg=g.forwardRef((a,i)=>{const{__scopePopper:r,virtualRef:o,...u}=a,d=Tg(Rg,r),h=g.useRef(null),p=ut(i,h),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=o?.current||h.current,y!==v.current&&d.onAnchorChange(v.current)}),o?null:f.jsx(Qe.div,{...u,ref:p})});zg.displayName=Rg;var Ef="PopperContent",[qE,VE]=Ng(Ef),Og=g.forwardRef((a,i)=>{const{__scopePopper:r,side:o="bottom",sideOffset:u=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:j="optimized",onPlaced:D,...w}=a,T=Tg(Ef,r),[z,R]=g.useState(null),M=ut(i,J=>R(J)),[q,Q]=g.useState(null),P=kE(q),Y=P?.width??0,ne=P?.height??0,le=o+(d!=="center"?"-"+d:""),se=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ue=Array.isArray(y)?y:[y],$=ue.length>0,te={padding:se,boundary:ue.filter(GE),altBoundary:$},{refs:ee,floatingStyles:fe,placement:_,isPositioned:L,middlewareData:V}=AE({strategy:"fixed",placement:le,whileElementsMounted:(...J)=>yE(...J,{animationFrame:j==="always"}),elements:{reference:T.anchor},middleware:[zE({mainAxis:u+ne,alignmentAxis:h}),v&&OE({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?_E():void 0,...te}),v&&DE({...te}),ME({...te,apply:({elements:J,rects:me,availableWidth:I,availableHeight:ie})=>{const{width:ge,height:Ne}=me.reference,Ye=J.floating.style;Ye.setProperty("--radix-popper-available-width",`${I}px`),Ye.setProperty("--radix-popper-available-height",`${ie}px`),Ye.setProperty("--radix-popper-anchor-width",`${ge}px`),Ye.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),q&&UE({element:q,padding:p}),FE({arrowWidth:Y,arrowHeight:ne}),C&&LE({strategy:"referenceHidden",...te})]}),[ae,ve]=Mg(_),N=Ul(D);bt(()=>{L&&N?.()},[L,N]);const G=V.arrow?.x,Z=V.arrow?.y,W=V.arrow?.centerOffset!==0,[re,he]=g.useState();return bt(()=>{z&&he(window.getComputedStyle(z).zIndex)},[z]),f.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:L?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:f.jsx(qE,{scope:r,placedSide:ae,onArrowChange:Q,arrowX:G,arrowY:Z,shouldHideArrow:W,children:f.jsx(Qe.div,{"data-side":ae,"data-align":ve,...w,ref:M,style:{...w.style,animation:L?void 0:"none"}})})})});Og.displayName=Ef;var _g="PopperArrow",XE={top:"bottom",right:"left",bottom:"top",left:"right"},Dg=g.forwardRef(function(i,r){const{__scopePopper:o,...u}=i,d=VE(_g,o),h=XE[d.placedSide];return f.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:f.jsx(BE,{...u,ref:r,style:{...u.style,display:"block"}})})});Dg.displayName=_g;function GE(a){return a!==null}var FE=a=>({name:"transformOrigin",options:a,fn(i){const{placement:r,rects:o,middlewareData:u}=i,h=u.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,v=h?0:a.arrowHeight,[y,S]=Mg(r),b={start:"0%",center:"50%",end:"100%"}[S],C=(u.arrow?.x??0)+p/2,j=(u.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=`${o.floating.height+v}px`):y==="right"?(D=`${-v}px`,w=h?b:`${j}px`):y==="left"&&(D=`${o.floating.width+v}px`,w=h?b:`${j}px`),{data:{x:D,y:w}}}});function Mg(a){const[i,r="center"]=a.split("-");return[i,r]}var KE=Ag,QE=zg,ZE=Og,PE=Dg,JE="Portal",Lg=g.forwardRef((a,i)=>{const{container:r,...o}=a,[u,d]=g.useState(!1);bt(()=>d(!0),[]);const h=r||u&&globalThis?.document?.body;return h?OS.createPortal(f.jsx(Qe.div,{...o,ref:i}),h):null});Lg.displayName=JE;var IE=jv[" useInsertionEffect ".trim().toString()]||bt;function xv({prop:a,defaultProp:i,onChange:r=()=>{},caller:o}){const[u,d,h]=WE({defaultProp:i,onChange:r}),p=a!==void 0,v=p?a:u;{const S=g.useRef(a!==void 0);g.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${o} 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,o])}const y=g.useCallback(S=>{if(p){const b=$E(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[v,y]}function WE({defaultProp:a,onChange:i}){const[r,o]=g.useState(a),u=g.useRef(r),d=g.useRef(i);return IE(()=>{d.current=i},[i]),g.useEffect(()=>{u.current!==r&&(d.current?.(r),u.current=r)},[r,u]),[r,o,d]}function $E(a){return typeof a=="function"}function e2(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 Ug=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"}),t2="VisuallyHidden",n2=g.forwardRef((a,i)=>f.jsx(Qe.span,{...a,ref:i,style:{...Ug,...a.style}}));n2.displayName=t2;var l2=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},Ca=new WeakMap,yr=new WeakMap,xr={},_u=0,Hg=function(a){return a&&(a.host||Hg(a.parentNode))},a2=function(a,i){return i.map(function(r){if(a.contains(r))return r;var o=Hg(r);return o&&a.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",a,". Doing nothing"),null)}).filter(function(r){return!!r})},i2=function(a,i,r,o){var u=a2(i,Array.isArray(a)?a:[a]);xr[r]||(xr[r]=new WeakMap);var d=xr[r],h=[],p=new Set,v=new Set(u),y=function(b){!b||p.has(b)||(p.add(b),y(b.parentNode))};u.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 j=C.getAttribute(o),D=j!==null&&j!=="false",w=(Ca.get(C)||0)+1,T=(d.get(C)||0)+1;Ca.set(C,w),d.set(C,T),h.push(C),w===1&&D&&yr.set(C,!0),T===1&&C.setAttribute(r,"true"),D||C.setAttribute(o,"true")}catch(z){console.error("aria-hidden: cannot operate on ",C,z)}})};return S(i),p.clear(),_u++,function(){h.forEach(function(b){var C=Ca.get(b)-1,j=d.get(b)-1;Ca.set(b,C),d.set(b,j),C||(yr.has(b)||b.removeAttribute(o),yr.delete(b)),j||b.removeAttribute(r)}),_u--,_u||(Ca=new WeakMap,Ca=new WeakMap,yr=new WeakMap,xr={})}},c2=function(a,i,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(a)?a:[a]),u=l2(a);return u?(o.push.apply(o,Array.from(u.querySelectorAll("[aria-live], script"))),i2(o,u,r,"aria-hidden")):function(){return null}},rn=function(){return rn=Object.assign||function(i){for(var r,o=1,u=arguments.length;o<u;o++){r=arguments[o];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])}return i},rn.apply(this,arguments)};function Bg(a,i){var r={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.indexOf(o)<0&&(r[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(a);u<o.length;u++)i.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(a,o[u])&&(r[o[u]]=a[o[u]]);return r}function r2(a,i,r){if(r||arguments.length===2)for(var o=0,u=i.length,d;o<u;o++)(d||!(o in i))&&(d||(d=Array.prototype.slice.call(i,0,o)),d[o]=i[o]);return a.concat(d||Array.prototype.slice.call(i))}var Tr="right-scroll-bar-position",Ar="width-before-scroll-bar",o2="with-scroll-bars-hidden",s2="--removed-body-scroll-bar-size";function Du(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function u2(a,i){var r=g.useState(function(){return{value:a,callback:i,facade:{get current(){return r.value},set current(o){var u=r.value;u!==o&&(r.value=o,r.callback(o,u))}}}})[0];return r.callback=i,r.facade}var f2=typeof window<"u"?g.useLayoutEffect:g.useEffect,bv=new WeakMap;function d2(a,i){var r=u2(null,function(o){return a.forEach(function(u){return Du(u,o)})});return f2(function(){var o=bv.get(r);if(o){var u=new Set(o),d=new Set(a),h=r.current;u.forEach(function(p){d.has(p)||Du(p,null)}),d.forEach(function(p){u.has(p)||Du(p,h)})}bv.set(r,a)},[a]),r}function h2(a){return a}function m2(a,i){i===void 0&&(i=h2);var r=[],o=!1,u={read:function(){if(o)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,o);return r.push(h),function(){r=r.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(o=!0;r.length;){var h=r;r=[],h.forEach(d)}r={push:function(p){return d(p)},filter:function(){return r}}},assignMedium:function(d){o=!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 u}function p2(a){a===void 0&&(a={});var i=m2(null);return i.options=rn({async:!0,ssr:!1},a),i}var kg=function(a){var i=a.sideCar,r=Bg(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=i.read();if(!o)throw new Error("Sidecar medium not found");return g.createElement(o,rn({},r))};kg.isSideCarExport=!0;function v2(a,i){return a.useMedium(i),kg}var Yg=p2(),Mu=function(){},Qr=g.forwardRef(function(a,i){var r=g.useRef(null),o=g.useState({onScrollCapture:Mu,onWheelCapture:Mu,onTouchMoveCapture:Mu}),u=o[0],d=o[1],h=a.forwardProps,p=a.children,v=a.className,y=a.removeScrollBar,S=a.enabled,b=a.shards,C=a.sideCar,j=a.noRelative,D=a.noIsolation,w=a.inert,T=a.allowPinchZoom,z=a.as,R=z===void 0?"div":z,M=a.gapMode,q=Bg(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,P=d2([r,i]),Y=rn(rn({},q),u);return g.createElement(g.Fragment,null,S&&g.createElement(Q,{sideCar:Yg,removeScrollBar:y,shards:b,noRelative:j,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!T,lockRef:r,gapMode:M}),h?g.cloneElement(g.Children.only(p),rn(rn({},Y),{ref:P})):g.createElement(R,rn({},Y,{className:v,ref:P}),p))});Qr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qr.classNames={fullWidth:Ar,zeroRight:Tr};var g2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function y2(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=g2();return i&&a.setAttribute("nonce",i),a}function x2(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function b2(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var S2=function(){var a=0,i=null;return{add:function(r){a==0&&(i=y2())&&(x2(i,r),b2(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},w2=function(){var a=S2();return function(i,r){g.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&r])}},qg=function(){var a=w2(),i=function(r){var o=r.styles,u=r.dynamic;return a(o,u),null};return i},E2={left:0,top:0,right:0,gap:0},Lu=function(a){return parseInt(a||"",10)||0},C2=function(a){var i=window.getComputedStyle(document.body),r=i[a==="padding"?"paddingLeft":"marginLeft"],o=i[a==="padding"?"paddingTop":"marginTop"],u=i[a==="padding"?"paddingRight":"marginRight"];return[Lu(r),Lu(o),Lu(u)]},N2=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return E2;var i=C2(a),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,o-r+i[2]-i[0])}},j2=qg(),Ra="data-scroll-locked",T2=function(a,i,r,o){var u=a.left,d=a.top,h=a.right,p=a.gap;return r===void 0&&(r="margin"),`
|
|
12
12
|
.`.concat(o2,` {
|
|
13
|
-
overflow: hidden `).concat(
|
|
14
|
-
padding-right: `).concat(p,"px ").concat(
|
|
13
|
+
overflow: hidden `).concat(o,`;
|
|
14
|
+
padding-right: `).concat(p,"px ").concat(o,`;
|
|
15
15
|
}
|
|
16
16
|
body[`).concat(Ra,`] {
|
|
17
|
-
overflow: hidden `).concat(
|
|
17
|
+
overflow: hidden `).concat(o,`;
|
|
18
18
|
overscroll-behavior: contain;
|
|
19
|
-
`).concat([i&&"position: relative ".concat(
|
|
20
|
-
padding-left: `.concat(
|
|
19
|
+
`).concat([i&&"position: relative ".concat(o,";"),r==="margin"&&`
|
|
20
|
+
padding-left: `.concat(u,`px;
|
|
21
21
|
padding-top: `).concat(d,`px;
|
|
22
22
|
padding-right: `).concat(h,`px;
|
|
23
23
|
margin-left:0;
|
|
24
24
|
margin-top:0;
|
|
25
|
-
margin-right: `).concat(p,"px ").concat(
|
|
26
|
-
`),
|
|
25
|
+
margin-right: `).concat(p,"px ").concat(o,`;
|
|
26
|
+
`),r==="padding"&&"padding-right: ".concat(p,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.`).concat(
|
|
30
|
-
right: `).concat(p,"px ").concat(
|
|
29
|
+
.`).concat(Tr,` {
|
|
30
|
+
right: `).concat(p,"px ").concat(o,`;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.`).concat(
|
|
34
|
-
margin-right: `).concat(p,"px ").concat(
|
|
33
|
+
.`).concat(Ar,` {
|
|
34
|
+
margin-right: `).concat(p,"px ").concat(o,`;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.`).concat(
|
|
38
|
-
right: 0 `).concat(
|
|
37
|
+
.`).concat(Tr," .").concat(Tr,` {
|
|
38
|
+
right: 0 `).concat(o,`;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.`).concat(
|
|
42
|
-
margin-right: 0 `).concat(
|
|
41
|
+
.`).concat(Ar," .").concat(Ar,` {
|
|
42
|
+
margin-right: 0 `).concat(o,`;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
body[`).concat(Ra,`] {
|
|
46
|
-
`).concat(
|
|
46
|
+
`).concat(s2,": ").concat(p,`px;
|
|
47
47
|
}
|
|
48
|
-
`)},Sv=function(){var a=parseInt(document.body.getAttribute(Ra)||"0",10);return isFinite(a)?a:0},
|
|
48
|
+
`)},Sv=function(){var a=parseInt(document.body.getAttribute(Ra)||"0",10);return isFinite(a)?a:0},A2=function(){g.useEffect(function(){return document.body.setAttribute(Ra,(Sv()+1).toString()),function(){var a=Sv()-1;a<=0?document.body.removeAttribute(Ra):document.body.setAttribute(Ra,a.toString())}},[])},R2=function(a){var i=a.noRelative,r=a.noImportant,o=a.gapMode,u=o===void 0?"margin":o;A2();var d=g.useMemo(function(){return N2(u)},[u]);return g.createElement(j2,{styles:T2(d,!i,u,r?"":"!important")})},Zu=!1;if(typeof window<"u")try{var br=Object.defineProperty({},"passive",{get:function(){return Zu=!0,!0}});window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{Zu=!1}var Na=Zu?{passive:!1}:!1,z2=function(a){return a.tagName==="TEXTAREA"},Vg=function(a,i){if(!(a instanceof Element))return!1;var r=window.getComputedStyle(a);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!z2(a)&&r[i]==="visible")},O2=function(a){return Vg(a,"overflowY")},_2=function(a){return Vg(a,"overflowX")},wv=function(a,i){var r=i.ownerDocument,o=i;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var u=Xg(a,o);if(u){var d=Gg(a,o),h=d[1],p=d[2];if(h>p)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},D2=function(a){var i=a.scrollTop,r=a.scrollHeight,o=a.clientHeight;return[i,r,o]},M2=function(a){var i=a.scrollLeft,r=a.scrollWidth,o=a.clientWidth;return[i,r,o]},Xg=function(a,i){return a==="v"?O2(i):_2(i)},Gg=function(a,i){return a==="v"?D2(i):M2(i)},L2=function(a,i){return a==="h"&&i==="rtl"?-1:1},U2=function(a,i,r,o,u){var d=L2(a,window.getComputedStyle(i).direction),h=d*o,p=r.target,v=i.contains(p),y=!1,S=h>0,b=0,C=0;do{if(!p)break;var j=Gg(a,p),D=j[0],w=j[1],T=j[2],z=w-T-d*D;(D||z)&&Xg(a,p)&&(b+=z,C+=D);var R=p.parentNode;p=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}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},Sr=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},Ev=function(a){return[a.deltaX,a.deltaY]},Cv=function(a){return a&&"current"in a?a.current:a},H2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},B2=function(a){return`
|
|
49
49
|
.block-interactivity-`.concat(a,` {pointer-events: none;}
|
|
50
50
|
.allow-interactivity-`).concat(a,` {pointer-events: all;}
|
|
51
|
-
`)},B2=0,ja=[];function k2(a){var i=g.useRef([]),o=g.useRef([0,0]),r=g.useRef(),f=g.useState(B2++)[0],d=g.useState(Yg)[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=c2([a.lockRef.current],(a.shards||[]).map(Cv),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(f))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var z=wo(w),R=o.current,M="deltaX"in w?w.deltaX:R[0]-z[0],q="deltaY"in w?w.deltaY:R[1]-z[1],Q,P=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&P.type==="range")return!1;var ne=window.getSelection(),le=ne&&ne.anchorNode,se=le?le===P||le.contains(P):!1;if(se)return!1;var ue=wv(Y,P);if(!ue)return!0;if(ue?Q=Y:(Q=Y==="v"?"h":"v",ue=wv(Y,P)),!ue)return!1;if(!r.current&&"changedTouches"in w&&(M||q)&&(r.current=Q),!Q)return!0;var $=r.current||Q;return L2($,T,w,$==="h"?M:q)},[]),v=g.useCallback(function(w){var T=w;if(!(!ja.length||ja[ja.length-1]!==d)){var z="deltaY"in T?Ev(T):wo(T),R=i.current.filter(function(Q){return Q.name===T.type&&(Q.target===T.target||T.target===Q.shadowParent)&&U2(Q.delta,z)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var M=(h.current.shards||[]).map(Cv).filter(Boolean).filter(function(Q){return Q.contains(T.target)}),q=M.length>0?p(T,M[0]):!h.current.noIsolation;q&&T.cancelable&&T.preventDefault()}}},[]),y=g.useCallback(function(w,T,z,R){var M={name:w,delta:T,target:z,should:R,shadowParent:Y2(z)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),S=g.useCallback(function(w){o.current=wo(w),r.current=void 0},[]),b=g.useCallback(function(w){y(w.type,Ev(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,wo(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return ja.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Na),document.addEventListener("touchmove",v,Na),document.addEventListener("touchstart",S,Na),function(){ja=ja.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,Na),document.removeEventListener("touchmove",v,Na),document.removeEventListener("touchstart",S,Na)}},[]);var j=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:H2(f)}):null,j?g.createElement(A2,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function Y2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const q2=p2(kg,k2);var Gg=g.forwardRef(function(a,i){return g.createElement(Zo,on({},a,{ref:i,sideCar:q2}))});Gg.classNames=Zo.classNames;var V2=[" ","Enter","ArrowUp","ArrowDown"],X2=[" ","Enter"],Bl="Select",[Po,Jo,G2]=nw(Bl),[Ha]=mf(Bl,[G2,Ng]),Io=Ng(),[F2,vl]=Ha(Bl),[K2,Q2]=Ha(Bl),Fg=a=>{const{__scopeSelect:i,children:o,open:r,defaultOpen:f,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:j,form:D}=a,w=Io(i),[T,z]=g.useState(null),[R,M]=g.useState(null),[q,Q]=g.useState(!1),P=aw(y),[Y,ne]=xv({prop:r,defaultProp:f??!1,onChange:d,caller:Bl}),[le,se]=xv({prop:h,defaultProp:p,onChange:v,caller:Bl}),ue=g.useRef(null),$=T?D||!!T.closest("form"):!0,[te,ee]=g.useState(new Set),fe=Array.from(te).map(_=>_.props.value).join(";");return u.jsx(FE,{...w,children:u.jsxs(F2,{required:j,scope:i,trigger:T,onTriggerChange:z,valueNode:R,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:pf(),value:le,onValueChange:se,open:Y,onOpenChange:ne,dir:P,triggerPointerDownPosRef:ue,disabled:C,children:[u.jsx(Po.Provider,{scope:i,children:u.jsx(K2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{ee(L=>new Set(L).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{ee(L=>{const V=new Set(L);return V.delete(_),V})},[]),children:o})}),$?u.jsxs(dy,{"aria-hidden":!0,required:j,tabIndex:-1,name:S,autoComplete:b,value:le,onChange:_=>se(_.target.value),disabled:C,form:D,children:[le===void 0?u.jsx("option",{value:""}):null,Array.from(te)]},fe):null]})})};Fg.displayName=Bl;var Kg="SelectTrigger",Qg=g.forwardRef((a,i)=>{const{__scopeSelect:o,disabled:r=!1,...f}=a,d=Io(o),h=vl(Kg,o),p=h.disabled||r,v=ut(i,h.onTriggerChange),y=Jo(o),S=g.useRef("touch"),[b,C,j]=my(w=>{const T=y().filter(M=>!M.disabled),z=T.find(M=>M.value===h.value),R=py(T,w,z);R!==void 0&&h.onValueChange(R.value)}),D=w=>{p||(h.onOpenChange(!0),j()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return u.jsx(KE,{asChild:!0,...d,children:u.jsx(Qe.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":hy(h.value)?"":void 0,...f,ref:v,onClick:We(f.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:We(f.onPointerDown,w=>{S.current=w.pointerType;const T=w.target;T.hasPointerCapture(w.pointerId)&&T.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:We(f.onKeyDown,w=>{const T=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(T&&w.key===" ")&&V2.includes(w.key)&&(D(),w.preventDefault())})})})});Qg.displayName=Kg;var Zg="SelectValue",Pg=g.forwardRef((a,i)=>{const{__scopeSelect:o,className:r,style:f,children:d,placeholder:h="",...p}=a,v=vl(Zg,o),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=ut(i,v.onValueNodeChange);return bt(()=>{y(S)},[y,S]),u.jsx(Qe.span,{...p,ref:b,style:{pointerEvents:"none"},children:hy(v.value)?u.jsx(u.Fragment,{children:h}):d})});Pg.displayName=Zg;var Z2="SelectIcon",Jg=g.forwardRef((a,i)=>{const{__scopeSelect:o,children:r,...f}=a;return u.jsx(Qe.span,{"aria-hidden":!0,...f,ref:i,children:r||"▼"})});Jg.displayName=Z2;var P2="SelectPortal",Ig=a=>u.jsx(Mg,{asChild:!0,...a});Ig.displayName=P2;var kl="SelectContent",Wg=g.forwardRef((a,i)=>{const o=vl(kl,a.__scopeSelect),[r,f]=g.useState();if(bt(()=>{f(new DocumentFragment)},[]),!o.open){const d=r;return d?Qi.createPortal(u.jsx($g,{scope:a.__scopeSelect,children:u.jsx(Po.Slot,{scope:a.__scopeSelect,children:u.jsx("div",{children:a.children})})}),d):null}return u.jsx(ey,{...a,ref:i})});Wg.displayName=kl;var Jt=10,[$g,gl]=Ha(kl),J2="SelectContentImpl",I2=Mo("SelectContent.RemoveScroll"),ey=g.forwardRef((a,i)=>{const{__scopeSelect:o,position:r="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:T,...z}=a,R=vl(kl,o),[M,q]=g.useState(null),[Q,P]=g.useState(null),Y=ut(i,J=>q(J)),[ne,le]=g.useState(null),[se,ue]=g.useState(null),$=Jo(o),[te,ee]=g.useState(!1),fe=g.useRef(!1);g.useEffect(()=>{if(M)return i2(M)},[M]),pw();const _=g.useCallback(J=>{const[me,...I]=$().map(Ne=>Ne.ref.current),[ie]=I.slice(-1),ge=document.activeElement;for(const Ne of J)if(Ne===ge||(Ne?.scrollIntoView({block:"nearest"}),Ne===me&&Q&&(Q.scrollTop=0),Ne===ie&&Q&&(Q.scrollTop=Q.scrollHeight),Ne?.focus(),document.activeElement!==ge))return},[$,Q]),L=g.useCallback(()=>_([ne,M]),[_,ne,M]);g.useEffect(()=>{te&&L()},[te,L]);const{onOpenChange:V,triggerPointerDownPosRef:ae}=R;g.useEffect(()=>{if(M){let J={x:0,y:0};const me=ie=>{J={x:Math.abs(Math.round(ie.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(ie.pageY)-(ae.current?.y??0))}},I=ie=>{J.x<=10&&J.y<=10?ie.preventDefault():M.contains(ie.target)||V(!1),document.removeEventListener("pointermove",me),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",I,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",I,{capture:!0})}}},[M,V,ae]),g.useEffect(()=>{const J=()=>V(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[V]);const[ve,N]=my(J=>{const me=$().filter(ge=>!ge.disabled),I=me.find(ge=>ge.ref.current===document.activeElement),ie=py(me,J,I);ie&&setTimeout(()=>ie.ref.current.focus())}),G=g.useCallback((J,me,I)=>{const ie=!fe.current&&!I;(R.value!==void 0&&R.value===me||ie)&&(le(J),ie&&(fe.current=!0))},[R.value]),Z=g.useCallback(()=>M?.focus(),[M]),W=g.useCallback((J,me,I)=>{const ie=!fe.current&&!I;(R.value!==void 0&&R.value===me||ie)&&ue(J)},[R.value]),oe=r==="popper"?Pu:ty,he=oe===Pu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:T}:{};return u.jsx($g,{scope:o,content:M,viewport:Q,onViewportChange:P,itemRefCallback:G,selectedItem:ne,onItemLeave:Z,itemTextRefCallback:W,focusSelectedItem:L,selectedItemText:se,position:r,isPositioned:te,searchRef:ve,children:u.jsx(Gg,{as:I2,allowPinchZoom:!0,children:u.jsx(ug,{asChild:!0,trapped:R.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:We(f,J=>{R.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:u.jsx(rg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:u.jsx(oe,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:J=>J.preventDefault(),...z,...he,onPlaced:()=>ee(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...z.style},onKeyDown:We(z.onKeyDown,J=>{const me=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!me&&J.key.length===1&&N(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ie=$().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,Ne=ie.indexOf(ge);ie=ie.slice(Ne+1)}setTimeout(()=>_(ie)),J.preventDefault()}})})})})})})});ey.displayName=J2;var W2="SelectItemAlignedPosition",ty=g.forwardRef((a,i)=>{const{__scopeSelect:o,onPlaced:r,...f}=a,d=vl(kl,o),h=gl(kl,o),[p,v]=g.useState(null),[y,S]=g.useState(null),b=ut(i,Y=>S(Y)),C=Jo(o),j=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:T,selectedItemText:z,focusSelectedItem:R}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&T&&z){const Y=d.trigger.getBoundingClientRect(),ne=y.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),se=z.getBoundingClientRect();if(d.dir!=="rtl"){const ge=se.left-ne.left,Ne=le.left-ge,Ye=Y.left-Ne,tt=Y.width+Ye,pn=Math.max(tt,ne.width),nt=window.innerWidth-Jt,tn=$p(Ne,[Jt,Math.max(Jt,nt-pn)]);p.style.minWidth=tt+"px",p.style.left=tn+"px"}else{const ge=ne.right-se.right,Ne=window.innerWidth-le.right-ge,Ye=window.innerWidth-Y.right-Ne,tt=Y.width+Ye,pn=Math.max(tt,ne.width),nt=window.innerWidth-Jt,tn=$p(Ne,[Jt,Math.max(Jt,nt-pn)]);p.style.minWidth=tt+"px",p.style.right=tn+"px"}const ue=C(),$=window.innerHeight-Jt*2,te=w.scrollHeight,ee=window.getComputedStyle(y),fe=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),L=parseInt(ee.borderBottomWidth,10),V=parseInt(ee.paddingBottom,10),ae=fe+_+te+V+L,ve=Math.min(T.offsetHeight*5,ae),N=window.getComputedStyle(w),G=parseInt(N.paddingTop,10),Z=parseInt(N.paddingBottom,10),W=Y.top+Y.height/2-Jt,oe=$-W,he=T.offsetHeight/2,J=T.offsetTop+he,me=fe+_+J,I=ae-me;if(me<=W){const ge=ue.length>0&&T===ue[ue.length-1].ref.current;p.style.bottom="0px";const Ne=y.clientHeight-w.offsetTop-w.offsetHeight,Ye=Math.max(oe,he+(ge?Z:0)+Ne+L),tt=me+Ye;p.style.height=tt+"px"}else{const ge=ue.length>0&&T===ue[0].ref.current;p.style.top="0px";const Ye=Math.max(W,fe+w.offsetTop+(ge?G:0)+he)+I;p.style.height=Ye+"px",w.scrollTop=me-W+w.offsetTop}p.style.margin=`${Jt}px 0`,p.style.minHeight=ve+"px",p.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>j.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,T,z,d.dir,r]);bt(()=>M(),[M]);const[q,Q]=g.useState();bt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const P=g.useCallback(Y=>{Y&&D.current===!0&&(M(),R?.(),D.current=!1)},[M,R]);return u.jsx(eC,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:j,onScrollButtonChange:P,children:u.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:u.jsx(Qe.div,{...f,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...f.style}})})})});ty.displayName=W2;var $2="SelectPopperPosition",Pu=g.forwardRef((a,i)=>{const{__scopeSelect:o,align:r="start",collisionPadding:f=Jt,...d}=a,h=Io(o);return u.jsx(QE,{...h,...d,ref:i,align:r,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)"}})});Pu.displayName=$2;var[eC,Cf]=Ha(kl,{}),Ju="SelectViewport",ny=g.forwardRef((a,i)=>{const{__scopeSelect:o,nonce:r,...f}=a,d=gl(Ju,o),h=Cf(Ju,o),p=ut(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:r}),u.jsx(Po.Slot,{scope:o,children:u.jsx(Qe.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:We(f.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const j=Math.abs(v.current-S.scrollTop);if(j>0){const D=window.innerHeight-Jt*2,w=parseFloat(b.style.minHeight),T=parseFloat(b.style.height),z=Math.max(w,T);if(z<D){const R=z+j,M=Math.min(D,R),q=R-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})})})]})});ny.displayName=Ju;var ly="SelectGroup",[tC,nC]=Ha(ly),lC=g.forwardRef((a,i)=>{const{__scopeSelect:o,...r}=a,f=pf();return u.jsx(tC,{scope:o,id:f,children:u.jsx(Qe.div,{role:"group","aria-labelledby":f,...r,ref:i})})});lC.displayName=ly;var ay="SelectLabel",iy=g.forwardRef((a,i)=>{const{__scopeSelect:o,...r}=a,f=nC(ay,o);return u.jsx(Qe.div,{id:f.id,...r,ref:i})});iy.displayName=ay;var ko="SelectItem",[aC,cy]=Ha(ko),oy=g.forwardRef((a,i)=>{const{__scopeSelect:o,value:r,disabled:f=!1,textValue:d,...h}=a,p=vl(ko,o),v=gl(ko,o),y=p.value===r,[S,b]=g.useState(d??""),[C,j]=g.useState(!1),D=ut(i,R=>v.itemRefCallback?.(R,r,f)),w=pf(),T=g.useRef("touch"),z=()=>{f||(p.onValueChange(r),p.onOpenChange(!1))};if(r==="")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(aC,{scope:o,value:r,disabled:f,textId:w,isSelected:y,onItemTextChange:g.useCallback(R=>{b(M=>M||(R?.textContent??"").trim())},[]),children:u.jsx(Po.ItemSlot,{scope:o,value:r,disabled:f,textValue:S,children:u.jsx(Qe.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:We(h.onFocus,()=>j(!0)),onBlur:We(h.onBlur,()=>j(!1)),onClick:We(h.onClick,()=>{T.current!=="mouse"&&z()}),onPointerUp:We(h.onPointerUp,()=>{T.current==="mouse"&&z()}),onPointerDown:We(h.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:We(h.onPointerMove,R=>{T.current=R.pointerType,f?v.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:We(h.onPointerLeave,R=>{R.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:We(h.onKeyDown,R=>{v.searchRef?.current!==""&&R.key===" "||(X2.includes(R.key)&&z(),R.key===" "&&R.preventDefault())})})})})});oy.displayName=ko;var Hi="SelectItemText",ry=g.forwardRef((a,i)=>{const{__scopeSelect:o,className:r,style:f,...d}=a,h=vl(Hi,o),p=gl(Hi,o),v=cy(Hi,o),y=Q2(Hi,o),[S,b]=g.useState(null),C=ut(i,z=>b(z),v.onItemTextChange,z=>p.itemTextRefCallback?.(z,v.value,v.disabled)),j=S?.textContent,D=g.useMemo(()=>u.jsx("option",{value:v.value,disabled:v.disabled,children:j},v.value),[v.disabled,v.value,j]),{onNativeOptionAdd:w,onNativeOptionRemove:T}=y;return bt(()=>(w(D),()=>T(D)),[w,T,D]),u.jsxs(u.Fragment,{children:[u.jsx(Qe.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Qi.createPortal(d.children,h.valueNode):null]})});ry.displayName=Hi;var sy="SelectItemIndicator",uy=g.forwardRef((a,i)=>{const{__scopeSelect:o,...r}=a;return cy(sy,o).isSelected?u.jsx(Qe.span,{"aria-hidden":!0,...r,ref:i}):null});uy.displayName=sy;var Iu="SelectScrollUpButton",iC=g.forwardRef((a,i)=>{const o=gl(Iu,a.__scopeSelect),r=Cf(Iu,a.__scopeSelect),[f,d]=g.useState(!1),h=ut(i,r.onScrollButtonChange);return bt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=v.scrollTop>0;d(y)};const v=o.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),f?u.jsx(fy,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=o;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});iC.displayName=Iu;var Wu="SelectScrollDownButton",cC=g.forwardRef((a,i)=>{const o=gl(Wu,a.__scopeSelect),r=Cf(Wu,a.__scopeSelect),[f,d]=g.useState(!1),h=ut(i,r.onScrollButtonChange);return bt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=v.scrollHeight-v.clientHeight,S=Math.ceil(v.scrollTop)<y;d(S)};const v=o.viewport;return p(),v.addEventListener("scroll",p),()=>v.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),f?u.jsx(fy,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=o;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});cC.displayName=Wu;var fy=g.forwardRef((a,i)=>{const{__scopeSelect:o,onAutoScroll:r,...f}=a,d=gl("SelectScrollButton",o),h=g.useRef(null),p=Jo(o),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),bt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),u.jsx(Qe.div,{"aria-hidden":!0,...f,ref:i,style:{flexShrink:0,...f.style},onPointerDown:We(f.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(r,50))}),onPointerMove:We(f.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(r,50))}),onPointerLeave:We(f.onPointerLeave,()=>{v()})})}),oC="SelectSeparator",rC=g.forwardRef((a,i)=>{const{__scopeSelect:o,...r}=a;return u.jsx(Qe.div,{"aria-hidden":!0,...r,ref:i})});rC.displayName=oC;var $u="SelectArrow",sC=g.forwardRef((a,i)=>{const{__scopeSelect:o,...r}=a,f=Io(o),d=vl($u,o),h=gl($u,o);return d.open&&h.position==="popper"?u.jsx(ZE,{...f,...r,ref:i}):null});sC.displayName=$u;var uC="SelectBubbleInput",dy=g.forwardRef(({__scopeSelect:a,value:i,...o},r)=>{const f=g.useRef(null),d=ut(r,f),h=$E(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(Qe.select,{...o,style:{...Lg,...o.style},ref:d,defaultValue:i})});dy.displayName=uC;function hy(a){return a===""||a===void 0}function my(a){const i=Ul(a),o=g.useRef(""),r=g.useRef(0),f=g.useCallback(h=>{const p=o.current+h;i(p),(function v(y){o.current=y,window.clearTimeout(r.current),y!==""&&(r.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{o.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[o,f,d]}function py(a,i,o){const f=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=o?a.indexOf(o):-1;let h=fC(a,Math.max(d,0));f.length===1&&(h=h.filter(y=>y!==o));const v=h.find(y=>y.textValue.toLowerCase().startsWith(f.toLowerCase()));return v!==o?v:void 0}function fC(a,i){return a.map((o,r)=>a[(i+r)%a.length])}var dC=Fg,vy=Qg,hC=Pg,mC=Jg,pC=Ig,gy=Wg,vC=ny,yy=iy,xy=oy,gC=ry,yC=uy;const Eo=dC,Co=hC,Bi=g.forwardRef(({className:a,children:i,...o},r)=>u.jsxs(vy,{ref:r,className:$e("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),...o,children:[i,u.jsx(mC,{asChild:!0,children:u.jsx(Jv,{className:"h-4 w-4 opacity-50"})})]}));Bi.displayName=vy.displayName;const ki=g.forwardRef(({className:a,children:i,position:o="popper",...r},f)=>u.jsx(pC,{children:u.jsx(gy,{ref:f,className:$e("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",o==="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:o,...r,children:u.jsx(vC,{className:$e("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));ki.displayName=gy.displayName;const xC=g.forwardRef(({className:a,...i},o)=>u.jsx(yy,{ref:o,className:$e("px-2 py-1.5 text-sm font-semibold",a),...i}));xC.displayName=yy.displayName;const _t=g.forwardRef(({className:a,children:i,...o},r)=>u.jsxs(xy,{ref:r,className:$e("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),...o,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(yC,{children:u.jsx(Ln,{className:"h-4 w-4"})})}),u.jsx(gC,{children:i})]}));_t.displayName=xy.displayName;const Ji="/api/admin";async function bC(){try{const a=await fetch(`${Ji}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function SC(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",o=await fetch(Ji+"/public-ip"+i);if(o.ok)return await o.json()}catch(i){console.error("Failed to get public ip check:",i)}return null}async function wC(a){try{return(await fetch(`${Ji}/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 EC(){try{return(await fetch(`${Ji}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function CC(){try{const a=await fetch(`${Ji}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const NC=["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 jC(){const[a,i]=g.useState({}),[o,r]=g.useState(null),[f,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,j]=g.useState(""),[D,w]=g.useState(!1),T=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",z=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",R=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=o?.status??"unknown",q=T==="local",P=!!a.XPOD_CLOUD_API_ENDPOINT,Y=q&&P;g.useEffect(()=>{le()},[]),g.useEffect(()=>{h||se(a.CSS_BASE_URL)},[a.CSS_BASE_URL,T,h]),g.useEffect(()=>{h||(Y?ne():d(null))},[Y,h]);const ne=async()=>{try{const L=await CC();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},le=async()=>{try{const L=await bC();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},se=async L=>{b(!0);try{const V=await SC(L);r(V)}catch(V){console.error("Failed to refresh public ip check:",V),r(null)}finally{b(!1)}},ue=async()=>{if(fe)return j(fe),!1;y(!0),j("");try{const L={};for(const ae of NC)ae in a&&(L[ae]=a[ae]);const V=await wC(L);return j(V?"配置已保存,需要重启服务生效":"保存失败"),!!V}catch{return j("保存失败"),!1}finally{y(!1)}},$=async()=>{j("正在重启服务..."),await EC()?(j("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):j("重启失败")},te=async()=>{await ue()&&await $()},ee=(L,V)=>{i(ae=>({...ae,[L]:V}))},fe=g.useMemo(()=>{if(z==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(z==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&f?.mode==="tunnel"&&z==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const V=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&V&&z==="none"&&R==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[f?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,R,Y,T,z]),_=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(Di,{variant:"bordered",className:"mb-6",children:[u.jsx(Mi,{children:u.jsx(Li,{children:"存储目录"})}),u.jsx(Ui,{className:"space-y-2",children:u.jsx(Mn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>ee("CSS_ROOT_FILE_PATH",L.target.value)})})]}),u.jsxs(Di,{variant:"bordered",className:"mb-6",children:[u.jsx(Mi,{children:u.jsx(Li,{children:"访问地址"})}),u.jsxs(Ui,{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Eo,{value:T,onValueChange:L=>ee("XPOD_DEPLOY_MODE",L),children:[u.jsx(Bi,{className:"w-36 shrink-0",children:u.jsx(Co,{})}),u.jsxs(ki,{children:[u.jsx(_t,{value:"local",children:"边缘部署"}),u.jsx(_t,{value:"standalone",children:"独立部署"})]})]}),Y?u.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:f?.fqdn||"(等待分配)"}):u.jsx(Mn,{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:T==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),u.jsxs(Di,{variant:"bordered",className:"mb-6",children:[u.jsx(Mi,{className:"pb-2",children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx(Li,{children:"隧道供应商"}),u.jsxs("span",{className:"text-sm",children:["外网:",u.jsx("span",{className:$e("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),u.jsxs(Ui,{className:"space-y-2",children:[Y&&f?.mode==="tunnel"?u.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,T==="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(Eo,{value:z,onValueChange:L=>ee("XPOD_TUNNEL_PROVIDER",L),children:[u.jsx(Bi,{className:"w-36 shrink-0",children:u.jsx(Co,{})}),u.jsxs(ki,{children:[u.jsx(_t,{value:"none",children:"不使用隧道"}),u.jsx(_t,{value:"cloudflare",children:"Cloudflare"}),u.jsx(_t,{value:"sakura_frp",children:"Sakura FRP"})]})]}),z==="cloudflare"&&u.jsx(Mn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>ee("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),z==="sakura_frp"&&u.jsx(Mn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>ee("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),T==="standalone"&&u.jsxs(Di,{variant:"bordered",className:"mb-6",children:[u.jsx(Mi,{children:u.jsx(Li,{children:"https证书"})}),u.jsx(Ui,{children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs(Eo,{value:R,onValueChange:L=>ee("XPOD_HTTPS_MODE",L),children:[u.jsx(Bi,{className:"w-36 shrink-0",children:u.jsx(Co,{})}),u.jsxs(ki,{children:[u.jsx(_t,{value:"none",children:"关闭"}),u.jsx(_t,{value:"acme",children:"自动申请 (ACME)"}),u.jsx(_t,{value:"manual",children:"手动证书"})]})]}),R==="manual"&&u.jsxs(u.Fragment,{children:[u.jsx(Mn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>ee("XPOD_HTTPS_CERT_PATH",L.target.value)}),u.jsx(Mn,{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(ju,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&u.jsxs(Di,{variant:"bordered",className:"mb-6",children:[u.jsx(Mi,{children:u.jsx(Li,{children:"高级设置"})}),u.jsxs(Ui,{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(go,{children:"端口"}),u.jsx(Mn,{value:a.CSS_PORT||"3000",onChange:L=>ee("CSS_PORT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(go,{children:"SPARQL 存储"}),u.jsx(Mn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>ee("CSS_SPARQL_ENDPOINT",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(go,{children:"身份数据库"}),u.jsx(Mn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>ee("CSS_IDENTITY_DB_URL",L.target.value)})]}),u.jsxs("div",{children:[u.jsx(go,{children:"日志级别"}),u.jsxs(Eo,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>ee("CSS_LOGGING_LEVEL",L),children:[u.jsx(Bi,{className:"w-40 shrink-0",children:u.jsx(Co,{})}),u.jsxs(ki,{children:[u.jsx(_t,{value:"error",children:"error"}),u.jsx(_t,{value:"warn",children:"warn"}),u.jsx(_t,{value:"info",children:"info"}),u.jsx(_t,{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(ju,{onClick:()=>{ue()},disabled:v||!!fe,children:v?"保存中...":"保存配置"}),u.jsx(ju,{variant:"secondary",onClick:()=>{te()},disabled:v||!!fe,children:"保存并重启"})]}),(C||fe)&&u.jsx("div",{className:$e("mt-4 text-sm",fe||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||fe})]})}function TC(){const{isInitializing:a,initError:i}=en();return a?u.jsx(tg,{}):i?u.jsx(y1,{message:i}):u.jsxs(Zb,{children:[u.jsx(Ot,{path:"/.account/",element:u.jsx(D1,{})}),u.jsx(Ot,{path:"/.account/about/",element:u.jsx(M1,{})}),u.jsx(Ot,{path:"/.account/account/",element:u.jsx(Gp,{allowOidcPending:!0,children:u.jsx(B1,{})})}),u.jsx(Ot,{path:"/.account/settings/",element:u.jsx(Gp,{allowOidcPending:!0,children:u.jsx(jC,{})})}),u.jsx(Ot,{path:"/chat/",element:u.jsx(P1,{})}),u.jsx(Ot,{path:"/.account/login/",element:u.jsx(V1,{})}),u.jsx(Ot,{path:"/.account/login/password/",element:u.jsx(Vu,{initialIsRegister:!1})}),u.jsx(Ot,{path:"/.account/login/password/register/",element:u.jsx(Vu,{initialIsRegister:!0})}),u.jsx(Ot,{path:"/.account/login/password/forgot/",element:u.jsx(Y1,{})}),u.jsx(Ot,{path:"/.account/login/password/reset/",element:u.jsx(q1,{})}),u.jsx(Ot,{path:"/.account/oidc/consent/",element:u.jsx(k1,{})}),u.jsx(Ot,{path:"*",element:u.jsx(Bn,{to:"/.account/",replace:!0})})]})}function AC(){return u.jsx(xS,{children:u.jsx(kS,{children:u.jsx(TC,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}Ix.createRoot(document.getElementById("root")).render(u.jsx(It.StrictMode,{children:u.jsx(AC,{})}));
|
|
51
|
+
`)},k2=0,ja=[];function Y2(a){var i=g.useRef([]),r=g.useRef([0,0]),o=g.useRef(),u=g.useState(k2++)[0],d=g.useState(qg)[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(u));var w=r2([a.lockRef.current],(a.shards||[]).map(Cv),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[a.inert,a.lockRef.current,a.shards]);var p=g.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var z=Sr(w),R=r.current,M="deltaX"in w?w.deltaX:R[0]-z[0],q="deltaY"in w?w.deltaY:R[1]-z[1],Q,P=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&P.type==="range")return!1;var ne=window.getSelection(),le=ne&&ne.anchorNode,se=le?le===P||le.contains(P):!1;if(se)return!1;var ue=wv(Y,P);if(!ue)return!0;if(ue?Q=Y:(Q=Y==="v"?"h":"v",ue=wv(Y,P)),!ue)return!1;if(!o.current&&"changedTouches"in w&&(M||q)&&(o.current=Q),!Q)return!0;var $=o.current||Q;return U2($,T,w,$==="h"?M:q)},[]),v=g.useCallback(function(w){var T=w;if(!(!ja.length||ja[ja.length-1]!==d)){var z="deltaY"in T?Ev(T):Sr(T),R=i.current.filter(function(Q){return Q.name===T.type&&(Q.target===T.target||T.target===Q.shadowParent)&&H2(Q.delta,z)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var M=(h.current.shards||[]).map(Cv).filter(Boolean).filter(function(Q){return Q.contains(T.target)}),q=M.length>0?p(T,M[0]):!h.current.noIsolation;q&&T.cancelable&&T.preventDefault()}}},[]),y=g.useCallback(function(w,T,z,R){var M={name:w,delta:T,target:z,should:R,shadowParent:q2(z)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),S=g.useCallback(function(w){r.current=Sr(w),o.current=void 0},[]),b=g.useCallback(function(w){y(w.type,Ev(w),w.target,p(w,a.lockRef.current))},[]),C=g.useCallback(function(w){y(w.type,Sr(w),w.target,p(w,a.lockRef.current))},[]);g.useEffect(function(){return ja.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",v,Na),document.addEventListener("touchmove",v,Na),document.addEventListener("touchstart",S,Na),function(){ja=ja.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,Na),document.removeEventListener("touchmove",v,Na),document.removeEventListener("touchstart",S,Na)}},[]);var j=a.removeScrollBar,D=a.inert;return g.createElement(g.Fragment,null,D?g.createElement(d,{styles:B2(u)}):null,j?g.createElement(R2,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function q2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const V2=v2(Yg,Y2);var Fg=g.forwardRef(function(a,i){return g.createElement(Qr,rn({},a,{ref:i,sideCar:V2}))});Fg.classNames=Qr.classNames;var X2=[" ","Enter","ArrowUp","ArrowDown"],G2=[" ","Enter"],Bl="Select",[Zr,Pr,F2]=lw(Bl),[Ha]=mf(Bl,[F2,jg]),Jr=jg(),[K2,vl]=Ha(Bl),[Q2,Z2]=Ha(Bl),Kg=a=>{const{__scopeSelect:i,children:r,open:o,defaultOpen:u,onOpenChange:d,value:h,defaultValue:p,onValueChange:v,dir:y,name:S,autoComplete:b,disabled:C,required:j,form:D}=a,w=Jr(i),[T,z]=g.useState(null),[R,M]=g.useState(null),[q,Q]=g.useState(!1),P=iw(y),[Y,ne]=xv({prop:o,defaultProp:u??!1,onChange:d,caller:Bl}),[le,se]=xv({prop:h,defaultProp:p,onChange:v,caller:Bl}),ue=g.useRef(null),$=T?D||!!T.closest("form"):!0,[te,ee]=g.useState(new Set),fe=Array.from(te).map(_=>_.props.value).join(";");return f.jsx(KE,{...w,children:f.jsxs(K2,{required:j,scope:i,trigger:T,onTriggerChange:z,valueNode:R,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:pf(),value:le,onValueChange:se,open:Y,onOpenChange:ne,dir:P,triggerPointerDownPosRef:ue,disabled:C,children:[f.jsx(Zr.Provider,{scope:i,children:f.jsx(Q2,{scope:a.__scopeSelect,onNativeOptionAdd:g.useCallback(_=>{ee(L=>new Set(L).add(_))},[]),onNativeOptionRemove:g.useCallback(_=>{ee(L=>{const V=new Set(L);return V.delete(_),V})},[]),children:r})}),$?f.jsxs(hy,{"aria-hidden":!0,required:j,tabIndex:-1,name:S,autoComplete:b,value:le,onChange:_=>se(_.target.value),disabled:C,form:D,children:[le===void 0?f.jsx("option",{value:""}):null,Array.from(te)]},fe):null]})})};Kg.displayName=Bl;var Qg="SelectTrigger",Zg=g.forwardRef((a,i)=>{const{__scopeSelect:r,disabled:o=!1,...u}=a,d=Jr(r),h=vl(Qg,r),p=h.disabled||o,v=ut(i,h.onTriggerChange),y=Pr(r),S=g.useRef("touch"),[b,C,j]=py(w=>{const T=y().filter(M=>!M.disabled),z=T.find(M=>M.value===h.value),R=vy(T,w,z);R!==void 0&&h.onValueChange(R.value)}),D=w=>{p||(h.onOpenChange(!0),j()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return f.jsx(QE,{asChild:!0,...d,children:f.jsx(Qe.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":my(h.value)?"":void 0,...u,ref:v,onClick:We(u.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&D(w)}),onPointerDown:We(u.onPointerDown,w=>{S.current=w.pointerType;const T=w.target;T.hasPointerCapture(w.pointerId)&&T.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:We(u.onKeyDown,w=>{const T=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(T&&w.key===" ")&&X2.includes(w.key)&&(D(),w.preventDefault())})})})});Zg.displayName=Qg;var Pg="SelectValue",Jg=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:o,style:u,children:d,placeholder:h="",...p}=a,v=vl(Pg,r),{onValueNodeHasChildrenChange:y}=v,S=d!==void 0,b=ut(i,v.onValueNodeChange);return bt(()=>{y(S)},[y,S]),f.jsx(Qe.span,{...p,ref:b,style:{pointerEvents:"none"},children:my(v.value)?f.jsx(f.Fragment,{children:h}):d})});Jg.displayName=Pg;var P2="SelectIcon",Ig=g.forwardRef((a,i)=>{const{__scopeSelect:r,children:o,...u}=a;return f.jsx(Qe.span,{"aria-hidden":!0,...u,ref:i,children:o||"▼"})});Ig.displayName=P2;var J2="SelectPortal",Wg=a=>f.jsx(Lg,{asChild:!0,...a});Wg.displayName=J2;var kl="SelectContent",$g=g.forwardRef((a,i)=>{const r=vl(kl,a.__scopeSelect),[o,u]=g.useState();if(bt(()=>{u(new DocumentFragment)},[]),!r.open){const d=o;return d?Qi.createPortal(f.jsx(ey,{scope:a.__scopeSelect,children:f.jsx(Zr.Slot,{scope:a.__scopeSelect,children:f.jsx("div",{children:a.children})})}),d):null}return f.jsx(ty,{...a,ref:i})});$g.displayName=kl;var Jt=10,[ey,gl]=Ha(kl),I2="SelectContentImpl",W2=Dr("SelectContent.RemoveScroll"),ty=g.forwardRef((a,i)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:T,...z}=a,R=vl(kl,r),[M,q]=g.useState(null),[Q,P]=g.useState(null),Y=ut(i,J=>q(J)),[ne,le]=g.useState(null),[se,ue]=g.useState(null),$=Pr(r),[te,ee]=g.useState(!1),fe=g.useRef(!1);g.useEffect(()=>{if(M)return c2(M)},[M]),vw();const _=g.useCallback(J=>{const[me,...I]=$().map(Ne=>Ne.ref.current),[ie]=I.slice(-1),ge=document.activeElement;for(const Ne of J)if(Ne===ge||(Ne?.scrollIntoView({block:"nearest"}),Ne===me&&Q&&(Q.scrollTop=0),Ne===ie&&Q&&(Q.scrollTop=Q.scrollHeight),Ne?.focus(),document.activeElement!==ge))return},[$,Q]),L=g.useCallback(()=>_([ne,M]),[_,ne,M]);g.useEffect(()=>{te&&L()},[te,L]);const{onOpenChange:V,triggerPointerDownPosRef:ae}=R;g.useEffect(()=>{if(M){let J={x:0,y:0};const me=ie=>{J={x:Math.abs(Math.round(ie.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(ie.pageY)-(ae.current?.y??0))}},I=ie=>{J.x<=10&&J.y<=10?ie.preventDefault():M.contains(ie.target)||V(!1),document.removeEventListener("pointermove",me),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",I,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",I,{capture:!0})}}},[M,V,ae]),g.useEffect(()=>{const J=()=>V(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[V]);const[ve,N]=py(J=>{const me=$().filter(ge=>!ge.disabled),I=me.find(ge=>ge.ref.current===document.activeElement),ie=vy(me,J,I);ie&&setTimeout(()=>ie.ref.current.focus())}),G=g.useCallback((J,me,I)=>{const ie=!fe.current&&!I;(R.value!==void 0&&R.value===me||ie)&&(le(J),ie&&(fe.current=!0))},[R.value]),Z=g.useCallback(()=>M?.focus(),[M]),W=g.useCallback((J,me,I)=>{const ie=!fe.current&&!I;(R.value!==void 0&&R.value===me||ie)&&ue(J)},[R.value]),re=o==="popper"?Pu:ny,he=re===Pu?{side:p,sideOffset:v,align:y,alignOffset:S,arrowPadding:b,collisionBoundary:C,collisionPadding:j,sticky:D,hideWhenDetached:w,avoidCollisions:T}:{};return f.jsx(ey,{scope:r,content:M,viewport:Q,onViewportChange:P,itemRefCallback:G,selectedItem:ne,onItemLeave:Z,itemTextRefCallback:W,focusSelectedItem:L,selectedItemText:se,position:o,isPositioned:te,searchRef:ve,children:f.jsx(Fg,{as:W2,allowPinchZoom:!0,children:f.jsx(fg,{asChild:!0,trapped:R.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:We(u,J=>{R.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:f.jsx(sg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:f.jsx(re,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:J=>J.preventDefault(),...z,...he,onPlaced:()=>ee(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...z.style},onKeyDown:We(z.onKeyDown,J=>{const me=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!me&&J.key.length===1&&N(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ie=$().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);if(["ArrowUp","End"].includes(J.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const ge=J.target,Ne=ie.indexOf(ge);ie=ie.slice(Ne+1)}setTimeout(()=>_(ie)),J.preventDefault()}})})})})})})});ty.displayName=I2;var $2="SelectItemAlignedPosition",ny=g.forwardRef((a,i)=>{const{__scopeSelect:r,onPlaced:o,...u}=a,d=vl(kl,r),h=gl(kl,r),[p,v]=g.useState(null),[y,S]=g.useState(null),b=ut(i,Y=>S(Y)),C=Pr(r),j=g.useRef(!1),D=g.useRef(!0),{viewport:w,selectedItem:T,selectedItemText:z,focusSelectedItem:R}=h,M=g.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&T&&z){const Y=d.trigger.getBoundingClientRect(),ne=y.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),se=z.getBoundingClientRect();if(d.dir!=="rtl"){const ge=se.left-ne.left,Ne=le.left-ge,Ye=Y.left-Ne,tt=Y.width+Ye,pn=Math.max(tt,ne.width),nt=window.innerWidth-Jt,tn=$p(Ne,[Jt,Math.max(Jt,nt-pn)]);p.style.minWidth=tt+"px",p.style.left=tn+"px"}else{const ge=ne.right-se.right,Ne=window.innerWidth-le.right-ge,Ye=window.innerWidth-Y.right-Ne,tt=Y.width+Ye,pn=Math.max(tt,ne.width),nt=window.innerWidth-Jt,tn=$p(Ne,[Jt,Math.max(Jt,nt-pn)]);p.style.minWidth=tt+"px",p.style.right=tn+"px"}const ue=C(),$=window.innerHeight-Jt*2,te=w.scrollHeight,ee=window.getComputedStyle(y),fe=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),L=parseInt(ee.borderBottomWidth,10),V=parseInt(ee.paddingBottom,10),ae=fe+_+te+V+L,ve=Math.min(T.offsetHeight*5,ae),N=window.getComputedStyle(w),G=parseInt(N.paddingTop,10),Z=parseInt(N.paddingBottom,10),W=Y.top+Y.height/2-Jt,re=$-W,he=T.offsetHeight/2,J=T.offsetTop+he,me=fe+_+J,I=ae-me;if(me<=W){const ge=ue.length>0&&T===ue[ue.length-1].ref.current;p.style.bottom="0px";const Ne=y.clientHeight-w.offsetTop-w.offsetHeight,Ye=Math.max(re,he+(ge?Z:0)+Ne+L),tt=me+Ye;p.style.height=tt+"px"}else{const ge=ue.length>0&&T===ue[0].ref.current;p.style.top="0px";const Ye=Math.max(W,fe+w.offsetTop+(ge?G:0)+he)+I;p.style.height=Ye+"px",w.scrollTop=me-W+w.offsetTop}p.style.margin=`${Jt}px 0`,p.style.minHeight=ve+"px",p.style.maxHeight=$+"px",o?.(),requestAnimationFrame(()=>j.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,T,z,d.dir,o]);bt(()=>M(),[M]);const[q,Q]=g.useState();bt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const P=g.useCallback(Y=>{Y&&D.current===!0&&(M(),R?.(),D.current=!1)},[M,R]);return f.jsx(tC,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:j,onScrollButtonChange:P,children:f.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:f.jsx(Qe.div,{...u,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});ny.displayName=$2;var eC="SelectPopperPosition",Pu=g.forwardRef((a,i)=>{const{__scopeSelect:r,align:o="start",collisionPadding:u=Jt,...d}=a,h=Jr(r);return f.jsx(ZE,{...h,...d,ref:i,align:o,collisionPadding:u,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)"}})});Pu.displayName=eC;var[tC,Cf]=Ha(kl,{}),Ju="SelectViewport",ly=g.forwardRef((a,i)=>{const{__scopeSelect:r,nonce:o,...u}=a,d=gl(Ju,r),h=Cf(Ju,r),p=ut(i,d.onViewportChange),v=g.useRef(0);return f.jsxs(f.Fragment,{children:[f.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:o}),f.jsx(Zr.Slot,{scope:r,children:f.jsx(Qe.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:We(u.onScroll,y=>{const S=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const j=Math.abs(v.current-S.scrollTop);if(j>0){const D=window.innerHeight-Jt*2,w=parseFloat(b.style.minHeight),T=parseFloat(b.style.height),z=Math.max(w,T);if(z<D){const R=z+j,M=Math.min(D,R),q=R-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})})})]})});ly.displayName=Ju;var ay="SelectGroup",[nC,lC]=Ha(ay),aC=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a,u=pf();return f.jsx(nC,{scope:r,id:u,children:f.jsx(Qe.div,{role:"group","aria-labelledby":u,...o,ref:i})})});aC.displayName=ay;var iy="SelectLabel",cy=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a,u=lC(iy,r);return f.jsx(Qe.div,{id:u.id,...o,ref:i})});cy.displayName=iy;var Br="SelectItem",[iC,ry]=Ha(Br),oy=g.forwardRef((a,i)=>{const{__scopeSelect:r,value:o,disabled:u=!1,textValue:d,...h}=a,p=vl(Br,r),v=gl(Br,r),y=p.value===o,[S,b]=g.useState(d??""),[C,j]=g.useState(!1),D=ut(i,R=>v.itemRefCallback?.(R,o,u)),w=pf(),T=g.useRef("touch"),z=()=>{u||(p.onValueChange(o),p.onOpenChange(!1))};if(o==="")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 f.jsx(iC,{scope:r,value:o,disabled:u,textId:w,isSelected:y,onItemTextChange:g.useCallback(R=>{b(M=>M||(R?.textContent??"").trim())},[]),children:f.jsx(Zr.ItemSlot,{scope:r,value:o,disabled:u,textValue:S,children:f.jsx(Qe.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...h,ref:D,onFocus:We(h.onFocus,()=>j(!0)),onBlur:We(h.onBlur,()=>j(!1)),onClick:We(h.onClick,()=>{T.current!=="mouse"&&z()}),onPointerUp:We(h.onPointerUp,()=>{T.current==="mouse"&&z()}),onPointerDown:We(h.onPointerDown,R=>{T.current=R.pointerType}),onPointerMove:We(h.onPointerMove,R=>{T.current=R.pointerType,u?v.onItemLeave?.():T.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:We(h.onPointerLeave,R=>{R.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:We(h.onKeyDown,R=>{v.searchRef?.current!==""&&R.key===" "||(G2.includes(R.key)&&z(),R.key===" "&&R.preventDefault())})})})})});oy.displayName=Br;var Hi="SelectItemText",sy=g.forwardRef((a,i)=>{const{__scopeSelect:r,className:o,style:u,...d}=a,h=vl(Hi,r),p=gl(Hi,r),v=ry(Hi,r),y=Z2(Hi,r),[S,b]=g.useState(null),C=ut(i,z=>b(z),v.onItemTextChange,z=>p.itemTextRefCallback?.(z,v.value,v.disabled)),j=S?.textContent,D=g.useMemo(()=>f.jsx("option",{value:v.value,disabled:v.disabled,children:j},v.value),[v.disabled,v.value,j]),{onNativeOptionAdd:w,onNativeOptionRemove:T}=y;return bt(()=>(w(D),()=>T(D)),[w,T,D]),f.jsxs(f.Fragment,{children:[f.jsx(Qe.span,{id:v.textId,...d,ref:C}),v.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Qi.createPortal(d.children,h.valueNode):null]})});sy.displayName=Hi;var uy="SelectItemIndicator",fy=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a;return ry(uy,r).isSelected?f.jsx(Qe.span,{"aria-hidden":!0,...o,ref:i}):null});fy.displayName=uy;var Iu="SelectScrollUpButton",cC=g.forwardRef((a,i)=>{const r=gl(Iu,a.__scopeSelect),o=Cf(Iu,a.__scopeSelect),[u,d]=g.useState(!1),h=ut(i,o.onScrollButtonChange);return bt(()=>{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]),u?f.jsx(dy,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop-v.offsetHeight)}}):null});cC.displayName=Iu;var Wu="SelectScrollDownButton",rC=g.forwardRef((a,i)=>{const r=gl(Wu,a.__scopeSelect),o=Cf(Wu,a.__scopeSelect),[u,d]=g.useState(!1),h=ut(i,o.onScrollButtonChange);return bt(()=>{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]),u?f.jsx(dy,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:v}=r;p&&v&&(p.scrollTop=p.scrollTop+v.offsetHeight)}}):null});rC.displayName=Wu;var dy=g.forwardRef((a,i)=>{const{__scopeSelect:r,onAutoScroll:o,...u}=a,d=gl("SelectScrollButton",r),h=g.useRef(null),p=Pr(r),v=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),bt(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),f.jsx(Qe.div,{"aria-hidden":!0,...u,ref:i,style:{flexShrink:0,...u.style},onPointerDown:We(u.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(o,50))}),onPointerMove:We(u.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(o,50))}),onPointerLeave:We(u.onPointerLeave,()=>{v()})})}),oC="SelectSeparator",sC=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a;return f.jsx(Qe.div,{"aria-hidden":!0,...o,ref:i})});sC.displayName=oC;var $u="SelectArrow",uC=g.forwardRef((a,i)=>{const{__scopeSelect:r,...o}=a,u=Jr(r),d=vl($u,r),h=gl($u,r);return d.open&&h.position==="popper"?f.jsx(PE,{...u,...o,ref:i}):null});uC.displayName=$u;var fC="SelectBubbleInput",hy=g.forwardRef(({__scopeSelect:a,value:i,...r},o)=>{const u=g.useRef(null),d=ut(o,u),h=e2(i);return g.useEffect(()=>{const p=u.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]),f.jsx(Qe.select,{...r,style:{...Ug,...r.style},ref:d,defaultValue:i})});hy.displayName=fC;function my(a){return a===""||a===void 0}function py(a){const i=Ul(a),r=g.useRef(""),o=g.useRef(0),u=g.useCallback(h=>{const p=r.current+h;i(p),(function v(y){r.current=y,window.clearTimeout(o.current),y!==""&&(o.current=window.setTimeout(()=>v(""),1e3))})(p)},[i]),d=g.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,u,d]}function vy(a,i,r){const u=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=r?a.indexOf(r):-1;let h=dC(a,Math.max(d,0));u.length===1&&(h=h.filter(y=>y!==r));const v=h.find(y=>y.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==r?v:void 0}function dC(a,i){return a.map((r,o)=>a[(i+o)%a.length])}var hC=Kg,gy=Zg,mC=Jg,pC=Ig,vC=Wg,yy=$g,gC=ly,xy=cy,by=oy,yC=sy,xC=fy;const wr=hC,Er=mC,Bi=g.forwardRef(({className:a,children:i,...r},o)=>f.jsxs(gy,{ref:o,className:$e("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,f.jsx(pC,{asChild:!0,children:f.jsx(Jv,{className:"h-4 w-4 opacity-50"})})]}));Bi.displayName=gy.displayName;const ki=g.forwardRef(({className:a,children:i,position:r="popper",...o},u)=>f.jsx(vC,{children:f.jsx(yy,{ref:u,className:$e("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,...o,children:f.jsx(gC,{className:$e("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));ki.displayName=yy.displayName;const bC=g.forwardRef(({className:a,...i},r)=>f.jsx(xy,{ref:r,className:$e("px-2 py-1.5 text-sm font-semibold",a),...i}));bC.displayName=xy.displayName;const _t=g.forwardRef(({className:a,children:i,...r},o)=>f.jsxs(by,{ref:o,className:$e("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:[f.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(xC,{children:f.jsx(Ln,{className:"h-4 w-4"})})}),f.jsx(yC,{children:i})]}));_t.displayName=by.displayName;const Ji="/api/admin";async function SC(){try{const a=await fetch(`${Ji}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function wC(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",r=await fetch(Ji+"/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 EC(a){try{return(await fetch(`${Ji}/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 CC(){try{return(await fetch(`${Ji}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function NC(){try{const a=await fetch(`${Ji}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const jC=["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 TC(){const[a,i]=g.useState({}),[r,o]=g.useState(null),[u,d]=g.useState(null),[h,p]=g.useState(!0),[v,y]=g.useState(!1),[S,b]=g.useState(!1),[C,j]=g.useState(""),[D,w]=g.useState(!1),T=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",z=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",R=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=r?.status??"unknown",q=T==="local",P=!!a.XPOD_CLOUD_API_ENDPOINT,Y=q&&P;g.useEffect(()=>{le()},[]),g.useEffect(()=>{h||se(a.CSS_BASE_URL)},[a.CSS_BASE_URL,T,h]),g.useEffect(()=>{h||(Y?ne():d(null))},[Y,h]);const ne=async()=>{try{const L=await NC();d(L)}catch(L){console.error("Failed to load ddns status:",L),d(null)}},le=async()=>{try{const L=await SC();L&&i({...L.env})}catch(L){console.error("Failed to load config:",L)}finally{p(!1)}},se=async L=>{b(!0);try{const V=await wC(L);o(V)}catch(V){console.error("Failed to refresh public ip check:",V),o(null)}finally{b(!1)}},ue=async()=>{if(fe)return j(fe),!1;y(!0),j("");try{const L={};for(const ae of jC)ae in a&&(L[ae]=a[ae]);const V=await EC(L);return j(V?"配置已保存,需要重启服务生效":"保存失败"),!!V}catch{return j("保存失败"),!1}finally{y(!1)}},$=async()=>{j("正在重启服务..."),await CC()?(j("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):j("重启失败")},te=async()=>{await ue()&&await $()},ee=(L,V)=>{i(ae=>({...ae,[L]:V}))},fe=g.useMemo(()=>{if(z==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(z==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&u?.mode==="tunnel"&&z==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const V=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&V&&z==="none"&&R==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[u?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,R,Y,T,z]),_=g.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?f.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):f.jsxs("div",{className:"p-8 max-w-4xl",children:[f.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),f.jsxs(Di,{variant:"bordered",className:"mb-6",children:[f.jsx(Mi,{children:f.jsx(Li,{children:"存储目录"})}),f.jsx(Ui,{className:"space-y-2",children:f.jsx(Mn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:L=>ee("CSS_ROOT_FILE_PATH",L.target.value)})})]}),f.jsxs(Di,{variant:"bordered",className:"mb-6",children:[f.jsx(Mi,{children:f.jsx(Li,{children:"访问地址"})}),f.jsxs(Ui,{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(wr,{value:T,onValueChange:L=>ee("XPOD_DEPLOY_MODE",L),children:[f.jsx(Bi,{className:"w-36 shrink-0",children:f.jsx(Er,{})}),f.jsxs(ki,{children:[f.jsx(_t,{value:"local",children:"边缘部署"}),f.jsx(_t,{value:"standalone",children:"独立部署"})]})]}),Y?f.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:u?.fqdn||"(等待分配)"}):f.jsx(Mn,{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"})]}),f.jsx("div",{className:"text-xs text-muted-foreground",children:T==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),f.jsxs(Di,{variant:"bordered",className:"mb-6",children:[f.jsx(Mi,{className:"pb-2",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Li,{children:"隧道供应商"}),f.jsxs("span",{className:"text-sm",children:["外网:",f.jsx("span",{className:$e("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),f.jsxs(Ui,{className:"space-y-2",children:[Y&&u?.mode==="tunnel"?f.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,T==="standalone"?f.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(wr,{value:z,onValueChange:L=>ee("XPOD_TUNNEL_PROVIDER",L),children:[f.jsx(Bi,{className:"w-36 shrink-0",children:f.jsx(Er,{})}),f.jsxs(ki,{children:[f.jsx(_t,{value:"none",children:"不使用隧道"}),f.jsx(_t,{value:"cloudflare",children:"Cloudflare"}),f.jsx(_t,{value:"sakura_frp",children:"Sakura FRP"})]})]}),z==="cloudflare"&&f.jsx(Mn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:L=>ee("CLOUDFLARE_TUNNEL_TOKEN",L.target.value)}),z==="sakura_frp"&&f.jsx(Mn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:L=>ee("SAKURA_TUNNEL_TOKEN",L.target.value)})]})]})]}),T==="standalone"&&f.jsxs(Di,{variant:"bordered",className:"mb-6",children:[f.jsx(Mi,{children:f.jsx(Li,{children:"https证书"})}),f.jsx(Ui,{children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(wr,{value:R,onValueChange:L=>ee("XPOD_HTTPS_MODE",L),children:[f.jsx(Bi,{className:"w-36 shrink-0",children:f.jsx(Er,{})}),f.jsxs(ki,{children:[f.jsx(_t,{value:"none",children:"关闭"}),f.jsx(_t,{value:"acme",children:"自动申请 (ACME)"}),f.jsx(_t,{value:"manual",children:"手动证书"})]})]}),R==="manual"&&f.jsxs(f.Fragment,{children:[f.jsx(Mn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:L=>ee("XPOD_HTTPS_CERT_PATH",L.target.value)}),f.jsx(Mn,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:L=>ee("XPOD_HTTPS_KEY_PATH",L.target.value)})]})]})})]}),f.jsx("div",{className:"mb-6",children:f.jsx(ju,{variant:"ghost",size:"sm",onClick:()=>w(L=>!L),children:D?"收起高级设置":"展开高级设置"})}),D&&f.jsxs(Di,{variant:"bordered",className:"mb-6",children:[f.jsx(Mi,{children:f.jsx(Li,{children:"高级设置"})}),f.jsxs(Ui,{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx(vr,{children:"端口"}),f.jsx(Mn,{value:a.CSS_PORT||"3000",onChange:L=>ee("CSS_PORT",L.target.value)})]}),f.jsxs("div",{children:[f.jsx(vr,{children:"SPARQL 存储"}),f.jsx(Mn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:L=>ee("CSS_SPARQL_ENDPOINT",L.target.value)})]}),f.jsxs("div",{children:[f.jsx(vr,{children:"身份数据库"}),f.jsx(Mn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:L=>ee("CSS_IDENTITY_DB_URL",L.target.value)})]}),f.jsxs("div",{children:[f.jsx(vr,{children:"日志级别"}),f.jsxs(wr,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:L=>ee("CSS_LOGGING_LEVEL",L),children:[f.jsx(Bi,{className:"w-40 shrink-0",children:f.jsx(Er,{})}),f.jsxs(ki,{children:[f.jsx(_t,{value:"error",children:"error"}),f.jsx(_t,{value:"warn",children:"warn"}),f.jsx(_t,{value:"info",children:"info"}),f.jsx(_t,{value:"debug",children:"debug"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.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"}),f.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx(ju,{onClick:()=>{ue()},disabled:v||!!fe,children:v?"保存中...":"保存配置"}),f.jsx(ju,{variant:"secondary",onClick:()=>{te()},disabled:v||!!fe,children:"保存并重启"})]}),(C||fe)&&f.jsx("div",{className:$e("mt-4 text-sm",fe||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||fe})]})}function AC(){const{isInitializing:a,initError:i}=en();return a?f.jsx(tg,{}):i?f.jsx(x1,{message:i}):f.jsxs(Pb,{children:[f.jsx(Ot,{path:"/.account/",element:f.jsx(M1,{})}),f.jsx(Ot,{path:"/.account/about/",element:f.jsx(L1,{})}),f.jsx(Ot,{path:"/.account/account/",element:f.jsx(Gp,{allowOidcPending:!0,children:f.jsx(k1,{})})}),f.jsx(Ot,{path:"/.account/settings/",element:f.jsx(Gp,{allowOidcPending:!0,children:f.jsx(TC,{})})}),f.jsx(Ot,{path:"/chat/",element:f.jsx(J1,{})}),f.jsx(Ot,{path:"/.account/login/",element:f.jsx(X1,{})}),f.jsx(Ot,{path:"/.account/login/password/",element:f.jsx(Vu,{initialIsRegister:!1})}),f.jsx(Ot,{path:"/.account/login/password/register/",element:f.jsx(Vu,{initialIsRegister:!0})}),f.jsx(Ot,{path:"/.account/login/password/forgot/",element:f.jsx(q1,{})}),f.jsx(Ot,{path:"/.account/login/password/reset/",element:f.jsx(V1,{})}),f.jsx(Ot,{path:"/.account/oidc/consent/",element:f.jsx(Y1,{})}),f.jsx(Ot,{path:"*",element:f.jsx(Bn,{to:"/.account/",replace:!0})})]})}function RC(){return f.jsx(bS,{children:f.jsx(YS,{children:f.jsx(AC,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}Wx.createRoot(document.getElementById("root")).render(f.jsx(It.StrictMode,{children:f.jsx(RC,{})}));
|