12 lines
402 KiB
JavaScript
12 lines
402 KiB
JavaScript
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const g of h)if(g.type==="childList")for(const M of g.addedNodes)M.tagName==="LINK"&&M.rel==="modulepreload"&&o(M)}).observe(document,{childList:!0,subtree:!0});function c(h){const g={};return h.integrity&&(g.integrity=h.integrity),h.referrerPolicy&&(g.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?g.credentials="include":h.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function o(h){if(h.ep)return;h.ep=!0;const g=c(h);fetch(h.href,g)}})();var Yc={exports:{}},Hn={};var Nh;function Zg(){if(Nh)return Hn;Nh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,h,g){var M=null;if(g!==void 0&&(M=""+g),h.key!==void 0&&(M=""+h.key),"key"in h){g={};for(var H in h)H!=="key"&&(g[H]=h[H])}else g=h;return h=g.ref,{$$typeof:u,type:o,key:M,ref:h!==void 0?h:null,props:g}}return Hn.Fragment=s,Hn.jsx=c,Hn.jsxs=c,Hn}var Sh;function Kg(){return Sh||(Sh=1,Yc.exports=Zg()),Yc.exports}var l=Kg(),Jc={exports:{}},me={};var kh;function Wg(){if(kh)return me;kh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),M=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),V=Symbol.iterator;function J(m){return m===null||typeof m!="object"?null:(m=V&&m[V]||m["@@iterator"],typeof m=="function"?m:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,he={};function ie(m,S,L){this.props=m,this.context=S,this.refs=he,this.updater=L||P}ie.prototype.isReactComponent={},ie.prototype.setState=function(m,S){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,S,"setState")},ie.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function ne(){}ne.prototype=ie.prototype;function Y(m,S,L){this.props=m,this.context=S,this.refs=he,this.updater=L||P}var K=Y.prototype=new ne;K.constructor=Y,X(K,ie.prototype),K.isPureReactComponent=!0;var ee=Array.isArray;function Z(){}var D={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function de(m,S,L){var G=L.ref;return{$$typeof:u,type:m,key:S,ref:G!==void 0?G:null,props:L}}function te(m,S){return de(m.type,S,m.props)}function oe(m){return typeof m=="object"&&m!==null&&m.$$typeof===u}function ue(m){var S={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(L){return S[L]})}var Ae=/\/+/g;function Ne(m,S){return typeof m=="object"&&m!==null&&m.key!=null?ue(""+m.key):S.toString(36)}function le(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(Z,Z):(m.status="pending",m.then(function(S){m.status==="pending"&&(m.status="fulfilled",m.value=S)},function(S){m.status==="pending"&&(m.status="rejected",m.reason=S)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function v(m,S,L,G,ce){var re=typeof m;(re==="undefined"||re==="boolean")&&(m=null);var _e=!1;if(m===null)_e=!0;else switch(re){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(m.$$typeof){case u:case s:_e=!0;break;case B:return _e=m._init,v(_e(m._payload),S,L,G,ce)}}if(_e)return ce=ce(m),_e=G===""?"."+Ne(m,0):G,ee(ce)?(L="",_e!=null&&(L=_e.replace(Ae,"$&/")+"/"),v(ce,S,L,"",function(Ql){return Ql})):ce!=null&&(oe(ce)&&(ce=te(ce,L+(ce.key==null||m&&m.key===ce.key?"":(""+ce.key).replace(Ae,"$&/")+"/")+_e)),S.push(ce)),1;_e=0;var it=G===""?".":G+":";if(ee(m))for(var Be=0;Be<m.length;Be++)G=m[Be],re=it+Ne(G,Be),_e+=v(G,S,L,re,ce);else if(Be=J(m),typeof Be=="function")for(m=Be.call(m),Be=0;!(G=m.next()).done;)G=G.value,re=it+Ne(G,Be++),_e+=v(G,S,L,re,ce);else if(re==="object"){if(typeof m.then=="function")return v(le(m),S,L,G,ce);throw S=String(m),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return _e}function E(m,S,L){if(m==null)return m;var G=[],ce=0;return v(m,G,"","",function(re){return S.call(L,re,ce++)}),G}function b(m){if(m._status===-1){var S=m._result;S=S(),S.then(function(L){(m._status===0||m._status===-1)&&(m._status=1,m._result=L)},function(L){(m._status===0||m._status===-1)&&(m._status=2,m._result=L)}),m._status===-1&&(m._status=0,m._result=S)}if(m._status===1)return m._result.default;throw m._result}var q=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},F={map:E,forEach:function(m,S,L){E(m,function(){S.apply(this,arguments)},L)},count:function(m){var S=0;return E(m,function(){S++}),S},toArray:function(m){return E(m,function(S){return S})||[]},only:function(m){if(!oe(m))throw Error("React.Children.only expected to receive a single React element child.");return m}};return me.Activity=T,me.Children=F,me.Component=ie,me.Fragment=c,me.Profiler=h,me.PureComponent=Y,me.StrictMode=o,me.Suspense=R,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,me.__COMPILER_RUNTIME={__proto__:null,c:function(m){return D.H.useMemoCache(m)}},me.cache=function(m){return function(){return m.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(m,S,L){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var G=X({},m.props),ce=m.key;if(S!=null)for(re in S.key!==void 0&&(ce=""+S.key),S)!$.call(S,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&S.ref===void 0||(G[re]=S[re]);var re=arguments.length-2;if(re===1)G.children=L;else if(1<re){for(var _e=Array(re),it=0;it<re;it++)_e[it]=arguments[it+2];G.children=_e}return de(m.type,ce,G)},me.createContext=function(m){return m={$$typeof:M,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:g,_context:m},m},me.createElement=function(m,S,L){var G,ce={},re=null;if(S!=null)for(G in S.key!==void 0&&(re=""+S.key),S)$.call(S,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(ce[G]=S[G]);var _e=arguments.length-2;if(_e===1)ce.children=L;else if(1<_e){for(var it=Array(_e),Be=0;Be<_e;Be++)it[Be]=arguments[Be+2];ce.children=it}if(m&&m.defaultProps)for(G in _e=m.defaultProps,_e)ce[G]===void 0&&(ce[G]=_e[G]);return de(m,re,ce)},me.createRef=function(){return{current:null}},me.forwardRef=function(m){return{$$typeof:H,render:m}},me.isValidElement=oe,me.lazy=function(m){return{$$typeof:B,_payload:{_status:-1,_result:m},_init:b}},me.memo=function(m,S){return{$$typeof:j,type:m,compare:S===void 0?null:S}},me.startTransition=function(m){var S=D.T,L={};D.T=L;try{var G=m(),ce=D.S;ce!==null&&ce(L,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(Z,q)}catch(re){q(re)}finally{S!==null&&L.types!==null&&(S.types=L.types),D.T=S}},me.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},me.use=function(m){return D.H.use(m)},me.useActionState=function(m,S,L){return D.H.useActionState(m,S,L)},me.useCallback=function(m,S){return D.H.useCallback(m,S)},me.useContext=function(m){return D.H.useContext(m)},me.useDebugValue=function(){},me.useDeferredValue=function(m,S){return D.H.useDeferredValue(m,S)},me.useEffect=function(m,S){return D.H.useEffect(m,S)},me.useEffectEvent=function(m){return D.H.useEffectEvent(m)},me.useId=function(){return D.H.useId()},me.useImperativeHandle=function(m,S,L){return D.H.useImperativeHandle(m,S,L)},me.useInsertionEffect=function(m,S){return D.H.useInsertionEffect(m,S)},me.useLayoutEffect=function(m,S){return D.H.useLayoutEffect(m,S)},me.useMemo=function(m,S){return D.H.useMemo(m,S)},me.useOptimistic=function(m,S){return D.H.useOptimistic(m,S)},me.useReducer=function(m,S,L){return D.H.useReducer(m,S,L)},me.useRef=function(m){return D.H.useRef(m)},me.useState=function(m){return D.H.useState(m)},me.useSyncExternalStore=function(m,S,L){return D.H.useSyncExternalStore(m,S,L)},me.useTransition=function(){return D.H.useTransition()},me.version="19.2.4",me}var wh;function ho(){return wh||(wh=1,Jc.exports=Wg()),Jc.exports}var _=ho(),Qc={exports:{}},Bn={},Xc={exports:{}},Zc={};var _h;function Fg(){return _h||(_h=1,(function(u){function s(v,E){var b=v.length;v.push(E);e:for(;0<b;){var q=b-1>>>1,F=v[q];if(0<h(F,E))v[q]=E,v[b]=F,b=q;else break e}}function c(v){return v.length===0?null:v[0]}function o(v){if(v.length===0)return null;var E=v[0],b=v.pop();if(b!==E){v[0]=b;e:for(var q=0,F=v.length,m=F>>>1;q<m;){var S=2*(q+1)-1,L=v[S],G=S+1,ce=v[G];if(0>h(L,b))G<F&&0>h(ce,L)?(v[q]=ce,v[G]=b,q=G):(v[q]=L,v[S]=b,q=S);else if(G<F&&0>h(ce,b))v[q]=ce,v[G]=b,q=G;else break e}}return E}function h(v,E){var b=v.sortIndex-E.sortIndex;return b!==0?b:v.id-E.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;u.unstable_now=function(){return g.now()}}else{var M=Date,H=M.now();u.unstable_now=function(){return M.now()-H}}var R=[],j=[],B=1,T=null,V=3,J=!1,P=!1,X=!1,he=!1,ie=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function K(v){for(var E=c(j);E!==null;){if(E.callback===null)o(j);else if(E.startTime<=v)o(j),E.sortIndex=E.expirationTime,s(R,E);else break;E=c(j)}}function ee(v){if(X=!1,K(v),!P)if(c(R)!==null)P=!0,Z||(Z=!0,ue());else{var E=c(j);E!==null&&le(ee,E.startTime-v)}}var Z=!1,D=-1,$=5,de=-1;function te(){return he?!0:!(u.unstable_now()-de<$)}function oe(){if(he=!1,Z){var v=u.unstable_now();de=v;var E=!0;try{e:{P=!1,X&&(X=!1,ne(D),D=-1),J=!0;var b=V;try{t:{for(K(v),T=c(R);T!==null&&!(T.expirationTime>v&&te());){var q=T.callback;if(typeof q=="function"){T.callback=null,V=T.priorityLevel;var F=q(T.expirationTime<=v);if(v=u.unstable_now(),typeof F=="function"){T.callback=F,K(v),E=!0;break t}T===c(R)&&o(R),K(v)}else o(R);T=c(R)}if(T!==null)E=!0;else{var m=c(j);m!==null&&le(ee,m.startTime-v),E=!1}}break e}finally{T=null,V=b,J=!1}E=void 0}}finally{E?ue():Z=!1}}}var ue;if(typeof Y=="function")ue=function(){Y(oe)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,Ne=Ae.port2;Ae.port1.onmessage=oe,ue=function(){Ne.postMessage(null)}}else ue=function(){ie(oe,0)};function le(v,E){D=ie(function(){v(u.unstable_now())},E)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(v){v.callback=null},u.unstable_forceFrameRate=function(v){0>v||125<v?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<v?Math.floor(1e3/v):5},u.unstable_getCurrentPriorityLevel=function(){return V},u.unstable_next=function(v){switch(V){case 1:case 2:case 3:var E=3;break;default:E=V}var b=V;V=E;try{return v()}finally{V=b}},u.unstable_requestPaint=function(){he=!0},u.unstable_runWithPriority=function(v,E){switch(v){case 1:case 2:case 3:case 4:case 5:break;default:v=3}var b=V;V=v;try{return E()}finally{V=b}},u.unstable_scheduleCallback=function(v,E,b){var q=u.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?q+b:q):b=q,v){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=b+F,v={id:B++,callback:E,priorityLevel:v,startTime:b,expirationTime:F,sortIndex:-1},b>q?(v.sortIndex=b,s(j,v),c(R)===null&&v===c(j)&&(X?(ne(D),D=-1):X=!0,le(ee,b-q))):(v.sortIndex=F,s(R,v),P||J||(P=!0,Z||(Z=!0,ue()))),v},u.unstable_shouldYield=te,u.unstable_wrapCallback=function(v){var E=V;return function(){var b=V;V=E;try{return v.apply(this,arguments)}finally{V=b}}}})(Zc)),Zc}var Ah;function $g(){return Ah||(Ah=1,Xc.exports=Fg()),Xc.exports}var Kc={exports:{}},nt={};var Th;function Ig(){if(Th)return nt;Th=1;var u=ho();function s(R){var j="https://react.dev/errors/"+R;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)j+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+R+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function g(R,j,B){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:T==null?null:""+T,children:R,containerInfo:j,implementation:B}}var M=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function H(R,j){if(R==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}return nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,nt.createPortal=function(R,j){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(s(299));return g(R,j,null,B)},nt.flushSync=function(R){var j=M.T,B=o.p;try{if(M.T=null,o.p=2,R)return R()}finally{M.T=j,o.p=B,o.d.f()}},nt.preconnect=function(R,j){typeof R=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,o.d.C(R,j))},nt.prefetchDNS=function(R){typeof R=="string"&&o.d.D(R)},nt.preinit=function(R,j){if(typeof R=="string"&&j&&typeof j.as=="string"){var B=j.as,T=H(B,j.crossOrigin),V=typeof j.integrity=="string"?j.integrity:void 0,J=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;B==="style"?o.d.S(R,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:T,integrity:V,fetchPriority:J}):B==="script"&&o.d.X(R,{crossOrigin:T,integrity:V,fetchPriority:J,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},nt.preinitModule=function(R,j){if(typeof R=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var B=H(j.as,j.crossOrigin);o.d.M(R,{crossOrigin:B,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&o.d.M(R)},nt.preload=function(R,j){if(typeof R=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var B=j.as,T=H(B,j.crossOrigin);o.d.L(R,B,{crossOrigin:T,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}},nt.preloadModule=function(R,j){if(typeof R=="string")if(j){var B=H(j.as,j.crossOrigin);o.d.m(R,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:B,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else o.d.m(R)},nt.requestFormReset=function(R){o.d.r(R)},nt.unstable_batchedUpdates=function(R,j){return R(j)},nt.useFormState=function(R,j,B){return M.H.useFormState(R,j,B)},nt.useFormStatus=function(){return M.H.useHostTransitionStatus()},nt.version="19.2.4",nt}var zh;function Pg(){if(zh)return Kc.exports;zh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Kc.exports=Ig(),Kc.exports}var Dh;function ep(){if(Dh)return Bn;Dh=1;var u=$g(),s=ho(),c=Pg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function M(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 H(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 R(e){if(g(e)!==e)throw Error(o(188))}function j(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return R(i),e;if(r===n)return R(i),t;r=r.sibling}throw Error(o(188))}if(a.return!==n.return)a=i,n=r;else{for(var d=!1,f=i.child;f;){if(f===a){d=!0,a=i,n=r;break}if(f===n){d=!0,n=i,a=r;break}f=f.sibling}if(!d){for(f=r.child;f;){if(f===a){d=!0,a=r,n=i;break}if(f===n){d=!0,n=r,a=i;break}f=f.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}var T=Object.assign,V=Symbol.for("react.element"),J=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case ie:return"Profiler";case he:return"StrictMode";case ee:return"Suspense";case Z:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case P:return"Portal";case Y:return e.displayName||"Context";case ne:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var le=Array.isArray,v=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b={pending:!1,data:null,method:null,action:null},q=[],F=-1;function m(e){return{current:e}}function S(e){0>F||(e.current=q[F],q[F]=null,F--)}function L(e,t){F++,q[F]=e.current,e.current=t}var G=m(null),ce=m(null),re=m(null),_e=m(null);function it(e,t){switch(L(re,t),L(ce,e),L(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qf(t),e=Xf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}S(G),L(G,e)}function Be(){S(G),S(ce),S(re)}function Ql(e){e.memoizedState!==null&&L(_e,e);var t=G.current,a=Xf(t,e.type);t!==a&&(L(ce,e),L(G,a))}function Fn(e){ce.current===e&&(S(G),S(ce)),_e.current===e&&(S(_e),Ln._currentValue=b)}var ws,yo;function Oa(e){if(ws===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ws=t&&t[1]||"",yo=-1<a.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+ws+e+yo}var _s=!1;function As(e,t){if(!e||_s)return"";_s=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(A){var w=A}Reflect.construct(e,[],O)}else{try{O.call()}catch(A){w=A}e.call(O.prototype)}}else{try{throw Error()}catch(A){w=A}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(A){if(A&&w&&typeof A.stack=="string")return[A.stack,w.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],f=r[1];if(d&&f){var p=d.split(`
|
||
`),k=f.split(`
|
||
`);for(i=n=0;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;for(;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;if(n===p.length||i===k.length)for(n=p.length-1,i=k.length-1;1<=n&&0<=i&&p[n]!==k[i];)i--;for(;1<=n&&0<=i;n--,i--)if(p[n]!==k[i]){if(n!==1||i!==1)do if(n--,i--,0>i||p[n]!==k[i]){var C=`
|
||
`+p[n].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=n&&0<=i);break}}}finally{_s=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Oa(a):""}function km(e,t){switch(e.tag){case 26:case 27:case 5:return Oa(e.type);case 16:return Oa("Lazy");case 13:return e.child!==t&&t!==null?Oa("Suspense Fallback"):Oa("Suspense");case 19:return Oa("SuspenseList");case 0:case 15:return As(e.type,!1);case 11:return As(e.type.render,!1);case 1:return As(e.type,!0);case 31:return Oa("Activity");default:return""}}function jo(e){try{var t="",a=null;do t+=km(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
||
Error generating stack: `+n.message+`
|
||
`+n.stack}}var Ts=Object.prototype.hasOwnProperty,zs=u.unstable_scheduleCallback,Ds=u.unstable_cancelCallback,wm=u.unstable_shouldYield,_m=u.unstable_requestPaint,gt=u.unstable_now,Am=u.unstable_getCurrentPriorityLevel,No=u.unstable_ImmediatePriority,So=u.unstable_UserBlockingPriority,$n=u.unstable_NormalPriority,Tm=u.unstable_LowPriority,ko=u.unstable_IdlePriority,zm=u.log,Dm=u.unstable_setDisableYieldValue,Xl=null,pt=null;function ua(e){if(typeof zm=="function"&&Dm(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Xl,e)}catch{}}var vt=Math.clz32?Math.clz32:Cm,Mm=Math.log,Em=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(Mm(e)/Em|0)|0}var In=256,Pn=262144,ei=4194304;function Ra(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 ti(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var f=n&134217727;return f!==0?(n=f&~r,n!==0?i=Ra(n):(d&=f,d!==0?i=Ra(d):a||(a=f&~e,a!==0&&(i=Ra(a))))):(f=n&~r,f!==0?i=Ra(f):d!==0?i=Ra(d):a||(a=n&~e,a!==0&&(i=Ra(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function Zl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Um(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 wo(){var e=ei;return ei<<=1,(ei&62914560)===0&&(ei=4194304),e}function Ms(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lm(e,t,a,n,i,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var f=e.entanglements,p=e.expirationTimes,k=e.hiddenUpdates;for(a=d&~a;0<a;){var C=31-vt(a),O=1<<C;f[C]=0,p[C]=-1;var w=k[C];if(w!==null)for(k[C]=null,C=0;C<w.length;C++){var A=w[C];A!==null&&(A.lane&=-536870913)}a&=~O}n!==0&&_o(e,n,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function _o(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-vt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Ao(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-vt(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function To(e,t){var a=t&-t;return a=(a&42)!==0?1:Es(a),(a&(e.suspendedLanes|t))!==0?0:a}function Es(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 Cs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zo(){var e=E.p;return e!==0?e:(e=window.event,e===void 0?32:gh(e.type))}function Do(e,t){var a=E.p;try{return E.p=e,t()}finally{E.p=a}}var da=Math.random().toString(36).slice(2),Pe="__reactFiber$"+da,rt="__reactProps$"+da,ll="__reactContainer$"+da,Us="__reactEvents$"+da,Om="__reactListeners$"+da,Rm="__reactHandles$"+da,Mo="__reactResources$"+da,Wl="__reactMarker$"+da;function Ls(e){delete e[Pe],delete e[rt],delete e[Us],delete e[Om],delete e[Rm]}function nl(e){var t=e[Pe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ll]||a[Pe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Pf(e);e!==null;){if(a=e[Pe])return a;e=Pf(e)}return t}e=a,a=e.parentNode}return null}function il(e){if(e=e[Pe]||e[ll]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Fl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function sl(e){var t=e[Mo];return t||(t=e[Mo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Wl]=!0}var Eo=new Set,Co={};function Va(e,t){rl(e,t),rl(e+"Capture",t)}function rl(e,t){for(Co[e]=t,e=0;e<t.length;e++)Eo.add(t[e])}var Vm=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]*$"),Uo={},Lo={};function Hm(e){return Ts.call(Lo,e)?!0:Ts.call(Uo,e)?!1:Vm.test(e)?Lo[e]=!0:(Uo[e]=!0,!1)}function ai(e,t,a){if(Hm(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function li(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Xt(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bm(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Os(e){if(!e._valueTracker){var t=Oo(e)?"checked":"value";e._valueTracker=Bm(e,t,""+e[t])}}function Ro(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Oo(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function ni(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 qm=/[\n"\\]/g;function At(e){return e.replace(qm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rs(e,t,a,n,i,r,d,f){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Vs(e,d,_t(t)):a!=null?Vs(e,d,_t(a)):n!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+_t(f):e.removeAttribute("name")}function Vo(e,t,a,n,i,r,d,f){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Os(e);return}a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=f?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Os(e)}function Vs(e,t,a){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function cl(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+_t(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ho(e,t,a){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_t(a):""}function Bo(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(le(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=_t(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Os(e)}function ol(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Gm=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 qo(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Gm.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Go(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&qo(e,i,n)}else for(var r in t)t.hasOwnProperty(r)&&qo(e,r,t[r])}function Hs(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 Ym=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ii(e){return Jm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Bs=null;function qs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ul=null,dl=null;function Yo(e){var t=il(e);if(t&&(e=t.stateNode)){var a=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[rt]||null;if(!i)throw Error(o(90));Rs(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Ro(n)}break e;case"textarea":Ho(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&cl(e,!!a.multiple,t,!1)}}}var Gs=!1;function Jo(e,t,a){if(Gs)return e(t,a);Gs=!0;try{var n=e(t);return n}finally{if(Gs=!1,(ul!==null||dl!==null)&&(Xi(),ul&&(t=ul,e=dl,dl=ul=null,Yo(t),e)))for(t=0;t<e.length;t++)Yo(e[t])}}function $l(e,t){var a=e.stateNode;if(a===null)return null;var n=a[rt]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Kt)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Ys=!1}var fa=null,Js=null,si=null;function Qo(){if(si)return si;var e,t=Js,a=t.length,n,i="value"in fa?fa.value:fa.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===i[r-n];n++);return si=i.slice(e,1<n?1-n:void 0)}function ri(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 ci(){return!0}function Xo(){return!1}function ct(e){function t(a,n,i,r,d){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(r):r[f]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ci:Xo,this.isPropagationStopped=Xo,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oi=ct(Ha),Pl=T({},Ha,{view:0,detail:0}),Qm=ct(Pl),Qs,Xs,en,ui=T({},Pl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,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!==en&&(en&&e.type==="mousemove"?(Qs=e.screenX-en.screenX,Xs=e.screenY-en.screenY):Xs=Qs=0,en=e),Qs)},movementY:function(e){return"movementY"in e?e.movementY:Xs}}),Zo=ct(ui),Xm=T({},ui,{dataTransfer:0}),Zm=ct(Xm),Km=T({},Pl,{relatedTarget:0}),Zs=ct(Km),Wm=T({},Ha,{animationName:0,elapsedTime:0,pseudoElement:0}),Fm=ct(Wm),$m=T({},Ha,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Im=ct($m),Pm=T({},Ha,{data:0}),Ko=ct(Pm),e0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t0={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"},a0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=a0[e])?!!t[e]:!1}function Ks(){return l0}var n0=T({},Pl,{key:function(e){if(e.key){var t=e0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),i0=ct(n0),s0=T({},ui,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wo=ct(s0),r0=T({},Pl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),c0=ct(r0),o0=T({},Ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),u0=ct(o0),d0=T({},ui,{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}),f0=ct(d0),h0=T({},Ha,{newState:0,oldState:0}),m0=ct(h0),g0=[9,13,27,32],Ws=Kt&&"CompositionEvent"in window,tn=null;Kt&&"documentMode"in document&&(tn=document.documentMode);var p0=Kt&&"TextEvent"in window&&!tn,Fo=Kt&&(!Ws||tn&&8<tn&&11>=tn),$o=" ",Io=!1;function Po(e,t){switch(e){case"keyup":return g0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fl=!1;function v0(e,t){switch(e){case"compositionend":return eu(t);case"keypress":return t.which!==32?null:(Io=!0,$o);case"textInput":return e=t.data,e===$o&&Io?null:e;default:return null}}function x0(e,t){if(fl)return e==="compositionend"||!Ws&&Po(e,t)?(e=Qo(),si=Js=fa=null,fl=!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 Fo&&t.locale!=="ko"?null:t.data;default:return null}}var b0={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 tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b0[e.type]:t==="textarea"}function au(e,t,a,n){ul?dl?dl.push(n):dl=[n]:ul=n,t=Pi(t,"onChange"),0<t.length&&(a=new oi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var an=null,ln=null;function y0(e){Hf(e,0)}function di(e){var t=Fl(e);if(Ro(t))return e}function lu(e,t){if(e==="change")return t}var nu=!1;if(Kt){var Fs;if(Kt){var $s="oninput"in document;if(!$s){var iu=document.createElement("div");iu.setAttribute("oninput","return;"),$s=typeof iu.oninput=="function"}Fs=$s}else Fs=!1;nu=Fs&&(!document.documentMode||9<document.documentMode)}function su(){an&&(an.detachEvent("onpropertychange",ru),ln=an=null)}function ru(e){if(e.propertyName==="value"&&di(ln)){var t=[];au(t,ln,e,qs(e)),Jo(y0,t)}}function j0(e,t,a){e==="focusin"?(su(),an=t,ln=a,an.attachEvent("onpropertychange",ru)):e==="focusout"&&su()}function N0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return di(ln)}function S0(e,t){if(e==="click")return di(t)}function k0(e,t){if(e==="input"||e==="change")return di(t)}function w0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:w0;function nn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!Ts.call(t,i)||!xt(e[i],t[i]))return!1}return!0}function cu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ou(e,t){var a=cu(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=cu(a)}}function uu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function du(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ni(e.document)}return t}function Is(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 _0=Kt&&"documentMode"in document&&11>=document.documentMode,hl=null,Ps=null,sn=null,er=!1;function fu(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;er||hl==null||hl!==ni(n)||(n=hl,"selectionStart"in n&&Is(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sn&&nn(sn,n)||(sn=n,n=Pi(Ps,"onSelect"),0<n.length&&(t=new oi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=hl)))}function Ba(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ml={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},tr={},hu={};Kt&&(hu=document.createElement("div").style,"AnimationEvent"in window||(delete ml.animationend.animation,delete ml.animationiteration.animation,delete ml.animationstart.animation),"TransitionEvent"in window||delete ml.transitionend.transition);function qa(e){if(tr[e])return tr[e];if(!ml[e])return e;var t=ml[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in hu)return tr[e]=t[a];return e}var mu=qa("animationend"),gu=qa("animationiteration"),pu=qa("animationstart"),A0=qa("transitionrun"),T0=qa("transitionstart"),z0=qa("transitioncancel"),vu=qa("transitionend"),xu=new Map,ar="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(" ");ar.push("scrollEnd");function Rt(e,t){xu.set(e,t),Va(t,[e])}var fi=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)},Tt=[],gl=0,lr=0;function hi(){for(var e=gl,t=lr=gl=0;t<e;){var a=Tt[t];Tt[t++]=null;var n=Tt[t];Tt[t++]=null;var i=Tt[t];Tt[t++]=null;var r=Tt[t];if(Tt[t++]=null,n!==null&&i!==null){var d=n.pending;d===null?i.next=i:(i.next=d.next,d.next=i),n.pending=i}r!==0&&bu(a,i,r)}}function mi(e,t,a,n){Tt[gl++]=e,Tt[gl++]=t,Tt[gl++]=a,Tt[gl++]=n,lr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function nr(e,t,a,n){return mi(e,t,a,n),gi(e)}function Ga(e,t){return mi(e,null,null,t),gi(e)}function bu(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-vt(a),e=r.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),r):null}function gi(e){if(50<Tn)throw Tn=0,hc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pl={};function D0(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,n){return new D0(e,t,a,n)}function ir(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function yu(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,a,n,i,r){var d=0;if(n=e,typeof e=="function")ir(e)&&(d=1);else if(typeof e=="string")d=Lg(e,a,G.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=bt(31,a,t,i),e.elementType=de,e.lanes=r,e;case X:return Ya(a.children,i,r,t);case he:d=8,i|=24;break;case ie:return e=bt(12,a,t,i|2),e.elementType=ie,e.lanes=r,e;case ee:return e=bt(13,a,t,i),e.elementType=ee,e.lanes=r,e;case Z:return e=bt(19,a,t,i),e.elementType=Z,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:d=10;break e;case ne:d=9;break e;case K:d=11;break e;case D:d=14;break e;case $:d=16,n=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=bt(d,a,t,i),t.elementType=e,t.type=n,t.lanes=r,t}function Ya(e,t,a,n){return e=bt(7,e,n,t),e.lanes=a,e}function sr(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function ju(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function rr(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Nu=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var a=Nu.get(e);return a!==void 0?a:(t={value:e,source:t,stack:jo(t)},Nu.set(e,t),t)}return{value:e,source:t,stack:jo(t)}}var vl=[],xl=0,vi=null,rn=0,Dt=[],Mt=0,ha=null,Bt=1,qt="";function Ft(e,t){vl[xl++]=rn,vl[xl++]=vi,vi=e,rn=t}function Su(e,t,a){Dt[Mt++]=Bt,Dt[Mt++]=qt,Dt[Mt++]=ha,ha=e;var n=Bt;e=qt;var i=32-vt(n)-1;n&=~(1<<i),a+=1;var r=32-vt(t)+i;if(30<r){var d=i-i%5;r=(n&(1<<d)-1).toString(32),n>>=d,i-=d,Bt=1<<32-vt(t)+i|a<<i|n,qt=r+e}else Bt=1<<r|a<<i|n,qt=e}function cr(e){e.return!==null&&(Ft(e,1),Su(e,1,0))}function or(e){for(;e===vi;)vi=vl[--xl],vl[xl]=null,rn=vl[--xl],vl[xl]=null;for(;e===ha;)ha=Dt[--Mt],Dt[Mt]=null,qt=Dt[--Mt],Dt[Mt]=null,Bt=Dt[--Mt],Dt[Mt]=null}function ku(e,t){Dt[Mt++]=Bt,Dt[Mt++]=qt,Dt[Mt++]=ha,Bt=t.id,qt=t.overflow,ha=e}var et=null,Ue=null,je=!1,ma=null,Et=!1,ur=Error(o(519));function ga(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(zt(t,e)),ur}function wu(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Pe]=e,t[rt]=n,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<Dn.length;a++)xe(Dn[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Vo(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Bo(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Yf(t.textContent,a)?(n.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),n.onScroll!=null&&xe("scroll",t),n.onScrollEnd!=null&&xe("scrollend",t),n.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||ga(e,!0)}function _u(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Et=!1;return;case 27:case 3:Et=!0;return;default:et=et.return}}function bl(e){if(e!==et)return!1;if(!je)return _u(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Tc(e.type,e.memoizedProps)),a=!a),a&&Ue&&ga(e),_u(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=If(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=If(e)}else t===27?(t=Ue,za(e.type)?(e=Cc,Cc=null,Ue=e):Ue=t):Ue=et?Ut(e.stateNode.nextSibling):null;return!0}function Ja(){Ue=et=null,je=!1}function dr(){var e=ma;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),ma=null),e}function cn(e){ma===null?ma=[e]:ma.push(e)}var fr=m(null),Qa=null,$t=null;function pa(e,t,a){L(fr,t._currentValue),t._currentValue=a}function It(e){e._currentValue=fr.current,S(fr)}function hr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function mr(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var f=r;r=i;for(var p=0;p<t.length;p++)if(f.context===t[p]){r.lanes|=a,f=r.alternate,f!==null&&(f.lanes|=a),hr(r.return,a,e),n||(d=null);break e}r=f.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(o(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),hr(d,a,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function yl(e,t,a,n){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var f=i.type;xt(i.pendingProps.value,d.value)||(e!==null?e.push(f):e=[f])}}else if(i===_e.current){if(d=i.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ln):e=[Ln])}i=i.return}e!==null&&mr(t,e,a,n),t.flags|=262144}function xi(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xa(e){Qa=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return Au(Qa,e)}function bi(e,t){return Qa===null&&Xa(e),Au(e,t)}function Au(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},$t===null){if(e===null)throw Error(o(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return a}var M0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},E0=u.unstable_scheduleCallback,C0=u.unstable_NormalPriority,Ye={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gr(){return{controller:new M0,data:new Map,refCount:0}}function on(e){e.refCount--,e.refCount===0&&E0(C0,function(){e.controller.abort()})}var un=null,pr=0,jl=0,Nl=null;function U0(e,t){if(un===null){var a=un=[];pr=0,jl=bc(),Nl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return pr++,t.then(Tu,Tu),t}function Tu(){if(--pr===0&&un!==null){Nl!==null&&(Nl.status="fulfilled");var e=un;un=null,jl=0,Nl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function L0(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var zu=v.S;v.S=function(e,t){hf=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U0(e,t),zu!==null&&zu(e,t)};var Za=m(null);function vr(){var e=Za.current;return e!==null?e:Ce.pooledCache}function yi(e,t){t===null?L(Za,Za.current):L(Za,t.pool)}function Du(){var e=vr();return e===null?null:{parent:Ye._currentValue,pool:e}}var Sl=Error(o(460)),xr=Error(o(474)),ji=Error(o(542)),Ni={then:function(){}};function Mu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Eu(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Zt,Zt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uu(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uu(e),e}throw Wa=t,Sl}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Wa=a,Sl):a}}var Wa=null;function Cu(){if(Wa===null)throw Error(o(459));var e=Wa;return Wa=null,e}function Uu(e){if(e===Sl||e===ji)throw Error(o(483))}var kl=null,dn=0;function Si(e){var t=dn;return dn+=1,kl===null&&(kl=[]),Eu(kl,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ki(e,t){throw t.$$typeof===V?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lu(e){function t(y,x){if(e){var N=y.deletions;N===null?(y.deletions=[x],y.flags|=16):N.push(x)}}function a(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function n(y){for(var x=new Map;y!==null;)y.key!==null?x.set(y.key,y):x.set(y.index,y),y=y.sibling;return x}function i(y,x){return y=Wt(y,x),y.index=0,y.sibling=null,y}function r(y,x,N){return y.index=N,e?(N=y.alternate,N!==null?(N=N.index,N<x?(y.flags|=67108866,x):N):(y.flags|=67108866,x)):(y.flags|=1048576,x)}function d(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function f(y,x,N,U){return x===null||x.tag!==6?(x=sr(N,y.mode,U),x.return=y,x):(x=i(x,N),x.return=y,x)}function p(y,x,N,U){var ae=N.type;return ae===X?C(y,x,N.props.children,U,N.key):x!==null&&(x.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===$&&Ka(ae)===x.type)?(x=i(x,N.props),fn(x,N),x.return=y,x):(x=pi(N.type,N.key,N.props,null,y.mode,U),fn(x,N),x.return=y,x)}function k(y,x,N,U){return x===null||x.tag!==4||x.stateNode.containerInfo!==N.containerInfo||x.stateNode.implementation!==N.implementation?(x=rr(N,y.mode,U),x.return=y,x):(x=i(x,N.children||[]),x.return=y,x)}function C(y,x,N,U,ae){return x===null||x.tag!==7?(x=Ya(N,y.mode,U,ae),x.return=y,x):(x=i(x,N),x.return=y,x)}function O(y,x,N){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=sr(""+x,y.mode,N),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case J:return N=pi(x.type,x.key,x.props,null,y.mode,N),fn(N,x),N.return=y,N;case P:return x=rr(x,y.mode,N),x.return=y,x;case $:return x=Ka(x),O(y,x,N)}if(le(x)||ue(x))return x=Ya(x,y.mode,N,null),x.return=y,x;if(typeof x.then=="function")return O(y,Si(x),N);if(x.$$typeof===Y)return O(y,bi(y,x),N);ki(y,x)}return null}function w(y,x,N,U){var ae=x!==null?x.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ae!==null?null:f(y,x,""+N,U);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case J:return N.key===ae?p(y,x,N,U):null;case P:return N.key===ae?k(y,x,N,U):null;case $:return N=Ka(N),w(y,x,N,U)}if(le(N)||ue(N))return ae!==null?null:C(y,x,N,U,null);if(typeof N.then=="function")return w(y,x,Si(N),U);if(N.$$typeof===Y)return w(y,x,bi(y,N),U);ki(y,N)}return null}function A(y,x,N,U,ae){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return y=y.get(N)||null,f(x,y,""+U,ae);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case J:return y=y.get(U.key===null?N:U.key)||null,p(x,y,U,ae);case P:return y=y.get(U.key===null?N:U.key)||null,k(x,y,U,ae);case $:return U=Ka(U),A(y,x,N,U,ae)}if(le(U)||ue(U))return y=y.get(N)||null,C(x,y,U,ae,null);if(typeof U.then=="function")return A(y,x,N,Si(U),ae);if(U.$$typeof===Y)return A(y,x,N,bi(x,U),ae);ki(x,U)}return null}function W(y,x,N,U){for(var ae=null,Se=null,I=x,pe=x=0,ye=null;I!==null&&pe<N.length;pe++){I.index>pe?(ye=I,I=null):ye=I.sibling;var ke=w(y,I,N[pe],U);if(ke===null){I===null&&(I=ye);break}e&&I&&ke.alternate===null&&t(y,I),x=r(ke,x,pe),Se===null?ae=ke:Se.sibling=ke,Se=ke,I=ye}if(pe===N.length)return a(y,I),je&&Ft(y,pe),ae;if(I===null){for(;pe<N.length;pe++)I=O(y,N[pe],U),I!==null&&(x=r(I,x,pe),Se===null?ae=I:Se.sibling=I,Se=I);return je&&Ft(y,pe),ae}for(I=n(I);pe<N.length;pe++)ye=A(I,y,pe,N[pe],U),ye!==null&&(e&&ye.alternate!==null&&I.delete(ye.key===null?pe:ye.key),x=r(ye,x,pe),Se===null?ae=ye:Se.sibling=ye,Se=ye);return e&&I.forEach(function(Ua){return t(y,Ua)}),je&&Ft(y,pe),ae}function se(y,x,N,U){if(N==null)throw Error(o(151));for(var ae=null,Se=null,I=x,pe=x=0,ye=null,ke=N.next();I!==null&&!ke.done;pe++,ke=N.next()){I.index>pe?(ye=I,I=null):ye=I.sibling;var Ua=w(y,I,ke.value,U);if(Ua===null){I===null&&(I=ye);break}e&&I&&Ua.alternate===null&&t(y,I),x=r(Ua,x,pe),Se===null?ae=Ua:Se.sibling=Ua,Se=Ua,I=ye}if(ke.done)return a(y,I),je&&Ft(y,pe),ae;if(I===null){for(;!ke.done;pe++,ke=N.next())ke=O(y,ke.value,U),ke!==null&&(x=r(ke,x,pe),Se===null?ae=ke:Se.sibling=ke,Se=ke);return je&&Ft(y,pe),ae}for(I=n(I);!ke.done;pe++,ke=N.next())ke=A(I,y,pe,ke.value,U),ke!==null&&(e&&ke.alternate!==null&&I.delete(ke.key===null?pe:ke.key),x=r(ke,x,pe),Se===null?ae=ke:Se.sibling=ke,Se=ke);return e&&I.forEach(function(Xg){return t(y,Xg)}),je&&Ft(y,pe),ae}function Ee(y,x,N,U){if(typeof N=="object"&&N!==null&&N.type===X&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case J:e:{for(var ae=N.key;x!==null;){if(x.key===ae){if(ae=N.type,ae===X){if(x.tag===7){a(y,x.sibling),U=i(x,N.props.children),U.return=y,y=U;break e}}else if(x.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===$&&Ka(ae)===x.type){a(y,x.sibling),U=i(x,N.props),fn(U,N),U.return=y,y=U;break e}a(y,x);break}else t(y,x);x=x.sibling}N.type===X?(U=Ya(N.props.children,y.mode,U,N.key),U.return=y,y=U):(U=pi(N.type,N.key,N.props,null,y.mode,U),fn(U,N),U.return=y,y=U)}return d(y);case P:e:{for(ae=N.key;x!==null;){if(x.key===ae)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){a(y,x.sibling),U=i(x,N.children||[]),U.return=y,y=U;break e}else{a(y,x);break}else t(y,x);x=x.sibling}U=rr(N,y.mode,U),U.return=y,y=U}return d(y);case $:return N=Ka(N),Ee(y,x,N,U)}if(le(N))return W(y,x,N,U);if(ue(N)){if(ae=ue(N),typeof ae!="function")throw Error(o(150));return N=ae.call(N),se(y,x,N,U)}if(typeof N.then=="function")return Ee(y,x,Si(N),U);if(N.$$typeof===Y)return Ee(y,x,bi(y,N),U);ki(y,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,x!==null&&x.tag===6?(a(y,x.sibling),U=i(x,N),U.return=y,y=U):(a(y,x),U=sr(N,y.mode,U),U.return=y,y=U),d(y)):a(y,x)}return function(y,x,N,U){try{dn=0;var ae=Ee(y,x,N,U);return kl=null,ae}catch(I){if(I===Sl||I===ji)throw I;var Se=bt(29,I,null,y.mode);return Se.lanes=U,Se.return=y,Se}}}var Fa=Lu(!0),Ou=Lu(!1),va=!1;function br(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yr(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 xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ba(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(we&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=gi(e),bu(e,null,a),t}return mi(e,n,t,a),gi(e)}function hn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ao(e,a)}}function jr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Nr=!1;function mn(){if(Nr){var e=Nl;if(e!==null)throw e}}function gn(e,t,a,n){Nr=!1;var i=e.updateQueue;va=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var p=f,k=p.next;p.next=null,d===null?r=k:d.next=k,d=p;var C=e.alternate;C!==null&&(C=C.updateQueue,f=C.lastBaseUpdate,f!==d&&(f===null?C.firstBaseUpdate=k:f.next=k,C.lastBaseUpdate=p))}if(r!==null){var O=i.baseState;d=0,C=k=p=null,f=r;do{var w=f.lane&-536870913,A=w!==f.lane;if(A?(be&w)===w:(n&w)===w){w!==0&&w===jl&&(Nr=!0),C!==null&&(C=C.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var W=e,se=f;w=t;var Ee=a;switch(se.tag){case 1:if(W=se.payload,typeof W=="function"){O=W.call(Ee,O,w);break e}O=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=se.payload,w=typeof W=="function"?W.call(Ee,O,w):W,w==null)break e;O=T({},O,w);break e;case 2:va=!0}}w=f.callback,w!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[w]:A.push(w))}else A={lane:w,tag:f.tag,payload:f.payload,callback:f.callback,next:null},C===null?(k=C=A,p=O):C=C.next=A,d|=w;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;A=f,f=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);C===null&&(p=O),i.baseState=p,i.firstBaseUpdate=k,i.lastBaseUpdate=C,r===null&&(i.shared.lanes=0),ka|=d,e.lanes=d,e.memoizedState=O}}function Ru(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Vu(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ru(a[e],t)}var wl=m(null),wi=m(0);function Hu(e,t){e=ra,L(wi,e),L(wl,t),ra=e|t.baseLanes}function Sr(){L(wi,ra),L(wl,wl.current)}function kr(){ra=wi.current,S(wl),S(wi)}var yt=m(null),Ct=null;function ya(e){var t=e.alternate;L(qe,qe.current&1),L(yt,e),Ct===null&&(t===null||wl.current!==null||t.memoizedState!==null)&&(Ct=e)}function wr(e){L(qe,qe.current),L(yt,e),Ct===null&&(Ct=e)}function Bu(e){e.tag===22?(L(qe,qe.current),L(yt,e),Ct===null&&(Ct=e)):ja()}function ja(){L(qe,qe.current),L(yt,yt.current)}function jt(e){S(yt),Ct===e&&(Ct=null),S(qe)}var qe=m(0);function _i(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mc(a)||Ec(a)))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 Pt=0,ge=null,De=null,Je=null,Ai=!1,_l=!1,$a=!1,Ti=0,pn=0,Al=null,O0=0;function Re(){throw Error(o(321))}function _r(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function Ar(e,t,a,n,i,r){return Pt=r,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,v.H=e===null||e.memoizedState===null?Sd:Gr,$a=!1,r=a(n,i),$a=!1,_l&&(r=Gu(t,a,n,i)),qu(e),r}function qu(e){v.H=bn;var t=De!==null&&De.next!==null;if(Pt=0,Je=De=ge=null,Ai=!1,pn=0,Al=null,t)throw Error(o(300));e===null||Qe||(e=e.dependencies,e!==null&&xi(e)&&(Qe=!0))}function Gu(e,t,a,n){ge=e;var i=0;do{if(_l&&(Al=null),pn=0,_l=!1,25<=i)throw Error(o(301));if(i+=1,Je=De=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}v.H=kd,r=t(a,n)}while(_l);return r}function R0(){var e=v.H,t=e.useState()[0];return t=typeof t.then=="function"?vn(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ge.flags|=1024),t}function Tr(){var e=Ti!==0;return Ti=0,e}function zr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Dr(e){if(Ai){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ai=!1}Pt=0,Je=De=ge=null,_l=!1,pn=Ti=0,Al=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ge.memoizedState=Je=e:Je=Je.next=e,Je}function Ge(){if(De===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Je===null?ge.memoizedState:Je.next;if(t!==null)Je=t,De=e;else{if(e===null)throw ge.alternate===null?Error(o(467)):Error(o(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Je===null?ge.memoizedState=Je=e:Je=Je.next=e}return Je}function zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vn(e){var t=pn;return pn+=1,Al===null&&(Al=[]),e=Eu(Al,e,t),t=ge,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,v.H=t===null||t.memoizedState===null?Sd:Gr),e}function Di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vn(e);if(e.$$typeof===Y)return tt(e)}throw Error(o(438,String(e)))}function Mr(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ge.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=zi(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=te;return t.index++,a}function ea(e,t){return typeof t=="function"?t(e):t}function Mi(e){var t=Ge();return Er(t,De,e)}function Er(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var i=e.baseQueue,r=n.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,n.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var f=d=null,p=null,k=t,C=!1;do{var O=k.lane&-536870913;if(O!==k.lane?(be&O)===O:(Pt&O)===O){var w=k.revertLane;if(w===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),O===jl&&(C=!0);else if((Pt&w)===w){k=k.next,w===jl&&(C=!0);continue}else O={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},p===null?(f=p=O,d=r):p=p.next=O,ge.lanes|=w,ka|=w;O=k.action,$a&&a(r,O),r=k.hasEagerState?k.eagerState:a(r,O)}else w={lane:O,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},p===null?(f=p=w,d=r):p=p.next=w,ge.lanes|=O,ka|=O;k=k.next}while(k!==null&&k!==t);if(p===null?d=r:p.next=f,!xt(r,e.memoizedState)&&(Qe=!0,C&&(a=Nl,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=p,n.lastRenderedState=r}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Cr(e){var t=Ge(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);xt(r,t.memoizedState)||(Qe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Yu(e,t,a){var n=ge,i=Ge(),r=je;if(r){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!xt((De||i).memoizedState,a);if(d&&(i.memoizedState=a,Qe=!0),i=i.queue,Or(Xu.bind(null,n,i,e),[e]),i.getSnapshot!==t||d||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Tl(9,{destroy:void 0},Qu.bind(null,n,i,a,t),null),Ce===null)throw Error(o(349));r||(Pt&127)!==0||Ju(n,t,a)}return a}function Ju(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=zi(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Qu(e,t,a,n){t.value=a,t.getSnapshot=n,Zu(t)&&Ku(e)}function Xu(e,t,a){return a(function(){Zu(t)&&Ku(e)})}function Zu(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Ku(e){var t=Ga(e,2);t!==null&&ht(t,e,2)}function Ur(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),$a){ua(!0);try{a()}finally{ua(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e},t}function Wu(e,t,a,n){return e.baseState=a,Er(e,De,typeof n=="function"?n:ea)}function V0(e,t,a,n,i){if(Ui(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};v.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Fu(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Fu(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var r=v.T,d={};v.T=d;try{var f=a(i,n),p=v.S;p!==null&&p(d,f),$u(e,t,f)}catch(k){Lr(e,t,k)}finally{r!==null&&d.types!==null&&(r.types=d.types),v.T=r}}else try{r=a(i,n),$u(e,t,r)}catch(k){Lr(e,t,k)}}function $u(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Iu(e,t,n)},function(n){return Lr(e,t,n)}):Iu(e,t,a)}function Iu(e,t,a){t.status="fulfilled",t.value=a,Pu(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Fu(e,a)))}function Lr(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Pu(t),t=t.next;while(t!==n)}e.action=null}function Pu(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ed(e,t){return t}function td(e,t){if(je){var a=Ce.formState;if(a!==null){e:{var n=ge;if(je){if(Ue){t:{for(var i=Ue,r=Et;i.nodeType!==8;){if(!r){i=null;break t}if(i=Ut(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Ue=Ut(i.nextSibling),n=i.data==="F!";break e}}ga(n)}n=!1}n&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ed,lastRenderedState:t},a.queue=n,a=yd.bind(null,ge,n),n.dispatch=a,n=Ur(!1),r=qr.bind(null,ge,!1,n.queue),n=st(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=V0.bind(null,ge,i,r,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function ad(e){var t=Ge();return ld(t,De,e)}function ld(e,t,a){if(t=Er(e,t,ed)[0],e=Mi(ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=vn(t)}catch(d){throw d===Sl?ji:d}else n=t;t=Ge();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Tl(9,{destroy:void 0},H0.bind(null,i,a),null)),[n,r,e]}function H0(e,t){e.action=t}function nd(e){var t=Ge(),a=De;if(a!==null)return ld(t,a,e);Ge(),t=t.memoizedState,a=Ge();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Tl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ge.updateQueue,t===null&&(t=zi(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function id(){return Ge().memoizedState}function Ei(e,t,a,n){var i=st();ge.flags|=e,i.memoizedState=Tl(1|t,{destroy:void 0},a,n===void 0?null:n)}function Ci(e,t,a,n){var i=Ge();n=n===void 0?null:n;var r=i.memoizedState.inst;De!==null&&n!==null&&_r(n,De.memoizedState.deps)?i.memoizedState=Tl(t,r,a,n):(ge.flags|=e,i.memoizedState=Tl(1|t,r,a,n))}function sd(e,t){Ei(8390656,8,e,t)}function Or(e,t){Ci(2048,8,e,t)}function B0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=zi(),ge.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function rd(e){var t=Ge().memoizedState;return B0({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function cd(e,t){return Ci(4,2,e,t)}function od(e,t){return Ci(4,4,e,t)}function ud(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dd(e,t,a){a=a!=null?a.concat([e]):null,Ci(4,4,ud.bind(null,t,e),a)}function Rr(){}function fd(e,t){var a=Ge();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&_r(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function hd(e,t){var a=Ge();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&_r(t,n[1]))return n[0];if(n=e(),$a){ua(!0);try{e()}finally{ua(!1)}}return a.memoizedState=[n,t],n}function Vr(e,t,a){return a===void 0||(Pt&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=gf(),ge.lanes|=e,ka|=e,a)}function md(e,t,a,n){return xt(a,t)?a:wl.current!==null?(e=Vr(e,a,n),xt(e,t)||(Qe=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(be&261930)===0?(Qe=!0,e.memoizedState=a):(e=gf(),ge.lanes|=e,ka|=e,t)}function gd(e,t,a,n,i){var r=E.p;E.p=r!==0&&8>r?r:8;var d=v.T,f={};v.T=f,qr(e,!1,t,a);try{var p=i(),k=v.S;if(k!==null&&k(f,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var C=L0(p,n);xn(e,t,C,kt(e))}else xn(e,t,n,kt(e))}catch(O){xn(e,t,{then:function(){},status:"rejected",reason:O},kt())}finally{E.p=r,d!==null&&f.types!==null&&(d.types=f.types),v.T=d}}function q0(){}function Hr(e,t,a,n){if(e.tag!==5)throw Error(o(476));var i=pd(e).queue;gd(e,i,t,b,a===null?q0:function(){return vd(e),a(n)})}function pd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:b},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vd(e){var t=pd(e);t.next===null&&(t=e.alternate.memoizedState),xn(e,t.next.queue,{},kt())}function Br(){return tt(Ln)}function xd(){return Ge().memoizedState}function bd(){return Ge().memoizedState}function G0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=kt();e=xa(a);var n=ba(t,e,a);n!==null&&(ht(n,t,a),hn(n,t,a)),t={cache:gr()},e.payload=t;return}t=t.return}}function Y0(e,t,a){var n=kt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ui(e)?jd(t,a):(a=nr(e,t,a,n),a!==null&&(ht(a,e,n),Nd(a,t,n)))}function yd(e,t,a){var n=kt();xn(e,t,a,n)}function xn(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))jd(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,f=r(d,a);if(i.hasEagerState=!0,i.eagerState=f,xt(f,d))return mi(e,t,i,0),Ce===null&&hi(),!1}catch{}if(a=nr(e,t,i,n),a!==null)return ht(a,e,n),Nd(a,t,n),!0}return!1}function qr(e,t,a,n){if(n={lane:2,revertLane:bc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(o(479))}else t=nr(e,a,n,2),t!==null&&ht(t,e,2)}function Ui(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function jd(e,t){_l=Ai=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Nd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ao(e,a)}}var bn={readContext:tt,use:Di,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};bn.useEffectEvent=Re;var Sd={readContext:tt,use:Di,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:sd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ei(4194308,4,ud.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){Ei(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var n=e();if($a){ua(!0);try{e()}finally{ua(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=st();if(a!==void 0){var i=a(t);if($a){ua(!0);try{a(t)}finally{ua(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Y0.bind(null,ge,e),[n.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Ur(e);var t=e.queue,a=yd.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Rr,useDeferredValue:function(e,t){var a=st();return Vr(a,e,t)},useTransition:function(){var e=Ur(!1);return e=gd.bind(null,ge,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ge,i=st();if(je){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ce===null)throw Error(o(349));(be&127)!==0||Ju(n,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,sd(Xu.bind(null,n,r,e),[e]),n.flags|=2048,Tl(9,{destroy:void 0},Qu.bind(null,n,r,a,t),null),a},useId:function(){var e=st(),t=Ce.identifierPrefix;if(je){var a=qt,n=Bt;a=(n&~(1<<32-vt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ti++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=O0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Br,useFormState:td,useActionState:td,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qr.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mr,useCacheRefresh:function(){return st().memoizedState=G0.bind(null,ge)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((we&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Gr={readContext:tt,use:Di,useCallback:fd,useContext:tt,useEffect:Or,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:od,useMemo:hd,useReducer:Mi,useRef:id,useState:function(){return Mi(ea)},useDebugValue:Rr,useDeferredValue:function(e,t){var a=Ge();return md(a,De.memoizedState,e,t)},useTransition:function(){var e=Mi(ea)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:vn(e),t]},useSyncExternalStore:Yu,useId:xd,useHostTransitionStatus:Br,useFormState:ad,useActionState:ad,useOptimistic:function(e,t){var a=Ge();return Wu(a,De,e,t)},useMemoCache:Mr,useCacheRefresh:bd};Gr.useEffectEvent=rd;var kd={readContext:tt,use:Di,useCallback:fd,useContext:tt,useEffect:Or,useImperativeHandle:dd,useInsertionEffect:cd,useLayoutEffect:od,useMemo:hd,useReducer:Cr,useRef:id,useState:function(){return Cr(ea)},useDebugValue:Rr,useDeferredValue:function(e,t){var a=Ge();return De===null?Vr(a,e,t):md(a,De.memoizedState,e,t)},useTransition:function(){var e=Cr(ea)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:vn(e),t]},useSyncExternalStore:Yu,useId:xd,useHostTransitionStatus:Br,useFormState:nd,useActionState:nd,useOptimistic:function(e,t){var a=Ge();return De!==null?Wu(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mr,useCacheRefresh:bd};kd.useEffectEvent=rd;function Yr(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:T({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Jr={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=kt(),i=xa(n);i.payload=t,a!=null&&(i.callback=a),t=ba(e,i,n),t!==null&&(ht(t,e,n),hn(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=kt(),i=xa(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=ba(e,i,n),t!==null&&(ht(t,e,n),hn(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=kt(),n=xa(a);n.tag=2,t!=null&&(n.callback=t),t=ba(e,n,a),t!==null&&(ht(t,e,a),hn(t,e,a))}};function wd(e,t,a,n,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!nn(a,n)||!nn(i,r):!0}function _d(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Jr.enqueueReplaceState(t,t.state,null)}function Ia(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=T({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Ad(e){fi(e)}function Td(e){console.error(e)}function zd(e){fi(e)}function Li(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Dd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Qr(e,t,a){return a=xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Li(e,t)},a}function Md(e){return e=xa(e),e.tag=3,e}function Ed(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=n.value;e.payload=function(){return i(r)},e.callback=function(){Dd(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Dd(t,a,n),typeof i!="function"&&(wa===null?wa=new Set([this]):wa.add(this));var f=n.stack;this.componentDidCatch(n.value,{componentStack:f!==null?f:""})})}function J0(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&yl(t,a,i,!0),a=yt.current,a!==null){switch(a.tag){case 31:case 13:return Ct===null?Zi():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Ni?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),pc(e,n,i)),!1;case 22:return a.flags|=65536,n===Ni?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),pc(e,n,i)),!1}throw Error(o(435,a.tag))}return pc(e,n,i),Zi(),!1}if(je)return t=yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==ur&&(e=Error(o(422),{cause:n}),cn(zt(e,a)))):(n!==ur&&(t=Error(o(423),{cause:n}),cn(zt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=zt(n,a),i=Qr(e.stateNode,n,i),jr(e,i),Ve!==4&&(Ve=2)),!1;var r=Error(o(520),{cause:n});if(r=zt(r,a),An===null?An=[r]:An.push(r),Ve!==4&&(Ve=2),t===null)return!0;n=zt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Qr(a.stateNode,n,e),jr(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(wa===null||!wa.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Md(i),Ed(i,e,a,n),jr(a,i),!1}a=a.return}while(a!==null);return!1}var Xr=Error(o(461)),Qe=!1;function at(e,t,a,n){t.child=e===null?Ou(t,null,a,n):Fa(t,e.child,a,n)}function Cd(e,t,a,n,i){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var f in n)f!=="ref"&&(d[f]=n[f])}else d=n;return Xa(t),n=Ar(e,t,a,d,r,i),f=Tr(),e!==null&&!Qe?(zr(e,t,i),ta(e,t,i)):(je&&f&&cr(t),t.flags|=1,at(e,t,n,i),t.child)}function Ud(e,t,a,n,i){if(e===null){var r=a.type;return typeof r=="function"&&!ir(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Ld(e,t,r,n,i)):(e=pi(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!ec(e,i)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:nn,a(d,n)&&e.ref===t.ref)return ta(e,t,i)}return t.flags|=1,e=Wt(r,n),e.ref=t.ref,e.return=t,t.child=e}function Ld(e,t,a,n,i){if(e!==null){var r=e.memoizedProps;if(nn(r,n)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=n=r,ec(e,i))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,ta(e,t,i)}return Zr(e,t,a,n,i)}function Od(e,t,a,n){var i=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~r}else n=0,t.child=null;return Rd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yi(t,r!==null?r.cachePool:null),r!==null?Hu(t,r):Sr(),Bu(t);else return n=t.lanes=536870912,Rd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(yi(t,r.cachePool),Hu(t,r),ja(),t.memoizedState=null):(e!==null&&yi(t,null),Sr(),ja());return at(e,t,i,a),t.child}function yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rd(e,t,a,n,i){var r=vr();return r=r===null?null:{parent:Ye._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&yi(t,null),Sr(),Bu(t),e!==null&&yl(e,t,n,!0),t.childLanes=i,null}function Oi(e,t){return t=Vi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vd(e,t,a){return Fa(t,e.child,null,a),e=Oi(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Q0(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(n.mode==="hidden")return e=Oi(t,n),t.lanes=536870912,yn(null,e);if(wr(t),(e=Ue)?(e=$f(e,Et),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ha!==null?{id:Bt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},a=ju(e),a.return=t,t.child=a,et=t,Ue=null)):e=null,e===null)throw ga(t);return t.lanes=536870912,null}return Oi(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(wr(t),i)if(t.flags&256)t.flags&=-257,t=Vd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Qe||yl(e,t,a,!1),i=(a&e.childLanes)!==0,Qe||i){if(n=Ce,n!==null&&(d=To(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,Ga(e,d),ht(n,e,d),Xr;Zi(),t=Vd(e,t,a)}else e=r.treeContext,Ue=Ut(d.nextSibling),et=t,je=!0,ma=null,Et=!1,e!==null&&ku(t,e),t=Oi(t,n),t.flags|=4096;return t}return e=Wt(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ri(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Zr(e,t,a,n,i){return Xa(t),a=Ar(e,t,a,n,void 0,i),n=Tr(),e!==null&&!Qe?(zr(e,t,i),ta(e,t,i)):(je&&n&&cr(t),t.flags|=1,at(e,t,a,i),t.child)}function Hd(e,t,a,n,i,r){return Xa(t),t.updateQueue=null,a=Gu(t,n,a,i),qu(e),n=Tr(),e!==null&&!Qe?(zr(e,t,r),ta(e,t,r)):(je&&n&&cr(t),t.flags|=1,at(e,t,a,r),t.child)}function Bd(e,t,a,n,i){if(Xa(t),t.stateNode===null){var r=pl,d=a.contextType;typeof d=="object"&&d!==null&&(r=tt(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Jr,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},br(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?tt(d):pl,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Yr(t,a,d,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&Jr.enqueueReplaceState(r,r.state,null),gn(t,n,r,i),mn(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var f=t.memoizedProps,p=Ia(a,f);r.props=p;var k=r.context,C=a.contextType;d=pl,typeof C=="object"&&C!==null&&(d=tt(C));var O=a.getDerivedStateFromProps;C=typeof O=="function"||typeof r.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,C||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f||k!==d)&&_d(t,r,n,d),va=!1;var w=t.memoizedState;r.state=w,gn(t,n,r,i),mn(),k=t.memoizedState,f||w!==k||va?(typeof O=="function"&&(Yr(t,a,O,n),k=t.memoizedState),(p=va||wd(t,a,p,n,w,k,d))?(C||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=k),r.props=n,r.state=k,r.context=d,n=p):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,yr(e,t),d=t.memoizedProps,C=Ia(a,d),r.props=C,O=t.pendingProps,w=r.context,k=a.contextType,p=pl,typeof k=="object"&&k!==null&&(p=tt(k)),f=a.getDerivedStateFromProps,(k=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==O||w!==p)&&_d(t,r,n,p),va=!1,w=t.memoizedState,r.state=w,gn(t,n,r,i),mn();var A=t.memoizedState;d!==O||w!==A||va||e!==null&&e.dependencies!==null&&xi(e.dependencies)?(typeof f=="function"&&(Yr(t,a,f,n),A=t.memoizedState),(C=va||wd(t,a,C,n,w,A,p)||e!==null&&e.dependencies!==null&&xi(e.dependencies))?(k||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,A,p),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,A,p)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=A),r.props=n,r.state=A,r.context=p,n=C):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,Ri(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=Fa(t,e.child,null,i),t.child=Fa(t,null,a,i)):at(e,t,a,i),t.memoizedState=r.state,e=t.child):e=ta(e,t,i),e}function qd(e,t,a,n){return Ja(),t.flags|=256,at(e,t,a,n),t.child}var Kr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wr(e){return{baseLanes:e,cachePool:Du()}}function Fr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function Gd(e,t,a){var n=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(i?ya(t):ja(),(e=Ue)?(e=$f(e,Et),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ha!==null?{id:Bt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},a=ju(e),a.return=t,t.child=a,et=t,Ue=null)):e=null,e===null)throw ga(t);return Ec(e)?t.lanes=32:t.lanes=536870912,null}var f=n.children;return n=n.fallback,i?(ja(),i=t.mode,f=Vi({mode:"hidden",children:f},i),n=Ya(n,i,a,null),f.return=t,n.return=t,f.sibling=n,t.child=f,n=t.child,n.memoizedState=Wr(a),n.childLanes=Fr(e,d,a),t.memoizedState=Kr,yn(null,n)):(ya(t),$r(t,f))}var p=e.memoizedState;if(p!==null&&(f=p.dehydrated,f!==null)){if(r)t.flags&256?(ya(t),t.flags&=-257,t=Ir(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),f=n.fallback,i=t.mode,n=Vi({mode:"visible",children:n.children},i),f=Ya(f,i,a,null),f.flags|=2,n.return=t,f.return=t,n.sibling=f,t.child=n,Fa(t,e.child,null,a),n=t.child,n.memoizedState=Wr(a),n.childLanes=Fr(e,d,a),t.memoizedState=Kr,t=yn(null,n));else if(ya(t),Ec(f)){if(d=f.nextSibling&&f.nextSibling.dataset,d)var k=d.dgst;d=k,n=Error(o(419)),n.stack="",n.digest=d,cn({value:n,source:null,stack:null}),t=Ir(e,t,a)}else if(Qe||yl(e,t,a,!1),d=(a&e.childLanes)!==0,Qe||d){if(d=Ce,d!==null&&(n=To(d,a),n!==0&&n!==p.retryLane))throw p.retryLane=n,Ga(e,n),ht(d,e,n),Xr;Mc(f)||Zi(),t=Ir(e,t,a)}else Mc(f)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Ue=Ut(f.nextSibling),et=t,je=!0,ma=null,Et=!1,e!==null&&ku(t,e),t=$r(t,n.children),t.flags|=4096);return t}return i?(ja(),f=n.fallback,i=t.mode,p=e.child,k=p.sibling,n=Wt(p,{mode:"hidden",children:n.children}),n.subtreeFlags=p.subtreeFlags&65011712,k!==null?f=Wt(k,f):(f=Ya(f,i,a,null),f.flags|=2),f.return=t,n.return=t,n.sibling=f,t.child=n,yn(null,n),n=t.child,f=e.child.memoizedState,f===null?f=Wr(a):(i=f.cachePool,i!==null?(p=Ye._currentValue,i=i.parent!==p?{parent:p,pool:p}:i):i=Du(),f={baseLanes:f.baseLanes|a,cachePool:i}),n.memoizedState=f,n.childLanes=Fr(e,d,a),t.memoizedState=Kr,yn(e.child,n)):(ya(t),a=e.child,e=a.sibling,a=Wt(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function $r(e,t){return t=Vi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vi(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Ir(e,t,a){return Fa(t,e.child,null,a),e=$r(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Yd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),hr(e.return,t,a)}function Pr(e,t,a,n,i,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=i,d.treeForkCount=r)}function Jd(e,t,a){var n=t.pendingProps,i=n.revealOrder,r=n.tail;n=n.children;var d=qe.current,f=(d&2)!==0;if(f?(d=d&1|2,t.flags|=128):d&=1,L(qe,d),at(e,t,n,a),n=je?rn:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yd(e,a,t);else if(e.tag===19)Yd(e,a,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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&_i(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Pr(t,!1,i,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_i(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Pr(t,!0,a,null,r,n);break;case"together":Pr(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ta(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yl(e,t,a,!1),(a&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,a=Wt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Wt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xi(e)))}function X0(e,t,a){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),pa(t,Ye,e.memoizedState.cache),Ja();break;case 27:case 5:Ql(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(ya(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Gd(e,t,a):(ya(t),e=ta(e,t,a),e!==null?e.sibling:null);ya(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(yl(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return Jd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),L(qe,qe.current),n)break;return null;case 22:return t.lanes=0,Od(e,t,a,t.pendingProps);case 24:pa(t,Ye,e.memoizedState.cache)}return ta(e,t,a)}function Qd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!ec(e,a)&&(t.flags&128)===0)return Qe=!1,X0(e,t,a);Qe=(e.flags&131072)!==0}else Qe=!1,je&&(t.flags&1048576)!==0&&Su(t,rn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e=="function")ir(e)?(n=Ia(e,n),t.tag=1,t=Bd(null,t,e,n,a)):(t.tag=0,t=Zr(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===K){t.tag=11,t=Cd(null,t,e,n,a);break e}else if(i===D){t.tag=14,t=Ud(null,t,e,n,a);break e}}throw t=Ne(e)||e,Error(o(306,t,""))}}return t;case 0:return Zr(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=Ia(n,t.pendingProps),Bd(e,t,n,i,a);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var r=t.memoizedState;i=r.element,yr(e,t),gn(t,n,null,a);var d=t.memoizedState;if(n=d.cache,pa(t,Ye,n),n!==r.cache&&mr(t,[Ye],a,!0),mn(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=qd(e,t,n,a);break e}else if(n!==i){i=zt(Error(o(424)),t),cn(i),t=qd(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Ut(e.firstChild),et=t,je=!0,ma=null,Et=!0,a=Ou(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ja(),n===i){t=ta(e,t,a);break e}at(e,t,n,a)}t=t.child}return t;case 26:return Ri(e,t),e===null?(a=lh(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,n=es(re.current).createElement(a),n[Pe]=t,n[rt]=e,lt(n,a,e),Fe(n),t.stateNode=n):t.memoizedState=lh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ql(t),e===null&&je&&(n=t.stateNode=eh(t.type,t.pendingProps,re.current),et=t,Et=!0,i=Ue,za(t.type)?(Cc=i,Ue=Ut(n.firstChild)):Ue=i),at(e,t,t.pendingProps.children,a),Ri(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((i=n=Ue)&&(n=Ng(n,t.type,t.pendingProps,Et),n!==null?(t.stateNode=n,et=t,Ue=Ut(n.firstChild),Et=!1,i=!0):i=!1),i||ga(t)),Ql(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,Tc(i,r)?n=null:d!==null&&Tc(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=Ar(e,t,R0,null,null,a),Ln._currentValue=i),Ri(e,t),at(e,t,n,a),t.child;case 6:return e===null&&je&&((e=a=Ue)&&(a=Sg(a,t.pendingProps,Et),a!==null?(t.stateNode=a,et=t,Ue=null,e=!0):e=!1),e||ga(t)),null;case 13:return Gd(e,t,a);case 4:return it(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Fa(t,null,n,a):at(e,t,n,a),t.child;case 11:return Cd(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,pa(t,t.type,n.value),at(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,Xa(t),i=tt(i),n=n(i),t.flags|=1,at(e,t,n,a),t.child;case 14:return Ud(e,t,t.type,t.pendingProps,a);case 15:return Ld(e,t,t.type,t.pendingProps,a);case 19:return Jd(e,t,a);case 31:return Q0(e,t,a);case 22:return Od(e,t,a,t.pendingProps);case 24:return Xa(t),n=tt(Ye),e===null?(i=vr(),i===null&&(i=Ce,r=gr(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:n,cache:i},br(t),pa(t,Ye,i)):((e.lanes&a)!==0&&(yr(e,t),gn(t,null,null,a),mn()),i=e.memoizedState,r=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),pa(t,Ye,n)):(n=r.cache,pa(t,Ye,n),n!==i.cache&&mr(t,[Ye],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function aa(e){e.flags|=4}function tc(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(bf())e.flags|=8192;else throw Wa=Ni,xr}else e.flags&=-16777217}function Xd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ch(t))if(bf())e.flags|=8192;else throw Wa=Ni,xr}function Hi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wo():536870912,e.lanes|=t,El|=t)}function jn(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Z0(e,t,a){var n=t.pendingProps;switch(or(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),It(Ye),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(bl(t)?aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dr())),Le(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(aa(t),r!==null?(Le(t),Xd(t,r)):(Le(t),tc(t,i,null,n,a))):r?r!==e.memoizedState?(aa(t),Le(t),Xd(t,r)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&aa(t),Le(t),tc(t,i,e,n,a)),null;case 27:if(Fn(t),a=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&aa(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Le(t),null}e=G.current,bl(t)?wu(t):(e=eh(i,n,a),t.stateNode=e,aa(t))}return Le(t),null;case 5:if(Fn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&aa(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Le(t),null}if(r=G.current,bl(t))wu(t);else{var d=es(re.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(i,{is:n.is}):d.createElement(i)}}r[Pe]=t,r[rt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(lt(r,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&aa(t)}}return Le(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&aa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,bl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=et,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Yf(e.nodeValue,a)),e||ga(t,!0)}else e=es(e).createTextNode(n),e[Pe]=t,t.stateNode=e}return Le(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=bl(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Pe]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else a=dr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Le(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=bl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Pe]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),i=!1}else i=dr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hi(t,t.updateQueue),Le(t),null);case 4:return Be(),e===null&&Sc(t.stateNode.containerInfo),Le(t),null;case 10:return It(t.type),Le(t),null;case 19:if(S(qe),n=t.memoizedState,n===null)return Le(t),null;if(i=(t.flags&128)!==0,r=n.rendering,r===null)if(i)jn(n,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=_i(e),r!==null){for(t.flags|=128,jn(n,!1),e=r.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)yu(a,e),a=a.sibling;return L(qe,qe.current&1|2),je&&Ft(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&>()>Ji&&(t.flags|=128,i=!0,jn(n,!1),t.lanes=4194304)}else{if(!i)if(e=_i(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),jn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!je)return Le(t),null}else 2*gt()-n.renderingStartTime>Ji&&a!==536870912&&(t.flags|=128,i=!0,jn(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=gt(),e.sibling=null,a=qe.current,L(qe,i?a&1|2:a&1),je&&Ft(t,n.treeForkCount),e):(Le(t),null);case 22:case 23:return jt(t),kr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),a=t.updateQueue,a!==null&&Hi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&S(Za),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Ye),Le(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function K0(e,t){switch(or(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ye),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fn(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(o(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return S(qe),null;case 4:return Be(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),kr(),e!==null&&S(Za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ye),null;case 25:return null;default:return null}}function Zd(e,t){switch(or(t),t.tag){case 3:It(Ye),Be();break;case 26:case 27:case 5:Fn(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:S(qe);break;case 10:It(t.type);break;case 22:case 23:jt(t),kr(),e!==null&&S(Za);break;case 24:It(Ye)}}function Nn(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==i)}}catch(f){ze(t,t.return,f)}}function Na(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){var d=n.inst,f=d.destroy;if(f!==void 0){d.destroy=void 0,i=t;var p=a,k=f;try{k()}catch(C){ze(i,p,C)}}}n=n.next}while(n!==r)}}catch(C){ze(t,t.return,C)}}function Kd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Vu(t,a)}catch(n){ze(e,e.return,n)}}}function Wd(e,t,a){a.props=Ia(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){ze(e,t,n)}}function Sn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){ze(e,t,i)}}function Gt(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){ze(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){ze(e,t,i)}else a.current=null}function Fd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){ze(e,e.return,i)}}function ac(e,t,a){try{var n=e.stateNode;pg(n,e.type,a,t),n[rt]=t}catch(i){ze(e,e.return,i)}}function $d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(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&&za(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 nc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Zt));else if(n!==4&&(n===27&&za(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,a),e=e.sibling;e!==null;)nc(e,t,a),e=e.sibling}function Bi(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&za(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Bi(e,t,a),e=e.sibling;e!==null;)Bi(e,t,a),e=e.sibling}function Id(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lt(t,n,a),t[Pe]=e,t[rt]=a}catch(r){ze(e,e.return,r)}}var la=!1,Xe=!1,ic=!1,Pd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function W0(e,t){if(e=e.containerInfo,_c=rs,e=du(e),Is(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,f=-1,p=-1,k=0,C=0,O=e,w=null;t:for(;;){for(var A;O!==a||i!==0&&O.nodeType!==3||(f=d+i),O!==r||n!==0&&O.nodeType!==3||(p=d+n),O.nodeType===3&&(d+=O.nodeValue.length),(A=O.firstChild)!==null;)w=O,O=A;for(;;){if(O===e)break t;if(w===a&&++k===i&&(f=d),w===r&&++C===n&&(p=d),(A=O.nextSibling)!==null)break;O=w,w=O.parentNode}O=A}a=f===-1||p===-1?null:{start:f,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:e,selectionRange:a},rs=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,r=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(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,i=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var W=Ia(a.type,i);e=n.getSnapshotBeforeUpdate(W,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(se){ze(a,a.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Dc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Dc(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,$e=e;break}$e=t.return}}function ef(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:ia(e,a),n&4&&Nn(5,a);break;case 1:if(ia(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){ze(a,a.return,d)}else{var i=Ia(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){ze(a,a.return,d)}}n&64&&Kd(a),n&512&&Sn(a,a.return);break;case 3:if(ia(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Vu(e,t)}catch(d){ze(a,a.return,d)}}break;case 27:t===null&&n&4&&Id(a);case 26:case 5:ia(e,a),t===null&&n&4&&Fd(a),n&512&&Sn(a,a.return);break;case 12:ia(e,a);break;case 31:ia(e,a),n&4&&lf(e,a);break;case 13:ia(e,a),n&4&&nf(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ng.bind(null,a),kg(e,a))));break;case 22:if(n=a.memoizedState!==null||la,!n){t=t!==null&&t.memoizedState!==null||Xe,i=la;var r=Xe;la=n,(Xe=t)&&!r?sa(e,a,(a.subtreeFlags&8772)!==0):ia(e,a),la=i,Xe=r}break;case 30:break;default:ia(e,a)}}function tf(e){var t=e.alternate;t!==null&&(e.alternate=null,tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ls(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 Oe=null,ot=!1;function na(e,t,a){for(a=a.child;a!==null;)af(e,t,a),a=a.sibling}function af(e,t,a){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Xl,a)}catch{}switch(a.tag){case 26:Xe||Gt(a,t),na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||Gt(a,t);var n=Oe,i=ot;za(a.type)&&(Oe=a.stateNode,ot=!1),na(e,t,a),En(a.stateNode),Oe=n,ot=i;break;case 5:Xe||Gt(a,t);case 6:if(n=Oe,i=ot,Oe=null,na(e,t,a),Oe=n,ot=i,Oe!==null)if(ot)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(a.stateNode)}catch(r){ze(a,t,r)}else try{Oe.removeChild(a.stateNode)}catch(r){ze(a,t,r)}break;case 18:Oe!==null&&(ot?(e=Oe,Wf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bl(e)):Wf(Oe,a.stateNode));break;case 4:n=Oe,i=ot,Oe=a.stateNode.containerInfo,ot=!0,na(e,t,a),Oe=n,ot=i;break;case 0:case 11:case 14:case 15:Na(2,a,t),Xe||Na(4,a,t),na(e,t,a);break;case 1:Xe||(Gt(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Wd(a,t,n)),na(e,t,a);break;case 21:na(e,t,a);break;case 22:Xe=(n=Xe)||a.memoizedState!==null,na(e,t,a),Xe=n;break;default:na(e,t,a)}}function lf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bl(e)}catch(a){ze(t,t.return,a)}}}function nf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bl(e)}catch(a){ze(t,t.return,a)}}function F0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Pd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Pd),t;default:throw Error(o(435,e.tag))}}function qi(e,t){var a=F0(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=ig.bind(null,e,n);n.then(i,i)}})}function ut(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],r=e,d=t,f=d;e:for(;f!==null;){switch(f.tag){case 27:if(za(f.type)){Oe=f.stateNode,ot=!1;break e}break;case 5:Oe=f.stateNode,ot=!1;break e;case 3:case 4:Oe=f.stateNode.containerInfo,ot=!0;break e}f=f.return}if(Oe===null)throw Error(o(160));af(r,d,i),Oe=null,ot=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)sf(t,e),t=t.sibling}var Vt=null;function sf(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),dt(e),n&4&&(Na(3,e,e.return),Nn(3,e),Na(5,e,e.return));break;case 1:ut(t,e),dt(e),n&512&&(Xe||a===null||Gt(a,a.return)),n&64&&la&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=Vt;if(ut(t,e),dt(e),n&512&&(Xe||a===null||Gt(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Wl]||r[Pe]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(n),i.head.insertBefore(r,i.querySelector("head > title"))),lt(r,n,a),r[Pe]=e,Fe(r),n=r;break e;case"link":var d=sh("link","href",i).get(n+(a.href||""));if(d){for(var f=0;f<d.length;f++)if(r=d[f],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(f,1);break t}}r=i.createElement(n),lt(r,n,a),i.head.appendChild(r);break;case"meta":if(d=sh("meta","content",i).get(n+(a.content||""))){for(f=0;f<d.length;f++)if(r=d[f],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(f,1);break t}}r=i.createElement(n),lt(r,n,a),i.head.appendChild(r);break;default:throw Error(o(468,n))}r[Pe]=e,Fe(r),n=r}e.stateNode=n}else rh(i,e.type,e.stateNode);else e.stateNode=ih(i,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?rh(i,e.type,e.stateNode):ih(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ac(e,e.memoizedProps,a.memoizedProps)}break;case 27:ut(t,e),dt(e),n&512&&(Xe||a===null||Gt(a,a.return)),a!==null&&n&4&&ac(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ut(t,e),dt(e),n&512&&(Xe||a===null||Gt(a,a.return)),e.flags&32){i=e.stateNode;try{ol(i,"")}catch(W){ze(e,e.return,W)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,ac(e,i,a!==null?a.memoizedProps:i)),n&1024&&(ic=!0);break;case 6:if(ut(t,e),dt(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(W){ze(e,e.return,W)}}break;case 3:if(ls=null,i=Vt,Vt=ts(t.containerInfo),ut(t,e),Vt=i,dt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Bl(t.containerInfo)}catch(W){ze(e,e.return,W)}ic&&(ic=!1,rf(e));break;case 4:n=Vt,Vt=ts(e.stateNode.containerInfo),ut(t,e),dt(e),Vt=n;break;case 12:ut(t,e),dt(e);break;case 31:ut(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qi(e,n)));break;case 13:ut(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yi=gt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qi(e,n)));break;case 22:i=e.memoizedState!==null;var p=a!==null&&a.memoizedState!==null,k=la,C=Xe;if(la=k||i,Xe=C||p,ut(t,e),Xe=C,la=k,dt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||p||la||Xe||Pa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){p=a=t;try{if(r=p.stateNode,i)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{f=p.stateNode;var O=p.memoizedProps.style,w=O!=null&&O.hasOwnProperty("display")?O.display:null;f.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(W){ze(p,p.return,W)}}}else if(t.tag===6){if(a===null){p=t;try{p.stateNode.nodeValue=i?"":p.memoizedProps}catch(W){ze(p,p.return,W)}}}else if(t.tag===18){if(a===null){p=t;try{var A=p.stateNode;i?Ff(A,!0):Ff(p.stateNode,!1)}catch(W){ze(p,p.return,W)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,qi(e,a))));break;case 19:ut(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qi(e,n)));break;case 30:break;case 21:break;default:ut(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if($d(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,r=lc(e);Bi(e,r,i);break;case 5:var d=a.stateNode;a.flags&32&&(ol(d,""),a.flags&=-33);var f=lc(e);Bi(e,f,d);break;case 3:case 4:var p=a.stateNode.containerInfo,k=lc(e);nc(e,k,p);break;default:throw Error(o(161))}}catch(C){ze(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ef(e,t.alternate,t),t=t.sibling}function Pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Na(4,t,t.return),Pa(t);break;case 1:Gt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Wd(t,t.return,a),Pa(t);break;case 27:En(t.stateNode);case 26:case 5:Gt(t,t.return),Pa(t);break;case 22:t.memoizedState===null&&Pa(t);break;case 30:Pa(t);break;default:Pa(t)}e=e.sibling}}function sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:sa(i,r,a),Nn(4,r);break;case 1:if(sa(i,r,a),n=r,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(k){ze(n,n.return,k)}if(n=r,i=n.updateQueue,i!==null){var f=n.stateNode;try{var p=i.shared.hiddenCallbacks;if(p!==null)for(i.shared.hiddenCallbacks=null,i=0;i<p.length;i++)Ru(p[i],f)}catch(k){ze(n,n.return,k)}}a&&d&64&&Kd(r),Sn(r,r.return);break;case 27:Id(r);case 26:case 5:sa(i,r,a),a&&n===null&&d&4&&Fd(r),Sn(r,r.return);break;case 12:sa(i,r,a);break;case 31:sa(i,r,a),a&&d&4&&lf(i,r);break;case 13:sa(i,r,a),a&&d&4&&nf(i,r);break;case 22:r.memoizedState===null&&sa(i,r,a),Sn(r,r.return);break;case 30:break;default:sa(i,r,a)}t=t.sibling}}function sc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&on(a))}function rc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&on(e))}function Ht(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cf(e,t,a,n),t=t.sibling}function cf(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,a,n),i&2048&&Nn(9,t);break;case 1:Ht(e,t,a,n);break;case 3:Ht(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&on(e)));break;case 12:if(i&2048){Ht(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,f=r.onPostCommit;typeof f=="function"&&f(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){ze(t,t.return,p)}}else Ht(e,t,a,n);break;case 31:Ht(e,t,a,n);break;case 13:Ht(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Ht(e,t,a,n):kn(e,t):r._visibility&2?Ht(e,t,a,n):(r._visibility|=2,zl(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&sc(d,t);break;case 24:Ht(e,t,a,n),i&2048&&rc(t.alternate,t);break;default:Ht(e,t,a,n)}}function zl(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,f=a,p=n,k=d.flags;switch(d.tag){case 0:case 11:case 15:zl(r,d,f,p,i),Nn(8,d);break;case 23:break;case 22:var C=d.stateNode;d.memoizedState!==null?C._visibility&2?zl(r,d,f,p,i):kn(r,d):(C._visibility|=2,zl(r,d,f,p,i)),i&&k&2048&&sc(d.alternate,d);break;case 24:zl(r,d,f,p,i),i&&k&2048&&rc(d.alternate,d);break;default:zl(r,d,f,p,i)}t=t.sibling}}function kn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:kn(a,n),i&2048&&sc(n.alternate,n);break;case 24:kn(a,n),i&2048&&rc(n.alternate,n);break;default:kn(a,n)}t=t.sibling}}var wn=8192;function Dl(e,t,a){if(e.subtreeFlags&wn)for(e=e.child;e!==null;)of(e,t,a),e=e.sibling}function of(e,t,a){switch(e.tag){case 26:Dl(e,t,a),e.flags&wn&&e.memoizedState!==null&&Og(a,Vt,e.memoizedState,e.memoizedProps);break;case 5:Dl(e,t,a);break;case 3:case 4:var n=Vt;Vt=ts(e.stateNode.containerInfo),Dl(e,t,a),Vt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=wn,wn=16777216,Dl(e,t,a),wn=n):Dl(e,t,a));break;default:Dl(e,t,a)}}function uf(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 _n(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];$e=n,ff(n,e)}uf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)df(e),e=e.sibling}function df(e){switch(e.tag){case 0:case 11:case 15:_n(e),e.flags&2048&&Na(9,e,e.return);break;case 3:_n(e);break;case 12:_n(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gi(e)):_n(e);break;default:_n(e)}}function Gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];$e=n,ff(n,e)}uf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Na(8,t,t.return),Gi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Gi(t));break;default:Gi(t)}e=e.sibling}}function ff(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:Na(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:on(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,$e=n;else e:for(a=e;$e!==null;){n=$e;var i=n.sibling,r=n.return;if(tf(n),n===a){$e=null;break e}if(i!==null){i.return=r,$e=i;break e}$e=r}}}var $0={getCacheForType:function(e){var t=tt(Ye),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return tt(Ye).controller.signal}},I0=typeof WeakMap=="function"?WeakMap:Map,we=0,Ce=null,ve=null,be=0,Te=0,Nt=null,Sa=!1,Ml=!1,cc=!1,ra=0,Ve=0,ka=0,el=0,oc=0,St=0,El=0,An=null,ft=null,uc=!1,Yi=0,hf=0,Ji=1/0,Qi=null,wa=null,Ke=0,_a=null,Cl=null,ca=0,dc=0,fc=null,mf=null,Tn=0,hc=null;function kt(){return(we&2)!==0&&be!==0?be&-be:v.T!==null?bc():zo()}function gf(){if(St===0)if((be&536870912)===0||je){var e=Pn;Pn<<=1,(Pn&3932160)===0&&(Pn=262144),St=e}else St=536870912;return e=yt.current,e!==null&&(e.flags|=32),St}function ht(e,t,a){(e===Ce&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Ul(e,0),Aa(e,be,St,!1)),Kl(e,a),((we&2)===0||e!==Ce)&&(e===Ce&&((we&2)===0&&(el|=a),Ve===4&&Aa(e,be,St,!1)),Yt(e))}function pf(e,t,a){if((we&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Zl(e,t),i=n?tg(e,t):gc(e,t,!0),r=n;do{if(i===0){Ml&&!n&&Aa(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!P0(a)){i=gc(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var f=e;i=An;var p=f.current.memoizedState.isDehydrated;if(p&&(Ul(f,d).flags|=256),d=gc(f,d,!1),d!==2){if(cc&&!p){f.errorRecoveryDisabledLanes|=r,el|=r,i=4;break e}r=ft,ft=i,r!==null&&(ft===null?ft=r:ft.push.apply(ft,r))}i=d}if(r=!1,i!==2)continue}}if(i===1){Ul(e,0),Aa(e,t,0,!0);break}e:{switch(n=e,r=i,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Aa(n,t,St,!Sa);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Yi+300-gt(),10<i)){if(Aa(n,t,St,!Sa),ti(n,0,!0)!==0)break e;ca=t,n.timeoutHandle=Zf(vf.bind(null,n,a,ft,Qi,uc,t,St,el,El,Sa,r,"Throttled",-0,0),i);break e}vf(n,a,ft,Qi,uc,t,St,el,El,Sa,r,null,-0,0)}}break}while(!0);Yt(e)}function vf(e,t,a,n,i,r,d,f,p,k,C,O,w,A){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},of(t,r,O);var W=(r&62914560)===r?Yi-gt():(r&4194048)===r?hf-gt():0;if(W=Rg(O,W),W!==null){ca=r,e.cancelPendingCommit=W(wf.bind(null,e,t,r,a,n,i,d,f,p,C,O,null,w,A)),Aa(e,r,d,!k);return}}wf(e,t,r,a,n,i,d,f,p)}function P0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],r=i.getSnapshot;i=i.value;try{if(!xt(r(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Aa(e,t,a,n){t&=~oc,t&=~el,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var r=31-vt(i),d=1<<r;n[r]=-1,i&=~d}a!==0&&_o(e,a,t)}function Xi(){return(we&6)===0?(zn(0),!1):!0}function mc(){if(ve!==null){if(Te===0)var e=ve.return;else e=ve,$t=Qa=null,Dr(e),kl=null,dn=0,e=ve;for(;e!==null;)Zd(e.alternate,e),e=e.return;ve=null}}function Ul(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,bg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ca=0,mc(),Ce=e,ve=a=Wt(e.current,null),be=t,Te=0,Nt=null,Sa=!1,Ml=Zl(e,t),cc=!1,El=St=oc=el=ka=Ve=0,ft=An=null,uc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-vt(n),r=1<<i;t|=e[i],n&=~r}return ra=t,hi(),a}function xf(e,t){ge=null,v.H=bn,t===Sl||t===ji?(t=Cu(),Te=3):t===xr?(t=Cu(),Te=4):Te=t===Xr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nt=t,ve===null&&(Ve=1,Li(e,zt(t,e.current)))}function bf(){var e=yt.current;return e===null?!0:(be&4194048)===be?Ct===null:(be&62914560)===be||(be&536870912)!==0?e===Ct:!1}function yf(){var e=v.H;return v.H=bn,e===null?bn:e}function jf(){var e=v.A;return v.A=$0,e}function Zi(){Ve=4,Sa||(be&4194048)!==be&&yt.current!==null||(Ml=!0),(ka&134217727)===0&&(el&134217727)===0||Ce===null||Aa(Ce,be,St,!1)}function gc(e,t,a){var n=we;we|=2;var i=yf(),r=jf();(Ce!==e||be!==t)&&(Qi=null,Ul(e,t)),t=!1;var d=Ve;e:do try{if(Te!==0&&ve!==null){var f=ve,p=Nt;switch(Te){case 8:mc(),d=6;break e;case 3:case 2:case 9:case 6:yt.current===null&&(t=!0);var k=Te;if(Te=0,Nt=null,Ll(e,f,p,k),a&&Ml){d=0;break e}break;default:k=Te,Te=0,Nt=null,Ll(e,f,p,k)}}eg(),d=Ve;break}catch(C){xf(e,C)}while(!0);return t&&e.shellSuspendCounter++,$t=Qa=null,we=n,v.H=i,v.A=r,ve===null&&(Ce=null,be=0,hi()),d}function eg(){for(;ve!==null;)Nf(ve)}function tg(e,t){var a=we;we|=2;var n=yf(),i=jf();Ce!==e||be!==t?(Qi=null,Ji=gt()+500,Ul(e,t)):Ml=Zl(e,t);e:do try{if(Te!==0&&ve!==null){t=ve;var r=Nt;t:switch(Te){case 1:Te=0,Nt=null,Ll(e,t,r,1);break;case 2:case 9:if(Mu(r)){Te=0,Nt=null,Sf(t);break}t=function(){Te!==2&&Te!==9||Ce!==e||(Te=7),Yt(e)},r.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Mu(r)?(Te=0,Nt=null,Sf(t)):(Te=0,Nt=null,Ll(e,t,r,7));break;case 5:var d=null;switch(ve.tag){case 26:d=ve.memoizedState;case 5:case 27:var f=ve;if(d?ch(d):f.stateNode.complete){Te=0,Nt=null;var p=f.sibling;if(p!==null)ve=p;else{var k=f.return;k!==null?(ve=k,Ki(k)):ve=null}break t}}Te=0,Nt=null,Ll(e,t,r,5);break;case 6:Te=0,Nt=null,Ll(e,t,r,6);break;case 8:mc(),Ve=6;break e;default:throw Error(o(462))}}ag();break}catch(C){xf(e,C)}while(!0);return $t=Qa=null,v.H=n,v.A=i,we=a,ve!==null?0:(Ce=null,be=0,hi(),Ve)}function ag(){for(;ve!==null&&!wm();)Nf(ve)}function Nf(e){var t=Qd(e.alternate,e,ra);e.memoizedProps=e.pendingProps,t===null?Ki(e):ve=t}function Sf(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Hd(a,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Hd(a,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:Dr(t);default:Zd(a,t),t=ve=yu(t,ra),t=Qd(a,t,ra)}e.memoizedProps=e.pendingProps,t===null?Ki(e):ve=t}function Ll(e,t,a,n){$t=Qa=null,Dr(t),kl=null,dn=0;var i=t.return;try{if(J0(e,i,t,a,be)){Ve=1,Li(e,zt(a,e.current)),ve=null;return}}catch(r){if(i!==null)throw ve=i,r;Ve=1,Li(e,zt(a,e.current)),ve=null;return}t.flags&32768?(je||n===1?e=!0:Ml||(be&536870912)!==0?e=!1:(Sa=e=!0,(n===2||n===9||n===3||n===6)&&(n=yt.current,n!==null&&n.tag===13&&(n.flags|=16384))),kf(t,e)):Ki(t)}function Ki(e){var t=e;do{if((t.flags&32768)!==0){kf(t,Sa);return}e=t.return;var a=Z0(t.alternate,t,ra);if(a!==null){ve=a;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ve===0&&(Ve=5)}function kf(e,t){do{var a=K0(e.alternate,e);if(a!==null){a.flags&=32767,ve=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=a}while(e!==null);Ve=6,ve=null}function wf(e,t,a,n,i,r,d,f,p){e.cancelPendingCommit=null;do Wi();while(Ke!==0);if((we&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=lr,Lm(e,a,r,d,f,p),e===Ce&&(ve=Ce=null,be=0),Cl=t,_a=e,ca=a,dc=r,fc=i,mf=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,sg($n,function(){return Df(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=v.T,v.T=null,i=E.p,E.p=2,d=we,we|=4;try{W0(e,t,a)}finally{we=d,E.p=i,v.T=n}}Ke=1,_f(),Af(),Tf()}}function _f(){if(Ke===1){Ke=0;var e=_a,t=Cl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=v.T,v.T=null;var n=E.p;E.p=2;var i=we;we|=4;try{sf(t,e);var r=Ac,d=du(e.containerInfo),f=r.focusedElem,p=r.selectionRange;if(d!==f&&f&&f.ownerDocument&&uu(f.ownerDocument.documentElement,f)){if(p!==null&&Is(f)){var k=p.start,C=p.end;if(C===void 0&&(C=k),"selectionStart"in f)f.selectionStart=k,f.selectionEnd=Math.min(C,f.value.length);else{var O=f.ownerDocument||document,w=O&&O.defaultView||window;if(w.getSelection){var A=w.getSelection(),W=f.textContent.length,se=Math.min(p.start,W),Ee=p.end===void 0?se:Math.min(p.end,W);!A.extend&&se>Ee&&(d=Ee,Ee=se,se=d);var y=ou(f,se),x=ou(f,Ee);if(y&&x&&(A.rangeCount!==1||A.anchorNode!==y.node||A.anchorOffset!==y.offset||A.focusNode!==x.node||A.focusOffset!==x.offset)){var N=O.createRange();N.setStart(y.node,y.offset),A.removeAllRanges(),se>Ee?(A.addRange(N),A.extend(x.node,x.offset)):(N.setEnd(x.node,x.offset),A.addRange(N))}}}}for(O=[],A=f;A=A.parentNode;)A.nodeType===1&&O.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<O.length;f++){var U=O[f];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}rs=!!_c,Ac=_c=null}finally{we=i,E.p=n,v.T=a}}e.current=t,Ke=2}}function Af(){if(Ke===2){Ke=0;var e=_a,t=Cl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=v.T,v.T=null;var n=E.p;E.p=2;var i=we;we|=4;try{ef(e,t.alternate,t)}finally{we=i,E.p=n,v.T=a}}Ke=3}}function Tf(){if(Ke===4||Ke===3){Ke=0,_m();var e=_a,t=Cl,a=ca,n=mf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Cl=_a=null,zf(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(wa=null),Cs(a),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Xl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=v.T,i=E.p,E.p=2,v.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var f=n[d];r(f.value,{componentStack:f.stack})}}finally{v.T=t,E.p=i}}(ca&3)!==0&&Wi(),Yt(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===hc?Tn++:(Tn=0,hc=e):Tn=0,zn(0)}}function zf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,on(t)))}function Wi(){return _f(),Af(),Tf(),Df()}function Df(){if(Ke!==5)return!1;var e=_a,t=dc;dc=0;var a=Cs(ca),n=v.T,i=E.p;try{E.p=32>a?32:a,v.T=null,a=fc,fc=null;var r=_a,d=ca;if(Ke=0,Cl=_a=null,ca=0,(we&6)!==0)throw Error(o(331));var f=we;if(we|=4,df(r.current),cf(r,r.current,d,a),we=f,zn(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Xl,r)}catch{}return!0}finally{E.p=i,v.T=n,zf(e,t)}}function Mf(e,t,a){t=zt(a,t),t=Qr(e.stateNode,t,2),e=ba(e,t,2),e!==null&&(Kl(e,2),Yt(e))}function ze(e,t,a){if(e.tag===3)Mf(e,e,a);else for(;t!==null;){if(t.tag===3){Mf(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(wa===null||!wa.has(n))){e=zt(a,e),a=Md(2),n=ba(t,a,2),n!==null&&(Ed(a,n,t,e),Kl(n,2),Yt(n));break}}t=t.return}}function pc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new I0;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(cc=!0,i.add(a),e=lg.bind(null,e,t,a),t.then(e,e))}function lg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ce===e&&(be&a)===a&&(Ve===4||Ve===3&&(be&62914560)===be&&300>gt()-Yi?(we&2)===0&&Ul(e,0):oc|=a,El===be&&(El=0)),Yt(e)}function Ef(e,t){t===0&&(t=wo()),e=Ga(e,t),e!==null&&(Kl(e,t),Yt(e))}function ng(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ef(e,a)}function ig(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),Ef(e,a)}function sg(e,t){return zs(e,t)}var Fi=null,Ol=null,vc=!1,$i=!1,xc=!1,Ta=0;function Yt(e){e!==Ol&&e.next===null&&(Ol===null?Fi=Ol=e:Ol=Ol.next=e),$i=!0,vc||(vc=!0,cg())}function zn(e,t){if(!xc&&$i){xc=!0;do for(var a=!1,n=Fi;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var r=0;else{var d=n.suspendedLanes,f=n.pingedLanes;r=(1<<31-vt(42|e)+1)-1,r&=i&~(d&~f),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Of(n,r))}else r=be,r=ti(n,n===Ce?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||Zl(n,r)||(a=!0,Of(n,r));n=n.next}while(a);xc=!1}}function rg(){Cf()}function Cf(){$i=vc=!1;var e=0;Ta!==0&&xg()&&(e=Ta);for(var t=gt(),a=null,n=Fi;n!==null;){var i=n.next,r=Uf(n,t);r===0?(n.next=null,a===null?Fi=i:a.next=i,i===null&&(Ol=a)):(a=n,(e!==0||(r&3)!==0)&&($i=!0)),n=i}Ke!==0&&Ke!==5||zn(e),Ta!==0&&(Ta=0)}function Uf(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-vt(r),f=1<<d,p=i[d];p===-1?((f&a)===0||(f&n)!==0)&&(i[d]=Um(f,t)):p<=t&&(e.expiredLanes|=f),r&=~f}if(t=Ce,a=be,a=ti(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Ds(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Zl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Ds(n),Cs(a)){case 2:case 8:a=So;break;case 32:a=$n;break;case 268435456:a=ko;break;default:a=$n}return n=Lf.bind(null,e),a=zs(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Ds(n),e.callbackPriority=2,e.callbackNode=null,2}function Lf(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Wi()&&e.callbackNode!==a)return null;var n=be;return n=ti(e,e===Ce?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(pf(e,n,t),Uf(e,gt()),e.callbackNode!=null&&e.callbackNode===a?Lf.bind(null,e):null)}function Of(e,t){if(Wi())return null;pf(e,t,!0)}function cg(){yg(function(){(we&6)!==0?zs(No,rg):Cf()})}function bc(){if(Ta===0){var e=jl;e===0&&(e=In,In<<=1,(In&261888)===0&&(In=256)),Ta=e}return Ta}function Rf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ii(""+e)}function Vf(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function og(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var r=Rf((i[rt]||null).action),d=n.submitter;d&&(t=(t=d[rt]||null)?Rf(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var f=new oi("action","action",null,n,i);e.push({event:f,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ta!==0){var p=d?Vf(i,d):new FormData(i);Hr(a,{pending:!0,data:p,method:i.method,action:r},null,p)}}else typeof r=="function"&&(f.preventDefault(),p=d?Vf(i,d):new FormData(i),Hr(a,{pending:!0,data:p,method:i.method,action:r},r,p))},currentTarget:i}]})}}for(var yc=0;yc<ar.length;yc++){var jc=ar[yc],ug=jc.toLowerCase(),dg=jc[0].toUpperCase()+jc.slice(1);Rt(ug,"on"+dg)}Rt(mu,"onAnimationEnd"),Rt(gu,"onAnimationIteration"),Rt(pu,"onAnimationStart"),Rt("dblclick","onDoubleClick"),Rt("focusin","onFocus"),Rt("focusout","onBlur"),Rt(A0,"onTransitionRun"),Rt(T0,"onTransitionStart"),Rt(z0,"onTransitionCancel"),Rt(vu,"onTransitionEnd"),rl("onMouseEnter",["mouseout","mouseover"]),rl("onMouseLeave",["mouseout","mouseover"]),rl("onPointerEnter",["pointerout","pointerover"]),rl("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),fg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dn));function Hf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var f=n[d],p=f.instance,k=f.currentTarget;if(f=f.listener,p!==r&&i.isPropagationStopped())break e;r=f,i.currentTarget=k;try{r(i)}catch(C){fi(C)}i.currentTarget=null,r=p}else for(d=0;d<n.length;d++){if(f=n[d],p=f.instance,k=f.currentTarget,f=f.listener,p!==r&&i.isPropagationStopped())break e;r=f,i.currentTarget=k;try{r(i)}catch(C){fi(C)}i.currentTarget=null,r=p}}}}function xe(e,t){var a=t[Us];a===void 0&&(a=t[Us]=new Set);var n=e+"__bubble";a.has(n)||(Bf(t,e,2,!1),a.add(n))}function Nc(e,t,a){var n=0;t&&(n|=4),Bf(a,e,n,t)}var Ii="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[Ii]){e[Ii]=!0,Eo.forEach(function(a){a!=="selectionchange"&&(fg.has(a)||Nc(a,!1,e),Nc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ii]||(t[Ii]=!0,Nc("selectionchange",!1,t))}}function Bf(e,t,a,n){switch(gh(t)){case 2:var i=Bg;break;case 8:i=qg;break;default:i=Vc}a=i.bind(null,t,a,e),i=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function kc(e,t,a,n,i){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var f=n.stateNode.containerInfo;if(f===i)break;if(d===4)for(d=n.return;d!==null;){var p=d.tag;if((p===3||p===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;f!==null;){if(d=nl(f),d===null)return;if(p=d.tag,p===5||p===6||p===26||p===27){n=r=d;continue e}f=f.parentNode}}n=n.return}Jo(function(){var k=r,C=qs(a),O=[];e:{var w=xu.get(e);if(w!==void 0){var A=oi,W=e;switch(e){case"keypress":if(ri(a)===0)break e;case"keydown":case"keyup":A=i0;break;case"focusin":W="focus",A=Zs;break;case"focusout":W="blur",A=Zs;break;case"beforeblur":case"afterblur":A=Zs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Zo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Zm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=c0;break;case mu:case gu:case pu:A=Fm;break;case vu:A=u0;break;case"scroll":case"scrollend":A=Qm;break;case"wheel":A=f0;break;case"copy":case"cut":case"paste":A=Im;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Wo;break;case"toggle":case"beforetoggle":A=m0}var se=(t&4)!==0,Ee=!se&&(e==="scroll"||e==="scrollend"),y=se?w!==null?w+"Capture":null:w;se=[];for(var x=k,N;x!==null;){var U=x;if(N=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||N===null||y===null||(U=$l(x,y),U!=null&&se.push(Mn(x,U,N))),Ee)break;x=x.return}0<se.length&&(w=new A(w,W,null,a,C),O.push({event:w,listeners:se}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",w&&a!==Bs&&(W=a.relatedTarget||a.fromElement)&&(nl(W)||W[ll]))break e;if((A||w)&&(w=C.window===C?C:(w=C.ownerDocument)?w.defaultView||w.parentWindow:window,A?(W=a.relatedTarget||a.toElement,A=k,W=W?nl(W):null,W!==null&&(Ee=g(W),se=W.tag,W!==Ee||se!==5&&se!==27&&se!==6)&&(W=null)):(A=null,W=k),A!==W)){if(se=Zo,U="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(se=Wo,U="onPointerLeave",y="onPointerEnter",x="pointer"),Ee=A==null?w:Fl(A),N=W==null?w:Fl(W),w=new se(U,x+"leave",A,a,C),w.target=Ee,w.relatedTarget=N,U=null,nl(C)===k&&(se=new se(y,x+"enter",W,a,C),se.target=N,se.relatedTarget=Ee,U=se),Ee=U,A&&W)t:{for(se=hg,y=A,x=W,N=0,U=y;U;U=se(U))N++;U=0;for(var ae=x;ae;ae=se(ae))U++;for(;0<N-U;)y=se(y),N--;for(;0<U-N;)x=se(x),U--;for(;N--;){if(y===x||x!==null&&y===x.alternate){se=y;break t}y=se(y),x=se(x)}se=null}else se=null;A!==null&&qf(O,w,A,se,!1),W!==null&&Ee!==null&&qf(O,Ee,W,se,!0)}}e:{if(w=k?Fl(k):window,A=w.nodeName&&w.nodeName.toLowerCase(),A==="select"||A==="input"&&w.type==="file")var Se=lu;else if(tu(w))if(nu)Se=k0;else{Se=N0;var I=j0}else A=w.nodeName,!A||A.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?k&&Hs(k.elementType)&&(Se=lu):Se=S0;if(Se&&(Se=Se(e,k))){au(O,Se,a,C);break e}I&&I(e,w,k),e==="focusout"&&k&&w.type==="number"&&k.memoizedProps.value!=null&&Vs(w,"number",w.value)}switch(I=k?Fl(k):window,e){case"focusin":(tu(I)||I.contentEditable==="true")&&(hl=I,Ps=k,sn=null);break;case"focusout":sn=Ps=hl=null;break;case"mousedown":er=!0;break;case"contextmenu":case"mouseup":case"dragend":er=!1,fu(O,a,C);break;case"selectionchange":if(_0)break;case"keydown":case"keyup":fu(O,a,C)}var pe;if(Ws)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else fl?Po(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Fo&&a.locale!=="ko"&&(fl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&fl&&(pe=Qo()):(fa=C,Js="value"in fa?fa.value:fa.textContent,fl=!0)),I=Pi(k,ye),0<I.length&&(ye=new Ko(ye,e,null,a,C),O.push({event:ye,listeners:I}),pe?ye.data=pe:(pe=eu(a),pe!==null&&(ye.data=pe)))),(pe=p0?v0(e,a):x0(e,a))&&(ye=Pi(k,"onBeforeInput"),0<ye.length&&(I=new Ko("onBeforeInput","beforeinput",null,a,C),O.push({event:I,listeners:ye}),I.data=pe)),og(O,e,k,a,C)}Hf(O,t)})}function Mn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Pi(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=$l(e,a),i!=null&&n.unshift(Mn(e,i,r)),i=$l(e,t),i!=null&&n.push(Mn(e,i,r))),e.tag===3)return n;e=e.return}return[]}function hg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qf(e,t,a,n,i){for(var r=t._reactName,d=[];a!==null&&a!==n;){var f=a,p=f.alternate,k=f.stateNode;if(f=f.tag,p!==null&&p===n)break;f!==5&&f!==26&&f!==27||k===null||(p=k,i?(k=$l(a,r),k!=null&&d.unshift(Mn(a,k,p))):i||(k=$l(a,r),k!=null&&d.push(Mn(a,k,p)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var mg=/\r\n?/g,gg=/\u0000|\uFFFD/g;function Gf(e){return(typeof e=="string"?e:""+e).replace(mg,`
|
||
`).replace(gg,"")}function Yf(e,t){return t=Gf(t),Gf(e)===t}function Me(e,t,a,n,i,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||ol(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&ol(e,""+n);break;case"className":li(e,"class",n);break;case"tabIndex":li(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":li(e,a,n);break;case"style":Go(e,n,r);break;case"data":if(t!=="object"){li(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=ii(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",i.name,i,null),Me(e,t,"formEncType",i.formEncType,i,null),Me(e,t,"formMethod",i.formMethod,i,null),Me(e,t,"formTarget",i.formTarget,i,null)):(Me(e,t,"encType",i.encType,i,null),Me(e,t,"method",i.method,i,null),Me(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=ii(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Zt);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=ii(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":xe("beforetoggle",e),xe("toggle",e),ai(e,"popover",n);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":ai(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ym.get(a)||a,ai(e,a,n))}}function wc(e,t,a,n,i,r){switch(a){case"style":Go(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?ol(e,n):(typeof n=="number"||typeof n=="bigint")&&ol(e,""+n);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Co.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),r=e[rt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):ai(e,a,n)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var n=!1,i=!1,r;for(r in a)if(a.hasOwnProperty(r)){var d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,r,d,a,null)}}i&&Me(e,t,"srcSet",a.srcSet,a,null),n&&Me(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var f=r=d=i=null,p=null,k=null;for(n in a)if(a.hasOwnProperty(n)){var C=a[n];if(C!=null)switch(n){case"name":i=C;break;case"type":d=C;break;case"checked":p=C;break;case"defaultChecked":k=C;break;case"value":r=C;break;case"defaultValue":f=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:Me(e,t,n,C,a,null)}}Vo(e,r,f,p,k,d,i,!1);return;case"select":xe("invalid",e),n=d=r=null;for(i in a)if(a.hasOwnProperty(i)&&(f=a[i],f!=null))switch(i){case"value":r=f;break;case"defaultValue":d=f;break;case"multiple":n=f;default:Me(e,t,i,f,a,null)}t=r,a=d,e.multiple=!!n,t!=null?cl(e,!!n,t,!1):a!=null&&cl(e,!!n,a,!0);return;case"textarea":xe("invalid",e),r=i=n=null;for(d in a)if(a.hasOwnProperty(d)&&(f=a[d],f!=null))switch(d){case"value":n=f;break;case"defaultValue":i=f;break;case"children":r=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:Me(e,t,d,f,a,null)}Bo(e,n,i,r);return;case"option":for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null)&&(p==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Me(e,t,p,n,a,null));return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(n=0;n<Dn.length;n++)xe(Dn[n],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(k in a)if(a.hasOwnProperty(k)&&(n=a[k],n!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,k,n,a,null)}return;default:if(Hs(t)){for(C in a)a.hasOwnProperty(C)&&(n=a[C],n!==void 0&&wc(e,t,C,n,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(n=a[f],n!=null&&Me(e,t,f,n,a,null))}function pg(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,d=null,f=null,p=null,k=null,C=null;for(A in a){var O=a[A];if(a.hasOwnProperty(A)&&O!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=O;default:n.hasOwnProperty(A)||Me(e,t,A,null,n,O)}}for(var w in n){var A=n[w];if(O=a[w],n.hasOwnProperty(w)&&(A!=null||O!=null))switch(w){case"type":r=A;break;case"name":i=A;break;case"checked":k=A;break;case"defaultChecked":C=A;break;case"value":d=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==O&&Me(e,t,w,A,n,O)}}Rs(e,d,f,p,k,C,r,i);return;case"select":A=d=f=w=null;for(r in a)if(p=a[r],a.hasOwnProperty(r)&&p!=null)switch(r){case"value":break;case"multiple":A=p;default:n.hasOwnProperty(r)||Me(e,t,r,null,n,p)}for(i in n)if(r=n[i],p=a[i],n.hasOwnProperty(i)&&(r!=null||p!=null))switch(i){case"value":w=r;break;case"defaultValue":f=r;break;case"multiple":d=r;default:r!==p&&Me(e,t,i,r,n,p)}t=f,a=d,n=A,w!=null?cl(e,!!a,w,!1):!!n!=!!a&&(t!=null?cl(e,!!a,t,!0):cl(e,!!a,a?[]:"",!1));return;case"textarea":A=w=null;for(f in a)if(i=a[f],a.hasOwnProperty(f)&&i!=null&&!n.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Me(e,t,f,null,n,i)}for(d in n)if(i=n[d],r=a[d],n.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":w=i;break;case"defaultValue":A=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==r&&Me(e,t,d,i,n,r)}Ho(e,w,A);return;case"option":for(var W in a)w=a[W],a.hasOwnProperty(W)&&w!=null&&!n.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:Me(e,t,W,null,n,w));for(p in n)w=n[p],A=a[p],n.hasOwnProperty(p)&&w!==A&&(w!=null||A!=null)&&(p==="selected"?e.selected=w&&typeof w!="function"&&typeof w!="symbol":Me(e,t,p,w,n,A));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in a)w=a[se],a.hasOwnProperty(se)&&w!=null&&!n.hasOwnProperty(se)&&Me(e,t,se,null,n,w);for(k in n)if(w=n[k],A=a[k],n.hasOwnProperty(k)&&w!==A&&(w!=null||A!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:Me(e,t,k,w,n,A)}return;default:if(Hs(t)){for(var Ee in a)w=a[Ee],a.hasOwnProperty(Ee)&&w!==void 0&&!n.hasOwnProperty(Ee)&&wc(e,t,Ee,void 0,n,w);for(C in n)w=n[C],A=a[C],!n.hasOwnProperty(C)||w===A||w===void 0&&A===void 0||wc(e,t,C,w,n,A);return}}for(var y in a)w=a[y],a.hasOwnProperty(y)&&w!=null&&!n.hasOwnProperty(y)&&Me(e,t,y,null,n,w);for(O in n)w=n[O],A=a[O],!n.hasOwnProperty(O)||w===A||w==null&&A==null||Me(e,t,O,w,n,A)}function Jf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],r=i.transferSize,d=i.initiatorType,f=i.duration;if(r&&f&&Jf(d)){for(d=0,f=i.responseEnd,n+=1;n<a.length;n++){var p=a[n],k=p.startTime;if(k>f)break;var C=p.transferSize,O=p.initiatorType;C&&Jf(O)&&(p=p.responseEnd,d+=C*(p<f?1:(f-k)/(p-k)))}if(--n,t+=8*(r+d)/(i.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 _c=null,Ac=null;function es(e){return e.nodeType===9?e:e.ownerDocument}function Qf(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 Xf(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 Tc(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 zc=null;function xg(){var e=window.event;return e&&e.type==="popstate"?e===zc?!1:(zc=e,!0):(zc=null,!1)}var Zf=typeof setTimeout=="function"?setTimeout:void 0,bg=typeof clearTimeout=="function"?clearTimeout:void 0,Kf=typeof Promise=="function"?Promise:void 0,yg=typeof queueMicrotask=="function"?queueMicrotask:typeof Kf<"u"?function(e){return Kf.resolve(null).then(e).catch(jg)}:Zf;function jg(e){setTimeout(function(){throw e})}function za(e){return e==="head"}function Wf(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),Bl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")En(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,En(a);for(var r=a.firstChild;r;){var d=r.nextSibling,f=r.nodeName;r[Wl]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&En(e.ownerDocument.body);a=i}while(a);Bl(t)}function Ff(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Dc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Dc(a),Ls(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Ng(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Wl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function Sg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ut(e.nextSibling),e===null))return null;return e}function $f(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ut(e.nextSibling),e===null))return null;return e}function Mc(e){return e.data==="$?"||e.data==="$~"}function Ec(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function kg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ut(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 Cc=null;function If(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ut(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function eh(e,t,a){switch(t=es(a),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 En(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ls(e)}var Lt=new Map,th=new Set;function ts(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var oa=E.d;E.d={f:wg,r:_g,D:Ag,C:Tg,L:zg,m:Dg,X:Eg,S:Mg,M:Cg};function wg(){var e=oa.f(),t=Xi();return e||t}function _g(e){var t=il(e);t!==null&&t.tag===5&&t.type==="form"?vd(t):oa.r(e)}var Rl=typeof document>"u"?null:document;function ah(e,t,a){var n=Rl;if(n&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),th.has(i)||(th.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),lt(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Ag(e){oa.D(e),ah("dns-prefetch",e,null)}function Tg(e,t){oa.C(e,t),ah("preconnect",e,t)}function zg(e,t,a){oa.L(e,t,a);var n=Rl;if(n&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+At(a.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var r=i;switch(t){case"style":r=Vl(e);break;case"script":r=Hl(e)}Lt.has(r)||(e=T({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Lt.set(r,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Cn(r))||t==="script"&&n.querySelector(Un(r))||(t=n.createElement("link"),lt(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Dg(e,t){oa.m(e,t);var a=Rl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(n)+'"][href="'+At(e)+'"]',r=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Hl(e)}if(!Lt.has(r)&&(e=T({rel:"modulepreload",href:e},t),Lt.set(r,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Un(r)))return}n=a.createElement("link"),lt(n,"link",e),Fe(n),a.head.appendChild(n)}}}function Mg(e,t,a){oa.S(e,t,a);var n=Rl;if(n&&e){var i=sl(n).hoistableStyles,r=Vl(e);t=t||"default";var d=i.get(r);if(!d){var f={loading:0,preload:null};if(d=n.querySelector(Cn(r)))f.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Lt.get(r))&&Uc(e,a);var p=d=n.createElement("link");Fe(p),lt(p,"link",e),p._p=new Promise(function(k,C){p.onload=k,p.onerror=C}),p.addEventListener("load",function(){f.loading|=1}),p.addEventListener("error",function(){f.loading|=2}),f.loading|=4,as(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:f},i.set(r,d)}}}function Eg(e,t){oa.X(e,t);var a=Rl;if(a&&e){var n=sl(a).hoistableScripts,i=Hl(e),r=n.get(i);r||(r=a.querySelector(Un(i)),r||(e=T({src:e,async:!0},t),(t=Lt.get(i))&&Lc(e,t),r=a.createElement("script"),Fe(r),lt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function Cg(e,t){oa.M(e,t);var a=Rl;if(a&&e){var n=sl(a).hoistableScripts,i=Hl(e),r=n.get(i);r||(r=a.querySelector(Un(i)),r||(e=T({src:e,async:!0,type:"module"},t),(t=Lt.get(i))&&Lc(e,t),r=a.createElement("script"),Fe(r),lt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function lh(e,t,a,n){var i=(i=re.current)?ts(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Vl(a.href),a=sl(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vl(a.href);var r=sl(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Cn(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Lt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Lt.set(e,a),r||Ug(i,e,a,d.state))),t&&n===null)throw Error(o(528,""));return d}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hl(a),a=sl(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Vl(e){return'href="'+At(e)+'"'}function Cn(e){return'link[rel="stylesheet"]['+e+"]"}function nh(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Ug(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),lt(t,"link",a),Fe(t),e.head.appendChild(t))}function Hl(e){return'[src="'+At(e)+'"]'}function Un(e){return"script[async]"+e}function ih(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(n)return t.instance=n,Fe(n),n;var i=T({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Fe(n),lt(n,"style",i),as(n,a.precedence,e),t.instance=n;case"stylesheet":i=Vl(a.href);var r=e.querySelector(Cn(i));if(r)return t.state.loading|=4,t.instance=r,Fe(r),r;n=nh(a),(i=Lt.get(i))&&Uc(n,i),r=(e.ownerDocument||e).createElement("link"),Fe(r);var d=r;return d._p=new Promise(function(f,p){d.onload=f,d.onerror=p}),lt(r,"link",n),t.state.loading|=4,as(r,a.precedence,e),t.instance=r;case"script":return r=Hl(a.src),(i=e.querySelector(Un(r)))?(t.instance=i,Fe(i),i):(n=a,(i=Lt.get(r))&&(n=T({},a),Lc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Fe(i),lt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,as(n,a.precedence,e));return t.instance}function as(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,r=i,d=0;d<n.length;d++){var f=n[d];if(f.dataset.precedence===t)r=f;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ls=null;function sh(e,t,a){if(ls===null){var n=new Map,i=ls=new Map;i.set(a,n)}else i=ls,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[Wl]||r[Pe]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var f=n.get(d);f?f.push(r):n.set(d,[r])}}return n}function rh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Lg(e,t,a){if(a===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 ch(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Og(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Vl(n.href),r=t.querySelector(Cn(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ns.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Fe(r);return}r=t.ownerDocument||t,n=nh(n),(i=Lt.get(i))&&Uc(n,i),r=r.createElement("link"),Fe(r);var d=r;d._p=new Promise(function(f,p){d.onload=f,d.onerror=p}),lt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ns.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Oc=0;function Rg(e,t){return e.stylesheets&&e.count===0&&ss(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&ss(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Oc===0&&(Oc=62500*vg());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ss(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Oc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ss(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var is=null;function ss(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,is=new Map,t.forEach(Vg,e),is=null,ns.call(e))}function Vg(e,t){if(!(t.state.loading&4)){var a=is.get(e);if(a)var n=a.get(null);else{a=new Map,is.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}i=t.instance,d=i.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,i),a.set(d,i),this.count++,n=ns.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ln={$$typeof:Y,Provider:null,Consumer:null,_currentValue:b,_currentValue2:b,_threadCount:0};function Hg(e,t,a,n,i,r,d,f,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ms(0),this.hiddenUpdates=Ms(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function oh(e,t,a,n,i,r,d,f,p,k,C,O){return e=new Hg(e,t,a,d,p,k,C,O,f),t=1,r===!0&&(t|=24),r=bt(3,null,null,t),e.current=r,r.stateNode=e,t=gr(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},br(r),e}function uh(e){return e?(e=pl,e):pl}function dh(e,t,a,n,i,r){i=uh(i),n.context===null?n.context=i:n.pendingContext=i,n=xa(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=ba(e,n,t),a!==null&&(ht(a,e,t),hn(a,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Rc(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=Ga(e,67108864);t!==null&&ht(t,e,67108864),Rc(e,67108864)}}function mh(e){if(e.tag===13||e.tag===31){var t=kt();t=Es(t);var a=Ga(e,t);a!==null&&ht(a,e,t),Rc(e,t)}}var rs=!0;function Bg(e,t,a,n){var i=v.T;v.T=null;var r=E.p;try{E.p=2,Vc(e,t,a,n)}finally{E.p=r,v.T=i}}function qg(e,t,a,n){var i=v.T;v.T=null;var r=E.p;try{E.p=8,Vc(e,t,a,n)}finally{E.p=r,v.T=i}}function Vc(e,t,a,n){if(rs){var i=Hc(n);if(i===null)kc(e,t,n,cs,a),ph(e,n);else if(Yg(i,e,t,a,n))n.stopPropagation();else if(ph(e,n),t&4&&-1<Gg.indexOf(e)){for(;i!==null;){var r=il(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=Ra(r.pendingLanes);if(d!==0){var f=r;for(f.pendingLanes|=2,f.entangledLanes|=2;d;){var p=1<<31-vt(d);f.entanglements[1]|=p,d&=~p}Yt(r),(we&6)===0&&(Ji=gt()+500,zn(0))}}break;case 31:case 13:f=Ga(r,2),f!==null&&ht(f,r,2),Xi(),Rc(r,2)}if(r=Hc(n),r===null&&kc(e,t,n,cs,a),r===i)break;i=r}i!==null&&n.stopPropagation()}else kc(e,t,n,null,a)}}function Hc(e){return e=qs(e),Bc(e)}var cs=null;function Bc(e){if(cs=null,e=nl(e),e!==null){var t=g(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=M(t),e!==null)return e;e=null}else if(a===31){if(e=H(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cs=e,null}function gh(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(Am()){case No:return 2;case So:return 8;case $n:case Tm:return 32;case ko:return 268435456;default:return 32}default:return 32}}var qc=!1,Da=null,Ma=null,Ea=null,On=new Map,Rn=new Map,Ca=[],Gg="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 ph(e,t){switch(e){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":On.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rn.delete(t.pointerId)}}function Vn(e,t,a,n,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[i]},t!==null&&(t=il(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yg(e,t,a,n,i){switch(t){case"focusin":return Da=Vn(Da,e,t,a,n,i),!0;case"dragenter":return Ma=Vn(Ma,e,t,a,n,i),!0;case"mouseover":return Ea=Vn(Ea,e,t,a,n,i),!0;case"pointerover":var r=i.pointerId;return On.set(r,Vn(On.get(r)||null,e,t,a,n,i)),!0;case"gotpointercapture":return r=i.pointerId,Rn.set(r,Vn(Rn.get(r)||null,e,t,a,n,i)),!0}return!1}function vh(e){var t=nl(e.target);if(t!==null){var a=g(t);if(a!==null){if(t=a.tag,t===13){if(t=M(a),t!==null){e.blockedOn=t,Do(e.priority,function(){mh(a)});return}}else if(t===31){if(t=H(a),t!==null){e.blockedOn=t,Do(e.priority,function(){mh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hc(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Bs=n,a.target.dispatchEvent(n),Bs=null}else return t=il(a),t!==null&&hh(t),e.blockedOn=a,!1;t.shift()}return!0}function xh(e,t,a){os(e)&&a.delete(t)}function Jg(){qc=!1,Da!==null&&os(Da)&&(Da=null),Ma!==null&&os(Ma)&&(Ma=null),Ea!==null&&os(Ea)&&(Ea=null),On.forEach(xh),Rn.forEach(xh)}function us(e,t){e.blockedOn===t&&(e.blockedOn=null,qc||(qc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Jg)))}var ds=null;function bh(e){ds!==e&&(ds=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){ds===e&&(ds=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Bc(n||a)===null)continue;break}var r=il(a);r!==null&&(e.splice(t,3),t-=3,Hr(r,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function Bl(e){function t(p){return us(p,e)}Da!==null&&us(Da,e),Ma!==null&&us(Ma,e),Ea!==null&&us(Ea,e),On.forEach(t),Rn.forEach(t);for(var a=0;a<Ca.length;a++){var n=Ca[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ca.length&&(a=Ca[0],a.blockedOn===null);)vh(a),a.blockedOn===null&&Ca.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],r=a[n+1],d=i[rt]||null;if(typeof r=="function")d||bh(a);else if(d){var f=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[rt]||null)f=d.formAction;else if(Bc(i)!==null)continue}else f=d.action;typeof f=="function"?a[n+1]=f:(a.splice(n,3),n-=3),bh(a)}}}function yh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Gc(e){this._internalRoot=e}fs.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=kt();dh(a,n,e,t,null,null)},fs.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Xi(),t[ll]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=zo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ca.length&&t!==0&&t<Ca[a].priority;a++);Ca.splice(a,0,e),a===0&&vh(e)}};var jh=s.version;if(jh!=="19.2.4")throw Error(o(527,jh,"19.2.4"));E.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=j(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e};var Qg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:v,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Xl=hs.inject(Qg),pt=hs}catch{}}return Bn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var a=!1,n="",i=Ad,r=Td,d=zd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=oh(e,1,!1,null,null,a,n,null,i,r,d,yh),e[ll]=t.current,Sc(e),new Gc(t)},Bn.hydrateRoot=function(e,t,a){if(!h(e))throw Error(o(299));var n=!1,i="",r=Ad,d=Td,f=zd,p=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.formState!==void 0&&(p=a.formState)),t=oh(e,1,!0,t,a??null,n,i,p,r,d,f,yh),t.context=uh(null),a=t.current,n=kt(),n=Es(n),i=xa(n),i.callback=null,ba(a,i,n),a=n,t.current.lanes=a,Kl(t,a),Yt(t),e[ll]=t.current,Sc(e),new fs(t)},Bn.version="19.2.4",Bn}var Mh;function tp(){if(Mh)return Qc.exports;Mh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Qc.exports=ep(),Qc.exports}var ap=tp();class lp{observers=new Set;next(s){this.observers.forEach(c=>c(s))}asObservable(){return{subscribe:s=>(this.observers.add(s),{unsubscribe:()=>this.observers.delete(s)})}}}class np extends lp{currentValue;constructor(s){super(),this.currentValue=s}next(s){this.currentValue=s,super.next(s)}get value(){return this.currentValue}asObservable(){return{subscribe:s=>(s(this.currentValue),super.asObservable().subscribe(s))}}}class ip{authId="id";authToken="token";authEmail="email";runOutDate="runOutDate";authTokenSubject=new np(null);constructor(){}async loadAuthTokenFromStorage(){const s=window.localStorage.getItem(this.authToken);this.authTokenSubject.next(s)}async setAuthData(s,c){if(await this.setPreference(this.authId,s.id),await this.setPreference(this.authToken,s.token),await this.setPreference(this.authEmail,s.email),c)await this.setPreference(this.runOutDate,"forever");else{const o=new Date,h=new Date(o);h.setDate(o.getDate()+1);const g=h.toISOString();await this.setPreference(this.runOutDate,g)}}async setPreference(s,c){window.localStorage.setItem(s,c)}async getCandidateId(){return window.localStorage.getItem(this.authId)}async getCandidateEmail(){return window.localStorage.getItem(this.authEmail)}async getAuthToken(){return window.localStorage.getItem(this.authToken)}getAuthTokenNoneAsync(){return this.authTokenSubject.value}async getRunOutDate(){return window.localStorage.getItem(this.runOutDate)}async clearCredentials(){window.localStorage.removeItem(this.authId),window.localStorage.removeItem(this.authToken),window.localStorage.removeItem(this.runOutDate)}async getAuth(){let s=await this.getCandidateId(),c=await this.getAuthToken(),o=await this.getCandidateEmail(),h=await this.getRunOutDate();return s&&c&&o&&h?{id:s,token:c,email:o,runOutDate:h}:null}getAuthTokenWithoutWindow(){const s=this.getAuthTokenNoneAsync();return s||""}getAuthWithoutWindow(){const s=this.getAuthTokenNoneAsync();return s?{id:"",token:s,email:"",runOutDate:"forever"}:null}}const Jl=new ip;const Ph=(...u)=>u.filter((s,c,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===c).join(" ").trim();const sp=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const rp=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,c,o)=>o?o.toUpperCase():c.toLowerCase());const Eh=u=>{const s=rp(u);return s.charAt(0).toUpperCase()+s.slice(1)};var cp={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 op=u=>{for(const s in u)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};const up=_.forwardRef(({color:u="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:h="",children:g,iconNode:M,...H},R)=>_.createElement("svg",{ref:R,...cp,width:s,height:s,stroke:u,strokeWidth:o?Number(c)*24/Number(s):c,className:Ph("lucide",h),...!g&&!op(H)&&{"aria-hidden":"true"},...H},[...M.map(([j,B])=>_.createElement(j,B)),...Array.isArray(g)?g:[g]]));const Q=(u,s)=>{const c=_.forwardRef(({className:o,...h},g)=>_.createElement(up,{ref:g,iconNode:s,className:Ph(`lucide-${sp(Eh(u))}`,`lucide-${u}`,o),...h}));return c.displayName=Eh(u),c};const dp=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],mo=Q("arrow-left",dp);const fp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],La=Q("arrow-right",fp);const hp=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],mp=Q("arrow-up-down",hp);const gp=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],em=Q("badge-check",gp);const pp=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],vp=Q("bolt",pp);const xp=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],bp=Q("bookmark",xp);const yp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],tm=Q("bot",yp);const jp=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],lo=Q("briefcase-business",jp);const Np=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],go=Q("briefcase",Np);const Sp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],kp=Q("calendar-days",Sp);const wp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],_p=Q("calendar",wp);const Ap=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],am=Q("car",Ap);const Tp=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],zp=Q("check-check",Tp);const Dp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mp=Q("check",Dp);const Ep=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gn=Q("chevron-down",Ep);const Cp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],We=Q("circle-check",Cp);const Up=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Lp=Q("circle-pause",Up);const Op=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Rp=Q("circle-play",Op);const Vp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Hp=Q("circle-plus",Vp);const Bp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],qp=Q("circle-stop",Bp);const Gp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],Yp=Q("circle-user",Gp);const Jp=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Qp=Q("clipboard-list",Jp);const Xp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],no=Q("clock-3",Xp);const Zp=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],io=Q("code-xml",Zp);const Kp=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],so=Q("crown",Kp);const Wp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Fp=Q("ellipsis",Wp);const $p=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],Ip=Q("file-plus-corner",$p);const Pp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ro=Q("file-text",Pp);const ev=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],lm=Q("funnel",ev);const tv=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],nm=Q("gamepad-2",tv);const av=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],lv=Q("gift",av);const nv=[["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"}]],js=Q("globe",nv);const iv=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],im=Q("graduation-cap",iv);const sv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],sm=Q("grid-3x3",sv);const rv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],cv=Q("info",rv);const ov=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],co=Q("laptop",ov);const uv=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],dv=Q("layout-grid",uv);const fv=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]],rm=Q("layout-panel-top",fv);const hv=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],mv=Q("lightbulb",hv);const gv=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],pv=Q("link-2",gv);const vv=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],cm=Q("lock-keyhole",vv);const xv=[["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"}]],bv=Q("log-out",xv);const yv=[["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"}]],Ns=Q("mail",yv);const jv=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Xn=Q("map-pin",jv);const Nv=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Sv=Q("menu",Nv);const kv=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],om=Q("message-circle",kv);const wv=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],_v=Q("mic",wv);const Av=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Tv=Q("monitor",Av);const zv=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Dv=Q("moon",zv);const Mv=[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]],Ev=Q("move-right",Mv);const Cv=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Uv=Q("paperclip",Cv);const Lv=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Ov=Q("pen-line",Lv);const Rv=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Vv=Q("phone",Rv);const Hv=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Bv=Q("play",Hv);const qv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Gv=Q("plus",qv);const Yv=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],Jv=Q("presentation",Yv);const Qv=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],Xv=Q("radar",Qv);const Zv=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Kv=Q("radio",Zv);const Wv=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Fv=Q("rocket",Wv);const $v=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],oo=Q("route",$v);const Iv=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Pv=Q("save",Iv);const e1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],uo=Q("search",e1);const t1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],a1=Q("send",t1);const l1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],um=Q("settings",l1);const n1=[["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"}]],i1=Q("shield",n1);const s1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],r1=Q("smile",s1);const c1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Kn=Q("sparkles",c1);const o1=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],dm=Q("square-pen",o1);const u1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],po=Q("star",u1);const d1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],f1=Q("sun",d1);const h1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Wn=Q("target",h1);const m1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Ch=Q("trending-up",m1);const g1=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],fm=Q("trophy",g1);const p1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],ql=Q("user-round",p1);const v1=[["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"}]],Uh=Q("user",v1);const x1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],b1=Q("users",x1);const y1=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],j1=Q("wand-sparkles",y1);const N1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fo=Q("x",N1);function Gl({icon:u,label:s,...c}){return l.jsxs("label",{className:"auth-field",children:[l.jsx("span",{children:s}),l.jsxs("div",{className:"auth-input-wrap",children:[l.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:u}),l.jsx("input",{...c})]})]})}function S1({email:u,loading:s,onBackToLogin:c,onChangeEmail:o,onSubmit:h}){return l.jsxs("div",{className:"auth-view view-enter",children:[l.jsxs("div",{className:"auth-head",children:[l.jsx("button",{className:"link-btn back-link",type:"button",onClick:c,children:"Tilbage"}),l.jsx("h1",{children:"Glemt kodeord?"}),l.jsx("p",{children:"Indtast din e-mail, sa sender vi instruktioner til at nulstille din kode."})]}),l.jsxs("form",{className:"auth-form",onSubmit:h,children:[l.jsx(Gl,{icon:l.jsx(Ns,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:u,onChange:g=>o(g.target.value),required:!0}),l.jsx("button",{className:"submit-btn",type:"submit",disabled:s,children:s?"Sender...":"Send nulstillingslink"})]})]})}function k1({email:u,loading:s,onChangeEmail:c,onChangePassword:o,onChangeRememberMe:h,onForgotPassword:g,onRegister:M,onSubmit:H,password:R,rememberMe:j}){return l.jsxs("div",{className:"auth-view view-enter",children:[l.jsxs("div",{className:"auth-head auth-head-center",children:[l.jsx("h1",{children:"Velkommen tilbage"}),l.jsx("p",{children:"Indtast dine oplysninger for at logge ind pa din konto."})]}),l.jsxs("form",{className:"auth-form",onSubmit:H,children:[l.jsx(Gl,{icon:l.jsx(Ns,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:u,onChange:B=>c(B.target.value),required:!0}),l.jsxs("label",{className:"auth-field",children:[l.jsxs("div",{className:"auth-field-row",children:[l.jsx("span",{children:"Adgangskode"}),l.jsx("button",{className:"link-btn",type:"button",onClick:g,children:"Glemt adgangskode?"})]}),l.jsxs("div",{className:"auth-input-wrap",children:[l.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:l.jsx(cm,{size:16,strokeWidth:1.8})}),l.jsx("input",{type:"password",placeholder:"••••••••",value:R,onChange:B=>o(B.target.value),required:!0})]})]}),l.jsxs("label",{className:"check-row",children:[l.jsx("input",{type:"checkbox",checked:j,onChange:B=>h(B.target.checked)}),l.jsx("span",{children:"Husk mig i 30 dage"})]}),l.jsx("button",{className:"submit-btn",type:"submit",disabled:s,children:s?"Logger ind...":"Log ind"})]}),l.jsxs("p",{className:"auth-foot",children:["Har du ikke en konto?",l.jsx("button",{className:"link-btn",type:"button",onClick:M,children:"Opret bruger"})]})]})}function w1({email:u,firstName:s,lastName:c,loading:o,locationQuery:h,locationSuggestions:g,onBackToLogin:M,onChangeEmail:H,onChangeFirstName:R,onChangeLastName:j,onChangeLocationQuery:B,onChangePassword:T,onSelectLocation:V,onSubmit:J,password:P}){return l.jsxs("div",{className:"auth-view view-enter",children:[l.jsxs("div",{className:"auth-head auth-head-center",children:[l.jsx("h1",{children:"Opret konto"}),l.jsx("p",{children:"Start din karriere-rejse med os i dag."})]}),l.jsxs("form",{className:"auth-form",onSubmit:J,children:[l.jsx(Gl,{icon:l.jsx(Uh,{size:16,strokeWidth:1.8}),label:"Fornavn",type:"text",placeholder:"Lasse",value:s,onChange:X=>R(X.target.value),required:!0}),l.jsx(Gl,{icon:l.jsx(Uh,{size:16,strokeWidth:1.8}),label:"Efternavn",type:"text",placeholder:"Hansen",value:c,onChange:X=>j(X.target.value),required:!0}),l.jsx(Gl,{icon:l.jsx(Ns,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:u,onChange:X=>H(X.target.value),required:!0}),l.jsx(Gl,{icon:l.jsx(cm,{size:16,strokeWidth:1.8}),label:"Adgangskode",type:"password",placeholder:"Skab en staerk kode",value:P,onChange:X=>T(X.target.value),required:!0,minLength:8}),l.jsxs("label",{className:"auth-field",children:[l.jsx("span",{children:"Lokation"}),l.jsxs("div",{className:"auth-input-wrap",children:[l.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:l.jsx(Xn,{size:16,strokeWidth:1.8})}),l.jsx("input",{type:"text",placeholder:"Soeg by eller adresse",value:h,onChange:X=>B(X.target.value),autoComplete:"off",required:!0})]}),g.length>0?l.jsx("div",{className:"location-suggestions",children:g.map(X=>l.jsx("button",{type:"button",className:"location-suggestion-item",onClick:()=>{V(X.placeId,X.description)},children:X.description},X.placeId))}):null]}),l.jsx("button",{className:"submit-btn",type:"submit",disabled:o,children:o?"Opretter...":"Opret bruger"})]}),l.jsxs("p",{className:"auth-foot",children:["Har du allerede en konto?",l.jsx("button",{className:"link-btn",type:"button",onClick:M,children:"Log ind"})]})]})}class tl{searchParams;constructor(s){this.searchParams=s?new URLSearchParams(s):new URLSearchParams}append(s,c){const o=new URLSearchParams(this.searchParams);return o.append(s,String(c)),new tl(o)}set(s,c){const o=new URLSearchParams(this.searchParams);return o.set(s,String(c)),new tl(o)}toString(){return this.searchParams.toString()}}function ms(u,s){if(!s)return u;const c=new URL(u);if(s instanceof tl){const o=s.toString();return o&&new URLSearchParams(o).forEach((g,M)=>c.searchParams.append(M,g)),c.toString()}return Object.entries(s).forEach(([o,h])=>{if(Array.isArray(h)){h.forEach(g=>c.searchParams.append(o,String(g)));return}c.searchParams.set(o,String(h))}),c.toString()}async function gs(u,s="json"){if(!u.ok){const c=await u.text();throw new Error(c||`HTTP ${u.status}`)}if(u.status!==204)return s==="blob"?await u.blob():await u.json()}function ps(u){const s=typeof window>"u"?null:window.localStorage.getItem("token");return{...s?{Authorization:`Bearer ${s}`}:{},...u??{}}}class _1{async get(s,c){const o=await fetch(ms(s,c?.params),{method:"GET",headers:ps(c?.headers)});return gs(o,c?.responseType)}async post(s,c,o){const h=await fetch(ms(s,o?.params),{method:"POST",headers:{"Content-Type":"application/json",...ps(o?.headers)},body:c===void 0?void 0:JSON.stringify(c)});return gs(h)}async put(s,c,o){const h=await fetch(ms(s,o?.params),{method:"PUT",headers:{"Content-Type":"application/json",...ps(o?.headers)},body:c===void 0?void 0:JSON.stringify(c)});return gs(h)}async delete(s,c){const o=await fetch(ms(s,c?.params),{method:"DELETE",headers:ps(c?.headers)});return gs(o)}}const He=new _1,z={backendApi:"https://api.arbejd.com/",backendApiV2:"https://api2.arbejd.com/api/"};class A1{http;constructor(s=He){this.http=s}login(s,c){let o=z.backendApi+"api/1.1.0/candidate/login",h={email:s,password:c};return this.http.post(o,h)}forgotPassword(s){let c=z.backendApi+"api/1.1.0/candidate/resetPassword/"+s.toLowerCase();return this.http.get(c)}}class al{constructor(s=He,c=Jl){this.http=s,this.localStorageService=c}closeAccount(s){let c=z.backendApi+"api/1.1.0/candidate/"+s.toLowerCase();return this.http.delete(c)}accountRetention(s){let c=z.backendApi+"api/1.1.0/candidate/"+s+"/account-retention/";return this.http.get(c)}getCandidatesQualifications(){let s=z.backendApi+"api/1.1.0/candidate/skill/";return this.http.get(s)}getCandidatesCertifications(){let s=z.backendApi+"api/1.1.0/candidate/certificate/";return this.http.get(s)}getCandidatesLanguages(){let s=z.backendApi+"api/1.1.0/candidate/language/";return this.http.get(s)}getCandidatesDriverLicenses(){let s=z.backendApi+"api/1.1.0/candidate/driversLicense/";return this.http.get(s)}changePassword(s,c){let o=z.backendApi+"api/1.1.0/candidate/resetPassword",h={key:s,password:c};return this.http.post(o,h)}getCandidatesEducations(){let s=z.backendApiV2+"1.0.0/client/candidate_education";return this.http.get(s)}updateExperience(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_experience/"+s.id,h={comments:s.comments,company_name:s.companyName,is_current:s.isCurrent,from_date:s.fromDate,to_date:s.toDate,language:c};return this.http.put(o,h)}createAccountV2(s){let c=z.backendApiV2+"1.0.0/client/candidate";return this.http.post(c,s)}updateCandidate(s,c){let o=z.backendApiV2+"1.0.0/client/candidate/v2/"+s.id,h={...s};s.birthday&&(s.birthday=new Date(s.birthday)),s.birthday instanceof Date&&(h.birthday=s.birthday.toISOString());let g={language:c,candidate:h};return this.http.put(o,g)}getCandidate(){let s=z.backendApiV2+"1.0.0/client/candidate";return this.http.get(s)}getCvSuggestion(){let s=z.backendApiV2+"1.0.0/client/suggestion";return this.http.get(s)}saveExperience(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_experience",h={comments:s.comments,company_name:s.companyName,is_current:s.isCurrent,esco_id:s.occupation.id,from_date:s.fromDate,to_date:s.toDate,language:c};return this.http.post(o,h)}removeExperience(s){let c=z.backendApiV2+"1.0.0/client/candidate_experience/"+s;return this.http.delete(c)}getCandidatesExperiences(){let s=z.backendApiV2+"1.0.0/client/candidate_experience";return this.http.get(s)}getJobAgentFilters(){let s=z.backendApiV2+"1.0.0/client/job_agent_filter";return this.http.get(s)}updateJobAgentFilter(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter/"+s.id,o=s;return this.http.put(c,o)}removeJobAgentFilter(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter/"+s;return this.http.delete(c)}updateCandidateJobSeeker(s){let c=z.backendApiV2+"1.0.0/client/candidate/update_job_seeker/"+s.id;return this.http.put(c,s)}updateCvUploadProfileText(s,c,o){let h=z.backendApiV2+"1.0.0/client/candidate/update_cv_upload_profile/"+s,g={description:c,language:o};return this.http.put(h,g)}saveExperienceV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_experience",h={comments:s.comments,company_name:s.companyName,is_current:s.isCurrent,esco_id:s.escoId,from_date:s.fromDate,to_date:s.toDate,language:c};return this.http.post(o,h)}updateProfileText(s){let c=z.backendApiV2+"1.0.0/client/candidate/update_profile_text";return this.http.put(c,s)}}function Wc(u,s){const c=u[s];return typeof c=="string"?c:null}class T1{authService;candidateService;constructor(s=new A1,c=new al){this.authService=s,this.candidateService=c}async login(s,c,o){const g=await this.authService.login(s,c)??{},M=Wc(g,"token");if(!M)return{ok:!1,message:"Login fejlede: token mangler i svaret fra serveren."};const H={id:Wc(g,"id")??"",token:M,email:Wc(g,"email")??s,runOutDate:"forever"};return await Jl.setAuthData(H,o),{ok:!0,message:"Du er nu logget ind."}}async forgotPassword(s){return await this.authService.forgotPassword(s),{ok:!0,message:"Anmodning om nulstilling af kodeord er sendt."}}async register(s){const c=Number.parseInt(s.zip,10);if(Number.isNaN(c))return{ok:!1,message:"Postnummer skal være et tal."};const o={email:s.email,password:s.password,zip:c,zipName:s.zipName,awsUrl:"",latitude:0,longitude:0,firstName:s.firstName,lastName:s.lastName,subscribe:s.subscribe};return await this.candidateService.createAccountV2(o),{ok:!0,message:"Kontoen er oprettet."}}}class hm{constructor(s=He){this.http=s}searchPlaces(s){const c=z.backendApiV2+"client/google_maps/1.0.0/get_places?query="+encodeURIComponent(s);return this.http.get(c)}getPlaceDetails(s){const c=z.backendApiV2+"client/google_maps/1.0.0/get_place_details?place_id="+encodeURIComponent(s);return this.http.get(c)}}function z1(u){const s=_.useMemo(()=>new T1,[]),c=_.useMemo(()=>new hm,[]),[o,h]=_.useState(""),[g,M]=_.useState(!1),[H,R]=_.useState(""),[j,B]=_.useState(""),[T,V]=_.useState(""),[J,P]=_.useState(""),[X,he]=_.useState(""),[ie,ne]=_.useState(""),[Y,K]=_.useState([]),[ee,Z]=_.useState(null),[D,$]=_.useState(""),[de,te]=_.useState(!1),[oe,ue]=_.useState(null),[Ae,Ne]=_.useState("login");function le(S){ue(null),Ne(S)}async function v(S){const L=S.trim();if(L.length<3){K([]);return}try{const ce=((await c.searchPlaces(L)).predictions??[]).filter(re=>typeof re.place_id=="string"&&typeof re.description=="string").map(re=>({description:re.description,placeId:re.place_id}));K(ce)}catch{K([])}}function E(S){const L=S.match(/\b(\d{4})\b/);if(!L)return null;const G=L[1],re=S.slice(S.indexOf(G)+G.length).trim().split(",")[0]?.trim()||"";return re?{cityName:re,zip:G}:null}async function b(S,L){let G=L;try{const re=await c.getPlaceDetails(S);typeof re.result?.formatted_address=="string"&&re.result.formatted_address.trim()&&(G=re.result.formatted_address.trim())}catch{}const ce=E(G)??E(L);if(ne(G),K([]),!ce){Z(null);return}Z({cityName:ce.cityName,description:G,zip:ce.zip})}async function q(S){S.preventDefault(),M(!0),ue(null);try{const L=await s.login(H.trim(),j,de);ue(L),L.ok&&u?.()}catch(L){const G=L instanceof Error?L.message:"Login mislykkedes.";ue({ok:!1,message:G})}finally{M(!1)}}async function F(S){S.preventDefault(),M(!0),ue(null);try{if(!ee){ue({ok:!1,message:"Vaelg en lokation fra listen (med postnummer)."});return}const L=await s.register({email:J.trim(),firstName:T.trim(),lastName:X.trim(),password:D,subscribe:!0,zip:ee.zip,zipName:ee.cityName});ue(L),L.ok&&Ne("login")}catch(L){const G=L instanceof Error?L.message:"Oprettelse mislykkedes.";ue({ok:!1,message:G})}finally{M(!1)}}async function m(S){S.preventDefault(),M(!0),ue(null);try{const L=await s.forgotPassword(o.trim());ue(L)}catch(L){const G=L instanceof Error?L.message:"Kunne ikke sende nulstillingslink.";ue({ok:!1,message:G})}finally{M(!1)}}return{forgotEmail:o,handleForgotSubmit:m,handleLoginSubmit:q,handleRegisterSubmit:F,loading:g,loginEmail:H,loginPassword:j,registerFirstName:T,registerEmail:J,registerLastName:X,registerLocationQuery:ie,registerLocationSuggestions:Y,registerPassword:D,rememberMe:de,result:oe,setForgotEmail:h,setLoginEmail:R,setLoginPassword:B,setRegisterEmail:P,setRegisterFirstName:V,setRegisterLastName:he,setRegisterLocationQuery:S=>{ne(S),Z(null),v(S)},setRegisterPassword:$,setRememberMe:te,selectRegisterLocation:b,switchView:le,view:Ae}}function D1({onAuthenticated:u}){const{forgotEmail:s,handleForgotSubmit:c,handleLoginSubmit:o,handleRegisterSubmit:h,loading:g,loginEmail:M,loginPassword:H,registerFirstName:R,registerEmail:j,registerLastName:B,registerLocationQuery:T,registerLocationSuggestions:V,registerPassword:J,rememberMe:P,result:X,setForgotEmail:he,setLoginEmail:ie,setLoginPassword:ne,setRegisterEmail:Y,setRegisterFirstName:K,setRegisterLastName:ee,setRegisterLocationQuery:Z,setRegisterPassword:D,setRememberMe:$,selectRegisterLocation:de,switchView:te,view:oe}=z1(u);return l.jsxs("main",{className:"auth-page",children:[l.jsx("div",{className:"orb orb-1"}),l.jsx("div",{className:"orb orb-2"}),l.jsx("div",{className:"orb orb-3"}),l.jsxs("div",{className:"auth-logo-wrap",children:[l.jsx("div",{className:"auth-logo-dot",children:"A"}),l.jsx("span",{className:"auth-logo-text",children:"ARBEJD"})]}),l.jsxs("section",{className:"auth-card",children:[oe==="login"?l.jsx(k1,{email:M,loading:g,onChangeEmail:ie,onChangePassword:ne,onChangeRememberMe:$,onForgotPassword:()=>te("forgot"),onRegister:()=>te("register"),onSubmit:o,password:H,rememberMe:P}):null,oe==="register"?l.jsx(w1,{email:j,firstName:R,lastName:B,loading:g,locationQuery:T,locationSuggestions:V,onBackToLogin:()=>te("login"),onChangeEmail:Y,onChangeFirstName:K,onChangeLastName:ee,onChangeLocationQuery:Z,onChangePassword:D,onSelectLocation:de,onSubmit:h,password:J}):null,oe==="forgot"?l.jsx(S1,{email:s,loading:g,onBackToLogin:()=>te("login"),onChangeEmail:he,onSubmit:c}):null,X?l.jsx("p",{className:X.ok?"status success":"status error",children:X.message}):null]},oe)]})}class mm{constructor(s=He){this.http=s}listEscoByParent(s){let c=z.backendApiV2+"1.0.0/client/esco";return s&&(c+="/"+s),this.http.get(c)}listAllEscos(){let s=z.backendApiV2+"1.0.0/client/esco";return this.http.get(s)}}class M1{constructor(s=He){this.http=s}addEscoToJobAgent(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter",o={esco_id:s};return this.http.post(c,o)}removeJobAgentFilter(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter/"+s;return this.http.delete(c)}}class Ss{constructor(s=He){this.http=s}getPaymentOverview(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/payment_overview";return this.http.get(s)}getSubscriptionProducts(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/get_products";return this.http.get(s)}deactivateAutoRenew(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/deactivate_auto_renew";return this.http.put(s,{})}activateAutoRenew(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/activate_auto_renew";return this.http.put(s,{})}redeemCode(s){let c=z.backendApiV2+"client/candidate_redeem_code/v1";return this.http.post(c,{code:s})}}class gm{constructor(s=new al,c=new Ss,o=new M1,h=new mm){this.candidateService=s,this.subscriptionService=c,this.jobAgentService=o,this.escoService=h}async loadInitialData(){const[s,c,o,h]=await Promise.allSettled([this.subscriptionService.getPaymentOverview(),this.candidateService.getJobAgentFilters(),this.candidateService.getCvSuggestion(),this.escoService.listAllEscos()]);return{paymentOverview:s.status==="fulfilled"?s.value:null,jobAgentFilters:c.status==="fulfilled"?c.value:[],cvSuggestions:o.status==="fulfilled"?this.withImprovements(o.value):[],escos:h.status==="fulfilled"?h.value:[]}}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate(),c=s.firstName?.trim()||s.name?.trim()||"Lasse",o=s.imageUrl||s.image||void 0;return{name:c,imageUrl:o}}catch{return{name:"Lasse"}}}async addEscoToFilter(s){await this.jobAgentService.addEscoToJobAgent(s)}async removeFilter(s){await this.jobAgentService.removeJobAgentFilter(s)}async setFilterVisibility(s,c){await this.candidateService.updateJobAgentFilter({...s,visible:c})}getEscoSuggestions(s,c,o){const h=s.trim().toLowerCase();if(!h)return[];const g=new Set(o.map(M=>M.escoId));return c.filter(M=>!g.has(M.id)).filter(M=>M.preferedLabelDa.toLowerCase().includes(h)).slice(0,10)}getSuggestionText(s){return s>=0&&s<50?"Et godt første skridt mod flere relevante job.":s>=50&&s<100?"Kan styrke dine chancer i ansøgningsbunken.":s>=100&&s<150?"Ofte efterspurgt og forbedrer dine jobmuligheder markant.":s>=150&&s<200?"Et klart plus som gør dig mere attraktiv for arbejdsgivere.":s>=200?"En afgørende faktor der åbner langt flere jobmuligheder.":"Forbedrer din profil til kommende jobmatch."}withImprovements(s){return s.map(c=>{const o=[],h=[{items:c.jobImprovementSuggestion.educations??[],type:"education"},{items:c.jobImprovementSuggestion.languages??[],type:"language"},{items:c.jobImprovementSuggestion.driversLicenses??[],type:"driversLicense"},{items:c.jobImprovementSuggestion.qualifications??[],type:"qualification"},{items:c.jobImprovementSuggestion.certificates??[],type:"certificate"}];for(const g of h)for(const M of g.items)o.push({...M,improvementType:g.type});return o.sort((g,M)=>M.jobChanceIncrease-g.jobChanceIncrease),{...c,improvements:o}})}}class E1{constructor(s=He){this.http=s}saveJobFilter(s){let c=z.backendApiV2+"1.0.0/client/candidate_search_filter";return this.http.post(c,s)}getJobFilter(){let s=z.backendApiV2+"1.0.0/client/candidate_search_filter";return this.http.get(s)}resetJobFilter(){let s=z.backendApiV2+"1.0.0/client/candidate_search_filter/reset_job_filter";return this.http.put(s,{})}}class vo{http;constructor(s=He){this.http=s}getSearchWords(){let s=z.backendApiV2+"1.0.0/client/candidate_search/list_search_words";return this.http.get(s)}getJobs(s,c,o){let h=z.backendApi+"api/1.1.0/jobs/all/"+c+"/"+o;return this.http.post(h,s)}getJobsV2(s,c,o,h){let g=z.backendApiV2+"1.0.0/client/candidate_search/v2/"+s+"/"+c+"/"+o,M=new tl;return h.length>0&&h.forEach(H=>{M=M.append("terms",H)}),this.http.get(g,{params:M})}getSavedJobs(s,c){let o=z.backendApi+"api/1.1.0/candidate/jobs/saved";return this.http.get(o)}getSavedJobsV2(s,c){let o=z.backendApiV2+"1.0.0/client/job/bookmarked_jobs/"+s+"/"+c;return this.http.get(o)}getAppliedJobs(s,c){let o=z.backendApi+"api/1.1.0/applications/candidate/";return this.http.get(o)}getAppliedJobsV2(s,c){let o=z.backendApiV2+"1.0.0/client/job/applied_jobs/"+s+"/"+c;return this.http.get(o)}payWithStripe(s,c){const o=z.backendApiV2+"1.0.0/client/payment/create-payment-intent",h={paymentMethodId:s,amount:c};return this.http.post(o,h)}bookmarkJob(s){let c=z.backendApi+"api/1.1.0/candidate/jobs/"+s+"/jobnet/updateSavedStatus",o={saved:!0};return this.http.post(c,o)}unbookmarkJob(s){let c=z.backendApi+"api/1.1.0/candidate/jobs/"+s+"/jobnet/updateSavedStatus",o={saved:!1};return this.http.post(c,o)}bookmarkJobV2(s,c,o){let h=z.backendApiV2+"1.0.0/client/job/bookmark/"+s,g={job_type:o,save:c};return this.http.post(h,g)}getJobNetJobDetail(s){let c=z.backendApiV2+"1.0.0/client/job/detail/star/"+s;return this.http.get(c)}getJobDetail(s){let c=z.backendApi+"api/1.1.0/jobs/"+s;return this.http.get(c)}getOccupationCategorizations(){let s=z.backendApiV2+"1.0.0/client/ds_tree";return this.http.get(s)}getJobSummary(s){let c=z.backendApi+"api/1.1.0/jobs/"+s+"/summary";return this.http.get(c)}applyJob(s){let c=z.backendApi+"api/1.1.0/applications/job/"+s,o={jobPostingId:s};return this.http.post(c,o)}undoApplyJob(s){let c=z.backendApi+"api/1.1.0/applications/"+s;return this.http.delete(c)}toggleApplyJobnetjob(s,c){let o=z.backendApiV2+"1.0.0/client/job/detail/star/apply/"+s,h={apply:c};return this.http.put(o,h)}}const Fc={escoIds:[],workTypePermanent:!1,workTypePartTime:!1,workDistance:50,partTimeHours:null,distanceCenterName:"",latitude:null,longitude:null};function Ze(u){return typeof u=="string"?u:""}function Jn(u){return typeof u=="object"&&u!==null?u:null}function $c(u,s){if(!u)return[];const c=u[s];return Array.isArray(c)?c:[]}function Ic(u){if(Array.isArray(u))return u;const s=Jn(u);if(!s)return[];const c=$c(s,"searchList");if(c.length>0)return c;const o=Jn(s.data),h=$c(o,"searchList");if(h.length>0)return h;const g=$c(s,"items");return g.length>0?g:[]}function Lh(u,s){if(!u)return null;const c=u[s];return typeof c=="number"?c:null}function C1(u){return u.trim()}function U1(u){if(!u)return[];const s=new Set,c=u.searchText?.trim();c&&c.length>0&&s.add(c);for(const o of u.desiredTitles??[]){const h=C1(o);h.length>0&&s.add(h)}return Array.from(s)}function L1(u,s){return{id:Ze(u.id),title:Ze(u.title),companyName:Ze(u.companyName),occupationName:Ze(u.occupationName),descriptionIntro:Ze(u.descriptionIntro),address:Ze(u.address),time:Ze(u.time),applicationDeadline:u.applicationDeadline instanceof Date?u.applicationDeadline.toISOString():Ze(String(u.applicationDeadline??"")),candidateDistance:typeof u.candidateDistance=="number"?u.candidateDistance:null,logoUrl:Ze(u.logoUrl),companyLogoImage:Ze(u.companyLogoImage),fromJobnet:!!u.fromJobnet,isSaved:!!u.saved,matchPercent:s}}function Oh(u){return{id:Ze(u.id),title:Ze(u.title),companyName:Ze(u.companyName),occupationName:Ze(u.occupationName),descriptionIntro:Ze(u.descriptionIntro),address:Ze(u.address),time:Ze(u.time),applicationDeadline:u.applicationDeadline instanceof Date?u.applicationDeadline.toISOString():Ze(String(u.applicationDeadline??"")),candidateDistance:typeof u.candidateDistance=="number"?u.candidateDistance:null,logoUrl:Ze(u.logoUrl),companyLogoImage:Ze(u.companyLogoImage),isActive:typeof u.isActive=="boolean"?u.isActive:void 0,fromJobnet:!!u.fromJobnet,isSaved:!0}}class ks{constructor(s=new vo,c=new E1,o=new hm,h=new al){this.jobService=s,this.filterService=c,this.placesService=o,this.candidateService=h}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate(),c=s.firstName?.trim()||s.name?.trim()||"Lasse",o=s.imageUrl||s.image||void 0;return{name:c,imageUrl:o}}catch{return{name:"Lasse"}}}async getOccupationOptions(){const s=await this.jobService.getOccupationCategorizations(),c=[];for(const o of s)for(const h of o.subAreas)for(const g of h.occupations)typeof g.id=="number"&&typeof g.name=="string"&&g.name.trim().length>0&&c.push({id:g.id,name:g.name});return c.sort((o,h)=>o.name.localeCompare(h.name,"da"))}async getJobSearchWords(){return(await this.jobService.getSearchWords()).filter(c=>typeof c=="string"&&c.trim().length>0)}async getSavedFilter(){try{const s=await this.filterService.getJobFilter(),c=s?.candidateSearchFilter;return c?{escoIds:s.escoIds??[],workTypePermanent:!!c.workTypePermanent,workTypePartTime:!!c.workTypePartTime,workDistance:c.workDistance??c.defaultDistance??50,partTimeHours:c.partTimeHours??null,distanceCenterName:c.distanceCenterName??c.defaultCenterName??"",latitude:c.latitude??null,longitude:c.longitude??null}:{...Fc}}catch{return{...Fc}}}async saveFilter(s){const c=s.workTypePartTime&&s.partTimeHours&&s.partTimeHours>0&&s.partTimeHours<=37?s.partTimeHours:null,o={escoIds:s.escoIds,candidateSearchFilter:{workTimeDay:!1,workTimeEvening:!1,workTimeNight:!1,workTimeWeekend:!1,workTypePermanent:s.workTypePermanent,workTypeFreelance:!1,workTypePartTime:s.workTypePartTime,workTypeSubstitute:!1,workTypeTemporary:!1,workDistance:s.workDistance,partTimeHours:c,distanceCenterName:s.distanceCenterName,latitude:s.latitude,longitude:s.longitude}};await this.filterService.saveJobFilter(o)}async resetFilter(){return await this.filterService.resetJobFilter(),{...Fc}}async searchPlaceSuggestions(s){const c=s.trim();return c.length<3?[]:((await this.placesService.searchPlaces(c)).predictions??[]).filter(h=>typeof h.place_id=="string"&&typeof h.description=="string").map(h=>({placeId:h.place_id,description:h.description}))}async getPlaceSelection(s){const o=(await this.placesService.getPlaceDetails(s)).result;return!o||typeof o.formatted_address!="string"?null:{description:o.formatted_address,latitude:typeof o.geometry?.location?.lat=="number"?o.geometry.location.lat:null,longitude:typeof o.geometry?.location?.lng=="number"?o.geometry.location.lng:null}}async getTabItems(s,c){if(s==="gemte"){const o=await this.jobService.getSavedJobsV2(0,100);return Ic(o).map(g=>Oh(g))}if(s==="sogte"){const o=await this.jobService.getAppliedJobsV2(0,100);return Ic(o).map(g=>Oh(g))}return this.getJobsFeedItems(c?[c]:void 0)}async applyFiltersAndGetJobs(s,c){await this.saveFilter(s);const o=U1(c);return this.getJobsFeedItems(o)}async toggleBookmark(s,c){const o=s.fromJobnet?"star":"arbejd.com";await this.jobService.bookmarkJobV2(s.id,c,o)}async getJobsFeedItems(s){let o=10,h=0;const g=12,M=120,H=new Set,R=[];let j=[];const B=(s??[]).map(T=>T.trim()).filter(T=>T.length>0);if(B.length>0)j=B;else try{j=(await this.jobService.getSearchWords()).filter(V=>typeof V=="string"&&V.trim().length>0)}catch{j=[]}for(let T=0;T<g&&R.length<M;T+=1){const V=await this.jobService.getJobsV2(o,h,20,j),J=Jn(V),P=Ic(V);for(const ne of P){const Y=Jn(ne);if(!Y)continue;const K=Jn(Y.jobPosting);if(!K)continue;const ee=K;if(!ee.id||H.has(ee.id))continue;H.add(ee.id);const Z=typeof Y.total=="number"?Y.total:0;R.push(L1(ee,Math.round(Z*100)))}const X=Lh(J,"nextLevel"),he=Lh(J,"nextOffset");if(P.length===0)break;X===null||he===null?h+=20:(o=X,h=he)}return R}}const O1=[{key:"dashboard",label:"Dashboard",icon:dv},{key:"jobs",label:"Jobs",icon:go},{key:"cv",label:"CV",icon:ro},{key:"messages",label:"Beskeder",icon:om,badge:"3"}],R1=[{key:"agents",label:"Jobagenter",icon:Xv,dot:!0},{key:"ai-agent",label:"AI-agent",icon:tm,accent:!0},{key:"simulator",label:"Simulator",icon:nm},{key:"subscription",label:"Abonnement",icon:so}];function Jt({active:u="dashboard",onNavigate:s}){const[c,o]=_.useState(!1);_.useEffect(()=>{o(!1)},[u]),_.useEffect(()=>{if(!c)return;function g(H){H.key==="Escape"&&o(!1)}const M=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=M,window.removeEventListener("keydown",g)}},[c]);function h(g){s?.(g),o(!1)}return l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:"dash-mobile-menu-btn","aria-label":c?"Luk menu":"Aabn menu","aria-expanded":c,onClick:()=>o(g=>!g),children:c?l.jsx(fo,{size:18,strokeWidth:1.9}):l.jsx(Sv,{size:18,strokeWidth:1.9})}),l.jsx("button",{type:"button",className:`dash-mobile-overlay ${c?"open":""}`,"aria-label":"Luk menu",onClick:()=>o(!1)}),l.jsxs("aside",{className:`dash-sidebar ${c?"open":""}`,children:[l.jsxs("div",{className:"dash-logo-row",children:[l.jsx("div",{className:"dash-logo-dot",children:"A"}),l.jsx("span",{className:"dash-logo-text",children:"ARBEJD"})]}),l.jsxs("nav",{className:"dash-nav",children:[O1.map(g=>{const M=g.icon,H=g.key===u;return l.jsxs("button",{type:"button",className:H?"dash-nav-item active":"dash-nav-item",onClick:()=>h(g.key),children:[l.jsx("span",{className:g.accent?"dash-nav-icon accent":"dash-nav-icon",children:l.jsx(M,{size:19,strokeWidth:1.7})}),l.jsx("span",{className:"dash-nav-label",children:g.label}),g.badge?l.jsx("span",{className:"dash-nav-badge",children:g.badge}):null]},g.key)}),l.jsx("div",{className:"dash-nav-divider"}),R1.map(g=>{const M=g.icon,H=g.key===u;return l.jsxs("button",{type:"button",className:H?"dash-nav-item active":"dash-nav-item",onClick:()=>h(g.key),children:[l.jsx("span",{className:g.accent?"dash-nav-icon accent":"dash-nav-icon",children:l.jsx(M,{size:19,strokeWidth:1.7})}),l.jsx("span",{className:"dash-nav-label",children:g.label}),g.dot?l.jsx("span",{className:"dash-nav-dot"}):null]},g.key)})]}),l.jsxs("div",{className:"dash-sidebar-pro",children:[l.jsx("div",{className:"dash-sidebar-pro-glow"}),l.jsx(Kn,{size:19,strokeWidth:1.8}),l.jsx("h4",{children:"Pro-medlemskab"}),l.jsx("p",{children:"Faa ubegrænsede simuleringer"})]})]})]})}function Qt({actions:u,imageUrl:s,name:c,onLogout:o,onToggleTheme:h,theme:g="light"}){return l.jsxs("header",{className:"dash-topbar",children:[l.jsx("a",{href:"/home",className:"dash-home-btn",children:"HomePage"}),h?l.jsxs("button",{type:"button",className:"dash-theme-btn",onClick:h,children:[g==="dark"?l.jsx(f1,{size:15,strokeWidth:1.8}):l.jsx(Dv,{size:15,strokeWidth:1.8}),l.jsx("span",{children:g==="dark"?"Light":"Dark"})]}):null,u?l.jsx("div",{className:"dash-topbar-actions",children:u}):null,l.jsxs("div",{className:"dash-profile-wrap",children:[l.jsxs("button",{className:"dash-profile-btn",type:"button",children:[s?l.jsx("img",{src:s,alt:c,className:"dash-profile-avatar"}):l.jsx("div",{className:"dash-profile-avatar dash-profile-avatar-fallback",children:c.slice(0,1).toUpperCase()}),l.jsx("span",{children:c}),l.jsx(Gn,{size:15,strokeWidth:1.8})]}),l.jsxs("div",{className:"dash-profile-menu",children:[l.jsxs("button",{type:"button",children:[l.jsx(Yp,{size:16,strokeWidth:1.8})," Profil"]}),l.jsxs("button",{type:"button",children:[l.jsx(um,{size:16,strokeWidth:1.8})," Indstillinger"]}),l.jsx("div",{className:"dash-profile-divider"}),l.jsxs("button",{type:"button",className:"danger",onClick:o,children:[l.jsx(bv,{size:16,strokeWidth:1.8})," Log ud"]})]})]})]})}const V1={paymentOverview:null,jobAgentFilters:[],cvSuggestions:[],escos:[]};function H1(u){return u.trim().slice(0,1).toUpperCase()||"A"}function B1(u){return Math.max(68,98-u*4)}function q1(u,s){const c=s.trim().toLowerCase();return c?u.filter(o=>o.preferedLabelDa.toLowerCase().includes(c)).slice(0,8):[]}function G1({onLogout:u,onNavigate:s,onOpenJobDetail:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new gm,[]),M=_.useMemo(()=>new ks,[]),[H,R]=_.useState("Lasse"),[j,B]=_.useState(void 0),[T,V]=_.useState(V1),[J,P]=_.useState([]),[X,he]=_.useState(!0),[ie,ne]=_.useState(""),[Y,K]=_.useState(""),[ee,Z]=_.useState(""),[D,$]=_.useState(""),[de,te]=_.useState(""),[oe,ue]=_.useState(25);_.useEffect(()=>{let b=!0;async function q(){he(!0);const[F,m,S]=await Promise.all([g.getCandidateProfile(),g.loadInitialData(),M.getTabItems("jobs")]);b&&(R(F.name),B(F.imageUrl),V(m),P(S),he(!1))}return q(),()=>{b=!1}},[g,M]);async function Ae(){const b=await g.loadInitialData();V(b)}async function Ne(){const b=Y.trim()||ie.trim()||ee.trim(),q=g.getEscoSuggestions(b,T.escos,T.jobAgentFilters)[0]||q1(T.escos,b)[0];q&&(await g.addEscoToFilter(q.id),await Ae(),ne(""),K(""),Z(""),$(""),te(""),ue(25))}async function le(b){await g.setFilterVisibility(b,!b.visible),await Ae()}const v=T.jobAgentFilters,E=(J.length>0?J:[]).slice(0,6);return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"agents",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar ai-agent-main",children:[l.jsx(Qt,{name:H,imageUrl:j,onLogout:u,theme:h,onToggleTheme:o}),l.jsxs("div",{className:"ai-head",children:[l.jsx("h1",{children:"Jobagenter"}),l.jsx("p",{children:"Saet din jobsogning pa autopilot. Lad agenter overvage og matche dig med de perfekte jobs."})]}),l.jsxs("section",{className:"ai-create-card",children:[l.jsxs("div",{className:"ai-create-title",children:[l.jsx("div",{className:"ai-create-icon",children:l.jsx(tm,{size:20,strokeWidth:1.8})}),l.jsx("h2",{children:"Opret ny jobagent"})]}),l.jsxs("div",{className:"ai-form-grid",children:[l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Agentens navn"}),l.jsx("input",{value:ie,onChange:b=>ne(b.target.value),placeholder:"F.eks. Frontend Udvikler CPH"})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Sogetekst / Nogleord"}),l.jsx("input",{value:Y,onChange:b=>K(b.target.value),placeholder:"F.eks. React, TypeScript, Tailwind"})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Arbejdsomrade"}),l.jsxs("select",{value:ee,onChange:b=>Z(b.target.value),children:[l.jsx("option",{value:"",children:"Vaelg branche"}),l.jsx("option",{value:"IT & Udvikling",children:"IT & Udvikling"}),l.jsx("option",{value:"Design & UX",children:"Design & UX"}),l.jsx("option",{value:"Salg & Marketing",children:"Salg & Marketing"}),l.jsx("option",{value:"HR & Ledelse",children:"HR & Ledelse"})]})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Arbejdstype"}),l.jsxs("select",{value:D,onChange:b=>$(b.target.value),children:[l.jsx("option",{value:"",children:"Vaelg type"}),l.jsx("option",{value:"Fuldtid",children:"Fuldtid"}),l.jsx("option",{value:"Deltid",children:"Deltid"}),l.jsx("option",{value:"Freelance",children:"Freelance / Konsulent"}),l.jsx("option",{value:"Studiejob",children:"Studiejob"})]})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Arbejdssted"}),l.jsxs("div",{className:"ai-location-wrap",children:[l.jsx(Xn,{size:16,strokeWidth:1.8}),l.jsx("input",{value:de,onChange:b=>te(b.target.value),placeholder:"By eller postnummer"})]})]}),l.jsxs("div",{className:"ai-field ai-distance-field",children:[l.jsxs("div",{className:"ai-distance-head",children:[l.jsx("label",{children:"Maks. distance"}),l.jsxs("span",{children:[oe," km"]})]}),l.jsx("input",{type:"range",min:0,max:100,value:oe,onChange:b=>ue(Number(b.target.value))})]})]}),l.jsx("div",{className:"ai-create-actions",children:l.jsxs("button",{type:"button",onClick:()=>{Ne()},children:[l.jsx(Pv,{size:16,strokeWidth:1.8})," Gem jobagent"]})})]}),l.jsxs("section",{className:"ai-agents-section",children:[l.jsx("h3",{children:"Dine aktive agenter"}),l.jsxs("div",{className:"ai-agents-row custom-scrollbar",children:[v.length===0?l.jsx("p",{className:"dash-loading",children:"Ingen aktive agenter endnu."}):null,v.map((b,q)=>l.jsxs("article",{className:"ai-agent-chip-card",children:[l.jsxs("div",{className:"ai-agent-card-head",children:[l.jsxs("div",{className:"ai-agent-chip-left",children:[l.jsx("div",{className:`ai-agent-mini-icon ${q%2===0?"teal":"indigo"}`,children:q%2===0?l.jsx(Tv,{size:16,strokeWidth:1.8}):l.jsx(dm,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:b.escoName}),l.jsx("p",{children:b.isCalculated?"Aktiv siden i går":"Aktiv"})]})]}),l.jsx("button",{type:"button",className:b.visible?"ai-toggle on":"ai-toggle",onClick:()=>{le(b)},children:l.jsx("span",{})})]}),l.jsxs("div",{className:"ai-tags",children:[l.jsx("span",{children:b.escoName}),l.jsx("span",{children:de||"København"}),l.jsxs("span",{children:[oe," km"]})]})]},b.id))]})]}),l.jsxs("section",{className:"ai-jobs-section",children:[l.jsxs("div",{className:"ai-jobs-head",children:[l.jsxs("h3",{children:[l.jsx(Kn,{size:16,strokeWidth:1.8})," Anbefalede jobs til dig"]}),l.jsx("span",{children:"Opdateret for 5 min siden"})]}),l.jsxs("div",{className:"ai-jobs-grid",children:[X?l.jsx("p",{className:"dash-loading",children:"Indlaeser anbefalinger..."}):null,!X&&E.length===0?l.jsx("p",{className:"dash-loading",children:"Ingen jobanbefalinger fundet endnu."}):null,E.map((b,q)=>l.jsxs("article",{className:"ai-job-card",role:"button",tabIndex:0,onClick:()=>c(b.id,b.fromJobnet,"agents"),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),c(b.id,b.fromJobnet,"agents"))},children:[l.jsx("div",{className:`ai-job-rail ${q%3===2?"indigo":"teal"}`}),l.jsxs("div",{className:"ai-job-top",children:[b.companyLogoImage||b.logoUrl?l.jsx("img",{src:b.companyLogoImage||b.logoUrl,alt:b.companyName,className:"ai-company-logo"}):l.jsx("div",{className:"ai-company-logo-fallback",children:H1(b.companyName)}),l.jsxs("div",{className:"ai-match-col",children:[l.jsxs("div",{className:"ai-match-pill",children:[l.jsx(Wn,{size:13,strokeWidth:1.8})," ",B1(q),"% Match"]}),l.jsxs("small",{children:["Via: ",v[0]?.escoName||"Jobagent"]})]})]}),l.jsxs("div",{className:"ai-job-title-wrap",children:[l.jsx("h4",{children:b.title}),l.jsxs("p",{children:[b.companyName," • ",b.address||"Lokation"]})]}),l.jsxs("div",{className:"ai-job-tags",children:[l.jsx("span",{children:b.occupationName||"Frontend"}),l.jsx("span",{children:b.fromJobnet?"Jobnet":"Arbejd.com"}),l.jsx("span",{children:b.candidateDistance!=null?`${Math.round(b.candidateDistance)} km`:"Remote"})]}),l.jsxs("div",{className:"ai-job-bottom",children:[l.jsx("span",{children:"Slået op for nyligt"}),l.jsxs("button",{type:"button",onClick:F=>{F.stopPropagation(),c(b.id,b.fromJobnet,"agents")},children:["Læs mere ",l.jsx(La,{size:14,strokeWidth:1.8})]})]})]},b.id))]})]})]})]})}const Y1={paymentOverview:null,jobAgentFilters:[],cvSuggestions:[],escos:[]};function Rh(){return["Diamantskærer","Ministerialbetjent","Kiropraktor","System Developer","Senior Software Developer","Founder and Developer","Senior .Net Developer","Freelance Programmer","Støberichef","Softwareudvikler, frontend","CSR-ansvarlig","Lagerchef inden for råstof","Ios developer","Kokkeelev","IT-kvalitetsmedarbejder","Efterretningsofficer"]}function J1(u){return u>=70?{text:"Kan styrke dine chancer i ansøgningsbunken",kind:"strong"}:u>=40?{text:"Ofte efterspurgt – forbedrer dine jobmuligheder markant",kind:"neutral"}:{text:"Et godt første skridt mod flere relevante job",kind:"soft"}}function Q1(u){return u==="education"?im:u==="language"?js:u==="driversLicense"?am:u==="certificate"?em:u==="qualification"?Wn:po}function X1(u){return u==="education"?"blue":u==="language"?"emerald":u==="driversLicense"?"orange":u==="certificate"?"rose":u==="qualification"?"indigo":"slate"}function Z1({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new gm,[]),[g,M]=_.useState("Lasse"),[H,R]=_.useState(void 0),[j,B]=_.useState(Y1),[T,V]=_.useState(!0),[J,P]=_.useState("");_.useEffect(()=>{let Y=!0;async function K(){V(!0);const[ee,Z]=await Promise.all([h.getCandidateProfile(),h.loadInitialData()]);if(!Y)return;M(ee.name),R(ee.imageUrl),B(Z);const D=Z.jobAgentFilters[0]?.escoName||Rh()[1];P($=>$||D),V(!1)}return K(),()=>{Y=!1}},[h]);const X=j.jobAgentFilters.length>0?j.jobAgentFilters.map(Y=>Y.escoName):Rh(),he=j.jobAgentFilters.find(Y=>Y.escoName===J)||j.jobAgentFilters[0],ie=(he?j.cvSuggestions.find(Y=>Y.escoId===he.escoId)?.improvements:j.cvSuggestions[0]?.improvements)||[],ne=ie.length>0?ie:[{name:"Grundkursus i sikkerhed og beredskab",jobChanceIncrease:78,improvementType:"education"},{name:"Service og kommunikation i offentlige institutioner",jobChanceIncrease:52,improvementType:"qualification"},{name:"Dansk (Flydende)",jobChanceIncrease:65,improvementType:"language"},{name:"B - Almindelig bil",jobChanceIncrease:34,improvementType:"driversLicense"},{name:"Konflikthåndtering",jobChanceIncrease:72,improvementType:"qualification"},{name:"Førstehjælpsbevis",jobChanceIncrease:44,improvementType:"certificate"},{name:"Sikkerhedsgodkendelse (PET)",jobChanceIncrease:81,improvementType:"certificate"}];return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"ai-agent",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar career-main",children:[l.jsx(Qt,{name:g,imageUrl:H,onLogout:u,theme:o,onToggleTheme:c,actions:l.jsxs("div",{className:"career-status-pill",children:[l.jsx(We,{size:15,strokeWidth:1.8}),"CV analyseret"]})}),l.jsxs("div",{className:"career-head",children:[l.jsxs("div",{className:"career-head-title-row",children:[l.jsx("div",{className:"career-head-icon",children:l.jsx(j1,{size:19,strokeWidth:1.8})}),l.jsx("h1",{children:"Karriereagent"})]}),l.jsx("p",{className:"career-head-kicker",children:"Din Karriereagent Foreslår"}),l.jsx("p",{className:"career-head-desc",children:"Boost din profil ved hjælp af kunstig intelligens. Forslagene er udvalgt til din profil ud fra analyser af over 100.000+ jobopslag og dit nuværende CV."})]}),l.jsxs("div",{className:"career-grid",children:[l.jsxs("aside",{className:"career-agents-col",children:[l.jsxs("div",{className:"career-agents-head",children:[l.jsx("h2",{children:"Mine agenter"}),l.jsxs("button",{type:"button",children:[l.jsx(Hp,{size:16,strokeWidth:1.8})," Tilføj ny agent"]})]}),l.jsx("div",{className:"career-agents-list custom-scrollbar",children:X.map(Y=>l.jsxs("button",{type:"button",className:J===Y?"active":"",onClick:()=>P(Y),children:[l.jsx("span",{children:Y}),J===Y?l.jsx("i",{}):null]},Y))})]}),l.jsxs("section",{className:"career-reco-col",children:[l.jsxs("div",{className:"career-reco-head",children:[l.jsxs("h2",{children:["Viser anbefalinger for",l.jsx("span",{children:J||"Ministerialbetjent"})]}),l.jsxs("button",{type:"button",children:[l.jsx(lm,{size:14,strokeWidth:1.8})," Filtrer"]})]}),T?l.jsx("p",{className:"dash-loading",children:"Indlaeser anbefalinger..."}):null,l.jsx("div",{className:"career-cards custom-scrollbar",children:ne.map((Y,K)=>{const ee=Q1(Y.improvementType||"qualification"),Z=J1(Y.jobChanceIncrease||0),D=X1(Y.improvementType||"qualification");return l.jsxs("article",{className:"career-card",children:[l.jsx("div",{className:"career-card-glow"}),l.jsx("div",{className:"career-card-wand",children:l.jsx(Kn,{size:16,strokeWidth:1.8})}),l.jsxs("div",{className:"career-card-content",children:[l.jsx("div",{className:`career-card-icon ${D}`,children:l.jsx(ee,{size:18,strokeWidth:1.8})}),l.jsx("h3",{children:Y.shortName||Y.name}),l.jsxs("p",{className:`tone ${Z.kind}`,children:[Z.kind==="strong"?l.jsx(fm,{size:13,strokeWidth:1.8}):Z.kind==="neutral"?l.jsx(Wn,{size:13,strokeWidth:1.8}):l.jsx(i1,{size:13,strokeWidth:1.8}),Z.text]})]})]},`${Y.name}-${K}`)})})]})]})]})]})}class K1{constructor(s=He){this.http=s}generateApplication(s,c,o,h){let g=z.backendApiV2+"1.0.0/client/ai_handler/create_my_application",M={isStar:s,jobId:c,language:o,userInput:h};return this.http.post(g,M)}listGeneratedJobApplications(s){let c=z.backendApiV2+"1.0.0/client/ai_handler/list_created_job_application/"+s;return this.http.get(c)}listPredefinedUserInput(){let s=z.backendApiV2+"1.0.0/client/ai_handler/list_predefined_user_input";return this.http.get(s)}getJobApplication(s){let c=z.backendApiV2+"1.0.0/client/ai_handler/"+s;return this.http.get(c)}updateMyCvDescriptions(s){let c=z.backendApiV2+"1.0.0/client/ai_handler/update_my_cv_descriptions",o={language:s};return this.http.post(c,o)}updateStatesOnMyCvDescription(s,c,o){let h=z.backendApiV2+"1.0.0/client/ai_handler/update_states_on_my_cv_descriptions/"+s,g={state:c,subState:o};return this.http.put(h,g)}getMyCvDescriptions(){let s=z.backendApiV2+"1.0.0/client/ai_handler/get_my_cv_descriptions";return this.http.get(s)}submitJobApplicationRating(s,c,o){let h=z.backendApiV2+"1.0.0/client/ai_handler/job_application_rating",g={ai_generated_job_application_id:s,rating:c,rating_text:o};return this.http.post(h,g)}startApplicationExamination(s){const c=z.backendApiV2+"1.0.0/client/ai_handler/create_application_examination",o={ai_generated_job_application_id:s};return this.http.post(c,o)}getApplicationExamination(s){const c=z.backendApiV2+"1.0.0/client/ai_handler/application_examination/"+encodeURIComponent(s);return this.http.get(c)}getApplicationExaminationByJobApplicationId(s){const c=z.backendApiV2+"1.0.0/client/ai_handler/application_examination_by_job_application/"+s;return this.http.get(c)}}class W1{constructor(s=He){this.http=s}searchForCertification(s){let c=encodeURIComponent(s),o=z.backendApiV2+`1.0.0/client/certificate?search_text=${c}`;return this.http.get(o)}saveCertification(s){let c=z.backendApiV2+"1.0.0/client/candidate_certificate",o={qualification_id:s};return this.http.post(c,o)}updateCertification(s){let c=z.backendApiV2+"1.0.0/client/candidate_certificate/"+s.id,o=s;return this.http.put(c,o)}removeCertification(s){let c=z.backendApiV2+"1.0.0/client/candidate_certificate/"+s;return this.http.delete(c)}addUnknownCertificate(s){let c=z.backendApiV2+"1.0.0/client/certificate",o={certificate_name:s};return this.http.post(c,o)}}class F1{constructor(s=He){this.http=s}sendMyCvToEmail(){let s=z.backendApi+"api/1.1.0/candidate/sendPdf",c={};return this.http.post(s,c)}getMyCv(){let s=z.backendApiV2+"1.0.0/client/candidate/pdf";return this.http.get(s,{responseType:"blob"})}getMyCvV2(s){let c=z.backendApiV2+"1.0.0/client/candidate/pdf_url?language="+s;return this.http.get(c)}generateCv(s){let c=z.backendApiV2+"1.0.0/client/candidate/generateCv",o={language:s};return this.http.post(c,o)}}class $1{constructor(s=He,c=Jl){this.http=s,this.localStorageService=c}uploadCv(s,c){const o=z.backendApiV2+"1.0.0/client/cv_upload";return this.http.post(o,s,{headers:{Authorization:`Bearer ${c}`}})}getCvUploadData(){let s=z.backendApiV2+"1.0.0/client/cv_upload/get_upload_cv";return this.http.get(s)}setProfileTextToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/profile_text_is_done/"+s,o={};return this.http.put(c,o)}setExperienceToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/experience_is_done/"+s,o={};return this.http.put(c,o)}setEducationToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/education_is_done/"+s,o={};return this.http.put(c,o)}setQualificationToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/qualification_is_done/"+s,o={};return this.http.put(c,o)}setCertificateToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/certificate_is_done/"+s,o={};return this.http.put(c,o)}setLanguageToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/language_is_done/"+s,o={};return this.http.put(c,o)}setDriversLicenseToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/drivers_license_is_done/"+s,o={};return this.http.put(c,o)}setCvUploadToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/cv_is_done/"+s,o={};return this.http.put(c,o)}}class I1{constructor(s=He){this.http=s}getAllDriverLicenses(){let s=z.backendApi+"api/1.1.0/driversLicenses";return this.http.get(s)}updateDriverLicense(s,c){let o=z.backendApi+"api/1.1.0/candidate/driversLicense/"+s,h={};return this.http.put(o,h)}removeLanguage(s){let c=z.backendApiV2+"1.0.0/client/candidate_drivers_license/"+s;return this.http.delete(c)}saveDriverLicense(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_drivers_license",h={level:c,drivers_license_id:s.id};return this.http.post(o,h)}saveDriverLicenseV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_drivers_license",h={level:s,drivers_license_id:c};return this.http.post(o,h)}}class P1{constructor(s=He){this.http=s}searchForEducations(s){let c=z.backendApi+"api/1.1.0/educations/search/"+s;return this.http.get(c)}searchForSchools(s){let c=z.backendApi+"api/1.1.0/institutions/search/"+s;return this.http.get(c)}saveEducation(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_education",h={comments:s.comments,education_disced_15:s.education.disced15,from_date:s.fromDate,to_date:s.toDate,institution_number:s.institution?.instNumber,is_current:s.isCurrent,language:c};return this.http.post(o,h)}removeEducation(s){let c=z.backendApiV2+"1.0.0/client/candidate_education/"+s;return this.http.delete(c)}updateEducation(s,c,o){let h=z.backendApiV2+"1.0.0/client/candidate_education/"+s,g={comments:c.comments,from_date:c.fromDate,to_date:c.toDate,is_current:c.isCurrent,language:o};return this.http.put(h,g)}getEducationOccupationSuggestions(s){let c=z.backendApi+"api/1.1.0/educations/suggestions/occupation/"+s;return this.http.get(c)}saveUnknownEducation(s){let c=z.backendApiV2+"1.0.0/client/education/save_unknown_education",o={education_name:s};return this.http.post(c,o)}saveEducationV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_education",h={comments:s.comments,education_disced_15:s.education_disced_15,from_date:s.from_date,to_date:s.to_date,institution_number:s.institution_number,is_current:s.is_current,language:c};return this.http.post(o,h)}}class ex{constructor(s=He){this.http=s}getAllLanguages(){let s=z.backendApi+"api/1.1.0/languages";return this.http.get(s)}saveLanguage(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_language",h={language_id:c.id,level:s};return this.http.post(o,h)}updateLanguage(s,c,o){let h=z.backendApiV2+"1.0.0/client/candidate_language/"+s,g={level:c};return this.http.put(h,g)}removeLanguage(s){let c=z.backendApiV2+"1.0.0/client/candidate_language/"+s;return this.http.delete(c)}saveLanguageV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_language",h={language_id:c,level:s};return this.http.post(o,h)}}class tx{constructor(s=He){this.http=s}searchForQualification(s){let c=z.backendApi+"api/1.1.0/qualifications/type/3/search/"+s;return this.http.get(c)}updateQualification(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_qualification/"+s,h={level:c};return this.http.put(o,h)}saveQualification(s){let c=z.backendApiV2+"1.0.0/client/candidate_qualification",o={level:s.level,qualification_id:s.qualification.id};return this.http.post(c,o)}removeQualification(s){let c=z.backendApiV2+"1.0.0/client/candidate_qualification/"+s;return this.http.delete(c)}getQualificationsOccupationSuggestions(s,c){let o=z.backendApi+"api/1.1.0/qualifications/type/"+c+"/suggestions/occupation/"+s;return this.http.get(o)}addUnknownQualification(s){let c=z.backendApi+"api/1.1.0/qualifications/type/3/fromCandidate",o={name:s,type:3};return this.http.post(c,o)}saveQualificationV2(s){let c=z.backendApiV2+"1.0.0/client/candidate_qualification",o={level:s.level,qualification_id:s.qualification_id};return this.http.post(c,o)}}class ax{constructor(s=He){this.http=s}addUnknownOccupation(s){let c=z.backendApi+"api/1.1.0/occupations/fromCandidate",o={name:s};return this.http.post(c,o)}}class lx{constructor(s=He){this.http=s}saveUnknownInstitution(s){let c=z.backendApiV2+"1.0.0/client/institution/save_unknown_institution",o={institution_name:s};return this.http.post(c,o)}}class nx{constructor(s=new al,c=new F1,o=new $1,h=new Ss,g=new K1,M=new P1,H=new tx,R=new W1,j=new ex,B=new I1,T=new mm,V=new ax,J=new lx,P=Jl){this.candidateService=s,this.cvService=c,this.cvUploadService=o,this.subscriptionService=h,this.aiHandlerService=g,this.educationService=M,this.qualificationService=H,this.certificationService=R,this.languageService=j,this.driverLicenseService=B,this.escoService=T,this.occupationService=V,this.institutionService=J,this.localStorageService=P}escosCache=null;async getSnapshot(){const[s,c,o,h,g,M,H,R,j,B]=await Promise.allSettled([this.candidateService.getCandidate(),this.candidateService.getCandidatesExperiences(),this.candidateService.getCandidatesEducations(),this.candidateService.getCandidatesQualifications(),this.candidateService.getCandidatesCertifications(),this.candidateService.getCandidatesLanguages(),this.candidateService.getCandidatesDriverLicenses(),this.subscriptionService.getPaymentOverview(),this.cvUploadService.getCvUploadData(),this.aiHandlerService.getMyCvDescriptions()]);return{candidate:s.status==="fulfilled"?s.value:null,experiences:c.status==="fulfilled"?c.value:[],educations:o.status==="fulfilled"?o.value:[],skills:h.status==="fulfilled"?h.value:[],certifications:g.status==="fulfilled"?g.value:[],languages:M.status==="fulfilled"?M.value:[],driverLicenses:H.status==="fulfilled"?H.value:[],paymentOverview:R.status==="fulfilled"?R.value:null,cvUploadData:j.status==="fulfilled"?j.value:null,aiGeneratedCVDescription:B.status==="fulfilled"&&B.value?.id?B.value:null}}async setActiveSeeker(s,c,o){const h={...s,isActive:c};return this.candidateService.updateCandidate(h,o)}async updateCandidate(s,c){return this.candidateService.updateCandidate(s,c)}async generateCv(s){await this.cvService.generateCv(s)}async getCvDownloadUrl(s){return(await this.cvService.getMyCvV2(s)).url}async uploadCv(s,c){const o=await this.localStorageService.getAuthToken();if(!o)throw new Error("No auth token found.");await this.cvUploadService.uploadCv({base_64_cv_file:s,cv_file_type:c},o)}async optimizeCv(s){await this.aiHandlerService.updateMyCvDescriptions(s)}async updateExperience(s,c){await this.candidateService.updateExperience(s,c)}async updateEducation(s,c){const o={comments:s.comments,education:s.education,institution:s.institution,fromDate:new Date(s.fromDate),toDate:new Date(s.toDate),isCurrent:s.isCurrent};await this.educationService.updateEducation(s.id,o,c)}async updateCertification(s){await this.certificationService.updateCertification(s)}async updateLanguage(s){const c={id:s.language.id,isO639:s.language.isO639,name:s.language.name,ownName:s.language.ownName,priority:s.language.priority};await this.languageService.updateLanguage(s.id,s.level,c)}async removeExperience(s){await this.candidateService.removeExperience(s)}async removeEducation(s){await this.educationService.removeEducation(s)}async removeQualification(s){await this.qualificationService.removeQualification(s)}async removeCertification(s){await this.certificationService.removeCertification(s)}async removeLanguage(s){await this.languageService.removeLanguage(s)}async removeDriverLicense(s){await this.driverLicenseService.removeLanguage(s)}async getEscoSuggestions(s,c=25){this.escosCache||(this.escosCache=await this.escoService.listAllEscos());const o=s.trim().toLowerCase();return o?this.escosCache.filter(h=>h.preferedLabelDa.toLowerCase().includes(o)).slice(0,c):this.escosCache.slice(0,c)}async getLanguageOptions(){return(await this.languageService.getAllLanguages()).allLanguages??[]}async getDriverLicenseOptions(){return this.driverLicenseService.getAllDriverLicenses()}async createExperience(s,c){let o=s.escoId??null;if(!o&&s.occupationName?.trim()&&(o=(await this.occupationService.addUnknownOccupation(s.occupationName.trim())).id),!o)throw new Error("Vælg eller opret en stilling først.");await this.candidateService.saveExperienceV2({companyName:s.companyName,comments:s.comments,fromDate:s.fromDate,toDate:s.toDate,isCurrent:s.isCurrent,escoId:o},c)}async createEducation(s,c){let o=s.educationDisced15??null;if(!o&&s.educationName?.trim()&&(o=(await this.educationService.saveUnknownEducation(s.educationName)).disced15),!o)throw new Error("Vælg eller opret en uddannelse først.");let h=s.institutionNumber;!h&&s.institutionName?.trim()&&(h=(await this.institutionService.saveUnknownInstitution(s.institutionName.trim())).inst_number),await this.educationService.saveEducationV2({comments:s.comments,institution_number:h,from_date:s.fromDate,to_date:s.toDate,education_disced_15:o,is_current:s.isCurrent},c)}async createCertification(s){let c=s.certificateId??null;if(!c&&s.certificateName?.trim()&&(c=(await this.certificationService.addUnknownCertificate(s.certificateName.trim())).certificate_id),!c)throw new Error("Vælg eller opret et certifikat først.");await this.certificationService.saveCertification(c)}async createLanguage(s,c){await this.languageService.saveLanguageV2(c,s)}async getQualificationSuggestions(s){const c=s.trim();return c?this.qualificationService.searchForQualification(c):[]}async createQualification(s){let c=s.qualificationId?.trim()||"";if(!c&&s.qualificationName?.trim()&&(c=(await this.qualificationService.addUnknownQualification(s.qualificationName.trim())).id),!c)throw new Error("Vælg eller opret en kvalifikation først.");await this.qualificationService.saveQualificationV2({qualification_id:c,level:s.level})}async getEducationSuggestions(s){const c=s.trim();return c?this.educationService.searchForEducations(c):[]}async getSchoolSuggestions(s){const c=s.trim();return c?this.educationService.searchForSchools(c):[]}async getCertificationSuggestions(s){const c=s.trim();return c?this.certificationService.searchForCertification(c):[]}async createDriverLicense(s,c){await this.driverLicenseService.saveDriverLicenseV2(c,s)}}const ix={candidate:null,experiences:[],educations:[],skills:[],certifications:[],languages:[],driverLicenses:[],paymentOverview:null,cvUploadData:null,aiGeneratedCVDescription:null},sx=[{id:"e1",title:"Senior Frontend-udvikler",company:"Lunar",from:"2020-08-01",to:null,description:"Udvikling og vedligeholdelse af core-features i bankens app samt performance-optimering."},{id:"e2",title:"Web-udvikler",company:"Trustpilot",from:"2017-01-01",to:"2020-07-01",description:"Udviklede dashboards og analysevaerktojer i taet samarbejde med UX-teamet."}],rx=[{id:"ed1",title:"Cand.it i Webudvikling",school:"IT-Universitetet i Kobenhavn",from:"2013-08-01",to:"2015-06-01",description:"Specialisering i webteknologier, databaser og brugercentreret design."},{id:"ed2",title:"Datamatiker",school:"KEA - Kobenhavns Erhvervsakademi",from:"2010-08-01",to:"2013-06-01",description:"Softwarekonstruktion, systemarkitektur og programmering i Java og C#."}];function bs(u){if(!u)return null;const s=u instanceof Date?u:new Date(u);return Number.isNaN(s.getTime())?null:s}function Vh(u){const s=bs(u);return s?new Intl.DateTimeFormat("da-DK",{month:"short",year:"numeric"}).format(s):"Ukendt"}function Hh(u,s,c){const o=Vh(u),h=c?"Nu":Vh(s);return`${o} - ${h}`}function cx(u){const s=bs(u);return s?new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"long",year:"numeric"}).format(s):"Ikke angivet"}function Bh(u){return[...u].sort((s,c)=>{const o=bs(s.fromDate)?.getTime()??0;return(bs(c.fromDate)?.getTime()??0)-o})}function ox(u){return u.qualification?.name||"Kvalifikation"}function ux(u){return u.qualification?.name||u.levelName||"Certificering"}function dx(u){return u.driversLicense?.name||u.levelName||"Korekort"}function fx(u){return u.levelName||"Niveau ukendt"}function hx({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new nx,[]),[g,M]=_.useState("standard"),[H,R]=_.useState(ix),[j,B]=_.useState(!0);_.useEffect(()=>{let D=!0;return h.getSnapshot().then($=>{D&&R($)}).finally(()=>{D&&B(!1)}),()=>{D=!1}},[h]);const T=H.candidate,V=T?.firstName?.trim()||T?.name?.trim()||"Lasse",J=T?.firstName||"Lasse",P=T?.lastName||"Hansen",X=T?.imageUrl||T?.image||"",he=H.experiences.length>0?Bh(H.experiences):[],ie=H.educations.length>0?Bh(H.educations):[],ne=H.skills,Y=H.languages,K=H.certifications,ee=H.driverLicenses,Z=Y.length>0?Y.map(D=>({id:D.id,name:D.language?.name||"Sprog",level:fx(D)})):[{id:"da",name:"Dansk",level:"Modersmal"},{id:"en",name:"Engelsk",level:"Flydende"}];return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"cv",onNavigate:s}),l.jsxs("main",{className:`dash-main custom-scrollbar cv-page ${g==="reference"?"cv-design-reference":""}`,children:[l.jsx(Qt,{name:V,imageUrl:X||void 0,onLogout:u,theme:o,onToggleTheme:c,actions:l.jsxs("button",{type:"button",className:"cv-design-toggle",onClick:()=>M(D=>D==="standard"?"reference":"standard"),children:[g==="reference"?l.jsx(sm,{size:16,strokeWidth:1.8}):l.jsx(rm,{size:16,strokeWidth:1.8}),l.jsx("span",{children:g==="reference"?"Skift til standard design":"Skift til reference design"})]})}),l.jsxs("div",{className:"cv-head",children:[l.jsxs("div",{children:[l.jsx("h1",{children:"Dit CV"}),l.jsx("p",{children:"Handter dine faglige oplysninger, erfaringer og uddannelser."})]}),l.jsxs("button",{type:"button",className:"cv-edit-btn",children:[l.jsx(Ov,{size:16,strokeWidth:1.8})," Rediger CV"]})]}),j?l.jsx("p",{className:"dash-loading",children:"Indlaeser CV..."}):null,l.jsxs("div",{className:"cv-layout",children:[l.jsxs("div",{className:"cv-left",children:[l.jsxs("article",{className:"cv-card",children:[l.jsx("div",{className:"cv-avatar-wrap",children:X?l.jsx("img",{src:X,alt:V,className:"cv-avatar"}):l.jsx("div",{className:"cv-avatar cv-avatar-fallback",children:V.slice(0,1).toUpperCase()})}),l.jsxs("div",{className:"cv-section-head",children:[l.jsx(ql,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Personlige oplysninger"})]}),l.jsxs("div",{className:"cv-personal-list",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Fornavn"}),l.jsx("strong",{children:J})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Efternavn"}),l.jsx("strong",{children:P})]}),l.jsxs("div",{children:[l.jsx("span",{children:"E-mail"}),l.jsx("strong",{children:T?.email||"lasse@eksempel.dk"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Telefon"}),l.jsx("strong",{children:T?.phoneNumber||"+45 12 34 56 78"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Fodselsdato"}),l.jsx("strong",{children:cx(T?.birthday)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Kon"}),l.jsx("strong",{children:T?.gender||"Mand"})]})]})]}),l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(po,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Kvalifikationer"})]}),l.jsx("div",{className:"cv-chip-wrap",children:(ne.length>0?ne.map(ox):["HTML & CSS","Tailwind CSS","JavaScript","React","UI/UX Design"]).slice(0,12).map(D=>l.jsx("span",{className:"cv-chip",children:D},D))})]}),l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(js,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Sprog"})]}),l.jsx("div",{className:"cv-language-list",children:Z.map(D=>l.jsxs("div",{children:[l.jsx("strong",{children:D.name}),l.jsx("span",{children:D.level})]},D.id))})]}),l.jsxs("div",{className:"cv-mini-grid",children:[l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(em,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Certificeringer"})]}),l.jsxs("ul",{className:"cv-list",children:[(K.length>0?K:[]).slice(0,4).map(D=>l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8})," ",ux(D)]},D.id)),K.length===0?l.jsxs(l.Fragment,{children:[l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8})," AWS Certified Developer"]}),l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8})," Certificeret Scrum Master"]})]}):null]})]}),l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(am,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Korekort"})]}),l.jsx("div",{className:"cv-chip-wrap",children:(ee.length>0?ee.map(dx):["B (Almindelig bil)","A (Motorcykel)"]).map(D=>l.jsx("span",{className:"cv-chip",children:D},D))})]})]})]}),l.jsxs("div",{className:"cv-right",children:[l.jsxs("section",{children:[l.jsxs("div",{className:"cv-timeline-head",children:[l.jsx("div",{className:"cv-timeline-icon",children:l.jsx(go,{size:19,strokeWidth:1.8})}),l.jsx("h2",{children:"Erhvervserfaring"})]}),l.jsx("div",{className:"cv-timeline",children:(he.length>0?he:sx).map((D,$)=>{const de="occupation"in D?D.occupation?.name||"Stilling":D.title,te="companyName"in D?D.companyName:D.company,oe="comments"in D?D.comments:D.description,ue="fromDate"in D?D.fromDate:D.from,Ae="toDate"in D?D.toDate:D.to,Ne="isCurrent"in D?!!D.isCurrent:!1;return l.jsxs("article",{className:"cv-timeline-item",children:[l.jsx("div",{className:"cv-timeline-dot",children:l.jsx(ro,{size:15,strokeWidth:1.8})}),l.jsxs("div",{className:"cv-timeline-card",children:[l.jsx("h3",{children:de}),l.jsxs("div",{className:"cv-meta",children:[l.jsx("strong",{children:te}),l.jsx("span",{children:Hh(ue,Ae,Ne)})]}),l.jsx("p",{children:oe||"Ingen beskrivelse."})]})]},"id"in D?String(D.id):`exp-${$}`)})})]}),l.jsx("div",{className:"cv-divider"}),l.jsxs("section",{children:[l.jsxs("div",{className:"cv-timeline-head",children:[l.jsx("div",{className:"cv-timeline-icon",children:l.jsx(im,{size:19,strokeWidth:1.8})}),l.jsx("h2",{children:"Uddannelse"})]}),l.jsx("div",{className:"cv-timeline",children:(ie.length>0?ie:rx).map((D,$)=>{const de="education"in D?D.education?.name||"Uddannelse":D.title,te="institution"in D?D.institution?.name||"Institution":D.school,oe="comments"in D?D.comments:D.description,ue="fromDate"in D?D.fromDate:D.from,Ae="toDate"in D?D.toDate:D.to,Ne="isCurrent"in D?!!D.isCurrent:!1;return l.jsxs("article",{className:"cv-timeline-item",children:[l.jsx("div",{className:"cv-timeline-dot",children:l.jsx(ro,{size:15,strokeWidth:1.8})}),l.jsxs("div",{className:"cv-timeline-card",children:[l.jsx("h3",{children:de}),l.jsxs("div",{className:"cv-meta",children:[l.jsx("strong",{children:te}),l.jsx("span",{children:Hh(ue,Ae,Ne)})]}),l.jsx("p",{children:oe||"Ingen beskrivelse."})]})]},"id"in D?String(D.id):`edu-${$}`)})})]})]})]})]})]})}class mx{constructor(s=He){this.http=s}getNotificationSetting(){const s=z.backendApiV2+"2.0.0/client/notification/settings";return this.http.get(s)}createNotificationSetting(s){const c=z.backendApiV2+"2.0.0/client/notification/settings";return this.http.post(c,s)}updateNotificationSetting(s,c){const o=z.backendApiV2+"2.0.0/client/notification/settings/"+s;return this.http.put(o,c)}deleteNotificationSetting(s){const c=z.backendApiV2+"2.0.0/client/notification/settings/"+s;return this.http.delete(c)}getNewNotificationCount(){let s=z.backendApiV2+"1.0.0/client/notification/unseen_notifications";return this.http.get(s)}getNotifications(s,c){let o=z.backendApiV2+"1.0.0/client/notification/"+s+"/"+c;return this.http.get(o)}notificationSeenByUser(s){let c=z.backendApiV2+"1.0.0/client/notification/seen_by_user/"+s,o={};return this.http.put(c,o)}}class xo{constructor(s=He,c=Jl){this.http=s,this.localStorage=c}listSimulationPersonalities(){let s=z.backendApiV2+"client/simulation/1.0.0/list_simulation_personalities",c=new tl().set("language","da");return this.http.get(s,{params:c})}getInterviewEvaluation(s){const c=z.backendApiV2+`client/simulation/1.0.0/interview_evaluation/${s}`;return this.http.get(c)}listInterviews(s=20,c=0){const o=z.backendApiV2+"client/job_simulator/1.0.0/list_interviews",h=new tl().set("limit",s.toString()).set("offset",c.toString());return this.http.get(o,{params:h})}submitEvaluationRating(s,c,o){const h=z.backendApiV2+"client/simulation/1.0.0/evaluation_rating",g={interview_id:s,rating:c,rating_text:o};return this.http.post(h,g)}submitInterviewRating(s,c,o){const h=z.backendApiV2+"client/simulation/1.0.0/interview_rating",g={interview_id:s,rating:c,rating_text:o};return this.http.post(h,g)}}class gx{constructor(s=He){this.http=s}chatMessageThreads=[];getChatMessages(){let s=z.backendApi+"api/1.1.0/chatMessages/forCandidate/";return this.http.get(s)}sendMessage(s){let c=z.backendApi+"api/1.1.0/chatMessages/"+s.threadId+"/fromCandidate";return this.http.post(c,s)}markThreadRead(s){let c=z.backendApi+"api/1.1.0/chatMessages/markRead/"+s;return this.http.get(c)}}class px{constructor(s=He){this.http=s}getUnreadMessages(){let s=z.backendApi+"api/1.1.0/chatMessages/getUnreadCount";return this.http.get(s)}}function vs(u){if(!u)return 0;const c=(u instanceof Date?u:new Date(u)).getTime();return Number.isNaN(c)?0:c}function Pc(u,s){const c=u?.timeSent?new Date(u.timeSent):new Date,o=u?.seen?new Date(u.seen):void 0;return{id:u?.id,threadId:u?.threadId??s,timeSent:c,fromCandidate:!!u?.fromCandidate,text:u?.text??"",seen:o}}class pm{constructor(s=new gx,c=new px,o=new al){this.chatMessagesService=s,this.messageService=c,this.candidateService=o}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate(),c=s.firstName?.trim()||s.name?.trim()||"Lasse",o=s.imageUrl||s.image||void 0;return{name:c,imageUrl:o}}catch{return{name:"Lasse"}}}async getThreads(){return(await this.chatMessagesService.getChatMessages()??[]).map(c=>{const o=(c.allMessages??[]).map(g=>Pc(g,c.id));o.sort((g,M)=>vs(g.timeSent)-vs(M.timeSent));const h=c.latestMessage?Pc(c.latestMessage,c.id):o[o.length-1]??Pc(void 0,c.id);return{...c,allMessages:o,latestMessage:h}}).sort((c,o)=>vs(o.latestMessage?.timeSent)-vs(c.latestMessage?.timeSent))}async getUnreadCount(){const s=await this.messageService.getUnreadMessages();return Number(s?.unreadCount??0)}async sendMessage(s,c){const o={threadId:s,text:c.trim(),fromCandidate:!0,timeSent:new Date};return this.chatMessagesService.sendMessage(o)}async markThreadReadByMessageId(s){s&&await this.chatMessagesService.markThreadRead(s)}}function Zn(u){return typeof u=="object"&&u!==null?u:null}function Ot(u){return typeof u=="string"?u:""}function vx(u){return typeof u=="number"?u:null}function xx(u){const s=Zn(u);if(!s)return null;const o=Zn(s.jobPosting)??s,h=Ot(o.id);return h?{id:h,title:Ot(o.title),companyName:Ot(o.companyName),address:Ot(o.address),applicationDeadline:Ot(o.applicationDeadline),candidateDistance:vx(o.candidateDistance),fromJobnet:!!o.fromJobnet,logoUrl:Ot(o.logoUrl),companyLogoImage:Ot(o.companyLogoImage)}:null}function bx(u){const s=Zn(u);return(Array.isArray(s?.interviews)?s.interviews:[]).map(o=>{const h=Zn(o);if(!h)return null;const g=Ot(h.id);return g?{id:g,jobName:Ot(h.job_name)||"Interview",companyName:Ot(h.company_name)||null,interviewDate:Ot(h.interview_date)||null,recommendation:Ot(h.recommendation)||null,isCompleted:!!h.is_completed}:null}).filter(o=>!!o).sort((o,h)=>{const g=o.interviewDate?new Date(o.interviewDate).getTime():0;return(h.interviewDate?new Date(h.interviewDate).getTime():0)-g}).slice(0,5)}function yx(u){const s=Zn(u);return s?Array.isArray(s.searchList)?s.searchList:[]:[]}class jx{constructor(s=new al,c=new mx,o=new vo,h=new Ss,g=new xo,M=new pm){this.candidateService=s,this.notificationService=c,this.jobService=o,this.subscriptionService=h,this.simulationService=g,this.messagesViewModel=M}async loadInitialData(){const[s,c,o,h,g,M]=await Promise.allSettled([this.candidateService.getCandidate(),this.notificationService.getNotifications(0,5),this.messagesViewModel.getThreads(),this.loadBestJobs(),this.subscriptionService.getPaymentOverview(),this.simulationService.listInterviews(5,0)]);return{candidate:s.status==="fulfilled"?s.value:null,notifications:c.status==="fulfilled"?c.value.slice(0,5):[],messages:o.status==="fulfilled"?o.value.slice(0,5):[],bestJobs:h.status==="fulfilled"?h.value:[],subscription:g.status==="fulfilled"?g.value:null,evaluations:M.status==="fulfilled"?bx(M.value):[]}}async loadBestJobs(){const s=await this.jobService.getJobsV2(10,0,5,[]);return yx(s).map(o=>xx(o)).filter(o=>!!o).slice(0,5)}}const Nx={bestJobs:[],candidate:null,evaluations:[],messages:[],notifications:[],subscription:null};function qh(u){return u.trim().slice(0,1).toUpperCase()||"A"}function Sx({onLogout:u,onNavigate:s,onOpenJobDetail:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new jx,[]),[M,H]=_.useState(Nx),[R,j]=_.useState(!0);_.useEffect(()=>{let V=!0;return g.loadInitialData().then(J=>{V&&H(J)}).finally(()=>{V&&j(!1)}),()=>{V=!1}},[g]);const B=M.candidate?.firstName?.trim()||M.candidate?.name?.trim()||"Lasse",T=M.candidate?.imageUrl||M.candidate?.image||"";return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"dashboard",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar",children:[l.jsx(Qt,{name:B,imageUrl:T||void 0,onLogout:u,theme:h,onToggleTheme:o}),l.jsxs("div",{className:"dash-welcome",children:[l.jsxs("h1",{children:["Velkommen tilbage ",B," ",l.jsx("span",{children:"👋"})]}),l.jsx("p",{children:"Her er, hvad der sker med din jobsøgning i dag."})]}),R?l.jsx("p",{className:"dash-loading",children:"Indlaeser dashboard..."}):null,l.jsxs("div",{className:"dash-grid",children:[l.jsxs("div",{className:"dash-grid-main",children:[l.jsxs("article",{className:"dash-card",children:[l.jsx("div",{className:"dash-card-head",children:l.jsx("h2",{children:"Anbefalet til dig"})}),l.jsx("div",{className:"dash-job-list",children:(M.bestJobs.length>0?M.bestJobs:[{id:"d1",title:"Senior Frontend-udvikler",companyName:"Lunar",address:"Kobenhavn, DK",applicationDeadline:"",candidateDistance:null,fromJobnet:!1,logoUrl:"",companyLogoImage:""},{id:"d2",title:"React-udvikler",companyName:"Pleo",address:"Remote",applicationDeadline:"",candidateDistance:null,fromJobnet:!1,logoUrl:"",companyLogoImage:""}]).slice(0,5).map(V=>l.jsxs("div",{className:"dash-job-item",role:"button",tabIndex:0,onClick:()=>c(V.id,!!V.fromJobnet,"dashboard"),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),c(V.id,!!V.fromJobnet,"dashboard"))},children:[l.jsxs("div",{className:"dash-job-left",children:[l.jsx("div",{className:"dash-company-chip",children:qh(V.companyName)}),l.jsxs("div",{children:[l.jsx("h4",{children:V.title}),l.jsxs("p",{children:[V.companyName," • ",V.address||"Lokation ikke angivet"]})]})]}),l.jsx("button",{type:"button",className:"dash-job-arrow-btn","aria-label":"Se job",onClick:J=>{J.stopPropagation(),c(V.id,!!V.fromJobnet,"dashboard")},children:l.jsx(La,{size:16,strokeWidth:1.8})})]},V.id))})]}),l.jsxs("div",{className:"dash-split-grid",children:[l.jsxs("article",{className:"dash-card",children:[l.jsx("h3",{children:"Seneste beskeder"}),l.jsxs("div",{className:"dash-message-list",children:[(M.messages.length>0?M.messages:[]).slice(0,5).map(V=>l.jsxs("div",{className:"dash-message-item",children:[l.jsx("div",{className:"dash-avatar",children:qh(V.companyName||"A")}),l.jsxs("div",{children:[l.jsx("h4",{children:V.companyName||"Samtale"}),l.jsx("p",{children:V.latestMessage?.text||"Ingen besked endnu"})]})]},V.id)),M.messages.length===0?l.jsx("p",{className:"dash-muted",children:"Ingen beskeder endnu."}):null]})]}),l.jsxs("article",{className:"dash-card",children:[l.jsxs("div",{className:"dash-card-head dash-card-head-inline",children:[l.jsx("h3",{children:"Seneste simuleringer"}),l.jsx("button",{type:"button",className:"dash-icon-btn",children:l.jsx(Gv,{size:16,strokeWidth:1.8})})]}),l.jsxs("div",{className:"dash-sim-list",children:[l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon teal",children:l.jsx(io,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Teknisk samtale"}),l.jsx("p",{children:"Frontend-fokus"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{children:"92/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{style:{width:"92%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon purple",children:l.jsx(b1,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Kulturelt match"}),l.jsx("p",{children:"Lunar Bank"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{children:"88/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{style:{width:"88%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon amber",children:l.jsx(Jv,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Systemdesign"}),l.jsx("p",{children:"Arkitektur"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{className:"warn",children:"65/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{className:"warn",style:{width:"65%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon blue",children:l.jsx(io,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Live-kodning"}),l.jsx("p",{children:"React.js"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{children:"95/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{style:{width:"95%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon gray",children:l.jsx(om,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"HR-screening"}),l.jsx("p",{children:"Generelt"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{className:"na",children:"N/A"}),l.jsx("div",{className:"dash-progress"})]})]})]})]})]})]}),l.jsxs("div",{className:"dash-grid-side",children:[l.jsxs("article",{className:"dash-card dash-ai-card dash-ai-card-group",children:[l.jsx("div",{className:"dash-ai-peel"}),l.jsxs("div",{className:"dash-ai-content",children:[l.jsxs("div",{className:"dash-ai-head",children:[l.jsx(Kn,{size:22,strokeWidth:1.8}),l.jsx("h3",{children:"AI-indsigter til dit CV"})]}),l.jsx("p",{children:"Vi analyserede dit seneste CV op imod dine målroller."}),l.jsxs("ul",{className:"dash-ai-list",children:[l.jsxs("li",{className:"dash-ai-item",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(vp,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Kvantificer dine resultater"}),l.jsx("small",{children:'Tilføj tal til din rolle hos TechCorp (f.eks. \\"Forbedrede loadhastighed med 40%\\").'})]})]}),l.jsxs("li",{className:"dash-ai-item",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(mp,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Omorganiser dine færdigheder"}),l.jsx("small",{children:"Flyt React & TypeScript til toppen baseret på aktive Jobagenter."})]})]}),l.jsxs("li",{className:"dash-ai-item",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(Ip,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Tilføj manglende nøgleord"}),l.jsx("small",{children:'Inkluder \\"Tailwind CSS\\" for at matche 85% af dine anbefalede jobs.'})]})]}),l.jsxs("li",{className:"dash-ai-item dash-ai-xl-only",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(dm,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Omskriv dit resumé"}),l.jsx("small",{children:"Gør din målsætning mere handlingsorienteret."})]})]}),l.jsxs("li",{className:"dash-ai-item dash-ai-xl-only",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(pv,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Opdater porteføljelink"}),l.jsx("small",{children:"Dit GitHub-link gav en 404-fejl i vores test."})]})]})]}),l.jsx("button",{type:"button",children:"Anvend alle ændringer"})]})]}),l.jsxs("article",{className:"dash-card",children:[l.jsxs("div",{className:"dash-card-head dash-card-head-inline",children:[l.jsx("h3",{children:"Aktive Jobagenter"}),l.jsx("button",{type:"button",className:"dash-icon-btn",children:l.jsx(um,{size:16,strokeWidth:1.8})})]}),l.jsxs("div",{className:"dash-agent-list",children:[l.jsxs("div",{className:"dash-agent-item",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Frontend-udvikler"}),l.jsxs("small",{children:[l.jsx(Xn,{size:13,strokeWidth:1.8})," Kobenhavn"]})]}),l.jsxs("label",{className:"dash-switch",children:[l.jsx("input",{type:"checkbox",defaultChecked:!0}),l.jsx("span",{})]})]}),l.jsxs("div",{className:"dash-agent-item",children:[l.jsxs("div",{children:[l.jsx("span",{children:"React-udvikler"}),l.jsxs("small",{children:[l.jsx(co,{size:13,strokeWidth:1.8})," Remote (EU)"]})]}),l.jsxs("label",{className:"dash-switch",children:[l.jsx("input",{type:"checkbox",defaultChecked:!0}),l.jsx("span",{})]})]}),l.jsxs("div",{className:"dash-agent-item muted",children:[l.jsxs("div",{children:[l.jsx("span",{children:"UI/UX-designer"}),l.jsxs("small",{children:[l.jsx(Xn,{size:13,strokeWidth:1.8})," Aarhus"]})]}),l.jsxs("label",{className:"dash-switch",children:[l.jsx("input",{type:"checkbox"}),l.jsx("span",{})]})]})]}),l.jsx("button",{type:"button",className:"dash-outline-btn",children:"Opret ny agent"})]})]})]})]})]})}function fe({className:u,icon:s,style:c}){return l.jsx("iconify-icon",{className:u,icon:s,style:c})}function kx(){const[u,s]=_.useState(!1);return _.useEffect(()=>{if(!u)return;const c=document.body.style.overflow;document.body.style.overflow="hidden";function o(h){h.key==="Escape"&&s(!1)}return window.addEventListener("keydown",o),()=>{document.body.style.overflow=c,window.removeEventListener("keydown",o)}},[u]),_.useEffect(()=>{function c(){window.innerWidth>990&&s(!1)}return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),l.jsxs("div",{className:"homepage-react-root scroll-smooth bg-[#f8fafc] relative min-h-screen text-gray-600 selection:bg-teal-100 selection:text-teal-900 overflow-x-hidden flex flex-col font-normal custom-scrollbar",children:[l.jsx("div",{className:"fixed top-[-15%] left-[-10%] w-[60vw] h-[60vw] rounded-full bg-gradient-to-br from-teal-400/30 to-emerald-300/10 blur-[140px] pointer-events-none z-0"}),l.jsx("div",{className:"fixed bottom-[-15%] right-[-10%] w-[70vw] h-[70vw] rounded-full bg-gradient-to-tl from-indigo-500/20 to-purple-400/10 blur-[160px] pointer-events-none z-0"}),l.jsx("div",{className:"fixed top-[20%] right-[15%] w-[40vw] h-[40vw] rounded-full bg-gradient-to-tr from-cyan-400/20 to-blue-300/10 blur-[130px] pointer-events-none z-0"}),l.jsxs("nav",{className:"homepage-nav fixed top-0 inset-x-0 z-50 h-16 bg-white/20 backdrop-blur-2xl border-b border-white/50 shadow-[0_4px_30px_rgba(0,0,0,0.03)] flex items-center justify-between px-6 lg:px-12 transition-all",children:[l.jsxs("a",{href:"#",className:"flex items-center gap-2 group outline-none",children:[l.jsxs("svg",{viewBox:"0 0 100 100",className:"w-8 h-8 rounded-lg shadow-[0_4px_15px_rgba(49,103,201,0.2)] group-hover:shadow-[0_6px_20px_rgba(49,103,201,0.3)] transition-all group-hover:scale-105",children:[l.jsxs("defs",{children:[l.jsxs("linearGradient",{id:"navLogoBg",x1:"0%",y1:"100%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",stopColor:"#1A9A75"}),l.jsx("stop",{offset:"100%",stopColor:"#3167C9"})]}),l.jsxs("linearGradient",{id:"navLogoFg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",stopColor:"#6ACEEB"}),l.jsx("stop",{offset:"100%",stopColor:"#46D3B6"})]})]}),l.jsx("rect",{width:"100",height:"100",fill:"url(#navLogoBg)"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 60 15 L 72 15 L 72 85 L 60 85 L 60 72.98 A 28 28 0 1 1 60 27.02 Z M 44 34 A 16 16 0 1 0 44 66 A 16 16 0 1 0 44 34 Z",fill:"url(#navLogoFg)"})]}),l.jsx("span",{className:"text-xl font-normal tracking-tight text-gray-900 uppercase",children:"ARBEJD"})]}),l.jsxs("div",{className:"homepage-nav-links flex items-center gap-8",children:[l.jsx("a",{href:"#",className:"text-base font-normal text-gray-600 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Sådan virker det"}),l.jsx("a",{href:"#",className:"text-base font-normal text-gray-600 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Gratis hjælp"}),l.jsx("a",{href:"#",className:"text-base font-normal text-gray-600 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Priser"})]}),l.jsxs("div",{className:"homepage-nav-actions flex items-center gap-4",children:[l.jsx("a",{href:"#",className:"hidden sm:block text-base font-normal text-gray-700 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Log ind"}),l.jsx("a",{href:"#",className:"text-base font-normal text-white bg-gradient-to-r from-gray-900 to-gray-800 hover:from-gray-800 hover:to-gray-700 px-5 py-2.5 rounded-full transition-all shadow-[0_4px_15px_rgba(0,0,0,0.1)] outline-none border border-gray-700",children:"Opret dig"})]}),l.jsx("button",{type:"button",className:"homepage-nav-hamburger","aria-expanded":u,"aria-label":u?"Luk menu":"Åbn menu",onClick:()=>s(c=>!c),children:l.jsx(fe,{icon:u?"solar:close-circle-linear":"solar:hamburger-menu-linear",className:"text-xl text-gray-800",style:{strokeWidth:1.8}})}),l.jsxs("div",{className:u?"homepage-nav-popup open":"homepage-nav-popup",children:[l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Sådan virker det"}),l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Gratis hjælp"}),l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Priser"}),l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Log ind"}),l.jsx("a",{href:"#",className:"homepage-nav-popup-cta",onClick:()=>s(!1),children:"Opret dig"})]})]}),l.jsxs("main",{className:"flex-1 relative z-10 pt-16",children:[l.jsxs("section",{className:"relative pt-24 pb-32 px-6 lg:px-12 max-w-7xl mx-auto flex flex-col items-center text-center",children:[l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-4xl aspect-[2/1] bg-gradient-to-tr from-white/40 via-white/10 to-teal-50/30 backdrop-blur-3xl border border-white/60 rounded-[3rem] shadow-[0_8px_40px_rgba(0,0,0,0.06)] -z-10 animate-float-slow"}),l.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-to-r from-white/60 to-white/30 backdrop-blur-xl border border-white/80 text-teal-800 text-sm font-medium uppercase tracking-wider mb-8 shadow-[0_4px_20px_rgba(20,184,166,0.1)]",children:[l.jsx(fe,{icon:"solar:magic-stick-3-linear",className:"text-base",style:{strokeWidth:1.5}}),"Fremtidens rekruttering"]}),l.jsxs("h1",{className:"text-5xl md:text-6xl lg:text-7xl font-medium tracking-tight text-gradient mb-8 leading-tight max-w-4xl drop-shadow-sm",children:["Arbejd, Danmarks",l.jsx("br",{}),"Nye Jobportal"]}),l.jsx("p",{className:"text-xl md:text-2xl text-gray-600 mb-10 max-w-2xl font-normal leading-relaxed drop-shadow-sm",children:"Opdag drømmejobbet med kraften fra AI. Vi matcher dine færdigheder med de perfekte muligheder og hjælper dig hele vejen til samtalen."}),l.jsxs("button",{type:"button",className:"group relative inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 text-white rounded-full font-normal text-lg overflow-hidden shadow-[0_8px_25px_rgba(17,24,39,0.25)] hover:shadow-[0_12px_35px_rgba(17,24,39,0.35)] transition-all outline-none border border-gray-700 hover:-translate-y-0.5",children:[l.jsx("span",{className:"relative z-10",children:"Udforsk Arbejd.com"}),l.jsx(fe,{icon:"solar:arrow-right-linear",className:"text-xl group-hover:translate-x-1 transition-transform relative z-10",style:{strokeWidth:1.5}})]})]}),l.jsx("section",{className:"py-12 border-y border-white/40 bg-gradient-to-r from-white/10 via-white/30 to-white/10 backdrop-blur-xl shadow-[0_4px_30px_rgba(0,0,0,0.02)]",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[l.jsx("p",{className:"text-center text-sm font-medium text-gray-500 uppercase tracking-widest mb-8 drop-shadow-sm",children:"Stoles på af innovative virksomheder"}),l.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-16 opacity-60 grayscale hover:grayscale-0 transition-all duration-500",children:[l.jsx(fe,{icon:"solar:box-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:medal-ribbon-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:global-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:buildings-2-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:laptop-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:database-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}})]})]})}),l.jsx("section",{className:"py-32 px-6 lg:px-12 max-w-7xl mx-auto",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[l.jsxs("div",{className:"relative w-full aspect-square md:aspect-[4/3] lg:aspect-square flex items-center justify-center group",children:[l.jsxs("div",{className:"absolute w-[88%] h-[60%] top-[4%] left-[6%] bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-t-3xl rounded-b-xl shadow-[0_20px_50px_rgba(0,0,0,0.06)] overflow-hidden animate-float-slow z-0 flex flex-col transition-transform duration-700 group-hover:scale-[1.02]",children:[l.jsxs("div",{className:"w-full flex-1 p-3 flex flex-col relative bg-white/10",children:[l.jsx("div",{className:"h-3 w-full flex justify-center absolute top-2 left-0 z-20",children:l.jsx("div",{className:"w-1.5 h-1.5 bg-gray-800/30 rounded-full backdrop-blur-md shadow-inner"})}),l.jsxs("div",{className:"w-full h-full bg-white/40 backdrop-blur-xl border border-white/50 rounded-xl overflow-hidden relative shadow-sm",children:[l.jsx("div",{className:"absolute top-0 left-0 w-full h-8 bg-white/30 border-b border-white/40 flex items-center px-4",children:l.jsx("div",{className:"w-1/4 h-2 bg-gray-300/50 rounded-full"})}),l.jsxs("div",{className:"p-4 flex gap-4 mt-8 opacity-60",children:[l.jsx("div",{className:"w-1/3 h-16 bg-teal-200/20 rounded-lg"}),l.jsx("div",{className:"w-1/3 h-16 bg-indigo-200/20 rounded-lg"})]})]})]}),l.jsx("div",{className:"h-5 w-full bg-gradient-to-b from-white/90 to-gray-100/60 border-t border-white/80 rounded-b-xl relative shadow-md flex justify-center z-20",children:l.jsx("div",{className:"w-1/5 h-1 bg-gray-300/60 rounded-b-md mt-0.5"})})]}),l.jsxs("div",{className:"absolute w-[75%] h-[50%] top-[18%] left-[12.5%] bg-gradient-to-br from-white/80 to-white/30 backdrop-blur-3xl border border-white/90 rounded-2xl shadow-[0_30px_60px_rgba(0,0,0,0.08)] overflow-hidden animate-float-medium [animation-delay:-2s] z-10 transition-transform duration-700 group-hover:-translate-y-2",children:[l.jsxs("div",{className:"h-8 bg-gradient-to-r from-white/70 to-white/40 border-b border-white/70 flex items-center px-4 gap-2 backdrop-blur-2xl",children:[l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-400 shadow-sm"}),l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-amber-400 shadow-sm"}),l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 shadow-sm"}),l.jsx("div",{className:"ml-4 w-1/2 h-4 bg-white/60 rounded-md border border-white/80 shadow-inner flex items-center px-2",children:l.jsx("div",{className:"w-1/3 h-1.5 bg-gray-300/60 rounded-full"})})]}),l.jsxs("div",{className:"p-5 h-full flex flex-col gap-3 relative",children:[l.jsx("div",{className:"w-1/3 h-4 bg-gray-300/40 rounded-md"}),l.jsx("div",{className:"w-2/3 h-3 bg-gray-200/40 rounded-md"}),l.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-3",children:[l.jsx("div",{className:"h-16 bg-gradient-to-br from-teal-100/50 to-white/40 border border-white/70 rounded-xl shadow-sm"}),l.jsx("div",{className:"h-16 bg-gradient-to-br from-indigo-100/50 to-white/40 border border-white/70 rounded-xl shadow-sm"})]}),l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-14 h-14 bg-white rounded-2xl shadow-xl flex items-center justify-center border border-white/80",children:l.jsx(fe,{icon:"solar:layers-linear",className:"text-2xl text-teal-500",style:{strokeWidth:1.5}})})]})]}),l.jsxs("div",{className:"absolute w-[26%] h-[60%] bottom-[8%] left-[8%] bg-gradient-to-tr from-white/80 via-white/50 to-teal-50/50 backdrop-blur-3xl border border-white/90 rounded-[1.75rem] shadow-[0_25px_50px_rgba(0,0,0,0.12)] overflow-hidden animate-float-fast [animation-delay:-1s] z-20 flex flex-col transition-transform duration-700 group-hover:-translate-x-3 group-hover:-rotate-2",children:[l.jsx("div",{className:"h-5 w-full flex justify-center pt-2.5 relative z-10",children:l.jsx("div",{className:"w-2 h-2 bg-gray-800/40 rounded-full shadow-inner backdrop-blur-md"})}),l.jsxs("div",{className:"flex-1 p-2.5 flex flex-col gap-2.5 relative z-0 mt-1",children:[l.jsxs("div",{className:"w-full h-8 bg-white/70 border border-white/80 shadow-sm rounded-full flex items-center px-3 gap-2",children:[l.jsx(fe,{icon:"solar:magnifer-linear",className:"text-gray-400 text-xs"}),l.jsx("div",{className:"w-1/2 h-1.5 bg-gray-300/80 rounded-full"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-1",children:[l.jsx("div",{className:"aspect-square bg-gradient-to-br from-teal-400/30 to-cyan-400/20 rounded-xl border border-white/70 shadow-sm"}),l.jsx("div",{className:"aspect-square bg-gradient-to-br from-amber-400/30 to-orange-400/20 rounded-xl border border-white/70 shadow-sm"})]}),l.jsxs("div",{className:"w-full h-12 bg-white/80 backdrop-blur-xl rounded-xl border border-white/90 shadow-sm mt-auto mb-1 p-2 flex items-center gap-2",children:[l.jsx("div",{className:"w-6 h-6 rounded-full bg-gradient-to-tr from-teal-200 to-teal-100 flex-shrink-0"}),l.jsx("div",{className:"w-1/2 h-1.5 bg-gray-300/80 rounded-full"})]})]}),l.jsx("div",{className:"h-3 w-full flex justify-center pb-2",children:l.jsx("div",{className:"w-1/4 h-0.5 bg-gray-400/50 rounded-full"})})]}),l.jsxs("div",{className:"absolute w-[28%] h-[65%] bottom-[5%] right-[8%] bg-gradient-to-b from-white/80 to-white/40 backdrop-blur-3xl border border-white/90 rounded-[2rem] shadow-[0_30px_60px_rgba(0,0,0,0.15)] overflow-hidden animate-float-medium [animation-delay:-3s] z-30 flex flex-col transition-transform duration-700 group-hover:translate-x-3 group-hover:rotate-2",children:[l.jsx("div",{className:"h-5 w-full flex justify-center pt-1.5",children:l.jsx("div",{className:"w-1/3 h-3 bg-gray-900/20 rounded-full backdrop-blur-md"})}),l.jsxs("div",{className:"flex-1 p-3 flex flex-col gap-2.5 mt-1",children:[l.jsx("div",{className:"w-full h-8 bg-white/60 border border-white/70 shadow-sm rounded-lg"}),l.jsx("div",{className:"w-full h-20 bg-gradient-to-br from-indigo-400/30 to-purple-400/20 rounded-xl border border-white/70 shadow-sm"}),l.jsxs("div",{className:"w-full h-10 bg-white/80 backdrop-blur-xl rounded-xl border border-white/90 shadow-sm flex items-center px-2 gap-2",children:[l.jsx("div",{className:"w-5 h-5 rounded-full bg-gradient-to-tr from-indigo-200 to-indigo-100 flex-shrink-0"}),l.jsx("div",{className:"w-1/2 h-1.5 bg-gray-300/80 rounded-full"})]})]}),l.jsx("div",{className:"h-3 w-full flex justify-center pb-2",children:l.jsx("div",{className:"w-1/3 h-1 bg-gray-400/50 rounded-full"})})]})]}),l.jsxs("div",{className:"flex flex-col justify-center",children:[l.jsxs("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-6",children:["En intelligent genvej",l.jsx("br",{}),"til dit næste job"]}),l.jsx("p",{className:"text-lg text-gray-600 mb-10 font-normal leading-relaxed drop-shadow-sm",children:"Arbejd.com kombinerer det nyeste inden for kunstig intelligens med et intuitivt design, der gør din jobsøgning hurtigere, skarpere og mere succesfuld."}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(20,184,166,0.08)] hover:border-teal-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-teal-50 to-white border border-teal-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:document-text-linear",className:"text-2xl text-teal-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI-understøttet CV-optimering"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Få skræddersyet dit CV til præcis den stilling du søger, så du altid står skarpest muligt."})]})]}),l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(99,102,241,0.08)] hover:border-indigo-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-indigo-50 to-white border border-indigo-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:pen-new-square-linear",className:"text-2xl text-indigo-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI Ansøgninger"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Generer målrettede og personlige ansøgninger, der fanger arbejdsgiverens opmærksomhed."})]})]}),l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(6,182,212,0.08)] hover:border-cyan-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-cyan-50 to-white border border-cyan-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:gamepad-linear",className:"text-2xl text-cyan-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI-interview Simulator"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Øv dig til samtalen med vores AI. Få øjeblikkelig feedback og personlige anbefalinger."})]})]}),l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(245,158,11,0.08)] hover:border-amber-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-amber-50 to-white border border-amber-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:radar-linear",className:"text-2xl text-amber-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI-agenter søger for dig"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Lad vores intelligente agenter overvåge markedet og finde det perfekte match til din profil."})]})]})]})]})]})}),l.jsxs("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto border-t border-white/40 relative",children:[l.jsxs("div",{className:"text-center mb-16 relative z-10",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-4",children:"Succeshistorier"}),l.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto font-normal drop-shadow-sm",children:"Se hvordan andre har brugt Arbejd til at lande drømmejobbet og starte næste kapitel i deres career."})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 relative z-10",children:[l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all group",children:[l.jsxs("div",{className:"aspect-video bg-gray-100 relative overflow-hidden",children:[l.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&q=80",alt:"Team",className:"w-full h-full object-cover opacity-80 group-hover:scale-105 transition-transform duration-700"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900/40 to-transparent flex items-center justify-center",children:l.jsx("button",{type:"button",className:"w-14 h-14 rounded-full bg-white/30 backdrop-blur-md border border-white/60 shadow-xl flex items-center justify-center text-white hover:scale-110 hover:bg-white/50 transition-all outline-none",children:l.jsx(fe,{icon:"solar:play-linear",className:"text-2xl ml-1",style:{strokeWidth:1.5}})})})]}),l.jsxs("div",{className:"p-6 relative",children:[l.jsx("p",{className:"text-base text-gray-700 italic mb-6 leading-relaxed",children:'"Simulatoren var en gamechanger. Jeg var super nervøs for min samtale, men feedbacken gav mig roen til at performe 100%."'}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:"https://i.pravatar.cc/150?img=32",alt:"Sofie",className:"w-10 h-10 rounded-full border-2 border-white shadow-sm"}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900",children:"Sofie Jensen"}),l.jsx("p",{className:"text-sm text-teal-600 font-normal",children:"Landed job som Marketing Manager"})]})]})]})]}),l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all group",children:[l.jsxs("div",{className:"aspect-video bg-gray-100 relative overflow-hidden",children:[l.jsx("img",{src:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&q=80",alt:"Meeting",className:"w-full h-full object-cover opacity-80 group-hover:scale-105 transition-transform duration-700"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900/40 to-transparent flex items-center justify-center",children:l.jsx("button",{type:"button",className:"w-14 h-14 rounded-full bg-white/30 backdrop-blur-md border border-white/60 shadow-xl flex items-center justify-center text-white hover:scale-110 hover:bg-white/50 transition-all outline-none",children:l.jsx(fe,{icon:"solar:play-linear",className:"text-2xl ml-1",style:{strokeWidth:1.5}})})})]}),l.jsxs("div",{className:"p-6",children:[l.jsx("p",{className:"text-base text-gray-700 italic mb-6 leading-relaxed",children:'"AI-ansøgningerne sparede mig timevis af arbejde. Det ramte den professionelle tone perfekt fra første forsøg."'}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:"https://i.pravatar.cc/150?img=12",alt:"Mikkel",className:"w-10 h-10 rounded-full border-2 border-white shadow-sm"}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900",children:"Mikkel Larsen"}),l.jsx("p",{className:"text-sm text-indigo-600 font-normal",children:"Landed job som Frontend Udvikler"})]})]})]})]}),l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all group md:col-span-2 lg:col-span-1",children:[l.jsxs("div",{className:"aspect-video bg-gray-100 relative overflow-hidden",children:[l.jsx("img",{src:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=800&q=80",alt:"Success",className:"w-full h-full object-cover opacity-80 group-hover:scale-105 transition-transform duration-700"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900/40 to-transparent flex items-center justify-center",children:l.jsx("button",{type:"button",className:"w-14 h-14 rounded-full bg-white/30 backdrop-blur-md border border-white/60 shadow-xl flex items-center justify-center text-white hover:scale-110 hover:bg-white/50 transition-all outline-none",children:l.jsx(fe,{icon:"solar:play-linear",className:"text-2xl ml-1",style:{strokeWidth:1.5}})})})]}),l.jsxs("div",{className:"p-6",children:[l.jsx("p",{className:"text-base text-gray-700 italic mb-6 leading-relaxed",children:'"Agenten fandt et job jeg aldrig selv ville have søgt på. Det viste sig at være det helt rigtige match for mig."'}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:"https://i.pravatar.cc/150?img=47",alt:"Amalie",className:"w-10 h-10 rounded-full border-2 border-white shadow-sm"}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900",children:"Amalie Nielsen"}),l.jsx("p",{className:"text-sm text-cyan-600 font-normal",children:"Landed job som Projektleder"})]})]})]})]})]})]}),l.jsxs("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto border-t border-white/40 relative",children:[l.jsxs("div",{className:"text-center mb-16 relative z-10",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-4",children:"Mød holdet bag"}),l.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto font-normal drop-shadow-sm",children:"Passionerede mennesker der brænder for at revolutionere måden, vi finder arbejde på."})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto relative z-10",children:[l.jsxs("div",{className:"bg-gradient-to-b from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl p-6 text-center shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:-translate-y-1 hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all duration-300",children:[l.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full p-1 bg-gradient-to-tr from-teal-400 to-emerald-300 shadow-md",children:l.jsx("img",{src:"https://i.pravatar.cc/150?img=11",alt:"Lasse Nielsen",className:"w-full h-full rounded-full border-2 border-white object-cover"})}),l.jsx("h3",{className:"text-xl font-medium text-gray-900 tracking-tight",children:"Lasse Nielsen"}),l.jsx("p",{className:"text-base text-teal-600 font-normal mb-6",children:"CEO & Founder"}),l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx("span",{className:"text-sm font-medium",children:"in"})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:camera-linear",className:"text-base",style:{strokeWidth:1.5}})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:letter-linear",className:"text-base",style:{strokeWidth:1.5}})})]})]}),l.jsxs("div",{className:"bg-gradient-to-b from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl p-6 text-center shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:-translate-y-1 hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all duration-300",children:[l.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full p-1 bg-gradient-to-tr from-indigo-400 to-purple-300 shadow-md",children:l.jsx("img",{src:"https://i.pravatar.cc/150?img=5",alt:"Emma",className:"w-full h-full rounded-full border-2 border-white object-cover"})}),l.jsx("h3",{className:"text-xl font-medium text-gray-900 tracking-tight",children:"Emma Schmidt"}),l.jsx("p",{className:"text-base text-indigo-600 font-normal mb-6",children:"Head of AI"}),l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx("span",{className:"text-sm font-medium",children:"in"})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:camera-linear",className:"text-base",style:{strokeWidth:1.5}})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:letter-linear",className:"text-base",style:{strokeWidth:1.5}})})]})]}),l.jsxs("div",{className:"bg-gradient-to-b from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl p-6 text-center shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:-translate-y-1 hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all duration-300 sm:col-span-2 lg:col-span-1",children:[l.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full p-1 bg-gradient-to-tr from-cyan-400 to-blue-300 shadow-md",children:l.jsx("img",{src:"https://i.pravatar.cc/150?img=60",alt:"Christian",className:"w-full h-full rounded-full border-2 border-white object-cover"})}),l.jsx("h3",{className:"text-xl font-medium text-gray-900 tracking-tight",children:"Christian Berg"}),l.jsx("p",{className:"text-base text-cyan-600 font-normal mb-6",children:"Lead Designer"}),l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx("span",{className:"text-sm font-medium",children:"in"})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:camera-linear",className:"text-base",style:{strokeWidth:1.5}})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:letter-linear",className:"text-base",style:{strokeWidth:1.5}})})]})]})]})]}),l.jsxs("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto border-t border-white/40 relative",children:[l.jsxs("div",{className:"text-center mb-16 relative z-10",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-4",children:"Gennemsigtige priser"}),l.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto font-normal drop-shadow-sm",children:"Vælg den plan, der passer bedst til din karriererejse. Start din rejse i dag."})]}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 max-w-6xl mx-auto relative z-10 items-stretch",children:[l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/10 backdrop-blur-3xl border border-white/60 rounded-[2rem] p-8 shadow-[0_8px_30px_rgba(0,0,0,0.04)] flex flex-col relative overflow-hidden",children:[l.jsx("h3",{className:"text-2xl font-medium text-gray-900 tracking-tight mb-2",children:"30 dage"}),l.jsx("p",{className:"text-base text-gray-600 mb-6",children:"Perfekt til at komme hurtigt i gang."}),l.jsx("div",{className:"mb-8",children:l.jsx("span",{className:"text-5xl font-medium text-gray-900 tracking-tight",children:"49 kr"})}),l.jsxs("ul",{className:"space-y-4 mb-8 flex-1",children:[l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Download et professionelt CV - Klar til brug med et enkelt klik"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Karriereagent med personlige anbefalinger"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Øget synlighed – bliv fundet af virksomheder"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Lad systemet lave din ansøgning for dig"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Optimer dit CV med intelligente forslag"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Job simulatoren – træn til din næste jobsamtale"})]})]}),l.jsx("button",{type:"button",className:"w-full py-3 rounded-xl bg-white/60 backdrop-blur-md border border-white hover:bg-white/90 text-gray-900 font-medium text-base transition-colors shadow-sm outline-none mt-auto",children:"Vælg 30 dage"})]}),l.jsxs("div",{className:"bg-gradient-to-br from-gray-900 to-gray-800 backdrop-blur-3xl border border-gray-700/50 rounded-[2rem] p-8 shadow-[0_20px_50px_rgba(0,0,0,0.2)] flex flex-col relative overflow-hidden transform lg:-translate-y-4",children:[l.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-teal-400 via-cyan-400 to-indigo-400"}),l.jsx("div",{className:"absolute top-[-20%] right-[-20%] w-[60%] h-[60%] bg-gradient-to-bl from-teal-500/30 to-cyan-500/10 blur-[60px] rounded-full pointer-events-none"}),l.jsxs("div",{className:"flex justify-between items-start mb-2 relative z-10",children:[l.jsx("h3",{className:"text-2xl font-medium text-white tracking-tight drop-shadow-md",children:"90 dage"}),l.jsx("span",{className:"px-3 py-1.5 text-xs font-medium text-teal-900 bg-gradient-to-r from-teal-300 to-emerald-300 rounded-lg uppercase tracking-wider shadow-[0_0_15px_rgba(45,212,191,0.3)]",children:"Mest populær"})]}),l.jsx("p",{className:"text-base text-gray-400 mb-6 relative z-10",children:"Ideelt til den dedikerede jobsøgende."}),l.jsx("div",{className:"mb-8 relative z-10",children:l.jsx("span",{className:"text-5xl font-medium text-white tracking-tight drop-shadow-md",children:"129 kr"})}),l.jsxs("ul",{className:"space-y-4 mb-8 flex-1 relative z-10",children:[l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Download et professionelt CV - Klar til brug med et enkelt klik"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Karriereagent med personlige anbefalinger"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Øget synlighed – bliv fundet af virksomheder"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Lad systemet lave din ansøgning for dig"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Optimer dit CV med intelligente forslag"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Job simulatoren – træn til din næste jobsamtale"})]})]}),l.jsx("button",{type:"button",className:"w-full py-3 rounded-xl bg-gradient-to-r from-white to-gray-100 text-gray-900 font-medium text-base hover:from-gray-50 hover:to-white transition-all shadow-[0_4px_15px_rgba(255,255,255,0.1)] outline-none relative z-10 mt-auto",children:"Vælg 90 dage"})]}),l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/10 backdrop-blur-3xl border border-white/60 rounded-[2rem] p-8 shadow-[0_8px_30px_rgba(0,0,0,0.04)] flex flex-col relative overflow-hidden",children:[l.jsx("h3",{className:"text-2xl font-medium text-gray-900 tracking-tight mb-2",children:"365 dage"}),l.jsx("p",{className:"text-base text-gray-600 mb-6",children:"Det bedste langsigtede valg til din karriere."}),l.jsxs("div",{className:"mb-5 relative",children:[l.jsx("span",{className:"text-5xl font-medium text-gray-900 tracking-tight",children:"249 kr"}),l.jsx("span",{className:"block text-sm text-teal-600 font-medium mt-1",children:"Svarer til 0.68 kr. pr. dag"})]}),l.jsxs("div",{className:"mb-6 p-4 rounded-xl bg-gradient-to-br from-teal-50/80 to-emerald-50/80 border border-teal-200/50 shadow-sm relative overflow-hidden",children:[l.jsx("div",{className:"absolute -right-3 -top-3 text-teal-500/10",children:l.jsx(fe,{icon:"solar:gift-bold",className:"text-7xl"})}),l.jsxs("h4",{className:"text-sm font-medium text-teal-900 mb-1 relative z-10 flex items-center gap-2",children:[l.jsx(fe,{icon:"solar:gift-linear",className:"text-base text-teal-600",style:{strokeWidth:1.5}}),"Giv en gave"]}),l.jsx("p",{className:"text-xs text-teal-800 relative z-10 leading-snug",children:"Få en gratis 3-måneders Premium-kode med i købet til en ven."})]}),l.jsxs("ul",{className:"space-y-4 mb-8 flex-1",children:[l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Download et professionelt CV - Klar til brug med et enkelt klik"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Karriereagent med personlige anbefalinger"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Øget synlighed – bliv fundet af virksomheder"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Lad systemet lave din ansøgning for dig"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Optimer dit CV med intelligente forslag"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Job simulatoren – træn til din næste jobsamtale"})]})]}),l.jsx("button",{type:"button",className:"w-full py-3 rounded-xl bg-white/60 backdrop-blur-md border border-white hover:bg-white/90 text-gray-900 font-medium text-base transition-colors shadow-sm outline-none mt-auto",children:"Vælg 365 dage"})]})]})]}),l.jsx("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto relative z-10",children:l.jsxs("div",{className:"bg-gradient-to-br from-teal-400/20 via-indigo-400/10 to-purple-400/20 backdrop-blur-3xl border border-white/60 rounded-[3rem] p-10 md:p-16 text-center shadow-[0_20px_60px_rgba(0,0,0,0.05)] relative overflow-hidden group",children:[l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white/60 to-white/20 z-0"}),l.jsx("div",{className:"absolute top-0 right-0 w-[40%] h-[100%] bg-gradient-to-l from-white/40 to-transparent skew-x-12 translate-x-[150%] group-hover:translate-x-[-250%] transition-transform duration-1000 z-0"}),l.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto flex flex-col items-center",children:[l.jsx(fe,{icon:"solar:rocket-linear",className:"text-5xl text-teal-600 mb-6 drop-shadow-sm",style:{strokeWidth:1.5}}),l.jsxs("h2",{className:"text-3xl md:text-5xl font-medium tracking-tight text-gradient-subtle mb-6 leading-tight drop-shadow-sm",children:["Klar til at tage styringen",l.jsx("br",{}),"over din karriere?"]}),l.jsx("p",{className:"text-xl text-gray-700 mb-10 font-normal leading-relaxed drop-shadow-sm",children:"Lad ikke de bedste muligheder gå til andre. Tilslut dig tusindvis af ambitiøse jobsøgere, der allerede bruger fremtidens værktøjer på Arbejd.com. Din næste store chance venter."}),l.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 border border-gray-700 hover:border-gray-600 text-white rounded-full font-normal text-lg transition-all shadow-[0_8px_25px_rgba(17,24,39,0.2)] outline-none hover:-translate-y-0.5",children:["Tilmeld dig Arbejd.com i dag",l.jsx(fe,{icon:"solar:arrow-right-linear",className:"text-xl",style:{strokeWidth:1.5}})]})]})]})})]}),l.jsx("footer",{className:"bg-white/60 backdrop-blur-xl border-t border-white/80 mt-10 pt-16 pb-12 relative z-10 shadow-[0_-10px_40px_rgba(0,0,0,0.02)]",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[l.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-16",children:[l.jsxs("div",{className:"col-span-2 lg:col-span-2",children:[l.jsxs("a",{href:"#",className:"flex items-center gap-2 mb-6 group outline-none inline-flex",children:[l.jsxs("svg",{viewBox:"0 0 100 100",className:"w-8 h-8 rounded-lg shadow-sm transition-transform group-hover:scale-105",children:[l.jsxs("defs",{children:[l.jsxs("linearGradient",{id:"footerLogoBg",x1:"0%",y1:"100%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",stopColor:"#1A9A75"}),l.jsx("stop",{offset:"100%",stopColor:"#3167C9"})]}),l.jsxs("linearGradient",{id:"footerLogoFg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",stopColor:"#6ACEEB"}),l.jsx("stop",{offset:"100%",stopColor:"#46D3B6"})]})]}),l.jsx("rect",{width:"100",height:"100",fill:"url(#footerLogoBg)"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 60 15 L 72 15 L 72 85 L 60 85 L 60 72.98 A 28 28 0 1 1 60 27.02 Z M 44 34 A 16 16 0 1 0 44 66 A 16 16 0 1 0 44 34 Z",fill:"url(#footerLogoFg)"})]}),l.jsx("span",{className:"text-xl font-normal tracking-tight text-gray-900 uppercase",children:"ARBEJD"})]}),l.jsx("p",{className:"text-base text-gray-600 font-normal leading-relaxed max-w-xs mb-6 drop-shadow-sm",children:"Danmarks nye, intelligente jobportal, der bringer virksomheder og talent sammen gennem avanceret AI-teknologi."})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900 mb-5",children:"Sådan virker det"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"For virksomheder"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"For jobsøgere"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Priser"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"FAQ"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Nyhedsbrev"})})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900 mb-5",children:"Opret dig"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Opret virksomhed"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Opret jobsøger"})}),l.jsx("li",{children:l.jsxs("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal flex items-center gap-2",children:["Download app ",l.jsx("span",{className:"px-2 py-0.5 bg-gradient-to-r from-gray-100 to-gray-50 border border-gray-200 text-xs font-medium text-gray-600 rounded",children:"Snart"})]})})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900 mb-5",children:"Om Arbejd.com"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Vores mission"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Presse"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Kontakt"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Gratis hjælp"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Stories"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Jobordbogen"})})]})]})]}),l.jsxs("div",{className:"pt-8 border-t border-gray-200/60 flex flex-col md:flex-row justify-between items-center gap-4",children:[l.jsx("p",{className:"text-sm text-gray-400 font-normal",children:"© 2026 Arbejd.com. Alle rettigheder forbeholdes."}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("a",{href:"#",className:"text-sm text-gray-400 hover:text-gray-900 transition-colors font-normal",children:"Privatlivspolitik"}),l.jsx("a",{href:"#",className:"text-sm text-gray-400 hover:text-gray-900 transition-colors font-normal",children:"Handelsbetingelser"}),l.jsx("a",{href:"#",className:"text-sm text-gray-400 hover:text-gray-900 transition-colors font-normal",children:"Cookies"})]})]})]})})]})}function Qn(u){return u instanceof Date?u.toISOString():typeof u=="string"?u:""}function Gh(u){const s=[u.road,u.houseNum,u.zip,u.zipName].filter(c=>typeof c=="string"&&c.trim().length>0).join(" ");return{id:u.id,title:u.title??"Job",companyName:u.hiringCompanyName??"Ukendt virksomhed",occupationName:u.occupation?.name??"",address:s||u.zipName||"Ukendt adresse",description:u.description??"",applicationDeadline:Qn(u.applicationDeadline),websiteUrl:u.applicationUrl||u.hiringCompanyUrl||"",logoUrl:u.logoUrl||"",fromJobnet:!0,isSaved:!1,isApplied:!!u.applied,isFullTime:typeof u.isFullTime=="boolean"?u.isFullTime:null,workTimes:Array.isArray(u.workTimes)?u.workTimes:[],contactName:u.contactName??"",hiringCompanyName:u.hiringCompanyName??"",datePosted:Qn(u.datePosted),employmentDate:Qn(u.employmentDate),startAsSoonAsPossible:typeof u.startAsSoonAsPossible=="boolean"?u.startAsSoonAsPossible:null,numberOfPositions:typeof u.numberOfPositions=="number"?u.numberOfPositions:null}}function Yh(u,s){return{id:u,title:s.title??"Job",companyName:s.companyName??"Ukendt virksomhed",occupationName:s.position??"",address:"",description:[s.descriptionIntro,s.descriptionPosition,s.descriptionOffer].filter(c=>typeof c=="string"&&c.trim().length>0).join(`
|
||
|
||
`),applicationDeadline:Qn(s.applicationDeadline),websiteUrl:s.website??"",logoUrl:"",fromJobnet:!1,isSaved:!1,isApplied:!!s.appliedJob,isFullTime:null,workTimes:Array.isArray(s.workTimes)?s.workTimes:[],contactName:"",hiringCompanyName:s.companyName??"",datePosted:"",employmentDate:Qn(s.fromDate),startAsSoonAsPossible:null,numberOfPositions:typeof s.numberOfPositions=="number"?s.numberOfPositions:null}}class wx{constructor(s=new vo){this.jobService=s}async getDetail(s,c){if(c)try{const o=await this.jobService.getJobNetJobDetail(s);return Gh(o)}catch{const o=await this.jobService.getJobDetail(s);return Yh(s,o)}try{const o=await this.jobService.getJobDetail(s);return Yh(s,o)}catch{const o=await this.jobService.getJobNetJobDetail(s);return Gh(o)}}async toggleBookmark(s,c,o){const h=c?"star":"arbejd.com";await this.jobService.bookmarkJobV2(s,o,h)}async markAsApplied(s,c){if(c){await this.jobService.toggleApplyJobnetjob(s,!0);return}await this.jobService.applyJob(s)}}function _x(u){return u.trim().slice(0,1).toUpperCase()||"A"}function eo(u){if(!u)return"Ikke angivet";const s=new Date(u);return Number.isNaN(s.getTime())?u:new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short",year:"numeric"}).format(s)}function Ax(u){if(!u.trim())return"";if(typeof window>"u")return u;const c=new DOMParser().parseFromString(u,"text/html");c.querySelectorAll("script, style, iframe, object, embed, link, meta").forEach(o=>o.remove());for(const o of Array.from(c.body.querySelectorAll("*")))for(const h of Array.from(o.attributes)){const g=h.name.toLowerCase(),H=h.value.trim().toLowerCase();if(g.startsWith("on")){o.removeAttribute(h.name);continue}if((g==="href"||g==="src")&&H.startsWith("javascript:")){o.removeAttribute(h.name);continue}(g==="style"||g==="srcdoc")&&o.removeAttribute(h.name)}return c.body.innerHTML}function Tx(u){return u.isFullTime===!0?"Fuldtid":u.isFullTime===!1?"Deltid":u.workTimes.length>0?"Fleksibel arbejdstid":"Ikke oplyst"}function zx({fromJobnet:u,jobId:s,onBack:c,onLogout:o,onNavigate:h,onToggleTheme:g,theme:M}){const H=_.useMemo(()=>new wx,[]),R=_.useMemo(()=>new ks,[]),[j,B]=_.useState({name:"Lasse"}),[T,V]=_.useState(null),[J,P]=_.useState(!0),[X,he]=_.useState(""),[ie,ne]=_.useState(!1),[Y,K]=_.useState(!1),[ee,Z]=_.useState(!1),[D,$]=_.useState(!1);_.useEffect(()=>{let ue=!0;async function Ae(){P(!0),he("");const[Ne,le]=await Promise.allSettled([R.getCandidateProfile(),H.getDetail(s,u)]);ue&&(Ne.status==="fulfilled"&&B(Ne.value),le.status==="fulfilled"?(V(le.value),ne(!!le.value.isSaved),K(!!le.value.isApplied)):(V(null),he("Kunne ikke hente jobdetaljer. Proev igen.")),P(!1))}return Ae(),()=>{ue=!1}},[H,u,s,R]);async function de(){if(!(!T||ee)){Z(!0);try{await H.toggleBookmark(T.id,T.fromJobnet,!ie),ne(ue=>!ue)}finally{Z(!1)}}}async function te(){if(!(!T||Y||D)){$(!0);try{await H.markAsApplied(T.id,T.fromJobnet),K(!0)}finally{$(!1)}}}const oe=_.useMemo(()=>Ax(T?.description??""),[T?.description]);return l.jsxs("section",{className:`dash-root ${M==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"jobs",onNavigate:h}),l.jsxs("main",{className:"dash-main custom-scrollbar",children:[l.jsx(Qt,{name:j.name,imageUrl:j.imageUrl,onLogout:o,theme:M,onToggleTheme:g}),l.jsx("div",{className:"job-detail-back-row",children:l.jsxs("button",{type:"button",className:"job-detail-back-btn",onClick:c,children:[l.jsx(mo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:"Tilbage til jobs"})]})}),J?l.jsx("p",{className:"dash-loading",children:"Indlaeser jobdetaljer..."}):null,!J&&X?l.jsx("p",{className:"dash-loading",children:X}):null,!J&&T?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"job-detail-header",children:[l.jsx("div",{className:"job-detail-logo-wrap",children:T.logoUrl?l.jsx("img",{src:T.logoUrl,alt:T.companyName,className:"job-detail-logo-image"}):l.jsx("div",{className:"job-detail-logo-fallback",children:_x(T.companyName)})}),l.jsxs("div",{className:"job-detail-heading",children:[l.jsx("h1",{children:T.title||"Jobdetaljer"}),l.jsxs("div",{className:"job-detail-meta",children:[l.jsxs("span",{children:[l.jsx(lo,{size:14,strokeWidth:1.8})," ",T.companyName||"Virksomhed"]}),l.jsxs("span",{children:[l.jsx(Xn,{size:14,strokeWidth:1.8})," ",T.address||"Lokation ikke angivet"]}),l.jsxs("span",{children:[l.jsx(no,{size:14,strokeWidth:1.8})," ",Tx(T)]})]})]})]}),l.jsxs("div",{className:"job-detail-grid",children:[l.jsxs("section",{className:"job-detail-main-card dash-card",children:[l.jsxs("div",{className:"job-detail-section",children:[l.jsx("h2",{children:"Om rollen"}),oe?l.jsx("div",{className:"job-detail-rich-html",dangerouslySetInnerHTML:{__html:oe}}):l.jsx("p",{children:"Ingen jobbeskrivelse er tilgaengelig endnu."})]}),l.jsxs("div",{className:"job-detail-section",children:[l.jsx("h3",{children:"Jobinformation"}),l.jsxs("div",{className:"job-detail-info-grid",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Ansøgningsfrist"}),l.jsx("strong",{children:eo(T.applicationDeadline)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Opslået"}),l.jsx("strong",{children:eo(T.datePosted)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Startdato"}),l.jsx("strong",{children:eo(T.employmentDate)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Stillinger"}),l.jsx("strong",{children:T.numberOfPositions??"Ikke angivet"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Kontaktperson"}),l.jsx("strong",{children:T.contactName||"Ikke angivet"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Kilde"}),l.jsx("strong",{children:T.fromJobnet?"Jobnet":"Arbejd.com"})]})]})]})]}),l.jsxs("aside",{className:"job-detail-side-col",children:[l.jsxs("article",{className:"dash-card job-detail-actions-card",children:[l.jsx("h2",{children:"Handlinger"}),l.jsxs("button",{type:"button",className:"job-detail-action-primary",children:[l.jsxs("span",{children:[l.jsx(Kn,{size:16,strokeWidth:1.8})," Generer ansøgning"]}),l.jsx(La,{size:14,strokeWidth:1.8})]}),l.jsxs("button",{type:"button",className:"job-detail-action-secondary",children:[l.jsxs("span",{children:[l.jsx(Fv,{size:16,strokeWidth:1.8})," Simuler jobsamtale"]}),l.jsx(La,{size:14,strokeWidth:1.8})]}),l.jsx("div",{className:"job-detail-action-divider"}),l.jsxs("button",{type:"button",className:"job-detail-text-action",onClick:()=>{de()},disabled:ee,children:[l.jsx(bp,{size:16,strokeWidth:1.8}),ie?"Fjern fra gemte jobs":"Gem job"]}),l.jsxs("button",{type:"button",className:"job-detail-text-action",children:[l.jsx(Ns,{size:16,strokeWidth:1.8}),"Del via email"]}),T.websiteUrl?l.jsxs("a",{href:T.websiteUrl,target:"_blank",rel:"noreferrer",className:"job-detail-text-action link",children:[l.jsx(js,{size:16,strokeWidth:1.8}),"Åbn på nettet"]}):null,l.jsxs("button",{type:"button",className:Y?"job-detail-text-action success is-done":"job-detail-text-action success",onClick:()=>{te()},disabled:Y||D,children:[l.jsx(We,{size:16,strokeWidth:1.8}),Y?"Markeret som søgt":"Marker som søgt"]})]}),l.jsxs("article",{className:"dash-card job-detail-company-card",children:[l.jsx("h3",{children:"Om virksomheden"}),l.jsxs("div",{className:"job-detail-company-list",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Virksomhed"}),l.jsx("strong",{children:T.hiringCompanyName||T.companyName||"Ukendt"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Stilling"}),l.jsx("strong",{children:T.occupationName||"Ikke angivet"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Website"}),l.jsx("strong",{children:T.websiteUrl||"Ikke angivet"})]})]})]})]})]})]}):null]})]})}const Jh=[2,4,6,8,10,12,24],Dx=[{id:"job-1",title:"Senior Frontend-udvikler",companyName:"Lunar",occupationName:"Frontend",descriptionIntro:"Vi søger en erfaren frontend-udvikler til at lede vores nye team.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:5,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:98},{id:"job-2",title:"UX/UI Designer (Deltid)",companyName:"Pleo",occupationName:"Design",descriptionIntro:"Hjælp os med at skabe brugervenlige flows for vores expense management platform.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:12,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:95},{id:"job-3",title:"React-udvikler",companyName:"Zendesk",occupationName:"Frontend",descriptionIntro:"Bliv en del af vores kerne-team i Kobenhavn og byg software i topklasse.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:2,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:89},{id:"job-4",title:"Full Stack Web-udvikler",companyName:"Trustpilot",occupationName:"Full stack",descriptionIntro:"Vi leder efter en passioneret Full Stack Developer (Node.js/React).",address:"Remote",time:"",applicationDeadline:"",candidateDistance:null,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:85},{id:"job-5",title:"Frontend-arkitekt",companyName:"Novo Nordisk",occupationName:"Frontend",descriptionIntro:"Vær med til at designe arkitekturen for interne medicinske data-platforme.",address:"Bagsvaerd",time:"",applicationDeadline:"",candidateDistance:18,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:72},{id:"job-6",title:"Product Designer",companyName:"Podimo",occupationName:"Design",descriptionIntro:"Vi mangler en skarp Product Designer til at forme fremtidens lytteoplevelse.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:3,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:68}];function Mx(u){return u.trim().slice(0,1).toUpperCase()||"A"}function Qh(u){return u.address.toLowerCase().includes("remote")?"Remote":typeof u.candidateDistance=="number"?`${Math.max(0,Math.round(u.candidateDistance))} km vaek`:u.address||"Lokation ikke angivet"}function Ex(u){return u.companyLogoImage||u.logoUrl||""}function Xh({item:u}){const[s,c]=_.useState(!1),o=Ex(u);return o.length>0&&!s?l.jsx("div",{className:"jobs-card-logo jobs-card-logo-image-wrap",children:l.jsx("img",{src:o,alt:u.companyName||"Virksomhed",className:"jobs-card-logo-image",onError:()=>c(!0)})}):l.jsx("div",{className:"jobs-card-logo",children:Mx(u.companyName)})}function Cx(u){return u.workTypePartTime?"deltid":"fast"}function Ux({onLogout:u,onNavigate:s,onOpenJobDetail:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new ks,[]),[M,H]=_.useState({name:"Lasse"}),[R,j]=_.useState(""),[B,T]=_.useState("sidebar"),[V,J]=_.useState("fast"),[P,X]=_.useState(15),[he,ie]=_.useState(24),[ne,Y]=_.useState(["Frontend-udvikler","UX/UI Designer"]),[K,ee]=_.useState(""),[Z,D]=_.useState([]),[$,de]=_.useState(!0),[te,oe]=_.useState(6),ue=_.useCallback(async()=>{try{const m=await g.getTabItems("jobs");D(m),oe(6)}catch{D([]),oe(6)}},[g]);_.useEffect(()=>{let m=!0;async function S(){try{const L=await g.getSavedFilter();if(!m)return;J(Cx(L)),X(L.workDistance??15),ie(L.partTimeHours??24),j(L.distanceCenterName??"")}catch{}if(await ue(),m){const L=await g.getCandidateProfile();m&&H(L),de(!1)}}return S(),()=>{m=!1}},[ue,g]);async function Ae(){const m={escoIds:[],workTypePermanent:V==="fast",workTypePartTime:V==="deltid",workDistance:P,partTimeHours:V==="deltid"?he:null,distanceCenterName:R,latitude:null,longitude:null};de(!0);try{const S=await g.applyFiltersAndGetJobs(m,{searchText:R,desiredTitles:ne});D(S),oe(6)}catch{D([]),oe(6)}de(!1)}const Ne=Z.length>0?Z:Dx,le=Ne.slice(0,Math.min(te,Ne.length)),v=te<Ne.length;function E(){T(m=>m==="sidebar"?"top":"sidebar")}function b(m){Y(S=>S.filter(L=>L!==m))}function q(m){const S=m.trim();S&&(Y(L=>L.includes(S)?L:[...L,S]),ee(""))}function F(){oe(m=>Math.min(m+6,Ne.length))}return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"jobs",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar",children:[l.jsx(Qt,{name:M.name,imageUrl:M.imageUrl,onLogout:u,theme:h,onToggleTheme:o,actions:l.jsxs("button",{type:"button",className:"jobs-layout-toggle",onClick:E,children:[B==="sidebar"?l.jsx(rm,{size:16,strokeWidth:1.8}):l.jsx(sm,{size:16,strokeWidth:1.8}),l.jsx("span",{children:B==="sidebar"?"Top-layout":"Side-layout"})]})}),l.jsxs("div",{className:"jobs-page-head",children:[l.jsx("h1",{children:"Find dit naeste job"}),l.jsx("p",{children:"Sog og filtrer for at finde det perfekte match til din profil."})]}),B==="sidebar"?l.jsxs("div",{className:"jobs-grid",children:[l.jsxs("aside",{className:"jobs-filter dash-card",children:[l.jsxs("h2",{children:[l.jsx(lo,{size:18,strokeWidth:1.8})," Filtre"]}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Sog jobtitel eller virksomhed"}),l.jsxs("div",{className:"jobs-search-wrap",children:[l.jsx(uo,{size:16,strokeWidth:1.8}),l.jsx("input",{type:"text",placeholder:"F.eks. Frontend Udvikler...",value:R,onChange:m=>j(m.target.value)})]})]}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Onskede jobtitler"}),l.jsxs("div",{className:"jobs-title-picker",children:[l.jsxs("div",{className:"jobs-title-input-wrap",children:[ne.map(m=>l.jsxs("span",{className:"jobs-title-chip",children:[m,l.jsx("button",{type:"button",onClick:()=>b(m),"aria-label":`Fjern ${m}`,children:l.jsx(fo,{size:12,strokeWidth:2})})]},m)),l.jsx("input",{type:"text",value:K,onChange:m=>ee(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),q(K))},placeholder:"Sog og tilfoj flere jobtitler..."})]}),l.jsxs("div",{className:"jobs-title-suggestions",children:[l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("Frontend-udvikler"),children:[l.jsx("span",{children:"Frontend-udvikler"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Backend-udvikler"),children:l.jsx("span",{children:"Backend-udvikler"})}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Full Stack-udvikler"),children:l.jsx("span",{children:"Full Stack-udvikler"})}),l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("UX/UI Designer"),children:[l.jsx("span",{children:"UX/UI Designer"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Product Manager"),children:l.jsx("span",{children:"Product Manager"})})]})]})]}),l.jsx("div",{className:"jobs-separator"}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Ansaettelsestype"}),l.jsxs("div",{className:"jobs-radio-grid",children:[l.jsx("button",{type:"button",className:V==="fast"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("fast"),children:"Fast (Fuldtid)"}),l.jsx("button",{type:"button",className:V==="deltid"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("deltid"),children:"Deltid"})]})]}),l.jsxs("div",{className:"jobs-filter-block jobs-range-block",children:[l.jsxs("div",{className:"jobs-range-head",children:[l.jsx("label",{children:"Maks. afstand"}),l.jsxs("span",{children:[P," km"]})]}),l.jsx("input",{type:"range",min:0,max:50,value:P,onChange:m=>X(Number(m.target.value))}),l.jsxs("div",{className:"jobs-range-labels",children:[l.jsx("span",{children:"0 km"}),l.jsx("span",{children:"50+ km"})]})]}),l.jsx("div",{className:"jobs-separator"}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Timer (ved deltid)"}),l.jsx("p",{children:"Vaelg onsket timeantal pr. uge"}),l.jsx("div",{className:"jobs-hours-grid",children:Jh.map(m=>l.jsx("button",{type:"button",className:he===m?"jobs-hour-btn active":"jobs-hour-btn",onClick:()=>ie(m),children:m},m))})]}),l.jsx("button",{type:"button",className:"jobs-apply-btn",onClick:()=>{Ae()},children:"Opdater resultater"})]}),l.jsxs("section",{className:"jobs-content",children:[l.jsxs("div",{className:"jobs-content-head",children:[l.jsx("h2",{children:"Seneste jobs"}),l.jsxs("span",{children:["Viser ",Z.length>0?Z.length:142," resultater"]})]}),$?l.jsx("p",{className:"dash-loading",children:"Indlaeser jobs..."}):null,l.jsx("div",{className:"jobs-cards",children:le.map(m=>l.jsxs("article",{className:"jobs-card",role:"button",tabIndex:0,onClick:()=>c(m.id,m.fromJobnet,"jobs"),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c(m.id,m.fromJobnet,"jobs"))},children:[l.jsx("div",{className:"jobs-card-top",children:l.jsx(Xh,{item:m})}),l.jsxs("div",{className:"jobs-card-title",children:[l.jsx("h3",{children:m.title||"Stilling"}),l.jsx("p",{children:m.companyName||"Virksomhed"})]}),l.jsx("p",{className:"jobs-card-description",children:m.descriptionIntro||"Beskrivelse er ikke tilgaengelig endnu."}),l.jsxs("div",{className:"jobs-card-bottom",children:[l.jsxs("div",{className:"jobs-card-distance",children:[m.address.toLowerCase().includes("remote")?l.jsx(co,{size:15,strokeWidth:1.8}):l.jsx(oo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:Qh(m)})]}),l.jsx("button",{type:"button",className:"jobs-card-arrow","aria-label":"Se job",onClick:S=>{S.stopPropagation(),c(m.id,m.fromJobnet,"jobs")},children:l.jsx(La,{size:16,strokeWidth:1.8})})]})]},m.id))}),l.jsx("div",{className:"jobs-load-more-wrap",children:l.jsx("button",{type:"button",className:"jobs-load-more",onClick:F,disabled:!v,children:v?"Indlaes flere jobs":"Alle jobs er vist"})})]})]}):l.jsxs("section",{className:"jobs-top-layout",children:[l.jsxs("div",{className:"jobs-top-filters dash-card",children:[l.jsxs("div",{className:"jobs-top-filter-title",children:[l.jsx(lo,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Filtre"})]}),l.jsxs("div",{className:"jobs-top-controls",children:[l.jsxs("div",{className:"jobs-filter-block no-margin",children:[l.jsx("label",{children:"Sog noegleord eller virksomhed"}),l.jsxs("div",{className:"jobs-search-wrap",children:[l.jsx(uo,{size:16,strokeWidth:1.8}),l.jsx("input",{type:"text",placeholder:"F.eks. Lunar, React...",value:R,onChange:m=>j(m.target.value)})]})]}),l.jsxs("div",{className:"jobs-filter-block no-margin",children:[l.jsx("label",{children:"Ansaettelsestype"}),l.jsxs("div",{className:"jobs-radio-grid",children:[l.jsx("button",{type:"button",className:V==="fast"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("fast"),children:"Fast"}),l.jsx("button",{type:"button",className:V==="deltid"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("deltid"),children:"Deltid"})]})]}),l.jsxs("div",{className:"jobs-filter-block no-margin jobs-top-range",children:[l.jsxs("div",{className:"jobs-range-head",children:[l.jsx("label",{children:"Maks. afstand"}),l.jsxs("span",{children:[P," km"]})]}),l.jsx("input",{type:"range",min:0,max:50,value:P,onChange:m=>X(Number(m.target.value))})]}),l.jsx("button",{type:"button",className:"jobs-apply-btn jobs-top-apply",onClick:()=>{Ae()},children:"Opdater resultater"})]}),l.jsxs("div",{className:"jobs-filter-block no-margin",children:[l.jsx("label",{children:"Onskede jobtitler"}),l.jsxs("div",{className:"jobs-title-picker",children:[l.jsxs("div",{className:"jobs-title-input-wrap",children:[ne.map(m=>l.jsxs("span",{className:"jobs-title-chip",children:[m,l.jsx("button",{type:"button",onClick:()=>b(m),"aria-label":`Fjern ${m}`,children:l.jsx(fo,{size:12,strokeWidth:2})})]},m)),l.jsx("input",{type:"text",value:K,onChange:m=>ee(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),q(K))},placeholder:"Sog og tilfoj flere jobtitler..."})]}),l.jsxs("div",{className:"jobs-title-suggestions",children:[l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("Frontend-udvikler"),children:[l.jsx("span",{children:"Frontend-udvikler"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Backend-udvikler"),children:l.jsx("span",{children:"Backend-udvikler"})}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Full Stack-udvikler"),children:l.jsx("span",{children:"Full Stack-udvikler"})}),l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("UX/UI Designer"),children:[l.jsx("span",{children:"UX/UI Designer"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Product Manager"),children:l.jsx("span",{children:"Product Manager"})})]})]})]}),l.jsx("div",{className:"jobs-separator top-margin"}),l.jsxs("div",{className:"jobs-hours-row",children:[l.jsxs("div",{children:[l.jsx("label",{children:"Timer (ved deltid)"}),l.jsx("p",{children:"Vaelg onsket timeantal pr. uge"})]}),l.jsx("div",{className:"jobs-hours-grid",children:Jh.map(m=>l.jsx("button",{type:"button",className:he===m?"jobs-hour-btn active":"jobs-hour-btn",onClick:()=>ie(m),children:m},m))})]})]}),l.jsxs("section",{className:"jobs-content",children:[l.jsxs("div",{className:"jobs-content-head",children:[l.jsx("h2",{children:"Seneste jobs"}),l.jsxs("span",{children:["Viser ",Z.length>0?Z.length:142," resultater"]})]}),$?l.jsx("p",{className:"dash-loading",children:"Indlaeser jobs..."}):null,l.jsx("div",{className:"jobs-cards jobs-cards-top",children:le.map(m=>l.jsxs("article",{className:"jobs-card",role:"button",tabIndex:0,onClick:()=>c(m.id,m.fromJobnet,"jobs"),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c(m.id,m.fromJobnet,"jobs"))},children:[l.jsx("div",{className:"jobs-card-top",children:l.jsx(Xh,{item:m})}),l.jsxs("div",{className:"jobs-card-title",children:[l.jsx("h3",{children:m.title||"Stilling"}),l.jsx("p",{children:m.companyName||"Virksomhed"})]}),l.jsx("p",{className:"jobs-card-description",children:m.descriptionIntro||"Beskrivelse er ikke tilgaengelig endnu."}),l.jsxs("div",{className:"jobs-card-bottom",children:[l.jsxs("div",{className:"jobs-card-distance",children:[m.address.toLowerCase().includes("remote")?l.jsx(co,{size:15,strokeWidth:1.8}):l.jsx(oo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:Qh(m)})]}),l.jsx("button",{type:"button",className:"jobs-card-arrow","aria-label":"Se job",onClick:S=>{S.stopPropagation(),c(m.id,m.fromJobnet,"jobs")},children:l.jsx(La,{size:16,strokeWidth:1.8})})]})]},m.id))}),l.jsx("div",{className:"jobs-load-more-wrap",children:l.jsx("button",{type:"button",className:"jobs-load-more",onClick:F,disabled:!v,children:v?"Indlaes flere jobs":"Alle jobs er vist"})})]})]})]})]})}function ys(u){if(!u)return 0;const c=(u instanceof Date?u:new Date(u)).getTime();return Number.isNaN(c)?0:c}function vm(u){if(!u)return"--:--";const s=u instanceof Date?u:new Date(u);return Number.isNaN(s.getTime())?"--:--":new Intl.DateTimeFormat("da-DK",{hour:"2-digit",minute:"2-digit"}).format(s)}function Lx(u){if(!u)return"";const s=u instanceof Date?u:new Date(u);if(Number.isNaN(s.getTime()))return"";const c=new Date,o=1440*60*1e3,h=Math.floor((new Date(c.getFullYear(),c.getMonth(),c.getDate()).getTime()-new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime())/o);return h===0?vm(s):h===1?"I går":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short"}).format(s)}function Ox(u){const s=new Date,c=new Date(u.getFullYear(),u.getMonth(),u.getDate()),o=new Date(s.getFullYear(),s.getMonth(),s.getDate()),h=Math.floor((o.getTime()-c.getTime())/(1440*60*1e3));return h===0?"I dag":h===1?"I går":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short"}).format(u)}function Yn(u){return!u.fromCandidate&&!u.seen}function Zh(u){return u.allMessages.filter(Yn).length}function qn(u){return u.companyLogoUrl||u.companyLogo||""}function Rx(u){return{...u,allMessages:[...u.allMessages??[]].sort((s,c)=>ys(s.timeSent)-ys(c.timeSent))}}function Kh(){const u=new Date,s=new Date(u.getTime()-600*1e3),c=new Date(u.getTime()-7200*1e3),o=(M,H,R,j,B)=>({threadId:M,text:H,fromCandidate:R,timeSent:j,seen:B}),h=[o("thread-techcorp","Hej Lasse! Mange tak for din ansøgning.",!1,c),o("thread-techcorp","Mange tak, det lyder rigtig spændende.",!0,new Date(c.getTime()+1200*1e3),new Date(c.getTime()+1800*1e3)),o("thread-techcorp","Vi vil gerne invitere dig til samtale.",!1,s)],g=[o("thread-lunar","Mange tak for din opdaterede portefølje.",!1,new Date(u.getTime()-1560*60*1e3),new Date(u.getTime()-1500*60*1e3))];return[{id:"thread-techcorp",companyLogo:"",companyLogoUrl:"https://i.pravatar.cc/150?img=33",companyName:"TechCorp A/S",candidateFirstName:"Lasse",candidateLastName:"Hansen",candidateImage:"https://i.pravatar.cc/150?img=11",allMessages:h,latestMessage:h[h.length-1],title:"Frontend Udvikler",messagesLoaded:!0,jobPostingId:"job-1",jobPosting:void 0,isFromSupport:!1},{id:"thread-lunar",companyLogo:"",companyLogoUrl:"https://i.pravatar.cc/150?img=12",companyName:"Lunar Bank",candidateFirstName:"Lasse",candidateLastName:"Hansen",candidateImage:"https://i.pravatar.cc/150?img=11",allMessages:g,latestMessage:g[g.length-1],title:"Senior UX Designer",messagesLoaded:!0,jobPostingId:"job-2",jobPosting:void 0,isFromSupport:!1}]}function Vx({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new pm,[]),[g,M]=_.useState("Lasse"),[H,R]=_.useState(void 0),[j,B]=_.useState([]),[T,V]=_.useState(!0),[J,P]=_.useState(""),[X,he]=_.useState("all"),[ie,ne]=_.useState(""),[Y,K]=_.useState(""),[ee,Z]=_.useState(()=>typeof window<"u"?window.innerWidth<=1e3:!1),[D,$]=_.useState("threads");_.useEffect(()=>{let v=!0;async function E(){V(!0);try{const b=await h.getCandidateProfile();v&&(M(b.name),R(b.imageUrl));const q=await h.getThreads();if(!v)return;const F=(q.length>0?q:Kh()).map(Rx);B(F),ne(F[0]?.id||"")}catch{if(!v)return;const b=Kh();B(b),ne(b[0]?.id||"")}finally{v&&V(!1)}}return E(),()=>{v=!1}},[h]),_.useEffect(()=>{function v(){const E=window.innerWidth<=1e3;Z(E),E?ie||$("threads"):$("chat")}return v(),window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[ie]);const de=_.useMemo(()=>{const v=J.trim().toLowerCase();return j.filter(E=>X==="unread"&&Zh(E)===0||X==="companies"&&E.isFromSupport?!1:v?E.companyName.toLowerCase().includes(v)||(E.latestMessage?.text||"").toLowerCase().includes(v):!0)},[X,J,j]),te=_.useMemo(()=>j.find(v=>v.id===ie)||de[0],[ie,de,j]),oe=_.useMemo(()=>[...te?.allMessages||[]].sort((v,E)=>ys(v.timeSent)-ys(E.timeSent)),[te]);async function ue(v){ne(v.id),ee&&$("chat");const E=[...v.allMessages].reverse().find(b=>Yn(b));E?.id&&(h.markThreadReadByMessageId(E.id),B(b=>b.map(q=>q.id!==v.id?q:{...q,allMessages:q.allMessages.map(F=>Yn(F)?{...F,seen:new Date}:F)})))}function Ae(){$("threads")}async function Ne(){const v=j.flatMap(E=>E.allMessages).filter(E=>Yn(E)&&!!E.id);await Promise.all(v.map(E=>h.markThreadReadByMessageId(E.id))),B(E=>E.map(b=>({...b,allMessages:b.allMessages.map(q=>Yn(q)?{...q,seen:new Date}:q)})))}async function le(){const v=Y.trim();if(!te||!v)return;const E={threadId:te.id,text:v,fromCandidate:!0,timeSent:new Date};K(""),B(b=>b.map(q=>{if(q.id!==te.id)return q;const F=[...q.allMessages,E];return{...q,allMessages:F,latestMessage:E}}));try{const b=await h.sendMessage(te.id,v);B(q=>q.map(F=>{if(F.id!==te.id)return F;const S=[...F.allMessages.filter(L=>L!==E),b];return{...F,allMessages:S,latestMessage:b}}))}catch{}}return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"messages",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar msg-main",children:[l.jsx(Qt,{name:g,imageUrl:H,onLogout:u,theme:o,onToggleTheme:c}),l.jsxs("div",{className:"msg-head",children:[l.jsxs("div",{children:[l.jsx("h1",{children:"Beskeder"}),l.jsx("p",{children:"Kommuniker med virksomheder og hold styr på dine ansøgninger."})]}),l.jsxs("button",{type:"button",className:"msg-mark-btn",onClick:()=>{Ne()},children:[l.jsx(zp,{size:16,strokeWidth:1.8})," Marker alle som læst"]})]}),l.jsxs("div",{className:`msg-layout ${ee&&D==="chat"?"mobile-chat":"mobile-threads"}`,children:[!ee||D==="threads"?l.jsxs("section",{className:"msg-threads",children:[l.jsxs("div",{className:"msg-threads-head",children:[l.jsxs("div",{className:"msg-search-wrap",children:[l.jsx(uo,{size:16,strokeWidth:1.8}),l.jsx("input",{value:J,onChange:v=>P(v.target.value),type:"text",placeholder:"Søg i beskeder..."})]}),l.jsxs("div",{className:"msg-filter-row",children:[l.jsx("button",{type:"button",className:X==="all"?"active":"",onClick:()=>he("all"),children:"Alle"}),l.jsx("button",{type:"button",className:X==="unread"?"active":"",onClick:()=>he("unread"),children:"Ulæste"}),l.jsx("button",{type:"button",className:X==="companies"?"active":"",onClick:()=>he("companies"),children:"Virksomheder"})]})]}),l.jsxs("div",{className:"msg-thread-list custom-scrollbar",children:[T?l.jsx("p",{className:"dash-loading",children:"Indlaeser beskeder..."}):null,!T&&de.length===0?l.jsx("p",{className:"dash-loading",children:"Ingen tråde fundet."}):null,de.map(v=>{const E=Zh(v),b=te?.id===v.id,q=qn(v);return l.jsxs("button",{type:"button",className:b?"msg-thread-item active":"msg-thread-item",onClick:()=>{ue(v)},children:[l.jsxs("div",{className:"msg-thread-avatar-wrap",children:[q?l.jsx("img",{src:q,alt:v.companyName,className:"msg-thread-avatar"}):l.jsx("div",{className:"msg-thread-avatar-fallback",children:v.companyName.slice(0,1).toUpperCase()}),l.jsx("span",{className:"msg-thread-online"})]}),l.jsxs("div",{className:"msg-thread-content",children:[l.jsxs("div",{className:"msg-thread-row",children:[l.jsx("h3",{children:v.companyName}),l.jsx("span",{children:Lx(v.latestMessage?.timeSent)})]}),l.jsx("p",{className:E>0?"unread":"",children:v.latestMessage?.text||"Ingen beskeder endnu"}),l.jsx("small",{children:v.title||"Stilling"})]}),E>0?l.jsx("div",{className:"msg-thread-unread",children:E}):null]},v.id)})]})]}):null,!ee||D==="chat"?l.jsxs("section",{className:"msg-chat",children:[l.jsx("div",{className:"msg-chat-head",children:te?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"msg-chat-company",children:[ee?l.jsx("button",{type:"button",className:"msg-mobile-back-btn",onClick:Ae,"aria-label":"Tilbage til beskeder",children:l.jsx(mo,{size:16,strokeWidth:1.9})}):null,qn(te)?l.jsx("img",{src:qn(te),alt:te.companyName,className:"msg-chat-avatar"}):l.jsx("div",{className:"msg-chat-avatar-fallback",children:te.companyName.slice(0,1).toUpperCase()}),l.jsxs("div",{children:[l.jsx("h2",{children:te.companyName}),l.jsx("p",{children:te.title||"Rekruttering"})]})]}),l.jsxs("div",{className:"msg-chat-actions",children:[l.jsx("button",{type:"button","aria-label":"Ring",children:l.jsx(Vv,{size:16,strokeWidth:1.8})}),l.jsx("button",{type:"button","aria-label":"Info",children:l.jsx(cv,{size:16,strokeWidth:1.8})})]})]}):l.jsx("h2",{children:"Vælg en samtale"})}),l.jsx("div",{className:"msg-chat-body custom-scrollbar",children:oe.map((v,E)=>{const b=v.timeSent instanceof Date?v.timeSent:new Date(v.timeSent),q=E>0?oe[E-1]:void 0,F=q?.timeSent instanceof Date?q.timeSent:q?.timeSent?new Date(q.timeSent):void 0,m=!F||b.toDateString()!==F.toDateString();return l.jsxs("div",{children:[m?l.jsx("div",{className:"msg-day-sep",children:Ox(b)}):null,l.jsxs("div",{className:v.fromCandidate?"msg-bubble-row mine":"msg-bubble-row",children:[v.fromCandidate?null:qn(te)?l.jsx("img",{src:qn(te),alt:te.companyName,className:"msg-mini-avatar"}):l.jsx("div",{className:"msg-mini-avatar msg-mini-avatar-fallback",children:te.companyName.slice(0,1).toUpperCase()}),l.jsxs("div",{className:"msg-bubble-wrap",children:[l.jsx("span",{className:"msg-time",children:vm(v.timeSent)}),l.jsx("div",{className:v.fromCandidate?"msg-bubble mine":"msg-bubble",children:v.text})]})]})]},`${v.threadId}-${E}`)})}),l.jsx("div",{className:"msg-input-area",children:l.jsxs("div",{className:"msg-input-wrap",children:[l.jsx("button",{type:"button","aria-label":"Vedhæft",children:l.jsx(Uv,{size:18,strokeWidth:1.8})}),l.jsx("textarea",{rows:1,value:Y,onChange:v=>K(v.target.value),onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),le())},placeholder:"Skriv din besked her..."}),l.jsx("button",{type:"button","aria-label":"Emoji",children:l.jsx(r1,{size:18,strokeWidth:1.8})}),l.jsxs("button",{type:"button",className:"msg-send-btn",onClick:()=>{le()},children:["Send ",l.jsx(a1,{size:15,strokeWidth:1.8})]})]})})]}):null]})]})]})}function xm(u){return typeof u=="object"&&u!==null?u:null}function mt(u){return typeof u=="string"?u:""}function to(u){return typeof u=="number"?u:null}function ao(u){if(typeof u=="boolean")return u;if(typeof u=="string"){const s=u.toLowerCase();if(s==="completed"||s==="done"||s==="true")return!0;if(s==="incomplete"||s==="pending"||s==="false")return!1}return null}function Hx(u){if(!u)return"";const s=new Date(u);return Number.isNaN(s.getTime())?"":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short",year:"numeric"}).format(s)}function Bx(u,s){const c=xm(u);if(!c)return null;const o=mt(c.id)||mt(c.interview_id)||`interview-${s}`,h=mt(c.job_name)||mt(c.job_title)||mt(c.title)||"Interview",g=mt(c.company_name)||mt(c.companyName)||"Ukendt virksomhed",M=mt(c.interview_date)||mt(c.created_at)||mt(c.updated_at)||mt(c.date),H=ao(c.is_completed)??ao(c.completed)??ao(c.status)??!0,R=to(c.duration_minutes)??to(c.duration)??to(c.length_minutes),j=mt(c.personality_name)||mt(c.simulation_personality_name)||mt(c.personality)||"Professionel";return{id:o,title:h,companyName:g,dateLabel:Hx(M),completed:H,durationMinutes:R,personality:j}}class qx{constructor(s=new ks,c=new xo){this.jobsViewModel=s,this.simulationService=c}async getCandidateProfile(){return this.jobsViewModel.getCandidateProfile()}async getJobs(){try{return await this.jobsViewModel.getTabItems("jobs")}catch{return[]}}async getPersonalities(){try{const s=await this.simulationService.listSimulationPersonalities();return Array.isArray(s)?s:[]}catch{return[]}}async getInterviews(s=12){try{const c=await this.simulationService.listInterviews(s,0),o=xm(c);return(Array.isArray(o?.interviews)?o.interviews:Array.isArray(c)?c:[]).map((g,M)=>Bx(g,M)).filter(g=>!!g)}catch{return[]}}}const Gx=[{id:"sim-1",title:"Senior Frontend-udvikler",companyName:"Lunar",completed:!0,durationMinutes:15,personality:"Professionel",dateLabel:"12. okt 2023"},{id:"sim-2",title:"Fullstack Developer",companyName:"Pleo",completed:!1,durationMinutes:20,personality:"Afslappet",dateLabel:"10. okt 2023"},{id:"sim-3",title:"UX Designer",companyName:"Trustpilot",completed:!0,durationMinutes:10,personality:"Sarkastisk",dateLabel:"05. okt 2023"},{id:"sim-4",title:"Product Manager",companyName:"Danske Bank",completed:!0,durationMinutes:5,personality:"Stress-test",dateLabel:"01. okt 2023"}];function Yx(u){return{id:u.id,title:u.title,companyName:u.companyName,completed:u.completed,durationMinutes:u.durationMinutes??15,personality:u.personality||"Professionel",dateLabel:u.dateLabel||"Nyligt"}}function Jx(u){return`${u.title||"Stilling"}${u.companyName?` · ${u.companyName}`:""}`}function Qx({onLogout:u,onNavigate:s,onOpenEvaluation:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new qx,[]),[M,H]=_.useState("Lasse"),[R,j]=_.useState(void 0),[B,T]=_.useState([]),[V,J]=_.useState([]),[P,X]=_.useState([]),[he,ie]=_.useState(!0),[ne,Y]=_.useState(""),[K,ee]=_.useState(""),[Z,D]=_.useState("Dansk"),[$,de]=_.useState("15"),[te,oe]=_.useState(!1);_.useEffect(()=>{let b=!0;async function q(){ie(!0);const[F,m,S,L]=await Promise.all([g.getCandidateProfile(),g.getJobs(),g.getInterviews(),g.getPersonalities()]);b&&(H(F.name),j(F.imageUrl),T(m),J(S.map(Yx)),X(L.map(G=>({id:G.id,name:G.name}))),m.length>0&&Y(G=>G||m[0].id),L.length>0&&ee(G=>G||String(L[0].id)),ie(!1))}return q(),()=>{b=!1}},[g]);const ue=V.length>0?V:Gx,Ae={id:"fallback-job",title:"Senior Frontend-udvikler",companyName:"Lunar"},Ne=B.length>0?B:[Ae],le=Ne.find(b=>b.id===ne)||Ne[0],v=P.find(b=>String(b.id)===K)?.name||"Professionel & Grundig",E=[{id:"ai-1",sender:"ai",text:`Hej Lasse, og velkommen til! Vi er rigtig glade for at have dig til samtalen omkring rollen som ${le.title||"Senior Frontend-udvikler"}. Kan du fortælle om et nyligt projekt, hvor din erfaring med React gjorde en stor forskel for slutresultatet?`},{id:"me-1",sender:"me",text:"I mit seneste projekt migrerede vi en stor dashboard-løsning til Next.js. Jeg implementerede virtualisering og strammere state management med Zustand, hvilket reducerede load-tid med over 60%."},{id:"ai-2",sender:"ai",text:"Det lyder som en rigtig solid forbedring. Når du nævner Zustand frem for Redux, hvad var overvejelserne bag det valg i jeres use-case?"}];return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"simulator",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar sim-main",children:[l.jsx(Qt,{name:M,imageUrl:R,onLogout:u,theme:h,onToggleTheme:o,actions:te?l.jsxs("button",{type:"button",className:"sim-leave-btn",onClick:()=>oe(!1),children:[l.jsx(mo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:"Forlad simulering"})]}):void 0}),te?l.jsxs("div",{className:"sim-live-wrap",children:[l.jsxs("div",{className:"sim-live-head",children:[l.jsx("h1",{children:"Live Jobsamtale"}),l.jsx("p",{children:"Du er i øjeblikket i en simuleret teknisk samtale. Brug mikrofonen til at svare."})]}),l.jsxs("div",{className:"sim-live-grid",children:[l.jsxs("section",{className:"sim-live-chat-card",children:[l.jsxs("div",{className:"sim-live-chat-head",children:[l.jsxs("div",{className:"sim-live-ai-row",children:[l.jsx("div",{className:"sim-live-ai-avatar",children:l.jsx(ql,{size:18,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h3",{children:"Sarah (AI Interviewer)"}),l.jsxs("p",{children:[l.jsx(Kv,{size:12,strokeWidth:1.8})," Venter på dit svar..."]})]})]}),l.jsx("button",{type:"button",className:"sim-live-more-btn",children:l.jsx(Fp,{size:16,strokeWidth:1.8})})]}),l.jsx("div",{className:"sim-live-chat-scroll custom-scrollbar",children:E.map(b=>l.jsxs("div",{className:b.sender==="ai"?"sim-live-msg-row ai":"sim-live-msg-row me",children:[l.jsx("div",{className:b.sender==="ai"?"sim-live-msg-avatar ai":"sim-live-msg-avatar me",children:b.sender==="ai"?l.jsx(ql,{size:13,strokeWidth:1.8}):R?l.jsx("img",{src:R,alt:M}):l.jsx("span",{children:M.slice(0,1).toUpperCase()})}),l.jsx("div",{className:b.sender==="ai"?"sim-live-msg-bubble ai":"sim-live-msg-bubble me",children:l.jsx("p",{children:b.text})})]},b.id))}),l.jsxs("div",{className:"sim-live-voice",children:[l.jsxs("div",{className:"sim-live-time-row",children:[l.jsxs("div",{className:"sim-live-time",children:[l.jsx("small",{children:"Tid gået"}),l.jsx("strong",{children:"04:23"})]}),l.jsx("div",{className:"sim-live-wave",children:Array.from({length:7}).map((b,q)=>l.jsx("span",{style:{animationDelay:`${q*.14}s`}},`wave-${q}`))}),l.jsxs("div",{className:"sim-live-time",children:[l.jsx("small",{children:"Tilbage"}),l.jsx("strong",{children:"10:37"})]})]}),l.jsx("button",{type:"button",className:"sim-live-mic-btn",children:l.jsx(_v,{size:22,strokeWidth:1.8})}),l.jsx("p",{children:"Optager dit svar..."})]})]}),l.jsxs("aside",{className:"sim-live-side custom-scrollbar",children:[l.jsxs("article",{className:"sim-live-side-card",children:[l.jsx("h2",{children:"Session Status"}),l.jsxs("div",{className:"sim-live-side-list",children:[l.jsxs("div",{children:[l.jsx("small",{children:"Stilling"}),l.jsxs("p",{children:[le.title||"Senior Frontend-udvikler"," @ ",le.companyName||"Lunar"]})]}),l.jsxs("div",{children:[l.jsx("small",{children:"Samtaletype"}),l.jsxs("p",{children:[l.jsx(io,{size:14,strokeWidth:1.8})," Teknisk Dybde"]})]}),l.jsxs("div",{children:[l.jsx("small",{children:"Interviewer stil"}),l.jsxs("p",{children:[l.jsx(ql,{size:14,strokeWidth:1.8})," ",v]})]}),l.jsxs("div",{children:[l.jsxs("div",{className:"sim-live-progress-head",children:[l.jsx("small",{children:"Fremgang"}),l.jsx("strong",{children:"Spørgsmål 2 af 5"})]}),l.jsx("div",{className:"sim-live-progress-track",children:l.jsx("span",{})})]})]})]}),l.jsxs("article",{className:"sim-live-coach-card",children:[l.jsxs("h2",{children:[l.jsx(mv,{size:15,strokeWidth:1.8})," Live Coach"]}),l.jsxs("div",{className:"sim-live-coach-list",children:[l.jsxs("div",{children:[l.jsx(We,{size:14,strokeWidth:1.8}),l.jsxs("div",{children:[l.jsx("strong",{children:"Godt brug af STAR-metoden"}),l.jsx("p",{children:"Dit forrige svar beskrev situationen og resultatet meget tydeligt."})]})]}),l.jsxs("div",{children:[l.jsx(Wn,{size:14,strokeWidth:1.8}),l.jsxs("div",{children:[l.jsx("strong",{children:"Næste skridt"}),l.jsx("p",{children:"Uddyb hvorfor Zustand var bedre end Redux i jeres specifikke use-case."})]})]})]})]}),l.jsx("article",{className:"sim-live-side-card",children:l.jsxs("div",{className:"sim-live-actions",children:[l.jsxs("button",{type:"button",children:[l.jsx(Lp,{size:16,strokeWidth:1.8})," Sæt på pause"]}),l.jsxs("button",{type:"button",className:"stop",children:[l.jsx(qp,{size:16,strokeWidth:1.8})," Afslut & Få Feedback"]})]})})]})]})]}):l.jsxs("div",{className:"sim-wrap",children:[l.jsxs("section",{className:"sim-hero-card",children:[l.jsx("div",{className:"sim-hero-glow"}),l.jsxs("div",{className:"sim-hero-left",children:[l.jsx("h1",{children:"Job Interview Simulator"}),l.jsx("p",{children:"Ov dig pa jobsamtaler med vores AI-drevne simulator. Du far skraeddersyede sporgsmal baseret pa den jobtype, du soger, og modtager detaljeret feedback pa dine svar."}),l.jsxs("ul",{className:"sim-benefits",children:[l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Personaliserede interviewsporgsmal"]}),l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Ojeblikkelig AI-feedback pa dine svar"]}),l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Detaljeret evaluering efter interviewet"]}),l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Gem og gennemga tidligere interviews"]})]}),l.jsxs("button",{type:"button",className:"sim-start-btn",onClick:()=>oe(!0),children:[l.jsx(Rp,{size:18,strokeWidth:1.8}),"Start ny simulering"]})]}),l.jsxs("div",{className:"sim-config-card",children:[l.jsxs("div",{className:"sim-config-head",children:[l.jsx("h3",{children:"Simuleringsindstillinger"}),l.jsx("p",{children:"Vaelg dine praeferencer for start"})]}),l.jsxs("label",{children:["Gemt job",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(go,{size:16,strokeWidth:1.8}),l.jsx("select",{value:ne,onChange:b=>Y(b.target.value),children:Ne.map(b=>l.jsx("option",{value:b.id,children:Jx(b)},b.id))}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]}),l.jsxs("label",{children:["Personlighed (AI)",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(ql,{size:16,strokeWidth:1.8}),l.jsx("select",{value:K,onChange:b=>ee(b.target.value),children:(P.length>0?P:[{id:1,name:"Professionel & Grundig"}]).map(b=>l.jsx("option",{value:String(b.id),children:b.name},b.id))}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]}),l.jsxs("div",{className:"sim-mini-grid",children:[l.jsxs("label",{children:["Sprog",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(js,{size:16,strokeWidth:1.8}),l.jsxs("select",{value:Z,onChange:b=>D(b.target.value),children:[l.jsx("option",{children:"Dansk"}),l.jsx("option",{children:"Engelsk"})]}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]}),l.jsxs("label",{children:["Varighed",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(no,{size:16,strokeWidth:1.8}),l.jsxs("select",{value:$,onChange:b=>de(b.target.value),children:[l.jsx("option",{value:"5",children:"5 min"}),l.jsx("option",{value:"10",children:"10 min"}),l.jsx("option",{value:"15",children:"15 min"}),l.jsx("option",{value:"20",children:"20 min"})]}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]})]})]})]}),l.jsxs("div",{className:"sim-history-head",children:[l.jsx("h2",{children:"Tidligere simuleringer"}),l.jsxs("button",{type:"button",children:[l.jsx(lm,{size:15,strokeWidth:1.8})," Filtrer"]})]}),he?l.jsx("p",{className:"dash-loading",children:"Indlaeser simuleringer..."}):null,l.jsx("section",{className:"sim-history-grid",children:ue.map(b=>l.jsxs("article",{className:b.completed?"sim-card done":"sim-card draft",children:[l.jsxs("div",{className:"sim-card-head",children:[l.jsxs("div",{children:[l.jsx("h3",{children:b.title}),l.jsx("p",{children:b.companyName})]}),l.jsx("span",{className:b.completed?"sim-status done":"sim-status draft",children:b.completed?"Faerdig":"Ikke faerdig"})]}),l.jsxs("div",{className:"sim-tags",children:[l.jsxs("span",{children:[l.jsx(no,{size:13,strokeWidth:1.8})," ",b.durationMinutes," min"]}),l.jsxs("span",{children:[l.jsx(ql,{size:13,strokeWidth:1.8})," ",b.personality]})]}),l.jsxs("div",{className:"sim-card-foot",children:[l.jsx("small",{children:b.dateLabel}),b.completed?l.jsxs("button",{type:"button",className:"sim-link-btn",onClick:()=>c({interviewId:b.id,title:b.title,companyName:b.companyName,dateLabel:b.dateLabel}),children:["Se evaluering ",l.jsx(La,{size:14,strokeWidth:1.8})]}):l.jsxs("button",{type:"button",className:"sim-link-btn",children:["Fortsæt ",l.jsx(Bv,{size:14,strokeWidth:1.8})]})]})]},b.id))})]})]})]})}function Yl(u){return typeof u=="object"&&u!==null?u:null}function bo(u){return typeof u=="string"?u:""}function Xx(u){if(typeof u=="number"&&Number.isFinite(u))return u;if(typeof u=="string"){const s=Number(u);return Number.isFinite(s)?s:null}return null}function Wh(u){return Array.isArray(u)?u.map(s=>bo(s).trim()).filter(Boolean):[]}function Ie(u,s){if(!u)return"";for(const c of s){const o=bo(u[c]).trim();if(o)return o}return""}function xs(u,s){if(!u)return null;for(const c of s){const o=Xx(u[c]);if(o!==null)return o}return null}function Zx(u){if(!u)return"";const s=new Date(u);return Number.isNaN(s.getTime())?u:new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"long",year:"numeric"}).format(s)}function Fh(u,s){return u===null?s:Math.max(0,Math.min(10,Math.round(u)))}const bm=[{id:"1",title:"Mere struktur og korthed i dine svar",behavior:"Du gav nogle svar, der blev lange og gentagende i stedet for fokuserede pa kernen.",effect:"Det kan gore det svaerere for intervieweren hurtigt at vurdere din erfaring og beslutninger.",nextStep:"Svar i 3 trin: pointe, konkret eksempel, resultat. Sigt efter 30-60 sekunder pr. svar."},{id:"2",title:"Flere konkrete eksempler pa performance i service",behavior:"Du fortalte om ansvar, men gav fa konkrete scenarier med handling og resultat.",effect:"Uden konkrete cases bliver niveau og paalidelighed svaerere at validere.",nextStep:"Forbered 2-3 STAR-historier med tydelig situation, handling og maelbart resultat."},{id:"3",title:"Gor din motivation mere maelrettet virksomheden",behavior:"Motivationen var positiv, men ikke altid koblet direkte til virksomhedens drift og behov.",effect:"Du kan fremsta generelt motiveret i stedet for specifikt relevant for rollen.",nextStep:"Naevn 2-3 konkrete grunde til, at netop deres setup matcher din erfaring."},{id:"4",title:"Konkretiser kvalitet og sikkerhed i praksis",behavior:"Du naevnte standarder og certificeringer, men beskrev fa daglige rutiner.",effect:"Det reducerer tydeligheden omkring, hvordan du arbejder sikkert i travle perioder.",nextStep:"Beskriv faste rutiner for kontrol, logning og hurtig korrektion under pres."}],ym=["Du viser relevant erfaring for rollen og kommunikerer ro under pres.","Du arbejder struktureret med kvalitet og timing i service.","Du har en moden team-tilgang med fokus pa samarbejde.","Du kobler dine svar til konkrete arbejdsrutiner og drift.","Du fremstar stabil og ansvarlig i hektiske situationer."],jm=["Forbered 3 korte STAR-historier med maelbare resultater.","Lav en 60-sekunders pitch af din profil og vaerdiskabelse.","Research virksomheden i 10-15 minutter inden samtalen.","Forbered 4-5 konkrete spoergsmaal om rolle og forventninger.","Afslut svar med resultat, sa din effekt bliver tydelig."],wt={companyName:"Ukendt virksomhed",dateLabel:"Nyligt",evaluationLabel:"Interview Feedback",interviewerEvaluationTitle:"Interviewer evaluering",interviewerEvaluationLead:"Du er godt med. Din praestation viste styrker der matcher stillingen.",interviewerEvaluationBody:"Du viste relevante kompetencer og en stabil tilgang under pres. Du kan staerke dit indtryk yderligere ved at svare mere struktureret og bruge flere konkrete resultateksempler.",interviewTitle:"Stilling",interviewerScore:8,selfScore:5,strengths:ym,recommendations:jm,suggestions:bm};function Kx(u,s){const c=Yl(u);if(!c)return null;const o=Ie(c,["title","heading","name","subject"]),h=Ie(c,["behavior","adfaerd","observation","issue"]),g=Ie(c,["effect","impact","consequence"]),M=Ie(c,["next_step","nextStep","recommendation","suggestion"]);return!o&&!h&&!g&&!M?null:{id:bo(c.id)||String(s+1),title:o||`Forbedringspunkt ${s+1}`,behavior:h||"Ingen detaljer tilgaengelige.",effect:g||"Ingen detaljer tilgaengelige.",nextStep:M||"Ingen detaljer tilgaengelige."}}function Wx(u){const s=[u?.suggestions,u?.improvements,u?.improvement_points,u?.feedback_points,Yl(u?.evaluation)?.suggestions,Yl(u?.evaluation)?.improvements];for(const c of s){if(!Array.isArray(c))continue;const o=c.map((h,g)=>Kx(h,g)).filter(h=>!!h);if(o.length>0)return o}return bm}function $h(u,s,c){for(const h of s){const g=Wh(u?.[h]);if(g.length>0)return g}const o=Yl(u?.evaluation);for(const h of s){const g=Wh(o?.[h]);if(g.length>0)return g}return c}class Fx{constructor(s=new xo){this.simulationService=s}async getEvaluation(s,c){try{const o=await this.simulationService.getInterviewEvaluation(s),h=Yl(o),g=Yl(h?.evaluation),M=Ie(h,["company_name","companyName"])||Ie(g,["company_name","companyName"])||c?.companyName||wt.companyName,H=Ie(h,["job_title","job_name","title"])||Ie(g,["job_title","job_name","title"])||c?.title||wt.interviewTitle,R=Ie(h,["interview_date","created_at","date"])||Ie(g,["interview_date","created_at","date"]),j=Zx(R)||c?.dateLabel||wt.dateLabel,B=Ie(h,["interviewer_evaluation_lead","lead"])||Ie(g,["interviewer_evaluation_lead","lead"])||wt.interviewerEvaluationLead,T=Ie(h,["interviewer_evaluation","summary","feedback"])||Ie(g,["interviewer_evaluation","summary","feedback"])||wt.interviewerEvaluationBody,V=Ie(h,["evaluation_title","interviewer_title"])||Ie(g,["evaluation_title","interviewer_title"])||wt.interviewerEvaluationTitle,J=Ie(h,["label","evaluation_label"])||Ie(g,["label","evaluation_label"])||wt.evaluationLabel,P=Fh(xs(h,["candidate_score","self_score","self_rating"])??xs(g,["candidate_score","self_score","self_rating"]),wt.selfScore),X=Fh(xs(h,["interviewer_score","score","interviewer_rating"])??xs(g,["interviewer_score","score","interviewer_rating"]),wt.interviewerScore);return{companyName:M,dateLabel:j,evaluationLabel:J,interviewerEvaluationBody:T,interviewerEvaluationLead:B,interviewerEvaluationTitle:V,interviewerScore:X,interviewTitle:H,recommendations:$h(h,["recommendations","constructive_recommendations","next_steps"],jm),selfScore:P,strengths:$h(h,["strengths","highlights"],ym),suggestions:Wx(h)}}catch{return{...wt,companyName:c?.companyName||wt.companyName,interviewTitle:c?.title||wt.interviewTitle,dateLabel:c?.dateLabel||wt.dateLabel}}}async submitRating(s,c,o){await this.simulationService.submitEvaluationRating(s,c,o)}}function Nm(u,s){return s-u}function $x(u,s){const c=Nm(u,s);return c>0?`Gab: +${c} point`:c<0?`Gab: ${c} point`:"Gab: 0 point"}function Ix(u,s){const c=Nm(u,s);return c>0?"Du undervurderede dig selv i forhold til interviewerens vurdering.":c<0?"Du vurderede dig selv hojere end intervieweren gjorde i denne session.":"Din selvvurdering matcher interviewerens vurdering godt."}function Px(u){return u||"Nyligt"}function eb({interviewSelection:u,onBack:s,onLogout:c,onNavigate:o,onToggleTheme:h,theme:g}){const M=_.useMemo(()=>new Fx,[]),[H]=_.useState("Lasse"),[R]=_.useState(void 0),[j,B]=_.useState(null),[T,V]=_.useState(!0),[J,P]=_.useState(0),[X,he]=_.useState(""),[ie,ne]=_.useState(!1),[Y,K]=_.useState("");_.useEffect(()=>{let $=!0;async function de(){V(!0);const te=await M.getEvaluation(u.interviewId,{companyName:u.companyName,dateLabel:u.dateLabel,title:u.title});$&&(B(te),V(!1))}return de(),()=>{$=!1}},[u.companyName,u.dateLabel,u.interviewId,u.title,M]);async function ee(){if(!(!J||ie)){ne(!0),K("");try{await M.submitRating(u.interviewId,J,X.trim()),K("Tak. Din feedback er sendt.")}catch{K("Kunne ikke sende feedback lige nu. Prov igen.")}finally{ne(!1)}}}const Z=j,D=Z?.suggestions??[];return l.jsxs("section",{className:`dash-root ${g==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"simulator",onNavigate:o}),l.jsxs("main",{className:"dash-main custom-scrollbar sim-eval-main",children:[l.jsx(Qt,{name:H,imageUrl:R,onLogout:c,theme:g,onToggleTheme:h,actions:l.jsxs("div",{className:"sim-eval-top-actions",children:[l.jsx("button",{type:"button",className:"sim-eval-back-btn",onClick:s,children:"Tilbage"}),l.jsxs("div",{className:"sim-eval-crumb-pill",children:[l.jsx(nm,{size:14,strokeWidth:1.8}),l.jsx("span",{children:"Simulator"}),l.jsx(La,{size:13,strokeWidth:1.8}),l.jsx("strong",{children:"Evaluering"})]})]})}),l.jsxs("div",{className:"sim-eval-wrap",children:[l.jsxs("header",{className:"sim-eval-head",children:[l.jsxs("div",{className:"sim-eval-label",children:[l.jsx(Qp,{size:14,strokeWidth:1.8}),l.jsx("span",{children:Z?.evaluationLabel??"Interview Feedback"})]}),l.jsx("h1",{children:"Evalueringsfeedback"}),l.jsxs("div",{className:"sim-eval-meta",children:[l.jsx("strong",{children:Z?.companyName??u.companyName}),l.jsx("span",{}),l.jsx("p",{children:Z?.interviewTitle??u.title}),l.jsx("span",{}),l.jsxs("small",{children:[l.jsx(_p,{size:14,strokeWidth:1.8})," ",Px(Z?.dateLabel??u.dateLabel)]})]})]}),T?l.jsx("p",{className:"dash-loading",children:"Indlaeser evaluering..."}):null,!T&&Z?l.jsxs(l.Fragment,{children:[l.jsxs("section",{className:"sim-eval-overview-card",children:[l.jsxs("div",{className:"sim-eval-overview-text",children:[l.jsxs("div",{className:"sim-eval-overview-title",children:[l.jsx(fm,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:Z.interviewerEvaluationTitle})]}),l.jsx("p",{className:"lead",children:Z.interviewerEvaluationLead}),l.jsx("p",{children:Z.interviewerEvaluationBody})]}),l.jsxs("aside",{className:"sim-eval-score-card",children:[l.jsxs("div",{className:"sim-eval-score-head",children:[l.jsx("h3",{children:"Performance vurdering"}),l.jsx(Wn,{size:16,strokeWidth:1.8})]}),l.jsxs("div",{className:"sim-eval-score-rows",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Din udfyldelse"}),l.jsxs("strong",{children:[Z.selfScore,"/10"]})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Interviewers vurdering"}),l.jsxs("strong",{className:"good",children:[Z.interviewerScore,"/10"]})]})]}),l.jsxs("div",{className:"sim-eval-gap-block",children:[l.jsxs("span",{children:[l.jsx(Ch,{size:13,strokeWidth:1.8})," ",$x(Z.selfScore,Z.interviewerScore)]}),l.jsx("p",{children:Ix(Z.selfScore,Z.interviewerScore)})]})]})]}),l.jsxs("section",{className:"sim-eval-improvements",children:[l.jsxs("div",{className:"sim-eval-section-title",children:[l.jsx(Ch,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:"Hvordan kan du blive bedre?"})]}),l.jsx("div",{className:"sim-eval-improvement-list",children:D.map(($,de)=>l.jsxs("article",{className:"sim-eval-improvement-card",children:[l.jsx("div",{className:"sim-eval-improvement-index",children:de+1}),l.jsxs("div",{className:"sim-eval-improvement-content",children:[l.jsx("h3",{children:$.title}),l.jsxs("div",{className:"sim-eval-improvement-grid",children:[l.jsxs("div",{children:[l.jsx("small",{children:"Adfaerd"}),l.jsx("p",{children:$.behavior})]}),l.jsxs("div",{className:"impact",children:[l.jsx("small",{children:"Effekt"}),l.jsx("p",{children:$.effect})]}),l.jsxs("div",{className:"next",children:[l.jsx("small",{children:"Naeste gang"}),l.jsx("p",{children:$.nextStep})]})]})]})]},$.id))})]}),l.jsxs("section",{className:"sim-eval-split-grid",children:[l.jsxs("article",{className:"sim-eval-list-card",children:[l.jsxs("div",{className:"sim-eval-card-title",children:[l.jsx(We,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:"Dine styrker"})]}),l.jsx("ul",{children:Z.strengths.map(($,de)=>l.jsxs("li",{children:[l.jsx(We,{size:17,strokeWidth:1.8}),l.jsx("span",{children:$})]},`strength-${de}`))})]}),l.jsxs("article",{className:"sim-eval-list-card recommendations",children:[l.jsxs("div",{className:"sim-eval-card-title",children:[l.jsx(oo,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:"Konstruktiv anbefaling"})]}),l.jsx("p",{className:"hint",children:"Fokuser pa disse handlinger for at staerke din naeste samtale."}),l.jsx("ul",{children:Z.recommendations.map(($,de)=>l.jsxs("li",{children:[l.jsx("div",{children:l.jsx(Ev,{size:13,strokeWidth:2})}),l.jsx("span",{children:$})]},`recommendation-${de}`))})]})]}),l.jsxs("section",{className:"sim-eval-rating-card",children:[l.jsx("p",{children:"Husk: Hvert interview er en laeringsmulighed. Bliv ved med at ove."}),l.jsxs("div",{className:"sim-eval-rating-box",children:[l.jsx("h3",{children:"Bedom denne evaluering"}),l.jsx("small",{children:"Din feedback hjaelper os med at forbedre oplevelsen."}),l.jsx("div",{className:"sim-eval-stars",children:Array.from({length:5}).map(($,de)=>{const te=de+1,oe=te<=J;return l.jsx("button",{type:"button","aria-label":`Vaelg ${te} stjerner`,className:oe?"selected":"",onClick:()=>P(te),children:l.jsx(po,{size:27,fill:oe?"currentColor":"none",strokeWidth:1.8})},`star-${te}`)})}),l.jsx("textarea",{value:X,onChange:$=>he($.target.value),rows:3,placeholder:"Kommentar (valgfrit)"}),l.jsx("button",{type:"button",onClick:()=>{ee()},disabled:ie||J===0,children:ie?"Sender...":"Send feedback"}),Y?l.jsx("div",{className:"sim-eval-submit-status",children:Y}):null]})]})]}):null]})]})]})}class tb{constructor(s=new al,c=new Ss){this.candidateService=s,this.subscriptionService=c}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate();return{name:s.firstName?.trim()||s.name?.trim()||"Lasse",imageUrl:s.imageUrl||s.image||void 0}}catch{return{name:"Lasse"}}}async getSnapshot(){const[s,c]=await Promise.allSettled([this.subscriptionService.getPaymentOverview(),this.subscriptionService.getSubscriptionProducts()]);return{paymentOverview:s.status==="fulfilled"?s.value:null,products:c.status==="fulfilled"?c.value:null}}async redeemCode(s){await this.subscriptionService.redeemCode(s)}}const Ih=["Download et professionelt CV - Klar til brug med et enkelt klik","Karriereagent med personlige anbefalinger","Øget synlighed – bliv fundet af virksomheder","Lad systemet lave din ansøgning for dig","Optimer dit CV med intelligente forslag","Job simulatoren – træn til din næste jobsamtale"];function Sm(u){if(!u)return null;const s=u instanceof Date?u:new Date(u);return Number.isNaN(s.getTime())?null:s}function ab(u){const s=Sm(u);return s?new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"2-digit",year:"numeric"}).format(s):"Ukendt dato"}function lb(u){if(!u)return!1;const s=Sm(u.activeToDate);return s?s.getTime()>Date.now():!1}function nb(u){const s=u?.premium_30?.price??49,c=u?.premium_90?.price??99,o=u?.premium_365?.price??249;return{30:{title:"30 dage",priceText:`${s} kr.`,dailyText:"Svarer til 1.63 kr. pr. dag",description:"Månedlig adgang til alle premium-funktioner"},90:{title:"90 dage",priceText:`${c} kr.`,dailyText:"Svarer til 1.10 kr. pr. dag",savings:"Spar 33%",description:"Mest populære valg med ekstra besparelse"},365:{title:"365 dage",priceText:`${o} kr.`,dailyText:"Svarer til 0.68 kr. pr. dag",savings:"Spar 58%",description:"Inkluderer gavekode til 3 måneders premium"}}}function ib({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new tb,[]),[g,M]=_.useState("Lasse"),[H,R]=_.useState(void 0),[j,B]=_.useState(null),[T,V]=_.useState(null),[J,P]=_.useState(!0),[X,he]=_.useState("90"),[ie,ne]=_.useState(!1),[Y,K]=_.useState(""),[ee,Z]=_.useState(""),[D,$]=_.useState(!1),[de,te]=_.useState(null);_.useEffect(()=>{let le=!0;async function v(){P(!0);const[E,b]=await Promise.all([h.getCandidateProfile(),h.getSnapshot()]);le&&(M(E.name),R(E.imageUrl),B(b.paymentOverview),V(b.products),P(!1))}return v(),()=>{le=!1}},[h]);const oe=_.useMemo(()=>nb(T),[T]),ue=lb(j),Ae=de??ue;async function Ne(){const le=Y.trim();if(!(!le||D)){Z(""),$(!0);try{await h.redeemCode(le),Z("Koden blev indløst. Opdaterer abonnement...");const v=await h.getSnapshot();B(v.paymentOverview),V(v.products),K("")}catch{Z("Kunne ikke indløse kode. Prøv igen.")}finally{$(!1)}}}return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"subscription",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar sub-main",children:[l.jsx(Qt,{name:g,imageUrl:H,onLogout:u,theme:o,onToggleTheme:c,actions:l.jsxs("div",{className:"sub-top-actions",children:[l.jsxs("div",{className:"sub-crumb-pill",children:[l.jsx(so,{size:15,strokeWidth:1.8})," Abonnement"]}),l.jsx("button",{type:"button",className:"sub-toggle-btn",onClick:()=>te(le=>le===null?!ue:!le),children:Ae?'Vis "Unsubscribed" state':'Vis "Subscribed" state'})]})}),l.jsxs("div",{className:"sub-head",children:[l.jsxs("div",{className:"sub-head-title-row",children:[l.jsx("div",{className:"sub-head-icon",children:l.jsx(so,{size:18,strokeWidth:1.8})}),l.jsx("h1",{children:"Dit Abonnement"})]}),l.jsx("p",{children:"Administrer dit medlemskab og lås op for alle de intelligente værktøjer, der gør din jobsøgning nemmere."})]}),l.jsxs("div",{className:"sub-wrap",children:[l.jsxs("section",{className:"sub-redeem-card",children:[l.jsxs("div",{className:"sub-redeem-head",children:[l.jsx("span",{children:"🎟️"}),l.jsx("h2",{children:"Indløs kode"})]}),l.jsx("p",{children:"Har du en rabatkode eller gavekode? Indtast den her og få den aktiveret med det samme"}),l.jsxs("div",{className:"sub-redeem-row",children:[l.jsx("input",{type:"text",value:Y,onChange:le=>K(le.target.value),placeholder:"Indtast kode her..."}),l.jsx("button",{type:"button",onClick:()=>{Ne()},disabled:D,children:D?"Indløser...":"Indløs"})]}),ee?l.jsx("small",{children:ee}):null]}),J?l.jsx("p",{className:"dash-loading",children:"Indlaeser abonnement..."}):null,!J&&!Ae?l.jsxs(l.Fragment,{children:[l.jsx("section",{className:"sub-plan-grid",children:["30","90","365"].map(le=>{const v=oe[le],E=X===le,b=le==="90",q=le==="365";return l.jsxs("label",{className:["sub-plan-card",E?"selected":"",b?"popular":"",q?"yearly":""].join(" ").trim(),children:[b?l.jsx("div",{className:"sub-popular-badge",children:"Mest populær"}):null,l.jsx("input",{type:"radio",name:"pricing-plan",checked:E,onChange:()=>he(le)}),l.jsx("div",{className:"sub-radio-indicator",children:l.jsx("i",{})}),l.jsxs("div",{className:"sub-plan-content",children:[l.jsxs("div",{className:"sub-plan-title-row",children:[l.jsx("h3",{children:v.title}),v.savings?l.jsx("span",{children:v.savings}):null]}),l.jsx("div",{className:"sub-price",children:v.priceText}),l.jsx("p",{className:"sub-price-daily",children:v.dailyText}),q?l.jsxs("div",{className:"sub-gift-box",children:[l.jsx(lv,{size:17,strokeWidth:1.8}),l.jsxs("div",{children:[l.jsx("strong",{children:"Giv en gave"}),l.jsx("small",{children:"Få en gratis 3-måneders Premium-kode med i købet til en ven."})]})]}):null,l.jsx("div",{className:"sub-divider"}),l.jsx("ul",{children:Ih.map(F=>l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8}),l.jsx("span",{children:F})]},`${le}-${F}`))})]})]},le)})}),l.jsxs("section",{className:"sub-checkout-card",children:[l.jsxs("div",{children:[l.jsx("h3",{children:"Klar til at opgradere?"}),l.jsx("p",{children:"Vælg en plan ovenfor og få adgang til alle Premium-funktioner med det samme."})]}),l.jsxs("div",{className:"sub-checkout-actions",children:[l.jsxs("label",{children:[l.jsx("input",{type:"checkbox",checked:ie,onChange:le=>ne(le.target.checked)}),l.jsx("span",{className:"sub-checkbox",children:l.jsx(Mp,{size:13,strokeWidth:2.2})}),l.jsx("span",{children:"Jeg accepterer handelsbetingelser"})]}),l.jsx("button",{type:"button",disabled:!ie,children:"Gå til betaling"})]})]})]}):null,!J&&Ae?l.jsxs("div",{className:"sub-active-wrap",children:[l.jsxs("section",{className:"sub-gift-alert",children:[l.jsx("div",{className:"sub-gift-glow"}),l.jsx("div",{className:"sub-gift-icon",children:"🎁"}),l.jsxs("div",{children:[l.jsx("h2",{children:"Din gave venter!"}),l.jsx("p",{children:"Klik på gaven nedenfor for at se indholdet"})]}),l.jsx("button",{type:"button",children:"Åbn gave"})]}),l.jsxs("section",{className:"sub-active-card",children:[l.jsxs("div",{className:"sub-active-head",children:[l.jsx("span",{children:"👑"}),l.jsx("h2",{children:"Premium abonnement"})]}),l.jsxs("div",{className:"sub-active-grid",children:[l.jsx("div",{className:"sub-active-features",children:l.jsx("ul",{children:Ih.map(le=>l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8}),l.jsx("span",{children:le})]},`active-${le}`))})}),l.jsxs("div",{className:"sub-active-status-col",children:[l.jsxs("div",{className:"sub-active-status-box",children:[l.jsx("div",{className:"sub-active-check",children:l.jsx(We,{size:34,strokeWidth:1.8})}),l.jsx("h3",{children:"Dit abonnement er aktivt"}),l.jsxs("strong",{children:[oe[X].priceText," for ",oe[X].title]}),l.jsx("p",{children:oe[X].dailyText}),l.jsxs("div",{className:"sub-renew-pill",children:[l.jsx(kp,{size:16,strokeWidth:1.8}),"Fornyes d. ",ab(j?.renewDate)]})]}),l.jsx("button",{type:"button",className:"sub-manage-link",children:"Administrer betalingsoplysninger"})]})]})]})]}):null]})]})]})}function sb(){const u=_.useMemo(()=>window.location.pathname==="/home",[]),s=_.useMemo(()=>!!window.localStorage.getItem("token"),[]),c=_.useMemo(()=>window.localStorage.getItem("theme")==="dark"?"dark":"light",[]),[o,h]=_.useState(s),[g,M]=_.useState(c),[H,R]=_.useState("dashboard"),[j,B]=_.useState(null),[T,V]=_.useState(null);function J(K){(K==="dashboard"||K==="jobs"||K==="cv"||K==="messages"||K==="agents"||K==="ai-agent"||K==="simulator"||K==="subscription")&&R(K)}function P(K,ee,Z="jobs"){B({id:K,fromJobnet:ee,returnPage:Z}),R("job-detail")}function X(){R(j?.returnPage??"jobs")}function he(K){V(K),R("simulator-evaluation")}function ie(){R("simulator")}async function ne(){await Jl.clearCredentials(),R("dashboard"),B(null),V(null),h(!1)}function Y(){M(K=>{const ee=K==="light"?"dark":"light";return window.localStorage.setItem("theme",ee),ee})}return u?l.jsx(kx,{}):o?H==="jobs"?l.jsx(Ux,{onLogout:ne,onNavigate:J,onOpenJobDetail:P,theme:g,onToggleTheme:Y}):H==="cv"?l.jsx(hx,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="messages"?l.jsx(Vx,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="agents"?l.jsx(G1,{onLogout:ne,onNavigate:J,onOpenJobDetail:P,theme:g,onToggleTheme:Y}):H==="ai-agent"?l.jsx(Z1,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="simulator"?l.jsx(Qx,{onLogout:ne,onNavigate:J,onOpenEvaluation:he,theme:g,onToggleTheme:Y}):H==="simulator-evaluation"&&T?l.jsx(eb,{interviewSelection:T,onBack:ie,onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="subscription"?l.jsx(ib,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="job-detail"&&j?l.jsx(zx,{jobId:j.id,fromJobnet:j.fromJobnet,onBack:X,onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):l.jsx(Sx,{onLogout:ne,onNavigate:J,onOpenJobDetail:P,theme:g,onToggleTheme:Y}):l.jsx(D1,{onAuthenticated:()=>h(!0)})}ap.createRoot(document.getElementById("root")).render(l.jsx(_.StrictMode,{children:l.jsx(sb,{})}));
|