Files
Arbejd.com-react/dist/assets/index-BFHBmXZt.js
2026-03-03 00:56:54 +01:00

12 lines
311 KiB
JavaScript

(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const y of m)if(y.type==="childList")for(const O of y.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&o(O)}).observe(document,{childList:!0,subtree:!0});function u(m){const y={};return m.integrity&&(y.integrity=m.integrity),m.referrerPolicy&&(y.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?y.credentials="include":m.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function o(m){if(m.ep)return;m.ep=!0;const y=u(m);fetch(m.href,y)}})();var Eu={exports:{}},Un={};var eh;function dg(){if(eh)return Un;eh=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(o,m,y){var O=null;if(y!==void 0&&(O=""+y),m.key!==void 0&&(O=""+m.key),"key"in m){y={};for(var G in m)G!=="key"&&(y[G]=m[G])}else y=m;return m=y.ref,{$$typeof:d,type:o,key:O,ref:m!==void 0?m:null,props:y}}return Un.Fragment=c,Un.jsx=u,Un.jsxs=u,Un}var th;function fg(){return th||(th=1,Eu.exports=dg()),Eu.exports}var s=fg(),Cu={exports:{}},ne={};var ah;function hg(){if(ah)return ne;ah=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),O=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),q=Symbol.iterator;function Z(h){return h===null||typeof h!="object"?null:(h=q&&h[q]||h["@@iterator"],typeof h=="function"?h:null)}var ae={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,fe={};function ge(h,S,C){this.props=h,this.context=S,this.refs=fe,this.updater=C||ae}ge.prototype.isReactComponent={},ge.prototype.setState=function(h,S){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,S,"setState")},ge.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function je(){}je.prototype=ge.prototype;function ie(h,S,C){this.props=h,this.context=S,this.refs=fe,this.updater=C||ae}var re=ie.prototype=new je;re.constructor=ie,Y(re,ge.prototype),re.isPureReactComponent=!0;var de=Array.isArray;function K(){}var M={H:null,A:null,T:null,S:null},ye=Object.prototype.hasOwnProperty;function Ae(h,S,C){var B=C.ref;return{$$typeof:d,type:h,key:S,ref:B!==void 0?B:null,props:C}}function ze(h,S){return Ae(h.type,S,h.props)}function R(h){return typeof h=="object"&&h!==null&&h.$$typeof===d}function Q(h){var S={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(C){return S[C]})}var le=/\/+/g;function I(h,S){return typeof h=="object"&&h!==null&&h.key!=null?Q(""+h.key):S.toString(36)}function oe(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(K,K):(h.status="pending",h.then(function(S){h.status==="pending"&&(h.status="fulfilled",h.value=S)},function(S){h.status==="pending"&&(h.status="rejected",h.reason=S)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function _(h,S,C,B,te){var ee=typeof h;(ee==="undefined"||ee==="boolean")&&(h=null);var _e=!1;if(h===null)_e=!0;else switch(ee){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(h.$$typeof){case d:case c:_e=!0;break;case V:return _e=h._init,_(_e(h._payload),S,C,B,te)}}if(_e)return te=te(h),_e=B===""?"."+I(h,0):B,de(te)?(C="",_e!=null&&(C=_e.replace(le,"$&/")+"/"),_(te,S,C,"",function(Vl){return Vl})):te!=null&&(R(te)&&(te=ze(te,C+(te.key==null||h&&h.key===te.key?"":(""+te.key).replace(le,"$&/")+"/")+_e)),S.push(te)),1;_e=0;var at=B===""?".":B+":";if(de(h))for(var Ve=0;Ve<h.length;Ve++)B=h[Ve],ee=at+I(B,Ve),_e+=_(B,S,C,ee,te);else if(Ve=Z(h),typeof Ve=="function")for(h=Ve.call(h),Ve=0;!(B=h.next()).done;)B=B.value,ee=at+I(B,Ve++),_e+=_(B,S,C,ee,te);else if(ee==="object"){if(typeof h.then=="function")return _(oe(h),S,C,B,te);throw S=String(h),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return _e}function H(h,S,C){if(h==null)return h;var B=[],te=0;return _(h,B,"","",function(ee){return S.call(C,ee,te++)}),B}function U(h){if(h._status===-1){var S=h._result;S=S(),S.then(function(C){(h._status===0||h._status===-1)&&(h._status=1,h._result=C)},function(C){(h._status===0||h._status===-1)&&(h._status=2,h._result=C)}),h._status===-1&&(h._status=0,h._result=S)}if(h._status===1)return h._result.default;throw h._result}var $=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},ce={map:H,forEach:function(h,S,C){H(h,function(){S.apply(this,arguments)},C)},count:function(h){var S=0;return H(h,function(){S++}),S},toArray:function(h){return H(h,function(S){return S})||[]},only:function(h){if(!R(h))throw Error("React.Children.only expected to receive a single React element child.");return h}};return ne.Activity=z,ne.Children=ce,ne.Component=ge,ne.Fragment=u,ne.Profiler=m,ne.PureComponent=ie,ne.StrictMode=o,ne.Suspense=w,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ne.__COMPILER_RUNTIME={__proto__:null,c:function(h){return M.H.useMemoCache(h)}},ne.cache=function(h){return function(){return h.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(h,S,C){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var B=Y({},h.props),te=h.key;if(S!=null)for(ee in S.key!==void 0&&(te=""+S.key),S)!ye.call(S,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&S.ref===void 0||(B[ee]=S[ee]);var ee=arguments.length-2;if(ee===1)B.children=C;else if(1<ee){for(var _e=Array(ee),at=0;at<ee;at++)_e[at]=arguments[at+2];B.children=_e}return Ae(h.type,te,B)},ne.createContext=function(h){return h={$$typeof:O,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:y,_context:h},h},ne.createElement=function(h,S,C){var B,te={},ee=null;if(S!=null)for(B in S.key!==void 0&&(ee=""+S.key),S)ye.call(S,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(te[B]=S[B]);var _e=arguments.length-2;if(_e===1)te.children=C;else if(1<_e){for(var at=Array(_e),Ve=0;Ve<_e;Ve++)at[Ve]=arguments[Ve+2];te.children=at}if(h&&h.defaultProps)for(B in _e=h.defaultProps,_e)te[B]===void 0&&(te[B]=_e[B]);return Ae(h,ee,te)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(h){return{$$typeof:G,render:h}},ne.isValidElement=R,ne.lazy=function(h){return{$$typeof:V,_payload:{_status:-1,_result:h},_init:U}},ne.memo=function(h,S){return{$$typeof:N,type:h,compare:S===void 0?null:S}},ne.startTransition=function(h){var S=M.T,C={};M.T=C;try{var B=h(),te=M.S;te!==null&&te(C,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(K,$)}catch(ee){$(ee)}finally{S!==null&&C.types!==null&&(S.types=C.types),M.T=S}},ne.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ne.use=function(h){return M.H.use(h)},ne.useActionState=function(h,S,C){return M.H.useActionState(h,S,C)},ne.useCallback=function(h,S){return M.H.useCallback(h,S)},ne.useContext=function(h){return M.H.useContext(h)},ne.useDebugValue=function(){},ne.useDeferredValue=function(h,S){return M.H.useDeferredValue(h,S)},ne.useEffect=function(h,S){return M.H.useEffect(h,S)},ne.useEffectEvent=function(h){return M.H.useEffectEvent(h)},ne.useId=function(){return M.H.useId()},ne.useImperativeHandle=function(h,S,C){return M.H.useImperativeHandle(h,S,C)},ne.useInsertionEffect=function(h,S){return M.H.useInsertionEffect(h,S)},ne.useLayoutEffect=function(h,S){return M.H.useLayoutEffect(h,S)},ne.useMemo=function(h,S){return M.H.useMemo(h,S)},ne.useOptimistic=function(h,S){return M.H.useOptimistic(h,S)},ne.useReducer=function(h,S,C){return M.H.useReducer(h,S,C)},ne.useRef=function(h){return M.H.useRef(h)},ne.useState=function(h){return M.H.useState(h)},ne.useSyncExternalStore=function(h,S,C){return M.H.useSyncExternalStore(h,S,C)},ne.useTransition=function(){return M.H.useTransition()},ne.version="19.2.4",ne}var lh;function Zu(){return lh||(lh=1,Cu.exports=hg()),Cu.exports}var L=Zu(),Uu={exports:{}},On={},Ou={exports:{}},wu={};var nh;function mg(){return nh||(nh=1,(function(d){function c(_,H){var U=_.length;_.push(H);e:for(;0<U;){var $=U-1>>>1,ce=_[$];if(0<m(ce,H))_[$]=H,_[U]=ce,U=$;else break e}}function u(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var H=_[0],U=_.pop();if(U!==H){_[0]=U;e:for(var $=0,ce=_.length,h=ce>>>1;$<h;){var S=2*($+1)-1,C=_[S],B=S+1,te=_[B];if(0>m(C,U))B<ce&&0>m(te,C)?(_[$]=te,_[B]=U,$=B):(_[$]=C,_[S]=U,$=S);else if(B<ce&&0>m(te,U))_[$]=te,_[B]=U,$=B;else break e}}return H}function m(_,H){var U=_.sortIndex-H.sortIndex;return U!==0?U:_.id-H.id}if(d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;d.unstable_now=function(){return y.now()}}else{var O=Date,G=O.now();d.unstable_now=function(){return O.now()-G}}var w=[],N=[],V=1,z=null,q=3,Z=!1,ae=!1,Y=!1,fe=!1,ge=typeof setTimeout=="function"?setTimeout:null,je=typeof clearTimeout=="function"?clearTimeout:null,ie=typeof setImmediate<"u"?setImmediate:null;function re(_){for(var H=u(N);H!==null;){if(H.callback===null)o(N);else if(H.startTime<=_)o(N),H.sortIndex=H.expirationTime,c(w,H);else break;H=u(N)}}function de(_){if(Y=!1,re(_),!ae)if(u(w)!==null)ae=!0,K||(K=!0,Q());else{var H=u(N);H!==null&&oe(de,H.startTime-_)}}var K=!1,M=-1,ye=5,Ae=-1;function ze(){return fe?!0:!(d.unstable_now()-Ae<ye)}function R(){if(fe=!1,K){var _=d.unstable_now();Ae=_;var H=!0;try{e:{ae=!1,Y&&(Y=!1,je(M),M=-1),Z=!0;var U=q;try{t:{for(re(_),z=u(w);z!==null&&!(z.expirationTime>_&&ze());){var $=z.callback;if(typeof $=="function"){z.callback=null,q=z.priorityLevel;var ce=$(z.expirationTime<=_);if(_=d.unstable_now(),typeof ce=="function"){z.callback=ce,re(_),H=!0;break t}z===u(w)&&o(w),re(_)}else o(w);z=u(w)}if(z!==null)H=!0;else{var h=u(N);h!==null&&oe(de,h.startTime-_),H=!1}}break e}finally{z=null,q=U,Z=!1}H=void 0}}finally{H?Q():K=!1}}}var Q;if(typeof ie=="function")Q=function(){ie(R)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,I=le.port2;le.port1.onmessage=R,Q=function(){I.postMessage(null)}}else Q=function(){ge(R,0)};function oe(_,H){M=ge(function(){_(d.unstable_now())},H)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(_){_.callback=null},d.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ye=0<_?Math.floor(1e3/_):5},d.unstable_getCurrentPriorityLevel=function(){return q},d.unstable_next=function(_){switch(q){case 1:case 2:case 3:var H=3;break;default:H=q}var U=q;q=H;try{return _()}finally{q=U}},d.unstable_requestPaint=function(){fe=!0},d.unstable_runWithPriority=function(_,H){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var U=q;q=_;try{return H()}finally{q=U}},d.unstable_scheduleCallback=function(_,H,U){var $=d.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?$+U:$):U=$,_){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=U+ce,_={id:V++,callback:H,priorityLevel:_,startTime:U,expirationTime:ce,sortIndex:-1},U>$?(_.sortIndex=U,c(N,_),u(w)===null&&_===u(N)&&(Y?(je(M),M=-1):Y=!0,oe(de,U-$))):(_.sortIndex=ce,c(w,_),ae||Z||(ae=!0,K||(K=!0,Q()))),_},d.unstable_shouldYield=ze,d.unstable_wrapCallback=function(_){var H=q;return function(){var U=q;q=H;try{return _.apply(this,arguments)}finally{q=U}}}})(wu)),wu}var ih;function gg(){return ih||(ih=1,Ou.exports=mg()),Ou.exports}var Lu={exports:{}},tt={};var sh;function vg(){if(sh)return tt;sh=1;var d=Zu();function c(w){var N="https://react.dev/errors/"+w;if(1<arguments.length){N+="?args[]="+encodeURIComponent(arguments[1]);for(var V=2;V<arguments.length;V++)N+="&args[]="+encodeURIComponent(arguments[V])}return"Minified React error #"+w+"; visit "+N+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(c(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},m=Symbol.for("react.portal");function y(w,N,V){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:z==null?null:""+z,children:w,containerInfo:N,implementation:V}}var O=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function G(w,N){if(w==="font")return"";if(typeof N=="string")return N==="use-credentials"?N:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(w,N){var V=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!N||N.nodeType!==1&&N.nodeType!==9&&N.nodeType!==11)throw Error(c(299));return y(w,N,null,V)},tt.flushSync=function(w){var N=O.T,V=o.p;try{if(O.T=null,o.p=2,w)return w()}finally{O.T=N,o.p=V,o.d.f()}},tt.preconnect=function(w,N){typeof w=="string"&&(N?(N=N.crossOrigin,N=typeof N=="string"?N==="use-credentials"?N:"":void 0):N=null,o.d.C(w,N))},tt.prefetchDNS=function(w){typeof w=="string"&&o.d.D(w)},tt.preinit=function(w,N){if(typeof w=="string"&&N&&typeof N.as=="string"){var V=N.as,z=G(V,N.crossOrigin),q=typeof N.integrity=="string"?N.integrity:void 0,Z=typeof N.fetchPriority=="string"?N.fetchPriority:void 0;V==="style"?o.d.S(w,typeof N.precedence=="string"?N.precedence:void 0,{crossOrigin:z,integrity:q,fetchPriority:Z}):V==="script"&&o.d.X(w,{crossOrigin:z,integrity:q,fetchPriority:Z,nonce:typeof N.nonce=="string"?N.nonce:void 0})}},tt.preinitModule=function(w,N){if(typeof w=="string")if(typeof N=="object"&&N!==null){if(N.as==null||N.as==="script"){var V=G(N.as,N.crossOrigin);o.d.M(w,{crossOrigin:V,integrity:typeof N.integrity=="string"?N.integrity:void 0,nonce:typeof N.nonce=="string"?N.nonce:void 0})}}else N==null&&o.d.M(w)},tt.preload=function(w,N){if(typeof w=="string"&&typeof N=="object"&&N!==null&&typeof N.as=="string"){var V=N.as,z=G(V,N.crossOrigin);o.d.L(w,V,{crossOrigin:z,integrity:typeof N.integrity=="string"?N.integrity:void 0,nonce:typeof N.nonce=="string"?N.nonce:void 0,type:typeof N.type=="string"?N.type:void 0,fetchPriority:typeof N.fetchPriority=="string"?N.fetchPriority:void 0,referrerPolicy:typeof N.referrerPolicy=="string"?N.referrerPolicy:void 0,imageSrcSet:typeof N.imageSrcSet=="string"?N.imageSrcSet:void 0,imageSizes:typeof N.imageSizes=="string"?N.imageSizes:void 0,media:typeof N.media=="string"?N.media:void 0})}},tt.preloadModule=function(w,N){if(typeof w=="string")if(N){var V=G(N.as,N.crossOrigin);o.d.m(w,{as:typeof N.as=="string"&&N.as!=="script"?N.as:void 0,crossOrigin:V,integrity:typeof N.integrity=="string"?N.integrity:void 0})}else o.d.m(w)},tt.requestFormReset=function(w){o.d.r(w)},tt.unstable_batchedUpdates=function(w,N){return w(N)},tt.useFormState=function(w,N,V){return O.H.useFormState(w,N,V)},tt.useFormStatus=function(){return O.H.useHostTransitionStatus()},tt.version="19.2.4",tt}var ch;function pg(){if(ch)return Lu.exports;ch=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(c){console.error(c)}}return d(),Lu.exports=vg(),Lu.exports}var uh;function yg(){if(uh)return On;uh=1;var d=gg(),c=Zu(),u=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 m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function y(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 O(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 G(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 w(e){if(y(e)!==e)throw Error(o(188))}function N(e){var t=e.alternate;if(!t){if(t=y(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return w(n),e;if(i===l)return w(n),t;i=i.sibling}throw Error(o(188))}if(a.return!==l.return)a=n,l=i;else{for(var r=!1,f=n.child;f;){if(f===a){r=!0,a=n,l=i;break}if(f===l){r=!0,l=n,a=i;break}f=f.sibling}if(!r){for(f=i.child;f;){if(f===a){r=!0,a=i,l=n;break}if(f===l){r=!0,l=i,a=n;break}f=f.sibling}if(!r)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function V(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=V(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,q=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),fe=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),je=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=R&&e[R]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case ge:return"Profiler";case fe:return"StrictMode";case de:return"Suspense";case K:return"SuspenseList";case Ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ae:return"Portal";case ie:return e.displayName||"Context";case je:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var oe=Array.isArray,_=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},$=[],ce=-1;function h(e){return{current:e}}function S(e){0>ce||(e.current=$[ce],$[ce]=null,ce--)}function C(e,t){ce++,$[ce]=e.current,e.current=t}var B=h(null),te=h(null),ee=h(null),_e=h(null);function at(e,t){switch(C(ee,t),C(te,e),C(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nf(t),e=Af(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}S(B),C(B,e)}function Ve(){S(B),S(te),S(ee)}function Vl(e){e.memoizedState!==null&&C(_e,e);var t=B.current,a=Af(t,e.type);t!==a&&(C(te,e),C(B,a))}function Bn(e){te.current===e&&(S(B),S(te)),_e.current===e&&(S(_e),Dn._currentValue=U)}var hs,$u;function Da(e){if(hs===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);hs=t&&t[1]||"",$u=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+hs+e+$u}var ms=!1;function gs(e,t){if(!e||ms)return"";ms=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(A){var x=A}Reflect.construct(e,[],E)}else{try{E.call()}catch(A){x=A}e.call(E.prototype)}}else{try{throw Error()}catch(A){x=A}(E=e())&&typeof E.catch=="function"&&E.catch(function(){})}}catch(A){if(A&&x&&typeof A.stack=="string")return[A.stack,x.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),r=i[0],f=i[1];if(r&&f){var g=r.split(`
`),j=f.split(`
`);for(n=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;if(l===g.length||n===j.length)for(l=g.length-1,n=j.length-1;1<=l&&0<=n&&g[l]!==j[n];)n--;for(;1<=l&&0<=n;l--,n--)if(g[l]!==j[n]){if(l!==1||n!==1)do if(l--,n--,0>n||g[l]!==j[n]){var T=`
`+g[l].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=l&&0<=n);break}}}finally{ms=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Da(a):""}function Yh(e,t){switch(e.tag){case 26:case 27:case 5:return Da(e.type);case 16:return Da("Lazy");case 13:return e.child!==t&&t!==null?Da("Suspense Fallback"):Da("Suspense");case 19:return Da("SuspenseList");case 0:case 15:return gs(e.type,!1);case 11:return gs(e.type.render,!1);case 1:return gs(e.type,!0);case 31:return Da("Activity");default:return""}}function Iu(e){try{var t="",a=null;do t+=Yh(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var vs=Object.prototype.hasOwnProperty,ps=d.unstable_scheduleCallback,ys=d.unstable_cancelCallback,Qh=d.unstable_shouldYield,Gh=d.unstable_requestPaint,dt=d.unstable_now,Jh=d.unstable_getCurrentPriorityLevel,Pu=d.unstable_ImmediatePriority,er=d.unstable_UserBlockingPriority,Yn=d.unstable_NormalPriority,Xh=d.unstable_LowPriority,tr=d.unstable_IdlePriority,Zh=d.log,Kh=d.unstable_setDisableYieldValue,ql=null,ft=null;function la(e){if(typeof Zh=="function"&&Kh(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(ql,e)}catch{}}var ht=Math.clz32?Math.clz32:$h,Wh=Math.log,Fh=Math.LN2;function $h(e){return e>>>=0,e===0?32:31-(Wh(e)/Fh|0)|0}var Qn=256,Gn=262144,Jn=4194304;function Ma(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 Xn(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var f=l&134217727;return f!==0?(l=f&~i,l!==0?n=Ma(l):(r&=f,r!==0?n=Ma(r):a||(a=f&~e,a!==0&&(n=Ma(a))))):(f=l&~i,f!==0?n=Ma(f):r!==0?n=Ma(r):a||(a=l&~e,a!==0&&(n=Ma(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function Bl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ih(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 ar(){var e=Jn;return Jn<<=1,(Jn&62914560)===0&&(Jn=4194304),e}function bs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ph(e,t,a,l,n,i){var r=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,g=e.expirationTimes,j=e.hiddenUpdates;for(a=r&~a;0<a;){var T=31-ht(a),E=1<<T;f[T]=0,g[T]=-1;var x=j[T];if(x!==null)for(j[T]=null,T=0;T<x.length;T++){var A=x[T];A!==null&&(A.lane&=-536870913)}a&=~E}l!==0&&lr(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function lr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function nr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-ht(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function ir(e,t){var a=t&-t;return a=(a&42)!==0?1:js(a),(a&(e.suspendedLanes|t))!==0?0:a}function js(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 Ss(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sr(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:Zf(e.type))}function cr(e,t){var a=H.p;try{return H.p=e,t()}finally{H.p=a}}var na=Math.random().toString(36).slice(2),Fe="__reactFiber$"+na,nt="__reactProps$"+na,Wa="__reactContainer$"+na,xs="__reactEvents$"+na,em="__reactListeners$"+na,tm="__reactHandles$"+na,ur="__reactResources$"+na,Ql="__reactMarker$"+na;function Ns(e){delete e[Fe],delete e[nt],delete e[xs],delete e[em],delete e[tm]}function Fa(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Wa]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ef(e);e!==null;){if(a=e[Fe])return a;e=Ef(e)}return t}e=a,a=e.parentNode}return null}function $a(e){if(e=e[Fe]||e[Wa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Gl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Ia(e){var t=e[ur];return t||(t=e[ur]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Ql]=!0}var rr=new Set,or={};function Ea(e,t){Pa(e,t),Pa(e+"Capture",t)}function Pa(e,t){for(or[e]=t,e=0;e<t.length;e++)rr.add(t[e])}var am=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dr={},fr={};function lm(e){return vs.call(fr,e)?!0:vs.call(dr,e)?!1:am.test(e)?fr[e]=!0:(dr[e]=!0,!1)}function Zn(e,t,a){if(lm(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Kn(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 Vt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nm(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(r){a=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function As(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=nm(e,t,""+e[t])}}function mr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=hr(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Wn(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 im=/[\n"\\]/g;function xt(e){return e.replace(im,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _s(e,t,a,l,n,i,r,f){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?ks(e,r,St(t)):a!=null?ks(e,r,St(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+St(f):e.removeAttribute("name")}function gr(e,t,a,l,n,i,r,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){As(e);return}a=a!=null?""+St(a):"",t=t!=null?""+St(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=f?e.checked:!!l,e.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),As(e)}function ks(e,t,a){t==="number"&&Wn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function el(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+St(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function vr(e,t,a){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+St(a):""}function pr(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(oe(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=St(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),As(e)}function tl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var sm=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 yr(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||sm.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function br(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&yr(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&yr(e,i,t[i])}function Ts(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 cm=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"]]),um=/^[\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 Fn(e){return um.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qt(){}var zs=null;function Ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var al=null,ll=null;function jr(e){var t=$a(e);if(t&&(e=t.stateNode)){var a=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(_s(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="'+xt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[nt]||null;if(!n)throw Error(o(90));_s(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&mr(l)}break e;case"textarea":vr(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&el(e,!!a.multiple,t,!1)}}}var Ms=!1;function Sr(e,t,a){if(Ms)return e(t,a);Ms=!0;try{var l=e(t);return l}finally{if(Ms=!1,(al!==null||ll!==null)&&(Ri(),al&&(t=al,e=ll,ll=al=null,jr(t),e)))for(t=0;t<e.length;t++)jr(e[t])}}function Jl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[nt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Bt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Es=!1;if(Bt)try{var Xl={};Object.defineProperty(Xl,"passive",{get:function(){Es=!0}}),window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{Es=!1}var ia=null,Cs=null,$n=null;function xr(){if($n)return $n;var e,t=Cs,a=t.length,l,n="value"in ia?ia.value:ia.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var r=a-e;for(l=1;l<=r&&t[a-l]===n[i-l];l++);return $n=n.slice(e,1<l?1-l:void 0)}function In(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 Pn(){return!0}function Nr(){return!1}function it(e){function t(a,l,n,i,r){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Pn:Nr,this.isPropagationStopped=Nr,this}return z(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=Pn)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ei=it(Ca),Zl=z({},Ca,{view:0,detail:0}),rm=it(Zl),Us,Os,Kl,ti=z({},Zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ls,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!==Kl&&(Kl&&e.type==="mousemove"?(Us=e.screenX-Kl.screenX,Os=e.screenY-Kl.screenY):Os=Us=0,Kl=e),Us)},movementY:function(e){return"movementY"in e?e.movementY:Os}}),Ar=it(ti),om=z({},ti,{dataTransfer:0}),dm=it(om),fm=z({},Zl,{relatedTarget:0}),ws=it(fm),hm=z({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),mm=it(hm),gm=z({},Ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vm=it(gm),pm=z({},Ca,{data:0}),_r=it(pm),ym={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bm={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"},jm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jm[e])?!!t[e]:!1}function Ls(){return Sm}var xm=z({},Zl,{key:function(e){if(e.key){var t=ym[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=In(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ls,charCode:function(e){return e.type==="keypress"?In(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?In(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nm=it(xm),Am=z({},ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=it(Am),_m=z({},Zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ls}),km=it(_m),Tm=z({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),zm=it(Tm),Dm=z({},ti,{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}),Mm=it(Dm),Em=z({},Ca,{newState:0,oldState:0}),Cm=it(Em),Um=[9,13,27,32],Rs=Bt&&"CompositionEvent"in window,Wl=null;Bt&&"documentMode"in document&&(Wl=document.documentMode);var Om=Bt&&"TextEvent"in window&&!Wl,Tr=Bt&&(!Rs||Wl&&8<Wl&&11>=Wl),zr=" ",Dr=!1;function Mr(e,t){switch(e){case"keyup":return Um.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Er(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nl=!1;function wm(e,t){switch(e){case"compositionend":return Er(t);case"keypress":return t.which!==32?null:(Dr=!0,zr);case"textInput":return e=t.data,e===zr&&Dr?null:e;default:return null}}function Lm(e,t){if(nl)return e==="compositionend"||!Rs&&Mr(e,t)?(e=xr(),$n=Cs=ia=null,nl=!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 Tr&&t.locale!=="ko"?null:t.data;default:return null}}var Rm={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 Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rm[e.type]:t==="textarea"}function Ur(e,t,a,l){al?ll?ll.push(l):ll=[l]:al=l,t=Gi(t,"onChange"),0<t.length&&(a=new ei("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Fl=null,$l=null;function Hm(e){pf(e,0)}function ai(e){var t=Gl(e);if(mr(t))return e}function Or(e,t){if(e==="change")return t}var wr=!1;if(Bt){var Hs;if(Bt){var Vs="oninput"in document;if(!Vs){var Lr=document.createElement("div");Lr.setAttribute("oninput","return;"),Vs=typeof Lr.oninput=="function"}Hs=Vs}else Hs=!1;wr=Hs&&(!document.documentMode||9<document.documentMode)}function Rr(){Fl&&(Fl.detachEvent("onpropertychange",Hr),$l=Fl=null)}function Hr(e){if(e.propertyName==="value"&&ai($l)){var t=[];Ur(t,$l,e,Ds(e)),Sr(Hm,t)}}function Vm(e,t,a){e==="focusin"?(Rr(),Fl=t,$l=a,Fl.attachEvent("onpropertychange",Hr)):e==="focusout"&&Rr()}function qm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai($l)}function Bm(e,t){if(e==="click")return ai(t)}function Ym(e,t){if(e==="input"||e==="change")return ai(t)}function Qm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:Qm;function Il(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!vs.call(t,n)||!mt(e[n],t[n]))return!1}return!0}function Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qr(e,t){var a=Vr(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vr(a)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wn(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=Wn(e.document)}return t}function qs(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 Gm=Bt&&"documentMode"in document&&11>=document.documentMode,il=null,Bs=null,Pl=null,Ys=!1;function Qr(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ys||il==null||il!==Wn(l)||(l=il,"selectionStart"in l&&qs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Pl&&Il(Pl,l)||(Pl=l,l=Gi(Bs,"onSelect"),0<l.length&&(t=new ei("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=il)))}function Ua(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var sl={animationend:Ua("Animation","AnimationEnd"),animationiteration:Ua("Animation","AnimationIteration"),animationstart:Ua("Animation","AnimationStart"),transitionrun:Ua("Transition","TransitionRun"),transitionstart:Ua("Transition","TransitionStart"),transitioncancel:Ua("Transition","TransitionCancel"),transitionend:Ua("Transition","TransitionEnd")},Qs={},Gr={};Bt&&(Gr=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);function Oa(e){if(Qs[e])return Qs[e];if(!sl[e])return e;var t=sl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Gr)return Qs[e]=t[a];return e}var Jr=Oa("animationend"),Xr=Oa("animationiteration"),Zr=Oa("animationstart"),Jm=Oa("transitionrun"),Xm=Oa("transitionstart"),Zm=Oa("transitioncancel"),Kr=Oa("transitionend"),Wr=new Map,Gs="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(" ");Gs.push("scrollEnd");function Ct(e,t){Wr.set(e,t),Ea(t,[e])}var li=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)},Nt=[],cl=0,Js=0;function ni(){for(var e=cl,t=Js=cl=0;t<e;){var a=Nt[t];Nt[t++]=null;var l=Nt[t];Nt[t++]=null;var n=Nt[t];Nt[t++]=null;var i=Nt[t];if(Nt[t++]=null,l!==null&&n!==null){var r=l.pending;r===null?n.next=n:(n.next=r.next,r.next=n),l.pending=n}i!==0&&Fr(a,n,i)}}function ii(e,t,a,l){Nt[cl++]=e,Nt[cl++]=t,Nt[cl++]=a,Nt[cl++]=l,Js|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Xs(e,t,a,l){return ii(e,t,a,l),si(e)}function wa(e,t){return ii(e,null,null,t),si(e)}function Fr(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-ht(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function si(e){if(50<xn)throw xn=0,tu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ul={};function Km(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,a,l){return new Km(e,t,a,l)}function Zs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yt(e,t){var a=e.alternate;return a===null?(a=gt(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 $r(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 ci(e,t,a,l,n,i){var r=0;if(l=e,typeof e=="function")Zs(e)&&(r=1);else if(typeof e=="string")r=P1(e,a,B.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ae:return e=gt(31,a,t,n),e.elementType=Ae,e.lanes=i,e;case Y:return La(a.children,n,i,t);case fe:r=8,n|=24;break;case ge:return e=gt(12,a,t,n|2),e.elementType=ge,e.lanes=i,e;case de:return e=gt(13,a,t,n),e.elementType=de,e.lanes=i,e;case K:return e=gt(19,a,t,n),e.elementType=K,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ie:r=10;break e;case je:r=9;break e;case re:r=11;break e;case M:r=14;break e;case ye:r=16,l=null;break e}r=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=gt(r,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function La(e,t,a,l){return e=gt(7,e,l,t),e.lanes=a,e}function Ks(e,t,a){return e=gt(6,e,null,t),e.lanes=a,e}function Ir(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Ws(e,t,a){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pr=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var a=Pr.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Iu(t)},Pr.set(e,t),t)}return{value:e,source:t,stack:Iu(t)}}var rl=[],ol=0,ui=null,en=0,_t=[],kt=0,sa=null,wt=1,Lt="";function Qt(e,t){rl[ol++]=en,rl[ol++]=ui,ui=e,en=t}function eo(e,t,a){_t[kt++]=wt,_t[kt++]=Lt,_t[kt++]=sa,sa=e;var l=wt;e=Lt;var n=32-ht(l)-1;l&=~(1<<n),a+=1;var i=32-ht(t)+n;if(30<i){var r=n-n%5;i=(l&(1<<r)-1).toString(32),l>>=r,n-=r,wt=1<<32-ht(t)+n|a<<n|l,Lt=i+e}else wt=1<<i|a<<n|l,Lt=e}function Fs(e){e.return!==null&&(Qt(e,1),eo(e,1,0))}function $s(e){for(;e===ui;)ui=rl[--ol],rl[ol]=null,en=rl[--ol],rl[ol]=null;for(;e===sa;)sa=_t[--kt],_t[kt]=null,Lt=_t[--kt],_t[kt]=null,wt=_t[--kt],_t[kt]=null}function to(e,t){_t[kt++]=wt,_t[kt++]=Lt,_t[kt++]=sa,wt=t.id,Lt=t.overflow,sa=e}var $e=null,Ue=null,be=!1,ca=null,Tt=!1,Is=Error(o(519));function ua(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(At(t,e)),Is}function ao(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[nt]=l,a){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(a=0;a<An.length;a++)me(An[a],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),gr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),pr(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Sf(t.textContent,a)?(l.popover!=null&&(me("beforetoggle",t),me("toggle",t)),l.onScroll!=null&&me("scroll",t),l.onScrollEnd!=null&&me("scrollend",t),l.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||ua(e,!0)}function lo(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:Tt=!1;return;case 27:case 3:Tt=!0;return;default:$e=$e.return}}function dl(e){if(e!==$e)return!1;if(!be)return lo(e),be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||vu(e.type,e.memoizedProps)),a=!a),a&&Ue&&ua(e),lo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=Mf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ue=Mf(e)}else t===27?(t=Ue,xa(e.type)?(e=Su,Su=null,Ue=e):Ue=t):Ue=$e?Dt(e.stateNode.nextSibling):null;return!0}function Ra(){Ue=$e=null,be=!1}function Ps(){var e=ca;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),ca=null),e}function tn(e){ca===null?ca=[e]:ca.push(e)}var ec=h(null),Ha=null,Gt=null;function ra(e,t,a){C(ec,t._currentValue),t._currentValue=a}function Jt(e){e._currentValue=ec.current,S(ec)}function tc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function ac(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var r=n.child;i=i.firstContext;e:for(;i!==null;){var f=i;i=n;for(var g=0;g<t.length;g++)if(f.context===t[g]){i.lanes|=a,f=i.alternate,f!==null&&(f.lanes|=a),tc(i.return,a,e),l||(r=null);break e}i=f.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(o(341));r.lanes|=a,i=r.alternate,i!==null&&(i.lanes|=a),tc(r,a,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function fl(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var r=n.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var f=n.type;mt(n.pendingProps.value,r.value)||(e!==null?e.push(f):e=[f])}}else if(n===_e.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Dn):e=[Dn])}n=n.return}e!==null&&ac(t,e,a,l),t.flags|=262144}function ri(e){for(e=e.firstContext;e!==null;){if(!mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Va(e){Ha=e,Gt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return no(Ha,e)}function oi(e,t){return Ha===null&&Va(e),no(e,t)}function no(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Gt===null){if(e===null)throw Error(o(308));Gt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gt=Gt.next=t;return a}var Wm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Fm=d.unstable_scheduleCallback,$m=d.unstable_NormalPriority,Ye={$$typeof:ie,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Wm,data:new Map,refCount:0}}function an(e){e.refCount--,e.refCount===0&&Fm($m,function(){e.controller.abort()})}var ln=null,nc=0,hl=0,ml=null;function Im(e,t){if(ln===null){var a=ln=[];nc=0,hl=cu(),ml={status:"pending",value:void 0,then:function(l){a.push(l)}}}return nc++,t.then(io,io),t}function io(){if(--nc===0&&ln!==null){ml!==null&&(ml.status="fulfilled");var e=ln;ln=null,hl=0,ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pm(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var so=_.S;_.S=function(e,t){Gd=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Im(e,t),so!==null&&so(e,t)};var qa=h(null);function ic(){var e=qa.current;return e!==null?e:Ce.pooledCache}function di(e,t){t===null?C(qa,qa.current):C(qa,t.pool)}function co(){var e=ic();return e===null?null:{parent:Ye._currentValue,pool:e}}var gl=Error(o(460)),sc=Error(o(474)),fi=Error(o(542)),hi={then:function(){}};function uo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ro(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(qt,qt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fo(e),e;default:if(typeof t.status=="string")t.then(qt,qt);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fo(e),e}throw Ya=t,gl}}function Ba(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ya=a,gl):a}}var Ya=null;function oo(){if(Ya===null)throw Error(o(459));var e=Ya;return Ya=null,e}function fo(e){if(e===gl||e===fi)throw Error(o(483))}var vl=null,nn=0;function mi(e){var t=nn;return nn+=1,vl===null&&(vl=[]),ro(vl,e,t)}function sn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gi(e,t){throw t.$$typeof===q?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ho(e){function t(p,v){if(e){var b=p.deletions;b===null?(p.deletions=[v],p.flags|=16):b.push(v)}}function a(p,v){if(!e)return null;for(;v!==null;)t(p,v),v=v.sibling;return null}function l(p){for(var v=new Map;p!==null;)p.key!==null?v.set(p.key,p):v.set(p.index,p),p=p.sibling;return v}function n(p,v){return p=Yt(p,v),p.index=0,p.sibling=null,p}function i(p,v,b){return p.index=b,e?(b=p.alternate,b!==null?(b=b.index,b<v?(p.flags|=67108866,v):b):(p.flags|=67108866,v)):(p.flags|=1048576,v)}function r(p){return e&&p.alternate===null&&(p.flags|=67108866),p}function f(p,v,b,D){return v===null||v.tag!==6?(v=Ks(b,p.mode,D),v.return=p,v):(v=n(v,b),v.return=p,v)}function g(p,v,b,D){var F=b.type;return F===Y?T(p,v,b.props.children,D,b.key):v!==null&&(v.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ye&&Ba(F)===v.type)?(v=n(v,b.props),sn(v,b),v.return=p,v):(v=ci(b.type,b.key,b.props,null,p.mode,D),sn(v,b),v.return=p,v)}function j(p,v,b,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=Ws(b,p.mode,D),v.return=p,v):(v=n(v,b.children||[]),v.return=p,v)}function T(p,v,b,D,F){return v===null||v.tag!==7?(v=La(b,p.mode,D,F),v.return=p,v):(v=n(v,b),v.return=p,v)}function E(p,v,b){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Ks(""+v,p.mode,b),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Z:return b=ci(v.type,v.key,v.props,null,p.mode,b),sn(b,v),b.return=p,b;case ae:return v=Ws(v,p.mode,b),v.return=p,v;case ye:return v=Ba(v),E(p,v,b)}if(oe(v)||Q(v))return v=La(v,p.mode,b,null),v.return=p,v;if(typeof v.then=="function")return E(p,mi(v),b);if(v.$$typeof===ie)return E(p,oi(p,v),b);gi(p,v)}return null}function x(p,v,b,D){var F=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return F!==null?null:f(p,v,""+b,D);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Z:return b.key===F?g(p,v,b,D):null;case ae:return b.key===F?j(p,v,b,D):null;case ye:return b=Ba(b),x(p,v,b,D)}if(oe(b)||Q(b))return F!==null?null:T(p,v,b,D,null);if(typeof b.then=="function")return x(p,v,mi(b),D);if(b.$$typeof===ie)return x(p,v,oi(p,b),D);gi(p,b)}return null}function A(p,v,b,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return p=p.get(b)||null,f(v,p,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Z:return p=p.get(D.key===null?b:D.key)||null,g(v,p,D,F);case ae:return p=p.get(D.key===null?b:D.key)||null,j(v,p,D,F);case ye:return D=Ba(D),A(p,v,b,D,F)}if(oe(D)||Q(D))return p=p.get(b)||null,T(v,p,D,F,null);if(typeof D.then=="function")return A(p,v,b,mi(D),F);if(D.$$typeof===ie)return A(p,v,b,oi(v,D),F);gi(v,D)}return null}function J(p,v,b,D){for(var F=null,Se=null,X=v,ue=v=0,pe=null;X!==null&&ue<b.length;ue++){X.index>ue?(pe=X,X=null):pe=X.sibling;var xe=x(p,X,b[ue],D);if(xe===null){X===null&&(X=pe);break}e&&X&&xe.alternate===null&&t(p,X),v=i(xe,v,ue),Se===null?F=xe:Se.sibling=xe,Se=xe,X=pe}if(ue===b.length)return a(p,X),be&&Qt(p,ue),F;if(X===null){for(;ue<b.length;ue++)X=E(p,b[ue],D),X!==null&&(v=i(X,v,ue),Se===null?F=X:Se.sibling=X,Se=X);return be&&Qt(p,ue),F}for(X=l(X);ue<b.length;ue++)pe=A(X,p,ue,b[ue],D),pe!==null&&(e&&pe.alternate!==null&&X.delete(pe.key===null?ue:pe.key),v=i(pe,v,ue),Se===null?F=pe:Se.sibling=pe,Se=pe);return e&&X.forEach(function(Ta){return t(p,Ta)}),be&&Qt(p,ue),F}function P(p,v,b,D){if(b==null)throw Error(o(151));for(var F=null,Se=null,X=v,ue=v=0,pe=null,xe=b.next();X!==null&&!xe.done;ue++,xe=b.next()){X.index>ue?(pe=X,X=null):pe=X.sibling;var Ta=x(p,X,xe.value,D);if(Ta===null){X===null&&(X=pe);break}e&&X&&Ta.alternate===null&&t(p,X),v=i(Ta,v,ue),Se===null?F=Ta:Se.sibling=Ta,Se=Ta,X=pe}if(xe.done)return a(p,X),be&&Qt(p,ue),F;if(X===null){for(;!xe.done;ue++,xe=b.next())xe=E(p,xe.value,D),xe!==null&&(v=i(xe,v,ue),Se===null?F=xe:Se.sibling=xe,Se=xe);return be&&Qt(p,ue),F}for(X=l(X);!xe.done;ue++,xe=b.next())xe=A(X,p,ue,xe.value,D),xe!==null&&(e&&xe.alternate!==null&&X.delete(xe.key===null?ue:xe.key),v=i(xe,v,ue),Se===null?F=xe:Se.sibling=xe,Se=xe);return e&&X.forEach(function(og){return t(p,og)}),be&&Qt(p,ue),F}function Ee(p,v,b,D){if(typeof b=="object"&&b!==null&&b.type===Y&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Z:e:{for(var F=b.key;v!==null;){if(v.key===F){if(F=b.type,F===Y){if(v.tag===7){a(p,v.sibling),D=n(v,b.props.children),D.return=p,p=D;break e}}else if(v.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ye&&Ba(F)===v.type){a(p,v.sibling),D=n(v,b.props),sn(D,b),D.return=p,p=D;break e}a(p,v);break}else t(p,v);v=v.sibling}b.type===Y?(D=La(b.props.children,p.mode,D,b.key),D.return=p,p=D):(D=ci(b.type,b.key,b.props,null,p.mode,D),sn(D,b),D.return=p,p=D)}return r(p);case ae:e:{for(F=b.key;v!==null;){if(v.key===F)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){a(p,v.sibling),D=n(v,b.children||[]),D.return=p,p=D;break e}else{a(p,v);break}else t(p,v);v=v.sibling}D=Ws(b,p.mode,D),D.return=p,p=D}return r(p);case ye:return b=Ba(b),Ee(p,v,b,D)}if(oe(b))return J(p,v,b,D);if(Q(b)){if(F=Q(b),typeof F!="function")throw Error(o(150));return b=F.call(b),P(p,v,b,D)}if(typeof b.then=="function")return Ee(p,v,mi(b),D);if(b.$$typeof===ie)return Ee(p,v,oi(p,b),D);gi(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,v!==null&&v.tag===6?(a(p,v.sibling),D=n(v,b),D.return=p,p=D):(a(p,v),D=Ks(b,p.mode,D),D.return=p,p=D),r(p)):a(p,v)}return function(p,v,b,D){try{nn=0;var F=Ee(p,v,b,D);return vl=null,F}catch(X){if(X===gl||X===fi)throw X;var Se=gt(29,X,null,p.mode);return Se.lanes=D,Se.return=p,Se}}}var Qa=ho(!0),mo=ho(!1),oa=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uc(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 da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=si(e),Fr(e,null,a),t}return ii(e,l,t,a),si(e)}function cn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,nr(e,a)}}function rc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var r={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=r:i=i.next=r,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var oc=!1;function un(){if(oc){var e=ml;if(e!==null)throw e}}function rn(e,t,a,l){oc=!1;var n=e.updateQueue;oa=!1;var i=n.firstBaseUpdate,r=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var g=f,j=g.next;g.next=null,r===null?i=j:r.next=j,r=g;var T=e.alternate;T!==null&&(T=T.updateQueue,f=T.lastBaseUpdate,f!==r&&(f===null?T.firstBaseUpdate=j:f.next=j,T.lastBaseUpdate=g))}if(i!==null){var E=n.baseState;r=0,T=j=g=null,f=i;do{var x=f.lane&-536870913,A=x!==f.lane;if(A?(ve&x)===x:(l&x)===x){x!==0&&x===hl&&(oc=!0),T!==null&&(T=T.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var J=e,P=f;x=t;var Ee=a;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){E=J.call(Ee,E,x);break e}E=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,x=typeof J=="function"?J.call(Ee,E,x):J,x==null)break e;E=z({},E,x);break e;case 2:oa=!0}}x=f.callback,x!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[x]:A.push(x))}else A={lane:x,tag:f.tag,payload:f.payload,callback:f.callback,next:null},T===null?(j=T=A,g=E):T=T.next=A,r|=x;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;A=f,f=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);T===null&&(g=E),n.baseState=g,n.firstBaseUpdate=j,n.lastBaseUpdate=T,i===null&&(n.shared.lanes=0),pa|=r,e.lanes=r,e.memoizedState=E}}function go(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function vo(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)go(a[e],t)}var pl=h(null),vi=h(0);function po(e,t){e=ea,C(vi,e),C(pl,t),ea=e|t.baseLanes}function dc(){C(vi,ea),C(pl,pl.current)}function fc(){ea=vi.current,S(pl),S(vi)}var vt=h(null),zt=null;function ha(e){var t=e.alternate;C(qe,qe.current&1),C(vt,e),zt===null&&(t===null||pl.current!==null||t.memoizedState!==null)&&(zt=e)}function hc(e){C(qe,qe.current),C(vt,e),zt===null&&(zt=e)}function yo(e){e.tag===22?(C(qe,qe.current),C(vt,e),zt===null&&(zt=e)):ma()}function ma(){C(qe,qe.current),C(vt,vt.current)}function pt(e){S(vt),zt===e&&(zt=null),S(qe)}var qe=h(0);function pi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||bu(a)||ju(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 Xt=0,se=null,De=null,Qe=null,yi=!1,yl=!1,Ga=!1,bi=0,on=0,bl=null,e1=0;function Le(){throw Error(o(321))}function mc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!mt(e[a],t[a]))return!1;return!0}function gc(e,t,a,l,n,i){return Xt=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?td:Mc,Ga=!1,i=a(l,n),Ga=!1,yl&&(i=jo(t,a,l,n)),bo(e),i}function bo(e){_.H=hn;var t=De!==null&&De.next!==null;if(Xt=0,Qe=De=se=null,yi=!1,on=0,bl=null,t)throw Error(o(300));e===null||Ge||(e=e.dependencies,e!==null&&ri(e)&&(Ge=!0))}function jo(e,t,a,l){se=e;var n=0;do{if(yl&&(bl=null),on=0,yl=!1,25<=n)throw Error(o(301));if(n+=1,Qe=De=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}_.H=ad,i=t(a,l)}while(yl);return i}function t1(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?dn(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(se.flags|=1024),t}function vc(){var e=bi!==0;return bi=0,e}function pc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function yc(e){if(yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yi=!1}Xt=0,Qe=De=se=null,yl=!1,on=bi=0,bl=null}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?se.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Be(){if(De===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Qe===null?se.memoizedState:Qe.next;if(t!==null)Qe=t,De=e;else{if(e===null)throw se.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},Qe===null?se.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function ji(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dn(e){var t=on;return on+=1,bl===null&&(bl=[]),e=ro(bl,e,t),t=se,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?td:Mc),e}function Si(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dn(e);if(e.$$typeof===ie)return Ie(e)}throw Error(o(438,String(e)))}function bc(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ji(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ze;return t.index++,a}function Zt(e,t){return typeof t=="function"?t(e):t}function xi(e){var t=Be();return jc(t,De,e)}function jc(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var r=n.next;n.next=i.next,i.next=r}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var f=r=null,g=null,j=t,T=!1;do{var E=j.lane&-536870913;if(E!==j.lane?(ve&E)===E:(Xt&E)===E){var x=j.revertLane;if(x===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),E===hl&&(T=!0);else if((Xt&x)===x){j=j.next,x===hl&&(T=!0);continue}else E={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},g===null?(f=g=E,r=i):g=g.next=E,se.lanes|=x,pa|=x;E=j.action,Ga&&a(i,E),i=j.hasEagerState?j.eagerState:a(i,E)}else x={lane:E,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},g===null?(f=g=x,r=i):g=g.next=x,se.lanes|=E,pa|=E;j=j.next}while(j!==null&&j!==t);if(g===null?r=i:g.next=f,!mt(i,e.memoizedState)&&(Ge=!0,T&&(a=ml,a!==null)))throw a;e.memoizedState=i,e.baseState=r,e.baseQueue=g,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Sc(e){var t=Be(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var r=n=n.next;do i=e(i,r.action),r=r.next;while(r!==n);mt(i,t.memoizedState)||(Ge=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function So(e,t,a){var l=se,n=Be(),i=be;if(i){if(a===void 0)throw Error(o(407));a=a()}else a=t();var r=!mt((De||n).memoizedState,a);if(r&&(n.memoizedState=a,Ge=!0),n=n.queue,Ac(Ao.bind(null,l,n,e),[e]),n.getSnapshot!==t||r||Qe!==null&&Qe.memoizedState.tag&1){if(l.flags|=2048,jl(9,{destroy:void 0},No.bind(null,l,n,a,t),null),Ce===null)throw Error(o(349));i||(Xt&127)!==0||xo(l,t,a)}return a}function xo(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=ji(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function No(e,t,a,l){t.value=a,t.getSnapshot=l,_o(t)&&ko(e)}function Ao(e,t,a){return a(function(){_o(t)&&ko(e)})}function _o(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!mt(e,a)}catch{return!0}}function ko(e){var t=wa(e,2);t!==null&&ot(t,e,2)}function xc(e){var t=lt();if(typeof e=="function"){var a=e;if(e=a(),Ga){la(!0);try{a()}finally{la(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},t}function To(e,t,a,l){return e.baseState=a,jc(e,De,typeof l=="function"?l:Zt)}function a1(e,t,a,l,n){if(_i(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};_.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,zo(t,i)):(i.next=a.next,t.pending=a.next=i)}}function zo(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=_.T,r={};_.T=r;try{var f=a(n,l),g=_.S;g!==null&&g(r,f),Do(e,t,f)}catch(j){Nc(e,t,j)}finally{i!==null&&r.types!==null&&(i.types=r.types),_.T=i}}else try{i=a(n,l),Do(e,t,i)}catch(j){Nc(e,t,j)}}function Do(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Mo(e,t,l)},function(l){return Nc(e,t,l)}):Mo(e,t,a)}function Mo(e,t,a){t.status="fulfilled",t.value=a,Eo(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zo(e,a)))}function Nc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Eo(t),t=t.next;while(t!==l)}e.action=null}function Eo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Co(e,t){return t}function Uo(e,t){if(be){var a=Ce.formState;if(a!==null){e:{var l=se;if(be){if(Ue){t:{for(var n=Ue,i=Tt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Dt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ue=Dt(n.nextSibling),l=n.data==="F!";break e}}ua(l)}l=!1}l&&(t=a[0])}}return a=lt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:t},a.queue=l,a=Io.bind(null,se,l),l.dispatch=a,l=xc(!1),i=Dc.bind(null,se,!1,l.queue),l=lt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=a1.bind(null,se,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Oo(e){var t=Be();return wo(t,De,e)}function wo(e,t,a){if(t=jc(e,t,Co)[0],e=xi(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=dn(t)}catch(r){throw r===gl?fi:r}else l=t;t=Be();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(se.flags|=2048,jl(9,{destroy:void 0},l1.bind(null,n,a),null)),[l,i,e]}function l1(e,t){e.action=t}function Lo(e){var t=Be(),a=De;if(a!==null)return wo(t,a,e);Be(),t=t.memoizedState,a=Be();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function jl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=se.updateQueue,t===null&&(t=ji(),se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Ro(){return Be().memoizedState}function Ni(e,t,a,l){var n=lt();se.flags|=e,n.memoizedState=jl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ai(e,t,a,l){var n=Be();l=l===void 0?null:l;var i=n.memoizedState.inst;De!==null&&l!==null&&mc(l,De.memoizedState.deps)?n.memoizedState=jl(t,i,a,l):(se.flags|=e,n.memoizedState=jl(1|t,i,a,l))}function Ho(e,t){Ni(8390656,8,e,t)}function Ac(e,t){Ai(2048,8,e,t)}function n1(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=ji(),se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Vo(e){var t=Be().memoizedState;return n1({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function qo(e,t){return Ai(4,2,e,t)}function Bo(e,t){return Ai(4,4,e,t)}function Yo(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 Qo(e,t,a){a=a!=null?a.concat([e]):null,Ai(4,4,Yo.bind(null,t,e),a)}function _c(){}function Go(e,t){var a=Be();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&mc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Jo(e,t){var a=Be();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&mc(t,l[1]))return l[0];if(l=e(),Ga){la(!0);try{e()}finally{la(!1)}}return a.memoizedState=[l,t],l}function kc(e,t,a){return a===void 0||(Xt&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Xd(),se.lanes|=e,pa|=e,a)}function Xo(e,t,a,l){return mt(a,t)?a:pl.current!==null?(e=kc(e,a,l),mt(e,t)||(Ge=!0),e):(Xt&42)===0||(Xt&1073741824)!==0&&(ve&261930)===0?(Ge=!0,e.memoizedState=a):(e=Xd(),se.lanes|=e,pa|=e,t)}function Zo(e,t,a,l,n){var i=H.p;H.p=i!==0&&8>i?i:8;var r=_.T,f={};_.T=f,Dc(e,!1,t,a);try{var g=n(),j=_.S;if(j!==null&&j(f,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var T=Pm(g,l);fn(e,t,T,jt(e))}else fn(e,t,l,jt(e))}catch(E){fn(e,t,{then:function(){},status:"rejected",reason:E},jt())}finally{H.p=i,r!==null&&f.types!==null&&(r.types=f.types),_.T=r}}function i1(){}function Tc(e,t,a,l){if(e.tag!==5)throw Error(o(476));var n=Ko(e).queue;Zo(e,n,t,U,a===null?i1:function(){return Wo(e),a(l)})}function Ko(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:U},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wo(e){var t=Ko(e);t.next===null&&(t=e.alternate.memoizedState),fn(e,t.next.queue,{},jt())}function zc(){return Ie(Dn)}function Fo(){return Be().memoizedState}function $o(){return Be().memoizedState}function s1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=da(a);var l=fa(t,e,a);l!==null&&(ot(l,t,a),cn(l,t,a)),t={cache:lc()},e.payload=t;return}t=t.return}}function c1(e,t,a){var l=jt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(e)?Po(t,a):(a=Xs(e,t,a,l),a!==null&&(ot(a,e,l),ed(a,t,l)))}function Io(e,t,a){var l=jt();fn(e,t,a,l)}function fn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_i(e))Po(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,f=i(r,a);if(n.hasEagerState=!0,n.eagerState=f,mt(f,r))return ii(e,t,n,0),Ce===null&&ni(),!1}catch{}if(a=Xs(e,t,n,l),a!==null)return ot(a,e,l),ed(a,t,l),!0}return!1}function Dc(e,t,a,l){if(l={lane:2,revertLane:cu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(e)){if(t)throw Error(o(479))}else t=Xs(e,a,l,2),t!==null&&ot(t,e,2)}function _i(e){var t=e.alternate;return e===se||t!==null&&t===se}function Po(e,t){yl=yi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ed(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,nr(e,a)}}var hn={readContext:Ie,use:Si,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};hn.useEffectEvent=Le;var td={readContext:Ie,use:Si,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Ho,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ni(4194308,4,Yo.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var a=lt();t=t===void 0?null:t;var l=e();if(Ga){la(!0);try{e()}finally{la(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=lt();if(a!==void 0){var n=a(t);if(Ga){la(!0);try{a(t)}finally{la(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=c1.bind(null,se,e),[l.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=xc(e);var t=e.queue,a=Io.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:_c,useDeferredValue:function(e,t){var a=lt();return kc(a,e,t)},useTransition:function(){var e=xc(!1);return e=Zo.bind(null,se,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=se,n=lt();if(be){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ce===null)throw Error(o(349));(ve&127)!==0||xo(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,Ho(Ao.bind(null,l,i,e),[e]),l.flags|=2048,jl(9,{destroy:void 0},No.bind(null,l,i,a,t),null),a},useId:function(){var e=lt(),t=Ce.identifierPrefix;if(be){var a=Lt,l=wt;a=(l&~(1<<32-ht(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=bi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=e1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zc,useFormState:Uo,useActionState:Uo,useOptimistic:function(e){var t=lt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Dc.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:bc,useCacheRefresh:function(){return lt().memoizedState=s1.bind(null,se)},useEffectEvent:function(e){var t=lt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Mc={readContext:Ie,use:Si,useCallback:Go,useContext:Ie,useEffect:Ac,useImperativeHandle:Qo,useInsertionEffect:qo,useLayoutEffect:Bo,useMemo:Jo,useReducer:xi,useRef:Ro,useState:function(){return xi(Zt)},useDebugValue:_c,useDeferredValue:function(e,t){var a=Be();return Xo(a,De.memoizedState,e,t)},useTransition:function(){var e=xi(Zt)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:So,useId:Fo,useHostTransitionStatus:zc,useFormState:Oo,useActionState:Oo,useOptimistic:function(e,t){var a=Be();return To(a,De,e,t)},useMemoCache:bc,useCacheRefresh:$o};Mc.useEffectEvent=Vo;var ad={readContext:Ie,use:Si,useCallback:Go,useContext:Ie,useEffect:Ac,useImperativeHandle:Qo,useInsertionEffect:qo,useLayoutEffect:Bo,useMemo:Jo,useReducer:Sc,useRef:Ro,useState:function(){return Sc(Zt)},useDebugValue:_c,useDeferredValue:function(e,t){var a=Be();return De===null?kc(a,e,t):Xo(a,De.memoizedState,e,t)},useTransition:function(){var e=Sc(Zt)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:So,useId:Fo,useHostTransitionStatus:zc,useFormState:Lo,useActionState:Lo,useOptimistic:function(e,t){var a=Be();return De!==null?To(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:bc,useCacheRefresh:$o};ad.useEffectEvent=Vo;function Ec(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:z({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=jt(),n=da(l);n.payload=t,a!=null&&(n.callback=a),t=fa(e,n,l),t!==null&&(ot(t,e,l),cn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=jt(),n=da(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=fa(e,n,l),t!==null&&(ot(t,e,l),cn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),l=da(a);l.tag=2,t!=null&&(l.callback=t),t=fa(e,l,a),t!==null&&(ot(t,e,a),cn(t,e,a))}};function ld(e,t,a,l,n,i,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,r):t.prototype&&t.prototype.isPureReactComponent?!Il(a,l)||!Il(n,i):!0}function nd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Cc.enqueueReplaceState(t,t.state,null)}function Ja(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=z({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function id(e){li(e)}function sd(e){console.error(e)}function cd(e){li(e)}function ki(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function ud(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Uc(e,t,a){return a=da(a),a.tag=3,a.payload={element:null},a.callback=function(){ki(e,t)},a}function rd(e){return e=da(e),e.tag=3,e}function od(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){ud(t,a,l)}}var r=a.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){ud(t,a,l),typeof n!="function"&&(ya===null?ya=new Set([this]):ya.add(this));var f=l.stack;this.componentDidCatch(l.value,{componentStack:f!==null?f:""})})}function u1(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&fl(t,a,n,!0),a=vt.current,a!==null){switch(a.tag){case 31:case 13:return zt===null?Hi():a.alternate===null&&Re===0&&(Re=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),nu(e,l,n)),!1;case 22:return a.flags|=65536,l===hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),nu(e,l,n)),!1}throw Error(o(435,a.tag))}return nu(e,l,n),Hi(),!1}if(be)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Is&&(e=Error(o(422),{cause:l}),tn(At(e,a)))):(l!==Is&&(t=Error(o(423),{cause:l}),tn(At(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=At(l,a),n=Uc(e.stateNode,l,n),rc(e,n),Re!==4&&(Re=2)),!1;var i=Error(o(520),{cause:l});if(i=At(i,a),Sn===null?Sn=[i]:Sn.push(i),Re!==4&&(Re=2),t===null)return!0;l=At(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Uc(a.stateNode,l,e),rc(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ya===null||!ya.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=rd(n),od(n,e,a,l),rc(a,n),!1}a=a.return}while(a!==null);return!1}var Oc=Error(o(461)),Ge=!1;function Pe(e,t,a,l){t.child=e===null?mo(t,null,a,l):Qa(t,e.child,a,l)}function dd(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var r={};for(var f in l)f!=="ref"&&(r[f]=l[f])}else r=l;return Va(t),l=gc(e,t,a,r,i,n),f=vc(),e!==null&&!Ge?(pc(e,t,n),Kt(e,t,n)):(be&&f&&Fs(t),t.flags|=1,Pe(e,t,l,n),t.child)}function fd(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!Zs(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,hd(e,t,i,l,n)):(e=ci(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Yc(e,n)){var r=i.memoizedProps;if(a=a.compare,a=a!==null?a:Il,a(r,l)&&e.ref===t.ref)return Kt(e,t,n)}return t.flags|=1,e=Yt(i,l),e.ref=t.ref,e.return=t,t.child=e}function hd(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(Il(i,l)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=l=i,Yc(e,n))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,Kt(e,t,n)}return wc(e,t,a,l,n)}function md(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return gd(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&di(t,i!==null?i.cachePool:null),i!==null?po(t,i):dc(),yo(t);else return l=t.lanes=536870912,gd(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(di(t,i.cachePool),po(t,i),ma(),t.memoizedState=null):(e!==null&&di(t,null),dc(),ma());return Pe(e,t,n,a),t.child}function mn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gd(e,t,a,l,n){var i=ic();return i=i===null?null:{parent:Ye._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&di(t,null),dc(),yo(t),e!==null&&fl(e,t,l,!0),t.childLanes=n,null}function Ti(e,t){return t=Di({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 Qa(t,e.child,null,a),e=Ti(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function r1(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(l.mode==="hidden")return e=Ti(t,l),t.lanes=536870912,mn(null,e);if(hc(t),(e=Ue)?(e=Df(e,Tt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:wt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},a=Ir(e),a.return=t,t.child=a,$e=t,Ue=null)):e=null,e===null)throw ua(t);return t.lanes=536870912,null}return Ti(t,l)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(hc(t),n)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(Ge||fl(e,t,a,!1),n=(a&e.childLanes)!==0,Ge||n){if(l=Ce,l!==null&&(r=ir(l,a),r!==0&&r!==i.retryLane))throw i.retryLane=r,wa(e,r),ot(l,e,r),Oc;Hi(),t=vd(e,t,a)}else e=i.treeContext,Ue=Dt(r.nextSibling),$e=t,be=!0,ca=null,Tt=!1,e!==null&&to(t,e),t=Ti(t,l),t.flags|=4096;return t}return e=Yt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zi(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 wc(e,t,a,l,n){return Va(t),a=gc(e,t,a,l,void 0,n),l=vc(),e!==null&&!Ge?(pc(e,t,n),Kt(e,t,n)):(be&&l&&Fs(t),t.flags|=1,Pe(e,t,a,n),t.child)}function pd(e,t,a,l,n,i){return Va(t),t.updateQueue=null,a=jo(t,l,a,n),bo(e),l=vc(),e!==null&&!Ge?(pc(e,t,i),Kt(e,t,i)):(be&&l&&Fs(t),t.flags|=1,Pe(e,t,a,i),t.child)}function yd(e,t,a,l,n){if(Va(t),t.stateNode===null){var i=ul,r=a.contextType;typeof r=="object"&&r!==null&&(i=Ie(r)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Cc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},cc(t),r=a.contextType,i.context=typeof r=="object"&&r!==null?Ie(r):ul,i.state=t.memoizedState,r=a.getDerivedStateFromProps,typeof r=="function"&&(Ec(t,a,r,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&Cc.enqueueReplaceState(i,i.state,null),rn(t,l,i,n),un(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,g=Ja(a,f);i.props=g;var j=i.context,T=a.contextType;r=ul,typeof T=="object"&&T!==null&&(r=Ie(T));var E=a.getDerivedStateFromProps;T=typeof E=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,T||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||j!==r)&&nd(t,i,l,r),oa=!1;var x=t.memoizedState;i.state=x,rn(t,l,i,n),un(),j=t.memoizedState,f||x!==j||oa?(typeof E=="function"&&(Ec(t,a,E,l),j=t.memoizedState),(g=oa||ld(t,a,g,l,x,j,r))?(T||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=j),i.props=l,i.state=j,i.context=r,l=g):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,uc(e,t),r=t.memoizedProps,T=Ja(a,r),i.props=T,E=t.pendingProps,x=i.context,j=a.contextType,g=ul,typeof j=="object"&&j!==null&&(g=Ie(j)),f=a.getDerivedStateFromProps,(j=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==E||x!==g)&&nd(t,i,l,g),oa=!1,x=t.memoizedState,i.state=x,rn(t,l,i,n),un();var A=t.memoizedState;r!==E||x!==A||oa||e!==null&&e.dependencies!==null&&ri(e.dependencies)?(typeof f=="function"&&(Ec(t,a,f,l),A=t.memoizedState),(T=oa||ld(t,a,T,l,x,A,g)||e!==null&&e.dependencies!==null&&ri(e.dependencies))?(j||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,A,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,A,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=A),i.props=l,i.state=A,i.context=g,l=T):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,zi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Qa(t,e.child,null,n),t.child=Qa(t,null,a,n)):Pe(e,t,a,n),t.memoizedState=i.state,e=t.child):e=Kt(e,t,n),e}function bd(e,t,a,l){return Ra(),t.flags|=256,Pe(e,t,a,l),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(e){return{baseLanes:e,cachePool:co()}}function Hc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bt),e}function jd(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,r;if((r=i)||(r=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(n?ha(t):ma(),(e=Ue)?(e=Df(e,Tt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:wt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},a=Ir(e),a.return=t,t.child=a,$e=t,Ue=null)):e=null,e===null)throw ua(t);return ju(e)?t.lanes=32:t.lanes=536870912,null}var f=l.children;return l=l.fallback,n?(ma(),n=t.mode,f=Di({mode:"hidden",children:f},n),l=La(l,n,a,null),f.return=t,l.return=t,f.sibling=l,t.child=f,l=t.child,l.memoizedState=Rc(a),l.childLanes=Hc(e,r,a),t.memoizedState=Lc,mn(null,l)):(ha(t),Vc(t,f))}var g=e.memoizedState;if(g!==null&&(f=g.dehydrated,f!==null)){if(i)t.flags&256?(ha(t),t.flags&=-257,t=qc(e,t,a)):t.memoizedState!==null?(ma(),t.child=e.child,t.flags|=128,t=null):(ma(),f=l.fallback,n=t.mode,l=Di({mode:"visible",children:l.children},n),f=La(f,n,a,null),f.flags|=2,l.return=t,f.return=t,l.sibling=f,t.child=l,Qa(t,e.child,null,a),l=t.child,l.memoizedState=Rc(a),l.childLanes=Hc(e,r,a),t.memoizedState=Lc,t=mn(null,l));else if(ha(t),ju(f)){if(r=f.nextSibling&&f.nextSibling.dataset,r)var j=r.dgst;r=j,l=Error(o(419)),l.stack="",l.digest=r,tn({value:l,source:null,stack:null}),t=qc(e,t,a)}else if(Ge||fl(e,t,a,!1),r=(a&e.childLanes)!==0,Ge||r){if(r=Ce,r!==null&&(l=ir(r,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,wa(e,l),ot(r,e,l),Oc;bu(f)||Hi(),t=qc(e,t,a)}else bu(f)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Ue=Dt(f.nextSibling),$e=t,be=!0,ca=null,Tt=!1,e!==null&&to(t,e),t=Vc(t,l.children),t.flags|=4096);return t}return n?(ma(),f=l.fallback,n=t.mode,g=e.child,j=g.sibling,l=Yt(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,j!==null?f=Yt(j,f):(f=La(f,n,a,null),f.flags|=2),f.return=t,l.return=t,l.sibling=f,t.child=l,mn(null,l),l=t.child,f=e.child.memoizedState,f===null?f=Rc(a):(n=f.cachePool,n!==null?(g=Ye._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=co(),f={baseLanes:f.baseLanes|a,cachePool:n}),l.memoizedState=f,l.childLanes=Hc(e,r,a),t.memoizedState=Lc,mn(e.child,l)):(ha(t),a=e.child,e=a.sibling,a=Yt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a)}function Vc(e,t){return t=Di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Di(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function qc(e,t,a){return Qa(t,e.child,null,a),e=Vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),tc(e.return,t,a)}function Bc(e,t,a,l,n,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=a,r.tailMode=n,r.treeForkCount=i)}function xd(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var r=qe.current,f=(r&2)!==0;if(f?(r=r&1|2,t.flags|=128):r&=1,C(qe,r),Pe(e,t,l,a),l=be?en:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sd(e,a,t);else if(e.tag===19)Sd(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(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&pi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Bc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&pi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Bc(t,!0,a,null,i,l);break;case"together":Bc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Kt(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),pa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fl(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=Yt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Yt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Yc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ri(e)))}function o1(e,t,a){switch(t.tag){case 3:at(t,t.stateNode.containerInfo),ra(t,Ye,e.memoizedState.cache),Ra();break;case 27:case 5:Vl(t);break;case 4:at(t,t.stateNode.containerInfo);break;case 10:ra(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ha(t),t.flags|=128,null):(a&t.child.childLanes)!==0?jd(e,t,a):(ha(t),e=Kt(e,t,a),e!==null?e.sibling:null);ha(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(fl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return xd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),C(qe,qe.current),l)break;return null;case 22:return t.lanes=0,md(e,t,a,t.pendingProps);case 24:ra(t,Ye,e.memoizedState.cache)}return Kt(e,t,a)}function Nd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!Yc(e,a)&&(t.flags&128)===0)return Ge=!1,o1(e,t,a);Ge=(e.flags&131072)!==0}else Ge=!1,be&&(t.flags&1048576)!==0&&eo(t,en,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ba(t.elementType),t.type=e,typeof e=="function")Zs(e)?(l=Ja(e,l),t.tag=1,t=yd(null,t,e,l,a)):(t.tag=0,t=wc(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===re){t.tag=11,t=dd(null,t,e,l,a);break e}else if(n===M){t.tag=14,t=fd(null,t,e,l,a);break e}}throw t=I(e)||e,Error(o(306,t,""))}}return t;case 0:return wc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=Ja(l,t.pendingProps),yd(e,t,l,n,a);case 3:e:{if(at(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,uc(e,t),rn(t,l,null,a);var r=t.memoizedState;if(l=r.cache,ra(t,Ye,l),l!==i.cache&&ac(t,[Ye],a,!0),un(),l=r.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=bd(e,t,l,a);break e}else if(l!==n){n=At(Error(o(424)),t),tn(n),t=bd(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Dt(e.firstChild),$e=t,be=!0,ca=null,Tt=!0,a=mo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ra(),l===n){t=Kt(e,t,a);break e}Pe(e,t,l,a)}t=t.child}return t;case 26:return zi(e,t),e===null?(a=wf(t.type,null,t.pendingProps,null))?t.memoizedState=a:be||(a=t.type,e=t.pendingProps,l=Ji(ee.current).createElement(a),l[Fe]=t,l[nt]=e,et(l,a,e),Ke(l),t.stateNode=l):t.memoizedState=wf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vl(t),e===null&&be&&(l=t.stateNode=Cf(t.type,t.pendingProps,ee.current),$e=t,Tt=!0,n=Ue,xa(t.type)?(Su=n,Ue=Dt(l.firstChild)):Ue=n),Pe(e,t,t.pendingProps.children,a),zi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((n=l=Ue)&&(l=q1(l,t.type,t.pendingProps,Tt),l!==null?(t.stateNode=l,$e=t,Ue=Dt(l.firstChild),Tt=!1,n=!0):n=!1),n||ua(t)),Vl(t),n=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,l=i.children,vu(n,i)?l=null:r!==null&&vu(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=gc(e,t,t1,null,null,a),Dn._currentValue=n),zi(e,t),Pe(e,t,l,a),t.child;case 6:return e===null&&be&&((e=a=Ue)&&(a=B1(a,t.pendingProps,Tt),a!==null?(t.stateNode=a,$e=t,Ue=null,e=!0):e=!1),e||ua(t)),null;case 13:return jd(e,t,a);case 4:return at(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Qa(t,null,l,a):Pe(e,t,l,a),t.child;case 11:return dd(e,t,t.type,t.pendingProps,a);case 7:return Pe(e,t,t.pendingProps,a),t.child;case 8:return Pe(e,t,t.pendingProps.children,a),t.child;case 12:return Pe(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,ra(t,t.type,l.value),Pe(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Va(t),n=Ie(n),l=l(n),t.flags|=1,Pe(e,t,l,a),t.child;case 14:return fd(e,t,t.type,t.pendingProps,a);case 15:return hd(e,t,t.type,t.pendingProps,a);case 19:return xd(e,t,a);case 31:return r1(e,t,a);case 22:return md(e,t,a,t.pendingProps);case 24:return Va(t),l=Ie(Ye),e===null?(n=ic(),n===null&&(n=Ce,i=lc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},cc(t),ra(t,Ye,n)):((e.lanes&a)!==0&&(uc(e,t),rn(t,null,null,a),un()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ra(t,Ye,l)):(l=i.cache,ra(t,Ye,l),l!==n.cache&&ac(t,[Ye],a,!0))),Pe(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Wt(e){e.flags|=4}function Qc(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Fd())e.flags|=8192;else throw Ya=hi,sc}else e.flags&=-16777217}function Ad(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qf(t))if(Fd())e.flags|=8192;else throw Ya=hi,sc}function Mi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Al|=t)}function gn(e,t){if(!be)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function d1(e,t,a){var l=t.pendingProps;switch($s(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Jt(Ye),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(dl(t)?Wt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ps())),Oe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Wt(t),i!==null?(Oe(t),Ad(t,i)):(Oe(t),Qc(t,n,null,l,a))):i?i!==e.memoizedState?(Wt(t),Oe(t),Ad(t,i)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Wt(t),Oe(t),Qc(t,n,e,l,a)),null;case 27:if(Bn(t),a=ee.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wt(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=B.current,dl(t)?ao(t):(e=Cf(n,l,a),t.stateNode=e,Wt(t))}return Oe(t),null;case 5:if(Bn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Wt(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(i=B.current,dl(t))ao(t);else{var r=Ji(ee.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?r.createElement(n,{is:l.is}):r.createElement(n)}}i[Fe]=t,i[nt]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=i;e:switch(et(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Wt(t)}}return Oe(t),Qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Wt(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=ee.current,dl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=$e,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Sf(e.nodeValue,a)),e||ua(t,!0)}else e=Ji(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=dl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else Ra(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=dl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Fe]=t}else Ra(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Mi(t,t.updateQueue),Oe(t),null);case 4:return Ve(),e===null&&du(t.stateNode.containerInfo),Oe(t),null;case 10:return Jt(t.type),Oe(t),null;case 19:if(S(qe),l=t.memoizedState,l===null)return Oe(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)gn(l,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=pi(e),i!==null){for(t.flags|=128,gn(l,!1),e=i.updateQueue,t.updateQueue=e,Mi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)$r(a,e),a=a.sibling;return C(qe,qe.current&1|2),be&&Qt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&dt()>wi&&(t.flags|=128,n=!0,gn(l,!1),t.lanes=4194304)}else{if(!n)if(e=pi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mi(t,e),gn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!be)return Oe(t),null}else 2*dt()-l.renderingStartTime>wi&&a!==536870912&&(t.flags|=128,n=!0,gn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=dt(),e.sibling=null,a=qe.current,C(qe,n?a&1|2:a&1),be&&Qt(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return pt(t),fc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&Mi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&S(qa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jt(Ye),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function f1(e,t){switch($s(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jt(Ye),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Bn(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(o(340));Ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ra()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return S(qe),null;case 4:return Ve(),null;case 10:return Jt(t.type),null;case 22:case 23:return pt(t),fc(),e!==null&&S(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jt(Ye),null;case 25:return null;default:return null}}function _d(e,t){switch($s(t),t.tag){case 3:Jt(Ye),Ve();break;case 26:case 27:case 5:Bn(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:S(qe);break;case 10:Jt(t.type);break;case 22:case 23:pt(t),fc(),e!==null&&S(qa);break;case 24:Jt(Ye)}}function vn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,r=a.inst;l=i(),r.destroy=l}a=a.next}while(a!==n)}}catch(f){Te(t,t.return,f)}}function ga(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var r=l.inst,f=r.destroy;if(f!==void 0){r.destroy=void 0,n=t;var g=a,j=f;try{j()}catch(T){Te(n,g,T)}}}l=l.next}while(l!==i)}}catch(T){Te(t,t.return,T)}}function kd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{vo(t,a)}catch(l){Te(e,e.return,l)}}}function Td(e,t,a){a.props=Ja(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Te(e,t,l)}}function pn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){Te(e,t,n)}}function Rt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){Te(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){Te(e,t,n)}else a.current=null}function zd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){Te(e,e.return,n)}}function Gc(e,t,a){try{var l=e.stateNode;O1(l,e.type,a,t),l[nt]=t}catch(n){Te(e,e.return,n)}}function Dd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xa(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(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&&xa(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 Xc(e,t,a){var l=e.tag;if(l===5||l===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=qt));else if(l!==4&&(l===27&&xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,a),e=e.sibling;e!==null;)Xc(e,t,a),e=e.sibling}function Ei(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ei(e,t,a),e=e.sibling;e!==null;)Ei(e,t,a),e=e.sibling}function Md(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,l,a),t[Fe]=e,t[nt]=a}catch(i){Te(e,e.return,i)}}var Ft=!1,Je=!1,Zc=!1,Ed=typeof WeakSet=="function"?WeakSet:Set,We=null;function h1(e,t){if(e=e.containerInfo,mu=Ii,e=Yr(e),qs(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var r=0,f=-1,g=-1,j=0,T=0,E=e,x=null;t:for(;;){for(var A;E!==a||n!==0&&E.nodeType!==3||(f=r+n),E!==i||l!==0&&E.nodeType!==3||(g=r+l),E.nodeType===3&&(r+=E.nodeValue.length),(A=E.firstChild)!==null;)x=E,E=A;for(;;){if(E===e)break t;if(x===a&&++j===n&&(f=r),x===i&&++T===l&&(g=r),(A=E.nextSibling)!==null)break;E=x,x=E.parentNode}E=A}a=f===-1||g===-1?null:{start:f,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(gu={focusedElem:e,selectionRange:a},Ii=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,i=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++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var J=Ja(a.type,n);e=l.getSnapshotBeforeUpdate(J,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(P){Te(a,a.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)yu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yu(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,We=e;break}We=t.return}}function Cd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:It(e,a),l&4&&vn(5,a);break;case 1:if(It(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(r){Te(a,a.return,r)}else{var n=Ja(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Te(a,a.return,r)}}l&64&&kd(a),l&512&&pn(a,a.return);break;case 3:if(It(e,a),l&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{vo(e,t)}catch(r){Te(a,a.return,r)}}break;case 27:t===null&&l&4&&Md(a);case 26:case 5:It(e,a),t===null&&l&4&&zd(a),l&512&&pn(a,a.return);break;case 12:It(e,a);break;case 31:It(e,a),l&4&&wd(e,a);break;case 13:It(e,a),l&4&&Ld(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=x1.bind(null,a),Y1(e,a))));break;case 22:if(l=a.memoizedState!==null||Ft,!l){t=t!==null&&t.memoizedState!==null||Je,n=Ft;var i=Je;Ft=l,(Je=t)&&!i?Pt(e,a,(a.subtreeFlags&8772)!==0):It(e,a),Ft=n,Je=i}break;case 30:break;default:It(e,a)}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ns(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 we=null,st=!1;function $t(e,t,a){for(a=a.child;a!==null;)Od(e,t,a),a=a.sibling}function Od(e,t,a){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(ql,a)}catch{}switch(a.tag){case 26:Je||Rt(a,t),$t(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Je||Rt(a,t);var l=we,n=st;xa(a.type)&&(we=a.stateNode,st=!1),$t(e,t,a),kn(a.stateNode),we=l,st=n;break;case 5:Je||Rt(a,t);case 6:if(l=we,n=st,we=null,$t(e,t,a),we=l,st=n,we!==null)if(st)try{(we.nodeType===9?we.body:we.nodeName==="HTML"?we.ownerDocument.body:we).removeChild(a.stateNode)}catch(i){Te(a,t,i)}else try{we.removeChild(a.stateNode)}catch(i){Te(a,t,i)}break;case 18:we!==null&&(st?(e=we,Tf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Cl(e)):Tf(we,a.stateNode));break;case 4:l=we,n=st,we=a.stateNode.containerInfo,st=!0,$t(e,t,a),we=l,st=n;break;case 0:case 11:case 14:case 15:ga(2,a,t),Je||ga(4,a,t),$t(e,t,a);break;case 1:Je||(Rt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Td(a,t,l)),$t(e,t,a);break;case 21:$t(e,t,a);break;case 22:Je=(l=Je)||a.memoizedState!==null,$t(e,t,a),Je=l;break;default:$t(e,t,a)}}function wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(a){Te(t,t.return,a)}}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cl(e)}catch(a){Te(t,t.return,a)}}function m1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ed),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ed),t;default:throw Error(o(435,e.tag))}}function Ci(e,t){var a=m1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=N1.bind(null,e,l);l.then(n,n)}})}function ct(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,r=t,f=r;e:for(;f!==null;){switch(f.tag){case 27:if(xa(f.type)){we=f.stateNode,st=!1;break e}break;case 5:we=f.stateNode,st=!1;break e;case 3:case 4:we=f.stateNode.containerInfo,st=!0;break e}f=f.return}if(we===null)throw Error(o(160));Od(i,r,n),we=null,st=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rd(t,e),t=t.sibling}var Ut=null;function Rd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ct(t,e),ut(e),l&4&&(ga(3,e,e.return),vn(3,e),ga(5,e,e.return));break;case 1:ct(t,e),ut(e),l&512&&(Je||a===null||Rt(a,a.return)),l&64&&Ft&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Ut;if(ct(t,e),ut(e),l&512&&(Je||a===null||Rt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Ql]||i[Fe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),et(i,l,a),i[Fe]=e,Ke(i),l=i;break e;case"link":var r=Hf("link","href",n).get(l+(a.href||""));if(r){for(var f=0;f<r.length;f++)if(i=r[f],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(f,1);break t}}i=n.createElement(l),et(i,l,a),n.head.appendChild(i);break;case"meta":if(r=Hf("meta","content",n).get(l+(a.content||""))){for(f=0;f<r.length;f++)if(i=r[f],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(f,1);break t}}i=n.createElement(l),et(i,l,a),n.head.appendChild(i);break;default:throw Error(o(468,l))}i[Fe]=e,Ke(i),l=i}e.stateNode=l}else Vf(n,e.type,e.stateNode);else e.stateNode=Rf(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Vf(n,e.type,e.stateNode):Rf(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Gc(e,e.memoizedProps,a.memoizedProps)}break;case 27:ct(t,e),ut(e),l&512&&(Je||a===null||Rt(a,a.return)),a!==null&&l&4&&Gc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ct(t,e),ut(e),l&512&&(Je||a===null||Rt(a,a.return)),e.flags&32){n=e.stateNode;try{tl(n,"")}catch(J){Te(e,e.return,J)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,Gc(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Zc=!0);break;case 6:if(ct(t,e),ut(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Te(e,e.return,J)}}break;case 3:if(Ki=null,n=Ut,Ut=Xi(t.containerInfo),ct(t,e),Ut=n,ut(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(J){Te(e,e.return,J)}Zc&&(Zc=!1,Hd(e));break;case 4:l=Ut,Ut=Xi(e.stateNode.containerInfo),ct(t,e),ut(e),Ut=l;break;case 12:ct(t,e),ut(e);break;case 31:ct(t,e),ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 13:ct(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Oi=dt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 22:n=e.memoizedState!==null;var g=a!==null&&a.memoizedState!==null,j=Ft,T=Je;if(Ft=j||n,Je=T||g,ct(t,e),Je=T,Ft=j,ut(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||g||Ft||Je||Xa(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){g=a=t;try{if(i=g.stateNode,n)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{f=g.stateNode;var E=g.memoizedProps.style,x=E!=null&&E.hasOwnProperty("display")?E.display:null;f.style.display=x==null||typeof x=="boolean"?"":(""+x).trim()}}catch(J){Te(g,g.return,J)}}}else if(t.tag===6){if(a===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(J){Te(g,g.return,J)}}}else if(t.tag===18){if(a===null){g=t;try{var A=g.stateNode;n?zf(A,!0):zf(g.stateNode,!1)}catch(J){Te(g,g.return,J)}}}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}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ci(e,a))));break;case 19:ct(t,e),ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ci(e,l)));break;case 30:break;case 21:break;default:ct(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Dd(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var n=a.stateNode,i=Jc(e);Ei(e,i,n);break;case 5:var r=a.stateNode;a.flags&32&&(tl(r,""),a.flags&=-33);var f=Jc(e);Ei(e,f,r);break;case 3:case 4:var g=a.stateNode.containerInfo,j=Jc(e);Xc(e,j,g);break;default:throw Error(o(161))}}catch(T){Te(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function It(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function Xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ga(4,t,t.return),Xa(t);break;case 1:Rt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Td(t,t.return,a),Xa(t);break;case 27:kn(t.stateNode);case 26:case 5:Rt(t,t.return),Xa(t);break;case 22:t.memoizedState===null&&Xa(t);break;case 30:Xa(t);break;default:Xa(t)}e=e.sibling}}function Pt(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,r=i.flags;switch(i.tag){case 0:case 11:case 15:Pt(n,i,a),vn(4,i);break;case 1:if(Pt(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(j){Te(l,l.return,j)}if(l=i,n=l.updateQueue,n!==null){var f=l.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)go(g[n],f)}catch(j){Te(l,l.return,j)}}a&&r&64&&kd(i),pn(i,i.return);break;case 27:Md(i);case 26:case 5:Pt(n,i,a),a&&l===null&&r&4&&zd(i),pn(i,i.return);break;case 12:Pt(n,i,a);break;case 31:Pt(n,i,a),a&&r&4&&wd(n,i);break;case 13:Pt(n,i,a),a&&r&4&&Ld(n,i);break;case 22:i.memoizedState===null&&Pt(n,i,a),pn(i,i.return);break;case 30:break;default:Pt(n,i,a)}t=t.sibling}}function Kc(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&&an(a))}function Wc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e))}function Ot(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vd(e,t,a,l),t=t.sibling}function Vd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,a,l),n&2048&&vn(9,t);break;case 1:Ot(e,t,a,l);break;case 3:Ot(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e)));break;case 12:if(n&2048){Ot(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,f=i.onPostCommit;typeof f=="function"&&f(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){Te(t,t.return,g)}}else Ot(e,t,a,l);break;case 31:Ot(e,t,a,l);break;case 13:Ot(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?Ot(e,t,a,l):yn(e,t):i._visibility&2?Ot(e,t,a,l):(i._visibility|=2,Sl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(r,t);break;case 24:Ot(e,t,a,l),n&2048&&Wc(t.alternate,t);break;default:Ot(e,t,a,l)}}function Sl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,f=a,g=l,j=r.flags;switch(r.tag){case 0:case 11:case 15:Sl(i,r,f,g,n),vn(8,r);break;case 23:break;case 22:var T=r.stateNode;r.memoizedState!==null?T._visibility&2?Sl(i,r,f,g,n):yn(i,r):(T._visibility|=2,Sl(i,r,f,g,n)),n&&j&2048&&Kc(r.alternate,r);break;case 24:Sl(i,r,f,g,n),n&&j&2048&&Wc(r.alternate,r);break;default:Sl(i,r,f,g,n)}t=t.sibling}}function yn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:yn(a,l),n&2048&&Kc(l.alternate,l);break;case 24:yn(a,l),n&2048&&Wc(l.alternate,l);break;default:yn(a,l)}t=t.sibling}}var bn=8192;function xl(e,t,a){if(e.subtreeFlags&bn)for(e=e.child;e!==null;)qd(e,t,a),e=e.sibling}function qd(e,t,a){switch(e.tag){case 26:xl(e,t,a),e.flags&bn&&e.memoizedState!==null&&eg(a,Ut,e.memoizedState,e.memoizedProps);break;case 5:xl(e,t,a);break;case 3:case 4:var l=Ut;Ut=Xi(e.stateNode.containerInfo),xl(e,t,a),Ut=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=bn,bn=16777216,xl(e,t,a),bn=l):xl(e,t,a));break;default:xl(e,t,a)}}function Bd(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 jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];We=l,Qd(l,e)}Bd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 0:case 11:case 15:jn(e),e.flags&2048&&ga(9,e,e.return);break;case 3:jn(e);break;case 12:jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ui(e)):jn(e);break;default:jn(e)}}function Ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];We=l,Qd(l,e)}Bd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ga(8,t,t.return),Ui(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ui(t));break;default:Ui(t)}e=e.sibling}}function Qd(e,t){for(;We!==null;){var a=We;switch(a.tag){case 0:case 11:case 15:ga(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:an(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,We=l;else e:for(a=e;We!==null;){l=We;var n=l.sibling,i=l.return;if(Ud(l),l===a){We=null;break e}if(n!==null){n.return=i,We=n;break e}We=i}}}var g1={getCacheForType:function(e){var t=Ie(Ye),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ie(Ye).controller.signal}},v1=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ce=null,he=null,ve=0,ke=0,yt=null,va=!1,Nl=!1,Fc=!1,ea=0,Re=0,pa=0,Za=0,$c=0,bt=0,Al=0,Sn=null,rt=null,Ic=!1,Oi=0,Gd=0,wi=1/0,Li=null,ya=null,Ze=0,ba=null,_l=null,ta=0,Pc=0,eu=null,Jd=null,xn=0,tu=null;function jt(){return(Ne&2)!==0&&ve!==0?ve&-ve:_.T!==null?cu():sr()}function Xd(){if(bt===0)if((ve&536870912)===0||be){var e=Gn;Gn<<=1,(Gn&3932160)===0&&(Gn=262144),bt=e}else bt=536870912;return e=vt.current,e!==null&&(e.flags|=32),bt}function ot(e,t,a){(e===Ce&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(kl(e,0),ja(e,ve,bt,!1)),Yl(e,a),((Ne&2)===0||e!==Ce)&&(e===Ce&&((Ne&2)===0&&(Za|=a),Re===4&&ja(e,ve,bt,!1)),Ht(e))}function Zd(e,t,a){if((Ne&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Bl(e,t),n=l?b1(e,t):lu(e,t,!0),i=l;do{if(n===0){Nl&&!l&&ja(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!p1(a)){n=lu(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var f=e;n=Sn;var g=f.current.memoizedState.isDehydrated;if(g&&(kl(f,r).flags|=256),r=lu(f,r,!1),r!==2){if(Fc&&!g){f.errorRecoveryDisabledLanes|=i,Za|=i,n=4;break e}i=rt,rt=n,i!==null&&(rt===null?rt=i:rt.push.apply(rt,i))}n=r}if(i=!1,n!==2)continue}}if(n===1){kl(e,0),ja(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ja(l,t,bt,!va);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Oi+300-dt(),10<n)){if(ja(l,t,bt,!va),Xn(l,0,!0)!==0)break e;ta=t,l.timeoutHandle=_f(Kd.bind(null,l,a,rt,Li,Ic,t,bt,Za,Al,va,i,"Throttled",-0,0),n);break e}Kd(l,a,rt,Li,Ic,t,bt,Za,Al,va,i,null,-0,0)}}break}while(!0);Ht(e)}function Kd(e,t,a,l,n,i,r,f,g,j,T,E,x,A){if(e.timeoutHandle=-1,E=t.subtreeFlags,E&8192||(E&16785408)===16785408){E={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},qd(t,i,E);var J=(i&62914560)===i?Oi-dt():(i&4194048)===i?Gd-dt():0;if(J=tg(E,J),J!==null){ta=i,e.cancelPendingCommit=J(af.bind(null,e,t,i,a,l,n,r,f,g,T,E,null,x,A)),ja(e,i,r,!j);return}}af(e,t,i,a,l,n,r,f,g)}function p1(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 l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!mt(i(),n))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 ja(e,t,a,l){t&=~$c,t&=~Za,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-ht(n),r=1<<i;l[i]=-1,n&=~r}a!==0&&lr(e,a,t)}function Ri(){return(Ne&6)===0?(Nn(0),!1):!0}function au(){if(he!==null){if(ke===0)var e=he.return;else e=he,Gt=Ha=null,yc(e),vl=null,nn=0,e=he;for(;e!==null;)_d(e.alternate,e),e=e.return;he=null}}function kl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,R1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ta=0,au(),Ce=e,he=a=Yt(e.current,null),ve=t,ke=0,yt=null,va=!1,Nl=Bl(e,t),Fc=!1,Al=bt=$c=Za=pa=Re=0,rt=Sn=null,Ic=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-ht(l),i=1<<n;t|=e[n],l&=~i}return ea=t,ni(),a}function Wd(e,t){se=null,_.H=hn,t===gl||t===fi?(t=oo(),ke=3):t===sc?(t=oo(),ke=4):ke=t===Oc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,he===null&&(Re=1,ki(e,At(t,e.current)))}function Fd(){var e=vt.current;return e===null?!0:(ve&4194048)===ve?zt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===zt:!1}function $d(){var e=_.H;return _.H=hn,e===null?hn:e}function Id(){var e=_.A;return _.A=g1,e}function Hi(){Re=4,va||(ve&4194048)!==ve&&vt.current!==null||(Nl=!0),(pa&134217727)===0&&(Za&134217727)===0||Ce===null||ja(Ce,ve,bt,!1)}function lu(e,t,a){var l=Ne;Ne|=2;var n=$d(),i=Id();(Ce!==e||ve!==t)&&(Li=null,kl(e,t)),t=!1;var r=Re;e:do try{if(ke!==0&&he!==null){var f=he,g=yt;switch(ke){case 8:au(),r=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var j=ke;if(ke=0,yt=null,Tl(e,f,g,j),a&&Nl){r=0;break e}break;default:j=ke,ke=0,yt=null,Tl(e,f,g,j)}}y1(),r=Re;break}catch(T){Wd(e,T)}while(!0);return t&&e.shellSuspendCounter++,Gt=Ha=null,Ne=l,_.H=n,_.A=i,he===null&&(Ce=null,ve=0,ni()),r}function y1(){for(;he!==null;)Pd(he)}function b1(e,t){var a=Ne;Ne|=2;var l=$d(),n=Id();Ce!==e||ve!==t?(Li=null,wi=dt()+500,kl(e,t)):Nl=Bl(e,t);e:do try{if(ke!==0&&he!==null){t=he;var i=yt;t:switch(ke){case 1:ke=0,yt=null,Tl(e,t,i,1);break;case 2:case 9:if(uo(i)){ke=0,yt=null,ef(t);break}t=function(){ke!==2&&ke!==9||Ce!==e||(ke=7),Ht(e)},i.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:uo(i)?(ke=0,yt=null,ef(t)):(ke=0,yt=null,Tl(e,t,i,7));break;case 5:var r=null;switch(he.tag){case 26:r=he.memoizedState;case 5:case 27:var f=he;if(r?qf(r):f.stateNode.complete){ke=0,yt=null;var g=f.sibling;if(g!==null)he=g;else{var j=f.return;j!==null?(he=j,Vi(j)):he=null}break t}}ke=0,yt=null,Tl(e,t,i,5);break;case 6:ke=0,yt=null,Tl(e,t,i,6);break;case 8:au(),Re=6;break e;default:throw Error(o(462))}}j1();break}catch(T){Wd(e,T)}while(!0);return Gt=Ha=null,_.H=l,_.A=n,Ne=a,he!==null?0:(Ce=null,ve=0,ni(),Re)}function j1(){for(;he!==null&&!Qh();)Pd(he)}function Pd(e){var t=Nd(e.alternate,e,ea);e.memoizedProps=e.pendingProps,t===null?Vi(e):he=t}function ef(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pd(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=pd(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:yc(t);default:_d(a,t),t=he=$r(t,ea),t=Nd(a,t,ea)}e.memoizedProps=e.pendingProps,t===null?Vi(e):he=t}function Tl(e,t,a,l){Gt=Ha=null,yc(t),vl=null,nn=0;var n=t.return;try{if(u1(e,n,t,a,ve)){Re=1,ki(e,At(a,e.current)),he=null;return}}catch(i){if(n!==null)throw he=n,i;Re=1,ki(e,At(a,e.current)),he=null;return}t.flags&32768?(be||l===1?e=!0:Nl||(ve&536870912)!==0?e=!1:(va=e=!0,(l===2||l===9||l===3||l===6)&&(l=vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),tf(t,e)):Vi(t)}function Vi(e){var t=e;do{if((t.flags&32768)!==0){tf(t,va);return}e=t.return;var a=d1(t.alternate,t,ea);if(a!==null){he=a;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Re===0&&(Re=5)}function tf(e,t){do{var a=f1(e.alternate,e);if(a!==null){a.flags&=32767,he=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=a}while(e!==null);Re=6,he=null}function af(e,t,a,l,n,i,r,f,g){e.cancelPendingCommit=null;do qi();while(Ze!==0);if((Ne&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Js,Ph(e,a,i,r,f,g),e===Ce&&(he=Ce=null,ve=0),_l=t,ba=e,ta=a,Pc=i,eu=n,Jd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,A1(Yn,function(){return uf(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,n=H.p,H.p=2,r=Ne,Ne|=4;try{h1(e,t,a)}finally{Ne=r,H.p=n,_.T=l}}Ze=1,lf(),nf(),sf()}}function lf(){if(Ze===1){Ze=0;var e=ba,t=_l,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var l=H.p;H.p=2;var n=Ne;Ne|=4;try{Rd(t,e);var i=gu,r=Yr(e.containerInfo),f=i.focusedElem,g=i.selectionRange;if(r!==f&&f&&f.ownerDocument&&Br(f.ownerDocument.documentElement,f)){if(g!==null&&qs(f)){var j=g.start,T=g.end;if(T===void 0&&(T=j),"selectionStart"in f)f.selectionStart=j,f.selectionEnd=Math.min(T,f.value.length);else{var E=f.ownerDocument||document,x=E&&E.defaultView||window;if(x.getSelection){var A=x.getSelection(),J=f.textContent.length,P=Math.min(g.start,J),Ee=g.end===void 0?P:Math.min(g.end,J);!A.extend&&P>Ee&&(r=Ee,Ee=P,P=r);var p=qr(f,P),v=qr(f,Ee);if(p&&v&&(A.rangeCount!==1||A.anchorNode!==p.node||A.anchorOffset!==p.offset||A.focusNode!==v.node||A.focusOffset!==v.offset)){var b=E.createRange();b.setStart(p.node,p.offset),A.removeAllRanges(),P>Ee?(A.addRange(b),A.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),A.addRange(b))}}}}for(E=[],A=f;A=A.parentNode;)A.nodeType===1&&E.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<E.length;f++){var D=E[f];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ii=!!mu,gu=mu=null}finally{Ne=n,H.p=l,_.T=a}}e.current=t,Ze=2}}function nf(){if(Ze===2){Ze=0;var e=ba,t=_l,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var l=H.p;H.p=2;var n=Ne;Ne|=4;try{Cd(e,t.alternate,t)}finally{Ne=n,H.p=l,_.T=a}}Ze=3}}function sf(){if(Ze===4||Ze===3){Ze=0,Gh();var e=ba,t=_l,a=ta,l=Jd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,_l=ba=null,cf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ya=null),Ss(a),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(ql,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,n=H.p,H.p=2,_.T=null;try{for(var i=e.onRecoverableError,r=0;r<l.length;r++){var f=l[r];i(f.value,{componentStack:f.stack})}}finally{_.T=t,H.p=n}}(ta&3)!==0&&qi(),Ht(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===tu?xn++:(xn=0,tu=e):xn=0,Nn(0)}}function cf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,an(t)))}function qi(){return lf(),nf(),sf(),uf()}function uf(){if(Ze!==5)return!1;var e=ba,t=Pc;Pc=0;var a=Ss(ta),l=_.T,n=H.p;try{H.p=32>a?32:a,_.T=null,a=eu,eu=null;var i=ba,r=ta;if(Ze=0,_l=ba=null,ta=0,(Ne&6)!==0)throw Error(o(331));var f=Ne;if(Ne|=4,Yd(i.current),Vd(i,i.current,r,a),Ne=f,Nn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(ql,i)}catch{}return!0}finally{H.p=n,_.T=l,cf(e,t)}}function rf(e,t,a){t=At(a,t),t=Uc(e.stateNode,t,2),e=fa(e,t,2),e!==null&&(Yl(e,2),Ht(e))}function Te(e,t,a){if(e.tag===3)rf(e,e,a);else for(;t!==null;){if(t.tag===3){rf(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ya===null||!ya.has(l))){e=At(a,e),a=rd(2),l=fa(t,a,2),l!==null&&(od(a,l,t,e),Yl(l,2),Ht(l));break}}t=t.return}}function nu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new v1;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Fc=!0,n.add(a),e=S1.bind(null,e,t,a),t.then(e,e))}function S1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ce===e&&(ve&a)===a&&(Re===4||Re===3&&(ve&62914560)===ve&&300>dt()-Oi?(Ne&2)===0&&kl(e,0):$c|=a,Al===ve&&(Al=0)),Ht(e)}function of(e,t){t===0&&(t=ar()),e=wa(e,t),e!==null&&(Yl(e,t),Ht(e))}function x1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),of(e,a)}function N1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),of(e,a)}function A1(e,t){return ps(e,t)}var Bi=null,zl=null,iu=!1,Yi=!1,su=!1,Sa=0;function Ht(e){e!==zl&&e.next===null&&(zl===null?Bi=zl=e:zl=zl.next=e),Yi=!0,iu||(iu=!0,k1())}function Nn(e,t){if(!su&&Yi){su=!0;do for(var a=!1,l=Bi;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var r=l.suspendedLanes,f=l.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=n&~(r&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,mf(l,i))}else i=ve,i=Xn(l,l===Ce?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Bl(l,i)||(a=!0,mf(l,i));l=l.next}while(a);su=!1}}function _1(){df()}function df(){Yi=iu=!1;var e=0;Sa!==0&&L1()&&(e=Sa);for(var t=dt(),a=null,l=Bi;l!==null;){var n=l.next,i=ff(l,t);i===0?(l.next=null,a===null?Bi=n:a.next=n,n===null&&(zl=a)):(a=l,(e!==0||(i&3)!==0)&&(Yi=!0)),l=n}Ze!==0&&Ze!==5||Nn(e),Sa!==0&&(Sa=0)}function ff(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-ht(i),f=1<<r,g=n[r];g===-1?((f&a)===0||(f&l)!==0)&&(n[r]=Ih(f,t)):g<=t&&(e.expiredLanes|=f),i&=~f}if(t=Ce,a=ve,a=Xn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ys(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Bl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&ys(l),Ss(a)){case 2:case 8:a=er;break;case 32:a=Yn;break;case 268435456:a=tr;break;default:a=Yn}return l=hf.bind(null,e),a=ps(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&ys(l),e.callbackPriority=2,e.callbackNode=null,2}function hf(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qi()&&e.callbackNode!==a)return null;var l=ve;return l=Xn(e,e===Ce?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Zd(e,l,t),ff(e,dt()),e.callbackNode!=null&&e.callbackNode===a?hf.bind(null,e):null)}function mf(e,t){if(qi())return null;Zd(e,t,!0)}function k1(){H1(function(){(Ne&6)!==0?ps(Pu,_1):df()})}function cu(){if(Sa===0){var e=hl;e===0&&(e=Qn,Qn<<=1,(Qn&261888)===0&&(Qn=256)),Sa=e}return Sa}function gf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fn(""+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 T1(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=gf((n[nt]||null).action),r=l.submitter;r&&(t=(t=r[nt]||null)?gf(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var f=new ei("action","action",null,l,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Sa!==0){var g=r?vf(n,r):new FormData(n);Tc(a,{pending:!0,data:g,method:n.method,action:i},null,g)}}else typeof i=="function"&&(f.preventDefault(),g=r?vf(n,r):new FormData(n),Tc(a,{pending:!0,data:g,method:n.method,action:i},i,g))},currentTarget:n}]})}}for(var uu=0;uu<Gs.length;uu++){var ru=Gs[uu],z1=ru.toLowerCase(),D1=ru[0].toUpperCase()+ru.slice(1);Ct(z1,"on"+D1)}Ct(Jr,"onAnimationEnd"),Ct(Xr,"onAnimationIteration"),Ct(Zr,"onAnimationStart"),Ct("dblclick","onDoubleClick"),Ct("focusin","onFocus"),Ct("focusout","onBlur"),Ct(Jm,"onTransitionRun"),Ct(Xm,"onTransitionStart"),Ct(Zm,"onTransitionCancel"),Ct(Kr,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),M1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(An));function pf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var r=l.length-1;0<=r;r--){var f=l[r],g=f.instance,j=f.currentTarget;if(f=f.listener,g!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=j;try{i(n)}catch(T){li(T)}n.currentTarget=null,i=g}else for(r=0;r<l.length;r++){if(f=l[r],g=f.instance,j=f.currentTarget,f=f.listener,g!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=j;try{i(n)}catch(T){li(T)}n.currentTarget=null,i=g}}}}function me(e,t){var a=t[xs];a===void 0&&(a=t[xs]=new Set);var l=e+"__bubble";a.has(l)||(yf(t,e,2,!1),a.add(l))}function ou(e,t,a){var l=0;t&&(l|=4),yf(a,e,l,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function du(e){if(!e[Qi]){e[Qi]=!0,rr.forEach(function(a){a!=="selectionchange"&&(M1.has(a)||ou(a,!1,e),ou(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qi]||(t[Qi]=!0,ou("selectionchange",!1,t))}}function yf(e,t,a,l){switch(Zf(t)){case 2:var n=ng;break;case 8:n=ig;break;default:n=ku}a=n.bind(null,t,a,e),n=void 0,!Es||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function fu(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var f=l.stateNode.containerInfo;if(f===n)break;if(r===4)for(r=l.return;r!==null;){var g=r.tag;if((g===3||g===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;f!==null;){if(r=Fa(f),r===null)return;if(g=r.tag,g===5||g===6||g===26||g===27){l=i=r;continue e}f=f.parentNode}}l=l.return}Sr(function(){var j=i,T=Ds(a),E=[];e:{var x=Wr.get(e);if(x!==void 0){var A=ei,J=e;switch(e){case"keypress":if(In(a)===0)break e;case"keydown":case"keyup":A=Nm;break;case"focusin":J="focus",A=ws;break;case"focusout":J="blur",A=ws;break;case"beforeblur":case"afterblur":A=ws;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=Ar;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=dm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=km;break;case Jr:case Xr:case Zr:A=mm;break;case Kr:A=zm;break;case"scroll":case"scrollend":A=rm;break;case"wheel":A=Mm;break;case"copy":case"cut":case"paste":A=vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=kr;break;case"toggle":case"beforetoggle":A=Cm}var P=(t&4)!==0,Ee=!P&&(e==="scroll"||e==="scrollend"),p=P?x!==null?x+"Capture":null:x;P=[];for(var v=j,b;v!==null;){var D=v;if(b=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||b===null||p===null||(D=Jl(v,p),D!=null&&P.push(_n(v,D,b))),Ee)break;v=v.return}0<P.length&&(x=new A(x,J,null,a,T),E.push({event:x,listeners:P}))}}if((t&7)===0){e:{if(x=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",x&&a!==zs&&(J=a.relatedTarget||a.fromElement)&&(Fa(J)||J[Wa]))break e;if((A||x)&&(x=T.window===T?T:(x=T.ownerDocument)?x.defaultView||x.parentWindow:window,A?(J=a.relatedTarget||a.toElement,A=j,J=J?Fa(J):null,J!==null&&(Ee=y(J),P=J.tag,J!==Ee||P!==5&&P!==27&&P!==6)&&(J=null)):(A=null,J=j),A!==J)){if(P=Ar,D="onMouseLeave",p="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(P=kr,D="onPointerLeave",p="onPointerEnter",v="pointer"),Ee=A==null?x:Gl(A),b=J==null?x:Gl(J),x=new P(D,v+"leave",A,a,T),x.target=Ee,x.relatedTarget=b,D=null,Fa(T)===j&&(P=new P(p,v+"enter",J,a,T),P.target=b,P.relatedTarget=Ee,D=P),Ee=D,A&&J)t:{for(P=E1,p=A,v=J,b=0,D=p;D;D=P(D))b++;D=0;for(var F=v;F;F=P(F))D++;for(;0<b-D;)p=P(p),b--;for(;0<D-b;)v=P(v),D--;for(;b--;){if(p===v||v!==null&&p===v.alternate){P=p;break t}p=P(p),v=P(v)}P=null}else P=null;A!==null&&bf(E,x,A,P,!1),J!==null&&Ee!==null&&bf(E,Ee,J,P,!0)}}e:{if(x=j?Gl(j):window,A=x.nodeName&&x.nodeName.toLowerCase(),A==="select"||A==="input"&&x.type==="file")var Se=Or;else if(Cr(x))if(wr)Se=Ym;else{Se=qm;var X=Vm}else A=x.nodeName,!A||A.toLowerCase()!=="input"||x.type!=="checkbox"&&x.type!=="radio"?j&&Ts(j.elementType)&&(Se=Or):Se=Bm;if(Se&&(Se=Se(e,j))){Ur(E,Se,a,T);break e}X&&X(e,x,j),e==="focusout"&&j&&x.type==="number"&&j.memoizedProps.value!=null&&ks(x,"number",x.value)}switch(X=j?Gl(j):window,e){case"focusin":(Cr(X)||X.contentEditable==="true")&&(il=X,Bs=j,Pl=null);break;case"focusout":Pl=Bs=il=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,Qr(E,a,T);break;case"selectionchange":if(Gm)break;case"keydown":case"keyup":Qr(E,a,T)}var ue;if(Rs)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else nl?Mr(e,a)&&(pe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(pe="onCompositionStart");pe&&(Tr&&a.locale!=="ko"&&(nl||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&nl&&(ue=xr()):(ia=T,Cs="value"in ia?ia.value:ia.textContent,nl=!0)),X=Gi(j,pe),0<X.length&&(pe=new _r(pe,e,null,a,T),E.push({event:pe,listeners:X}),ue?pe.data=ue:(ue=Er(a),ue!==null&&(pe.data=ue)))),(ue=Om?wm(e,a):Lm(e,a))&&(pe=Gi(j,"onBeforeInput"),0<pe.length&&(X=new _r("onBeforeInput","beforeinput",null,a,T),E.push({event:X,listeners:pe}),X.data=ue)),T1(E,e,j,a,T)}pf(E,t)})}function _n(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Gi(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Jl(e,a),n!=null&&l.unshift(_n(e,n,i)),n=Jl(e,t),n!=null&&l.push(_n(e,n,i))),e.tag===3)return l;e=e.return}return[]}function E1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bf(e,t,a,l,n){for(var i=t._reactName,r=[];a!==null&&a!==l;){var f=a,g=f.alternate,j=f.stateNode;if(f=f.tag,g!==null&&g===l)break;f!==5&&f!==26&&f!==27||j===null||(g=j,n?(j=Jl(a,i),j!=null&&r.unshift(_n(a,j,g))):n||(j=Jl(a,i),j!=null&&r.push(_n(a,j,g)))),a=a.return}r.length!==0&&e.push({event:t,listeners:r})}var C1=/\r\n?/g,U1=/\u0000|\uFFFD/g;function jf(e){return(typeof e=="string"?e:""+e).replace(C1,`
`).replace(U1,"")}function Sf(e,t){return t=jf(t),jf(e)===t}function Me(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||tl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&tl(e,""+l);break;case"className":Kn(e,"class",l);break;case"tabIndex":Kn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,a,l);break;case"style":br(e,l,i);break;case"data":if(t!=="object"){Kn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fn(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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 i=="function"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",n.name,n,null),Me(e,t,"formEncType",n.formEncType,n,null),Me(e,t,"formMethod",n.formMethod,n,null),Me(e,t,"formTarget",n.formTarget,n,null)):(Me(e,t,"encType",n.encType,n,null),Me(e,t,"method",n.method,n,null),Me(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Fn(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=qt);break;case"onScroll":l!=null&&me("scroll",e);break;case"onScrollEnd":l!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Fn(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":me("beforetoggle",e),me("toggle",e),Zn(e,"popover",l);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zn(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=cm.get(a)||a,Zn(e,a,l))}}function hu(e,t,a,l,n,i){switch(a){case"style":br(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?tl(e,l):(typeof l=="number"||typeof l=="bigint")&&tl(e,""+l);break;case"onScroll":l!=null&&me("scroll",e);break;case"onScrollEnd":l!=null&&me("scrollend",e);break;case"onClick":l!=null&&(e.onclick=qt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!or.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[nt]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Zn(e,a,l)}}}function et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var r=a[i];if(r!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,i,r,a,null)}}n&&Me(e,t,"srcSet",a.srcSet,a,null),l&&Me(e,t,"src",a.src,a,null);return;case"input":me("invalid",e);var f=i=r=n=null,g=null,j=null;for(l in a)if(a.hasOwnProperty(l)){var T=a[l];if(T!=null)switch(l){case"name":n=T;break;case"type":r=T;break;case"checked":g=T;break;case"defaultChecked":j=T;break;case"value":i=T;break;case"defaultValue":f=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:Me(e,t,l,T,a,null)}}gr(e,i,f,g,j,r,n,!1);return;case"select":me("invalid",e),l=r=i=null;for(n in a)if(a.hasOwnProperty(n)&&(f=a[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":r=f;break;case"multiple":l=f;default:Me(e,t,n,f,a,null)}t=i,a=r,e.multiple=!!l,t!=null?el(e,!!l,t,!1):a!=null&&el(e,!!l,a,!0);return;case"textarea":me("invalid",e),i=n=l=null;for(r in a)if(a.hasOwnProperty(r)&&(f=a[r],f!=null))switch(r){case"value":l=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:Me(e,t,r,f,a,null)}pr(e,l,n,i);return;case"option":for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null)&&(g==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Me(e,t,g,l,a,null));return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(l=0;l<An.length;l++)me(An[l],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("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(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,j,l,a,null)}return;default:if(Ts(t)){for(T in a)a.hasOwnProperty(T)&&(l=a[T],l!==void 0&&hu(e,t,T,l,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(l=a[f],l!=null&&Me(e,t,f,l,a,null))}function O1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,r=null,f=null,g=null,j=null,T=null;for(A in a){var E=a[A];if(a.hasOwnProperty(A)&&E!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":g=E;default:l.hasOwnProperty(A)||Me(e,t,A,null,l,E)}}for(var x in l){var A=l[x];if(E=a[x],l.hasOwnProperty(x)&&(A!=null||E!=null))switch(x){case"type":i=A;break;case"name":n=A;break;case"checked":j=A;break;case"defaultChecked":T=A;break;case"value":r=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==E&&Me(e,t,x,A,l,E)}}_s(e,r,f,g,j,T,i,n);return;case"select":A=r=f=x=null;for(i in a)if(g=a[i],a.hasOwnProperty(i)&&g!=null)switch(i){case"value":break;case"multiple":A=g;default:l.hasOwnProperty(i)||Me(e,t,i,null,l,g)}for(n in l)if(i=l[n],g=a[n],l.hasOwnProperty(n)&&(i!=null||g!=null))switch(n){case"value":x=i;break;case"defaultValue":f=i;break;case"multiple":r=i;default:i!==g&&Me(e,t,n,i,l,g)}t=f,a=r,l=A,x!=null?el(e,!!a,x,!1):!!l!=!!a&&(t!=null?el(e,!!a,t,!0):el(e,!!a,a?[]:"",!1));return;case"textarea":A=x=null;for(f in a)if(n=a[f],a.hasOwnProperty(f)&&n!=null&&!l.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Me(e,t,f,null,l,n)}for(r in l)if(n=l[r],i=a[r],l.hasOwnProperty(r)&&(n!=null||i!=null))switch(r){case"value":x=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Me(e,t,r,n,l,i)}vr(e,x,A);return;case"option":for(var J in a)x=a[J],a.hasOwnProperty(J)&&x!=null&&!l.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Me(e,t,J,null,l,x));for(g in l)x=l[g],A=a[g],l.hasOwnProperty(g)&&x!==A&&(x!=null||A!=null)&&(g==="selected"?e.selected=x&&typeof x!="function"&&typeof x!="symbol":Me(e,t,g,x,l,A));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in a)x=a[P],a.hasOwnProperty(P)&&x!=null&&!l.hasOwnProperty(P)&&Me(e,t,P,null,l,x);for(j in l)if(x=l[j],A=a[j],l.hasOwnProperty(j)&&x!==A&&(x!=null||A!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(137,t));break;default:Me(e,t,j,x,l,A)}return;default:if(Ts(t)){for(var Ee in a)x=a[Ee],a.hasOwnProperty(Ee)&&x!==void 0&&!l.hasOwnProperty(Ee)&&hu(e,t,Ee,void 0,l,x);for(T in l)x=l[T],A=a[T],!l.hasOwnProperty(T)||x===A||x===void 0&&A===void 0||hu(e,t,T,x,l,A);return}}for(var p in a)x=a[p],a.hasOwnProperty(p)&&x!=null&&!l.hasOwnProperty(p)&&Me(e,t,p,null,l,x);for(E in l)x=l[E],A=a[E],!l.hasOwnProperty(E)||x===A||x==null&&A==null||Me(e,t,E,x,l,A)}function xf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,r=n.initiatorType,f=n.duration;if(i&&f&&xf(r)){for(r=0,f=n.responseEnd,l+=1;l<a.length;l++){var g=a[l],j=g.startTime;if(j>f)break;var T=g.transferSize,E=g.initiatorType;T&&xf(E)&&(g=g.responseEnd,r+=T*(g<f?1:(f-j)/(g-j)))}if(--l,t+=8*(i+r)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mu=null,gu=null;function Ji(e){return e.nodeType===9?e:e.ownerDocument}function Nf(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 Af(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 vu(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 pu=null;function L1(){var e=window.event;return e&&e.type==="popstate"?e===pu?!1:(pu=e,!0):(pu=null,!1)}var _f=typeof setTimeout=="function"?setTimeout:void 0,R1=typeof clearTimeout=="function"?clearTimeout:void 0,kf=typeof Promise=="function"?Promise:void 0,H1=typeof queueMicrotask=="function"?queueMicrotask:typeof kf<"u"?function(e){return kf.resolve(null).then(e).catch(V1)}:_f;function V1(e){setTimeout(function(){throw e})}function xa(e){return e==="head"}function Tf(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Cl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")kn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,kn(a);for(var i=a.firstChild;i;){var r=i.nextSibling,f=i.nodeName;i[Ql]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=r}}else a==="body"&&kn(e.ownerDocument.body);a=n}while(a);Cl(t)}function zf(e,t){var a=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function yu(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":yu(a),Ns(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function q1(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ql])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Dt(e.nextSibling),e===null)break}return null}function B1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dt(e.nextSibling),e===null))return null;return e}function Df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Dt(e.nextSibling),e===null))return null;return e}function bu(e){return e.data==="$?"||e.data==="$~"}function ju(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Y1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Dt(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 Su=null;function Mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Dt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ef(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 Cf(e,t,a){switch(t=Ji(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 kn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ns(e)}var Mt=new Map,Uf=new Set;function Xi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var aa=H.d;H.d={f:Q1,r:G1,D:J1,C:X1,L:Z1,m:K1,X:F1,S:W1,M:$1};function Q1(){var e=aa.f(),t=Ri();return e||t}function G1(e){var t=$a(e);t!==null&&t.tag===5&&t.type==="form"?Wo(t):aa.r(e)}var Dl=typeof document>"u"?null:document;function Of(e,t,a){var l=Dl;if(l&&typeof t=="string"&&t){var n=xt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Uf.has(n)||(Uf.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),et(t,"link",e),Ke(t),l.head.appendChild(t)))}}function J1(e){aa.D(e),Of("dns-prefetch",e,null)}function X1(e,t){aa.C(e,t),Of("preconnect",e,t)}function Z1(e,t,a){aa.L(e,t,a);var l=Dl;if(l&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+xt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+xt(a.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var i=n;switch(t){case"style":i=Ml(e);break;case"script":i=El(e)}Mt.has(i)||(e=z({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Mt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Tn(i))||t==="script"&&l.querySelector(zn(i))||(t=l.createElement("link"),et(t,"link",e),Ke(t),l.head.appendChild(t)))}}function K1(e,t){aa.m(e,t);var a=Dl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(l)+'"][href="'+xt(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=El(e)}if(!Mt.has(i)&&(e=z({rel:"modulepreload",href:e},t),Mt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(zn(i)))return}l=a.createElement("link"),et(l,"link",e),Ke(l),a.head.appendChild(l)}}}function W1(e,t,a){aa.S(e,t,a);var l=Dl;if(l&&e){var n=Ia(l).hoistableStyles,i=Ml(e);t=t||"default";var r=n.get(i);if(!r){var f={loading:0,preload:null};if(r=l.querySelector(Tn(i)))f.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Mt.get(i))&&xu(e,a);var g=r=l.createElement("link");Ke(g),et(g,"link",e),g._p=new Promise(function(j,T){g.onload=j,g.onerror=T}),g.addEventListener("load",function(){f.loading|=1}),g.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Zi(r,t,l)}r={type:"stylesheet",instance:r,count:1,state:f},n.set(i,r)}}}function F1(e,t){aa.X(e,t);var a=Dl;if(a&&e){var l=Ia(a).hoistableScripts,n=El(e),i=l.get(n);i||(i=a.querySelector(zn(n)),i||(e=z({src:e,async:!0},t),(t=Mt.get(n))&&Nu(e,t),i=a.createElement("script"),Ke(i),et(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function $1(e,t){aa.M(e,t);var a=Dl;if(a&&e){var l=Ia(a).hoistableScripts,n=El(e),i=l.get(n);i||(i=a.querySelector(zn(n)),i||(e=z({src:e,async:!0,type:"module"},t),(t=Mt.get(n))&&Nu(e,t),i=a.createElement("script"),Ke(i),et(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function wf(e,t,a,l){var n=(n=ee.current)?Xi(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ml(a.href),a=Ia(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ml(a.href);var i=Ia(n).hoistableStyles,r=i.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=n.querySelector(Tn(e)))&&!i._p&&(r.instance=i,r.state.loading=5),Mt.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},Mt.set(e,a),i||I1(n,e,a,r.state))),t&&l===null)throw Error(o(528,""));return r}if(t&&l!==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=El(a),a=Ia(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ml(e){return'href="'+xt(e)+'"'}function Tn(e){return'link[rel="stylesheet"]['+e+"]"}function Lf(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function I1(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),et(t,"link",a),Ke(t),e.head.appendChild(t))}function El(e){return'[src="'+xt(e)+'"]'}function zn(e){return"script[async]"+e}function Rf(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+xt(a.href)+'"]');if(l)return t.instance=l,Ke(l),l;var n=z({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ke(l),et(l,"style",n),Zi(l,a.precedence,e),t.instance=l;case"stylesheet":n=Ml(a.href);var i=e.querySelector(Tn(n));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;l=Lf(a),(n=Mt.get(n))&&xu(l,n),i=(e.ownerDocument||e).createElement("link"),Ke(i);var r=i;return r._p=new Promise(function(f,g){r.onload=f,r.onerror=g}),et(i,"link",l),t.state.loading|=4,Zi(i,a.precedence,e),t.instance=i;case"script":return i=El(a.src),(n=e.querySelector(zn(i)))?(t.instance=n,Ke(n),n):(l=a,(n=Mt.get(i))&&(l=z({},a),Nu(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ke(n),et(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Zi(l,a.precedence,e));return t.instance}function Zi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,r=0;r<l.length;r++){var f=l[r];if(f.dataset.precedence===t)i=f;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ki=null;function Hf(e,t,a){if(Ki===null){var l=new Map,n=Ki=new Map;n.set(a,l)}else n=Ki,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[Ql]||i[Fe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var f=l.get(r);f?f.push(i):l.set(r,[i])}}return l}function Vf(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function P1(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 qf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function eg(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Ml(l.href),i=t.querySelector(Tn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ke(i);return}i=t.ownerDocument||t,l=Lf(l),(n=Mt.get(n))&&xu(l,n),i=i.createElement("link"),Ke(i);var r=i;r._p=new Promise(function(f,g){r.onload=f,r.onerror=g}),et(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Wi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Au=0;function tg(e,t){return e.stylesheets&&e.count===0&&$i(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&$i(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Au===0&&(Au=62500*w1());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$i(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Au?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function Wi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$i(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fi=null;function $i(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fi=new Map,t.forEach(ag,e),Fi=null,Wi.call(e))}function ag(e,t){if(!(t.state.loading&4)){var a=Fi.get(e);if(a)var l=a.get(null);else{a=new Map,Fi.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var r=n[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(a.set(r.dataset.precedence,r),l=r)}l&&a.set(null,l)}n=t.instance,r=n.getAttribute("data-precedence"),i=a.get(r)||l,i===l&&a.set(null,n),a.set(r,n),this.count++,l=Wi.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Dn={$$typeof:ie,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function lg(e,t,a,l,n,i,r,f,g){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=bs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bs(0),this.hiddenUpdates=bs(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Bf(e,t,a,l,n,i,r,f,g,j,T,E){return e=new lg(e,t,a,r,g,j,T,E,f),t=1,i===!0&&(t|=24),i=gt(3,null,null,t),e.current=i,i.stateNode=e,t=lc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},cc(i),e}function Yf(e){return e?(e=ul,e):ul}function Qf(e,t,a,l,n,i){n=Yf(n),l.context===null?l.context=n:l.pendingContext=n,l=da(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=fa(e,l,t),a!==null&&(ot(a,e,t),cn(a,e,t))}function Gf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function _u(e,t){Gf(e,t),(e=e.alternate)&&Gf(e,t)}function Jf(e){if(e.tag===13||e.tag===31){var t=wa(e,67108864);t!==null&&ot(t,e,67108864),_u(e,67108864)}}function Xf(e){if(e.tag===13||e.tag===31){var t=jt();t=js(t);var a=wa(e,t);a!==null&&ot(a,e,t),_u(e,t)}}var Ii=!0;function ng(e,t,a,l){var n=_.T;_.T=null;var i=H.p;try{H.p=2,ku(e,t,a,l)}finally{H.p=i,_.T=n}}function ig(e,t,a,l){var n=_.T;_.T=null;var i=H.p;try{H.p=8,ku(e,t,a,l)}finally{H.p=i,_.T=n}}function ku(e,t,a,l){if(Ii){var n=Tu(l);if(n===null)fu(e,t,l,Pi,a),Kf(e,l);else if(cg(n,e,t,a,l))l.stopPropagation();else if(Kf(e,l),t&4&&-1<sg.indexOf(e)){for(;n!==null;){var i=$a(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Ma(i.pendingLanes);if(r!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;r;){var g=1<<31-ht(r);f.entanglements[1]|=g,r&=~g}Ht(i),(Ne&6)===0&&(wi=dt()+500,Nn(0))}}break;case 31:case 13:f=wa(i,2),f!==null&&ot(f,i,2),Ri(),_u(i,2)}if(i=Tu(l),i===null&&fu(e,t,l,Pi,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else fu(e,t,l,null,a)}}function Tu(e){return e=Ds(e),zu(e)}var Pi=null;function zu(e){if(Pi=null,e=Fa(e),e!==null){var t=y(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=O(t),e!==null)return e;e=null}else if(a===31){if(e=G(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 Pi=e,null}function Zf(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(Jh()){case Pu:return 2;case er:return 8;case Yn:case Xh:return 32;case tr:return 268435456;default:return 32}default:return 32}}var Du=!1,Na=null,Aa=null,_a=null,Mn=new Map,En=new Map,ka=[],sg="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 Kf(e,t){switch(e){case"focusin":case"focusout":Na=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":_a=null;break;case"pointerover":case"pointerout":Mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":En.delete(t.pointerId)}}function Cn(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=$a(t),t!==null&&Jf(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function cg(e,t,a,l,n){switch(t){case"focusin":return Na=Cn(Na,e,t,a,l,n),!0;case"dragenter":return Aa=Cn(Aa,e,t,a,l,n),!0;case"mouseover":return _a=Cn(_a,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return Mn.set(i,Cn(Mn.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,En.set(i,Cn(En.get(i)||null,e,t,a,l,n)),!0}return!1}function Wf(e){var t=Fa(e.target);if(t!==null){var a=y(t);if(a!==null){if(t=a.tag,t===13){if(t=O(a),t!==null){e.blockedOn=t,cr(e.priority,function(){Xf(a)});return}}else if(t===31){if(t=G(a),t!==null){e.blockedOn=t,cr(e.priority,function(){Xf(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 es(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Tu(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);zs=l,a.target.dispatchEvent(l),zs=null}else return t=$a(a),t!==null&&Jf(t),e.blockedOn=a,!1;t.shift()}return!0}function Ff(e,t,a){es(e)&&a.delete(t)}function ug(){Du=!1,Na!==null&&es(Na)&&(Na=null),Aa!==null&&es(Aa)&&(Aa=null),_a!==null&&es(_a)&&(_a=null),Mn.forEach(Ff),En.forEach(Ff)}function ts(e,t){e.blockedOn===t&&(e.blockedOn=null,Du||(Du=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,ug)))}var as=null;function $f(e){as!==e&&(as=e,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){as===e&&(as=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(zu(l||a)===null)continue;break}var i=$a(a);i!==null&&(e.splice(t,3),t-=3,Tc(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Cl(e){function t(g){return ts(g,e)}Na!==null&&ts(Na,e),Aa!==null&&ts(Aa,e),_a!==null&&ts(_a,e),Mn.forEach(t),En.forEach(t);for(var a=0;a<ka.length;a++){var l=ka[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ka.length&&(a=ka[0],a.blockedOn===null);)Wf(a),a.blockedOn===null&&ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],r=n[nt]||null;if(typeof i=="function")r||$f(a);else if(r){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,r=i[nt]||null)f=r.formAction;else if(zu(n)!==null)continue}else f=r.action;typeof f=="function"?a[l+1]=f:(a.splice(l,3),l-=3),$f(a)}}}function If(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return n=r})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Mu(e){this._internalRoot=e}ls.prototype.render=Mu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=jt();Qf(a,l,e,t,null,null)},ls.prototype.unmount=Mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qf(e.current,2,null,e,null,null),Ri(),t[Wa]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=sr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ka.length&&t!==0&&t<ka[a].priority;a++);ka.splice(a,0,e),a===0&&Wf(e)}};var Pf=c.version;if(Pf!=="19.2.4")throw Error(o(527,Pf,"19.2.4"));H.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=N(t),e=e!==null?V(e):null,e=e===null?null:e.stateNode,e};var rg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ns.isDisabled&&ns.supportsFiber)try{ql=ns.inject(rg),ft=ns}catch{}}return On.createRoot=function(e,t){if(!m(e))throw Error(o(299));var a=!1,l="",n=id,i=sd,r=cd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Bf(e,1,!1,null,null,a,l,null,n,i,r,If),e[Wa]=t.current,du(e),new Mu(t)},On.hydrateRoot=function(e,t,a){if(!m(e))throw Error(o(299));var l=!1,n="",i=id,r=sd,f=cd,g=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(r=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.formState!==void 0&&(g=a.formState)),t=Bf(e,1,!0,t,a??null,l,n,g,i,r,f,If),t.context=Yf(null),a=t.current,l=jt(),l=js(l),n=da(l),n.callback=null,fa(a,n,l),a=l,t.current.lanes=a,Yl(t,a),Ht(t),e[Wa]=t.current,du(e),new ls(t)},On.version="19.2.4",On}var rh;function bg(){if(rh)return Uu.exports;rh=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(c){console.error(c)}}return d(),Uu.exports=yg(),Uu.exports}var jg=bg();class Sg{observers=new Set;next(c){this.observers.forEach(u=>u(c))}asObservable(){return{subscribe:c=>(this.observers.add(c),{unsubscribe:()=>this.observers.delete(c)})}}}class xg extends Sg{currentValue;constructor(c){super(),this.currentValue=c}next(c){this.currentValue=c,super.next(c)}get value(){return this.currentValue}asObservable(){return{subscribe:c=>(c(this.currentValue),super.asObservable().subscribe(c))}}}class Ng{authId="id";authToken="token";authEmail="email";runOutDate="runOutDate";authTokenSubject=new xg(null);constructor(){}async loadAuthTokenFromStorage(){const c=window.localStorage.getItem(this.authToken);this.authTokenSubject.next(c)}async setAuthData(c,u){if(await this.setPreference(this.authId,c.id),await this.setPreference(this.authToken,c.token),await this.setPreference(this.authEmail,c.email),u)await this.setPreference(this.runOutDate,"forever");else{const o=new Date,m=new Date(o);m.setDate(o.getDate()+1);const y=m.toISOString();await this.setPreference(this.runOutDate,y)}}async setPreference(c,u){window.localStorage.setItem(c,u)}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 c=await this.getCandidateId(),u=await this.getAuthToken(),o=await this.getCandidateEmail(),m=await this.getRunOutDate();return c&&u&&o&&m?{id:c,token:u,email:o,runOutDate:m}:null}getAuthTokenWithoutWindow(){const c=this.getAuthTokenNoneAsync();return c||""}getAuthWithoutWindow(){const c=this.getAuthTokenNoneAsync();return c?{id:"",token:c,email:"",runOutDate:"forever"}:null}}const wl=new Ng;const zh=(...d)=>d.filter((c,u,o)=>!!c&&c.trim()!==""&&o.indexOf(c)===u).join(" ").trim();const Ag=d=>d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _g=d=>d.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,u,o)=>o?o.toUpperCase():u.toLowerCase());const oh=d=>{const c=_g(d);return c.charAt(0).toUpperCase()+c.slice(1)};var kg={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 Tg=d=>{for(const c in d)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};const zg=L.forwardRef(({color:d="currentColor",size:c=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:m="",children:y,iconNode:O,...G},w)=>L.createElement("svg",{ref:w,...kg,width:c,height:c,stroke:d,strokeWidth:o?Number(u)*24/Number(c):u,className:zh("lucide",m),...!y&&!Tg(G)&&{"aria-hidden":"true"},...G},[...O.map(([N,V])=>L.createElement(N,V)),...Array.isArray(y)?y:[y]]));const W=(d,c)=>{const u=L.forwardRef(({className:o,...m},y)=>L.createElement(zg,{ref:y,iconNode:c,className:zh(`lucide-${Ag(oh(d))}`,`lucide-${d}`,o),...m}));return u.displayName=oh(d),u};const Dg=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mg=W("arrow-left",Dg);const Eg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ol=W("arrow-right",Eg);const Cg=[["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"}]],Ug=W("arrow-up-down",Cg);const Og=[["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"}]],wg=W("badge-check",Og);const Lg=[["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"}]],Rg=W("bolt",Lg);const Hg=[["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"}]],Vg=W("bookmark",Hg);const qg=[["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"}]],Dh=W("bot",qg);const Bg=[["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"}]],Qu=W("briefcase-business",Bg);const Yg=[["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"}]],Mh=W("briefcase",Yg);const Qg=[["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"}]],Gg=W("car",Qg);const Jg=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Xg=W("check-check",Jg);const Zg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kg=W("chevron-down",Zg);const Wg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],za=W("circle-check",Wg);const Fg=[["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"}]],$g=W("circle-user",Fg);const Ig=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],Pg=W("clock-3",Ig);const e0=[["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"}]],dh=W("code-xml",e0);const t0=[["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"}]],a0=W("file-plus-corner",t0);const l0=[["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"}]],Gu=W("file-text",l0);const n0=[["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"}]],i0=W("gamepad-2",n0);const s0=[["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"}]],Eh=W("globe",s0);const c0=[["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"}]],u0=W("graduation-cap",c0);const r0=[["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"}]],Ch=W("grid-3x3",r0);const o0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],d0=W("info",o0);const f0=[["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"}]],Ju=W("laptop",f0);const h0=[["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"}]],m0=W("layout-grid",h0);const g0=[["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"}]],Uh=W("layout-panel-top",g0);const v0=[["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"}]],p0=W("link-2",v0);const y0=[["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"}]],Oh=W("lock-keyhole",y0);const b0=[["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"}]],j0=W("log-out",b0);const S0=[["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"}]],ds=W("mail",S0);const x0=[["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"}]],Vn=W("map-pin",x0);const N0=[["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"}]],wh=W("message-circle",N0);const A0=[["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"}]],_0=W("monitor",A0);const k0=[["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"}]],T0=W("moon",k0);const z0=[["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"}]],D0=W("paperclip",z0);const M0=[["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"}]],E0=W("pen-line",M0);const C0=[["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"}]],U0=W("phone",C0);const O0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],w0=W("plus",O0);const L0=[["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"}]],R0=W("presentation",L0);const H0=[["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"}]],V0=W("radar",H0);const q0=[["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"}]],B0=W("rocket",q0);const Y0=[["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"}]],fh=W("route",Y0);const Q0=[["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"}]],G0=W("save",Q0);const J0=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xu=W("search",J0);const X0=[["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"}]],Z0=W("send",X0);const K0=[["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"}]],Lh=W("settings",K0);const W0=[["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"}]],F0=W("smile",W0);const $0=[["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"}]],fs=W("sparkles",$0);const I0=[["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"}]],Rh=W("square-pen",I0);const P0=[["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"}]],ev=W("star",P0);const tv=[["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"}]],av=W("sun",tv);const lv=[["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"}]],nv=W("target",lv);const iv=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],sv=W("user-round",iv);const cv=[["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"}]],hh=W("user",cv);const uv=[["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"}]],rv=W("users",uv);const ov=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mh=W("x",ov);function Ul({icon:d,label:c,...u}){return s.jsxs("label",{className:"auth-field",children:[s.jsx("span",{children:c}),s.jsxs("div",{className:"auth-input-wrap",children:[s.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:d}),s.jsx("input",{...u})]})]})}function dv({email:d,loading:c,onBackToLogin:u,onChangeEmail:o,onSubmit:m}){return s.jsxs("div",{className:"auth-view view-enter",children:[s.jsxs("div",{className:"auth-head",children:[s.jsx("button",{className:"link-btn back-link",type:"button",onClick:u,children:"Tilbage"}),s.jsx("h1",{children:"Glemt kodeord?"}),s.jsx("p",{children:"Indtast din e-mail, sa sender vi instruktioner til at nulstille din kode."})]}),s.jsxs("form",{className:"auth-form",onSubmit:m,children:[s.jsx(Ul,{icon:s.jsx(ds,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:d,onChange:y=>o(y.target.value),required:!0}),s.jsx("button",{className:"submit-btn",type:"submit",disabled:c,children:c?"Sender...":"Send nulstillingslink"})]})]})}function fv({email:d,loading:c,onChangeEmail:u,onChangePassword:o,onChangeRememberMe:m,onForgotPassword:y,onRegister:O,onSubmit:G,password:w,rememberMe:N}){return s.jsxs("div",{className:"auth-view view-enter",children:[s.jsxs("div",{className:"auth-head auth-head-center",children:[s.jsx("h1",{children:"Velkommen tilbage"}),s.jsx("p",{children:"Indtast dine oplysninger for at logge ind pa din konto."})]}),s.jsxs("form",{className:"auth-form",onSubmit:G,children:[s.jsx(Ul,{icon:s.jsx(ds,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:d,onChange:V=>u(V.target.value),required:!0}),s.jsxs("label",{className:"auth-field",children:[s.jsxs("div",{className:"auth-field-row",children:[s.jsx("span",{children:"Adgangskode"}),s.jsx("button",{className:"link-btn",type:"button",onClick:y,children:"Glemt adgangskode?"})]}),s.jsxs("div",{className:"auth-input-wrap",children:[s.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:s.jsx(Oh,{size:16,strokeWidth:1.8})}),s.jsx("input",{type:"password",placeholder:"••••••••",value:w,onChange:V=>o(V.target.value),required:!0})]})]}),s.jsxs("label",{className:"check-row",children:[s.jsx("input",{type:"checkbox",checked:N,onChange:V=>m(V.target.checked)}),s.jsx("span",{children:"Husk mig i 30 dage"})]}),s.jsx("button",{className:"submit-btn",type:"submit",disabled:c,children:c?"Logger ind...":"Log ind"})]}),s.jsxs("p",{className:"auth-foot",children:["Har du ikke en konto?",s.jsx("button",{className:"link-btn",type:"button",onClick:O,children:"Opret bruger"})]})]})}function hv({email:d,firstName:c,lastName:u,loading:o,locationQuery:m,locationSuggestions:y,onBackToLogin:O,onChangeEmail:G,onChangeFirstName:w,onChangeLastName:N,onChangeLocationQuery:V,onChangePassword:z,onSelectLocation:q,onSubmit:Z,password:ae}){return s.jsxs("div",{className:"auth-view view-enter",children:[s.jsxs("div",{className:"auth-head auth-head-center",children:[s.jsx("h1",{children:"Opret konto"}),s.jsx("p",{children:"Start din karriere-rejse med os i dag."})]}),s.jsxs("form",{className:"auth-form",onSubmit:Z,children:[s.jsx(Ul,{icon:s.jsx(hh,{size:16,strokeWidth:1.8}),label:"Fornavn",type:"text",placeholder:"Lasse",value:c,onChange:Y=>w(Y.target.value),required:!0}),s.jsx(Ul,{icon:s.jsx(hh,{size:16,strokeWidth:1.8}),label:"Efternavn",type:"text",placeholder:"Hansen",value:u,onChange:Y=>N(Y.target.value),required:!0}),s.jsx(Ul,{icon:s.jsx(ds,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:d,onChange:Y=>G(Y.target.value),required:!0}),s.jsx(Ul,{icon:s.jsx(Oh,{size:16,strokeWidth:1.8}),label:"Adgangskode",type:"password",placeholder:"Skab en staerk kode",value:ae,onChange:Y=>z(Y.target.value),required:!0,minLength:8}),s.jsxs("label",{className:"auth-field",children:[s.jsx("span",{children:"Lokation"}),s.jsxs("div",{className:"auth-input-wrap",children:[s.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:s.jsx(Vn,{size:16,strokeWidth:1.8})}),s.jsx("input",{type:"text",placeholder:"Soeg by eller adresse",value:m,onChange:Y=>V(Y.target.value),autoComplete:"off",required:!0})]}),y.length>0?s.jsx("div",{className:"location-suggestions",children:y.map(Y=>s.jsx("button",{type:"button",className:"location-suggestion-item",onClick:()=>{q(Y.placeId,Y.description)},children:Y.description},Y.placeId))}):null]}),s.jsx("button",{className:"submit-btn",type:"submit",disabled:o,children:o?"Opretter...":"Opret bruger"})]}),s.jsxs("p",{className:"auth-foot",children:["Har du allerede en konto?",s.jsx("button",{className:"link-btn",type:"button",onClick:O,children:"Log ind"})]})]})}class Ka{searchParams;constructor(c){this.searchParams=c?new URLSearchParams(c):new URLSearchParams}append(c,u){const o=new URLSearchParams(this.searchParams);return o.append(c,String(u)),new Ka(o)}set(c,u){const o=new URLSearchParams(this.searchParams);return o.set(c,String(u)),new Ka(o)}toString(){return this.searchParams.toString()}}function is(d,c){if(!c)return d;const u=new URL(d);if(c instanceof Ka){const o=c.toString();return o&&new URLSearchParams(o).forEach((y,O)=>u.searchParams.append(O,y)),u.toString()}return Object.entries(c).forEach(([o,m])=>{if(Array.isArray(m)){m.forEach(y=>u.searchParams.append(o,String(y)));return}u.searchParams.set(o,String(m))}),u.toString()}async function ss(d,c="json"){if(!d.ok){const u=await d.text();throw new Error(u||`HTTP ${d.status}`)}if(d.status!==204)return c==="blob"?await d.blob():await d.json()}function cs(d){const c=typeof window>"u"?null:window.localStorage.getItem("token");return{...c?{Authorization:`Bearer ${c}`}:{},...d??{}}}class mv{async get(c,u){const o=await fetch(is(c,u?.params),{method:"GET",headers:cs(u?.headers)});return ss(o,u?.responseType)}async post(c,u,o){const m=await fetch(is(c,o?.params),{method:"POST",headers:{"Content-Type":"application/json",...cs(o?.headers)},body:u===void 0?void 0:JSON.stringify(u)});return ss(m)}async put(c,u,o){const m=await fetch(is(c,o?.params),{method:"PUT",headers:{"Content-Type":"application/json",...cs(o?.headers)},body:u===void 0?void 0:JSON.stringify(u)});return ss(m)}async delete(c,u){const o=await fetch(is(c,u?.params),{method:"DELETE",headers:cs(u?.headers)});return ss(o)}}const He=new mv,k={backendApi:"https://api.arbejd.com/",backendApiV2:"https://api2.arbejd.com/api/"};class gv{http;constructor(c=He){this.http=c}login(c,u){let o=k.backendApi+"api/1.1.0/candidate/login",m={email:c,password:u};return this.http.post(o,m)}forgotPassword(c){let u=k.backendApi+"api/1.1.0/candidate/resetPassword/"+c.toLowerCase();return this.http.get(u)}}class Ll{constructor(c=He,u=wl){this.http=c,this.localStorageService=u}closeAccount(c){let u=k.backendApi+"api/1.1.0/candidate/"+c.toLowerCase();return this.http.delete(u)}accountRetention(c){let u=k.backendApi+"api/1.1.0/candidate/"+c+"/account-retention/";return this.http.get(u)}getCandidatesQualifications(){let c=k.backendApi+"api/1.1.0/candidate/skill/";return this.http.get(c)}getCandidatesCertifications(){let c=k.backendApi+"api/1.1.0/candidate/certificate/";return this.http.get(c)}getCandidatesLanguages(){let c=k.backendApi+"api/1.1.0/candidate/language/";return this.http.get(c)}getCandidatesDriverLicenses(){let c=k.backendApi+"api/1.1.0/candidate/driversLicense/";return this.http.get(c)}changePassword(c,u){let o=k.backendApi+"api/1.1.0/candidate/resetPassword",m={key:c,password:u};return this.http.post(o,m)}getCandidatesEducations(){let c=k.backendApiV2+"1.0.0/client/candidate_education";return this.http.get(c)}updateExperience(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_experience/"+c.id,m={comments:c.comments,company_name:c.companyName,is_current:c.isCurrent,from_date:c.fromDate,to_date:c.toDate,language:u};return this.http.put(o,m)}createAccountV2(c){let u=k.backendApiV2+"1.0.0/client/candidate";return this.http.post(u,c)}updateCandidate(c,u){let o=k.backendApiV2+"1.0.0/client/candidate/v2/"+c.id,m={...c};c.birthday&&(c.birthday=new Date(c.birthday)),c.birthday instanceof Date&&(m.birthday=c.birthday.toISOString());let y={language:u,candidate:m};return this.http.put(o,y)}getCandidate(){let c=k.backendApiV2+"1.0.0/client/candidate";return this.http.get(c)}getCvSuggestion(){let c=k.backendApiV2+"1.0.0/client/suggestion";return this.http.get(c)}saveExperience(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_experience",m={comments:c.comments,company_name:c.companyName,is_current:c.isCurrent,esco_id:c.occupation.id,from_date:c.fromDate,to_date:c.toDate,language:u};return this.http.post(o,m)}removeExperience(c){let u=k.backendApiV2+"1.0.0/client/candidate_experience/"+c;return this.http.delete(u)}getCandidatesExperiences(){let c=k.backendApiV2+"1.0.0/client/candidate_experience";return this.http.get(c)}getJobAgentFilters(){let c=k.backendApiV2+"1.0.0/client/job_agent_filter";return this.http.get(c)}updateJobAgentFilter(c){let u=k.backendApiV2+"1.0.0/client/job_agent_filter/"+c.id,o=c;return this.http.put(u,o)}removeJobAgentFilter(c){let u=k.backendApiV2+"1.0.0/client/job_agent_filter/"+c;return this.http.delete(u)}updateCandidateJobSeeker(c){let u=k.backendApiV2+"1.0.0/client/candidate/update_job_seeker/"+c.id;return this.http.put(u,c)}updateCvUploadProfileText(c,u,o){let m=k.backendApiV2+"1.0.0/client/candidate/update_cv_upload_profile/"+c,y={description:u,language:o};return this.http.put(m,y)}saveExperienceV2(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_experience",m={comments:c.comments,company_name:c.companyName,is_current:c.isCurrent,esco_id:c.escoId,from_date:c.fromDate,to_date:c.toDate,language:u};return this.http.post(o,m)}updateProfileText(c){let u=k.backendApiV2+"1.0.0/client/candidate/update_profile_text";return this.http.put(u,c)}}function Ru(d,c){const u=d[c];return typeof u=="string"?u:null}class vv{authService;candidateService;constructor(c=new gv,u=new Ll){this.authService=c,this.candidateService=u}async login(c,u,o){const y=await this.authService.login(c,u)??{},O=Ru(y,"token");if(!O)return{ok:!1,message:"Login fejlede: token mangler i svaret fra serveren."};const G={id:Ru(y,"id")??"",token:O,email:Ru(y,"email")??c,runOutDate:"forever"};return await wl.setAuthData(G,o),{ok:!0,message:"Du er nu logget ind."}}async forgotPassword(c){return await this.authService.forgotPassword(c),{ok:!0,message:"Anmodning om nulstilling af kodeord er sendt."}}async register(c){const u=Number.parseInt(c.zip,10);if(Number.isNaN(u))return{ok:!1,message:"Postnummer skal være et tal."};const o={email:c.email,password:c.password,zip:u,zipName:c.zipName,awsUrl:"",latitude:0,longitude:0,firstName:c.firstName,lastName:c.lastName,subscribe:c.subscribe};return await this.candidateService.createAccountV2(o),{ok:!0,message:"Kontoen er oprettet."}}}class Hh{constructor(c=He){this.http=c}searchPlaces(c){const u=k.backendApiV2+"client/google_maps/1.0.0/get_places?query="+encodeURIComponent(c);return this.http.get(u)}getPlaceDetails(c){const u=k.backendApiV2+"client/google_maps/1.0.0/get_place_details?place_id="+encodeURIComponent(c);return this.http.get(u)}}function pv(d){const c=L.useMemo(()=>new vv,[]),u=L.useMemo(()=>new Hh,[]),[o,m]=L.useState(""),[y,O]=L.useState(!1),[G,w]=L.useState(""),[N,V]=L.useState(""),[z,q]=L.useState(""),[Z,ae]=L.useState(""),[Y,fe]=L.useState(""),[ge,je]=L.useState(""),[ie,re]=L.useState([]),[de,K]=L.useState(null),[M,ye]=L.useState(""),[Ae,ze]=L.useState(!1),[R,Q]=L.useState(null),[le,I]=L.useState("login");function oe(S){Q(null),I(S)}async function _(S){const C=S.trim();if(C.length<3){re([]);return}try{const te=((await u.searchPlaces(C)).predictions??[]).filter(ee=>typeof ee.place_id=="string"&&typeof ee.description=="string").map(ee=>({description:ee.description,placeId:ee.place_id}));re(te)}catch{re([])}}function H(S){const C=S.match(/\b(\d{4})\b/);if(!C)return null;const B=C[1],ee=S.slice(S.indexOf(B)+B.length).trim().split(",")[0]?.trim()||"";return ee?{cityName:ee,zip:B}:null}async function U(S,C){let B=C;try{const ee=await u.getPlaceDetails(S);typeof ee.result?.formatted_address=="string"&&ee.result.formatted_address.trim()&&(B=ee.result.formatted_address.trim())}catch{}const te=H(B)??H(C);if(je(B),re([]),!te){K(null);return}K({cityName:te.cityName,description:B,zip:te.zip})}async function $(S){S.preventDefault(),O(!0),Q(null);try{const C=await c.login(G.trim(),N,Ae);Q(C),C.ok&&d?.()}catch(C){const B=C instanceof Error?C.message:"Login mislykkedes.";Q({ok:!1,message:B})}finally{O(!1)}}async function ce(S){S.preventDefault(),O(!0),Q(null);try{if(!de){Q({ok:!1,message:"Vaelg en lokation fra listen (med postnummer)."});return}const C=await c.register({email:Z.trim(),firstName:z.trim(),lastName:Y.trim(),password:M,subscribe:!0,zip:de.zip,zipName:de.cityName});Q(C),C.ok&&I("login")}catch(C){const B=C instanceof Error?C.message:"Oprettelse mislykkedes.";Q({ok:!1,message:B})}finally{O(!1)}}async function h(S){S.preventDefault(),O(!0),Q(null);try{const C=await c.forgotPassword(o.trim());Q(C)}catch(C){const B=C instanceof Error?C.message:"Kunne ikke sende nulstillingslink.";Q({ok:!1,message:B})}finally{O(!1)}}return{forgotEmail:o,handleForgotSubmit:h,handleLoginSubmit:$,handleRegisterSubmit:ce,loading:y,loginEmail:G,loginPassword:N,registerFirstName:z,registerEmail:Z,registerLastName:Y,registerLocationQuery:ge,registerLocationSuggestions:ie,registerPassword:M,rememberMe:Ae,result:R,setForgotEmail:m,setLoginEmail:w,setLoginPassword:V,setRegisterEmail:ae,setRegisterFirstName:q,setRegisterLastName:fe,setRegisterLocationQuery:S=>{je(S),K(null),_(S)},setRegisterPassword:ye,setRememberMe:ze,selectRegisterLocation:U,switchView:oe,view:le}}function yv({onAuthenticated:d}){const{forgotEmail:c,handleForgotSubmit:u,handleLoginSubmit:o,handleRegisterSubmit:m,loading:y,loginEmail:O,loginPassword:G,registerFirstName:w,registerEmail:N,registerLastName:V,registerLocationQuery:z,registerLocationSuggestions:q,registerPassword:Z,rememberMe:ae,result:Y,setForgotEmail:fe,setLoginEmail:ge,setLoginPassword:je,setRegisterEmail:ie,setRegisterFirstName:re,setRegisterLastName:de,setRegisterLocationQuery:K,setRegisterPassword:M,setRememberMe:ye,selectRegisterLocation:Ae,switchView:ze,view:R}=pv(d);return s.jsxs("main",{className:"auth-page",children:[s.jsx("div",{className:"orb orb-1"}),s.jsx("div",{className:"orb orb-2"}),s.jsx("div",{className:"orb orb-3"}),s.jsxs("div",{className:"auth-logo-wrap",children:[s.jsx("div",{className:"auth-logo-dot",children:"A"}),s.jsx("span",{className:"auth-logo-text",children:"ARBEJD"})]}),s.jsxs("section",{className:"auth-card",children:[R==="login"?s.jsx(fv,{email:O,loading:y,onChangeEmail:ge,onChangePassword:je,onChangeRememberMe:ye,onForgotPassword:()=>ze("forgot"),onRegister:()=>ze("register"),onSubmit:o,password:G,rememberMe:ae}):null,R==="register"?s.jsx(hv,{email:N,firstName:w,lastName:V,loading:y,locationQuery:z,locationSuggestions:q,onBackToLogin:()=>ze("login"),onChangeEmail:ie,onChangeFirstName:re,onChangeLastName:de,onChangeLocationQuery:K,onChangePassword:M,onSelectLocation:Ae,onSubmit:m,password:Z}):null,R==="forgot"?s.jsx(dv,{email:c,loading:y,onBackToLogin:()=>ze("login"),onChangeEmail:fe,onSubmit:u}):null,Y?s.jsx("p",{className:Y.ok?"status success":"status error",children:Y.message}):null]},R)]})}class Vh{constructor(c=He){this.http=c}listEscoByParent(c){let u=k.backendApiV2+"1.0.0/client/esco";return c&&(u+="/"+c),this.http.get(u)}listAllEscos(){let c=k.backendApiV2+"1.0.0/client/esco";return this.http.get(c)}}class bv{constructor(c=He){this.http=c}addEscoToJobAgent(c){let u=k.backendApiV2+"1.0.0/client/job_agent_filter",o={esco_id:c};return this.http.post(u,o)}removeJobAgentFilter(c){let u=k.backendApiV2+"1.0.0/client/job_agent_filter/"+c;return this.http.delete(u)}}class Ku{constructor(c=He){this.http=c}getPaymentOverview(){let c=k.backendApiV2+"client/end_user_subscription/1.0.0/payment_overview";return this.http.get(c)}getSubscriptionProducts(){let c=k.backendApiV2+"client/end_user_subscription/1.0.0/get_products";return this.http.get(c)}deactivateAutoRenew(){let c=k.backendApiV2+"client/end_user_subscription/1.0.0/deactivate_auto_renew";return this.http.put(c,{})}activateAutoRenew(){let c=k.backendApiV2+"client/end_user_subscription/1.0.0/activate_auto_renew";return this.http.put(c,{})}redeemCode(c){let u=k.backendApiV2+"client/candidate_redeem_code/v1";return this.http.post(u,{code:c})}}class jv{constructor(c=new Ll,u=new Ku,o=new bv,m=new Vh){this.candidateService=c,this.subscriptionService=u,this.jobAgentService=o,this.escoService=m}async loadInitialData(){const[c,u,o,m]=await Promise.allSettled([this.subscriptionService.getPaymentOverview(),this.candidateService.getJobAgentFilters(),this.candidateService.getCvSuggestion(),this.escoService.listAllEscos()]);return{paymentOverview:c.status==="fulfilled"?c.value:null,jobAgentFilters:u.status==="fulfilled"?u.value:[],cvSuggestions:o.status==="fulfilled"?this.withImprovements(o.value):[],escos:m.status==="fulfilled"?m.value:[]}}async getCandidateProfile(){try{const c=await this.candidateService.getCandidate(),u=c.firstName?.trim()||c.name?.trim()||"Lasse",o=c.imageUrl||c.image||void 0;return{name:u,imageUrl:o}}catch{return{name:"Lasse"}}}async addEscoToFilter(c){await this.jobAgentService.addEscoToJobAgent(c)}async removeFilter(c){await this.jobAgentService.removeJobAgentFilter(c)}async setFilterVisibility(c,u){await this.candidateService.updateJobAgentFilter({...c,visible:u})}getEscoSuggestions(c,u,o){const m=c.trim().toLowerCase();if(!m)return[];const y=new Set(o.map(O=>O.escoId));return u.filter(O=>!y.has(O.id)).filter(O=>O.preferedLabelDa.toLowerCase().includes(m)).slice(0,10)}getSuggestionText(c){return c>=0&&c<50?"Et godt første skridt mod flere relevante job.":c>=50&&c<100?"Kan styrke dine chancer i ansøgningsbunken.":c>=100&&c<150?"Ofte efterspurgt og forbedrer dine jobmuligheder markant.":c>=150&&c<200?"Et klart plus som gør dig mere attraktiv for arbejdsgivere.":c>=200?"En afgørende faktor der åbner langt flere jobmuligheder.":"Forbedrer din profil til kommende jobmatch."}withImprovements(c){return c.map(u=>{const o=[],m=[{items:u.jobImprovementSuggestion.educations??[],type:"education"},{items:u.jobImprovementSuggestion.languages??[],type:"language"},{items:u.jobImprovementSuggestion.driversLicenses??[],type:"driversLicense"},{items:u.jobImprovementSuggestion.qualifications??[],type:"qualification"},{items:u.jobImprovementSuggestion.certificates??[],type:"certificate"}];for(const y of m)for(const O of y.items)o.push({...O,improvementType:y.type});return o.sort((y,O)=>O.jobChanceIncrease-y.jobChanceIncrease),{...u,improvements:o}})}}class Sv{constructor(c=He){this.http=c}saveJobFilter(c){let u=k.backendApiV2+"1.0.0/client/candidate_search_filter";return this.http.post(u,c)}getJobFilter(){let c=k.backendApiV2+"1.0.0/client/candidate_search_filter";return this.http.get(c)}resetJobFilter(){let c=k.backendApiV2+"1.0.0/client/candidate_search_filter/reset_job_filter";return this.http.put(c,{})}}class Wu{http;constructor(c=He){this.http=c}getSearchWords(){let c=k.backendApiV2+"1.0.0/client/candidate_search/list_search_words";return this.http.get(c)}getJobs(c,u,o){let m=k.backendApi+"api/1.1.0/jobs/all/"+u+"/"+o;return this.http.post(m,c)}getJobsV2(c,u,o,m){let y=k.backendApiV2+"1.0.0/client/candidate_search/v2/"+c+"/"+u+"/"+o,O=new Ka;return m.length>0&&m.forEach(G=>{O=O.append("terms",G)}),this.http.get(y,{params:O})}getSavedJobs(c,u){let o=k.backendApi+"api/1.1.0/candidate/jobs/saved";return this.http.get(o)}getSavedJobsV2(c,u){let o=k.backendApiV2+"1.0.0/client/job/bookmarked_jobs/"+c+"/"+u;return this.http.get(o)}getAppliedJobs(c,u){let o=k.backendApi+"api/1.1.0/applications/candidate/";return this.http.get(o)}getAppliedJobsV2(c,u){let o=k.backendApiV2+"1.0.0/client/job/applied_jobs/"+c+"/"+u;return this.http.get(o)}payWithStripe(c,u){const o=k.backendApiV2+"1.0.0/client/payment/create-payment-intent",m={paymentMethodId:c,amount:u};return this.http.post(o,m)}bookmarkJob(c){let u=k.backendApi+"api/1.1.0/candidate/jobs/"+c+"/jobnet/updateSavedStatus",o={saved:!0};return this.http.post(u,o)}unbookmarkJob(c){let u=k.backendApi+"api/1.1.0/candidate/jobs/"+c+"/jobnet/updateSavedStatus",o={saved:!1};return this.http.post(u,o)}bookmarkJobV2(c,u,o){let m=k.backendApiV2+"1.0.0/client/job/bookmark/"+c,y={job_type:o,save:u};return this.http.post(m,y)}getJobNetJobDetail(c){let u=k.backendApiV2+"1.0.0/client/job/detail/star/"+c;return this.http.get(u)}getJobDetail(c){let u=k.backendApi+"api/1.1.0/jobs/"+c;return this.http.get(u)}getOccupationCategorizations(){let c=k.backendApiV2+"1.0.0/client/ds_tree";return this.http.get(c)}getJobSummary(c){let u=k.backendApi+"api/1.1.0/jobs/"+c+"/summary";return this.http.get(u)}applyJob(c){let u=k.backendApi+"api/1.1.0/applications/job/"+c,o={jobPostingId:c};return this.http.post(u,o)}undoApplyJob(c){let u=k.backendApi+"api/1.1.0/applications/"+c;return this.http.delete(u)}toggleApplyJobnetjob(c,u){let o=k.backendApiV2+"1.0.0/client/job/detail/star/apply/"+c,m={apply:u};return this.http.put(o,m)}}const Hu={escoIds:[],workTypePermanent:!1,workTypePartTime:!1,workDistance:50,partTimeHours:null,distanceCenterName:"",latitude:null,longitude:null};function Xe(d){return typeof d=="string"?d:""}function Rn(d){return typeof d=="object"&&d!==null?d:null}function Vu(d,c){if(!d)return[];const u=d[c];return Array.isArray(u)?u:[]}function qu(d){if(Array.isArray(d))return d;const c=Rn(d);if(!c)return[];const u=Vu(c,"searchList");if(u.length>0)return u;const o=Rn(c.data),m=Vu(o,"searchList");if(m.length>0)return m;const y=Vu(c,"items");return y.length>0?y:[]}function gh(d,c){if(!d)return null;const u=d[c];return typeof u=="number"?u:null}function xv(d){return d.trim()}function Nv(d){if(!d)return[];const c=new Set,u=d.searchText?.trim();u&&u.length>0&&c.add(u);for(const o of d.desiredTitles??[]){const m=xv(o);m.length>0&&c.add(m)}return Array.from(c)}function Av(d,c){return{id:Xe(d.id),title:Xe(d.title),companyName:Xe(d.companyName),occupationName:Xe(d.occupationName),descriptionIntro:Xe(d.descriptionIntro),address:Xe(d.address),time:Xe(d.time),applicationDeadline:d.applicationDeadline instanceof Date?d.applicationDeadline.toISOString():Xe(String(d.applicationDeadline??"")),candidateDistance:typeof d.candidateDistance=="number"?d.candidateDistance:null,logoUrl:Xe(d.logoUrl),companyLogoImage:Xe(d.companyLogoImage),fromJobnet:!!d.fromJobnet,isSaved:!!d.saved,matchPercent:c}}function vh(d){return{id:Xe(d.id),title:Xe(d.title),companyName:Xe(d.companyName),occupationName:Xe(d.occupationName),descriptionIntro:Xe(d.descriptionIntro),address:Xe(d.address),time:Xe(d.time),applicationDeadline:d.applicationDeadline instanceof Date?d.applicationDeadline.toISOString():Xe(String(d.applicationDeadline??"")),candidateDistance:typeof d.candidateDistance=="number"?d.candidateDistance:null,logoUrl:Xe(d.logoUrl),companyLogoImage:Xe(d.companyLogoImage),isActive:typeof d.isActive=="boolean"?d.isActive:void 0,fromJobnet:!!d.fromJobnet,isSaved:!0}}class Fu{constructor(c=new Wu,u=new Sv,o=new Hh,m=new Ll){this.jobService=c,this.filterService=u,this.placesService=o,this.candidateService=m}async getCandidateProfile(){try{const c=await this.candidateService.getCandidate(),u=c.firstName?.trim()||c.name?.trim()||"Lasse",o=c.imageUrl||c.image||void 0;return{name:u,imageUrl:o}}catch{return{name:"Lasse"}}}async getOccupationOptions(){const c=await this.jobService.getOccupationCategorizations(),u=[];for(const o of c)for(const m of o.subAreas)for(const y of m.occupations)typeof y.id=="number"&&typeof y.name=="string"&&y.name.trim().length>0&&u.push({id:y.id,name:y.name});return u.sort((o,m)=>o.name.localeCompare(m.name,"da"))}async getJobSearchWords(){return(await this.jobService.getSearchWords()).filter(u=>typeof u=="string"&&u.trim().length>0)}async getSavedFilter(){try{const c=await this.filterService.getJobFilter(),u=c?.candidateSearchFilter;return u?{escoIds:c.escoIds??[],workTypePermanent:!!u.workTypePermanent,workTypePartTime:!!u.workTypePartTime,workDistance:u.workDistance??u.defaultDistance??50,partTimeHours:u.partTimeHours??null,distanceCenterName:u.distanceCenterName??u.defaultCenterName??"",latitude:u.latitude??null,longitude:u.longitude??null}:{...Hu}}catch{return{...Hu}}}async saveFilter(c){const u=c.workTypePartTime&&c.partTimeHours&&c.partTimeHours>0&&c.partTimeHours<=37?c.partTimeHours:null,o={escoIds:c.escoIds,candidateSearchFilter:{workTimeDay:!1,workTimeEvening:!1,workTimeNight:!1,workTimeWeekend:!1,workTypePermanent:c.workTypePermanent,workTypeFreelance:!1,workTypePartTime:c.workTypePartTime,workTypeSubstitute:!1,workTypeTemporary:!1,workDistance:c.workDistance,partTimeHours:u,distanceCenterName:c.distanceCenterName,latitude:c.latitude,longitude:c.longitude}};await this.filterService.saveJobFilter(o)}async resetFilter(){return await this.filterService.resetJobFilter(),{...Hu}}async searchPlaceSuggestions(c){const u=c.trim();return u.length<3?[]:((await this.placesService.searchPlaces(u)).predictions??[]).filter(m=>typeof m.place_id=="string"&&typeof m.description=="string").map(m=>({placeId:m.place_id,description:m.description}))}async getPlaceSelection(c){const o=(await this.placesService.getPlaceDetails(c)).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(c,u){if(c==="gemte"){const o=await this.jobService.getSavedJobsV2(0,100);return qu(o).map(y=>vh(y))}if(c==="sogte"){const o=await this.jobService.getAppliedJobsV2(0,100);return qu(o).map(y=>vh(y))}return this.getJobsFeedItems(u?[u]:void 0)}async applyFiltersAndGetJobs(c,u){await this.saveFilter(c);const o=Nv(u);return this.getJobsFeedItems(o)}async toggleBookmark(c,u){const o=c.fromJobnet?"star":"arbejd.com";await this.jobService.bookmarkJobV2(c.id,u,o)}async getJobsFeedItems(c){let o=10,m=0;const y=12,O=120,G=new Set,w=[];let N=[];const V=(c??[]).map(z=>z.trim()).filter(z=>z.length>0);if(V.length>0)N=V;else try{N=(await this.jobService.getSearchWords()).filter(q=>typeof q=="string"&&q.trim().length>0)}catch{N=[]}for(let z=0;z<y&&w.length<O;z+=1){const q=await this.jobService.getJobsV2(o,m,20,N),Z=Rn(q),ae=qu(q);for(const je of ae){const ie=Rn(je);if(!ie)continue;const re=Rn(ie.jobPosting);if(!re)continue;const de=re;if(!de.id||G.has(de.id))continue;G.add(de.id);const K=typeof ie.total=="number"?ie.total:0;w.push(Av(de,Math.round(K*100)))}const Y=gh(Z,"nextLevel"),fe=gh(Z,"nextOffset");if(ae.length===0)break;Y===null||fe===null?m+=20:(o=Y,m=fe)}return w}}const _v=[{key:"dashboard",label:"Dashboard",icon:m0},{key:"jobs",label:"Jobs",icon:Mh},{key:"cv",label:"CV",icon:Gu},{key:"messages",label:"Beskeder",icon:wh,badge:"3"}],kv=[{key:"agents",label:"Jobagenter",icon:V0,dot:!0},{key:"ai-agent",label:"AI-agent",icon:Dh,accent:!0},{key:"simulator",label:"Simulator",icon:i0}];function Rl({active:d="dashboard",onNavigate:c}){return s.jsxs("aside",{className:"dash-sidebar",children:[s.jsxs("div",{className:"dash-logo-row",children:[s.jsx("div",{className:"dash-logo-dot",children:"A"}),s.jsx("span",{className:"dash-logo-text",children:"ARBEJD"})]}),s.jsxs("nav",{className:"dash-nav",children:[_v.map(u=>{const o=u.icon,m=u.key===d;return s.jsxs("button",{type:"button",className:m?"dash-nav-item active":"dash-nav-item",onClick:()=>c?.(u.key),children:[s.jsx("span",{className:u.accent?"dash-nav-icon accent":"dash-nav-icon",children:s.jsx(o,{size:19,strokeWidth:1.7})}),s.jsx("span",{className:"dash-nav-label",children:u.label}),u.badge?s.jsx("span",{className:"dash-nav-badge",children:u.badge}):null]},u.key)}),s.jsx("div",{className:"dash-nav-divider"}),kv.map(u=>{const o=u.icon,m=u.key===d;return s.jsxs("button",{type:"button",className:m?"dash-nav-item active":"dash-nav-item",onClick:()=>c?.(u.key),children:[s.jsx("span",{className:u.accent?"dash-nav-icon accent":"dash-nav-icon",children:s.jsx(o,{size:19,strokeWidth:1.7})}),s.jsx("span",{className:"dash-nav-label",children:u.label}),u.dot?s.jsx("span",{className:"dash-nav-dot"}):null]},u.key)})]}),s.jsxs("div",{className:"dash-sidebar-pro",children:[s.jsx("div",{className:"dash-sidebar-pro-glow"}),s.jsx(fs,{size:19,strokeWidth:1.8}),s.jsx("h4",{children:"Pro-medlemskab"}),s.jsx("p",{children:"Faa ubegrænsede simuleringer"})]})]})}function Hl({actions:d,imageUrl:c,name:u,onLogout:o,onToggleTheme:m,theme:y="light"}){return s.jsxs("header",{className:"dash-topbar",children:[m?s.jsxs("button",{type:"button",className:"dash-theme-btn",onClick:m,children:[y==="dark"?s.jsx(av,{size:15,strokeWidth:1.8}):s.jsx(T0,{size:15,strokeWidth:1.8}),s.jsx("span",{children:y==="dark"?"Light":"Dark"})]}):null,d?s.jsx("div",{className:"dash-topbar-actions",children:d}):null,s.jsxs("div",{className:"dash-profile-wrap",children:[s.jsxs("button",{className:"dash-profile-btn",type:"button",children:[c?s.jsx("img",{src:c,alt:u,className:"dash-profile-avatar"}):s.jsx("div",{className:"dash-profile-avatar dash-profile-avatar-fallback",children:u.slice(0,1).toUpperCase()}),s.jsx("span",{children:u}),s.jsx(Kg,{size:15,strokeWidth:1.8})]}),s.jsxs("div",{className:"dash-profile-menu",children:[s.jsxs("button",{type:"button",children:[s.jsx($g,{size:16,strokeWidth:1.8})," Profil"]}),s.jsxs("button",{type:"button",children:[s.jsx(Lh,{size:16,strokeWidth:1.8})," Indstillinger"]}),s.jsx("div",{className:"dash-profile-divider"}),s.jsxs("button",{type:"button",className:"danger",onClick:o,children:[s.jsx(j0,{size:16,strokeWidth:1.8})," Log ud"]})]})]})]})}const Tv={paymentOverview:null,jobAgentFilters:[],cvSuggestions:[],escos:[]};function zv(d){return d.trim().slice(0,1).toUpperCase()||"A"}function Dv(d){return Math.max(68,98-d*4)}function Mv(d,c){const u=c.trim().toLowerCase();return u?d.filter(o=>o.preferedLabelDa.toLowerCase().includes(u)).slice(0,8):[]}function Ev({onLogout:d,onNavigate:c,onOpenJobDetail:u,onToggleTheme:o,theme:m}){const y=L.useMemo(()=>new jv,[]),O=L.useMemo(()=>new Fu,[]),[G,w]=L.useState("Lasse"),[N,V]=L.useState(void 0),[z,q]=L.useState(Tv),[Z,ae]=L.useState([]),[Y,fe]=L.useState(!0),[ge,je]=L.useState(""),[ie,re]=L.useState(""),[de,K]=L.useState(""),[M,ye]=L.useState(""),[Ae,ze]=L.useState(""),[R,Q]=L.useState(25);L.useEffect(()=>{let U=!0;async function $(){fe(!0);const[ce,h,S]=await Promise.all([y.getCandidateProfile(),y.loadInitialData(),O.getTabItems("jobs")]);U&&(w(ce.name),V(ce.imageUrl),q(h),ae(S),fe(!1))}return $(),()=>{U=!1}},[y,O]);async function le(){const U=await y.loadInitialData();q(U)}async function I(){const U=ie.trim()||ge.trim()||de.trim(),$=y.getEscoSuggestions(U,z.escos,z.jobAgentFilters)[0]||Mv(z.escos,U)[0];$&&(await y.addEscoToFilter($.id),await le(),je(""),re(""),K(""),ye(""),ze(""),Q(25))}async function oe(U){await y.setFilterVisibility(U,!U.visible),await le()}const _=z.jobAgentFilters,H=(Z.length>0?Z:[]).slice(0,6);return s.jsxs("section",{className:`dash-root ${m==="dark"?"theme-dark":""}`,children:[s.jsx("div",{className:"dash-orb dash-orb-1"}),s.jsx("div",{className:"dash-orb dash-orb-2"}),s.jsx("div",{className:"dash-orb dash-orb-3"}),s.jsx(Rl,{active:"ai-agent",onNavigate:c}),s.jsxs("main",{className:"dash-main custom-scrollbar ai-agent-main",children:[s.jsx(Hl,{name:G,imageUrl:N,onLogout:d,theme:m,onToggleTheme:o}),s.jsxs("div",{className:"ai-head",children:[s.jsx("h1",{children:"AI-agenter"}),s.jsx("p",{children:"Saet din jobsogning pa autopilot. Lad AI overvage og matche dig med de perfekte jobs."})]}),s.jsxs("section",{className:"ai-create-card",children:[s.jsxs("div",{className:"ai-create-title",children:[s.jsx("div",{className:"ai-create-icon",children:s.jsx(Dh,{size:20,strokeWidth:1.8})}),s.jsx("h2",{children:"Opret ny AI-agent"})]}),s.jsxs("div",{className:"ai-form-grid",children:[s.jsxs("div",{className:"ai-field",children:[s.jsx("label",{children:"Agentens navn"}),s.jsx("input",{value:ge,onChange:U=>je(U.target.value),placeholder:"F.eks. Frontend Udvikler CPH"})]}),s.jsxs("div",{className:"ai-field",children:[s.jsx("label",{children:"Sogetekst / Nogleord"}),s.jsx("input",{value:ie,onChange:U=>re(U.target.value),placeholder:"F.eks. React, TypeScript, Tailwind"})]}),s.jsxs("div",{className:"ai-field",children:[s.jsx("label",{children:"Arbejdsomrade"}),s.jsxs("select",{value:de,onChange:U=>K(U.target.value),children:[s.jsx("option",{value:"",children:"Vaelg branche"}),s.jsx("option",{value:"IT & Udvikling",children:"IT & Udvikling"}),s.jsx("option",{value:"Design & UX",children:"Design & UX"}),s.jsx("option",{value:"Salg & Marketing",children:"Salg & Marketing"}),s.jsx("option",{value:"HR & Ledelse",children:"HR & Ledelse"})]})]}),s.jsxs("div",{className:"ai-field",children:[s.jsx("label",{children:"Arbejdstype"}),s.jsxs("select",{value:M,onChange:U=>ye(U.target.value),children:[s.jsx("option",{value:"",children:"Vaelg type"}),s.jsx("option",{value:"Fuldtid",children:"Fuldtid"}),s.jsx("option",{value:"Deltid",children:"Deltid"}),s.jsx("option",{value:"Freelance",children:"Freelance / Konsulent"}),s.jsx("option",{value:"Studiejob",children:"Studiejob"})]})]}),s.jsxs("div",{className:"ai-field",children:[s.jsx("label",{children:"Arbejdssted"}),s.jsxs("div",{className:"ai-location-wrap",children:[s.jsx(Vn,{size:16,strokeWidth:1.8}),s.jsx("input",{value:Ae,onChange:U=>ze(U.target.value),placeholder:"By eller postnummer"})]})]}),s.jsxs("div",{className:"ai-field ai-distance-field",children:[s.jsxs("div",{className:"ai-distance-head",children:[s.jsx("label",{children:"Maks. distance"}),s.jsxs("span",{children:[R," km"]})]}),s.jsx("input",{type:"range",min:0,max:100,value:R,onChange:U=>Q(Number(U.target.value))})]})]}),s.jsx("div",{className:"ai-create-actions",children:s.jsxs("button",{type:"button",onClick:()=>{I()},children:[s.jsx(G0,{size:16,strokeWidth:1.8})," Gem AI-agent"]})})]}),s.jsxs("section",{className:"ai-agents-section",children:[s.jsx("h3",{children:"Dine aktive agenter"}),s.jsxs("div",{className:"ai-agents-row custom-scrollbar",children:[_.length===0?s.jsx("p",{className:"dash-loading",children:"Ingen aktive agenter endnu."}):null,_.map((U,$)=>s.jsxs("article",{className:"ai-agent-chip-card",children:[s.jsxs("div",{className:"ai-agent-card-head",children:[s.jsxs("div",{className:"ai-agent-chip-left",children:[s.jsx("div",{className:`ai-agent-mini-icon ${$%2===0?"teal":"indigo"}`,children:$%2===0?s.jsx(_0,{size:16,strokeWidth:1.8}):s.jsx(Rh,{size:16,strokeWidth:1.8})}),s.jsxs("div",{children:[s.jsx("h4",{children:U.escoName}),s.jsx("p",{children:U.isCalculated?"Aktiv siden i går":"Aktiv"})]})]}),s.jsx("button",{type:"button",className:U.visible?"ai-toggle on":"ai-toggle",onClick:()=>{oe(U)},children:s.jsx("span",{})})]}),s.jsxs("div",{className:"ai-tags",children:[s.jsx("span",{children:U.escoName}),s.jsx("span",{children:Ae||"København"}),s.jsxs("span",{children:[R," km"]})]})]},U.id))]})]}),s.jsxs("section",{className:"ai-jobs-section",children:[s.jsxs("div",{className:"ai-jobs-head",children:[s.jsxs("h3",{children:[s.jsx(fs,{size:16,strokeWidth:1.8})," Anbefalede jobs til dig"]}),s.jsx("span",{children:"Opdateret for 5 min siden"})]}),s.jsxs("div",{className:"ai-jobs-grid",children:[Y?s.jsx("p",{className:"dash-loading",children:"Indlaeser anbefalinger..."}):null,!Y&&H.length===0?s.jsx("p",{className:"dash-loading",children:"Ingen jobanbefalinger fundet endnu."}):null,H.map((U,$)=>s.jsxs("article",{className:"ai-job-card",role:"button",tabIndex:0,onClick:()=>u(U.id,U.fromJobnet,"ai-agent"),onKeyDown:ce=>{(ce.key==="Enter"||ce.key===" ")&&(ce.preventDefault(),u(U.id,U.fromJobnet,"ai-agent"))},children:[s.jsx("div",{className:`ai-job-rail ${$%3===2?"indigo":"teal"}`}),s.jsxs("div",{className:"ai-job-top",children:[U.companyLogoImage||U.logoUrl?s.jsx("img",{src:U.companyLogoImage||U.logoUrl,alt:U.companyName,className:"ai-company-logo"}):s.jsx("div",{className:"ai-company-logo-fallback",children:zv(U.companyName)}),s.jsxs("div",{className:"ai-match-col",children:[s.jsxs("div",{className:"ai-match-pill",children:[s.jsx(nv,{size:13,strokeWidth:1.8})," ",Dv($),"% Match"]}),s.jsxs("small",{children:["Via: ",_[0]?.escoName||"AI-agent"]})]})]}),s.jsxs("div",{className:"ai-job-title-wrap",children:[s.jsx("h4",{children:U.title}),s.jsxs("p",{children:[U.companyName," • ",U.address||"Lokation"]})]}),s.jsxs("div",{className:"ai-job-tags",children:[s.jsx("span",{children:U.occupationName||"Frontend"}),s.jsx("span",{children:U.fromJobnet?"Jobnet":"Arbejd.com"}),s.jsx("span",{children:U.candidateDistance!=null?`${Math.round(U.candidateDistance)} km`:"Remote"})]}),s.jsxs("div",{className:"ai-job-bottom",children:[s.jsx("span",{children:"Slået op for nyligt"}),s.jsxs("button",{type:"button",onClick:ce=>{ce.stopPropagation(),u(U.id,U.fromJobnet,"ai-agent")},children:["Læs mere ",s.jsx(Ol,{size:14,strokeWidth:1.8})]})]})]},U.id))]})]})]})]})}class Cv{constructor(c=He){this.http=c}generateApplication(c,u,o,m){let y=k.backendApiV2+"1.0.0/client/ai_handler/create_my_application",O={isStar:c,jobId:u,language:o,userInput:m};return this.http.post(y,O)}listGeneratedJobApplications(c){let u=k.backendApiV2+"1.0.0/client/ai_handler/list_created_job_application/"+c;return this.http.get(u)}listPredefinedUserInput(){let c=k.backendApiV2+"1.0.0/client/ai_handler/list_predefined_user_input";return this.http.get(c)}getJobApplication(c){let u=k.backendApiV2+"1.0.0/client/ai_handler/"+c;return this.http.get(u)}updateMyCvDescriptions(c){let u=k.backendApiV2+"1.0.0/client/ai_handler/update_my_cv_descriptions",o={language:c};return this.http.post(u,o)}updateStatesOnMyCvDescription(c,u,o){let m=k.backendApiV2+"1.0.0/client/ai_handler/update_states_on_my_cv_descriptions/"+c,y={state:u,subState:o};return this.http.put(m,y)}getMyCvDescriptions(){let c=k.backendApiV2+"1.0.0/client/ai_handler/get_my_cv_descriptions";return this.http.get(c)}submitJobApplicationRating(c,u,o){let m=k.backendApiV2+"1.0.0/client/ai_handler/job_application_rating",y={ai_generated_job_application_id:c,rating:u,rating_text:o};return this.http.post(m,y)}startApplicationExamination(c){const u=k.backendApiV2+"1.0.0/client/ai_handler/create_application_examination",o={ai_generated_job_application_id:c};return this.http.post(u,o)}getApplicationExamination(c){const u=k.backendApiV2+"1.0.0/client/ai_handler/application_examination/"+encodeURIComponent(c);return this.http.get(u)}getApplicationExaminationByJobApplicationId(c){const u=k.backendApiV2+"1.0.0/client/ai_handler/application_examination_by_job_application/"+c;return this.http.get(u)}}class Uv{constructor(c=He){this.http=c}searchForCertification(c){let u=encodeURIComponent(c),o=k.backendApiV2+`1.0.0/client/certificate?search_text=${u}`;return this.http.get(o)}saveCertification(c){let u=k.backendApiV2+"1.0.0/client/candidate_certificate",o={qualification_id:c};return this.http.post(u,o)}updateCertification(c){let u=k.backendApiV2+"1.0.0/client/candidate_certificate/"+c.id,o=c;return this.http.put(u,o)}removeCertification(c){let u=k.backendApiV2+"1.0.0/client/candidate_certificate/"+c;return this.http.delete(u)}addUnknownCertificate(c){let u=k.backendApiV2+"1.0.0/client/certificate",o={certificate_name:c};return this.http.post(u,o)}}class Ov{constructor(c=He){this.http=c}sendMyCvToEmail(){let c=k.backendApi+"api/1.1.0/candidate/sendPdf",u={};return this.http.post(c,u)}getMyCv(){let c=k.backendApiV2+"1.0.0/client/candidate/pdf";return this.http.get(c,{responseType:"blob"})}getMyCvV2(c){let u=k.backendApiV2+"1.0.0/client/candidate/pdf_url?language="+c;return this.http.get(u)}generateCv(c){let u=k.backendApiV2+"1.0.0/client/candidate/generateCv",o={language:c};return this.http.post(u,o)}}class wv{constructor(c=He,u=wl){this.http=c,this.localStorageService=u}uploadCv(c,u){const o=k.backendApiV2+"1.0.0/client/cv_upload";return this.http.post(o,c,{headers:{Authorization:`Bearer ${u}`}})}getCvUploadData(){let c=k.backendApiV2+"1.0.0/client/cv_upload/get_upload_cv";return this.http.get(c)}setProfileTextToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/profile_text_is_done/"+c,o={};return this.http.put(u,o)}setExperienceToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/experience_is_done/"+c,o={};return this.http.put(u,o)}setEducationToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/education_is_done/"+c,o={};return this.http.put(u,o)}setQualificationToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/qualification_is_done/"+c,o={};return this.http.put(u,o)}setCertificateToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/certificate_is_done/"+c,o={};return this.http.put(u,o)}setLanguageToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/language_is_done/"+c,o={};return this.http.put(u,o)}setDriversLicenseToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/drivers_license_is_done/"+c,o={};return this.http.put(u,o)}setCvUploadToDone(c){let u=k.backendApiV2+"1.0.0/client/cv_upload/cv_is_done/"+c,o={};return this.http.put(u,o)}}class Lv{constructor(c=He){this.http=c}getAllDriverLicenses(){let c=k.backendApi+"api/1.1.0/driversLicenses";return this.http.get(c)}updateDriverLicense(c,u){let o=k.backendApi+"api/1.1.0/candidate/driversLicense/"+c,m={};return this.http.put(o,m)}removeLanguage(c){let u=k.backendApiV2+"1.0.0/client/candidate_drivers_license/"+c;return this.http.delete(u)}saveDriverLicense(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_drivers_license",m={level:u,drivers_license_id:c.id};return this.http.post(o,m)}saveDriverLicenseV2(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_drivers_license",m={level:c,drivers_license_id:u};return this.http.post(o,m)}}class Rv{constructor(c=He){this.http=c}searchForEducations(c){let u=k.backendApi+"api/1.1.0/educations/search/"+c;return this.http.get(u)}searchForSchools(c){let u=k.backendApi+"api/1.1.0/institutions/search/"+c;return this.http.get(u)}saveEducation(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_education",m={comments:c.comments,education_disced_15:c.education.disced15,from_date:c.fromDate,to_date:c.toDate,institution_number:c.institution?.instNumber,is_current:c.isCurrent,language:u};return this.http.post(o,m)}removeEducation(c){let u=k.backendApiV2+"1.0.0/client/candidate_education/"+c;return this.http.delete(u)}updateEducation(c,u,o){let m=k.backendApiV2+"1.0.0/client/candidate_education/"+c,y={comments:u.comments,from_date:u.fromDate,to_date:u.toDate,is_current:u.isCurrent,language:o};return this.http.put(m,y)}getEducationOccupationSuggestions(c){let u=k.backendApi+"api/1.1.0/educations/suggestions/occupation/"+c;return this.http.get(u)}saveUnknownEducation(c){let u=k.backendApiV2+"1.0.0/client/education/save_unknown_education",o={education_name:c};return this.http.post(u,o)}saveEducationV2(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_education",m={comments:c.comments,education_disced_15:c.education_disced_15,from_date:c.from_date,to_date:c.to_date,institution_number:c.institution_number,is_current:c.is_current,language:u};return this.http.post(o,m)}}class Hv{constructor(c=He){this.http=c}getAllLanguages(){let c=k.backendApi+"api/1.1.0/languages";return this.http.get(c)}saveLanguage(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_language",m={language_id:u.id,level:c};return this.http.post(o,m)}updateLanguage(c,u,o){let m=k.backendApiV2+"1.0.0/client/candidate_language/"+c,y={level:u};return this.http.put(m,y)}removeLanguage(c){let u=k.backendApiV2+"1.0.0/client/candidate_language/"+c;return this.http.delete(u)}saveLanguageV2(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_language",m={language_id:u,level:c};return this.http.post(o,m)}}class Vv{constructor(c=He){this.http=c}searchForQualification(c){let u=k.backendApi+"api/1.1.0/qualifications/type/3/search/"+c;return this.http.get(u)}updateQualification(c,u){let o=k.backendApiV2+"1.0.0/client/candidate_qualification/"+c,m={level:u};return this.http.put(o,m)}saveQualification(c){let u=k.backendApiV2+"1.0.0/client/candidate_qualification",o={level:c.level,qualification_id:c.qualification.id};return this.http.post(u,o)}removeQualification(c){let u=k.backendApiV2+"1.0.0/client/candidate_qualification/"+c;return this.http.delete(u)}getQualificationsOccupationSuggestions(c,u){let o=k.backendApi+"api/1.1.0/qualifications/type/"+u+"/suggestions/occupation/"+c;return this.http.get(o)}addUnknownQualification(c){let u=k.backendApi+"api/1.1.0/qualifications/type/3/fromCandidate",o={name:c,type:3};return this.http.post(u,o)}saveQualificationV2(c){let u=k.backendApiV2+"1.0.0/client/candidate_qualification",o={level:c.level,qualification_id:c.qualification_id};return this.http.post(u,o)}}class qv{constructor(c=He){this.http=c}addUnknownOccupation(c){let u=k.backendApi+"api/1.1.0/occupations/fromCandidate",o={name:c};return this.http.post(u,o)}}class Bv{constructor(c=He){this.http=c}saveUnknownInstitution(c){let u=k.backendApiV2+"1.0.0/client/institution/save_unknown_institution",o={institution_name:c};return this.http.post(u,o)}}class Yv{constructor(c=new Ll,u=new Ov,o=new wv,m=new Ku,y=new Cv,O=new Rv,G=new Vv,w=new Uv,N=new Hv,V=new Lv,z=new Vh,q=new qv,Z=new Bv,ae=wl){this.candidateService=c,this.cvService=u,this.cvUploadService=o,this.subscriptionService=m,this.aiHandlerService=y,this.educationService=O,this.qualificationService=G,this.certificationService=w,this.languageService=N,this.driverLicenseService=V,this.escoService=z,this.occupationService=q,this.institutionService=Z,this.localStorageService=ae}escosCache=null;async getSnapshot(){const[c,u,o,m,y,O,G,w,N,V]=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:c.status==="fulfilled"?c.value:null,experiences:u.status==="fulfilled"?u.value:[],educations:o.status==="fulfilled"?o.value:[],skills:m.status==="fulfilled"?m.value:[],certifications:y.status==="fulfilled"?y.value:[],languages:O.status==="fulfilled"?O.value:[],driverLicenses:G.status==="fulfilled"?G.value:[],paymentOverview:w.status==="fulfilled"?w.value:null,cvUploadData:N.status==="fulfilled"?N.value:null,aiGeneratedCVDescription:V.status==="fulfilled"&&V.value?.id?V.value:null}}async setActiveSeeker(c,u,o){const m={...c,isActive:u};return this.candidateService.updateCandidate(m,o)}async updateCandidate(c,u){return this.candidateService.updateCandidate(c,u)}async generateCv(c){await this.cvService.generateCv(c)}async getCvDownloadUrl(c){return(await this.cvService.getMyCvV2(c)).url}async uploadCv(c,u){const o=await this.localStorageService.getAuthToken();if(!o)throw new Error("No auth token found.");await this.cvUploadService.uploadCv({base_64_cv_file:c,cv_file_type:u},o)}async optimizeCv(c){await this.aiHandlerService.updateMyCvDescriptions(c)}async updateExperience(c,u){await this.candidateService.updateExperience(c,u)}async updateEducation(c,u){const o={comments:c.comments,education:c.education,institution:c.institution,fromDate:new Date(c.fromDate),toDate:new Date(c.toDate),isCurrent:c.isCurrent};await this.educationService.updateEducation(c.id,o,u)}async updateCertification(c){await this.certificationService.updateCertification(c)}async updateLanguage(c){const u={id:c.language.id,isO639:c.language.isO639,name:c.language.name,ownName:c.language.ownName,priority:c.language.priority};await this.languageService.updateLanguage(c.id,c.level,u)}async removeExperience(c){await this.candidateService.removeExperience(c)}async removeEducation(c){await this.educationService.removeEducation(c)}async removeQualification(c){await this.qualificationService.removeQualification(c)}async removeCertification(c){await this.certificationService.removeCertification(c)}async removeLanguage(c){await this.languageService.removeLanguage(c)}async removeDriverLicense(c){await this.driverLicenseService.removeLanguage(c)}async getEscoSuggestions(c,u=25){this.escosCache||(this.escosCache=await this.escoService.listAllEscos());const o=c.trim().toLowerCase();return o?this.escosCache.filter(m=>m.preferedLabelDa.toLowerCase().includes(o)).slice(0,u):this.escosCache.slice(0,u)}async getLanguageOptions(){return(await this.languageService.getAllLanguages()).allLanguages??[]}async getDriverLicenseOptions(){return this.driverLicenseService.getAllDriverLicenses()}async createExperience(c,u){let o=c.escoId??null;if(!o&&c.occupationName?.trim()&&(o=(await this.occupationService.addUnknownOccupation(c.occupationName.trim())).id),!o)throw new Error("Vælg eller opret en stilling først.");await this.candidateService.saveExperienceV2({companyName:c.companyName,comments:c.comments,fromDate:c.fromDate,toDate:c.toDate,isCurrent:c.isCurrent,escoId:o},u)}async createEducation(c,u){let o=c.educationDisced15??null;if(!o&&c.educationName?.trim()&&(o=(await this.educationService.saveUnknownEducation(c.educationName)).disced15),!o)throw new Error("Vælg eller opret en uddannelse først.");let m=c.institutionNumber;!m&&c.institutionName?.trim()&&(m=(await this.institutionService.saveUnknownInstitution(c.institutionName.trim())).inst_number),await this.educationService.saveEducationV2({comments:c.comments,institution_number:m,from_date:c.fromDate,to_date:c.toDate,education_disced_15:o,is_current:c.isCurrent},u)}async createCertification(c){let u=c.certificateId??null;if(!u&&c.certificateName?.trim()&&(u=(await this.certificationService.addUnknownCertificate(c.certificateName.trim())).certificate_id),!u)throw new Error("Vælg eller opret et certifikat først.");await this.certificationService.saveCertification(u)}async createLanguage(c,u){await this.languageService.saveLanguageV2(u,c)}async getQualificationSuggestions(c){const u=c.trim();return u?this.qualificationService.searchForQualification(u):[]}async createQualification(c){let u=c.qualificationId?.trim()||"";if(!u&&c.qualificationName?.trim()&&(u=(await this.qualificationService.addUnknownQualification(c.qualificationName.trim())).id),!u)throw new Error("Vælg eller opret en kvalifikation først.");await this.qualificationService.saveQualificationV2({qualification_id:u,level:c.level})}async getEducationSuggestions(c){const u=c.trim();return u?this.educationService.searchForEducations(u):[]}async getSchoolSuggestions(c){const u=c.trim();return u?this.educationService.searchForSchools(u):[]}async getCertificationSuggestions(c){const u=c.trim();return u?this.certificationService.searchForCertification(u):[]}async createDriverLicense(c,u){await this.driverLicenseService.saveDriverLicenseV2(u,c)}}const Qv={candidate:null,experiences:[],educations:[],skills:[],certifications:[],languages:[],driverLicenses:[],paymentOverview:null,cvUploadData:null,aiGeneratedCVDescription:null},Gv=[{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."}],Jv=[{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 rs(d){if(!d)return null;const c=d instanceof Date?d:new Date(d);return Number.isNaN(c.getTime())?null:c}function ph(d){const c=rs(d);return c?new Intl.DateTimeFormat("da-DK",{month:"short",year:"numeric"}).format(c):"Ukendt"}function yh(d,c,u){const o=ph(d),m=u?"Nu":ph(c);return`${o} - ${m}`}function Xv(d){const c=rs(d);return c?new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"long",year:"numeric"}).format(c):"Ikke angivet"}function bh(d){return[...d].sort((c,u)=>{const o=rs(c.fromDate)?.getTime()??0;return(rs(u.fromDate)?.getTime()??0)-o})}function Zv(d){return d.qualification?.name||"Kvalifikation"}function Kv(d){return d.qualification?.name||d.levelName||"Certificering"}function Wv(d){return d.driversLicense?.name||d.levelName||"Korekort"}function Fv(d){return d.levelName||"Niveau ukendt"}function $v({onLogout:d,onNavigate:c,onToggleTheme:u,theme:o}){const m=L.useMemo(()=>new Yv,[]),[y,O]=L.useState("standard"),[G,w]=L.useState(Qv),[N,V]=L.useState(!0);L.useEffect(()=>{let M=!0;return m.getSnapshot().then(ye=>{M&&w(ye)}).finally(()=>{M&&V(!1)}),()=>{M=!1}},[m]);const z=G.candidate,q=z?.firstName?.trim()||z?.name?.trim()||"Lasse",Z=z?.firstName||"Lasse",ae=z?.lastName||"Hansen",Y=z?.imageUrl||z?.image||"",fe=G.experiences.length>0?bh(G.experiences):[],ge=G.educations.length>0?bh(G.educations):[],je=G.skills,ie=G.languages,re=G.certifications,de=G.driverLicenses,K=ie.length>0?ie.map(M=>({id:M.id,name:M.language?.name||"Sprog",level:Fv(M)})):[{id:"da",name:"Dansk",level:"Modersmal"},{id:"en",name:"Engelsk",level:"Flydende"}];return s.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[s.jsx("div",{className:"dash-orb dash-orb-1"}),s.jsx("div",{className:"dash-orb dash-orb-2"}),s.jsx("div",{className:"dash-orb dash-orb-3"}),s.jsx(Rl,{active:"cv",onNavigate:c}),s.jsxs("main",{className:`dash-main custom-scrollbar cv-page ${y==="reference"?"cv-design-reference":""}`,children:[s.jsx(Hl,{name:q,imageUrl:Y||void 0,onLogout:d,theme:o,onToggleTheme:u,actions:s.jsxs("button",{type:"button",className:"cv-design-toggle",onClick:()=>O(M=>M==="standard"?"reference":"standard"),children:[y==="reference"?s.jsx(Ch,{size:16,strokeWidth:1.8}):s.jsx(Uh,{size:16,strokeWidth:1.8}),s.jsx("span",{children:y==="reference"?"Skift til standard design":"Skift til reference design"})]})}),s.jsxs("div",{className:"cv-head",children:[s.jsxs("div",{children:[s.jsx("h1",{children:"Dit CV"}),s.jsx("p",{children:"Handter dine faglige oplysninger, erfaringer og uddannelser."})]}),s.jsxs("button",{type:"button",className:"cv-edit-btn",children:[s.jsx(E0,{size:16,strokeWidth:1.8})," Rediger CV"]})]}),N?s.jsx("p",{className:"dash-loading",children:"Indlaeser CV..."}):null,s.jsxs("div",{className:"cv-layout",children:[s.jsxs("div",{className:"cv-left",children:[s.jsxs("article",{className:"cv-card",children:[s.jsx("div",{className:"cv-avatar-wrap",children:Y?s.jsx("img",{src:Y,alt:q,className:"cv-avatar"}):s.jsx("div",{className:"cv-avatar cv-avatar-fallback",children:q.slice(0,1).toUpperCase()})}),s.jsxs("div",{className:"cv-section-head",children:[s.jsx(sv,{size:18,strokeWidth:1.8}),s.jsx("h2",{children:"Personlige oplysninger"})]}),s.jsxs("div",{className:"cv-personal-list",children:[s.jsxs("div",{children:[s.jsx("span",{children:"Fornavn"}),s.jsx("strong",{children:Z})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Efternavn"}),s.jsx("strong",{children:ae})]}),s.jsxs("div",{children:[s.jsx("span",{children:"E-mail"}),s.jsx("strong",{children:z?.email||"lasse@eksempel.dk"})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Telefon"}),s.jsx("strong",{children:z?.phoneNumber||"+45 12 34 56 78"})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Fodselsdato"}),s.jsx("strong",{children:Xv(z?.birthday)})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Kon"}),s.jsx("strong",{children:z?.gender||"Mand"})]})]})]}),s.jsxs("article",{className:"cv-card",children:[s.jsxs("div",{className:"cv-section-head",children:[s.jsx(ev,{size:18,strokeWidth:1.8}),s.jsx("h2",{children:"Kvalifikationer"})]}),s.jsx("div",{className:"cv-chip-wrap",children:(je.length>0?je.map(Zv):["HTML & CSS","Tailwind CSS","JavaScript","React","UI/UX Design"]).slice(0,12).map(M=>s.jsx("span",{className:"cv-chip",children:M},M))})]}),s.jsxs("article",{className:"cv-card",children:[s.jsxs("div",{className:"cv-section-head",children:[s.jsx(Eh,{size:18,strokeWidth:1.8}),s.jsx("h2",{children:"Sprog"})]}),s.jsx("div",{className:"cv-language-list",children:K.map(M=>s.jsxs("div",{children:[s.jsx("strong",{children:M.name}),s.jsx("span",{children:M.level})]},M.id))})]}),s.jsxs("div",{className:"cv-mini-grid",children:[s.jsxs("article",{className:"cv-card",children:[s.jsxs("div",{className:"cv-section-head",children:[s.jsx(wg,{size:18,strokeWidth:1.8}),s.jsx("h2",{children:"Certificeringer"})]}),s.jsxs("ul",{className:"cv-list",children:[(re.length>0?re:[]).slice(0,4).map(M=>s.jsxs("li",{children:[s.jsx(za,{size:15,strokeWidth:1.8})," ",Kv(M)]},M.id)),re.length===0?s.jsxs(s.Fragment,{children:[s.jsxs("li",{children:[s.jsx(za,{size:15,strokeWidth:1.8})," AWS Certified Developer"]}),s.jsxs("li",{children:[s.jsx(za,{size:15,strokeWidth:1.8})," Certificeret Scrum Master"]})]}):null]})]}),s.jsxs("article",{className:"cv-card",children:[s.jsxs("div",{className:"cv-section-head",children:[s.jsx(Gg,{size:18,strokeWidth:1.8}),s.jsx("h2",{children:"Korekort"})]}),s.jsx("div",{className:"cv-chip-wrap",children:(de.length>0?de.map(Wv):["B (Almindelig bil)","A (Motorcykel)"]).map(M=>s.jsx("span",{className:"cv-chip",children:M},M))})]})]})]}),s.jsxs("div",{className:"cv-right",children:[s.jsxs("section",{children:[s.jsxs("div",{className:"cv-timeline-head",children:[s.jsx("div",{className:"cv-timeline-icon",children:s.jsx(Mh,{size:19,strokeWidth:1.8})}),s.jsx("h2",{children:"Erhvervserfaring"})]}),s.jsx("div",{className:"cv-timeline",children:(fe.length>0?fe:Gv).map((M,ye)=>{const Ae="occupation"in M?M.occupation?.name||"Stilling":M.title,ze="companyName"in M?M.companyName:M.company,R="comments"in M?M.comments:M.description,Q="fromDate"in M?M.fromDate:M.from,le="toDate"in M?M.toDate:M.to,I="isCurrent"in M?!!M.isCurrent:!1;return s.jsxs("article",{className:"cv-timeline-item",children:[s.jsx("div",{className:"cv-timeline-dot",children:s.jsx(Gu,{size:15,strokeWidth:1.8})}),s.jsxs("div",{className:"cv-timeline-card",children:[s.jsx("h3",{children:Ae}),s.jsxs("div",{className:"cv-meta",children:[s.jsx("strong",{children:ze}),s.jsx("span",{children:yh(Q,le,I)})]}),s.jsx("p",{children:R||"Ingen beskrivelse."})]})]},"id"in M?String(M.id):`exp-${ye}`)})})]}),s.jsx("div",{className:"cv-divider"}),s.jsxs("section",{children:[s.jsxs("div",{className:"cv-timeline-head",children:[s.jsx("div",{className:"cv-timeline-icon",children:s.jsx(u0,{size:19,strokeWidth:1.8})}),s.jsx("h2",{children:"Uddannelse"})]}),s.jsx("div",{className:"cv-timeline",children:(ge.length>0?ge:Jv).map((M,ye)=>{const Ae="education"in M?M.education?.name||"Uddannelse":M.title,ze="institution"in M?M.institution?.name||"Institution":M.school,R="comments"in M?M.comments:M.description,Q="fromDate"in M?M.fromDate:M.from,le="toDate"in M?M.toDate:M.to,I="isCurrent"in M?!!M.isCurrent:!1;return s.jsxs("article",{className:"cv-timeline-item",children:[s.jsx("div",{className:"cv-timeline-dot",children:s.jsx(Gu,{size:15,strokeWidth:1.8})}),s.jsxs("div",{className:"cv-timeline-card",children:[s.jsx("h3",{children:Ae}),s.jsxs("div",{className:"cv-meta",children:[s.jsx("strong",{children:ze}),s.jsx("span",{children:yh(Q,le,I)})]}),s.jsx("p",{children:R||"Ingen beskrivelse."})]})]},"id"in M?String(M.id):`edu-${ye}`)})})]})]})]})]})]})}class Iv{constructor(c=He){this.http=c}getNotificationSetting(){const c=k.backendApiV2+"2.0.0/client/notification/settings";return this.http.get(c)}createNotificationSetting(c){const u=k.backendApiV2+"2.0.0/client/notification/settings";return this.http.post(u,c)}updateNotificationSetting(c,u){const o=k.backendApiV2+"2.0.0/client/notification/settings/"+c;return this.http.put(o,u)}deleteNotificationSetting(c){const u=k.backendApiV2+"2.0.0/client/notification/settings/"+c;return this.http.delete(u)}getNewNotificationCount(){let c=k.backendApiV2+"1.0.0/client/notification/unseen_notifications";return this.http.get(c)}getNotifications(c,u){let o=k.backendApiV2+"1.0.0/client/notification/"+c+"/"+u;return this.http.get(o)}notificationSeenByUser(c){let u=k.backendApiV2+"1.0.0/client/notification/seen_by_user/"+c,o={};return this.http.put(u,o)}}class Pv{constructor(c=He,u=wl){this.http=c,this.localStorage=u}listSimulationPersonalities(){let c=k.backendApiV2+"client/simulation/1.0.0/list_simulation_personalities",u=new Ka().set("language","da");return this.http.get(c,{params:u})}getInterviewEvaluation(c){const u=k.backendApiV2+`client/simulation/1.0.0/interview_evaluation/${c}`;return this.http.get(u)}listInterviews(c=20,u=0){const o=k.backendApiV2+"client/job_simulator/1.0.0/list_interviews",m=new Ka().set("limit",c.toString()).set("offset",u.toString());return this.http.get(o,{params:m})}submitEvaluationRating(c,u,o){const m=k.backendApiV2+"client/simulation/1.0.0/evaluation_rating",y={interview_id:c,rating:u,rating_text:o};return this.http.post(m,y)}submitInterviewRating(c,u,o){const m=k.backendApiV2+"client/simulation/1.0.0/interview_rating",y={interview_id:c,rating:u,rating_text:o};return this.http.post(m,y)}}class ep{constructor(c=He){this.http=c}chatMessageThreads=[];getChatMessages(){let c=k.backendApi+"api/1.1.0/chatMessages/forCandidate/";return this.http.get(c)}sendMessage(c){let u=k.backendApi+"api/1.1.0/chatMessages/"+c.threadId+"/fromCandidate";return this.http.post(u,c)}markThreadRead(c){let u=k.backendApi+"api/1.1.0/chatMessages/markRead/"+c;return this.http.get(u)}}class tp{constructor(c=He){this.http=c}getUnreadMessages(){let c=k.backendApi+"api/1.1.0/chatMessages/getUnreadCount";return this.http.get(c)}}function us(d){if(!d)return 0;const u=(d instanceof Date?d:new Date(d)).getTime();return Number.isNaN(u)?0:u}function Bu(d,c){const u=d?.timeSent?new Date(d.timeSent):new Date,o=d?.seen?new Date(d.seen):void 0;return{id:d?.id,threadId:d?.threadId??c,timeSent:u,fromCandidate:!!d?.fromCandidate,text:d?.text??"",seen:o}}class qh{constructor(c=new ep,u=new tp,o=new Ll){this.chatMessagesService=c,this.messageService=u,this.candidateService=o}async getCandidateProfile(){try{const c=await this.candidateService.getCandidate(),u=c.firstName?.trim()||c.name?.trim()||"Lasse",o=c.imageUrl||c.image||void 0;return{name:u,imageUrl:o}}catch{return{name:"Lasse"}}}async getThreads(){return(await this.chatMessagesService.getChatMessages()??[]).map(u=>{const o=(u.allMessages??[]).map(y=>Bu(y,u.id));o.sort((y,O)=>us(y.timeSent)-us(O.timeSent));const m=u.latestMessage?Bu(u.latestMessage,u.id):o[o.length-1]??Bu(void 0,u.id);return{...u,allMessages:o,latestMessage:m}}).sort((u,o)=>us(o.latestMessage?.timeSent)-us(u.latestMessage?.timeSent))}async getUnreadCount(){const c=await this.messageService.getUnreadMessages();return Number(c?.unreadCount??0)}async sendMessage(c,u){const o={threadId:c,text:u.trim(),fromCandidate:!0,timeSent:new Date};return this.chatMessagesService.sendMessage(o)}async markThreadReadByMessageId(c){c&&await this.chatMessagesService.markThreadRead(c)}}function qn(d){return typeof d=="object"&&d!==null?d:null}function Et(d){return typeof d=="string"?d:""}function ap(d){return typeof d=="number"?d:null}function lp(d){const c=qn(d);if(!c)return null;const o=qn(c.jobPosting)??c,m=Et(o.id);return m?{id:m,title:Et(o.title),companyName:Et(o.companyName),address:Et(o.address),applicationDeadline:Et(o.applicationDeadline),candidateDistance:ap(o.candidateDistance),fromJobnet:!!o.fromJobnet,logoUrl:Et(o.logoUrl),companyLogoImage:Et(o.companyLogoImage)}:null}function np(d){const c=qn(d);return(Array.isArray(c?.interviews)?c.interviews:[]).map(o=>{const m=qn(o);if(!m)return null;const y=Et(m.id);return y?{id:y,jobName:Et(m.job_name)||"Interview",companyName:Et(m.company_name)||null,interviewDate:Et(m.interview_date)||null,recommendation:Et(m.recommendation)||null,isCompleted:!!m.is_completed}:null}).filter(o=>!!o).sort((o,m)=>{const y=o.interviewDate?new Date(o.interviewDate).getTime():0;return(m.interviewDate?new Date(m.interviewDate).getTime():0)-y}).slice(0,5)}function ip(d){const c=qn(d);return c?Array.isArray(c.searchList)?c.searchList:[]:[]}class sp{constructor(c=new Ll,u=new Iv,o=new Wu,m=new Ku,y=new Pv,O=new qh){this.candidateService=c,this.notificationService=u,this.jobService=o,this.subscriptionService=m,this.simulationService=y,this.messagesViewModel=O}async loadInitialData(){const[c,u,o,m,y,O]=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:c.status==="fulfilled"?c.value:null,notifications:u.status==="fulfilled"?u.value.slice(0,5):[],messages:o.status==="fulfilled"?o.value.slice(0,5):[],bestJobs:m.status==="fulfilled"?m.value:[],subscription:y.status==="fulfilled"?y.value:null,evaluations:O.status==="fulfilled"?np(O.value):[]}}async loadBestJobs(){const c=await this.jobService.getJobsV2(10,0,5,[]);return ip(c).map(o=>lp(o)).filter(o=>!!o).slice(0,5)}}const cp={bestJobs:[],candidate:null,evaluations:[],messages:[],notifications:[],subscription:null};function jh(d){return d.trim().slice(0,1).toUpperCase()||"A"}function up({onLogout:d,onNavigate:c,onOpenJobDetail:u,onToggleTheme:o,theme:m}){const y=L.useMemo(()=>new sp,[]),[O,G]=L.useState(cp),[w,N]=L.useState(!0);L.useEffect(()=>{let q=!0;return y.loadInitialData().then(Z=>{q&&G(Z)}).finally(()=>{q&&N(!1)}),()=>{q=!1}},[y]);const V=O.candidate?.firstName?.trim()||O.candidate?.name?.trim()||"Lasse",z=O.candidate?.imageUrl||O.candidate?.image||"";return s.jsxs("section",{className:`dash-root ${m==="dark"?"theme-dark":""}`,children:[s.jsx("div",{className:"dash-orb dash-orb-1"}),s.jsx("div",{className:"dash-orb dash-orb-2"}),s.jsx("div",{className:"dash-orb dash-orb-3"}),s.jsx(Rl,{active:"dashboard",onNavigate:c}),s.jsxs("main",{className:"dash-main custom-scrollbar",children:[s.jsx(Hl,{name:V,imageUrl:z||void 0,onLogout:d,theme:m,onToggleTheme:o}),s.jsxs("div",{className:"dash-welcome",children:[s.jsxs("h1",{children:["Velkommen tilbage ",V," ",s.jsx("span",{children:"👋"})]}),s.jsx("p",{children:"Her er, hvad der sker med din jobsøgning i dag."})]}),w?s.jsx("p",{className:"dash-loading",children:"Indlaeser dashboard..."}):null,s.jsxs("div",{className:"dash-grid",children:[s.jsxs("div",{className:"dash-grid-main",children:[s.jsxs("article",{className:"dash-card",children:[s.jsx("div",{className:"dash-card-head",children:s.jsx("h2",{children:"Anbefalet til dig"})}),s.jsx("div",{className:"dash-job-list",children:(O.bestJobs.length>0?O.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(q=>s.jsxs("div",{className:"dash-job-item",role:"button",tabIndex:0,onClick:()=>u(q.id,!!q.fromJobnet,"dashboard"),onKeyDown:Z=>{(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),u(q.id,!!q.fromJobnet,"dashboard"))},children:[s.jsxs("div",{className:"dash-job-left",children:[s.jsx("div",{className:"dash-company-chip",children:jh(q.companyName)}),s.jsxs("div",{children:[s.jsx("h4",{children:q.title}),s.jsxs("p",{children:[q.companyName," • ",q.address||"Lokation ikke angivet"]})]})]}),s.jsx("button",{type:"button",className:"dash-job-arrow-btn","aria-label":"Se job",onClick:Z=>{Z.stopPropagation(),u(q.id,!!q.fromJobnet,"dashboard")},children:s.jsx(Ol,{size:16,strokeWidth:1.8})})]},q.id))})]}),s.jsxs("div",{className:"dash-split-grid",children:[s.jsxs("article",{className:"dash-card",children:[s.jsx("h3",{children:"Seneste beskeder"}),s.jsxs("div",{className:"dash-message-list",children:[(O.messages.length>0?O.messages:[]).slice(0,5).map(q=>s.jsxs("div",{className:"dash-message-item",children:[s.jsx("div",{className:"dash-avatar",children:jh(q.companyName||"A")}),s.jsxs("div",{children:[s.jsx("h4",{children:q.companyName||"Samtale"}),s.jsx("p",{children:q.latestMessage?.text||"Ingen besked endnu"})]})]},q.id)),O.messages.length===0?s.jsx("p",{className:"dash-muted",children:"Ingen beskeder endnu."}):null]})]}),s.jsxs("article",{className:"dash-card",children:[s.jsxs("div",{className:"dash-card-head dash-card-head-inline",children:[s.jsx("h3",{children:"Seneste simuleringer"}),s.jsx("button",{type:"button",className:"dash-icon-btn",children:s.jsx(w0,{size:16,strokeWidth:1.8})})]}),s.jsxs("div",{className:"dash-sim-list",children:[s.jsxs("div",{className:"dash-sim-item",children:[s.jsxs("div",{className:"dash-sim-left",children:[s.jsx("span",{className:"dash-sim-icon teal",children:s.jsx(dh,{size:16,strokeWidth:1.8})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Teknisk samtale"}),s.jsx("p",{children:"Frontend-fokus"})]})]}),s.jsxs("div",{className:"dash-sim-right",children:[s.jsx("strong",{children:"92/100"}),s.jsx("div",{className:"dash-progress",children:s.jsx("span",{style:{width:"92%"}})})]})]}),s.jsxs("div",{className:"dash-sim-item",children:[s.jsxs("div",{className:"dash-sim-left",children:[s.jsx("span",{className:"dash-sim-icon purple",children:s.jsx(rv,{size:16,strokeWidth:1.8})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Kulturelt match"}),s.jsx("p",{children:"Lunar Bank"})]})]}),s.jsxs("div",{className:"dash-sim-right",children:[s.jsx("strong",{children:"88/100"}),s.jsx("div",{className:"dash-progress",children:s.jsx("span",{style:{width:"88%"}})})]})]}),s.jsxs("div",{className:"dash-sim-item",children:[s.jsxs("div",{className:"dash-sim-left",children:[s.jsx("span",{className:"dash-sim-icon amber",children:s.jsx(R0,{size:16,strokeWidth:1.8})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Systemdesign"}),s.jsx("p",{children:"Arkitektur"})]})]}),s.jsxs("div",{className:"dash-sim-right",children:[s.jsx("strong",{className:"warn",children:"65/100"}),s.jsx("div",{className:"dash-progress",children:s.jsx("span",{className:"warn",style:{width:"65%"}})})]})]}),s.jsxs("div",{className:"dash-sim-item",children:[s.jsxs("div",{className:"dash-sim-left",children:[s.jsx("span",{className:"dash-sim-icon blue",children:s.jsx(dh,{size:16,strokeWidth:1.8})}),s.jsxs("div",{children:[s.jsx("h4",{children:"Live-kodning"}),s.jsx("p",{children:"React.js"})]})]}),s.jsxs("div",{className:"dash-sim-right",children:[s.jsx("strong",{children:"95/100"}),s.jsx("div",{className:"dash-progress",children:s.jsx("span",{style:{width:"95%"}})})]})]}),s.jsxs("div",{className:"dash-sim-item",children:[s.jsxs("div",{className:"dash-sim-left",children:[s.jsx("span",{className:"dash-sim-icon gray",children:s.jsx(wh,{size:16,strokeWidth:1.8})}),s.jsxs("div",{children:[s.jsx("h4",{children:"HR-screening"}),s.jsx("p",{children:"Generelt"})]})]}),s.jsxs("div",{className:"dash-sim-right",children:[s.jsx("strong",{className:"na",children:"N/A"}),s.jsx("div",{className:"dash-progress"})]})]})]})]})]})]}),s.jsxs("div",{className:"dash-grid-side",children:[s.jsxs("article",{className:"dash-card dash-ai-card dash-ai-card-group",children:[s.jsx("div",{className:"dash-ai-peel"}),s.jsxs("div",{className:"dash-ai-content",children:[s.jsxs("div",{className:"dash-ai-head",children:[s.jsx(fs,{size:22,strokeWidth:1.8}),s.jsx("h3",{children:"AI-indsigter til dit CV"})]}),s.jsx("p",{children:"Vi analyserede dit seneste CV op imod dine målroller."}),s.jsxs("ul",{className:"dash-ai-list",children:[s.jsxs("li",{className:"dash-ai-item",children:[s.jsx("span",{className:"dash-ai-item-icon",children:s.jsx(Rg,{size:13,strokeWidth:2})}),s.jsxs("div",{children:[s.jsx("strong",{children:"Kvantificer dine resultater"}),s.jsx("small",{children:'Tilføj tal til din rolle hos TechCorp (f.eks. \\"Forbedrede loadhastighed med 40%\\").'})]})]}),s.jsxs("li",{className:"dash-ai-item",children:[s.jsx("span",{className:"dash-ai-item-icon",children:s.jsx(Ug,{size:13,strokeWidth:2})}),s.jsxs("div",{children:[s.jsx("strong",{children:"Omorganiser dine færdigheder"}),s.jsx("small",{children:"Flyt React & TypeScript til toppen baseret på aktive Jobagenter."})]})]}),s.jsxs("li",{className:"dash-ai-item",children:[s.jsx("span",{className:"dash-ai-item-icon",children:s.jsx(a0,{size:13,strokeWidth:2})}),s.jsxs("div",{children:[s.jsx("strong",{children:"Tilføj manglende nøgleord"}),s.jsx("small",{children:'Inkluder \\"Tailwind CSS\\" for at matche 85% af dine anbefalede jobs.'})]})]}),s.jsxs("li",{className:"dash-ai-item dash-ai-xl-only",children:[s.jsx("span",{className:"dash-ai-item-icon",children:s.jsx(Rh,{size:13,strokeWidth:2})}),s.jsxs("div",{children:[s.jsx("strong",{children:"Omskriv dit resumé"}),s.jsx("small",{children:"Gør din målsætning mere handlingsorienteret."})]})]}),s.jsxs("li",{className:"dash-ai-item dash-ai-xl-only",children:[s.jsx("span",{className:"dash-ai-item-icon",children:s.jsx(p0,{size:13,strokeWidth:2})}),s.jsxs("div",{children:[s.jsx("strong",{children:"Opdater porteføljelink"}),s.jsx("small",{children:"Dit GitHub-link gav en 404-fejl i vores test."})]})]})]}),s.jsx("button",{type:"button",children:"Anvend alle ændringer"})]})]}),s.jsxs("article",{className:"dash-card",children:[s.jsxs("div",{className:"dash-card-head dash-card-head-inline",children:[s.jsx("h3",{children:"Aktive Jobagenter"}),s.jsx("button",{type:"button",className:"dash-icon-btn",children:s.jsx(Lh,{size:16,strokeWidth:1.8})})]}),s.jsxs("div",{className:"dash-agent-list",children:[s.jsxs("div",{className:"dash-agent-item",children:[s.jsxs("div",{children:[s.jsx("span",{children:"Frontend-udvikler"}),s.jsxs("small",{children:[s.jsx(Vn,{size:13,strokeWidth:1.8})," Kobenhavn"]})]}),s.jsxs("label",{className:"dash-switch",children:[s.jsx("input",{type:"checkbox",defaultChecked:!0}),s.jsx("span",{})]})]}),s.jsxs("div",{className:"dash-agent-item",children:[s.jsxs("div",{children:[s.jsx("span",{children:"React-udvikler"}),s.jsxs("small",{children:[s.jsx(Ju,{size:13,strokeWidth:1.8})," Remote (EU)"]})]}),s.jsxs("label",{className:"dash-switch",children:[s.jsx("input",{type:"checkbox",defaultChecked:!0}),s.jsx("span",{})]})]}),s.jsxs("div",{className:"dash-agent-item muted",children:[s.jsxs("div",{children:[s.jsx("span",{children:"UI/UX-designer"}),s.jsxs("small",{children:[s.jsx(Vn,{size:13,strokeWidth:1.8})," Aarhus"]})]}),s.jsxs("label",{className:"dash-switch",children:[s.jsx("input",{type:"checkbox"}),s.jsx("span",{})]})]})]}),s.jsx("button",{type:"button",className:"dash-outline-btn",children:"Opret ny agent"})]})]})]})]})]})}function Hn(d){return d instanceof Date?d.toISOString():typeof d=="string"?d:""}function Sh(d){const c=[d.road,d.houseNum,d.zip,d.zipName].filter(u=>typeof u=="string"&&u.trim().length>0).join(" ");return{id:d.id,title:d.title??"Job",companyName:d.hiringCompanyName??"Ukendt virksomhed",occupationName:d.occupation?.name??"",address:c||d.zipName||"Ukendt adresse",description:d.description??"",applicationDeadline:Hn(d.applicationDeadline),websiteUrl:d.applicationUrl||d.hiringCompanyUrl||"",logoUrl:d.logoUrl||"",fromJobnet:!0,isSaved:!1,isApplied:!!d.applied,isFullTime:typeof d.isFullTime=="boolean"?d.isFullTime:null,workTimes:Array.isArray(d.workTimes)?d.workTimes:[],contactName:d.contactName??"",hiringCompanyName:d.hiringCompanyName??"",datePosted:Hn(d.datePosted),employmentDate:Hn(d.employmentDate),startAsSoonAsPossible:typeof d.startAsSoonAsPossible=="boolean"?d.startAsSoonAsPossible:null,numberOfPositions:typeof d.numberOfPositions=="number"?d.numberOfPositions:null}}function xh(d,c){return{id:d,title:c.title??"Job",companyName:c.companyName??"Ukendt virksomhed",occupationName:c.position??"",address:"",description:[c.descriptionIntro,c.descriptionPosition,c.descriptionOffer].filter(u=>typeof u=="string"&&u.trim().length>0).join(`
`),applicationDeadline:Hn(c.applicationDeadline),websiteUrl:c.website??"",logoUrl:"",fromJobnet:!1,isSaved:!1,isApplied:!!c.appliedJob,isFullTime:null,workTimes:Array.isArray(c.workTimes)?c.workTimes:[],contactName:"",hiringCompanyName:c.companyName??"",datePosted:"",employmentDate:Hn(c.fromDate),startAsSoonAsPossible:null,numberOfPositions:typeof c.numberOfPositions=="number"?c.numberOfPositions:null}}class rp{constructor(c=new Wu){this.jobService=c}async getDetail(c,u){if(u)try{const o=await this.jobService.getJobNetJobDetail(c);return Sh(o)}catch{const o=await this.jobService.getJobDetail(c);return xh(c,o)}try{const o=await this.jobService.getJobDetail(c);return xh(c,o)}catch{const o=await this.jobService.getJobNetJobDetail(c);return Sh(o)}}async toggleBookmark(c,u,o){const m=u?"star":"arbejd.com";await this.jobService.bookmarkJobV2(c,o,m)}async markAsApplied(c,u){if(u){await this.jobService.toggleApplyJobnetjob(c,!0);return}await this.jobService.applyJob(c)}}function op(d){return d.trim().slice(0,1).toUpperCase()||"A"}function Yu(d){if(!d)return"Ikke angivet";const c=new Date(d);return Number.isNaN(c.getTime())?d:new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short",year:"numeric"}).format(c)}function dp(d){if(!d.trim())return"";if(typeof window>"u")return d;const u=new DOMParser().parseFromString(d,"text/html");u.querySelectorAll("script, style, iframe, object, embed, link, meta").forEach(o=>o.remove());for(const o of Array.from(u.body.querySelectorAll("*")))for(const m of Array.from(o.attributes)){const y=m.name.toLowerCase(),G=m.value.trim().toLowerCase();if(y.startsWith("on")){o.removeAttribute(m.name);continue}if((y==="href"||y==="src")&&G.startsWith("javascript:")){o.removeAttribute(m.name);continue}(y==="style"||y==="srcdoc")&&o.removeAttribute(m.name)}return u.body.innerHTML}function fp(d){return d.isFullTime===!0?"Fuldtid":d.isFullTime===!1?"Deltid":d.workTimes.length>0?"Fleksibel arbejdstid":"Ikke oplyst"}function hp({fromJobnet:d,jobId:c,onBack:u,onLogout:o,onNavigate:m,onToggleTheme:y,theme:O}){const G=L.useMemo(()=>new rp,[]),w=L.useMemo(()=>new Fu,[]),[N,V]=L.useState({name:"Lasse"}),[z,q]=L.useState(null),[Z,ae]=L.useState(!0),[Y,fe]=L.useState(""),[ge,je]=L.useState(!1),[ie,re]=L.useState(!1),[de,K]=L.useState(!1),[M,ye]=L.useState(!1);L.useEffect(()=>{let Q=!0;async function le(){ae(!0),fe("");const[I,oe]=await Promise.allSettled([w.getCandidateProfile(),G.getDetail(c,d)]);Q&&(I.status==="fulfilled"&&V(I.value),oe.status==="fulfilled"?(q(oe.value),je(!!oe.value.isSaved),re(!!oe.value.isApplied)):(q(null),fe("Kunne ikke hente jobdetaljer. Proev igen.")),ae(!1))}return le(),()=>{Q=!1}},[G,d,c,w]);async function Ae(){if(!(!z||de)){K(!0);try{await G.toggleBookmark(z.id,z.fromJobnet,!ge),je(Q=>!Q)}finally{K(!1)}}}async function ze(){if(!(!z||ie||M)){ye(!0);try{await G.markAsApplied(z.id,z.fromJobnet),re(!0)}finally{ye(!1)}}}const R=L.useMemo(()=>dp(z?.description??""),[z?.description]);return s.jsxs("section",{className:`dash-root ${O==="dark"?"theme-dark":""}`,children:[s.jsx("div",{className:"dash-orb dash-orb-1"}),s.jsx("div",{className:"dash-orb dash-orb-2"}),s.jsx("div",{className:"dash-orb dash-orb-3"}),s.jsx(Rl,{active:"jobs",onNavigate:m}),s.jsxs("main",{className:"dash-main custom-scrollbar",children:[s.jsx(Hl,{name:N.name,imageUrl:N.imageUrl,onLogout:o,theme:O,onToggleTheme:y}),s.jsx("div",{className:"job-detail-back-row",children:s.jsxs("button",{type:"button",className:"job-detail-back-btn",onClick:u,children:[s.jsx(Mg,{size:15,strokeWidth:1.8}),s.jsx("span",{children:"Tilbage til jobs"})]})}),Z?s.jsx("p",{className:"dash-loading",children:"Indlaeser jobdetaljer..."}):null,!Z&&Y?s.jsx("p",{className:"dash-loading",children:Y}):null,!Z&&z?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"job-detail-header",children:[s.jsx("div",{className:"job-detail-logo-wrap",children:z.logoUrl?s.jsx("img",{src:z.logoUrl,alt:z.companyName,className:"job-detail-logo-image"}):s.jsx("div",{className:"job-detail-logo-fallback",children:op(z.companyName)})}),s.jsxs("div",{className:"job-detail-heading",children:[s.jsx("h1",{children:z.title||"Jobdetaljer"}),s.jsxs("div",{className:"job-detail-meta",children:[s.jsxs("span",{children:[s.jsx(Qu,{size:14,strokeWidth:1.8})," ",z.companyName||"Virksomhed"]}),s.jsxs("span",{children:[s.jsx(Vn,{size:14,strokeWidth:1.8})," ",z.address||"Lokation ikke angivet"]}),s.jsxs("span",{children:[s.jsx(Pg,{size:14,strokeWidth:1.8})," ",fp(z)]})]})]})]}),s.jsxs("div",{className:"job-detail-grid",children:[s.jsxs("section",{className:"job-detail-main-card dash-card",children:[s.jsxs("div",{className:"job-detail-section",children:[s.jsx("h2",{children:"Om rollen"}),R?s.jsx("div",{className:"job-detail-rich-html",dangerouslySetInnerHTML:{__html:R}}):s.jsx("p",{children:"Ingen jobbeskrivelse er tilgaengelig endnu."})]}),s.jsxs("div",{className:"job-detail-section",children:[s.jsx("h3",{children:"Jobinformation"}),s.jsxs("div",{className:"job-detail-info-grid",children:[s.jsxs("div",{children:[s.jsx("span",{children:"Ansøgningsfrist"}),s.jsx("strong",{children:Yu(z.applicationDeadline)})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Opslået"}),s.jsx("strong",{children:Yu(z.datePosted)})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Startdato"}),s.jsx("strong",{children:Yu(z.employmentDate)})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Stillinger"}),s.jsx("strong",{children:z.numberOfPositions??"Ikke angivet"})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Kontaktperson"}),s.jsx("strong",{children:z.contactName||"Ikke angivet"})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Kilde"}),s.jsx("strong",{children:z.fromJobnet?"Jobnet":"Arbejd.com"})]})]})]})]}),s.jsxs("aside",{className:"job-detail-side-col",children:[s.jsxs("article",{className:"dash-card job-detail-actions-card",children:[s.jsx("h2",{children:"Handlinger"}),s.jsxs("button",{type:"button",className:"job-detail-action-primary",children:[s.jsxs("span",{children:[s.jsx(fs,{size:16,strokeWidth:1.8})," Generer ansøgning"]}),s.jsx(Ol,{size:14,strokeWidth:1.8})]}),s.jsxs("button",{type:"button",className:"job-detail-action-secondary",children:[s.jsxs("span",{children:[s.jsx(B0,{size:16,strokeWidth:1.8})," Simuler jobsamtale"]}),s.jsx(Ol,{size:14,strokeWidth:1.8})]}),s.jsx("div",{className:"job-detail-action-divider"}),s.jsxs("button",{type:"button",className:"job-detail-text-action",onClick:()=>{Ae()},disabled:de,children:[s.jsx(Vg,{size:16,strokeWidth:1.8}),ge?"Fjern fra gemte jobs":"Gem job"]}),s.jsxs("button",{type:"button",className:"job-detail-text-action",children:[s.jsx(ds,{size:16,strokeWidth:1.8}),"Del via email"]}),z.websiteUrl?s.jsxs("a",{href:z.websiteUrl,target:"_blank",rel:"noreferrer",className:"job-detail-text-action link",children:[s.jsx(Eh,{size:16,strokeWidth:1.8}),"Åbn på nettet"]}):null,s.jsxs("button",{type:"button",className:ie?"job-detail-text-action success is-done":"job-detail-text-action success",onClick:()=>{ze()},disabled:ie||M,children:[s.jsx(za,{size:16,strokeWidth:1.8}),ie?"Markeret som søgt":"Marker som søgt"]})]}),s.jsxs("article",{className:"dash-card job-detail-company-card",children:[s.jsx("h3",{children:"Om virksomheden"}),s.jsxs("div",{className:"job-detail-company-list",children:[s.jsxs("div",{children:[s.jsx("span",{children:"Virksomhed"}),s.jsx("strong",{children:z.hiringCompanyName||z.companyName||"Ukendt"})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Stilling"}),s.jsx("strong",{children:z.occupationName||"Ikke angivet"})]}),s.jsxs("div",{children:[s.jsx("span",{children:"Website"}),s.jsx("strong",{children:z.websiteUrl||"Ikke angivet"})]})]})]})]})]})]}):null]})]})}const Nh=[2,4,6,8,10,12,24],mp=[{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 gp(d){return d.trim().slice(0,1).toUpperCase()||"A"}function Ah(d){return d.address.toLowerCase().includes("remote")?"Remote":typeof d.candidateDistance=="number"?`${Math.max(0,Math.round(d.candidateDistance))} km vaek`:d.address||"Lokation ikke angivet"}function vp(d){return d.companyLogoImage||d.logoUrl||""}function _h({item:d}){const[c,u]=L.useState(!1),o=vp(d);return o.length>0&&!c?s.jsx("div",{className:"jobs-card-logo jobs-card-logo-image-wrap",children:s.jsx("img",{src:o,alt:d.companyName||"Virksomhed",className:"jobs-card-logo-image",onError:()=>u(!0)})}):s.jsx("div",{className:"jobs-card-logo",children:gp(d.companyName)})}function pp(d){return d.workTypePartTime?"deltid":"fast"}function yp({onLogout:d,onNavigate:c,onOpenJobDetail:u,onToggleTheme:o,theme:m}){const y=L.useMemo(()=>new Fu,[]),[O,G]=L.useState({name:"Lasse"}),[w,N]=L.useState(""),[V,z]=L.useState("sidebar"),[q,Z]=L.useState("fast"),[ae,Y]=L.useState(15),[fe,ge]=L.useState(24),[je,ie]=L.useState(["Frontend-udvikler","UX/UI Designer"]),[re,de]=L.useState(""),[K,M]=L.useState([]),[ye,Ae]=L.useState(!0),[ze,R]=L.useState(6),Q=L.useCallback(async()=>{try{const h=await y.getTabItems("jobs");M(h),R(6)}catch{M([]),R(6)}},[y]);L.useEffect(()=>{let h=!0;async function S(){try{const C=await y.getSavedFilter();if(!h)return;Z(pp(C)),Y(C.workDistance??15),ge(C.partTimeHours??24),N(C.distanceCenterName??"")}catch{}if(await Q(),h){const C=await y.getCandidateProfile();h&&G(C),Ae(!1)}}return S(),()=>{h=!1}},[Q,y]);async function le(){const h={escoIds:[],workTypePermanent:q==="fast",workTypePartTime:q==="deltid",workDistance:ae,partTimeHours:q==="deltid"?fe:null,distanceCenterName:w,latitude:null,longitude:null};Ae(!0);try{const S=await y.applyFiltersAndGetJobs(h,{searchText:w,desiredTitles:je});M(S),R(6)}catch{M([]),R(6)}Ae(!1)}const I=K.length>0?K:mp,oe=I.slice(0,Math.min(ze,I.length)),_=ze<I.length;function H(){z(h=>h==="sidebar"?"top":"sidebar")}function U(h){ie(S=>S.filter(C=>C!==h))}function $(h){const S=h.trim();S&&(ie(C=>C.includes(S)?C:[...C,S]),de(""))}function ce(){R(h=>Math.min(h+6,I.length))}return s.jsxs("section",{className:`dash-root ${m==="dark"?"theme-dark":""}`,children:[s.jsx("div",{className:"dash-orb dash-orb-1"}),s.jsx("div",{className:"dash-orb dash-orb-2"}),s.jsx("div",{className:"dash-orb dash-orb-3"}),s.jsx(Rl,{active:"jobs",onNavigate:c}),s.jsxs("main",{className:"dash-main custom-scrollbar",children:[s.jsx(Hl,{name:O.name,imageUrl:O.imageUrl,onLogout:d,theme:m,onToggleTheme:o,actions:s.jsxs("button",{type:"button",className:"jobs-layout-toggle",onClick:H,children:[V==="sidebar"?s.jsx(Uh,{size:16,strokeWidth:1.8}):s.jsx(Ch,{size:16,strokeWidth:1.8}),s.jsx("span",{children:V==="sidebar"?"Top-layout":"Side-layout"})]})}),s.jsxs("div",{className:"jobs-page-head",children:[s.jsx("h1",{children:"Find dit naeste job"}),s.jsx("p",{children:"Sog og filtrer for at finde det perfekte match til din profil."})]}),V==="sidebar"?s.jsxs("div",{className:"jobs-grid",children:[s.jsxs("aside",{className:"jobs-filter dash-card",children:[s.jsxs("h2",{children:[s.jsx(Qu,{size:18,strokeWidth:1.8})," Filtre"]}),s.jsxs("div",{className:"jobs-filter-block",children:[s.jsx("label",{children:"Sog jobtitel eller virksomhed"}),s.jsxs("div",{className:"jobs-search-wrap",children:[s.jsx(Xu,{size:16,strokeWidth:1.8}),s.jsx("input",{type:"text",placeholder:"F.eks. Frontend Udvikler...",value:w,onChange:h=>N(h.target.value)})]})]}),s.jsxs("div",{className:"jobs-filter-block",children:[s.jsx("label",{children:"Onskede jobtitler"}),s.jsxs("div",{className:"jobs-title-picker",children:[s.jsxs("div",{className:"jobs-title-input-wrap",children:[je.map(h=>s.jsxs("span",{className:"jobs-title-chip",children:[h,s.jsx("button",{type:"button",onClick:()=>U(h),"aria-label":`Fjern ${h}`,children:s.jsx(mh,{size:12,strokeWidth:2})})]},h)),s.jsx("input",{type:"text",value:re,onChange:h=>de(h.target.value),onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),$(re))},placeholder:"Sog og tilfoj flere jobtitler..."})]}),s.jsxs("div",{className:"jobs-title-suggestions",children:[s.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>$("Frontend-udvikler"),children:[s.jsx("span",{children:"Frontend-udvikler"}),s.jsx(za,{size:16,strokeWidth:1.8})]}),s.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>$("Backend-udvikler"),children:s.jsx("span",{children:"Backend-udvikler"})}),s.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>$("Full Stack-udvikler"),children:s.jsx("span",{children:"Full Stack-udvikler"})}),s.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>$("UX/UI Designer"),children:[s.jsx("span",{children:"UX/UI Designer"}),s.jsx(za,{size:16,strokeWidth:1.8})]}),s.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>$("Product Manager"),children:s.jsx("span",{children:"Product Manager"})})]})]})]}),s.jsx("div",{className:"jobs-separator"}),s.jsxs("div",{className:"jobs-filter-block",children:[s.jsx("label",{children:"Ansaettelsestype"}),s.jsxs("div",{className:"jobs-radio-grid",children:[s.jsx("button",{type:"button",className:q==="fast"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>Z("fast"),children:"Fast (Fuldtid)"}),s.jsx("button",{type:"button",className:q==="deltid"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>Z("deltid"),children:"Deltid"})]})]}),s.jsxs("div",{className:"jobs-filter-block jobs-range-block",children:[s.jsxs("div",{className:"jobs-range-head",children:[s.jsx("label",{children:"Maks. afstand"}),s.jsxs("span",{children:[ae," km"]})]}),s.jsx("input",{type:"range",min:0,max:50,value:ae,onChange:h=>Y(Number(h.target.value))}),s.jsxs("div",{className:"jobs-range-labels",children:[s.jsx("span",{children:"0 km"}),s.jsx("span",{children:"50+ km"})]})]}),s.jsx("div",{className:"jobs-separator"}),s.jsxs("div",{className:"jobs-filter-block",children:[s.jsx("label",{children:"Timer (ved deltid)"}),s.jsx("p",{children:"Vaelg onsket timeantal pr. uge"}),s.jsx("div",{className:"jobs-hours-grid",children:Nh.map(h=>s.jsx("button",{type:"button",className:fe===h?"jobs-hour-btn active":"jobs-hour-btn",onClick:()=>ge(h),children:h},h))})]}),s.jsx("button",{type:"button",className:"jobs-apply-btn",onClick:()=>{le()},children:"Opdater resultater"})]}),s.jsxs("section",{className:"jobs-content",children:[s.jsxs("div",{className:"jobs-content-head",children:[s.jsx("h2",{children:"Seneste jobs"}),s.jsxs("span",{children:["Viser ",K.length>0?K.length:142," resultater"]})]}),ye?s.jsx("p",{className:"dash-loading",children:"Indlaeser jobs..."}):null,s.jsx("div",{className:"jobs-cards",children:oe.map(h=>s.jsxs("article",{className:"jobs-card",role:"button",tabIndex:0,onClick:()=>u(h.id,h.fromJobnet,"jobs"),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),u(h.id,h.fromJobnet,"jobs"))},children:[s.jsx("div",{className:"jobs-card-top",children:s.jsx(_h,{item:h})}),s.jsxs("div",{className:"jobs-card-title",children:[s.jsx("h3",{children:h.title||"Stilling"}),s.jsx("p",{children:h.companyName||"Virksomhed"})]}),s.jsx("p",{className:"jobs-card-description",children:h.descriptionIntro||"Beskrivelse er ikke tilgaengelig endnu."}),s.jsxs("div",{className:"jobs-card-bottom",children:[s.jsxs("div",{className:"jobs-card-distance",children:[h.address.toLowerCase().includes("remote")?s.jsx(Ju,{size:15,strokeWidth:1.8}):s.jsx(fh,{size:15,strokeWidth:1.8}),s.jsx("span",{children:Ah(h)})]}),s.jsx("button",{type:"button",className:"jobs-card-arrow","aria-label":"Se job",onClick:S=>{S.stopPropagation(),u(h.id,h.fromJobnet,"jobs")},children:s.jsx(Ol,{size:16,strokeWidth:1.8})})]})]},h.id))}),s.jsx("div",{className:"jobs-load-more-wrap",children:s.jsx("button",{type:"button",className:"jobs-load-more",onClick:ce,disabled:!_,children:_?"Indlaes flere jobs":"Alle jobs er vist"})})]})]}):s.jsxs("section",{className:"jobs-top-layout",children:[s.jsxs("div",{className:"jobs-top-filters dash-card",children:[s.jsxs("div",{className:"jobs-top-filter-title",children:[s.jsx(Qu,{size:18,strokeWidth:1.8}),s.jsx("h2",{children:"Filtre"})]}),s.jsxs("div",{className:"jobs-top-controls",children:[s.jsxs("div",{className:"jobs-filter-block no-margin",children:[s.jsx("label",{children:"Sog noegleord eller virksomhed"}),s.jsxs("div",{className:"jobs-search-wrap",children:[s.jsx(Xu,{size:16,strokeWidth:1.8}),s.jsx("input",{type:"text",placeholder:"F.eks. Lunar, React...",value:w,onChange:h=>N(h.target.value)})]})]}),s.jsxs("div",{className:"jobs-filter-block no-margin",children:[s.jsx("label",{children:"Ansaettelsestype"}),s.jsxs("div",{className:"jobs-radio-grid",children:[s.jsx("button",{type:"button",className:q==="fast"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>Z("fast"),children:"Fast"}),s.jsx("button",{type:"button",className:q==="deltid"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>Z("deltid"),children:"Deltid"})]})]}),s.jsxs("div",{className:"jobs-filter-block no-margin jobs-top-range",children:[s.jsxs("div",{className:"jobs-range-head",children:[s.jsx("label",{children:"Maks. afstand"}),s.jsxs("span",{children:[ae," km"]})]}),s.jsx("input",{type:"range",min:0,max:50,value:ae,onChange:h=>Y(Number(h.target.value))})]}),s.jsx("button",{type:"button",className:"jobs-apply-btn jobs-top-apply",onClick:()=>{le()},children:"Opdater resultater"})]}),s.jsxs("div",{className:"jobs-filter-block no-margin",children:[s.jsx("label",{children:"Onskede jobtitler"}),s.jsxs("div",{className:"jobs-title-picker",children:[s.jsxs("div",{className:"jobs-title-input-wrap",children:[je.map(h=>s.jsxs("span",{className:"jobs-title-chip",children:[h,s.jsx("button",{type:"button",onClick:()=>U(h),"aria-label":`Fjern ${h}`,children:s.jsx(mh,{size:12,strokeWidth:2})})]},h)),s.jsx("input",{type:"text",value:re,onChange:h=>de(h.target.value),onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),$(re))},placeholder:"Sog og tilfoj flere jobtitler..."})]}),s.jsxs("div",{className:"jobs-title-suggestions",children:[s.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>$("Frontend-udvikler"),children:[s.jsx("span",{children:"Frontend-udvikler"}),s.jsx(za,{size:16,strokeWidth:1.8})]}),s.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>$("Backend-udvikler"),children:s.jsx("span",{children:"Backend-udvikler"})}),s.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>$("Full Stack-udvikler"),children:s.jsx("span",{children:"Full Stack-udvikler"})}),s.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>$("UX/UI Designer"),children:[s.jsx("span",{children:"UX/UI Designer"}),s.jsx(za,{size:16,strokeWidth:1.8})]}),s.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>$("Product Manager"),children:s.jsx("span",{children:"Product Manager"})})]})]})]}),s.jsx("div",{className:"jobs-separator top-margin"}),s.jsxs("div",{className:"jobs-hours-row",children:[s.jsxs("div",{children:[s.jsx("label",{children:"Timer (ved deltid)"}),s.jsx("p",{children:"Vaelg onsket timeantal pr. uge"})]}),s.jsx("div",{className:"jobs-hours-grid",children:Nh.map(h=>s.jsx("button",{type:"button",className:fe===h?"jobs-hour-btn active":"jobs-hour-btn",onClick:()=>ge(h),children:h},h))})]})]}),s.jsxs("section",{className:"jobs-content",children:[s.jsxs("div",{className:"jobs-content-head",children:[s.jsx("h2",{children:"Seneste jobs"}),s.jsxs("span",{children:["Viser ",K.length>0?K.length:142," resultater"]})]}),ye?s.jsx("p",{className:"dash-loading",children:"Indlaeser jobs..."}):null,s.jsx("div",{className:"jobs-cards jobs-cards-top",children:oe.map(h=>s.jsxs("article",{className:"jobs-card",role:"button",tabIndex:0,onClick:()=>u(h.id,h.fromJobnet,"jobs"),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),u(h.id,h.fromJobnet,"jobs"))},children:[s.jsx("div",{className:"jobs-card-top",children:s.jsx(_h,{item:h})}),s.jsxs("div",{className:"jobs-card-title",children:[s.jsx("h3",{children:h.title||"Stilling"}),s.jsx("p",{children:h.companyName||"Virksomhed"})]}),s.jsx("p",{className:"jobs-card-description",children:h.descriptionIntro||"Beskrivelse er ikke tilgaengelig endnu."}),s.jsxs("div",{className:"jobs-card-bottom",children:[s.jsxs("div",{className:"jobs-card-distance",children:[h.address.toLowerCase().includes("remote")?s.jsx(Ju,{size:15,strokeWidth:1.8}):s.jsx(fh,{size:15,strokeWidth:1.8}),s.jsx("span",{children:Ah(h)})]}),s.jsx("button",{type:"button",className:"jobs-card-arrow","aria-label":"Se job",onClick:S=>{S.stopPropagation(),u(h.id,h.fromJobnet,"jobs")},children:s.jsx(Ol,{size:16,strokeWidth:1.8})})]})]},h.id))}),s.jsx("div",{className:"jobs-load-more-wrap",children:s.jsx("button",{type:"button",className:"jobs-load-more",onClick:ce,disabled:!_,children:_?"Indlaes flere jobs":"Alle jobs er vist"})})]})]})]})]})}function os(d){if(!d)return 0;const u=(d instanceof Date?d:new Date(d)).getTime();return Number.isNaN(u)?0:u}function Bh(d){if(!d)return"--:--";const c=d instanceof Date?d:new Date(d);return Number.isNaN(c.getTime())?"--:--":new Intl.DateTimeFormat("da-DK",{hour:"2-digit",minute:"2-digit"}).format(c)}function bp(d){if(!d)return"";const c=d instanceof Date?d:new Date(d);if(Number.isNaN(c.getTime()))return"";const u=new Date,o=1440*60*1e3,m=Math.floor((new Date(u.getFullYear(),u.getMonth(),u.getDate()).getTime()-new Date(c.getFullYear(),c.getMonth(),c.getDate()).getTime())/o);return m===0?Bh(c):m===1?"I går":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short"}).format(c)}function jp(d){const c=new Date,u=new Date(d.getFullYear(),d.getMonth(),d.getDate()),o=new Date(c.getFullYear(),c.getMonth(),c.getDate()),m=Math.floor((o.getTime()-u.getTime())/(1440*60*1e3));return m===0?"I dag":m===1?"I går":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short"}).format(d)}function Ln(d){return!d.fromCandidate&&!d.seen}function kh(d){return d.allMessages.filter(Ln).length}function wn(d){return d.companyLogoUrl||d.companyLogo||""}function Sp(d){return{...d,allMessages:[...d.allMessages??[]].sort((c,u)=>os(c.timeSent)-os(u.timeSent))}}function Th(){const d=new Date,c=new Date(d.getTime()-600*1e3),u=new Date(d.getTime()-7200*1e3),o=(O,G,w,N,V)=>({threadId:O,text:G,fromCandidate:w,timeSent:N,seen:V}),m=[o("thread-techcorp","Hej Lasse! Mange tak for din ansøgning.",!1,u),o("thread-techcorp","Mange tak, det lyder rigtig spændende.",!0,new Date(u.getTime()+1200*1e3),new Date(u.getTime()+1800*1e3)),o("thread-techcorp","Vi vil gerne invitere dig til samtale.",!1,c)],y=[o("thread-lunar","Mange tak for din opdaterede portefølje.",!1,new Date(d.getTime()-1560*60*1e3),new Date(d.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:m,latestMessage:m[m.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:y,latestMessage:y[y.length-1],title:"Senior UX Designer",messagesLoaded:!0,jobPostingId:"job-2",jobPosting:void 0,isFromSupport:!1}]}function xp({onLogout:d,onNavigate:c,onToggleTheme:u,theme:o}){const m=L.useMemo(()=>new qh,[]),[y,O]=L.useState("Lasse"),[G,w]=L.useState(void 0),[N,V]=L.useState([]),[z,q]=L.useState(!0),[Z,ae]=L.useState(""),[Y,fe]=L.useState("all"),[ge,je]=L.useState(""),[ie,re]=L.useState("");L.useEffect(()=>{let R=!0;async function Q(){q(!0);try{const le=await m.getCandidateProfile();R&&(O(le.name),w(le.imageUrl));const I=await m.getThreads();if(!R)return;const oe=(I.length>0?I:Th()).map(Sp);V(oe),je(oe[0]?.id||"")}catch{if(!R)return;const le=Th();V(le),je(le[0]?.id||"")}finally{R&&q(!1)}}return Q(),()=>{R=!1}},[m]);const de=L.useMemo(()=>{const R=Z.trim().toLowerCase();return N.filter(Q=>Y==="unread"&&kh(Q)===0||Y==="companies"&&Q.isFromSupport?!1:R?Q.companyName.toLowerCase().includes(R)||(Q.latestMessage?.text||"").toLowerCase().includes(R):!0)},[Y,Z,N]),K=L.useMemo(()=>N.find(R=>R.id===ge)||de[0],[ge,de,N]),M=L.useMemo(()=>[...K?.allMessages||[]].sort((R,Q)=>os(R.timeSent)-os(Q.timeSent)),[K]);async function ye(R){je(R.id);const Q=[...R.allMessages].reverse().find(le=>Ln(le));Q?.id&&(m.markThreadReadByMessageId(Q.id),V(le=>le.map(I=>I.id!==R.id?I:{...I,allMessages:I.allMessages.map(oe=>Ln(oe)?{...oe,seen:new Date}:oe)})))}async function Ae(){const R=N.flatMap(Q=>Q.allMessages).filter(Q=>Ln(Q)&&!!Q.id);await Promise.all(R.map(Q=>m.markThreadReadByMessageId(Q.id))),V(Q=>Q.map(le=>({...le,allMessages:le.allMessages.map(I=>Ln(I)?{...I,seen:new Date}:I)})))}async function ze(){const R=ie.trim();if(!K||!R)return;const Q={threadId:K.id,text:R,fromCandidate:!0,timeSent:new Date};re(""),V(le=>le.map(I=>{if(I.id!==K.id)return I;const oe=[...I.allMessages,Q];return{...I,allMessages:oe,latestMessage:Q}}));try{const le=await m.sendMessage(K.id,R);V(I=>I.map(oe=>{if(oe.id!==K.id)return oe;const H=[...oe.allMessages.filter(U=>U!==Q),le];return{...oe,allMessages:H,latestMessage:le}}))}catch{}}return s.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[s.jsx("div",{className:"dash-orb dash-orb-1"}),s.jsx("div",{className:"dash-orb dash-orb-2"}),s.jsx("div",{className:"dash-orb dash-orb-3"}),s.jsx(Rl,{active:"messages",onNavigate:c}),s.jsxs("main",{className:"dash-main custom-scrollbar msg-main",children:[s.jsx(Hl,{name:y,imageUrl:G,onLogout:d,theme:o,onToggleTheme:u}),s.jsxs("div",{className:"msg-head",children:[s.jsxs("div",{children:[s.jsx("h1",{children:"Beskeder"}),s.jsx("p",{children:"Kommuniker med virksomheder og hold styr på dine ansøgninger."})]}),s.jsxs("button",{type:"button",className:"msg-mark-btn",onClick:()=>{Ae()},children:[s.jsx(Xg,{size:16,strokeWidth:1.8})," Marker alle som læst"]})]}),s.jsxs("div",{className:"msg-layout",children:[s.jsxs("section",{className:"msg-threads",children:[s.jsxs("div",{className:"msg-threads-head",children:[s.jsxs("div",{className:"msg-search-wrap",children:[s.jsx(Xu,{size:16,strokeWidth:1.8}),s.jsx("input",{value:Z,onChange:R=>ae(R.target.value),type:"text",placeholder:"Søg i beskeder..."})]}),s.jsxs("div",{className:"msg-filter-row",children:[s.jsx("button",{type:"button",className:Y==="all"?"active":"",onClick:()=>fe("all"),children:"Alle"}),s.jsx("button",{type:"button",className:Y==="unread"?"active":"",onClick:()=>fe("unread"),children:"Ulæste"}),s.jsx("button",{type:"button",className:Y==="companies"?"active":"",onClick:()=>fe("companies"),children:"Virksomheder"})]})]}),s.jsxs("div",{className:"msg-thread-list custom-scrollbar",children:[z?s.jsx("p",{className:"dash-loading",children:"Indlaeser beskeder..."}):null,!z&&de.length===0?s.jsx("p",{className:"dash-loading",children:"Ingen tråde fundet."}):null,de.map(R=>{const Q=kh(R),le=K?.id===R.id,I=wn(R);return s.jsxs("button",{type:"button",className:le?"msg-thread-item active":"msg-thread-item",onClick:()=>{ye(R)},children:[s.jsxs("div",{className:"msg-thread-avatar-wrap",children:[I?s.jsx("img",{src:I,alt:R.companyName,className:"msg-thread-avatar"}):s.jsx("div",{className:"msg-thread-avatar-fallback",children:R.companyName.slice(0,1).toUpperCase()}),s.jsx("span",{className:"msg-thread-online"})]}),s.jsxs("div",{className:"msg-thread-content",children:[s.jsxs("div",{className:"msg-thread-row",children:[s.jsx("h3",{children:R.companyName}),s.jsx("span",{children:bp(R.latestMessage?.timeSent)})]}),s.jsx("p",{className:Q>0?"unread":"",children:R.latestMessage?.text||"Ingen beskeder endnu"}),s.jsx("small",{children:R.title||"Stilling"})]}),Q>0?s.jsx("div",{className:"msg-thread-unread",children:Q}):null]},R.id)})]})]}),s.jsxs("section",{className:"msg-chat",children:[s.jsx("div",{className:"msg-chat-head",children:K?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"msg-chat-company",children:[wn(K)?s.jsx("img",{src:wn(K),alt:K.companyName,className:"msg-chat-avatar"}):s.jsx("div",{className:"msg-chat-avatar-fallback",children:K.companyName.slice(0,1).toUpperCase()}),s.jsxs("div",{children:[s.jsx("h2",{children:K.companyName}),s.jsx("p",{children:K.title||"Rekruttering"})]})]}),s.jsxs("div",{className:"msg-chat-actions",children:[s.jsx("button",{type:"button","aria-label":"Ring",children:s.jsx(U0,{size:16,strokeWidth:1.8})}),s.jsx("button",{type:"button","aria-label":"Info",children:s.jsx(d0,{size:16,strokeWidth:1.8})})]})]}):s.jsx("h2",{children:"Vælg en samtale"})}),s.jsx("div",{className:"msg-chat-body custom-scrollbar",children:M.map((R,Q)=>{const le=R.timeSent instanceof Date?R.timeSent:new Date(R.timeSent),I=Q>0?M[Q-1]:void 0,oe=I?.timeSent instanceof Date?I.timeSent:I?.timeSent?new Date(I.timeSent):void 0,_=!oe||le.toDateString()!==oe.toDateString();return s.jsxs("div",{children:[_?s.jsx("div",{className:"msg-day-sep",children:jp(le)}):null,s.jsxs("div",{className:R.fromCandidate?"msg-bubble-row mine":"msg-bubble-row",children:[R.fromCandidate?null:wn(K)?s.jsx("img",{src:wn(K),alt:K.companyName,className:"msg-mini-avatar"}):s.jsx("div",{className:"msg-mini-avatar msg-mini-avatar-fallback",children:K.companyName.slice(0,1).toUpperCase()}),s.jsxs("div",{className:"msg-bubble-wrap",children:[s.jsx("span",{className:"msg-time",children:Bh(R.timeSent)}),s.jsx("div",{className:R.fromCandidate?"msg-bubble mine":"msg-bubble",children:R.text})]})]})]},`${R.threadId}-${Q}`)})}),s.jsx("div",{className:"msg-input-area",children:s.jsxs("div",{className:"msg-input-wrap",children:[s.jsx("button",{type:"button","aria-label":"Vedhæft",children:s.jsx(D0,{size:18,strokeWidth:1.8})}),s.jsx("textarea",{rows:1,value:ie,onChange:R=>re(R.target.value),onKeyDown:R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),ze())},placeholder:"Skriv din besked her..."}),s.jsx("button",{type:"button","aria-label":"Emoji",children:s.jsx(F0,{size:18,strokeWidth:1.8})}),s.jsxs("button",{type:"button",className:"msg-send-btn",onClick:()=>{ze()},children:["Send ",s.jsx(Z0,{size:15,strokeWidth:1.8})]})]})})]})]})]})]})}function Np(){const d=L.useMemo(()=>!!window.localStorage.getItem("token"),[]),c=L.useMemo(()=>window.localStorage.getItem("theme")==="dark"?"dark":"light",[]),[u,o]=L.useState(d),[m,y]=L.useState(c),[O,G]=L.useState("dashboard"),[w,N]=L.useState(null);function V(Y){(Y==="dashboard"||Y==="jobs"||Y==="cv"||Y==="messages"||Y==="agents"||Y==="ai-agent")&&G(Y)}function z(Y,fe,ge="jobs"){N({id:Y,fromJobnet:fe,returnPage:ge}),G("job-detail")}function q(){G(w?.returnPage??"jobs")}async function Z(){await wl.clearCredentials(),G("dashboard"),N(null),o(!1)}function ae(){y(Y=>{const fe=Y==="light"?"dark":"light";return window.localStorage.setItem("theme",fe),fe})}return u?O==="jobs"?s.jsx(yp,{onLogout:Z,onNavigate:V,onOpenJobDetail:z,theme:m,onToggleTheme:ae}):O==="cv"?s.jsx($v,{onLogout:Z,onNavigate:V,theme:m,onToggleTheme:ae}):O==="messages"?s.jsx(xp,{onLogout:Z,onNavigate:V,theme:m,onToggleTheme:ae}):O==="agents"||O==="ai-agent"?s.jsx(Ev,{onLogout:Z,onNavigate:V,onOpenJobDetail:z,theme:m,onToggleTheme:ae}):O==="job-detail"&&w?s.jsx(hp,{jobId:w.id,fromJobnet:w.fromJobnet,onBack:q,onLogout:Z,onNavigate:V,theme:m,onToggleTheme:ae}):s.jsx(up,{onLogout:Z,onNavigate:V,onOpenJobDetail:z,theme:m,onToggleTheme:ae}):s.jsx(yv,{onAuthenticated:()=>o(!0)})}jg.createRoot(document.getElementById("root")).render(s.jsx(L.StrictMode,{children:s.jsx(Np,{})}));