var Zp=Object.defineProperty;var Kp=(i,r,d)=>r in i?Zp(i,r,{enumerable:!0,configurable:!0,writable:!0,value:d}):i[r]=d;var Nu=(i,r,d)=>Kp(i,typeof r!="symbol"?r+"":r,d);import{j as l,L as fc,M as Rm,N as vt,u as ln,J as Jp,X as Fp,C as Wp,R as hc,a as mc,b as Ip,c as Pp,d as be,B as e0,e as t0}from"./@react-libs-MtxHM9XE.js";import{P as Um,g as n0,d as _,r as O,R as H,Q as a0,l as l0,_ as re,T as Ea,U as Hm,V as i0,W as s0,X as c0,Y as r0,Z as u0,$ as o0,a0 as d0,a1 as f0,a2 as h0,a3 as m0,a4 as x0,a5 as g0,a6 as p0,a7 as $u,a8 as Lm,a9 as y0,aa as v0,O as j0}from"./@app-libs-C3zRPD0B.js";import{F as ie,f as Bi,a as b0,b as S0,c as w0,d as _0,e as C0,g as Zu,h as T0,i as km,j as A0,k as qm,l as $m,m as E0,n as D0,o as Gm,p as O0,q as Ym,r as M0,s as z0,t as xc,u as B0,v as N0,w as Ku,x as R0,y as U0,z as Xm,A as Qm,B as Vm}from"./@fontawesome-libs-CO8i_QJH.js";import{u as L,i as H0,B as L0,a as k0,b as q0}from"./@lang-libs-BsHX4Ibt.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function d(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(o){if(o.ep)return;o.ep=!0;const f=d(o);fetch(o.href,f)}})();var Ru={exports:{}},bi={},Uu={exports:{}},Hu={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sm;function $0(){return sm||(sm=1,function(i){function r(N,$){var J=N.length;N.push($);e:for(;0<J;){var Se=J-1>>>1,we=N[Se];if(0<o(we,$))N[Se]=$,N[J]=we,J=Se;else break e}}function d(N){return N.length===0?null:N[0]}function u(N){if(N.length===0)return null;var $=N[0],J=N.pop();if(J!==$){N[0]=J;e:for(var Se=0,we=N.length,dt=we>>>1;Se<dt;){var De=2*(Se+1)-1,xe=N[De],We=De+1,Kt=N[We];if(0>o(xe,J))We<we&&0>o(Kt,xe)?(N[Se]=Kt,N[We]=J,Se=We):(N[Se]=xe,N[De]=J,Se=De);else if(We<we&&0>o(Kt,J))N[Se]=Kt,N[We]=J,Se=We;else break e}}return $}function o(N,$){var J=N.sortIndex-$.sortIndex;return J!==0?J:N.id-$.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var m=Date,g=m.now();i.unstable_now=function(){return m.now()-g}}var p=[],y=[],j=1,E=null,D=3,B=!1,k=!1,q=!1,U=!1,G=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,Ee=typeof setImmediate<"u"?setImmediate:null;function le(N){for(var $=d(y);$!==null;){if($.callback===null)u(y);else if($.startTime<=N)u(y),$.sortIndex=$.expirationTime,r(p,$);else break;$=d(y)}}function F(N){if(q=!1,le(N),!k)if(d(p)!==null)k=!0,de||(de=!0,Mt());else{var $=d(y);$!==null&&sn(F,$.startTime-N)}}var de=!1,Fe=-1,jt=5,He=-1;function ia(){return U?!0:!(i.unstable_now()-He<jt)}function Oa(){if(U=!1,de){var N=i.unstable_now();He=N;var $=!0;try{e:{k=!1,q&&(q=!1,ne(Fe),Fe=-1),B=!0;var J=D;try{t:{for(le(N),E=d(p);E!==null&&!(E.expirationTime>N&&ia());){var Se=E.callback;if(typeof Se=="function"){E.callback=null,D=E.priorityLevel;var we=Se(E.expirationTime<=N);if(N=i.unstable_now(),typeof we=="function"){E.callback=we,le(N),$=!0;break t}E===d(p)&&u(p),le(N)}else u(p);E=d(p)}if(E!==null)$=!0;else{var dt=d(y);dt!==null&&sn(F,dt.startTime-N),$=!1}}break e}finally{E=null,D=J,B=!1}$=void 0}}finally{$?Mt():de=!1}}}var Mt;if(typeof Ee=="function")Mt=function(){Ee(Oa)};else if(typeof MessageChannel<"u"){var ki=new MessageChannel,wl=ki.port2;ki.port1.onmessage=Oa,Mt=function(){wl.postMessage(null)}}else Mt=function(){G(Oa,0)};function sn(N,$){Fe=G(function(){N(i.unstable_now())},$)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(N){N.callback=null},i.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jt=0<N?Math.floor(1e3/N):5},i.unstable_getCurrentPriorityLevel=function(){return D},i.unstable_next=function(N){switch(D){case 1:case 2:case 3:var $=3;break;default:$=D}var J=D;D=$;try{return N()}finally{D=J}},i.unstable_requestPaint=function(){U=!0},i.unstable_runWithPriority=function(N,$){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var J=D;D=N;try{return $()}finally{D=J}},i.unstable_scheduleCallback=function(N,$,J){var Se=i.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?Se+J:Se):J=Se,N){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=J+we,N={id:j++,callback:$,priorityLevel:N,startTime:J,expirationTime:we,sortIndex:-1},J>Se?(N.sortIndex=J,r(y,N),d(p)===null&&N===d(y)&&(q?(ne(Fe),Fe=-1):q=!0,sn(F,J-Se))):(N.sortIndex=we,r(p,N),k||B||(k=!0,de||(de=!0,Mt()))),N},i.unstable_shouldYield=ia,i.unstable_wrapCallback=function(N){var $=D;return function(){var J=D;D=$;try{return N.apply(this,arguments)}finally{D=J}}}}(Hu)),Hu}var cm;function G0(){return cm||(cm=1,Uu.exports=$0()),Uu.exports}var Lu={exports:{}},ut={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rm;function Y0(){if(rm)return ut;rm=1;var i=Um();function r(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)y+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var u={d:{f:d,r:function(){throw Error(r(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,y,j){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:E==null?null:""+E,children:p,containerInfo:y,implementation:j}}var m=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ut.createPortal=function(p,y){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(r(299));return f(p,y,null,j)},ut.flushSync=function(p){var y=m.T,j=u.p;try{if(m.T=null,u.p=2,p)return p()}finally{m.T=y,u.p=j,u.d.f()}},ut.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,u.d.C(p,y))},ut.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},ut.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var j=y.as,E=g(j,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,B=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;j==="style"?u.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:D,fetchPriority:B}):j==="script"&&u.d.X(p,{crossOrigin:E,integrity:D,fetchPriority:B,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ut.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var j=g(y.as,y.crossOrigin);u.d.M(p,{crossOrigin:j,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&u.d.M(p)},ut.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var j=y.as,E=g(j,y.crossOrigin);u.d.L(p,j,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ut.preloadModule=function(p,y){if(typeof p=="string")if(y){var j=g(y.as,y.crossOrigin);u.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:j,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else u.d.m(p)},ut.requestFormReset=function(p){u.d.r(p)},ut.unstable_batchedUpdates=function(p,y){return p(y)},ut.useFormState=function(p,y,j){return m.H.useFormState(p,y,j)},ut.useFormStatus=function(){return m.H.useHostTransitionStatus()},ut.version="19.1.0",ut}var um;function Zm(){if(um)return Lu.exports;um=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Lu.exports=Y0(),Lu.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var om;function X0(){if(om)return bi;om=1;var i=G0(),r=Um(),d=Zm();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return g(s),e;if(c===a)return g(s),t;c=c.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=c;else{for(var h=!1,x=s.child;x;){if(x===n){h=!0,n=s,a=c;break}if(x===a){h=!0,a=s,n=c;break}x=x.sibling}if(!h){for(x=c.child;x;){if(x===n){h=!0,n=c,a=s;break}if(x===a){h=!0,a=c,n=s;break}x=x.sibling}if(!h)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,E=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),ne=Symbol.for("react.consumer"),Ee=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),jt=Symbol.for("react.lazy"),He=Symbol.for("react.activity"),ia=Symbol.for("react.memo_cache_sentinel"),Oa=Symbol.iterator;function Mt(e){return e===null||typeof e!="object"?null:(e=Oa&&e[Oa]||e["@@iterator"],typeof e=="function"?e:null)}var ki=Symbol.for("react.client.reference");function wl(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ki?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case U:return"Profiler";case q:return"StrictMode";case F:return"Suspense";case de:return"SuspenseList";case He:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case Ee:return(e.displayName||"Context")+".Provider";case ne:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fe:return t=e.displayName||null,t!==null?t:wl(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return wl(e(t))}catch{}}return null}var sn=Array.isArray,N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},Se=[],we=-1;function dt(e){return{current:e}}function De(e){0>we||(e.current=Se[we],Se[we]=null,we--)}function xe(e,t){we++,Se[we]=e.current,e.current=t}var We=dt(null),Kt=dt(null),Dn=dt(null),qi=dt(null);function $i(e,t){switch(xe(Dn,t),xe(Kt,e),xe(We,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nh(t),e=Rh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}De(We),xe(We,e)}function Ma(){De(We),De(Kt),De(Dn)}function vc(e){e.memoizedState!==null&&xe(qi,e);var t=We.current,n=Rh(t,e.type);t!==n&&(xe(Kt,e),xe(We,n))}function Gi(e){Kt.current===e&&(De(We),De(Kt)),qi.current===e&&(De(qi),gi._currentValue=J)}var jc=Object.prototype.hasOwnProperty,bc=i.unstable_scheduleCallback,Sc=i.unstable_cancelCallback,Cx=i.unstable_shouldYield,Tx=i.unstable_requestPaint,Jt=i.unstable_now,Ax=i.unstable_getCurrentPriorityLevel,ho=i.unstable_ImmediatePriority,mo=i.unstable_UserBlockingPriority,Yi=i.unstable_NormalPriority,Ex=i.unstable_LowPriority,xo=i.unstable_IdlePriority,Dx=i.log,Ox=i.unstable_setDisableYieldValue,_l=null,bt=null;function On(e){if(typeof Dx=="function"&&Ox(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(_l,e)}catch{}}var St=Math.clz32?Math.clz32:Bx,Mx=Math.log,zx=Math.LN2;function Bx(e){return e>>>=0,e===0?32:31-(Mx(e)/zx|0)|0}var Xi=256,Qi=4194304;function sa(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Vi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var x=a&134217727;return x!==0?(a=x&~c,a!==0?s=sa(a):(h&=x,h!==0?s=sa(h):n||(n=x&~e,n!==0&&(s=sa(n))))):(x=a&~c,x!==0?s=sa(x):h!==0?s=sa(h):n||(n=a&~e,n!==0&&(s=sa(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function Cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Nx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function go(){var e=Xi;return Xi<<=1,(Xi&4194048)===0&&(Xi=256),e}function po(){var e=Qi;return Qi<<=1,(Qi&62914560)===0&&(Qi=4194304),e}function wc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rx(e,t,n,a,s,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,v=e.expirationTimes,C=e.hiddenUpdates;for(n=h&~n;0<n;){var M=31-St(n),R=1<<M;x[M]=0,v[M]=-1;var T=C[M];if(T!==null)for(C[M]=null,M=0;M<T.length;M++){var A=T[M];A!==null&&(A.lane&=-536870913)}n&=~R}a!==0&&yo(e,a,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function yo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-St(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function vo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-St(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function _c(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 Cc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jo(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:em(e.type))}function Ux(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Mn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Mn,ht="__reactProps$"+Mn,za="__reactContainer$"+Mn,Tc="__reactEvents$"+Mn,Hx="__reactListeners$"+Mn,Lx="__reactHandles$"+Mn,bo="__reactResources$"+Mn,Al="__reactMarker$"+Mn;function Ac(e){delete e[ct],delete e[ht],delete e[Tc],delete e[Hx],delete e[Lx]}function Ba(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[za]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kh(e);e!==null;){if(n=e[ct])return n;e=kh(e)}return t}e=n,n=e.parentNode}return null}function Na(e){if(e=e[ct]||e[za]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function El(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ra(e){var t=e[bo];return t||(t=e[bo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Al]=!0}var So=new Set,wo={};function ca(e,t){Ua(e,t),Ua(e+"Capture",t)}function Ua(e,t){for(wo[e]=t,e=0;e<t.length;e++)So.add(t[e])}var kx=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]*$"),_o={},Co={};function qx(e){return jc.call(Co,e)?!0:jc.call(_o,e)?!1:kx.test(e)?Co[e]=!0:(_o[e]=!0,!1)}function Zi(e,t,n){if(qx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ki(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function cn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var Ec,To;function Ha(e){if(Ec===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ec=t&&t[1]||"",To=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ec+e+To}var Dc=!1;function Oc(e,t){if(!e||Dc)return"";Dc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(A){var T=A}Reflect.construct(e,[],R)}else{try{R.call()}catch(A){T=A}e.call(R.prototype)}}else{try{throw Error()}catch(A){T=A}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(A){if(A&&T&&typeof A.stack=="string")return[A.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),h=c[0],x=c[1];if(h&&x){var v=h.split(`
`),C=x.split(`
`);for(s=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;s<C.length&&!C[s].includes("DetermineComponentFrameRoot");)s++;if(a===v.length||s===C.length)for(a=v.length-1,s=C.length-1;1<=a&&0<=s&&v[a]!==C[s];)s--;for(;1<=a&&0<=s;a--,s--)if(v[a]!==C[s]){if(a!==1||s!==1)do if(a--,s--,0>s||v[a]!==C[s]){var M=`
`+v[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=s);break}}}finally{Dc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ha(n):""}function $x(e){switch(e.tag){case 26:case 27:case 5:return Ha(e.type);case 16:return Ha("Lazy");case 13:return Ha("Suspense");case 19:return Ha("SuspenseList");case 0:case 15:return Oc(e.type,!1);case 11:return Oc(e.type.render,!1);case 1:return Oc(e.type,!0);case 31:return Ha("Activity");default:return""}}function Ao(e){try{var t="";do t+=$x(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gx(e){var t=Eo(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(h){a=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Gx(e))}function Do(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Eo(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Fi(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 Yx=/[\n"\\]/g;function Bt(e){return e.replace(Yx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mc(e,t,n,a,s,c,h,x){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?zc(e,h,zt(t)):n!=null?zc(e,h,zt(n)):a!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+zt(x):e.removeAttribute("name")}function Oo(e,t,n,a,s,c,h,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;n=n!=null?""+zt(n):"",t=t!=null?""+zt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=x?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h)}function zc(e,t,n){t==="number"&&Fi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function La(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+zt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Mo(e,t,n){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+zt(n):""}function zo(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(sn(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=zt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xx=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 Bo(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Xx.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function No(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Bo(e,s,a)}else for(var c in t)t.hasOwnProperty(c)&&Bo(e,c,t[c])}function Bc(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 Qx=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"]]),Vx=/^[\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 Wi(e){return Vx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Nc=null;function Rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qa=null,$a=null;function Ro(e){var t=Na(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[ht]||null;if(!s)throw Error(u(90));Mc(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Do(a)}break e;case"textarea":Mo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&La(e,!!n.multiple,t,!1)}}}var Uc=!1;function Uo(e,t,n){if(Uc)return e(t,n);Uc=!0;try{var a=e(t);return a}finally{if(Uc=!1,(qa!==null||$a!==null)&&(Us(),qa&&(t=qa,e=$a,$a=qa=null,Ro(t),e)))for(t=0;t<e.length;t++)Ro(e[t])}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ht]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(rn)try{var Ol={};Object.defineProperty(Ol,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",Ol,Ol),window.removeEventListener("test",Ol,Ol)}catch{Hc=!1}var zn=null,Lc=null,Ii=null;function Ho(){if(Ii)return Ii;var e,t=Lc,n=t.length,a,s="value"in zn?zn.value:zn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===s[c-a];a++);return Ii=s.slice(e,1<a?1-a:void 0)}function Pi(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 es(){return!0}function Lo(){return!1}function mt(e){function t(n,a,s,c,h){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?es:Lo,this.isPropagationStopped=Lo,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=es)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=es)},persist:function(){},isPersistent:es}),t}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ts=mt(ra),Ml=j({},ra,{view:0,detail:0}),Zx=mt(Ml),kc,qc,zl,ns=j({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gc,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!==zl&&(zl&&e.type==="mousemove"?(kc=e.screenX-zl.screenX,qc=e.screenY-zl.screenY):qc=kc=0,zl=e),kc)},movementY:function(e){return"movementY"in e?e.movementY:qc}}),ko=mt(ns),Kx=j({},ns,{dataTransfer:0}),Jx=mt(Kx),Fx=j({},Ml,{relatedTarget:0}),$c=mt(Fx),Wx=j({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),Ix=mt(Wx),Px=j({},ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eg=mt(Px),tg=j({},ra,{data:0}),qo=mt(tg),ng={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ag={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"},lg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ig(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lg[e])?!!t[e]:!1}function Gc(){return ig}var sg=j({},Ml,{key:function(e){if(e.key){var t=ng[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gc,charCode:function(e){return e.type==="keypress"?Pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cg=mt(sg),rg=j({},ns,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$o=mt(rg),ug=j({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gc}),og=mt(ug),dg=j({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),fg=mt(dg),hg=j({},ns,{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}),mg=mt(hg),xg=j({},ra,{newState:0,oldState:0}),gg=mt(xg),pg=[9,13,27,32],Yc=rn&&"CompositionEvent"in window,Bl=null;rn&&"documentMode"in document&&(Bl=document.documentMode);var yg=rn&&"TextEvent"in window&&!Bl,Go=rn&&(!Yc||Bl&&8<Bl&&11>=Bl),Yo=" ",Xo=!1;function Qo(e,t){switch(e){case"keyup":return pg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ga=!1;function vg(e,t){switch(e){case"compositionend":return Vo(t);case"keypress":return t.which!==32?null:(Xo=!0,Yo);case"textInput":return e=t.data,e===Yo&&Xo?null:e;default:return null}}function jg(e,t){if(Ga)return e==="compositionend"||!Yc&&Qo(e,t)?(e=Ho(),Ii=Lc=zn=null,Ga=!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 Go&&t.locale!=="ko"?null:t.data;default:return null}}var bg={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 Zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bg[e.type]:t==="textarea"}function Ko(e,t,n,a){qa?$a?$a.push(a):$a=[a]:qa=a,t=Gs(t,"onChange"),0<t.length&&(n=new ts("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Nl=null,Rl=null;function Sg(e){Dh(e,0)}function as(e){var t=El(e);if(Do(t))return e}function Jo(e,t){if(e==="change")return t}var Fo=!1;if(rn){var Xc;if(rn){var Qc="oninput"in document;if(!Qc){var Wo=document.createElement("div");Wo.setAttribute("oninput","return;"),Qc=typeof Wo.oninput=="function"}Xc=Qc}else Xc=!1;Fo=Xc&&(!document.documentMode||9<document.documentMode)}function Io(){Nl&&(Nl.detachEvent("onpropertychange",Po),Rl=Nl=null)}function Po(e){if(e.propertyName==="value"&&as(Rl)){var t=[];Ko(t,Rl,e,Rc(e)),Uo(Sg,t)}}function wg(e,t,n){e==="focusin"?(Io(),Nl=t,Rl=n,Nl.attachEvent("onpropertychange",Po)):e==="focusout"&&Io()}function _g(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return as(Rl)}function Cg(e,t){if(e==="click")return as(t)}function Tg(e,t){if(e==="input"||e==="change")return as(t)}function Ag(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:Ag;function Ul(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!jc.call(t,s)||!wt(e[s],t[s]))return!1}return!0}function ed(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function td(e,t){var n=ed(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ed(n)}}function nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Vc(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 Eg=rn&&"documentMode"in document&&11>=document.documentMode,Ya=null,Zc=null,Hl=null,Kc=!1;function ld(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kc||Ya==null||Ya!==Fi(a)||(a=Ya,"selectionStart"in a&&Vc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Hl&&Ul(Hl,a)||(Hl=a,a=Gs(Zc,"onSelect"),0<a.length&&(t=new ts("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ya)))}function ua(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xa={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")},Jc={},id={};rn&&(id=document.createElement("div").style,"AnimationEvent"in window||(delete Xa.animationend.animation,delete Xa.animationiteration.animation,delete Xa.animationstart.animation),"TransitionEvent"in window||delete Xa.transitionend.transition);function oa(e){if(Jc[e])return Jc[e];if(!Xa[e])return e;var t=Xa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in id)return Jc[e]=t[n];return e}var sd=oa("animationend"),cd=oa("animationiteration"),rd=oa("animationstart"),Dg=oa("transitionrun"),Og=oa("transitionstart"),Mg=oa("transitioncancel"),ud=oa("transitionend"),od=new Map,Fc="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(" ");Fc.push("scrollEnd");function Yt(e,t){od.set(e,t),ca(t,[e])}var dd=new WeakMap;function Nt(e,t){if(typeof e=="object"&&e!==null){var n=dd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ao(t)},dd.set(e,t),t)}return{value:e,source:t,stack:Ao(t)}}var Rt=[],Qa=0,Wc=0;function ls(){for(var e=Qa,t=Wc=Qa=0;t<e;){var n=Rt[t];Rt[t++]=null;var a=Rt[t];Rt[t++]=null;var s=Rt[t];Rt[t++]=null;var c=Rt[t];if(Rt[t++]=null,a!==null&&s!==null){var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}c!==0&&fd(n,s,c)}}function is(e,t,n,a){Rt[Qa++]=e,Rt[Qa++]=t,Rt[Qa++]=n,Rt[Qa++]=a,Wc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ic(e,t,n,a){return is(e,t,n,a),ss(e)}function Va(e,t){return is(e,null,null,t),ss(e)}function fd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-St(n),e=c.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),c):null}function ss(e){if(50<ri)throw ri=0,lu=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Za={};function zg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,a){return new zg(e,t,n,a)}function Pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cs(e,t,n,a,s,c){var h=0;if(a=e,typeof e=="function")Pc(e)&&(h=1);else if(typeof e=="string")h=Np(e,n,We.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case He:return e=_t(31,n,t,s),e.elementType=He,e.lanes=c,e;case k:return da(n.children,s,c,t);case q:h=8,s|=24;break;case U:return e=_t(12,n,t,s|2),e.elementType=U,e.lanes=c,e;case F:return e=_t(13,n,t,s),e.elementType=F,e.lanes=c,e;case de:return e=_t(19,n,t,s),e.elementType=de,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:case Ee:h=10;break e;case ne:h=9;break e;case le:h=11;break e;case Fe:h=14;break e;case jt:h=16,a=null;break e}h=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=_t(h,n,t,s),t.elementType=e,t.type=a,t.lanes=c,t}function da(e,t,n,a){return e=_t(7,e,a,t),e.lanes=n,e}function er(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function tr(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ka=[],Ja=0,rs=null,us=0,Ut=[],Ht=0,fa=null,on=1,dn="";function ha(e,t){Ka[Ja++]=us,Ka[Ja++]=rs,rs=e,us=t}function md(e,t,n){Ut[Ht++]=on,Ut[Ht++]=dn,Ut[Ht++]=fa,fa=e;var a=on;e=dn;var s=32-St(a)-1;a&=~(1<<s),n+=1;var c=32-St(t)+s;if(30<c){var h=s-s%5;c=(a&(1<<h)-1).toString(32),a>>=h,s-=h,on=1<<32-St(t)+s|n<<s|a,dn=c+e}else on=1<<c|n<<s|a,dn=e}function nr(e){e.return!==null&&(ha(e,1),md(e,1,0))}function ar(e){for(;e===rs;)rs=Ka[--Ja],Ka[Ja]=null,us=Ka[--Ja],Ka[Ja]=null;for(;e===fa;)fa=Ut[--Ht],Ut[Ht]=null,dn=Ut[--Ht],Ut[Ht]=null,on=Ut[--Ht],Ut[Ht]=null}var ft=null,Re=null,ue=!1,ma=null,Ft=!1,lr=Error(u(519));function xa(e){var t=Error(u(418,""));throw ql(Nt(t,e)),lr}function xd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ct]=e,t[ht]=a,n){case"dialog":te("cancel",t),te("close",t);break;case"iframe":case"object":case"embed":te("load",t);break;case"video":case"audio":for(n=0;n<oi.length;n++)te(oi[n],t);break;case"source":te("error",t);break;case"img":case"image":case"link":te("error",t),te("load",t);break;case"details":te("toggle",t);break;case"input":te("invalid",t),Oo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ji(t);break;case"select":te("invalid",t);break;case"textarea":te("invalid",t),zo(t,a.value,a.defaultValue,a.children),Ji(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Bh(t.textContent,n)?(a.popover!=null&&(te("beforetoggle",t),te("toggle",t)),a.onScroll!=null&&te("scroll",t),a.onScrollEnd!=null&&te("scrollend",t),a.onClick!=null&&(t.onclick=Ys),t=!0):t=!1,t||xa(e)}function gd(e){for(ft=e.return;ft;)switch(ft.tag){case 5:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:ft=ft.return}}function Ll(e){if(e!==ft)return!1;if(!ue)return gd(e),ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ju(e.type,e.memoizedProps)),n=!n),n&&Re&&xa(e),gd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Re=Qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Re=null}}else t===27?(t=Re,Kn(e.type)?(e=_u,_u=null,Re=e):Re=t):Re=ft?Qt(e.stateNode.nextSibling):null;return!0}function kl(){Re=ft=null,ue=!1}function pd(){var e=ma;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),ma=null),e}function ql(e){ma===null?ma=[e]:ma.push(e)}var ir=dt(null),ga=null,fn=null;function Bn(e,t,n){xe(ir,t._currentValue),t._currentValue=n}function hn(e){e._currentValue=ir.current,De(ir)}function sr(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function cr(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var h=s.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=s;for(var v=0;v<t.length;v++)if(x.context===t[v]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),sr(c.return,n,e),a||(h=null);break e}c=x.next}}else if(s.tag===18){if(h=s.return,h===null)throw Error(u(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),sr(h,n,e),h=null}else h=s.child;if(h!==null)h.return=s;else for(h=s;h!==null;){if(h===e){h=null;break}if(s=h.sibling,s!==null){s.return=h.return,h=s;break}h=h.return}s=h}}function $l(e,t,n,a){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var h=s.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var x=s.type;wt(s.pendingProps.value,h.value)||(e!==null?e.push(x):e=[x])}}else if(s===qi.current){if(h=s.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(gi):e=[gi])}s=s.return}e!==null&&cr(t,e,n,a),t.flags|=262144}function os(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pa(e){ga=e,fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return yd(ga,e)}function ds(e,t){return ga===null&&pa(e),yd(e,t)}function yd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fn===null){if(e===null)throw Error(u(308));fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fn=fn.next=t;return n}var Bg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Ng=i.unstable_scheduleCallback,Rg=i.unstable_NormalPriority,Qe={$$typeof:Ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rr(){return{controller:new Bg,data:new Map,refCount:0}}function Gl(e){e.refCount--,e.refCount===0&&Ng(Rg,function(){e.controller.abort()})}var Yl=null,ur=0,Fa=0,Wa=null;function Ug(e,t){if(Yl===null){var n=Yl=[];ur=0,Fa=du(),Wa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ur++,t.then(vd,vd),t}function vd(){if(--ur===0&&Yl!==null){Wa!==null&&(Wa.status="fulfilled");var e=Yl;Yl=null,Fa=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hg(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var jd=N.S;N.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ug(e,t),jd!==null&&jd(e,t)};var ya=dt(null);function or(){var e=ya.current;return e!==null?e:je.pooledCache}function fs(e,t){t===null?xe(ya,ya.current):xe(ya,t.pool)}function bd(){var e=or();return e===null?null:{parent:Qe._currentValue,pool:e}}var Xl=Error(u(460)),Sd=Error(u(474)),hs=Error(u(542)),dr={then:function(){}};function wd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ms(){}function _d(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ms,ms),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Td(e),e;default:if(typeof t.status=="string")t.then(ms,ms);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Td(e),e}throw Ql=t,Xl}}var Ql=null;function Cd(){if(Ql===null)throw Error(u(459));var e=Ql;return Ql=null,e}function Td(e){if(e===Xl||e===hs)throw Error(u(483))}var Nn=!1;function fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Rn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(fe&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=ss(e),fd(e,null,n),t}return is(e,a,t,n),ss(e)}function Vl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,vo(e,n)}}function mr(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xr=!1;function Zl(){if(xr){var e=Wa;if(e!==null)throw e}}function Kl(e,t,n,a){xr=!1;var s=e.updateQueue;Nn=!1;var c=s.firstBaseUpdate,h=s.lastBaseUpdate,x=s.shared.pending;if(x!==null){s.shared.pending=null;var v=x,C=v.next;v.next=null,h===null?c=C:h.next=C,h=v;var M=e.alternate;M!==null&&(M=M.updateQueue,x=M.lastBaseUpdate,x!==h&&(x===null?M.firstBaseUpdate=C:x.next=C,M.lastBaseUpdate=v))}if(c!==null){var R=s.baseState;h=0,M=C=v=null,x=c;do{var T=x.lane&-536870913,A=T!==x.lane;if(A?(ae&T)===T:(a&T)===T){T!==0&&T===Fa&&(xr=!0),M!==null&&(M=M.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var K=e,V=x;T=t;var ye=n;switch(V.tag){case 1:if(K=V.payload,typeof K=="function"){R=K.call(ye,R,T);break e}R=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=V.payload,T=typeof K=="function"?K.call(ye,R,T):K,T==null)break e;R=j({},R,T);break e;case 2:Nn=!0}}T=x.callback,T!==null&&(e.flags|=64,A&&(e.flags|=8192),A=s.callbacks,A===null?s.callbacks=[T]:A.push(T))}else A={lane:T,tag:x.tag,payload:x.payload,callback:x.callback,next:null},M===null?(C=M=A,v=R):M=M.next=A,h|=T;if(x=x.next,x===null){if(x=s.shared.pending,x===null)break;A=x,x=A.next,A.next=null,s.lastBaseUpdate=A,s.shared.pending=null}}while(!0);M===null&&(v=R),s.baseState=v,s.firstBaseUpdate=C,s.lastBaseUpdate=M,c===null&&(s.shared.lanes=0),Xn|=h,e.lanes=h,e.memoizedState=R}}function Ad(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ed(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ad(n[e],t)}var Ia=dt(null),xs=dt(0);function Dd(e,t){e=jn,xe(xs,e),xe(Ia,t),jn=e|t.baseLanes}function gr(){xe(xs,jn),xe(Ia,Ia.current)}function pr(){jn=xs.current,De(Ia),De(xs)}var Hn=0,I=null,ge=null,Ge=null,gs=!1,Pa=!1,va=!1,ps=0,Jl=0,el=null,Lg=0;function Le(){throw Error(u(321))}function yr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wt(e[n],t[n]))return!1;return!0}function vr(e,t,n,a,s,c){return Hn=c,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?hf:mf,va=!1,c=n(a,s),va=!1,Pa&&(c=Md(t,n,a,s)),Od(e),c}function Od(e){N.H=ws;var t=ge!==null&&ge.next!==null;if(Hn=0,Ge=ge=I=null,gs=!1,Jl=0,el=null,t)throw Error(u(300));e===null||Pe||(e=e.dependencies,e!==null&&os(e)&&(Pe=!0))}function Md(e,t,n,a){I=e;var s=0;do{if(Pa&&(el=null),Jl=0,Pa=!1,25<=s)throw Error(u(301));if(s+=1,Ge=ge=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}N.H=Qg,c=t(n,a)}while(Pa);return c}function kg(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?Fl(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(I.flags|=1024),t}function jr(){var e=ps!==0;return ps=0,e}function br(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Sr(e){if(gs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gs=!1}Hn=0,Ge=ge=I=null,Pa=!1,Jl=ps=0,el=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?I.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Ye(){if(ge===null){var e=I.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Ge===null?I.memoizedState:Ge.next;if(t!==null)Ge=t,ge=e;else{if(e===null)throw I.alternate===null?Error(u(467)):Error(u(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},Ge===null?I.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fl(e){var t=Jl;return Jl+=1,el===null&&(el=[]),e=_d(el,e,t),t=I,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?hf:mf),e}function ys(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fl(e);if(e.$$typeof===Ee)return rt(e)}throw Error(u(438,String(e)))}function _r(e){var t=null,n=I.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=I.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wr(),I.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ia;return t.index++,n}function mn(e,t){return typeof t=="function"?t(e):t}function vs(e){var t=Ye();return Cr(t,ge,e)}function Cr(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=e.baseQueue,c=a.pending;if(c!==null){if(s!==null){var h=s.next;s.next=c.next,c.next=h}t.baseQueue=s=c,a.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var x=h=null,v=null,C=t,M=!1;do{var R=C.lane&-536870913;if(R!==C.lane?(ae&R)===R:(Hn&R)===R){var T=C.revertLane;if(T===0)v!==null&&(v=v.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),R===Fa&&(M=!0);else if((Hn&T)===T){C=C.next,T===Fa&&(M=!0);continue}else R={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},v===null?(x=v=R,h=c):v=v.next=R,I.lanes|=T,Xn|=T;R=C.action,va&&n(c,R),c=C.hasEagerState?C.eagerState:n(c,R)}else T={lane:R,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},v===null?(x=v=T,h=c):v=v.next=T,I.lanes|=R,Xn|=R;C=C.next}while(C!==null&&C!==t);if(v===null?h=c:v.next=x,!wt(c,e.memoizedState)&&(Pe=!0,M&&(n=Wa,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=v,a.lastRenderedState=c}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tr(e){var t=Ye(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var h=s=s.next;do c=e(c,h.action),h=h.next;while(h!==s);wt(c,t.memoizedState)||(Pe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function zd(e,t,n){var a=I,s=Ye(),c=ue;if(c){if(n===void 0)throw Error(u(407));n=n()}else n=t();var h=!wt((ge||s).memoizedState,n);h&&(s.memoizedState=n,Pe=!0),s=s.queue;var x=Rd.bind(null,a,s,e);if(Wl(2048,8,x,[e]),s.getSnapshot!==t||h||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,tl(9,js(),Nd.bind(null,a,s,n,t),null),je===null)throw Error(u(349));c||(Hn&124)!==0||Bd(a,t,n)}return n}function Bd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=I.updateQueue,t===null?(t=wr(),I.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Nd(e,t,n,a){t.value=n,t.getSnapshot=a,Ud(t)&&Hd(e)}function Rd(e,t,n){return n(function(){Ud(t)&&Hd(e)})}function Ud(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wt(e,n)}catch{return!0}}function Hd(e){var t=Va(e,2);t!==null&&Dt(t,e,2)}function Ar(e){var t=xt();if(typeof e=="function"){var n=e;if(e=n(),va){On(!0);try{n()}finally{On(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function Ld(e,t,n,a){return e.baseState=n,Cr(e,ge,typeof a=="function"?a:mn)}function qg(e,t,n,a,s){if(Ss(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};N.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,kd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function kd(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var c=N.T,h={};N.T=h;try{var x=n(s,a),v=N.S;v!==null&&v(h,x),qd(e,t,x)}catch(C){Er(e,t,C)}finally{N.T=c}}else try{c=n(s,a),qd(e,t,c)}catch(C){Er(e,t,C)}}function qd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){$d(e,t,a)},function(a){return Er(e,t,a)}):$d(e,t,n)}function $d(e,t,n){t.status="fulfilled",t.value=n,Gd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,kd(e,n)))}function Er(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Gd(t),t=t.next;while(t!==a)}e.action=null}function Gd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yd(e,t){return t}function Xd(e,t){if(ue){var n=je.formState;if(n!==null){e:{var a=I;if(ue){if(Re){t:{for(var s=Re,c=Ft;s.nodeType!==8;){if(!c){s=null;break t}if(s=Qt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Re=Qt(s.nextSibling),a=s.data==="F!";break e}}xa(a)}a=!1}a&&(t=n[0])}}return n=xt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yd,lastRenderedState:t},n.queue=a,n=of.bind(null,I,a),a.dispatch=n,a=Ar(!1),c=Br.bind(null,I,!1,a.queue),a=xt(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=qg.bind(null,I,s,c,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function Qd(e){var t=Ye();return Vd(t,ge,e)}function Vd(e,t,n){if(t=Cr(e,t,Yd)[0],e=vs(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Fl(t)}catch(h){throw h===Xl?hs:h}else a=t;t=Ye();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(I.flags|=2048,tl(9,js(),$g.bind(null,s,n),null)),[a,c,e]}function $g(e,t){e.action=t}function Zd(e){var t=Ye(),n=ge;if(n!==null)return Vd(t,n,e);Ye(),t=t.memoizedState,n=Ye();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function tl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=I.updateQueue,t===null&&(t=wr(),I.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function js(){return{destroy:void 0,resource:void 0}}function Kd(){return Ye().memoizedState}function bs(e,t,n,a){var s=xt();a=a===void 0?null:a,I.flags|=e,s.memoizedState=tl(1|t,js(),n,a)}function Wl(e,t,n,a){var s=Ye();a=a===void 0?null:a;var c=s.memoizedState.inst;ge!==null&&a!==null&&yr(a,ge.memoizedState.deps)?s.memoizedState=tl(t,c,n,a):(I.flags|=e,s.memoizedState=tl(1|t,c,n,a))}function Jd(e,t){bs(8390656,8,e,t)}function Fd(e,t){Wl(2048,8,e,t)}function Wd(e,t){return Wl(4,2,e,t)}function Id(e,t){return Wl(4,4,e,t)}function Pd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ef(e,t,n){n=n!=null?n.concat([e]):null,Wl(4,4,Pd.bind(null,t,e),n)}function Dr(){}function tf(e,t){var n=Ye();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&yr(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function nf(e,t){var n=Ye();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&yr(t,a[1]))return a[0];if(a=e(),va){On(!0);try{e()}finally{On(!1)}}return n.memoizedState=[a,t],a}function Or(e,t,n){return n===void 0||(Hn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=sh(),I.lanes|=e,Xn|=e,n)}function af(e,t,n,a){return wt(n,t)?n:Ia.current!==null?(e=Or(e,n,a),wt(e,t)||(Pe=!0),e):(Hn&42)===0?(Pe=!0,e.memoizedState=n):(e=sh(),I.lanes|=e,Xn|=e,t)}function lf(e,t,n,a,s){var c=$.p;$.p=c!==0&&8>c?c:8;var h=N.T,x={};N.T=x,Br(e,!1,t,n);try{var v=s(),C=N.S;if(C!==null&&C(x,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var M=Hg(v,a);Il(e,t,M,Et(e))}else Il(e,t,a,Et(e))}catch(R){Il(e,t,{then:function(){},status:"rejected",reason:R},Et())}finally{$.p=c,N.T=h}}function Gg(){}function Mr(e,t,n,a){if(e.tag!==5)throw Error(u(476));var s=sf(e).queue;lf(e,s,t,J,n===null?Gg:function(){return cf(e),n(a)})}function sf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:J},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cf(e){var t=sf(e).next.queue;Il(e,t,{},Et())}function zr(){return rt(gi)}function rf(){return Ye().memoizedState}function uf(){return Ye().memoizedState}function Yg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Et();e=Rn(n);var a=Un(t,e,n);a!==null&&(Dt(a,t,n),Vl(a,t,n)),t={cache:rr()},e.payload=t;return}t=t.return}}function Xg(e,t,n){var a=Et();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ss(e)?df(t,n):(n=Ic(e,t,n,a),n!==null&&(Dt(n,e,a),ff(n,t,a)))}function of(e,t,n){var a=Et();Il(e,t,n,a)}function Il(e,t,n,a){var s={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ss(e))df(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,n);if(s.hasEagerState=!0,s.eagerState=x,wt(x,h))return is(e,t,s,0),je===null&&ls(),!1}catch{}finally{}if(n=Ic(e,t,s,a),n!==null)return Dt(n,e,a),ff(n,t,a),!0}return!1}function Br(e,t,n,a){if(a={lane:2,revertLane:du(),action:a,hasEagerState:!1,eagerState:null,next:null},Ss(e)){if(t)throw Error(u(479))}else t=Ic(e,n,a,2),t!==null&&Dt(t,e,2)}function Ss(e){var t=e.alternate;return e===I||t!==null&&t===I}function df(e,t){Pa=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ff(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,vo(e,n)}}var ws={readContext:rt,use:ys,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},hf={readContext:rt,use:ys,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Jd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,bs(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bs(4194308,4,e,t)},useInsertionEffect:function(e,t){bs(4,2,e,t)},useMemo:function(e,t){var n=xt();t=t===void 0?null:t;var a=e();if(va){On(!0);try{e()}finally{On(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=xt();if(n!==void 0){var s=n(t);if(va){On(!0);try{n(t)}finally{On(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Xg.bind(null,I,e),[a.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ar(e);var t=e.queue,n=of.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Dr,useDeferredValue:function(e,t){var n=xt();return Or(n,e,t)},useTransition:function(){var e=Ar(!1);return e=lf.bind(null,I,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=I,s=xt();if(ue){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),je===null)throw Error(u(349));(ae&124)!==0||Bd(a,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Jd(Rd.bind(null,a,c,e),[e]),a.flags|=2048,tl(9,js(),Nd.bind(null,a,c,n,t),null),n},useId:function(){var e=xt(),t=je.identifierPrefix;if(ue){var n=dn,a=on;n=(a&~(1<<32-St(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Lg++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zr,useFormState:Xd,useActionState:Xd,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Br.bind(null,I,!0,n),n.dispatch=t,[e,t]},useMemoCache:_r,useCacheRefresh:function(){return xt().memoizedState=Yg.bind(null,I)}},mf={readContext:rt,use:ys,useCallback:tf,useContext:rt,useEffect:Fd,useImperativeHandle:ef,useInsertionEffect:Wd,useLayoutEffect:Id,useMemo:nf,useReducer:vs,useRef:Kd,useState:function(){return vs(mn)},useDebugValue:Dr,useDeferredValue:function(e,t){var n=Ye();return af(n,ge.memoizedState,e,t)},useTransition:function(){var e=vs(mn)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fl(e),t]},useSyncExternalStore:zd,useId:rf,useHostTransitionStatus:zr,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var n=Ye();return Ld(n,ge,e,t)},useMemoCache:_r,useCacheRefresh:uf},Qg={readContext:rt,use:ys,useCallback:tf,useContext:rt,useEffect:Fd,useImperativeHandle:ef,useInsertionEffect:Wd,useLayoutEffect:Id,useMemo:nf,useReducer:Tr,useRef:Kd,useState:function(){return Tr(mn)},useDebugValue:Dr,useDeferredValue:function(e,t){var n=Ye();return ge===null?Or(n,e,t):af(n,ge.memoizedState,e,t)},useTransition:function(){var e=Tr(mn)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Fl(e),t]},useSyncExternalStore:zd,useId:rf,useHostTransitionStatus:zr,useFormState:Zd,useActionState:Zd,useOptimistic:function(e,t){var n=Ye();return ge!==null?Ld(n,ge,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_r,useCacheRefresh:uf},nl=null,Pl=0;function _s(e){var t=Pl;return Pl+=1,nl===null&&(nl=[]),_d(nl,e,t)}function ei(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Cs(e,t){throw t.$$typeof===E?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xf(e){var t=e._init;return t(e._payload)}function gf(e){function t(S,b){if(e){var w=S.deletions;w===null?(S.deletions=[b],S.flags|=16):w.push(b)}}function n(S,b){if(!e)return null;for(;b!==null;)t(S,b),b=b.sibling;return null}function a(S){for(var b=new Map;S!==null;)S.key!==null?b.set(S.key,S):b.set(S.index,S),S=S.sibling;return b}function s(S,b){return S=un(S,b),S.index=0,S.sibling=null,S}function c(S,b,w){return S.index=w,e?(w=S.alternate,w!==null?(w=w.index,w<b?(S.flags|=67108866,b):w):(S.flags|=67108866,b)):(S.flags|=1048576,b)}function h(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function x(S,b,w,z){return b===null||b.tag!==6?(b=er(w,S.mode,z),b.return=S,b):(b=s(b,w),b.return=S,b)}function v(S,b,w,z){var Y=w.type;return Y===k?M(S,b,w.props.children,z,w.key):b!==null&&(b.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===jt&&xf(Y)===b.type)?(b=s(b,w.props),ei(b,w),b.return=S,b):(b=cs(w.type,w.key,w.props,null,S.mode,z),ei(b,w),b.return=S,b)}function C(S,b,w,z){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=tr(w,S.mode,z),b.return=S,b):(b=s(b,w.children||[]),b.return=S,b)}function M(S,b,w,z,Y){return b===null||b.tag!==7?(b=da(w,S.mode,z,Y),b.return=S,b):(b=s(b,w),b.return=S,b)}function R(S,b,w){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=er(""+b,S.mode,w),b.return=S,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case D:return w=cs(b.type,b.key,b.props,null,S.mode,w),ei(w,b),w.return=S,w;case B:return b=tr(b,S.mode,w),b.return=S,b;case jt:var z=b._init;return b=z(b._payload),R(S,b,w)}if(sn(b)||Mt(b))return b=da(b,S.mode,w,null),b.return=S,b;if(typeof b.then=="function")return R(S,_s(b),w);if(b.$$typeof===Ee)return R(S,ds(S,b),w);Cs(S,b)}return null}function T(S,b,w,z){var Y=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return Y!==null?null:x(S,b,""+w,z);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case D:return w.key===Y?v(S,b,w,z):null;case B:return w.key===Y?C(S,b,w,z):null;case jt:return Y=w._init,w=Y(w._payload),T(S,b,w,z)}if(sn(w)||Mt(w))return Y!==null?null:M(S,b,w,z,null);if(typeof w.then=="function")return T(S,b,_s(w),z);if(w.$$typeof===Ee)return T(S,b,ds(S,w),z);Cs(S,w)}return null}function A(S,b,w,z,Y){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return S=S.get(w)||null,x(b,S,""+z,Y);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case D:return S=S.get(z.key===null?w:z.key)||null,v(b,S,z,Y);case B:return S=S.get(z.key===null?w:z.key)||null,C(b,S,z,Y);case jt:var P=z._init;return z=P(z._payload),A(S,b,w,z,Y)}if(sn(z)||Mt(z))return S=S.get(w)||null,M(b,S,z,Y,null);if(typeof z.then=="function")return A(S,b,w,_s(z),Y);if(z.$$typeof===Ee)return A(S,b,w,ds(b,z),Y);Cs(b,z)}return null}function K(S,b,w,z){for(var Y=null,P=null,Q=b,Z=b=0,tt=null;Q!==null&&Z<w.length;Z++){Q.index>Z?(tt=Q,Q=null):tt=Q.sibling;var ce=T(S,Q,w[Z],z);if(ce===null){Q===null&&(Q=tt);break}e&&Q&&ce.alternate===null&&t(S,Q),b=c(ce,b,Z),P===null?Y=ce:P.sibling=ce,P=ce,Q=tt}if(Z===w.length)return n(S,Q),ue&&ha(S,Z),Y;if(Q===null){for(;Z<w.length;Z++)Q=R(S,w[Z],z),Q!==null&&(b=c(Q,b,Z),P===null?Y=Q:P.sibling=Q,P=Q);return ue&&ha(S,Z),Y}for(Q=a(Q);Z<w.length;Z++)tt=A(Q,S,Z,w[Z],z),tt!==null&&(e&&tt.alternate!==null&&Q.delete(tt.key===null?Z:tt.key),b=c(tt,b,Z),P===null?Y=tt:P.sibling=tt,P=tt);return e&&Q.forEach(function(Pn){return t(S,Pn)}),ue&&ha(S,Z),Y}function V(S,b,w,z){if(w==null)throw Error(u(151));for(var Y=null,P=null,Q=b,Z=b=0,tt=null,ce=w.next();Q!==null&&!ce.done;Z++,ce=w.next()){Q.index>Z?(tt=Q,Q=null):tt=Q.sibling;var Pn=T(S,Q,ce.value,z);if(Pn===null){Q===null&&(Q=tt);break}e&&Q&&Pn.alternate===null&&t(S,Q),b=c(Pn,b,Z),P===null?Y=Pn:P.sibling=Pn,P=Pn,Q=tt}if(ce.done)return n(S,Q),ue&&ha(S,Z),Y;if(Q===null){for(;!ce.done;Z++,ce=w.next())ce=R(S,ce.value,z),ce!==null&&(b=c(ce,b,Z),P===null?Y=ce:P.sibling=ce,P=ce);return ue&&ha(S,Z),Y}for(Q=a(Q);!ce.done;Z++,ce=w.next())ce=A(Q,S,Z,ce.value,z),ce!==null&&(e&&ce.alternate!==null&&Q.delete(ce.key===null?Z:ce.key),b=c(ce,b,Z),P===null?Y=ce:P.sibling=ce,P=ce);return e&&Q.forEach(function(Vp){return t(S,Vp)}),ue&&ha(S,Z),Y}function ye(S,b,w,z){if(typeof w=="object"&&w!==null&&w.type===k&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case D:e:{for(var Y=w.key;b!==null;){if(b.key===Y){if(Y=w.type,Y===k){if(b.tag===7){n(S,b.sibling),z=s(b,w.props.children),z.return=S,S=z;break e}}else if(b.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===jt&&xf(Y)===b.type){n(S,b.sibling),z=s(b,w.props),ei(z,w),z.return=S,S=z;break e}n(S,b);break}else t(S,b);b=b.sibling}w.type===k?(z=da(w.props.children,S.mode,z,w.key),z.return=S,S=z):(z=cs(w.type,w.key,w.props,null,S.mode,z),ei(z,w),z.return=S,S=z)}return h(S);case B:e:{for(Y=w.key;b!==null;){if(b.key===Y)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(S,b.sibling),z=s(b,w.children||[]),z.return=S,S=z;break e}else{n(S,b);break}else t(S,b);b=b.sibling}z=tr(w,S.mode,z),z.return=S,S=z}return h(S);case jt:return Y=w._init,w=Y(w._payload),ye(S,b,w,z)}if(sn(w))return K(S,b,w,z);if(Mt(w)){if(Y=Mt(w),typeof Y!="function")throw Error(u(150));return w=Y.call(w),V(S,b,w,z)}if(typeof w.then=="function")return ye(S,b,_s(w),z);if(w.$$typeof===Ee)return ye(S,b,ds(S,w),z);Cs(S,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,b!==null&&b.tag===6?(n(S,b.sibling),z=s(b,w),z.return=S,S=z):(n(S,b),z=er(w,S.mode,z),z.return=S,S=z),h(S)):n(S,b)}return function(S,b,w,z){try{Pl=0;var Y=ye(S,b,w,z);return nl=null,Y}catch(Q){if(Q===Xl||Q===hs)throw Q;var P=_t(29,Q,null,S.mode);return P.lanes=z,P.return=S,P}finally{}}}var al=gf(!0),pf=gf(!1),Lt=dt(null),Wt=null;function Ln(e){var t=e.alternate;xe(Ve,Ve.current&1),xe(Lt,e),Wt===null&&(t===null||Ia.current!==null||t.memoizedState!==null)&&(Wt=e)}function yf(e){if(e.tag===22){if(xe(Ve,Ve.current),xe(Lt,e),Wt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Wt=e)}}else kn()}function kn(){xe(Ve,Ve.current),xe(Lt,Lt.current)}function xn(e){De(Lt),Wt===e&&(Wt=null),De(Ve)}var Ve=dt(0);function Ts(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||wu(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Nr(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:j({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Rr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Et(),s=Rn(a);s.payload=t,n!=null&&(s.callback=n),t=Un(e,s,a),t!==null&&(Dt(t,e,a),Vl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Et(),s=Rn(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Un(e,s,a),t!==null&&(Dt(t,e,a),Vl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Et(),a=Rn(n);a.tag=2,t!=null&&(a.callback=t),t=Un(e,a,n),t!==null&&(Dt(t,e,n),Vl(t,e,n))}};function vf(e,t,n,a,s,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,a)||!Ul(s,c):!0}function jf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Rr.enqueueReplaceState(t,t.state,null)}function ja(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=j({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}var As=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)};function bf(e){As(e)}function Sf(e){console.error(e)}function wf(e){As(e)}function Es(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _f(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ur(e,t,n){return n=Rn(n),n.tag=3,n.payload={element:null},n.callback=function(){Es(e,t)},n}function Cf(e){return e=Rn(e),e.tag=3,e}function Tf(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=a.value;e.payload=function(){return s(c)},e.callback=function(){_f(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){_f(t,n,a),typeof s!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var x=a.stack;this.componentDidCatch(a.value,{componentStack:x!==null?x:""})})}function Vg(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&$l(t,n,s,!0),n=Lt.current,n!==null){switch(n.tag){case 13:return Wt===null?su():n.alternate===null&&Ue===0&&(Ue=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===dr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ru(e,a,s)),!1;case 22:return n.flags|=65536,a===dr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ru(e,a,s)),!1}throw Error(u(435,n.tag))}return ru(e,a,s),su(),!1}if(ue)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==lr&&(e=Error(u(422),{cause:a}),ql(Nt(e,n)))):(a!==lr&&(t=Error(u(423),{cause:a}),ql(Nt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Nt(a,n),s=Ur(e.stateNode,a,s),mr(e,s),Ue!==4&&(Ue=2)),!1;var c=Error(u(520),{cause:a});if(c=Nt(c,n),ci===null?ci=[c]:ci.push(c),Ue!==4&&(Ue=2),t===null)return!0;a=Nt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Ur(n.stateNode,a,e),mr(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Qn===null||!Qn.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Cf(s),Tf(s,e,n,a),mr(n,s),!1}n=n.return}while(n!==null);return!1}var Af=Error(u(461)),Pe=!1;function nt(e,t,n,a){t.child=e===null?pf(t,null,n,a):al(t,e.child,n,a)}function Ef(e,t,n,a,s){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var x in a)x!=="ref"&&(h[x]=a[x])}else h=a;return pa(t),a=vr(e,t,n,h,c,s),x=jr(),e!==null&&!Pe?(br(e,t,s),gn(e,t,s)):(ue&&x&&nr(t),t.flags|=1,nt(e,t,a,s),t.child)}function Df(e,t,n,a,s){if(e===null){var c=n.type;return typeof c=="function"&&!Pc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Of(e,t,c,a,s)):(e=cs(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Xr(e,s)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(h,a)&&e.ref===t.ref)return gn(e,t,s)}return t.flags|=1,e=un(c,a),e.ref=t.ref,e.return=t,t.child=e}function Of(e,t,n,a,s){if(e!==null){var c=e.memoizedProps;if(Ul(c,a)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=a=c,Xr(e,s))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,gn(e,t,s)}return Hr(e,t,n,a,s)}function Mf(e,t,n){var a=t.pendingProps,s=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=c!==null?c.baseLanes|n:n,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;t.childLanes=c&~a}else t.childLanes=0,t.child=null;return zf(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fs(t,c!==null?c.cachePool:null),c!==null?Dd(t,c):gr(),yf(t);else return t.lanes=t.childLanes=536870912,zf(e,t,c!==null?c.baseLanes|n:n,n)}else c!==null?(fs(t,c.cachePool),Dd(t,c),kn(),t.memoizedState=null):(e!==null&&fs(t,null),gr(),kn());return nt(e,t,s,n),t.child}function zf(e,t,n,a){var s=or();return s=s===null?null:{parent:Qe._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&fs(t,null),gr(),yf(t),e!==null&&$l(e,t,a,!0),null}function Ds(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Hr(e,t,n,a,s){return pa(t),n=vr(e,t,n,a,void 0,s),a=jr(),e!==null&&!Pe?(br(e,t,s),gn(e,t,s)):(ue&&a&&nr(t),t.flags|=1,nt(e,t,n,s),t.child)}function Bf(e,t,n,a,s,c){return pa(t),t.updateQueue=null,n=Md(t,a,n,s),Od(e),a=jr(),e!==null&&!Pe?(br(e,t,c),gn(e,t,c)):(ue&&a&&nr(t),t.flags|=1,nt(e,t,n,c),t.child)}function Nf(e,t,n,a,s){if(pa(t),t.stateNode===null){var c=Za,h=n.contextType;typeof h=="object"&&h!==null&&(c=rt(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Rr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},fr(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?rt(h):Za,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Nr(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Rr.enqueueReplaceState(c,c.state,null),Kl(t,a,c,s),Zl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,v=ja(n,x);c.props=v;var C=c.context,M=n.contextType;h=Za,typeof M=="object"&&M!==null&&(h=rt(M));var R=n.getDerivedStateFromProps;M=typeof R=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,M||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||C!==h)&&jf(t,c,a,h),Nn=!1;var T=t.memoizedState;c.state=T,Kl(t,a,c,s),Zl(),C=t.memoizedState,x||T!==C||Nn?(typeof R=="function"&&(Nr(t,n,R,a),C=t.memoizedState),(v=Nn||vf(t,n,v,a,T,C,h))?(M||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),c.props=a,c.state=C,c.context=h,a=v):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,hr(e,t),h=t.memoizedProps,M=ja(n,h),c.props=M,R=t.pendingProps,T=c.context,C=n.contextType,v=Za,typeof C=="object"&&C!==null&&(v=rt(C)),x=n.getDerivedStateFromProps,(C=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==R||T!==v)&&jf(t,c,a,v),Nn=!1,T=t.memoizedState,c.state=T,Kl(t,a,c,s),Zl();var A=t.memoizedState;h!==R||T!==A||Nn||e!==null&&e.dependencies!==null&&os(e.dependencies)?(typeof x=="function"&&(Nr(t,n,x,a),A=t.memoizedState),(M=Nn||vf(t,n,M,a,T,A,v)||e!==null&&e.dependencies!==null&&os(e.dependencies))?(C||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,A,v),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,A,v)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),c.props=a,c.state=A,c.context=v,a=M):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Ds(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=al(t,e.child,null,s),t.child=al(t,null,n,s)):nt(e,t,n,s),t.memoizedState=c.state,e=t.child):e=gn(e,t,s),e}function Rf(e,t,n,a){return kl(),t.flags|=256,nt(e,t,n,a),t.child}var Lr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kr(e){return{baseLanes:e,cachePool:bd()}}function qr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=kt),e}function Uf(e,t,n){var a=t.pendingProps,s=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),h&&(s=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ue){if(s?Ln(t):kn(),ue){var x=Re,v;if(v=x){e:{for(v=x,x=Ft;v.nodeType!==8;){if(!x){x=null;break e}if(v=Qt(v.nextSibling),v===null){x=null;break e}}x=v}x!==null?(t.memoizedState={dehydrated:x,treeContext:fa!==null?{id:on,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},v=_t(18,null,null,0),v.stateNode=x,v.return=t,t.child=v,ft=t,Re=null,v=!0):v=!1}v||xa(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return wu(x)?t.lanes=32:t.lanes=536870912,null;xn(t)}return x=a.children,a=a.fallback,s?(kn(),s=t.mode,x=Os({mode:"hidden",children:x},s),a=da(a,s,n,null),x.return=t,a.return=t,x.sibling=a,t.child=x,s=t.child,s.memoizedState=kr(n),s.childLanes=qr(e,h,n),t.memoizedState=Lr,a):(Ln(t),$r(t,x))}if(v=e.memoizedState,v!==null&&(x=v.dehydrated,x!==null)){if(c)t.flags&256?(Ln(t),t.flags&=-257,t=Gr(e,t,n)):t.memoizedState!==null?(kn(),t.child=e.child,t.flags|=128,t=null):(kn(),s=a.fallback,x=t.mode,a=Os({mode:"visible",children:a.children},x),s=da(s,x,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,al(t,e.child,null,n),a=t.child,a.memoizedState=kr(n),a.childLanes=qr(e,h,n),t.memoizedState=Lr,t=s);else if(Ln(t),wu(x)){if(h=x.nextSibling&&x.nextSibling.dataset,h)var C=h.dgst;h=C,a=Error(u(419)),a.stack="",a.digest=h,ql({value:a,source:null,stack:null}),t=Gr(e,t,n)}else if(Pe||$l(e,t,n,!1),h=(n&e.childLanes)!==0,Pe||h){if(h=je,h!==null&&(a=n&-n,a=(a&42)!==0?1:_c(a),a=(a&(h.suspendedLanes|n))!==0?0:a,a!==0&&a!==v.retryLane))throw v.retryLane=a,Va(e,a),Dt(h,e,a),Af;x.data==="$?"||su(),t=Gr(e,t,n)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Re=Qt(x.nextSibling),ft=t,ue=!0,ma=null,Ft=!1,e!==null&&(Ut[Ht++]=on,Ut[Ht++]=dn,Ut[Ht++]=fa,on=e.id,dn=e.overflow,fa=t),t=$r(t,a.children),t.flags|=4096);return t}return s?(kn(),s=a.fallback,x=t.mode,v=e.child,C=v.sibling,a=un(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,C!==null?s=un(C,s):(s=da(s,x,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,x=e.child.memoizedState,x===null?x=kr(n):(v=x.cachePool,v!==null?(C=Qe._currentValue,v=v.parent!==C?{parent:C,pool:C}:v):v=bd(),x={baseLanes:x.baseLanes|n,cachePool:v}),s.memoizedState=x,s.childLanes=qr(e,h,n),t.memoizedState=Lr,a):(Ln(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function $r(e,t){return t=Os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Os(e,t){return e=_t(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gr(e,t,n){return al(t,e.child,null,n),e=$r(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hf(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),sr(e.return,t,n)}function Yr(e,t,n,a,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=s)}function Lf(e,t,n){var a=t.pendingProps,s=a.revealOrder,c=a.tail;if(nt(e,t,a.children,n),a=Ve.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hf(e,n,t);else if(e.tag===19)Hf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(xe(Ve,a),s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Ts(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Yr(t,!1,s,n,c);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ts(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Yr(t,!0,n,null,c);break;case"together":Yr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if($l(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&os(e)))}function Zg(e,t,n){switch(t.tag){case 3:$i(t,t.stateNode.containerInfo),Bn(t,Qe,e.memoizedState.cache),kl();break;case 27:case 5:vc(t);break;case 4:$i(t,t.stateNode.containerInfo);break;case 10:Bn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ln(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Uf(e,t,n):(Ln(t),e=gn(e,t,n),e!==null?e.sibling:null);Ln(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||($l(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Lf(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),xe(Ve,Ve.current),a)break;return null;case 22:case 23:return t.lanes=0,Mf(e,t,n);case 24:Bn(t,Qe,e.memoizedState.cache)}return gn(e,t,n)}function kf(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Xr(e,n)&&(t.flags&128)===0)return Pe=!1,Zg(e,t,n);Pe=(e.flags&131072)!==0}else Pe=!1,ue&&(t.flags&1048576)!==0&&md(t,us,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,s=a._init;if(a=s(a._payload),t.type=a,typeof a=="function")Pc(a)?(e=ja(a,e),t.tag=1,t=Nf(null,t,a,e,n)):(t.tag=0,t=Hr(null,t,a,e,n));else{if(a!=null){if(s=a.$$typeof,s===le){t.tag=11,t=Ef(null,t,a,e,n);break e}else if(s===Fe){t.tag=14,t=Df(null,t,a,e,n);break e}}throw t=wl(a)||a,Error(u(306,t,""))}}return t;case 0:return Hr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=ja(a,t.pendingProps),Nf(e,t,a,s,n);case 3:e:{if($i(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var c=t.memoizedState;s=c.element,hr(e,t),Kl(t,a,null,n);var h=t.memoizedState;if(a=h.cache,Bn(t,Qe,a),a!==c.cache&&cr(t,[Qe],n,!0),Zl(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Rf(e,t,a,n);break e}else if(a!==s){s=Nt(Error(u(424)),t),ql(s),t=Rf(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=Qt(e.firstChild),ft=t,ue=!0,ma=null,Ft=!0,n=pf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(kl(),a===s){t=gn(e,t,n);break e}nt(e,t,a,n)}t=t.child}return t;case 26:return Ds(e,t),e===null?(n=Yh(t.type,null,t.pendingProps,null))?t.memoizedState=n:ue||(n=t.type,e=t.pendingProps,a=Xs(Dn.current).createElement(n),a[ct]=t,a[ht]=e,lt(a,n,e),Ie(a),t.stateNode=a):t.memoizedState=Yh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return vc(t),e===null&&ue&&(a=t.stateNode=qh(t.type,t.pendingProps,Dn.current),ft=t,Ft=!0,s=Re,Kn(t.type)?(_u=s,Re=Qt(a.firstChild)):Re=s),nt(e,t,t.pendingProps.children,n),Ds(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ue&&((s=a=Re)&&(a=bp(a,t.type,t.pendingProps,Ft),a!==null?(t.stateNode=a,ft=t,Re=Qt(a.firstChild),Ft=!1,s=!0):s=!1),s||xa(t)),vc(t),s=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,ju(s,c)?a=null:h!==null&&ju(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=vr(e,t,kg,null,null,n),gi._currentValue=s),Ds(e,t),nt(e,t,a,n),t.child;case 6:return e===null&&ue&&((e=n=Re)&&(n=Sp(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,ft=t,Re=null,e=!0):e=!1),e||xa(t)),null;case 13:return Uf(e,t,n);case 4:return $i(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=al(t,null,a,n):nt(e,t,a,n),t.child;case 11:return Ef(e,t,t.type,t.pendingProps,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Bn(t,t.type,a.value),nt(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,pa(t),s=rt(s),a=a(s),t.flags|=1,nt(e,t,a,n),t.child;case 14:return Df(e,t,t.type,t.pendingProps,n);case 15:return Of(e,t,t.type,t.pendingProps,n);case 19:return Lf(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=Os(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=un(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Mf(e,t,n);case 24:return pa(t),a=rt(Qe),e===null?(s=or(),s===null&&(s=je,c=rr(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:a,cache:s},fr(t),Bn(t,Qe,s)):((e.lanes&n)!==0&&(hr(e,t),Kl(t,null,null,n),Zl()),s=e.memoizedState,c=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Bn(t,Qe,a)):(a=c.cache,Bn(t,Qe,a),a!==s.cache&&cr(t,[Qe],n,!0))),nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function pn(e){e.flags|=4}function qf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Kh(t)){if(t=Lt.current,t!==null&&((ae&4194048)===ae?Wt!==null:(ae&62914560)!==ae&&(ae&536870912)===0||t!==Wt))throw Ql=dr,Sd;e.flags|=8192}}function Ms(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?po():536870912,e.lanes|=t,cl|=t)}function ti(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Kg(e,t,n){var a=t.pendingProps;switch(ar(t),t.tag){case 31: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 n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),hn(Qe),Ma(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?pn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pd())),Oe(t),null;case 26:return n=t.memoizedState,e===null?(pn(t),n!==null?(Oe(t),qf(t,n)):(Oe(t),t.flags&=-16777217)):n?n!==e.memoizedState?(pn(t),Oe(t),qf(t,n)):(Oe(t),t.flags&=-16777217):(e.memoizedProps!==a&&pn(t),Oe(t),t.flags&=-16777217),null;case 27:Gi(t),n=Dn.current;var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Oe(t),null}e=We.current,Ll(t)?xd(t):(e=qh(s,a,n),t.stateNode=e,pn(t))}return Oe(t),null;case 5:if(Gi(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Oe(t),null}if(e=We.current,Ll(t))xd(t);else{switch(s=Xs(Dn.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}e[ct]=t,e[ht]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(lt(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&pn(t)}}return Oe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&pn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=Dn.current,Ll(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=ft,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Bh(e.nodeValue,n)),e||xa(t)}else e=Xs(e).createTextNode(a),e[ct]=t,t.stateNode=e}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Ll(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ct]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),s=!1}else s=pd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(xn(t),t):(xn(t),null)}if(xn(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool);var c=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Ms(t,t.updateQueue),Oe(t),null;case 4:return Ma(),e===null&&xu(t.stateNode.containerInfo),Oe(t),null;case 10:return hn(t.type),Oe(t),null;case 19:if(De(Ve),s=t.memoizedState,s===null)return Oe(t),null;if(a=(t.flags&128)!==0,c=s.rendering,c===null)if(a)ti(s,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ts(e),c!==null){for(t.flags|=128,ti(s,!1),e=c.updateQueue,t.updateQueue=e,Ms(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hd(n,e),n=n.sibling;return xe(Ve,Ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&Jt()>Ns&&(t.flags|=128,a=!0,ti(s,!1),t.lanes=4194304)}else{if(!a)if(e=Ts(c),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ms(t,e),ti(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!ue)return Oe(t),null}else 2*Jt()-s.renderingStartTime>Ns&&n!==536870912&&(t.flags|=128,a=!0,ti(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Jt(),t.sibling=null,e=Ve.current,xe(Ve,a?e&1|2:e&1),t):(Oe(t),null);case 22:case 23:return xn(t),pr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),n=t.updateQueue,n!==null&&Ms(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&De(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),hn(Qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Jg(e,t){switch(ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hn(Qe),Ma(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Gi(t),null;case 13:if(xn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ve),null;case 4:return Ma(),null;case 10:return hn(t.type),null;case 22:case 23:return xn(t),pr(),e!==null&&De(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return hn(Qe),null;case 25:return null;default:return null}}function $f(e,t){switch(ar(t),t.tag){case 3:hn(Qe),Ma();break;case 26:case 27:case 5:Gi(t);break;case 4:Ma();break;case 13:xn(t);break;case 19:De(Ve);break;case 10:hn(t.type);break;case 22:case 23:xn(t),pr(),e!==null&&De(ya);break;case 24:hn(Qe)}}function ni(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==s)}}catch(x){ve(t,t.return,x)}}function qn(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){var h=a.inst,x=h.destroy;if(x!==void 0){h.destroy=void 0,s=t;var v=n,C=x;try{C()}catch(M){ve(s,v,M)}}}a=a.next}while(a!==c)}}catch(M){ve(t,t.return,M)}}function Gf(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ed(t,n)}catch(a){ve(e,e.return,a)}}}function Yf(e,t,n){n.props=ja(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ve(e,t,a)}}function ai(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){ve(e,t,s)}}function It(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){ve(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){ve(e,t,s)}else n.current=null}function Xf(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){ve(e,e.return,s)}}function Qr(e,t,n){try{var a=e.stateNode;gp(a,e.type,n,t),a[ht]=t}catch(s){ve(e,e.return,s)}}function Qf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function Vr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qf(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&&Kn(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 Zr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ys));else if(a!==4&&(a===27&&Kn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zr(e,t,n),e=e.sibling;e!==null;)Zr(e,t,n),e=e.sibling}function zs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Kn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(zs(e,t,n),e=e.sibling;e!==null;)zs(e,t,n),e=e.sibling}function Vf(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);lt(t,a,n),t[ct]=e,t[ht]=n}catch(c){ve(e,e.return,c)}}var yn=!1,ke=!1,Kr=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,et=null;function Fg(e,t){if(e=e.containerInfo,yu=Fs,e=ad(e),Vc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,x=-1,v=-1,C=0,M=0,R=e,T=null;t:for(;;){for(var A;R!==n||s!==0&&R.nodeType!==3||(x=h+s),R!==c||a!==0&&R.nodeType!==3||(v=h+a),R.nodeType===3&&(h+=R.nodeValue.length),(A=R.firstChild)!==null;)T=R,R=A;for(;;){if(R===e)break t;if(T===n&&++C===s&&(x=h),T===c&&++M===a&&(v=h),(A=R.nextSibling)!==null)break;R=T,T=R.parentNode}R=A}n=x===-1||v===-1?null:{start:x,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},Fs=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var K=ja(n.type,s,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(K,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(V){ve(n,n.return,V)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Su(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Su(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Kf(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:$n(e,n),a&4&&ni(5,n);break;case 1:if($n(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){ve(n,n.return,h)}else{var s=ja(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){ve(n,n.return,h)}}a&64&&Gf(n),a&512&&ai(n,n.return);break;case 3:if($n(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ed(e,t)}catch(h){ve(n,n.return,h)}}break;case 27:t===null&&a&4&&Vf(n);case 26:case 5:$n(e,n),t===null&&a&4&&Xf(n),a&512&&ai(n,n.return);break;case 12:$n(e,n);break;case 13:$n(e,n),a&4&&Wf(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ip.bind(null,n),wp(e,n))));break;case 22:if(a=n.memoizedState!==null||yn,!a){t=t!==null&&t.memoizedState!==null||ke,s=yn;var c=ke;yn=a,(ke=t)&&!c?Gn(e,n,(n.subtreeFlags&8772)!==0):$n(e,n),yn=s,ke=c}break;case 30:break;default:$n(e,n)}}function Jf(e){var t=e.alternate;t!==null&&(e.alternate=null,Jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ac(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 Ce=null,gt=!1;function vn(e,t,n){for(n=n.child;n!==null;)Ff(e,t,n),n=n.sibling}function Ff(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 26:ke||It(n,t),vn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ke||It(n,t);var a=Ce,s=gt;Kn(n.type)&&(Ce=n.stateNode,gt=!1),vn(e,t,n),fi(n.stateNode),Ce=a,gt=s;break;case 5:ke||It(n,t);case 6:if(a=Ce,s=gt,Ce=null,vn(e,t,n),Ce=a,gt=s,Ce!==null)if(gt)try{(Ce.nodeType===9?Ce.body:Ce.nodeName==="HTML"?Ce.ownerDocument.body:Ce).removeChild(n.stateNode)}catch(c){ve(n,t,c)}else try{Ce.removeChild(n.stateNode)}catch(c){ve(n,t,c)}break;case 18:Ce!==null&&(gt?(e=Ce,Lh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ji(e)):Lh(Ce,n.stateNode));break;case 4:a=Ce,s=gt,Ce=n.stateNode.containerInfo,gt=!0,vn(e,t,n),Ce=a,gt=s;break;case 0:case 11:case 14:case 15:ke||qn(2,n,t),ke||qn(4,n,t),vn(e,t,n);break;case 1:ke||(It(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Yf(n,t,a)),vn(e,t,n);break;case 21:vn(e,t,n);break;case 22:ke=(a=ke)||n.memoizedState!==null,vn(e,t,n),ke=a;break;default:vn(e,t,n)}}function Wf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ji(e)}catch(n){ve(t,t.return,n)}}function Wg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zf),t;default:throw Error(u(435,e.tag))}}function Jr(e,t){var n=Wg(e);t.forEach(function(a){var s=sp.bind(null,e,a);n.has(a)||(n.add(a),a.then(s,s))})}function Ct(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],c=e,h=t,x=h;e:for(;x!==null;){switch(x.tag){case 27:if(Kn(x.type)){Ce=x.stateNode,gt=!1;break e}break;case 5:Ce=x.stateNode,gt=!1;break e;case 3:case 4:Ce=x.stateNode.containerInfo,gt=!0;break e}x=x.return}if(Ce===null)throw Error(u(160));Ff(c,h,s),Ce=null,gt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)If(t,e),t=t.sibling}var Xt=null;function If(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ct(t,e),Tt(e),a&4&&(qn(3,e,e.return),ni(3,e),qn(5,e,e.return));break;case 1:Ct(t,e),Tt(e),a&512&&(ke||n===null||It(n,n.return)),a&64&&yn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=Xt;if(Ct(t,e),Tt(e),a&512&&(ke||n===null||It(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":c=s.getElementsByTagName("title")[0],(!c||c[Al]||c[ct]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(a),s.head.insertBefore(c,s.querySelector("head > title"))),lt(c,a,n),c[ct]=e,Ie(c),a=c;break e;case"link":var h=Vh("link","href",s).get(a+(n.href||""));if(h){for(var x=0;x<h.length;x++)if(c=h[x],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(x,1);break t}}c=s.createElement(a),lt(c,a,n),s.head.appendChild(c);break;case"meta":if(h=Vh("meta","content",s).get(a+(n.content||""))){for(x=0;x<h.length;x++)if(c=h[x],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(x,1);break t}}c=s.createElement(a),lt(c,a,n),s.head.appendChild(c);break;default:throw Error(u(468,a))}c[ct]=e,Ie(c),a=c}e.stateNode=a}else Zh(s,e.type,e.stateNode);else e.stateNode=Qh(s,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Zh(s,e.type,e.stateNode):Qh(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Qr(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ct(t,e),Tt(e),a&512&&(ke||n===null||It(n,n.return)),n!==null&&a&4&&Qr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ct(t,e),Tt(e),a&512&&(ke||n===null||It(n,n.return)),e.flags&32){s=e.stateNode;try{ka(s,"")}catch(A){ve(e,e.return,A)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Qr(e,s,n!==null?n.memoizedProps:s)),a&1024&&(Kr=!0);break;case 6:if(Ct(t,e),Tt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(A){ve(e,e.return,A)}}break;case 3:if(Zs=null,s=Xt,Xt=Qs(t.containerInfo),Ct(t,e),Xt=s,Tt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(A){ve(e,e.return,A)}Kr&&(Kr=!1,Pf(e));break;case 4:a=Xt,Xt=Qs(e.stateNode.containerInfo),Ct(t,e),Tt(e),Xt=a;break;case 12:Ct(t,e),Tt(e);break;case 13:Ct(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=Jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Jr(e,a)));break;case 22:s=e.memoizedState!==null;var v=n!==null&&n.memoizedState!==null,C=yn,M=ke;if(yn=C||s,ke=M||v,Ct(t,e),ke=M,yn=C,Tt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||v||yn||ke||ba(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){v=n=t;try{if(c=v.stateNode,s)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{x=v.stateNode;var R=v.memoizedProps.style,T=R!=null&&R.hasOwnProperty("display")?R.display:null;x.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(A){ve(v,v.return,A)}}}else if(t.tag===6){if(n===null){v=t;try{v.stateNode.nodeValue=s?"":v.memoizedProps}catch(A){ve(v,v.return,A)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Jr(e,n))));break;case 19:Ct(t,e),Tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Jr(e,a)));break;case 30:break;case 21:break;default:Ct(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Qf(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,c=Vr(e);zs(e,c,s);break;case 5:var h=n.stateNode;n.flags&32&&(ka(h,""),n.flags&=-33);var x=Vr(e);zs(e,x,h);break;case 3:case 4:var v=n.stateNode.containerInfo,C=Vr(e);Zr(e,C,v);break;default:throw Error(u(161))}}catch(M){ve(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Kf(e,t.alternate,t),t=t.sibling}function ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),ba(t);break;case 1:It(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Yf(t,t.return,n),ba(t);break;case 27:fi(t.stateNode);case 26:case 5:It(t,t.return),ba(t);break;case 22:t.memoizedState===null&&ba(t);break;case 30:ba(t);break;default:ba(t)}e=e.sibling}}function Gn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Gn(s,c,n),ni(4,c);break;case 1:if(Gn(s,c,n),a=c,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(C){ve(a,a.return,C)}if(a=c,s=a.updateQueue,s!==null){var x=a.stateNode;try{var v=s.shared.hiddenCallbacks;if(v!==null)for(s.shared.hiddenCallbacks=null,s=0;s<v.length;s++)Ad(v[s],x)}catch(C){ve(a,a.return,C)}}n&&h&64&&Gf(c),ai(c,c.return);break;case 27:Vf(c);case 26:case 5:Gn(s,c,n),n&&a===null&&h&4&&Xf(c),ai(c,c.return);break;case 12:Gn(s,c,n);break;case 13:Gn(s,c,n),n&&h&4&&Wf(s,c);break;case 22:c.memoizedState===null&&Gn(s,c,n),ai(c,c.return);break;case 30:break;default:Gn(s,c,n)}t=t.sibling}}function Fr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Gl(n))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gl(e))}function Pt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eh(e,t,n,a),t=t.sibling}function eh(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,a),s&2048&&ni(9,t);break;case 1:Pt(e,t,n,a);break;case 3:Pt(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gl(e)));break;case 12:if(s&2048){Pt(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,x=c.onPostCommit;typeof x=="function"&&x(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){ve(t,t.return,v)}}else Pt(e,t,n,a);break;case 13:Pt(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Pt(e,t,n,a):li(e,t):c._visibility&2?Pt(e,t,n,a):(c._visibility|=2,ll(e,t,n,a,(t.subtreeFlags&10256)!==0)),s&2048&&Fr(h,t);break;case 24:Pt(e,t,n,a),s&2048&&Wr(t.alternate,t);break;default:Pt(e,t,n,a)}}function ll(e,t,n,a,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,h=t,x=n,v=a,C=h.flags;switch(h.tag){case 0:case 11:case 15:ll(c,h,x,v,s),ni(8,h);break;case 23:break;case 22:var M=h.stateNode;h.memoizedState!==null?M._visibility&2?ll(c,h,x,v,s):li(c,h):(M._visibility|=2,ll(c,h,x,v,s)),s&&C&2048&&Fr(h.alternate,h);break;case 24:ll(c,h,x,v,s),s&&C&2048&&Wr(h.alternate,h);break;default:ll(c,h,x,v,s)}t=t.sibling}}function li(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:li(n,a),s&2048&&Fr(a.alternate,a);break;case 24:li(n,a),s&2048&&Wr(a.alternate,a);break;default:li(n,a)}t=t.sibling}}var ii=8192;function il(e){if(e.subtreeFlags&ii)for(e=e.child;e!==null;)th(e),e=e.sibling}function th(e){switch(e.tag){case 26:il(e),e.flags&ii&&e.memoizedState!==null&&Up(Xt,e.memoizedState,e.memoizedProps);break;case 5:il(e);break;case 3:case 4:var t=Xt;Xt=Qs(e.stateNode.containerInfo),il(e),Xt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ii,ii=16777216,il(e),ii=t):il(e));break;default:il(e)}}function nh(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 si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];et=a,lh(a,e)}nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ah(e),e=e.sibling}function ah(e){switch(e.tag){case 0:case 11:case 15:si(e),e.flags&2048&&qn(9,e,e.return);break;case 3:si(e);break;case 12:si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bs(e)):si(e);break;default:si(e)}}function Bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];et=a,lh(a,e)}nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Bs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Bs(t));break;default:Bs(t)}e=e.sibling}}function lh(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:qn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Gl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,et=a;else e:for(n=e;et!==null;){a=et;var s=a.sibling,c=a.return;if(Jf(a),a===n){et=null;break e}if(s!==null){s.return=c,et=s;break e}et=c}}}var Ig={getCacheForType:function(e){var t=rt(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Pg=typeof WeakMap=="function"?WeakMap:Map,fe=0,je=null,ee=null,ae=0,he=0,At=null,Yn=!1,sl=!1,Ir=!1,jn=0,Ue=0,Xn=0,Sa=0,Pr=0,kt=0,cl=0,ci=null,pt=null,eu=!1,tu=0,Ns=1/0,Rs=null,Qn=null,at=0,Vn=null,rl=null,ul=0,nu=0,au=null,ih=null,ri=0,lu=null;function Et(){if((fe&2)!==0&&ae!==0)return ae&-ae;if(N.T!==null){var e=Fa;return e!==0?e:du()}return jo()}function sh(){kt===0&&(kt=(ae&536870912)===0||ue?go():536870912);var e=Lt.current;return e!==null&&(e.flags|=32),kt}function Dt(e,t,n){(e===je&&(he===2||he===9)||e.cancelPendingCommit!==null)&&(ol(e,0),Zn(e,ae,kt,!1)),Tl(e,n),((fe&2)===0||e!==je)&&(e===je&&((fe&2)===0&&(Sa|=n),Ue===4&&Zn(e,ae,kt,!1)),en(e))}function ch(e,t,n){if((fe&6)!==0)throw Error(u(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cl(e,t),s=a?np(e,t):cu(e,t,!0),c=a;do{if(s===0){sl&&!a&&Zn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!ep(n)){s=cu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var x=e;s=ci;var v=x.current.memoizedState.isDehydrated;if(v&&(ol(x,h).flags|=256),h=cu(x,h,!1),h!==2){if(Ir&&!v){x.errorRecoveryDisabledLanes|=c,Sa|=c,s=4;break e}c=pt,pt=s,c!==null&&(pt===null?pt=c:pt.push.apply(pt,c))}s=h}if(c=!1,s!==2)continue}}if(s===1){ol(e,0),Zn(e,t,0,!0);break}e:{switch(a=e,c=s,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Zn(a,t,kt,!Yn);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=tu+300-Jt(),10<s)){if(Zn(a,t,kt,!Yn),Vi(a,0,!0)!==0)break e;a.timeoutHandle=Uh(rh.bind(null,a,n,pt,Rs,eu,t,kt,Sa,cl,Yn,c,2,-0,0),s);break e}rh(a,n,pt,Rs,eu,t,kt,Sa,cl,Yn,c,0,-0,0)}}break}while(!0);en(e)}function rh(e,t,n,a,s,c,h,x,v,C,M,R,T,A){if(e.timeoutHandle=-1,R=t.subtreeFlags,(R&8192||(R&16785408)===16785408)&&(xi={stylesheets:null,count:0,unsuspend:Rp},th(t),R=Hp(),R!==null)){e.cancelPendingCommit=R(xh.bind(null,e,t,c,n,a,s,h,x,v,M,1,T,A)),Zn(e,c,h,!C);return}xh(e,t,c,n,a,s,h,x,v)}function ep(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],c=s.getSnapshot;s=s.value;try{if(!wt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zn(e,t,n,a){t&=~Pr,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var c=31-St(s),h=1<<c;a[c]=-1,s&=~h}n!==0&&yo(e,n,t)}function Us(){return(fe&6)===0?(ui(0),!1):!0}function iu(){if(ee!==null){if(he===0)var e=ee.return;else e=ee,fn=ga=null,Sr(e),nl=null,Pl=0,e=ee;for(;e!==null;)$f(e.alternate,e),e=e.return;ee=null}}function ol(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,yp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),iu(),je=e,ee=n=un(e.current,null),ae=t,he=0,At=null,Yn=!1,sl=Cl(e,t),Ir=!1,cl=kt=Pr=Sa=Xn=Ue=0,pt=ci=null,eu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-St(a),c=1<<s;t|=e[s],a&=~c}return jn=t,ls(),n}function uh(e,t){I=null,N.H=ws,t===Xl||t===hs?(t=Cd(),he=3):t===Sd?(t=Cd(),he=4):he=t===Af?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,ee===null&&(Ue=1,Es(e,Nt(t,e.current)))}function oh(){var e=N.H;return N.H=ws,e===null?ws:e}function dh(){var e=N.A;return N.A=Ig,e}function su(){Ue=4,Yn||(ae&4194048)!==ae&&Lt.current!==null||(sl=!0),(Xn&134217727)===0&&(Sa&134217727)===0||je===null||Zn(je,ae,kt,!1)}function cu(e,t,n){var a=fe;fe|=2;var s=oh(),c=dh();(je!==e||ae!==t)&&(Rs=null,ol(e,t)),t=!1;var h=Ue;e:do try{if(he!==0&&ee!==null){var x=ee,v=At;switch(he){case 8:iu(),h=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var C=he;if(he=0,At=null,dl(e,x,v,C),n&&sl){h=0;break e}break;default:C=he,he=0,At=null,dl(e,x,v,C)}}tp(),h=Ue;break}catch(M){uh(e,M)}while(!0);return t&&e.shellSuspendCounter++,fn=ga=null,fe=a,N.H=s,N.A=c,ee===null&&(je=null,ae=0,ls()),h}function tp(){for(;ee!==null;)fh(ee)}function np(e,t){var n=fe;fe|=2;var a=oh(),s=dh();je!==e||ae!==t?(Rs=null,Ns=Jt()+500,ol(e,t)):sl=Cl(e,t);e:do try{if(he!==0&&ee!==null){t=ee;var c=At;t:switch(he){case 1:he=0,At=null,dl(e,t,c,1);break;case 2:case 9:if(wd(c)){he=0,At=null,hh(t);break}t=function(){he!==2&&he!==9||je!==e||(he=7),en(e)},c.then(t,t);break e;case 3:he=7;break e;case 4:he=5;break e;case 7:wd(c)?(he=0,At=null,hh(t)):(he=0,At=null,dl(e,t,c,7));break;case 5:var h=null;switch(ee.tag){case 26:h=ee.memoizedState;case 5:case 27:var x=ee;if(!h||Kh(h)){he=0,At=null;var v=x.sibling;if(v!==null)ee=v;else{var C=x.return;C!==null?(ee=C,Hs(C)):ee=null}break t}}he=0,At=null,dl(e,t,c,5);break;case 6:he=0,At=null,dl(e,t,c,6);break;case 8:iu(),Ue=6;break e;default:throw Error(u(462))}}ap();break}catch(M){uh(e,M)}while(!0);return fn=ga=null,N.H=a,N.A=s,fe=n,ee!==null?0:(je=null,ae=0,ls(),Ue)}function ap(){for(;ee!==null&&!Cx();)fh(ee)}function fh(e){var t=kf(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Hs(e):ee=t}function hh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bf(n,t,t.pendingProps,t.type,void 0,ae);break;case 11:t=Bf(n,t,t.pendingProps,t.type.render,t.ref,ae);break;case 5:Sr(t);default:$f(n,t),t=ee=hd(t,jn),t=kf(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Hs(e):ee=t}function dl(e,t,n,a){fn=ga=null,Sr(t),nl=null,Pl=0;var s=t.return;try{if(Vg(e,s,t,n,ae)){Ue=1,Es(e,Nt(n,e.current)),ee=null;return}}catch(c){if(s!==null)throw ee=s,c;Ue=1,Es(e,Nt(n,e.current)),ee=null;return}t.flags&32768?(ue||a===1?e=!0:sl||(ae&536870912)!==0?e=!1:(Yn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Lt.current,a!==null&&a.tag===13&&(a.flags|=16384))),mh(t,e)):Hs(t)}function Hs(e){var t=e;do{if((t.flags&32768)!==0){mh(t,Yn);return}e=t.return;var n=Kg(t.alternate,t,jn);if(n!==null){ee=n;return}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);Ue===0&&(Ue=5)}function mh(e,t){do{var n=Jg(e.alternate,e);if(n!==null){n.flags&=32767,ee=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ee=e;return}ee=e=n}while(e!==null);Ue=6,ee=null}function xh(e,t,n,a,s,c,h,x,v){e.cancelPendingCommit=null;do Ls();while(at!==0);if((fe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Wc,Rx(e,n,c,h,x,v),e===je&&(ee=je=null,ae=0),rl=t,Vn=e,ul=n,nu=c,au=s,ih=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cp(Yi,function(){return jh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,s=$.p,$.p=2,h=fe,fe|=4;try{Fg(e,t,n)}finally{fe=h,$.p=s,N.T=a}}at=1,gh(),ph(),yh()}}function gh(){if(at===1){at=0;var e=Vn,t=rl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var a=$.p;$.p=2;var s=fe;fe|=4;try{If(t,e);var c=vu,h=ad(e.containerInfo),x=c.focusedElem,v=c.selectionRange;if(h!==x&&x&&x.ownerDocument&&nd(x.ownerDocument.documentElement,x)){if(v!==null&&Vc(x)){var C=v.start,M=v.end;if(M===void 0&&(M=C),"selectionStart"in x)x.selectionStart=C,x.selectionEnd=Math.min(M,x.value.length);else{var R=x.ownerDocument||document,T=R&&R.defaultView||window;if(T.getSelection){var A=T.getSelection(),K=x.textContent.length,V=Math.min(v.start,K),ye=v.end===void 0?V:Math.min(v.end,K);!A.extend&&V>ye&&(h=ye,ye=V,V=h);var S=td(x,V),b=td(x,ye);if(S&&b&&(A.rangeCount!==1||A.anchorNode!==S.node||A.anchorOffset!==S.offset||A.focusNode!==b.node||A.focusOffset!==b.offset)){var w=R.createRange();w.setStart(S.node,S.offset),A.removeAllRanges(),V>ye?(A.addRange(w),A.extend(b.node,b.offset)):(w.setEnd(b.node,b.offset),A.addRange(w))}}}}for(R=[],A=x;A=A.parentNode;)A.nodeType===1&&R.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<R.length;x++){var z=R[x];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}Fs=!!yu,vu=yu=null}finally{fe=s,$.p=a,N.T=n}}e.current=t,at=2}}function ph(){if(at===2){at=0;var e=Vn,t=rl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var a=$.p;$.p=2;var s=fe;fe|=4;try{Kf(e,t.alternate,t)}finally{fe=s,$.p=a,N.T=n}}at=3}}function yh(){if(at===4||at===3){at=0,Tx();var e=Vn,t=rl,n=ul,a=ih;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,rl=Vn=null,vh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Qn=null),Cc(n),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(_l,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=N.T,s=$.p,$.p=2,N.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var x=a[h];c(x.value,{componentStack:x.stack})}}finally{N.T=t,$.p=s}}(ul&3)!==0&&Ls(),en(e),s=e.pendingLanes,(n&4194090)!==0&&(s&42)!==0?e===lu?ri++:(ri=0,lu=e):ri=0,ui(0)}}function vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gl(t)))}function Ls(e){return gh(),ph(),yh(),jh()}function jh(){if(at!==5)return!1;var e=Vn,t=nu;nu=0;var n=Cc(ul),a=N.T,s=$.p;try{$.p=32>n?32:n,N.T=null,n=au,au=null;var c=Vn,h=ul;if(at=0,rl=Vn=null,ul=0,(fe&6)!==0)throw Error(u(331));var x=fe;if(fe|=4,ah(c.current),eh(c,c.current,h,n),fe=x,ui(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(_l,c)}catch{}return!0}finally{$.p=s,N.T=a,vh(e,t)}}function bh(e,t,n){t=Nt(n,t),t=Ur(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(Tl(e,2),en(e))}function ve(e,t,n){if(e.tag===3)bh(e,e,n);else for(;t!==null;){if(t.tag===3){bh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Qn===null||!Qn.has(a))){e=Nt(n,e),n=Cf(2),a=Un(t,n,2),a!==null&&(Tf(n,a,t,e),Tl(a,2),en(a));break}}t=t.return}}function ru(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Pg;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Ir=!0,s.add(n),e=lp.bind(null,e,t,n),t.then(e,e))}function lp(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,je===e&&(ae&n)===n&&(Ue===4||Ue===3&&(ae&62914560)===ae&&300>Jt()-tu?(fe&2)===0&&ol(e,0):Pr|=n,cl===ae&&(cl=0)),en(e)}function Sh(e,t){t===0&&(t=po()),e=Va(e,t),e!==null&&(Tl(e,t),en(e))}function ip(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sh(e,n)}function sp(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Sh(e,n)}function cp(e,t){return bc(e,t)}var ks=null,fl=null,uu=!1,qs=!1,ou=!1,wa=0;function en(e){e!==fl&&e.next===null&&(fl===null?ks=fl=e:fl=fl.next=e),qs=!0,uu||(uu=!0,up())}function ui(e,t){if(!ou&&qs){ou=!0;do for(var n=!1,a=ks;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var c=0;else{var h=a.suspendedLanes,x=a.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=s&~(h&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Th(a,c))}else c=ae,c=Vi(a,a===je?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Cl(a,c)||(n=!0,Th(a,c));a=a.next}while(n);ou=!1}}function rp(){wh()}function wh(){qs=uu=!1;var e=0;wa!==0&&(pp()&&(e=wa),wa=0);for(var t=Jt(),n=null,a=ks;a!==null;){var s=a.next,c=_h(a,t);c===0?(a.next=null,n===null?ks=s:n.next=s,s===null&&(fl=n)):(n=a,(e!==0||(c&3)!==0)&&(qs=!0)),a=s}ui(e)}function _h(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-St(c),x=1<<h,v=s[h];v===-1?((x&n)===0||(x&a)!==0)&&(s[h]=Nx(x,t)):v<=t&&(e.expiredLanes|=x),c&=~x}if(t=je,n=ae,n=Vi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(he===2||he===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Sc(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Cl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Sc(a),Cc(n)){case 2:case 8:n=mo;break;case 32:n=Yi;break;case 268435456:n=xo;break;default:n=Yi}return a=Ch.bind(null,e),n=bc(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Sc(a),e.callbackPriority=2,e.callbackNode=null,2}function Ch(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ls()&&e.callbackNode!==n)return null;var a=ae;return a=Vi(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ch(e,a,t),_h(e,Jt()),e.callbackNode!=null&&e.callbackNode===n?Ch.bind(null,e):null)}function Th(e,t){if(Ls())return null;ch(e,t,!0)}function up(){vp(function(){(fe&6)!==0?bc(ho,rp):wh()})}function du(){return wa===0&&(wa=go()),wa}function Ah(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wi(""+e)}function Eh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function op(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var c=Ah((s[ht]||null).action),h=a.submitter;h&&(t=(t=h[ht]||null)?Ah(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var x=new ts("action","action",null,a,s);e.push({event:x,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(wa!==0){var v=h?Eh(s,h):new FormData(s);Mr(n,{pending:!0,data:v,method:s.method,action:c},null,v)}}else typeof c=="function"&&(x.preventDefault(),v=h?Eh(s,h):new FormData(s),Mr(n,{pending:!0,data:v,method:s.method,action:c},c,v))},currentTarget:s}]})}}for(var fu=0;fu<Fc.length;fu++){var hu=Fc[fu],dp=hu.toLowerCase(),fp=hu[0].toUpperCase()+hu.slice(1);Yt(dp,"on"+fp)}Yt(sd,"onAnimationEnd"),Yt(cd,"onAnimationIteration"),Yt(rd,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Dg,"onTransitionRun"),Yt(Og,"onTransitionStart"),Yt(Mg,"onTransitionCancel"),Yt(ud,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),hp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oi));function Dh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var x=a[h],v=x.instance,C=x.currentTarget;if(x=x.listener,v!==c&&s.isPropagationStopped())break e;c=x,s.currentTarget=C;try{c(s)}catch(M){As(M)}s.currentTarget=null,c=v}else for(h=0;h<a.length;h++){if(x=a[h],v=x.instance,C=x.currentTarget,x=x.listener,v!==c&&s.isPropagationStopped())break e;c=x,s.currentTarget=C;try{c(s)}catch(M){As(M)}s.currentTarget=null,c=v}}}}function te(e,t){var n=t[Tc];n===void 0&&(n=t[Tc]=new Set);var a=e+"__bubble";n.has(a)||(Oh(t,e,2,!1),n.add(a))}function mu(e,t,n){var a=0;t&&(a|=4),Oh(n,e,a,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function xu(e){if(!e[$s]){e[$s]=!0,So.forEach(function(n){n!=="selectionchange"&&(hp.has(n)||mu(n,!1,e),mu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,mu("selectionchange",!1,t))}}function Oh(e,t,n,a){switch(em(t)){case 2:var s=qp;break;case 8:s=$p;break;default:s=Du}n=s.bind(null,t,n,e),s=void 0,!Hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function gu(e,t,n,a,s){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var x=a.stateNode.containerInfo;if(x===s)break;if(h===4)for(h=a.return;h!==null;){var v=h.tag;if((v===3||v===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;x!==null;){if(h=Ba(x),h===null)return;if(v=h.tag,v===5||v===6||v===26||v===27){a=c=h;continue e}x=x.parentNode}}a=a.return}Uo(function(){var C=c,M=Rc(n),R=[];e:{var T=od.get(e);if(T!==void 0){var A=ts,K=e;switch(e){case"keypress":if(Pi(n)===0)break e;case"keydown":case"keyup":A=cg;break;case"focusin":K="focus",A=$c;break;case"focusout":K="blur",A=$c;break;case"beforeblur":case"afterblur":A=$c;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=ko;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=og;break;case sd:case cd:case rd:A=Ix;break;case ud:A=fg;break;case"scroll":case"scrollend":A=Zx;break;case"wheel":A=mg;break;case"copy":case"cut":case"paste":A=eg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=$o;break;case"toggle":case"beforetoggle":A=gg}var V=(t&4)!==0,ye=!V&&(e==="scroll"||e==="scrollend"),S=V?T!==null?T+"Capture":null:T;V=[];for(var b=C,w;b!==null;){var z=b;if(w=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||w===null||S===null||(z=Dl(b,S),z!=null&&V.push(di(b,z,w))),ye)break;b=b.return}0<V.length&&(T=new A(T,K,null,n,M),R.push({event:T,listeners:V}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",T&&n!==Nc&&(K=n.relatedTarget||n.fromElement)&&(Ba(K)||K[za]))break e;if((A||T)&&(T=M.window===M?M:(T=M.ownerDocument)?T.defaultView||T.parentWindow:window,A?(K=n.relatedTarget||n.toElement,A=C,K=K?Ba(K):null,K!==null&&(ye=f(K),V=K.tag,K!==ye||V!==5&&V!==27&&V!==6)&&(K=null)):(A=null,K=C),A!==K)){if(V=ko,z="onMouseLeave",S="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(V=$o,z="onPointerLeave",S="onPointerEnter",b="pointer"),ye=A==null?T:El(A),w=K==null?T:El(K),T=new V(z,b+"leave",A,n,M),T.target=ye,T.relatedTarget=w,z=null,Ba(M)===C&&(V=new V(S,b+"enter",K,n,M),V.target=w,V.relatedTarget=ye,z=V),ye=z,A&&K)t:{for(V=A,S=K,b=0,w=V;w;w=hl(w))b++;for(w=0,z=S;z;z=hl(z))w++;for(;0<b-w;)V=hl(V),b--;for(;0<w-b;)S=hl(S),w--;for(;b--;){if(V===S||S!==null&&V===S.alternate)break t;V=hl(V),S=hl(S)}V=null}else V=null;A!==null&&Mh(R,T,A,V,!1),K!==null&&ye!==null&&Mh(R,ye,K,V,!0)}}e:{if(T=C?El(C):window,A=T.nodeName&&T.nodeName.toLowerCase(),A==="select"||A==="input"&&T.type==="file")var Y=Jo;else if(Zo(T))if(Fo)Y=Tg;else{Y=_g;var P=wg}else A=T.nodeName,!A||A.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?C&&Bc(C.elementType)&&(Y=Jo):Y=Cg;if(Y&&(Y=Y(e,C))){Ko(R,Y,n,M);break e}P&&P(e,T,C),e==="focusout"&&C&&T.type==="number"&&C.memoizedProps.value!=null&&zc(T,"number",T.value)}switch(P=C?El(C):window,e){case"focusin":(Zo(P)||P.contentEditable==="true")&&(Ya=P,Zc=C,Hl=null);break;case"focusout":Hl=Zc=Ya=null;break;case"mousedown":Kc=!0;break;case"contextmenu":case"mouseup":case"dragend":Kc=!1,ld(R,n,M);break;case"selectionchange":if(Eg)break;case"keydown":case"keyup":ld(R,n,M)}var Q;if(Yc)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else Ga?Qo(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(Go&&n.locale!=="ko"&&(Ga||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&Ga&&(Q=Ho()):(zn=M,Lc="value"in zn?zn.value:zn.textContent,Ga=!0)),P=Gs(C,Z),0<P.length&&(Z=new qo(Z,e,null,n,M),R.push({event:Z,listeners:P}),Q?Z.data=Q:(Q=Vo(n),Q!==null&&(Z.data=Q)))),(Q=yg?vg(e,n):jg(e,n))&&(Z=Gs(C,"onBeforeInput"),0<Z.length&&(P=new qo("onBeforeInput","beforeinput",null,n,M),R.push({event:P,listeners:Z}),P.data=Q)),op(R,e,C,n,M)}Dh(R,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gs(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Dl(e,n),s!=null&&a.unshift(di(e,s,c)),s=Dl(e,t),s!=null&&a.push(di(e,s,c))),e.tag===3)return a;e=e.return}return[]}function hl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mh(e,t,n,a,s){for(var c=t._reactName,h=[];n!==null&&n!==a;){var x=n,v=x.alternate,C=x.stateNode;if(x=x.tag,v!==null&&v===a)break;x!==5&&x!==26&&x!==27||C===null||(v=C,s?(C=Dl(n,c),C!=null&&h.unshift(di(n,C,v))):s||(C=Dl(n,c),C!=null&&h.push(di(n,C,v)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var mp=/\r\n?/g,xp=/\u0000|\uFFFD/g;function zh(e){return(typeof e=="string"?e:""+e).replace(mp,`
`).replace(xp,"")}function Bh(e,t){return t=zh(t),zh(e)===t}function Ys(){}function pe(e,t,n,a,s,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ka(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ka(e,""+a);break;case"className":Ki(e,"class",a);break;case"tabIndex":Ki(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ki(e,n,a);break;case"style":No(e,a,c);break;case"data":if(t!=="object"){Ki(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Wi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&pe(e,t,"name",s.name,s,null),pe(e,t,"formEncType",s.formEncType,s,null),pe(e,t,"formMethod",s.formMethod,s,null),pe(e,t,"formTarget",s.formTarget,s,null)):(pe(e,t,"encType",s.encType,s,null),pe(e,t,"method",s.method,s,null),pe(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Wi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Ys);break;case"onScroll":a!=null&&te("scroll",e);break;case"onScrollEnd":a!=null&&te("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Wi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":te("beforetoggle",e),te("toggle",e),Zi(e,"popover",a);break;case"xlinkActuate":cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":cn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":cn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":cn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":cn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Zi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Qx.get(n)||n,Zi(e,n,a))}}function pu(e,t,n,a,s,c){switch(n){case"style":No(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ka(e,a):(typeof a=="number"||typeof a=="bigint")&&ka(e,""+a);break;case"onScroll":a!=null&&te("scroll",e);break;case"onScrollEnd":a!=null&&te("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ys);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[ht]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Zi(e,n,a)}}}function lt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":te("error",e),te("load",e);var a=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:pe(e,t,c,h,n,null)}}s&&pe(e,t,"srcSet",n.srcSet,n,null),a&&pe(e,t,"src",n.src,n,null);return;case"input":te("invalid",e);var x=c=h=s=null,v=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var M=n[a];if(M!=null)switch(a){case"name":s=M;break;case"type":h=M;break;case"checked":v=M;break;case"defaultChecked":C=M;break;case"value":c=M;break;case"defaultValue":x=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(u(137,t));break;default:pe(e,t,a,M,n,null)}}Oo(e,c,x,v,C,h,s,!1),Ji(e);return;case"select":te("invalid",e),a=h=c=null;for(s in n)if(n.hasOwnProperty(s)&&(x=n[s],x!=null))switch(s){case"value":c=x;break;case"defaultValue":h=x;break;case"multiple":a=x;default:pe(e,t,s,x,n,null)}t=c,n=h,e.multiple=!!a,t!=null?La(e,!!a,t,!1):n!=null&&La(e,!!a,n,!0);return;case"textarea":te("invalid",e),c=s=a=null;for(h in n)if(n.hasOwnProperty(h)&&(x=n[h],x!=null))switch(h){case"value":a=x;break;case"defaultValue":s=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:pe(e,t,h,x,n,null)}zo(e,a,s,c),Ji(e);return;case"option":for(v in n)if(n.hasOwnProperty(v)&&(a=n[v],a!=null))switch(v){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:pe(e,t,v,a,n,null)}return;case"dialog":te("beforetoggle",e),te("toggle",e),te("cancel",e),te("close",e);break;case"iframe":case"object":te("load",e);break;case"video":case"audio":for(a=0;a<oi.length;a++)te(oi[a],e);break;case"image":te("error",e),te("load",e);break;case"details":te("toggle",e);break;case"embed":case"source":case"link":te("error",e),te("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(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:pe(e,t,C,a,n,null)}return;default:if(Bc(t)){for(M in n)n.hasOwnProperty(M)&&(a=n[M],a!==void 0&&pu(e,t,M,a,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(a=n[x],a!=null&&pe(e,t,x,a,n,null))}function gp(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,h=null,x=null,v=null,C=null,M=null;for(A in n){var R=n[A];if(n.hasOwnProperty(A)&&R!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":v=R;default:a.hasOwnProperty(A)||pe(e,t,A,null,a,R)}}for(var T in a){var A=a[T];if(R=n[T],a.hasOwnProperty(T)&&(A!=null||R!=null))switch(T){case"type":c=A;break;case"name":s=A;break;case"checked":C=A;break;case"defaultChecked":M=A;break;case"value":h=A;break;case"defaultValue":x=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(u(137,t));break;default:A!==R&&pe(e,t,T,A,a,R)}}Mc(e,h,x,v,C,M,c,s);return;case"select":A=h=x=T=null;for(c in n)if(v=n[c],n.hasOwnProperty(c)&&v!=null)switch(c){case"value":break;case"multiple":A=v;default:a.hasOwnProperty(c)||pe(e,t,c,null,a,v)}for(s in a)if(c=a[s],v=n[s],a.hasOwnProperty(s)&&(c!=null||v!=null))switch(s){case"value":T=c;break;case"defaultValue":x=c;break;case"multiple":h=c;default:c!==v&&pe(e,t,s,c,a,v)}t=x,n=h,a=A,T!=null?La(e,!!n,T,!1):!!a!=!!n&&(t!=null?La(e,!!n,t,!0):La(e,!!n,n?[]:"",!1));return;case"textarea":A=T=null;for(x in n)if(s=n[x],n.hasOwnProperty(x)&&s!=null&&!a.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:pe(e,t,x,null,a,s)}for(h in a)if(s=a[h],c=n[h],a.hasOwnProperty(h)&&(s!=null||c!=null))switch(h){case"value":T=s;break;case"defaultValue":A=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==c&&pe(e,t,h,s,a,c)}Mo(e,T,A);return;case"option":for(var K in n)if(T=n[K],n.hasOwnProperty(K)&&T!=null&&!a.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:pe(e,t,K,null,a,T)}for(v in a)if(T=a[v],A=n[v],a.hasOwnProperty(v)&&T!==A&&(T!=null||A!=null))switch(v){case"selected":e.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:pe(e,t,v,T,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var V in n)T=n[V],n.hasOwnProperty(V)&&T!=null&&!a.hasOwnProperty(V)&&pe(e,t,V,null,a,T);for(C in a)if(T=a[C],A=n[C],a.hasOwnProperty(C)&&T!==A&&(T!=null||A!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(u(137,t));break;default:pe(e,t,C,T,a,A)}return;default:if(Bc(t)){for(var ye in n)T=n[ye],n.hasOwnProperty(ye)&&T!==void 0&&!a.hasOwnProperty(ye)&&pu(e,t,ye,void 0,a,T);for(M in a)T=a[M],A=n[M],!a.hasOwnProperty(M)||T===A||T===void 0&&A===void 0||pu(e,t,M,T,a,A);return}}for(var S in n)T=n[S],n.hasOwnProperty(S)&&T!=null&&!a.hasOwnProperty(S)&&pe(e,t,S,null,a,T);for(R in a)T=a[R],A=n[R],!a.hasOwnProperty(R)||T===A||T==null&&A==null||pe(e,t,R,T,a,A)}var yu=null,vu=null;function Xs(e){return e.nodeType===9?e:e.ownerDocument}function Nh(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 Rh(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 ju(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 bu=null;function pp(){var e=window.event;return e&&e.type==="popstate"?e===bu?!1:(bu=e,!0):(bu=null,!1)}var Uh=typeof setTimeout=="function"?setTimeout:void 0,yp=typeof clearTimeout=="function"?clearTimeout:void 0,Hh=typeof Promise=="function"?Promise:void 0,vp=typeof queueMicrotask=="function"?queueMicrotask:typeof Hh<"u"?function(e){return Hh.resolve(null).then(e).catch(jp)}:Uh;function jp(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function Lh(e,t){var n=t,a=0,s=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"){if(0<a&&8>a){n=a;var h=e.ownerDocument;if(n&1&&fi(h.documentElement),n&2&&fi(h.body),n&4)for(n=h.head,fi(n),h=n.firstChild;h;){var x=h.nextSibling,v=h.nodeName;h[Al]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&h.rel.toLowerCase()==="stylesheet"||n.removeChild(h),h=x}}if(s===0){e.removeChild(c),ji(t);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:a=n.charCodeAt(0)-48;else a=0;n=c}while(n);ji(t)}function Su(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Su(n),Ac(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function bp(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Al])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function Sp(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qt(e.nextSibling),e===null))return null;return e}function wu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function wp(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Qt(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var _u=null;function kh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function qh(e,t,n){switch(t=Xs(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function fi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ac(e)}var qt=new Map,$h=new Set;function Qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bn=$.d;$.d={f:_p,r:Cp,D:Tp,C:Ap,L:Ep,m:Dp,X:Mp,S:Op,M:zp};function _p(){var e=bn.f(),t=Us();return e||t}function Cp(e){var t=Na(e);t!==null&&t.tag===5&&t.type==="form"?cf(t):bn.r(e)}var ml=typeof document>"u"?null:document;function Gh(e,t,n){var a=ml;if(a&&typeof t=="string"&&t){var s=Bt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),$h.has(s)||($h.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),lt(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Tp(e){bn.D(e),Gh("dns-prefetch",e,null)}function Ap(e,t){bn.C(e,t),Gh("preconnect",e,t)}function Ep(e,t,n){bn.L(e,t,n);var a=ml;if(a&&e&&t){var s='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Bt(n.imageSizes)+'"]')):s+='[href="'+Bt(e)+'"]';var c=s;switch(t){case"style":c=xl(e);break;case"script":c=gl(e)}qt.has(c)||(e=j({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),qt.set(c,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(hi(c))||t==="script"&&a.querySelector(mi(c))||(t=a.createElement("link"),lt(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Dp(e,t){bn.m(e,t);var n=ml;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Bt(a)+'"][href="'+Bt(e)+'"]',c=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gl(e)}if(!qt.has(c)&&(e=j({rel:"modulepreload",href:e},t),qt.set(c,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(mi(c)))return}a=n.createElement("link"),lt(a,"link",e),Ie(a),n.head.appendChild(a)}}}function Op(e,t,n){bn.S(e,t,n);var a=ml;if(a&&e){var s=Ra(a).hoistableStyles,c=xl(e);t=t||"default";var h=s.get(c);if(!h){var x={loading:0,preload:null};if(h=a.querySelector(hi(c)))x.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},n),(n=qt.get(c))&&Cu(e,n);var v=h=a.createElement("link");Ie(v),lt(v,"link",e),v._p=new Promise(function(C,M){v.onload=C,v.onerror=M}),v.addEventListener("load",function(){x.loading|=1}),v.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Vs(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:x},s.set(c,h)}}}function Mp(e,t){bn.X(e,t);var n=ml;if(n&&e){var a=Ra(n).hoistableScripts,s=gl(e),c=a.get(s);c||(c=n.querySelector(mi(s)),c||(e=j({src:e,async:!0},t),(t=qt.get(s))&&Tu(e,t),c=n.createElement("script"),Ie(c),lt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function zp(e,t){bn.M(e,t);var n=ml;if(n&&e){var a=Ra(n).hoistableScripts,s=gl(e),c=a.get(s);c||(c=n.querySelector(mi(s)),c||(e=j({src:e,async:!0,type:"module"},t),(t=qt.get(s))&&Tu(e,t),c=n.createElement("script"),Ie(c),lt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function Yh(e,t,n,a){var s=(s=Dn.current)?Qs(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=xl(n.href),n=Ra(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=xl(n.href);var c=Ra(s).hoistableStyles,h=c.get(e);if(h||(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=s.querySelector(hi(e)))&&!c._p&&(h.instance=c,h.state.loading=5),qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qt.set(e,n),c||Bp(s,e,n,h.state))),t&&a===null)throw Error(u(528,""));return h}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gl(n),n=Ra(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function xl(e){return'href="'+Bt(e)+'"'}function hi(e){return'link[rel="stylesheet"]['+e+"]"}function Xh(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Bp(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),lt(t,"link",n),Ie(t),e.head.appendChild(t))}function gl(e){return'[src="'+Bt(e)+'"]'}function mi(e){return"script[async]"+e}function Qh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(a)return t.instance=a,Ie(a),a;var s=j({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),lt(a,"style",s),Vs(a,n.precedence,e),t.instance=a;case"stylesheet":s=xl(n.href);var c=e.querySelector(hi(s));if(c)return t.state.loading|=4,t.instance=c,Ie(c),c;a=Xh(n),(s=qt.get(s))&&Cu(a,s),c=(e.ownerDocument||e).createElement("link"),Ie(c);var h=c;return h._p=new Promise(function(x,v){h.onload=x,h.onerror=v}),lt(c,"link",a),t.state.loading|=4,Vs(c,n.precedence,e),t.instance=c;case"script":return c=gl(n.src),(s=e.querySelector(mi(c)))?(t.instance=s,Ie(s),s):(a=n,(s=qt.get(c))&&(a=j({},n),Tu(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),lt(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vs(a,n.precedence,e));return t.instance}function Vs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,c=s,h=0;h<a.length;h++){var x=a[h];if(x.dataset.precedence===t)c=x;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Cu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Tu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zs=null;function Vh(e,t,n){if(Zs===null){var a=new Map,s=Zs=new Map;s.set(n,a)}else s=Zs,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[Al]||c[ct]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var x=a.get(h);x?x.push(c):a.set(h,[c])}}return a}function Zh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Np(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Kh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var xi=null;function Rp(){}function Up(e,t,n){if(xi===null)throw Error(u(475));var a=xi;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var s=xl(n.href),c=e.querySelector(hi(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Ks.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=c,Ie(c);return}c=e.ownerDocument||e,n=Xh(n),(s=qt.get(s))&&Cu(n,s),c=c.createElement("link"),Ie(c);var h=c;h._p=new Promise(function(x,v){h.onload=x,h.onerror=v}),lt(c,"link",n),t.instance=c}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Ks.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Hp(){if(xi===null)throw Error(u(475));var e=xi;return e.stylesheets&&e.count===0&&Au(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Au(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Ks(){if(this.count--,this.count===0){if(this.stylesheets)Au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Js=null;function Au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Js=new Map,t.forEach(Lp,e),Js=null,Ks.call(e))}function Lp(e,t){if(!(t.state.loading&4)){var n=Js.get(e);if(n)var a=n.get(null);else{n=new Map,Js.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var h=s[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}s=t.instance,h=s.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,s),n.set(h,s),this.count++,a=Ks.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var gi={$$typeof:Ee,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function kp(e,t,n,a,s,c,h,x){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=wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wc(0),this.hiddenUpdates=wc(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Jh(e,t,n,a,s,c,h,x,v,C,M,R){return e=new kp(e,t,n,h,x,v,C,R),t=1,c===!0&&(t|=24),c=_t(3,null,null,t),e.current=c,c.stateNode=e,t=rr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},fr(c),e}function Fh(e){return e?(e=Za,e):Za}function Wh(e,t,n,a,s,c){s=Fh(s),a.context===null?a.context=s:a.pendingContext=s,a=Rn(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Un(e,a,t),n!==null&&(Dt(n,e,t),Vl(n,e,t))}function Ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Eu(e,t){Ih(e,t),(e=e.alternate)&&Ih(e,t)}function Ph(e){if(e.tag===13){var t=Va(e,67108864);t!==null&&Dt(t,e,67108864),Eu(e,67108864)}}var Fs=!0;function qp(e,t,n,a){var s=N.T;N.T=null;var c=$.p;try{$.p=2,Du(e,t,n,a)}finally{$.p=c,N.T=s}}function $p(e,t,n,a){var s=N.T;N.T=null;var c=$.p;try{$.p=8,Du(e,t,n,a)}finally{$.p=c,N.T=s}}function Du(e,t,n,a){if(Fs){var s=Ou(a);if(s===null)gu(e,t,a,Ws,n),tm(e,a);else if(Yp(s,e,t,n,a))a.stopPropagation();else if(tm(e,a),t&4&&-1<Gp.indexOf(e)){for(;s!==null;){var c=Na(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=sa(c.pendingLanes);if(h!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;h;){var v=1<<31-St(h);x.entanglements[1]|=v,h&=~v}en(c),(fe&6)===0&&(Ns=Jt()+500,ui(0))}}break;case 13:x=Va(c,2),x!==null&&Dt(x,c,2),Us(),Eu(c,2)}if(c=Ou(a),c===null&&gu(e,t,a,Ws,n),c===s)break;s=c}s!==null&&a.stopPropagation()}else gu(e,t,a,null,n)}}function Ou(e){return e=Rc(e),Mu(e)}var Ws=null;function Mu(e){if(Ws=null,e=Ba(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ws=e,null}function em(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(Ax()){case ho:return 2;case mo:return 8;case Yi:case Ex:return 32;case xo:return 268435456;default:return 32}default:return 32}}var zu=!1,Jn=null,Fn=null,Wn=null,pi=new Map,yi=new Map,In=[],Gp="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 tm(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Fn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(t.pointerId)}}function vi(e,t,n,a,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Na(t),t!==null&&Ph(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Yp(e,t,n,a,s){switch(t){case"focusin":return Jn=vi(Jn,e,t,n,a,s),!0;case"dragenter":return Fn=vi(Fn,e,t,n,a,s),!0;case"mouseover":return Wn=vi(Wn,e,t,n,a,s),!0;case"pointerover":var c=s.pointerId;return pi.set(c,vi(pi.get(c)||null,e,t,n,a,s)),!0;case"gotpointercapture":return c=s.pointerId,yi.set(c,vi(yi.get(c)||null,e,t,n,a,s)),!0}return!1}function nm(e){var t=Ba(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Ux(e.priority,function(){if(n.tag===13){var a=Et();a=_c(a);var s=Va(n,a);s!==null&&Dt(s,n,a),Eu(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Is(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ou(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Nc=a,n.target.dispatchEvent(a),Nc=null}else return t=Na(n),t!==null&&Ph(t),e.blockedOn=n,!1;t.shift()}return!0}function am(e,t,n){Is(e)&&n.delete(t)}function Xp(){zu=!1,Jn!==null&&Is(Jn)&&(Jn=null),Fn!==null&&Is(Fn)&&(Fn=null),Wn!==null&&Is(Wn)&&(Wn=null),pi.forEach(am),yi.forEach(am)}function Ps(e,t){e.blockedOn===t&&(e.blockedOn=null,zu||(zu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Xp)))}var ec=null;function lm(e){ec!==e&&(ec=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ec===e&&(ec=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(Mu(a||n)===null)continue;break}var c=Na(n);c!==null&&(e.splice(t,3),t-=3,Mr(c,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function ji(e){function t(v){return Ps(v,e)}Jn!==null&&Ps(Jn,e),Fn!==null&&Ps(Fn,e),Wn!==null&&Ps(Wn,e),pi.forEach(t),yi.forEach(t);for(var n=0;n<In.length;n++){var a=In[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<In.length&&(n=In[0],n.blockedOn===null);)nm(n),n.blockedOn===null&&In.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],c=n[a+1],h=s[ht]||null;if(typeof c=="function")h||lm(n);else if(h){var x=null;if(c&&c.hasAttribute("formAction")){if(s=c,h=c[ht]||null)x=h.formAction;else if(Mu(s)!==null)continue}else x=h.action;typeof x=="function"?n[a+1]=x:(n.splice(a,3),a-=3),lm(n)}}}function Bu(e){this._internalRoot=e}tc.prototype.render=Bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Et();Wh(n,a,e,t,null,null)},tc.prototype.unmount=Bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wh(e.current,2,null,e,null,null),Us(),t[za]=null}};function tc(e){this._internalRoot=e}tc.prototype.unstable_scheduleHydration=function(e){if(e){var t=jo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&t!==0&&t<In[n].priority;n++);In.splice(n,0,e),n===0&&nm(e)}};var im=r.version;if(im!=="19.1.0")throw Error(u(527,im,"19.1.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{_l=nc.inject(Qp),bt=nc}catch{}}return bi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var n=!1,a="",s=bf,c=Sf,h=wf,x=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=Jh(e,1,!1,null,null,n,a,s,c,h,x,null),e[za]=t.current,xu(e),new Bu(t)},bi.hydrateRoot=function(e,t,n){if(!o(e))throw Error(u(299));var a=!1,s="",c=bf,h=Sf,x=wf,v=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=Jh(e,1,!0,t,n??null,a,s,c,h,x,v,C),t.context=Fh(null),n=t.current,a=Et(),a=_c(a),s=Rn(a),s.callback=null,Un(n,s,a),n=a,t.current.lanes=n,Tl(t,n),en(t),e[za]=t.current,xu(e),new tc(t)},bi.version="19.1.0",bi}var dm;function Q0(){if(dm)return Ru.exports;dm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Ru.exports=X0(),Ru.exports}var V0=Q0();function na(i){var r=[],d=Math.floor(i/3600);d>0&&r.push(`${d}h`);var u=Math.floor(i%3600/60);u>0&&r.push(`${u}min`);var o=i%60;return o>0&&r.push(`${o}s`),r?r.length>1?`${r[0]} ${r[1]}`:r[0]:"-"}function Sl(i){return i.toLocaleString("en-GB",{timeZone:"UTC"})}function gc(i){const r=(f,m,g=!1)=>{f=Math.trunc(f),f>1&&(m+="s");let p="";return g||(p+="in "),p+=`${f.toLocaleString()} ${m}`,g&&(p+=" ago"),p};if(!(i instanceof Date))return`expected date saw ${typeof i}`;const d=new Date,u=i<d;var o=Math.abs(d-i)/1e3;return o<60?u?"just now":"less than one minute":(o=o/60,o<60?r(o,"minute",u):(o=o/60,o<24?r(o,"hour",u):(o=o/24,o<365?r(o,"day",u):i.toLocaleDateString("en-GB",{timeZone:"UTC"}))))}function Oi(i){return i.toLocaleString("en-GB",{timeZone:"UTC",dateStyle:"short"})}/*! js-cookie v3.0.5 | MIT */function ac(i){for(var r=1;r<arguments.length;r++){var d=arguments[r];for(var u in d)i[u]=d[u]}return i}var Z0={read:function(i){return i[0]==='"'&&(i=i.slice(1,-1)),i.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(i){return encodeURIComponent(i).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Gu(i,r){function d(o,f,m){if(!(typeof document>"u")){m=ac({},r,m),typeof m.expires=="number"&&(m.expires=new Date(Date.now()+m.expires*864e5)),m.expires&&(m.expires=m.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var p in m)m[p]&&(g+="; "+p,m[p]!==!0&&(g+="="+m[p].split(";")[0]));return document.cookie=o+"="+i.write(f,o)+g}}function u(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],m={},g=0;g<f.length;g++){var p=f[g].split("="),y=p.slice(1).join("=");try{var j=decodeURIComponent(p[0]);if(m[j]=i.read(y,j),o===j)break}catch{}}return o?m[o]:m}}return Object.create({set:d,get:u,remove:function(o,f){d(o,"",ac({},f,{expires:-1}))},withAttributes:function(o){return Gu(this.converter,ac({},this.attributes,o))},withConverter:function(o){return Gu(ac({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(i)}})}var Km=Gu(Z0,{path:"/"}),K0=Zm();const Jm=n0(K0),wn=_.div`
  position: fixed;
  background-color: ${({theme:i,$variant:r})=>i.colors[r].color};
  color: ${({theme:i,$variant:r})=>i.colors[r].text};
  border-radius: 15px;
  padding: 20px;
  max-width: 400px;
  transition:
    bottom 0.3s ease-in-out,
    right 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    padding 0.3s ease-in-out;
  box-sizing: content-box;
  z-index: 101;
`;wn.Container=_.div`
  > ${wn} {
    display: none;
  }

  > ${wn}:nth-last-child(1) {
    display: block;
    padding: 20px;
    bottom: 50px;
    right: 50px;
    opacity: 1;
  }

  > ${wn}:nth-last-child(2) {
    display: block;
    padding: 15px;
    bottom: 90px;
    right: 55px;
    opacity: 0.8;
  }

  > ${wn}:nth-last-child(3) {
    display: block;
    padding: 10px;
    bottom: 130px;
    right: 60px;
    opacity: 0.6;
  }
`;wn.Title=_.strong`
  font-weight: bold;
`;function J0({title:i,message:r,variant:d}){return l.jsxs(wn,{$variant:d,children:[i&&l.jsxs(wn.Title,{children:[i," "]}),r]})}function F0({toasts:i,setToasts:r}){return O.useEffect(()=>{const d=setInterval(()=>{const u=new Date,o=i.filter(f=>f.expire>u);o.length!==i.length&&r(o)},1e3);return()=>clearInterval(d)},[i,r]),Jm.createPortal(l.jsx(wn.Container,{children:i.map(({id:d,...u})=>l.jsx(J0,{...u},d))}),document.body)}function an(i,{title:r="",message:d,variant:u,time:o=1e4}){const f=Math.random().toString(36),m=new Date(Date.now()+o);i({id:f,title:r,message:d,variant:u,expire:m})}async function Fm(i,r){var d,u;try{const o=await r;let f="Action completed successfully";if(typeof o=="string")f=o;else if(typeof(o==null?void 0:o.status)=="string")f=o.status;else try{f=JSON.stringify(o)}catch{f=((d=o==null?void 0:o.toString)==null?void 0:d.call(o))??"Success"}return an(i,{message:f,variant:"success"}),o}catch(o){throw console.error(o),an(i,{message:((u=o==null?void 0:o.toString)==null?void 0:u.call(o))??"Unknown error",variant:"danger"}),o}}async function me(i,r){var d,u,o;try{return await r}catch(f){console.error(f);let m="An unknown error occurred";if((u=(d=f==null?void 0:f.response)==null?void 0:d.data)!=null&&u.detail)m=f.response.data.detail;else if(f!=null&&f.detail)m=f.detail;else if(f!=null&&f.message)m=f.message;else if(typeof f=="string")m=f;else try{m=JSON.stringify(f)}catch{m=(o=f.toString)==null?void 0:o.call(f)}an(i,{title:"Error",message:m,variant:"danger"})}}const Ne=H.createContext(null),oe=H.createContext(()=>{}),Ni=H.createContext(null);async function se(i,{json:r,...d}){var u={...d};u.headers||(u.headers={});const o=Km.get("csrftoken");o&&(u.headers["x-csrftoken"]=o),r&&(u.method||(u.method="POST"),u.headers["Content-Type"]="application/json",u.body=JSON.stringify(r));const f=await fetch(i,u);var m;if((f.headers.get("Content-Type")||"").match(/json/)?m=await f.json():m=await f.text(),f.status>=400)throw m;return m}async function vl(i,r){var d;try{const u=await r;let o="Action completed successfully";if(typeof u=="string")o=u;else if(typeof(u==null?void 0:u.status)=="string")o=u.status;else try{o=JSON.stringify(u)}catch{o=((d=u==null?void 0:u.toString)==null?void 0:d.call(u))??"Success"}return an(i,{message:o,variant:"success"}),u}catch(u){throw console.error(u),an(i,{message:u.toString(),variant:"danger"}),u}}async function W0(i,r){var d,u;try{await r}catch(o){console.error(o);let f="An unknown error occurred";if((u=(d=o==null?void 0:o.response)==null?void 0:d.data)!=null&&u.detail)f=o.response.data.detail;else if(o!=null&&o.detail)f=o.detail;else if(o!=null&&o.message)f=o.message;else if(typeof o=="string")f=o;else try{f=JSON.stringify(o)}catch{f=o.toString()}an(i,{title:"Error",message:f,variant:"danger"})}}function _e(i){const r=H.useContext(oe),[d,u]=H.useState(null),o=H.useCallback(()=>{i&&W0(r,se(i,{}).then(u,f=>{throw u(null),f}))},[r,i]);return H.useEffect(()=>{u(null),o()},[o]),[d,o]}async function uc(i,r,d={}){let u=i;if(d.params)for(const[E,D]of Object.entries(d.params))u=u.replace(`{${E}}`,encodeURIComponent(String(D)));const f={"x-csrftoken":Km.get("csrftoken")??"",Accept:"application/json",...d.headers||{}},m={method:r.toUpperCase(),headers:f};d.body&&(f["Content-Type"]="application/json",m.body=JSON.stringify(d.body));const g=await fetch(u,m),j=(g.headers.get("Content-Type")||"").includes("json")?await g.json():await g.text();if(!g.ok)throw j;return j}function Wm(i){const r=O.useContext(oe),[d,u]=O.useState(null),o=O.useCallback(()=>{i&&me(r,fetch(i).then(async f=>{if(!f.ok)throw await f.json();return await f.json()}).then(u).catch(f=>{throw u(null),f}))},[r,i]);return O.useEffect(()=>{u(null),o()},[o]),[d,o]}function Im(i){return uc("/incursions/api/open_window","post",{body:i})}const Ju=_.img`
  border-radius: 25%;
  margin-right: 10px;
  vertical-align: middle;

  @media (max-width: 450px) {
    display: none;
  }
`;function ot({avatar:i=!0,avatarSize:r=32,character_id:d=1,character_name:u,noLink:o=!1}){return l.jsxs(l.Fragment,{children:[i&&l.jsx(Ju,{src:`https://images.evetech.net/characters/${d}/portrait?size=${r}`,loading:"lazy"}),o?u:l.jsx(fc,{to:`/fc/search?query=${u}`,children:u})]})}function Fu({avatar:i=!0,avatarSize:r=32,corporation_id:d=1,corporation_name:u,noLink:o=!1}){const f=O.useContext(oe),m=O.useContext(Ne),g=()=>{me(f,Im({character_id:m.current.character_id,target_id:d}))};return l.jsxs(l.Fragment,{children:[i&&l.jsx(Ju,{src:`https://images.evetech.net/corporations/${d}/logo?size=${r}`,loading:"lazy"}),o?u:l.jsxs(l.Fragment,{children:[l.jsx(fc,{to:"#",onClick:g,children:u}),l.jsx(ie,{fixedWidth:!0,icon:Bi})]})]})}function Wu({avatar:i=!0,avatarSize:r=32,alliance_id:d=1,alliance_name:u,noLink:o=!1}){const f=O.useContext(oe),m=O.useContext(Ne),g=()=>{me(f,Im({character_id:m.current.character_id,target_id:d}))};return l.jsxs(l.Fragment,{children:[i&&l.jsx(Ju,{src:`https://images.evetech.net/alliances/${d}/logo?size=${r}`,loading:"lazy"}),o?u:l.jsxs(l.Fragment,{children:[l.jsx(fc,{to:"#",onClick:g,children:u}),l.jsx(ie,{fixedWidth:!0,icon:Bi})]})]})}const An=_.table.withConfig({shouldForwardProp:i=>!["fullWidth","edgeLine"].includes(i)})`
  table-layout: fixed;
  ${({fullWidth:i})=>i&&"width: 100%;"}
  ${({edgeLine:i,theme:r})=>i&&`
    border-top: solid 1px ${r.colors.accent2};
    border-bottom: solid 1px ${r.colors.accent2};
  `}

  @media (max-width: 480px) {
    width: 100%;
    font-size: 3.4vw;
  }
`,Da=_.thead`
  border-bottom: solid 2px ${({theme:i})=>i.colors.accent2};
`,En=_.tbody``,ze=_.tr`
  background-color: ${({theme:i})=>i.colors.background};

  ${({background:i,theme:r})=>i&&`
      background-color: ${r.colors.accent1};
      box-shadow: 2px 2px 5px ${r.colors.shadow};
    `}

  &:last-child {
    border-bottom: none;
  }

  ${({noAlternating:i,theme:r})=>!i&&`
      border-bottom: solid 1px ${r.colors.accent2};
      &:nth-child(odd) {
        background-color: ${r.colors.accent1};
      }
    `}
`,Je=_.th`
  text-align: left;
  padding: 0.5em;
  font-weight: 600;
`,I0=_.th`
  text-align: left;
  padding: 0.5em;
  font-weight: 600;
  width: 75px;

  @media (max-width: 480px) {
    width: 60px;
  }
`,W=_.td`
  padding: 0.5em;
  color: ${({theme:i})=>i.colors.text};

  a {
    color: ${({theme:i})=>i.colors.text};
  }

  @media (max-width: 480px) {
    padding: 0.3em;
  }
`,_n=_.td`
  color: ${({theme:i})=>i.colors.text};

  a {
    color: ${({theme:i})=>i.colors.text};
  }

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.3em;

  @media (max-width: 480px) {
    padding: 0.3em;
  }
`,P0=_.td`
  position: relative;
  text-align: end;
  padding: 0 0.5em;

  &::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: ${({theme:i})=>i.colors.accent2};
  }

  ${({warn:i})=>i&&`
      &::after {
        content: '';
        position: absolute;
        left: 40%;
        top: 0;
        bottom: 0;
        width: 10%;
        background: ${i};
      }
    `}
`,ey=_.span`
  a {
    color: ${i=>i.theme.colors.highlight.text};
    text-decoration: none;
    font-weight: bold;

    &:hover:not(:disabled):not(.static) {
      cursor: pointer;
      color: ${i=>i.theme.colors.highlight.active};
    }
  }
`,ty=_.div`
  h2,
  h3,
  h4,
  h5,
  h6 {
    display: inline;
    &:hover a {
      visibility: visible;
      opacity: 1;
    }

    a {
      margin-left: 10px;
      font-size: smaller;
      text-decoration: none;
      visibility: hidden;
      opacity: 0;
      transition:
        visibility 0.05s,
        opacity 0.05s linear;

      &:after {
        content: '#';
      }

      &:hover {
        color: ${i=>i.theme.colors.highlight.active};
      }
    }
  }
`,ny=_.ul`
  padding-left: 1.2em;
  list-style-type: none;
  font-size: 0.9em;
  margin-bottom: 1em;

  li {
    margin: 0.3em 0;
  }

  a {
    text-decoration: none;
    color: ${i=>i.theme.colors.text};
    &:hover {
      color: ${i=>i.theme.colors.highlight.text};
    }
  }
`;function ay({href:i,children:r,...d}){return l.jsx(ey,{children:i.startsWith("/")?l.jsx(vt,{to:i,end:!0,...d,children:r}):l.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",...d,children:r})})}function ly({headings:i}){return i.length?l.jsx(ny,{children:i.map(({text:r,slug:d},u)=>l.jsx("li",{children:l.jsx("a",{href:`#${d}-${u}`,children:r})},u))}):null}function Ri({...i}){const[r,d]=O.useState([]),u=({level:f,children:m})=>{const g=m.map(j=>{var E;return typeof j=="string"?j:((E=j==null?void 0:j.props)==null?void 0:E.children)??""}).flat().join(" "),p=encodeURIComponent(g.replace(/[^a-zA-Z0-9 ]/g,"").replace(/\s+/g,"-").toLowerCase()),y=`${p}-${r.length}`;return d(j=>j.some(E=>E.slug===p)?j:[...j,{text:g,slug:p}]),l.jsx(ty,{children:H.createElement(`h${f}`,{id:y},l.jsxs(l.Fragment,{children:[m,l.jsx("a",{href:`#${y}`,"aria-label":`Link to heading ${g}`})]}))})};O.useEffect(()=>{var m;const{hash:f}=window.location;f&&((m=document.getElementById(f.substring(1)))==null||m.scrollIntoView())},[]);const o={h2:u,h3:u,h4:u,h5:u,h6:u,a:ay,table:An,thead:Da,tbody:En,th:Je,td:W,tr:ze};return l.jsxs(l.Fragment,{children:[l.jsx(ly,{headings:r}),l.jsx(Rm,{components:o,remarkPlugins:[a0],...i})]})}const st=_.div`
  color: ${({theme:i})=>i.colors.text};

  p,
  ul,
  ol {
    margin-bottom: 1em;
    line-height: 1.5em;
  }

  a {
    font-weight: bold;
    text-decoration: none;
    color: ${({theme:i})=>i.colors.highlight.text};

    &:hover:not(:disabled):not(.static) {
      cursor: pointer;
      color: ${({theme:i})=>i.colors.highlight.active};
    }
  }

  i,
  em {
    font-style: italic;
  }

  b,
  strong {
    font-weight: bold;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 1em;
  }

  h1 + h2,
  h2 + h3,
  h3 + h4,
  h4 + h5,
  h5 + h6 {
    margin-top: 0;
  }

  h1 {
    margin-top: 0;
    font-size: 3em;
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.5em;
    font-weight: 600;
  }

  h4 {
    font-size: 1.2em;
    font-weight: 500;
  }

  ul {
    list-style-type: disc;
    padding-left: 2em;
  }

  ol {
    list-style-type: number;
    padding-left: 2em;
  }

  pre {
    font-family: ${({theme:i})=>i.font.monospaceFamily};
    font-size: 0.8em;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 5px;
    background-color: ${({theme:i})=>i.colors.accent1};
  }

  img {
    max-width: 100%;
  }
`,la=_.h1`
  font-size: 3em;
  margin-bottom: 0.5em;

  @media (max-width: 480px) {
    font-size: 2em;
  }
`,Be=_.h2`
  font-size: 1.5em;
`,Pm=[{name:"Fits",value:"/fits"},{name:"Guides",value:"/guide"},{name:"Skills",value:"/skills"},{name:"Profile",value:"/pilot"},{name:"Waitlist",value:"/waitlist"}],iy=_.div`
  background: ${i=>i.theme.colors.secondary.color};
  box-shadow: 0px 3px ${i=>i.theme.colors.shadow};
  color: ${i=>i.theme.colors.text};
  margin-bottom: 3.5px;
  padding: 12px;
  position: relative;

  &[data-alert='true'] {
    background: ${i=>i.theme.colors.danger.color};
    color: ${i=>i.theme.colors.danger.text};
  }

  small {
    font-style: italic;
    font-size: small;
  }

  .close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    opacity: 0.6;
  }

  .close:hover {
    opacity: 1;
    transition: ease-in-out 0.2s;
    cursor: pointer;
  }

  .close:before,
  .close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 15px;
    width: 2px;
    background-color: ${i=>i.theme.colors.secondary.text};
  }

  .close:before {
    transform: rotate(45deg);
  }

  .close:after {
    transform: rotate(-45deg);
  }
`,sy=_(st)`
  padding-left: 42px;

  p {
    margin-bottom: 0em;
  }

  h1,
  h2,
  h3,
  h4 {
    margin-top: 0em;
  }
`,cy=(i,r)=>{const d=O.useRef();O.useEffect(()=>{d.current=i},[i]),O.useEffect(()=>{function u(){var o;(o=d.current)==null||o.call(d)}{const o=setInterval(u,r);return()=>clearInterval(o)}},[r])},ry=()=>{const i=O.useContext(Ne),r=O.useContext(Ni),[,d]=O.useReducer(B=>B+1,0),{t:u}=L(),o=ln(),[f,m]=O.useState([]),[g,p]=O.useState({}),[y,j]=O.useState(window.location.pathname);O.useEffect(()=>{j(o.pathname)},[o]);const E=B=>{try{const k=JSON.parse(B.data);Array.isArray(k)&&m(k)}catch{}};O.useEffect(()=>{if(r)return r.addEventListener("announcement;new",E),r.addEventListener("announcement;updated",E),()=>{r.removeEventListener("announcement;new",E),r.removeEventListener("announcement;updated",E)}},[r]);const D=B=>{const k=JSON.parse(localStorage.getItem("ignore-announcements")||"{}"),q=new Date;Object.keys(k).forEach(U=>{k[U]<q.getTime()&&delete k[U]}),k[B]=new Date().setDate(q.getDate()+30),localStorage.setItem("ignore-announcements",JSON.stringify(k)),p(k)};return O.useEffect(()=>{(async()=>{const k=JSON.parse(localStorage.getItem("ignore-announcements")||"{}");p(k);const q=await se("/incursions/api/announcements",{});m(Array.isArray(q)?q:[])})()},[]),cy(()=>d(),6e4),f.length===0?null:l.jsx("div",{style:{marginBottom:"10px"},children:f.map(B=>{var U,G;if(B.id in g)return null;const k=B.pages?JSON.parse(B.pages):[];if(k.length>0&&!Pm.filter(le=>k.includes(le.name.toLowerCase())).some(le=>y.startsWith(le.value.toLowerCase())))return null;const q=new Date(B.created_at);return l.jsxs(iy,{"data-alert":B.is_alert,children:[l.jsx(ot,{...B.created_by,noLink:!((U=i==null?void 0:i.access)!=null&&U["incursions.waitlist_announcements_manage"])}),", ",u("{{time}} ago",{time:gc(q)}),l.jsx("span",{className:"close",onClick:()=>D(B.id)}),l.jsx(sy,{children:l.jsx(Ri,{children:B.message})}),((G=i==null?void 0:i.access)==null?void 0:G["incursions.waitlist_announcements_manage"])&&l.jsxs("small",{style:{paddingLeft:"42px"},children:[u("Displayed on"),": ",k.length>0?k.join(", "):u("all pages"),"."]})]},B.id)})})};async function uy(i){const r=await fetch("/incursions/api/auth/whoami");r.status!==200&&i(null);const d=await r.json();var u={};d.access.forEach(m=>{u[m]=!0});const o=window.localStorage&&parseInt(window.localStorage.getItem("selectedCharacter"));var f=0;o&&(f=d.characters.findIndex(m=>m.id===o),f=f===-1?0:f),i({...d,current:d.characters[f],access:u})}class _a extends O.Component{constructor(r){super(r),this.state={hasError:!1,message:"",trace:""}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r,d){console.error("ErrorBoundary caught an error:",r,d),this.setState({message:r.message,trace:String(d.componentStack)})}render(){return this.state.hasError?l.jsxs(l.Fragment,{children:[l.jsx("p",{className:"text-center",children:"You should not be seeing this message, please report this error to your Administrators."}),l.jsx("div",{style:{justifyContent:"center"},className:"d-flex",children:l.jsx("pre",{style:{maxWidth:"1000px"},className:"border",children:this.state.trace})})]}):this.props.children}}const Ae=_.div`
  background-color: ${({theme:i})=>i.colors.background};
  padding: 1.5em;
  border-radius: 5px;

  @media (max-width: 480px) {
    padding: ${({mpadding:i})=>i??"0.6em"};
    width: 100%;
  }
`,Zt=l0`
  position: relative;
  padding: 0 1em;
  font-size: 1em;
  border: solid ${({$variant:i})=>i?"0px":"1px"};
  border-color: ${({theme:i})=>i.colors.accent2};
  border-radius: 20px;
  background-color: ${({theme:i,$variant:r})=>i.colors[r||"input"].color};
  color: ${({theme:i,$variant:r})=>i.colors[r||"input"].text} !important;
  display: inline-block;
  font: inherit;

  &.active {
    border-color: ${({theme:i})=>i.colors.accent2};
  }

  &:hover:not(:disabled):not(.static) {
    color: ${({theme:i,$variant:r})=>i.colors[r||"input"].text};
    border-color: ${({theme:i})=>i.colors.accent3};
    background-color: ${({theme:i,$variant:r})=>i.colors[r||"input"].accent};

    &.active {
      border-color: ${({theme:i})=>i.colors.active};
    }
  }

  &:focus:not(:disabled):not(.static) {
    outline: none;
  }

  &:disabled {
    cursor: not-allowed;
  }

  &.static {
    cursor: default;
  }

  &:disabled,
  &.static {
    color: ${({theme:i,$variant:r})=>i.colors[r||"input"].disabled};
  }

  @media (max-width: 480px) {
    padding: 0 0.8em;
  }
`,X=_.button.attrs(i=>({className:`${i.$active?"active":""} ${i.static?"static":""}`}))`
  ${Zt}
  min-height: 2.5em;
  height: 2.5em;
  cursor: pointer;

  &:disabled {
    opacity: 0.6;
  }

  border-color: ${({theme:i,$variant:r})=>i.colors[r||"input"].color};

  @media (max-width: 700px) {
    height: max-content;
  }
`,oy=_.button.attrs(i=>({className:`${i.$active?"active":""} ${i.static?"static":""}`}))`
  ${Zt}
  height: 2.5em;
  width: 3.35em;
  background-color: #00000063;
  align-self: center;
  cursor: pointer;
  border: unset;

  @media (min-width: 481px) {
    display: none;
  }

  &:hover:not(:disabled):not(.static) {
    background-color: #000000a3;
  }

  color: #cccccc !important;
`,ex=_.a.attrs(i=>({className:`${i.$active?"active":""} ${i.static?"static":""}`}))`
  ${Zt}
  height: 2.5em;
  text-decoration: none;
  line-height: 2.5em;

  &:hover:not(:disabled):not(.static) {
    cursor: pointer;
  }

  border-color: ${({theme:i,$variant:r})=>i.colors[r||"input"].color};
`,tx=_.a.attrs(i=>({className:`${i.$active?"active":""} ${i.static?"static":""}`}))`
  ${Zt}
  height: 2.5em;
  text-decoration: none;
  line-height: 2.5em;
  border: unset;
  background-color: #ffffff0a;
  color: #cccccc !important;

  &:hover:not(:disabled):not(.static) {
    background-color: #f9f9f921;
  }
`,Ke=_.label`
  display: block;
  margin-bottom: 10px;

  &[required]::after {
    content: '  *';
    color: red;
    font-size: 15px;
    font-weight: bolder;
  }
`,nn=_(vt).attrs(i=>({className:`${i.$active?"active":""} ${i.static?"static":""}`}))`
  ${Zt}
  height: 2.5em;
  text-decoration: none;
  line-height: 2.5em;

  border-color: ${({theme:i,$variant:r})=>i.colors[r||"input"].color};
`,dy=_(vt).attrs(i=>({className:`${i.$active?"active":""} ${i.static?"static":""}`}))`
  ${Zt}
  height: 2.5em;
  text-decoration: none;
  line-height: 2.5em;
  border: unset;
  background-color: #ffffff0a;
  color: #cccccc !important;

  &:hover:not(:disabled):not(.static) {
    background-color: #f9f9f921;
  }
`,Tn=_.input`
  ${Zt}
  height: 2.5em;
`,fy=_.input.attrs({type:"radio"})`
  ${Zt}
`,Aa=_.select`
  ${Zt}
  height: 2.5em;
  appearance: none;

  > option {
    background-color: ${({theme:i})=>i.colors.background};
    color: ${({theme:i})=>i.colors.text};
  }
`,hy=_.select`
  ${Zt}
  height: 2.5em;
  appearance: listbox;
  background-color: #ffffff0a;
  color: #cccccc !important;

  &:hover:not(:disabled):not(.static) {
    background-color: #f9f9f921;
  }

  > option {
    color: black;
  }
`,Vt=_.textarea`
  ${Zt}
  padding: 1em;

  &:focus::placeholder {
    color: transparent;
  }
`,Te=_.div`
  display: flex;
  flex-wrap: nowrap;

  > * {
    z-index: 1;
    margin: 0;
  }

  > :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  > :not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
  }

  > .active:hover {
    z-index: 4;
  }

  > .active {
    z-index: 3;
  }

  > :hover {
    z-index: 2;
  }

  @media (max-width: 480px) {
    ${({$fixed:i})=>!i&&`
        * {
          padding-right: 0.4em;
          padding-left: 0.4em;
          font-size: 0.85em;
          svg {
            padding: 0;
            margin: 0 0.3em;
          }
        }
      `}
  }

  box-shadow: 3px 3px 1px ${({theme:i})=>i.colors.shadow};
  border-radius: 20px;
  width: fit-content;
  height: fit-content;
`,fm=_(Te)`
  box-shadow: none;
`,Ot=_.div`
  display: flex;
  flex-wrap: wrap;

  > * {
    margin-bottom: ${({marginb:i})=>i??"0.5em"};
    margin-right: 0.5em;
  }

  > :not(:last-child) {
    @media (max-width: 480px) {
      margin-bottom: 0.4em;
      margin-right: 0.3em;
    }
  }
`,pc=_.div`
  display: flex;
  justify-content: center;

  > * {
    width: ${({size:i})=>i??"inherit"};
    margin: 0.2em;
  }
`,my=_.b`
  color: ${({theme:i})=>i.colors.highlight.text};

  &:hover:not(:disabled):not(.static) {
    cursor: pointer;
    color: ${({theme:i})=>i.colors.highlight.active};
  }
`,tn=_.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
`;tn.Head=_.h3`
  font-weight: bold;
  font-size: 1.5em;
  text-decoration: underline;
`;tn.Paragraph=_.div`
  margin: 0;
  border-top: 2px solid;
  padding: 2em 5em;

  @media (max-width: 720px) {
    padding: 1em;
  }

  border-color: ${({theme:i})=>i.colors.accent2};
`;tn.ParagraphALT=_.div`
  margin: 0;
  padding: 2em 5em;

  @media (max-width: 720px) {
    padding: 1em;
  }

  b {
    display: block;
  }

  border-color: ${({theme:i})=>i.colors.accent2};
`;const Ti=_.div`
  display: ${({open:i})=>i?"flex":"none"};
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 20px;
  z-index: 50;
  min-width: 100%;
`;Ti.Background=_.div`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: ${({theme:i})=>i.colors.modal};
`;Ti.Content=_.div`
  position: relative;
  margin: auto;
  max-height: 100%;
  overflow-y: auto;
  width: ${({fill:i})=>i?"70%":"auto"};

  > ${Ae} {
    min-width: 200px;
    min-height: 200px;
    max-width: 1300px;
  }

  ${({fill:i})=>i&&`
    @media (max-width: 900px) {
      width: 100%;
    }
  `}
`;function qe({children:i,open:r=!1,setOpen:d,fill:u}){return O.useEffect(()=>{const o=f=>{f.key==="Escape"&&d(!1)};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[d]),Jm.createPortal(l.jsxs(Ti,{open:r,children:[l.jsx(Ti.Background,{onClick:()=>d(!1)}),l.jsx(Ti.Content,{fill:u,children:i})]}),document.body)}function hm({children:i,onConfirm:r,title:d,setOpen:u,...o}){const{t:f}=L();return l.jsx(qe,{setOpen:u,...o,children:l.jsxs(Ae,{children:[l.jsx("h2",{style:{fontWeight:"bolder"},children:d||f("Please confirm!")}),i,l.jsxs(Te,{children:[l.jsx(X,{$variant:"danger",onClick:r,children:f("Yes")}),l.jsx(X,{$variant:"secondary",onClick:()=>u(!1),children:f("No")})]})]})})}const xy="/static/incursions/waitlist/bell-ringing-04.mp3",gy="/static/incursions/waitlist/notification-icon.png",mm="EventNotifierSettings";function py(){const{t:i}=L(),r=O.useContext(Ni),[d,u]=O.useState(!1),[o,f]=O.useState(!1),m=O.useRef(null),[g,p]=O.useState(()=>{try{const E=localStorage.getItem(mm);return E?JSON.parse(E):{enableSound:!1}}catch{return{enableSound:!1}}});O.useEffect(()=>{localStorage.setItem(mm,JSON.stringify(g))},[g]),O.useEffect(()=>{m.current&&(o?m.current.play().catch(console.warn):m.current.pause())},[o]);const y=O.useCallback(E=>{const D=E.data;Notification.permission==="granted"?new Notification("TLA",{body:D,icon:gy,tag:D,renotify:!0,timestamp:Date.now()}):Notification.permission==="default"&&Notification.requestPermission().catch(console.warn),g.enableSound&&m.current&&f(D)},[g]),j=O.useCallback(E=>{const D=JSON.parse(E.data);Notification.permission==="granted"?new Notification(D.message,{silent:!0}):Notification.permission==="default"&&Notification.requestPermission().catch(console.warn)},[]);return O.useEffect(()=>{if(r)return r.addEventListener("wakeup",y),r.addEventListener("message",j),()=>{r.removeEventListener("wakeup",y),r.removeEventListener("message",j)}},[r,y,j]),l.jsxs(l.Fragment,{children:[l.jsx(qe,{open:d,setOpen:u,children:l.jsxs(Ae,{children:[l.jsx("p",{children:l.jsxs("label",{children:[l.jsx("input",{type:"checkbox",checked:g.enableSound,onChange:E=>p(D=>({...D,enableSound:!!E.target.checked}))})," ",i("Enable sound notifications")]})}),l.jsx(X,{onClick:()=>y({data:i("This is a test alert")}),children:i("Send test notification")})]})}),l.jsx(qe,{open:!!o,setOpen:()=>f(!1),children:l.jsxs(Ae,{style:{minHeight:"50px"},children:[l.jsx("p",{style:{marginBottom:"20px"},children:o}),l.jsx(X,{onClick:()=>f(!1),$variant:"success",children:i("OK")}),l.jsx("audio",{ref:m,loop:!0,children:l.jsx("source",{src:xy,type:"audio/mp3"})})]})}),l.jsx(tx,{onClick:()=>u(!0),title:g.enableSound?i("Sound alerts are currently enabled"):i("Sound alerts are currently disabled"),children:l.jsx(ie,{fixedWidth:!0,icon:g.enableSound?b0:S0})})]})}const xm={font:{family:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',monospaceFamily:'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},logo:{}},it={Light:re.merge({},xm,{base:"light",colors:{background:"#ffffff",text:"#4a4a4a",active:"#000000",lumFactor:1,outline:"hsla(213, 100%, 40%, 0.2)",modal:"hsla(0, 0%, 0%, 0.80)",shadow:"hsla(0, 0%, 0%, 0.2)",input:{color:"#2020200d",text:"#4a4a4a",accent:"2020200d",disabled:"#cccccc"},success:{color:"#48c774",text:"white",accent:"#3ec46d",disabled:"#92ddac"},warning:{color:"#ffdd57",text:"#4a4a4a",accent:"#ffda47",disabled:"#cccccc"},danger:{color:"#f14668",text:"white",accent:"#f03a5f",disabled:"#f8a5b6"},primary:{color:"#47afff",text:"white",accent:"#38a9ff",disabled:"#addcff"},secondary:{color:"#e6e6e6",text:"#4a4a4a",accent:"#dbdbdb",disabled:"#cccccc"},highlight:{text:"#fc9936",active:"#ffad5c"},accent1:"#fafafa",accent2:"#dbdbdb",accent3:"#999999",accent4:"#666666",tdfShields:{red:"#d60015",green:"#19b915",blue:"#0076c2",yellow:"#d2bd00",purple:"#820082",neutral:"#4b4b4b",cyan:"#1eabaa",text:"#ffffff"}}}),Dark:re.merge({},xm,{base:"dark",logo:{filter:"invert(1)"},colors:{background:"#1f1f1f",text:"#cccccc",active:"#eeeeee",lumFactor:.6,outline:"hsla(213, 100%, 40%, 0.2)",modal:"hsla(0, 0%, 0%, 0.80)",shadow:"hsla(0, 0%, 0%, 0.5)",input:{color:"#ffffff0a",text:"#cccccc",accent:"#ffffff0a",disabled:"#999999"},success:{color:"#1f6538",text:"white",accent:"#226d3c",disabled:"#133e22"},warning:{color:"#977c0b",text:"white",accent:"#b89300",disabled:"#574500"},danger:{color:"#661425",text:"white",accent:"#6f1628",disabled:"#330a12"},primary:{color:"#005ca3",text:"white",disabled:"#cccccc",accent:"#002e52"},secondary:{color:"#404040",text:"white",accent:"#454545",disabled:"#202020"},highlight:{text:"#fc9936",active:"#ffad5c"},accent1:"#2e2e2e",accent2:"#454545",accent3:"#757575",accent4:"#ababab",tdfShields:{red:"#9a121f",green:"#21861e",blue:"#105b8b",yellow:"#968912",purple:"#820082",neutral:"#777777",cyan:"#1c9493",text:"#cccccc"}}})};it.AMOLED=re.merge({},it.Dark,{colors:{text:"#f0f0f0",background:"#000000",modal:"hsla(55, 0%, 13%, 0.83)"}});it["Midnight Blue"]=re.merge({},it.Dark,{colors:{background:"#0a0a2c",accent1:"#1e1e40"}});it.Specialist=re.merge({},it.Light,{colors:{text:"#666666",background:"#fdf3f9",accent1:"#ffcbe9",accent2:"#ffbcdf",accent3:"#d55f9d",active:"#e11891",outline:"hsla(306, 100%, 75%, 0.2)",modal:"hsla(0, 0%, 0%, 0.50)",shadow:"hsla(315, 100%, 90%, 0.4)",input:{color:"#ffc3e536",text:"#4a4a4a",accent:"#ffc3e536",disabled:"#757575"},primary:{color:"#d36ab9",text:"white",accent:"#b64a9b",disabled:"#e8e8e8"},secondary:{color:"#f1abd6",text:"white",accent:"#e58ac2",disabled:"#e8e8e8"},warning:{color:"#ffeb9f",text:"#363636",accent:"#ffda47",disabled:"#e8e8e8"},danger:{color:"#ff889f",text:"white",accent:"#f35e7b",disabled:"#f35e7b"},success:{color:"#d673af",text:"white",accent:"#c15496",disabled:"#e8e8e8"},tdfShields:{red:"#ff5676",yellow:"#f2d56d",green:"#50df4d",blue:"#2e91d1"}},logo:{filter:"hue-rotate(-55deg) drop-shadow(1px 2px 0.5px #ff8fc9) contrast(90%)"}});it.Chocola=re.merge({},it.Dark,{colors:{background:"#30292c",active:"#FF357C",shadow:"hsla(0, 0%, 0%, 0.2)",outline:"hsla(339, 100%, 60%, 0.2)",secondary:{color:"#AE3F69",text:"white",accent:"#bc577d",disabled:"#e8e8e8"},input:{color:"#4f3d44",text:"#cccccc",accent:"#4f3d44",disabled:"#999999"},success:{color:"#1f6538",text:"white",accent:"#226d3c",disabled:"#133e22"},danger:{color:"#711818",text:"white",accent:"#6f1628",disabled:"#330a12"},accent1:"#4f3d44",accent2:"#5b4453",accent3:"#d15886"},logo:{filter:"invert(1) drop-shadow(1px 2px 0.5px #80173E)"},sticker:"https://i.imgur.com/ohDedR4.png"});it.Vanilla=re.merge({},it.Dark,{colors:{background:"#2d2f43",active:"#9bf8ff",shadow:"rgba(0, 0, 0, .2)",outline:"hsla(203, 69%, 25%, 0.2)",text:"#6a96e9",secondary:{color:"#4b598a",text:"#e6e6e6",accent:"#5e6faa",disabled:"#b0a17f"},success:{color:"#1f6538",text:"#e4eff9 ",accent:"#226d3c",disabled:"#cccccc"},input:{color:"#3a425e",text:"#b0a17f",accent:"#3a425e",disabled:"#999999"},warning:{color:"#b79718",text:"white",accent:"#c8a51c",disabled:"#cccccc"},danger:{color:"#752626",text:"#cdcdcd ",accent:"#842c2c",disabled:"#330a12"},accent1:"#333557",accent2:"#3d5d86",accent3:"#9bf8ff",accent4:"#b0a17f",highlight:{text:"#fc9936",active:"#ffad5c"}},logo:{filter:"invert(62%) sepia(28%) saturate(325%) hue-rotate(4deg) brightness(100%) contrast(84%) drop-shadow(1px 1px 0.3px #000000)"},sticker:"https://i.imgur.com/8JN6udB.png"});Object.keys(it).forEach(i=>{it[i].name=i});const yy=Object.keys(it);function vy({theme:i,setTheme:r,sticker:d,setSticker:u}){var y;const{t:o}=L(),[f,m]=O.useState(!1),g=()=>{u(!d)},p=()=>["dark","AMOLED"].includes(i)?w0:i==="Specialist"?_0:C0;return l.jsxs(l.Fragment,{children:[l.jsx(qe,{open:f,setOpen:m,children:l.jsxs(Ae,{children:[l.jsx(Be,{children:o("Theme select")}),yy.map(j=>l.jsx("div",{children:l.jsxs("label",{children:[l.jsx(fy,{value:j,checked:i===j,onChange:E=>r(E.target.value)})," ",o(j)]})},j)),((y=it[i])==null?void 0:y.sticker)&&l.jsx(X,{style:{marginTop:"0.5em"},onClick:g,children:o(d?"Disable Sticker":"Enable Sticker")})]})}),l.jsx(tx,{onClick:()=>m(!0),children:l.jsx(ie,{fixedWidth:!0,icon:p()})})]})}const Sn=_(vt)`
  padding: 0 1em;
  color: #bbb;
  text-decoration: none;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  &:hover {
    color: #cccccc;
    border-radius: 2px;
  }
  &.active {
    color: #eeeeee;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
  }

  @media (max-width: 480px) {
    padding: 1em;
    &.active {
      background-color: #454545;
      border-radius: 4px;
    }
  }
`,jy=_.div`
  display: ${({$open:i})=>i?"flex":"none"};
  flex-wrap: wrap;
  flex-direction: column;
`,by=_.div`
  padding: 0.3em;
  width: 100%;
  transition: all 0.3s;
  opacity: ${({$open:i})=>i?"1":"0"};
  height: ${({$open:i})=>i?"100%":"0"};
  background-color: #2e2e2e;
  border-radius: 0 0 5px 5px;
`,Sy=({isOpen:i,whoami:r})=>l.jsx(by,{$open:i,children:l.jsx(jy,{$open:i,children:l.jsx(nx,{whoami:r})})}),wy=({isOpen:i,setIsOpen:r})=>{const d=ln();return O.useEffect(()=>{r(!1)},[d,r]),l.jsx(oy,{onClick:()=>r(!i),children:l.jsx(ie,{icon:i?Zu:T0})})},nx=({whoami:i})=>{var d,u;const{t:r}=L();return l.jsxs(l.Fragment,{children:[l.jsx(Sn,{to:"/",end:!0,className:({isActive:o})=>o?"active":"",children:r("Home")}),i&&l.jsx(Sn,{to:"/waitlist",end:!0,className:({isActive:o})=>o?"active":"",children:r("Waitlist")}),l.jsx(Sn,{to:"/guide",end:!0,className:({isActive:o})=>o?"active":"",children:r("Guides")}),l.jsx(Sn,{to:"/fits?Tier=Mainline",end:!0,className:({isActive:o})=>o?"active":"",children:r("Fits")}),l.jsx(Sn,{to:"/skills?ship=Paladin",end:!0,className:({isActive:o})=>o?"active":"",children:r("Skills")}),l.jsx(Sn,{to:"/isk-h/calc",end:!0,className:({isActive:o})=>o?"active":"",children:r("ISK/h")}),((d=i==null?void 0:i.access)==null?void 0:d["incursions.waitlist_manage_waitlist"])&&l.jsxs(l.Fragment,{children:[l.jsx(Sn,{to:"/fc/fleet",end:!0,className:({isActive:o})=>o?"active":"",children:r("Fleet")}),l.jsx(Sn,{to:"/fc",end:!0,className:({isActive:o})=>o?"active":"",children:r("FC")})]}),((u=i==null?void 0:i.access)==null?void 0:u["incursions.waitlist_search"])&&l.jsx(Sn,{to:"/fc/search",end:!0,className:({isActive:o})=>o?"active":"",children:r("Search")})]})},_y="/static/incursions/waitlist/banner.png",Cy=_.div`
  background-image: url(${_y});
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding: 0.5em;
  border-radius: 0 0 20px 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: border-radius 0.1s ease-in-out;
  padding-top: 6.5em;

  @media (max-width: 700px) {
    background-size: auto 100%;
    border-radius: ${({$mobileopen:i})=>i?"unset":"0 0 20px 20px"};
  }
`,Ty=_(vt)`
  height: 2.5em;

  img {
    &:hover {
      opacity: 0.7;
    }
  }

  &.active {
    font-weight: bold;
  }
`,$t=_.div`
  margin-bottom: 2em;
`;$t.LogoLink=_(vt)`
  margin-right: 2em;
  flex-grow: 0;
  line-height: 0;

  @media (max-width: 480px) {
    margin-right: unset;
    margin-left: auto;
  }

  &.active {
    font-weight: bold;
  }
`;$t.Logo=_.img`
  width: 150px;
  filter: ${i=>i.theme.logo.filter};
`;$t.Menu=_.div`
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-grow: 1;
`;$t.Link=_(vt)`
  padding: 1em;
  color: ${i=>i.theme.colors.accent4};
  text-decoration: none;

  &.active {
    color: ${i=>i.theme.colors.active};
    font-weight: bold;
  }
`;$t.End=_.div`
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  > :not(:last-child) {
    @media (max-width: 480px) {
      margin-bottom: 0.4em;
    }
  }
`;$t.Main=_.div`
  display: flex;
  flex-wrap: wrap;

  @media (max-width: 480px) {
    display: none;
  }
`;$t.Name=_.div`
  margin-right: 2em;

  @media (max-width: 480px) {
    margin-right: 0;
    width: 100%;
  }
`;function Ay({onChangeCharacter:i,theme:r,setTheme:d,sticker:u,setSticker:o}){const[f,m]=O.useState(!1),[g,p]=O.useState(window.innerWidth),{t:y}=L(),j=O.useContext(Ne);return O.useEffect(()=>{const E=()=>p(window.innerWidth);return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]),l.jsxs($t,{children:[l.jsx(Cy,{$mobileopen:f,children:l.jsxs($t.Menu,{children:[l.jsx($t.Main,{children:l.jsx(nx,{whoami:j})}),l.jsxs($t.End,{children:[j&&l.jsx($t.Name,{children:l.jsxs(fm,{$fixed:!0,children:[l.jsx(Ty,{to:"/pilot",end:!0,className:({isActive:E})=>E?"active":"",children:l.jsx("img",{style:{maxHeight:"100%",borderRadius:"20px 0 0 20px"},src:`https://images.evetech.net/characters/${j.current.character_id}/portrait?size=128`,alt:"Character Portrait"})}),l.jsx(hy,{value:j.current.character_id,onChange:E=>i==null?void 0:i(parseInt(E.target.value)),style:{flexGrow:1,border:"unset"},children:j.characters.map(E=>l.jsx("option",{value:E.character_id,children:E.character_name},E.character_id))}),l.jsx(nn,{as:"a",href:"/incursions/char/add",children:"+"})]})}),l.jsxs(fm,{children:[g<481&&l.jsx(wy,{isOpen:f,setIsOpen:m}),l.jsx(py,{}),l.jsx(vy,{theme:r,setTheme:d,sticker:u,setSticker:o}),j?l.jsx(dy,{as:"button",onClick:()=>window.location.href="/incursions/waitlist/auth/logout",children:y("Logout")}):l.jsx(nn,{as:"a",href:"/incursions/char/add",$variant:"primary",children:y("Login")})]})]})]})}),l.jsx(Sy,{isOpen:f,whoami:j})]})}H0.use(L0).use(k0).use(q0).init({detection:{order:["htmlTag","querystring","cookie","localStorage","sessionStorage","navigator","path","subdomain"],htmlTag:document.documentElement},fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1},backend:{loadPath:"/static/incursions/waitlist/i18n/{{lng}}/{{ns}}.json"}});const Ey=_.a`
  color: ${({theme:i})=>i.colors.highlight.text};
  text-decoration: none;

  &:hover {
    cursor: pointer;
    color: ${({theme:i})=>i.colors.highlight.active};
    transition: color 0.15s ease-in-out;
  }

  & + svg {
    margin-left: 5px;
    font-size: small;
  }
`;function $e(i){O.useEffect(()=>{let r=document.title;return Iu(i),()=>document.title=r})}function Iu(i){document.title=`AA: ${i}`}function ax(i){const r=i.split(`
`)[0];return r.substring(r.indexOf(" "))}function Dy(i){return i.split(" ").map(r=>r[0].toUpperCase()+r.substr(1).toLowerCase()).join(" ")}const Oy=_.div`
  padding: 10px 20px 10px 20px;
  font-weight: 600;

  h1 {
    font-size: 30px;
  }
`,Pu=({children:i,title:r})=>($e(r),l.jsx(Oy,{children:i})),My=()=>{const{t:i}=L();return l.jsx(Pu,{title:i("Login Required"),children:l.jsxs("p",{children:[i("You must")," ",l.jsx(Ey,{href:"/incursions/char/add",children:i("Login")})," ",i("to view this page.")]})})},zy=()=>{const{t:i}=L();return l.jsxs(Pu,{title:i("Forbidden"),children:[l.jsx("h1",{children:i("403 Error")}),i("You are not allowed to view this page. Contact leadership to request access.")]})},By=()=>{const{t:i}=L();return l.jsxs(Pu,{title:i("Page Not Found"),children:[l.jsx("h1",{children:i("404 Error")}),i("I warped to the FC twice, and all I got was this '404: page not found' error.")]})};function eo(i){const d=O.useContext(Ea).name;return Object.entries(it).forEach(([u,o])=>{Jp(`TDF-${u}`,{text:{primary:o.colors.primary,secondary:o.colors.secondary},background:{default:o.colors.background}},o.base??"dark")}),l.jsx(Fp,{...i,theme:`TDF-${d}`})}const Ny=(i,r)=>i.localeCompare(r,{sensitivity:"base"}),gm=new Date(864e13),Ry=(i,r)=>{const d=i?i instanceof Date?i:new Date(i):gm,u=r?r instanceof Date?r:new Date(r):gm;return d.getTime()-u.getTime()},pm=["Character","Corporation","Alliance"],Uy=(i,r)=>pm.indexOf(i.category)-pm.indexOf(r.category),jl=_.div`
  margin: 15px 0px;
  padding: 5px 10px;
  flex-grow: 2;
`,lx=_.div`
  font-style: italic;
`,Hy={marginRight:"20px",marginBottom:"15px",display:"inline-block"},ym={"Use in game channel":{content:"Join the TLA Incursions channel to x-up for the fleet.",alert:!1},"Gankers in Focus":{content:"GANKERS ARE IN FOCUS! Stay docked and read the fleet MOTD for instructions.",alert:!0}},ix=({idPrefix:i="",selectedFilters:r=[],onChange:d})=>{const{t:u}=L(),o=f=>{const{dataset:m,checked:g}=f.target,p=m.value;if(!p)return;const y=g?[...r,p]:r.filter(j=>j!==p);d(y)};return l.jsxs(jl,{children:[l.jsxs(Ke,{children:[u("Display on:")," (",u("leave blank for site-wide"),")"]}),Pm.map((f,m)=>{const g=f.name.toLowerCase(),p=r.includes(g),y=`${i}-${g}`;return l.jsxs("label",{htmlFor:y,style:Hy,children:[l.jsx("input",{id:y,"data-value":g,type:"checkbox",checked:p,onChange:o})," ",u(f.name)]},m)})]})},Ly=({isOpen:i,setOpen:r,refreshFunction:d})=>{const{t:u}=L(),o=O.useContext(oe),[f,m]=O.useState(!1),[g,p]=O.useState(void 0),[y,j]=O.useState([]),[E,D]=O.useState(!1),B=()=>{m(!1),p(void 0),j([])},k=U=>{if(U.preventDefault(),E)return;D(!0);const G=y.length>0?JSON.stringify(y):null;me(o,se("/incursions/api/announcements",{method:"POST",json:{message:g,is_alert:f,pages:G}}).then(()=>{r(!1),d(),B()}).finally(()=>D(!1)))},q=U=>{const G=ym[U.target.value];m((G==null?void 0:G.alert)??!1),p((G==null?void 0:G.content)??"")};return l.jsx(qe,{open:i,setOpen:r,fill:void 0,children:l.jsxs(Ae,{children:[l.jsx(Be,{children:u("New Announcement")}),l.jsxs("form",{onSubmit:k,children:[l.jsxs(jl,{children:[l.jsxs(Ke,{htmlFor:"content",children:[u("Content"),":"]}),l.jsx(Vt,{id:"content",value:g??"",style:{maxWidth:"450px",width:"80vw",height:"250px",resize:"vertical"},onChange:U=>p(U.target.value),required:!0,minLength:0,maxLength:512}),l.jsx(lx,{children:u("Maximum 512 characters.")})]}),l.jsxs(jl,{children:[l.jsx("input",{id:"important",type:"checkbox",checked:f,onChange:()=>m(!f)}),l.jsxs("label",{htmlFor:"important",title:u("Banner has a red background."),children:[u("This is a")," ",l.jsx("b",{children:l.jsx("u",{children:u("REALLY")})})," ",u("important announcement!")]})]}),l.jsx(ix,{selectedFilters:y,onChange:j}),l.jsxs(jl,{children:[l.jsx(Ke,{children:u("or select a template")}),l.jsxs(Aa,{style:{width:"100%",appearance:"auto"},onChange:q,children:[l.jsx("option",{children:u("Select...")}),Object.entries(ym).map(([U],G)=>l.jsx("option",{value:U,children:u(U)},G))]})]}),l.jsxs(Ot,{style:{paddingLeft:"8px"},children:[l.jsx(X,{$variant:"danger",type:"submit",disabled:E,children:u("Confirm")}),l.jsx(X,{$variant:"secondary",type:"button",onClick:()=>r(!1),children:u("Cancel")})]})]})]})})},ky=({data:i,refreshFunction:r})=>{const{t:d}=L(),[u,o]=O.useState(!1),f=({data:m,refreshFunction:g,isOpen:p,setOpen:y})=>{const j=O.useContext(oe),[E,D]=O.useState(),[B,k]=O.useState(!1),[q,U]=O.useState([]),[G,ne]=O.useState(!1),Ee=F=>{try{return F?JSON.parse(F):[]}catch{return[]}};O.useEffect(()=>{D(m.message),k(m.is_alert),U(Ee(m.pages))},[m.id,m.message,m.is_alert,m.pages]);const le=F=>{if(F.preventDefault(),G)return;ne(!0);const de=q.length>0?JSON.stringify(q):null;me(j,se(`/incursions/api/announcements/${m.id}`,{method:"PUT",json:{message:E,is_alert:B,pages:de}}).then(()=>{y(!1),g()}).finally(()=>ne(!1)))};return l.jsx(qe,{open:p,setOpen:y,fill:void 0,children:l.jsxs(Ae,{children:[l.jsxs(Be,{children:[d("Update Announcement")," #",m.id]}),l.jsxs("form",{onSubmit:le,children:[l.jsxs(jl,{children:[l.jsxs(Ke,{htmlFor:`content-${m.id}`,children:[d("Content"),":"]}),l.jsx(Vt,{id:`content-${m.id}`,value:E??"",style:{maxWidth:"450px",width:"80vw",height:"250px",resize:"vertical"},onChange:F=>D(F.target.value),required:!0,minLength:0,maxLength:512}),l.jsx(lx,{children:d("Maximum 512 characters.")})]}),l.jsxs(jl,{children:[l.jsx("input",{id:`important-${m.id}`,type:"checkbox",checked:B,onChange:()=>k(!B)}),l.jsxs("label",{htmlFor:`important-${m.id}`,title:d("Banner has a red background."),children:[d("This is a")," ",l.jsx("b",{children:l.jsx("u",{children:d("REALLY")})})," ",d("important announcement!")]})]}),l.jsx(ix,{idPrefix:m.id.toString(),selectedFilters:m!=null&&m.pages?JSON.parse(m.pages):[],onChange:U}),l.jsxs(Ot,{style:{paddingLeft:"8px"},children:[l.jsx(X,{$variant:"danger",type:"submit",disabled:G,children:d("Confirm")}),l.jsx(X,{$variant:"secondary",type:"button",onClick:()=>y(!1),children:d("Cancel")})]})]})]})})};return l.jsxs(l.Fragment,{children:[l.jsx(X,{onClick:()=>o(!0),children:d("Update")}),l.jsx(f,{isOpen:u,setOpen:o,data:i,refreshFunction:r})]})},qy=_.div`
  padding-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;

  h1 {
    font-size: 32px;
  }
`;async function $y(i){await se(`/incursions/api/announcements/${i}`,{method:"DELETE",json:null})}const Gy=()=>{const[i,r]=_e("/incursions/api/announcements"),[d,u]=O.useState(!1),o=O.useContext(oe),{t:f}=L(),m=[{name:f("Content"),grow:5,selector:g=>g.message,wrap:!0},{name:f("Pages"),selector:g=>{if(!g.pages)return f("table.pages.all","All");try{return JSON.parse(g.pages).map(p=>f(`pages.${p}`,p)).join(", ")}catch{return g.pages}},wrap:!0},{name:f("Created By"),selector:g=>l.jsx(ot,{...g.created_by})},{name:"",maxWidth:"115px",selector:g=>l.jsx(ky,{data:g,refreshFunction:r??(()=>{})})},{name:"",maxWidth:"110px",selector:g=>l.jsx(X,{$variant:"danger",onClick:()=>me(o,$y(g.id).then(r)),children:f("Delete")})}];return $e(f("Announcements")),l.jsxs(l.Fragment,{children:[l.jsxs(qy,{children:[l.jsx("h1",{children:f("Announcements")}),l.jsxs(X,{variant:"primary",onClick:()=>u(!0),style:{marginTop:"15px"},children:[l.jsx(ie,{fixedWidth:!0,icon:km,style:{marginRight:"10px"}}),f("New")]})]}),l.jsx(eo,{columns:m,data:i??[],pagination:!1,progressPending:!i}),l.jsx(Ly,{isOpen:d,setOpen:u,refreshFunction:r??(()=>{})})]})},vm={width:"100%",resize:"vertical",minWidth:"250px"},Si=_.div`
  margin: 15px 0px;
  padding: 5px 10px;
  flex-grow: 2;
`,Yy=_.form`
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  & label::selection,
  div::selection,
  button::selection {
    background: none;
  }
`,jm=_.div`
  font-style: italic;
`,Xy=i=>{switch(i.entity_type){case"Character":return l.jsx(ot,{...i.entity_character,noLink:!0});case"Corporation":return l.jsx(Fu,{...i.entity_corporation,noLink:!0});case"Alliance":return l.jsx(Wu,{...i.entity_alliance,noLink:!0});default:return i.entity_name}},Qy=({isOpen:i,setOpen:r,refreshFunction:d})=>{const{t:u}=L(),o=H.useContext(oe),[f,m]=H.useState(!1),[g,p]=H.useState(!1),[y,j]=H.useState(void 0),[E,D]=H.useState("Character"),[B,k]=H.useState({id:null,name:""}),[q,U]=H.useState(""),[G,ne]=H.useState(!1),[Ee,le]=H.useState(void 0),[F,de]=H.useState(void 0),Fe=He=>{if(He.preventDefault(),!f){if(m(!0),!B.id){an(o,{variant:"danger",message:u("You need to provide a {{category}} name.",{category:E.toLowerCase()})}),m(!1);return}me(o,se("/incursions/api/bans",{method:"POST",json:{entity:{...B,category:E},reason:Ee,public_reason:F,revoked_at:g?null:y}}).then(()=>{r(!1),d(),jt()}).finally(()=>m(!1)))}},jt=()=>{p(!1),j(void 0),D("Character"),k({id:null,name:""}),U(""),ne(!1),le(void 0),de(void 0)};return O.useEffect(()=>{const He=()=>k({id:null,name:""});if(q.length<3)return He();ne(!0),me(o,se("/incursions/api/search",{method:"POST",json:{search:q,category:E.toLowerCase(),strict:!0}}).then(ia=>{ne(!1),ia.length>0?k({id:ia[0],name:q}):He()}))},[q,E,o]),l.jsx(qe,{open:i,setOpen:r,children:l.jsxs(Ae,{children:[l.jsx(Be,{children:u("Issue a Ban")}),l.jsxs(Yy,{onSubmit:Fe,children:[l.jsxs("div",{children:[l.jsxs(Si,{style:{paddingBottom:"40px"},children:[l.jsx(Ke,{htmlFor:"select-type",required:!0,children:u("Type:")}),l.jsxs(Aa,{id:"select-type",value:E,onChange:He=>{U(""),D(He.target.value)},style:{width:"100%",appearance:"auto"},children:[l.jsx("option",{disabled:!0,children:u("Account")}),l.jsx("option",{children:u("Character")}),l.jsx("option",{children:u("Corporation")}),l.jsx("option",{children:u("Alliance")})]})]}),l.jsxs(Si,{children:[l.jsx(Ke,{htmlFor:"entity-name",required:!0,children:u("{{category}} Name:",{category:E})}),l.jsx(Tn,{id:"entity-name",type:"text",value:q,required:!0,tabIndex:2,onChange:He=>U(He.target.value)}),l.jsx("div",{style:{paddingTop:"10px"},children:G?u("Searching..."):(B==null?void 0:B.id)&&l.jsx(Xy,{category:E,...B})})]})]}),l.jsxs("div",{children:[l.jsxs(Si,{children:[l.jsx(Ke,{htmlFor:"expires_at",required:!0,children:u("Expires:")}),l.jsx(Tn,{id:"expires_at",type:"date",value:y?new Date(y).toISOString().substring(0,10):"",onChange:He=>j(new Date(He.target.value).getTime()/1e3),min:new Date(Date.now()+3600*1e3*24).toISOString().substring(0,10),required:!0,disabled:g}),l.jsx("span",{style:{margin:"0 5px"},children:u("or")}),l.jsxs("label",{style:{marginRight:"20px",marginBottom:"15px",display:"inline-block"},children:[l.jsx("input",{type:"checkbox",checked:g,onChange:()=>p(!g)}),u("Permanent")]}),l.jsx(jm,{children:u("Bans expire at downtime")})]}),l.jsxs(Si,{children:[l.jsx(Ke,{htmlFor:"reason",required:!0,children:u("Reason:")}),l.jsx(Vt,{id:"reason",value:Ee??"",style:vm,required:!0,onChange:He=>le(He.target.value)})]}),l.jsxs(Si,{children:[l.jsx(Ke,{htmlFor:"public_reason",children:u("Public Reason:")}),l.jsx(Vt,{id:"public_reason",value:F??"",style:vm,onChange:He=>de(He.target.value)}),l.jsx(jm,{children:u("This reason will be shown to the pilot on the ban page.")})]}),l.jsxs(Ot,{style:{paddingLeft:"8px"},children:[l.jsx(X,{$variant:"secondary",onClick:()=>r(!1),children:u("Cancel")}),l.jsx(X,{$variant:"danger",type:"submit",disabled:f,children:u("Confirm")})]})]})]})]})})},bm={width:"100%",resize:"vertical",minWidth:"250px"},ta=_.div`
  margin: 15px 0px;
  padding: 5px 10px;
  flex-grow: 2;
`,Vy=_.div`
  font-style: italic;
`,sx=i=>{switch(i.entity_type){case"Character":return l.jsx(ot,{...i.entity_character});case"Corporation":return l.jsx(Fu,{...i.entity_corporation});case"Alliance":return l.jsx(Wu,{...i.entity_alliance});default:return i.entity_name}},Zy=({ban:i,isOpen:r,setOpen:d,refreshFunction:u})=>{const{t:o}=L(),[f,m]=H.useState(!1),g=H.useContext(oe),p=()=>{f||(m(!0),me(g,se(`/incursions/api/bans/${i.id}`,{method:"DELETE"}).then(()=>{m(!1),d(!1),u()}).catch(y=>{throw m(!1),y})))};return l.jsx(qe,{open:r,setOpen:d,children:l.jsxs(Ae,{children:[l.jsx(Be,{children:o("Revoke {{type}} Ban?",{type:i==null?void 0:i.entity_type})}),l.jsxs("div",{style:{maxWidth:"500px",display:"flex"},children:[l.jsxs(ta,{children:[l.jsx(Ke,{children:o("{{type}}:",{type:i==null?void 0:i.entity_type})}),l.jsx(sx,{...i})]}),l.jsxs(ta,{children:[l.jsx(Ke,{children:o("Issued By:")}),l.jsx(ot,{...i.issued_by})]})]}),l.jsxs(ta,{children:[l.jsx(Ke,{children:o("Reason:")}),l.jsx("p",{style:{maxWidth:"500px"},children:i.reason})]}),l.jsxs(pc,{size:"90px",children:[l.jsx(X,{$variant:"secondary",onClick:()=>d(!1),children:o("Cancel")}),l.jsx(X,{$variant:"danger",onClick:p,disabled:f,children:o("Confirm")})]})]})})},Ky=({ban:i,isOpen:r,setOpen:d,refreshFunction:u})=>{const{t:o}=L(),[f,m]=H.useState(void 0),[g,p]=H.useState(void 0),[y,j]=H.useState(void 0),[E,D]=H.useState(!1),[B,k]=H.useState(!1),q=H.useContext(oe),U=G=>{G.preventDefault(),!B&&(k(!0),me(q,se(`/incursions/api/bans/${i.id}`,{method:"PATCH",json:{reason:g,public_reason:y,revoked_at:E?null:f}}).then(()=>{k(!1),d(!1),u()}).catch(ne=>{throw k(!1),ne})))};return O.useEffect(()=>{m(i==null?void 0:i.revoked_at),i!=null&&i.revoked_at||D(!0),p(i==null?void 0:i.reason),j(i==null?void 0:i.public_reason)},[i==null?void 0:i.revoked_at,i==null?void 0:i.reason,i==null?void 0:i.public_reason]),l.jsx(qe,{open:r,setOpen:d,children:l.jsxs(Ae,{children:[l.jsx(Be,{children:o("Update {{type}} Ban:",{type:i==null?void 0:i.entity_type})}),l.jsxs("div",{style:{maxWidth:"500px",display:"flex"},children:[l.jsxs(ta,{children:[l.jsx(Ke,{children:o("{{type}}:",{type:i==null?void 0:i.entity_type})}),l.jsx(sx,{...i})]}),l.jsxs(ta,{children:[l.jsx(Ke,{children:o("Issued By:")}),l.jsx(ot,{...i.issued_by})]})]}),l.jsxs("form",{onSubmit:U,children:[l.jsxs(ta,{children:[l.jsx(Ke,{required:!0,children:o("Expires:")}),l.jsx(Tn,{type:"date",value:f?new Date(f).toISOString().substring(0,10):"",onChange:G=>m(new Date(G.target.value).getTime()/1e3),min:new Date(Date.now()+3600*1e3*24).toISOString().substring(0,10),disabled:E,required:!0}),l.jsx("span",{style:{margin:"0 5px"},children:o("or")}),l.jsxs("label",{style:{marginRight:"20px",marginBottom:"15px",display:"inline-block"},children:[l.jsx("input",{type:"checkbox",checked:E,onChange:()=>D(!E)}),o("Permanent")]})]}),l.jsxs(ta,{children:[l.jsx(Ke,{htmlFor:`reason-${i.id}`,required:!0,children:o("Reason:")}),l.jsx(Vt,{id:`reason-${i.id}`,value:g,onChange:G=>p(G.target.value),style:bm,required:!0})]}),l.jsxs(ta,{children:[l.jsx(Ke,{htmlFor:`public_reason-${i.id}`,children:o("Public Reason:")}),l.jsx(Vt,{id:`public_reason-${i.id}`,value:y??"",onChange:G=>j(G.target.value),style:bm}),l.jsx(Vy,{children:o("This reason will be shown to the pilot on the ban page.")})]}),l.jsxs(pc,{size:"90px",children:[l.jsx(X,{$variant:"secondary",type:"button",onClick:()=>d(!1),children:o("Cancel")}),l.jsx(X,{$variant:"danger",type:"submit",disabled:B,children:o("Confirm")})]})]})]})})},Sm={marginRight:"10px",marginBottom:"10px",appearance:"auto"},Jy=({filters:i,onChange:r,onClear:d})=>{const{t:u}=L(),o={type:[{text:u("any duration"),value:-1},{text:u("permanent")},{text:u("temporary")}],entity_type:[{text:u("any type"),value:-1},{text:u("account")},{text:u("alliance")},{text:u("character")},{text:u("corporation")}]},f=(g,p)=>{r({...i,[p]:g.target.value==="-1"?null:g.target.value})},m=g=>{r({...i,name:g.target.value})};return l.jsxs("div",{id:"filters",children:[l.jsx("span",{children:u("Filter results by...")}),l.jsx(Aa,{value:(i==null?void 0:i.entity_type)??"",onChange:g=>f(g,"entity_type"),style:Sm,children:o.entity_type.map((g,p)=>l.jsx("option",{value:g.value??g.text,disabled:g.text===u("account"),children:g.text},p))}),l.jsx(Aa,{value:(i==null?void 0:i.type)??"",onChange:g=>f(g,"type"),style:Sm,children:o.type.map((g,p)=>l.jsx("option",{value:g.value??g.text,children:g.text},p))}),l.jsx(Tn,{value:(i==null?void 0:i.name)??"",onChange:m,placeholder:u("name"),style:{marginRight:"10px",marginBottom:"10px"}}),l.jsx(X,{$variant:"primary",onClick:d,style:{marginBottom:"10px"},children:u("Clear")})]})},Fy=i=>{const{t:r}=L(),[d,u]=H.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsxs(X,{$variant:"primary",onClick:()=>u(!0),children:[l.jsx(ie,{fixedWidth:!0,icon:A0,style:{marginRight:"10px"}}),r("Issue Ban")]}),l.jsx(Qy,{isOpen:d,setOpen:u,...i})]})},Wy=i=>{const{t:r}=L(),[d,u]=H.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsx(X,{$variant:"danger",onClick:()=>u(!0),children:r("Revoke")}),l.jsx(Zy,{isOpen:d,setOpen:u,...i})]})},Iy=i=>{const{t:r}=L(),[d,u]=H.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsx(X,{onClick:()=>u(!0),children:r("Update")}),l.jsx(Ky,{isOpen:d,setOpen:u,...i})]})},Py=_.div`
  display: flex;
  flex-flow: column wrap;
  justify-content: space-around;
  padding-top: 10px;
  padding-bottom: 15px;

  p {
    padding-bottom: 5px;
    font-weight: bold;

    span {
      font-weight: normal;
      font-style: italic;
      font-size: small;
      color: ${i=>i.theme.colors.active};
    }
  }

  div {
    padding-bottom: 20px;

    &[mode='wide'] {
      display: flex;
      flex-flow: row wrap;
      div {
        min-width: 120px;
        width: 20vw;
      }
    }
  }
`,ev=({data:i,refreshFunction:r})=>{const{t:d}=L();return l.jsxs(Py,{children:[l.jsxs("div",{style:{paddingBottom:"0"},children:[l.jsxs("div",{children:[l.jsx("p",{children:d("Issued by:")}),l.jsx(ot,{...i.issued_by})]}),i.revoked_by&&l.jsxs("div",{children:[l.jsx("p",{children:d("Revoked by:")}),l.jsx(ot,{...i.revoked_by})]})]}),l.jsxs("div",{style:{paddingBottom:"0"},children:[l.jsxs("div",{children:[l.jsx("p",{children:d("Issued at:")}),Sl(new Date(i.issued_at))]}),i.revoked_at&&new Date(i.revoked_at)<new Date&&l.jsxs("div",{children:[l.jsx("p",{children:d("Revoked at:")}),Oi(new Date(i.revoked_at))]})]}),i.revoked_at&&new Date(i.revoked_at)>new Date&&l.jsxs("div",{children:[l.jsx("p",{children:d("Expires In:")}),l.jsx("span",{title:Oi(new Date(i.revoked_at)),children:gc(new Date(i.revoked_at))})]}),l.jsxs("div",{style:{wordWrap:"break-word",maxWidth:"70vw"},children:[l.jsxs("p",{children:[d("Reason:")," ",l.jsx("span",{children:d("(this reason can ONLY be seen by the FC team)")})]}),i.reason]}),i.public_reason&&l.jsxs("div",{style:{wordWrap:"break-word",maxWidth:"70vw"},children:[l.jsxs("p",{children:[d("Public Reason:")," ",l.jsx("span",{children:d("(this reason can be seen by the pilot)")})]}),i.public_reason]}),l.jsxs(Ot,{children:[l.jsx(Iy,{ban:i,refreshFunction:r}),l.jsx(Wy,{ban:i,refreshFunction:r})]})]})},tv=_.div`
  padding-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;

  h1 {
    font-size: 32px;
  }
`,nv=_.div`
  align-content: space-between;
  display: flex;
  width: 100%;
  flex-wrap: wrap;

  > button {
    @media (max-width: 800px) {
      width: 100%;
    }
  }

  #filters {
    flex-grow: 1;

    span:first-of-type {
      font-style: italic;
      margin-right: 10px;

      @media (max-width: 800px) {
        display: block;
        margin-bottom: 5px;
      }
    }

    @media (max-width: 800px) {
      input,
      select {
        width: calc(calc(100vw - 158px) / 2);
      }
    }

    @media (max-width: 500px) {
      input,
      select {
        width: 100%;
      }
      button {
        display: block;
        width: 100%;
      }
    }
  }
`,av=()=>{const[i,r]=_e("/incursions/api/bans"),[d,u]=H.useState({type:null,name:"",entity_type:""}),o=[{name:"Name",sortable:!0,sortFunction:(g,p)=>Ny(g.entity_name,p.entity_name),grow:3,selector:g=>{switch(g.entity_type){case"Character":return l.jsx(ot,{...g.entity_character});case"Corporation":return l.jsx(Fu,{...g.entity_corporation});case"Alliance":return l.jsx(Wu,{...g.entity_alliance});default:return g.entity_name}}},{name:"Entity Type",sortable:!0,sortFunction:(g,p)=>Uy(g.entity,p.entity),grow:1,selector:g=>g.entity_type},{name:"Expires",sortable:!0,hide:"sm",sortFunction:(g,p)=>Ry(g.revoked_at,p.revoked_at),grow:1,selector:g=>g.revoked_at?Oi(new Date(g.revoked_at)):"Never"},{name:"Reason",hide:"sm",grow:6,wrap:!0,selector:g=>g.reason}],f=(i??[]).filter(g=>(!d.entity_type||g.entity_type.toLowerCase()==d.entity_type)&&(!d.type||d.type==="permanent"&&!g.revoked_at||d.type==="temporary"&&g.revoked_at)&&g.entity_name.toLowerCase().includes(d==null?void 0:d.name.toLowerCase())),m=H.useMemo(()=>l.jsxs(nv,{children:[l.jsx(Jy,{filters:d,onChange:g=>{u({...g})},onClear:()=>u({type:null,name:"",entity_type:""})}),l.jsx(Fy,{refreshFunction:r})]}),[d,r]);return $e("Bans"),l.jsxs(l.Fragment,{children:[l.jsx(tv,{children:l.jsx("h1",{children:"System Bans"})}),l.jsx("p",{style:{marginBottom:"10px"},children:"Players who are banned or are in a banned corporation or alliance will be prevented from authenticating or joining the waitlist."}),l.jsx(eo,{textAlign:"center",verticalAlign:"middle",columns:o,data:f,defaultSortFieldId:1,expandableRows:!0,expandableRowsComponent:ev,expandableRowsComponentProps:{refreshFunction:r},subHeader:!0,subHeaderComponent:m,progressPending:!i})]})},lv="/static/incursions/waitlist/static/img/fleetcomp-BQGhOhZ8.png",Gt=_.span`
  background-color: ${i=>(i.theme.colors[i.$variant??""]||{}).color||"transparent"};
  color: ${i=>(i.theme.colors[i.$variant??""]||{}).text||i.theme.colors.text};
  filter: drop-shadow(0px 1px 1px ${i=>i.theme.colors.shadow});
  padding: 0 0.74em;
  border-radius: 4px;
  height: 2em;
  font-size: 0.75em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
`,iv=_.span`
  display: flex;
  align-items: center;
`,aa=_.div`
  margin: 0em 0.5em 0.5em 0;
  border: solid 2px ${i=>i.theme.colors.accent2};
  border-radius: 5px;
  background-color: ${i=>i.theme.colors.background};
  font-size: 1em;
  filter: drop-shadow(0px 3px 4px ${i=>i.theme.colors.shadow});
  width: 220px;
  height: 2.6em;
  &:hover:not(:disabled):not(.static) {
    border-color: ${i=>i.theme.colors.accent3};
    cursor: pointer;
  }
  @media (max-width: 480px) {
    width: 100%;
    height: 4em;
    margin: 0em 0.5em 1em 0;
  }
`;aa.Content=_.div`
  display: flex;
  height: 100%;
  align-items: center;
  color: ${i=>i.theme.colors.text};
  img {
    border-radius: 3px 0px 0px 3px;
    margin-right: 0.5em;
    align-self: flex-start;
  }
`;aa.Icon=_.div`
  display: flex;
  flex-wrap: wrap;
  margin-right: 0.2em;
  width: fit-content;
  padding: 0em 0.4em 0em;
  @media (max-width: 480px) {
    font-size: 1.3em;
  }
`;const Mi=_.div`
  width: 480px;
  @media (max-width: 580px) {
    width: 100%;
  }
`;Mi.Title=_.div`
  border-bottom: 3px solid;
  padding-bottom: 5px;
  margin-bottom: 1em;
  display: flex;
  border-color: ${i=>i.theme.colors.accent3};
`;const to=["HQ-FC","TRAINEE","DPS","LOGI","ALT","VINDI","AMULET","WARPSPEED","HYBRID","ELITE","ELITE-GOLD"],zi={TRAINEE:{type:"shield",color:"neutral",letter:"T",name:"Training FC"},TRAINER:{type:"shield",color:"purple",letter:"T",name:"FC Trainer"},LEADERSHIP:{type:"shield",color:"purple",letter:"DN",name:"leadership"},DPS:{type:"shield",color:"yellow",letter:"T",name:"DPS"},LOGI:{type:"shield",color:"red",letter:"L",name:"Logi Specialist"},ALT:{type:"shield",color:"green",letter:"A",name:"Alt approved"},VINDI:{type:"shield",color:"blue",letter:"!",name:"Vindication"},UNKNOWN:{type:"shield",color:"neutral",letter:"?",name:null}},Cn=({type:i="UNKNOWN",height:r="1.2em"})=>{const d=zi[i]??zi.UNKNOWN;return d.type==="shield"?l.jsx(Yu,{...d,h:r,title:d.name??""}):l.jsx("img",{src:d.href,title:d.name??"",alt:d.name??"",style:{height:r}})};function Yu({color:i,letter:r,title:d,h:u="1.2em"}){const o=O.useContext(Ea);return l.jsx(iv,{title:d,children:l.jsx("svg",{style:{height:u,filter:`drop-shadow(0px 1px 1px ${o.colors.shadow})`},viewBox:"0 0 26.5 27.8",xmlns:"http://www.w3.org/2000/svg",children:l.jsxs("g",{children:[l.jsx("path",{style:{fill:o.colors.tdfShields[i]},d:"m 13.229167,0 c 0,0 6.085417,0.79375 13.229167,3.96875 0,0 -0.79375,10.054167 -3.961217,15.955009 -2.275956,4.239997 -6.622116,7.857491 -9.26795,7.857491 M 13.229167,0 C 13.229167,0 7.14375,0.79375 0,3.96875 c 0,0 0.79375,10.054167 3.9612174,15.955009 2.2759552,4.239997 6.6221156,7.857491 9.2679496,7.857491"}),l.jsx("text",{style:{fontSize:"20px",fontWeight:"700",textAnchor:"middle",fill:o.colors.tdfShields.text,textRendering:"geometricPrecision"},x:"13.25",y:"20.5",children:r})]})})})}function cx({tags:i,height:r="40px"}){const u=re.sortBy(i,o=>to.indexOf(o)).map(o=>o in zi&&l.jsx("div",{style:{marginRight:"0.2em"},children:l.jsx(Cn,{type:o,height:r})},o));return l.jsx("div",{style:{display:"flex",marginBottom:"0.6em",flexWrap:"wrap"},children:u})}const rc=_.div`
  margin: 0 0 0.5em;
  display: flex;
  background-color: ${({theme:i,$variant:r})=>{var d;return(d=i.colors[r])==null?void 0:d.color}};
  color: ${({theme:i,$variant:r})=>{var d;return((d=i.colors[r])==null?void 0:d.text)??i.colors.text}};
  border-radius: 5px;
  width: ${({width:i})=>i??"fit-content"};
  filter: drop-shadow(0px 4px 5px ${({theme:i})=>i.colors.shadow});
  padding: 0.1em 0.5em 0.2em;
  vertical-align: middle;
  word-break: break-word;
`,lc=_.div`
  background-color: ${({theme:i})=>i.colors.accent1};
  border-radius: 20px;
  border: solid 1px ${({theme:i})=>i.colors.accent2};
  padding: 0.4em;
  font-size: min(calc(9px + 0.4vw), 14px);
`;function sv({variant:i="secondary",width:r="fit-content",children:d}){return l.jsxs(rc,{$variant:i,width:r,children:[l.jsx("div",{style:{marginRight:"0.5em"},children:l.jsx(ie,{icon:qm})}),d]})}const rx=["high","medium","low","rig","other","drone","cargo"],ic={};let sc=null;_.div`
  display: flex;
  @media (max-width: 480px) {
    flex-wrap: wrap;
  }
`;const Ca=_.div`
  display: flex;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 0.5em;

  @media (max-width: 480px) {
    font-size: 1em;
  }
`;Ca.Image=_.img`
  height: 2em;
  width: 2em;
  margin-right: 2em;

  @media (max-width: 480px) {
    margin-right: 0.5em;
  }
`;Ca.Name=_.span`
  @media (max-width: 480px) {
    overflow-wrap: anywhere;
  }
`;Ca.Copy=_.div`
  margin-left: auto;
  margin-right: 2em;
  cursor: pointer;
  font-size: 0.8em;
`;_.div`
  margin: 1em 0;
`;const cv=_.div`
  margin-bottom: 1em;
`,Me=_.div`
  display: flex;

  ${({group:i,theme:r})=>({have:"",missing:`
        background-color: ${r.colors.danger.color};
        color: ${r.colors.danger.text};
        text-decoration: line-through;
      `,extra:`
        background-color: ${r.colors.success.color};
        color: ${r.colors.success.text};
      `,downgraded_orig:`
        background-color: ${r.colors.warning.color};
        color: ${r.colors.warning.text};
        text-decoration: line-through;
      `,downgraded_new:`
        background-color: ${r.colors.warning.color};
        color: ${r.colors.warning.text};
      `,upgraded_orig:`
        background-color: ${r.colors.success.color};
        color: ${r.colors.success.text};
        text-decoration: line-through;
      `,upgraded_new:`
        background-color: ${r.colors.success.color};
        color: ${r.colors.success.text};
      `})[i||"have"]}

  > * {
    margin-right: 0.5em;
  }
`;Me.Image=_.img`
  height: 1.5em;
  width: 1.5em;
`;Me.Count=_.span`
  min-width: 1em;

  @media (max-width: 480px) {
    font-size: 0.7em;
  }
`;Me.ModuleName=_.span`
  @media (max-width: 480px) {
    font-size: 0.8em;
  }
`;async function rv(i){const r=i.split(",");sc||(sc=uc("/incursions/api/module/preload","get").then(o=>o).catch(()=>(sc=null,{})));const d=await sc;Object.entries(d).forEach(([o,f])=>{ic[o]=f});const u=r.filter(o=>!(o in ic)&&/^\d+_?$/.test(o)).map(o=>parseInt(o.replace(/_+$/,"")));if(u.length>0){const f=await uc("/incursions/api/module/info","post",{body:{ids:u}});Object.entries(f).forEach(([m,g])=>{ic[m]=g})}return Object.fromEntries(r.map(o=>[o,ic[o]??null]))}function uv(i){const[r,d]=O.useState({}),u=i.sort().join(",");return O.useEffect(()=>{let o=!1;return rv(u).then(f=>{o||d(f)}),()=>{o=!0}},[u]),r}function ov(i){const[r,...d]=i.split(":"),u=new Set,o={};return u.add(r),d.forEach(f=>{if(!f)return;const[m,g]=f.split(";");u.add(m),o[m]=(o[m]||0)+parseInt(g)}),[r,Array.from(u),o]}function dv(i){if(!i)return[];const r=new Set;return["missing","extra","cargo_missing"].forEach(d=>Object.keys(i[d]||{}).forEach(u=>r.add(u))),["downgraded","upgraded"].forEach(d=>Object.entries(i[d]||{}).forEach(([u,o])=>{r.add(u),Object.keys(o).forEach(f=>r.add(f))})),Array.from(r)}function wi(i,r){var d;return i.endsWith("_")?"cargo":((d=r[i])==null?void 0:d.slot)??"cargo"}function fv(i,r,d){const u=Object.fromEntries(rx.map(o=>[o,{have:{},match:{},missing:{},extra:{},downgraded:{},upgraded:{}}]));if(Object.entries(i).forEach(([o,f])=>{const m=wi(o,d);u[m].have[o]=f,u[m].match[o]=f}),r){for(const[o,f]of Object.entries((r==null?void 0:r.missing)||{}))u[wi(o,d)].missing[o]=f;for(const[o,f]of Object.entries((r==null?void 0:r.extra)||{})){const m=wi(o,d);m!=="drone"&&(u[m].match[o]=(u[m].match[o]||0)-f),u[m].extra[o]=f}for(const[o,f]of Object.entries((r==null?void 0:r.downgraded)||{})){const m=wi(o,d);for(const[g,p]of Object.entries(f))u[m].match[g]=(u[m].match[g]||0)-p,u[m].downgraded[o]||(u[m].downgraded[o]={}),u[m].downgraded[o][g]=p}for(const[o,f]of Object.entries((r==null?void 0:r.upgraded)||{})){const m=wi(o,d);for(const[g,p]of Object.entries(f))u[m].match[g]=(u[m].match[g]||0)-p,u[m].upgraded[o]||(u[m].upgraded[o]={}),u[m].upgraded[o][g]=p}}return u}const hv=({isDiff:i,groups:r,moduleInfo:d})=>{const u=i?["match","missing","extra"]:["have"];function o(f){return f.replace(/_+$/,"")}return l.jsxs(cv,{children:[u.map(f=>Object.entries(r[f]||{}).filter(([m,g])=>{if(f!=="match"||g!==0)return!0;const p=Object.values(r.downgraded).some(j=>m in j),y=Object.values(r.upgraded||{}).some(j=>m in j);return!(p||y)}).map(([m,g])=>{const p=o(m),y=d[p];return l.jsxs(Me,{group:f,children:[l.jsx(Me.Image,{src:`https://images.evetech.net/types/${p}/icon?size=64`,alt:(y==null?void 0:y.name)||m}),l.jsx(Me.Count,{children:g}),l.jsx(Me.ModuleName,{children:(y==null?void 0:y.name)||m})]},`${f}-${m}`)})),i&&Object.entries(r.downgraded).flatMap(([f,m])=>Object.entries(m).map(([g,p])=>{var y,j,E,D;return l.jsxs(H.Fragment,{children:[l.jsxs(Me,{group:"downgraded_orig",children:[l.jsx(Me.Image,{src:`https://images.evetech.net/types/${f.replace(/_+$/,"")}/icon?size=64`,alt:((y=d[f])==null?void 0:y.name)||f}),l.jsx(Me.Count,{children:p}),l.jsx(Me.ModuleName,{children:((j=d[f])==null?void 0:j.name)||f})]}),l.jsxs(Me,{group:"downgraded_new",children:[l.jsx(Me.Image,{src:`https://images.evetech.net/types/${g.replace(/_+$/,"")}/icon?size=64`,alt:((E=d[g])==null?void 0:E.name)||g}),l.jsx(Me.Count,{children:p}),l.jsx(Me.ModuleName,{children:((D=d[g])==null?void 0:D.name)||g})]})]},`${f}-${g}`)})),i&&Object.entries(r.upgraded||{}).flatMap(([f,m])=>Object.entries(m).map(([g,p])=>{var y,j,E,D;return l.jsxs(H.Fragment,{children:[l.jsxs(Me,{group:"downgraded_orig",children:[l.jsx(Me.Image,{src:`https://images.evetech.net/types/${f.replace(/_+$/,"")}/icon?size=64`,alt:((y=d[f])==null?void 0:y.name)||f}),l.jsx(Me.Count,{children:p}),l.jsx(Me.ModuleName,{children:((j=d[f])==null?void 0:j.name)||f})]}),l.jsxs(Me,{group:"downgraded_new",children:[l.jsx(Me.Image,{src:`https://images.evetech.net/types/${g.replace(/_+$/,"")}/icon?size=64`,alt:((E=d[g])==null?void 0:E.name)||g}),l.jsx(Me.Count,{children:p}),l.jsx(Me.ModuleName,{children:((D=d[g])==null?void 0:D.name)||g})]})]},`upgrade-${f}-${g}`)}))]})},no=({dna:i,analysis:r=null,name:d})=>{const{t:u}=L(),o=O.useContext(oe),[f,m,g]=O.useMemo(()=>ov(i),[i]),p=uv([...m,...dv(r)]),y=O.useMemo(()=>fv(g,r,p),[g,r,p]);if(!p[f])return l.jsx("em",{children:u("Loading fit info")});const j=()=>{const E=`[${p[f].name}, ${p[f].name}]

`+rx.map(D=>Object.entries(y[D].have).map(([B,k])=>{var q,U;return D==="cargo"||D==="drone"?`${((q=p[B])==null?void 0:q.name)??B} x${k}`:Array(k).fill(((U=p[B])==null?void 0:U.name)??B).join(`
`)}).join(`
`)).filter(Boolean).join(`

`);Fm(o,navigator.clipboard.writeText(E).then(()=>u("Copied to clipboard")))};return l.jsxs("div",{children:[l.jsxs(Ca,{children:[l.jsx(Ca.Image,{src:`https://images.evetech.net/types/${f}/icon?size=64`,alt:p[f].name}),l.jsx(Ca.Name,{children:d||(r==null?void 0:r.name)}),l.jsx(Ca.Copy,{onClick:j,title:u("Copy to clipboard"),children:l.jsx(ie,{icon:$m})})]}),r&&!r.name&&l.jsx("div",{children:l.jsx(Gt,{$variant:"danger",children:u("Fit could not be automatically checked!")})}),Object.entries(y).map(([E,D])=>l.jsx("div",{children:l.jsx(hv,{isDiff:!!r,groups:D,moduleInfo:p})},E))]})},ux=({implants:i,character_name:r,...d})=>{const u=`670:${i.map(o=>`${o};1`).join(":")}::`;return l.jsx(no,{dna:u,name:r,...d})},ao=({fit:i})=>{var r;return l.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[l.jsx(no,{dna:i.dna,analysis:i.fit_analysis||{}}),i.implants&&l.jsx(ux,{implants:i.implants,character_name:((r=i.character)==null?void 0:r.character_name)??"Implants"})]})},mv=["xs","sm","md","lg","xl","offset"],bl=_(({xs:i,sm:r,md:d,lg:u,xl:o,offset:f,children:m,...g})=>l.jsx(Wp,{xs:i,sm:r,md:d,lg:u,xl:o,offset:f,...g,children:m})).withConfig({shouldForwardProp:(i,r)=>!mv.includes(i)&&r(i)})``,Ai={Table:_.div`
    margin-bottom: 2em;
  `};Ai.Table.Name=_.h3`
  border-bottom: solid 2px ${({theme:i})=>i.colors.accent2};
  font-weight: bolder;
  padding: 0.75em;
`;Ai.Table.Row=_.div`
  display: flex;
  padding: 0.5em 0.75em;
  border-bottom: solid 1px ${({theme:i})=>i.colors.accent2};

  &:last-child {
    border-bottom: none;
  }
  &:nth-child(odd) {
    background-color: ${({theme:i})=>i.colors.accent1};
  }
  > :last-child {
    margin-left: auto;
  }
`;const xv=_.div`
  height: 36px;
`,ox=["Armor","Shields","Gunnery","Missiles","Neural Enhancement","Spaceship Command","Drones","Rigging"],gv=new Set(ox),pv=({current:i,skill:r})=>{if(i===5)return l.jsx(Gt,{$variant:"success",children:i});let d=null;for(const[u,o]of[["gold","success"],["elite","primary"],["min","secondary"]])if(u in r){if(i>=r[u])return l.jsxs(Gt,{$variant:o,children:[i,d]});d=` / ${r[u]}`}for(const[u,o]of[["min","danger"],["elite","warning"],["gold","secondary"]])if(u in r)return l.jsxs(Gt,{$variant:o,children:[i,d]});return null};function yv({title:i,current:r,requirements:d,ids:u,category:o,filterMin:f}){const m=o.flatMap(g=>{if(!(g in d))return[];const p=d[g],y=r[g]??0;return f&&(!p.min||p.min<=y)?[]:l.jsxs(Ai.Table.Row,{children:[u[g]," ",l.jsx(pv,{current:y,skill:p})]},g)});return m.length?l.jsx(bl,{xs:4,sm:4,md:2,children:l.jsxs(Ai.Table,{children:[l.jsx(Ai.Table.Name,{children:i}),m]})}):null}function vv({mySkills:i,shipName:r,filterMin:d}){const{t:u}=L(),o=re.invert(i.ids);if(!(r in i.requirements))return l.jsx("em",{children:u("No skill information found")});const f=[...ox];return re.forEach(re.keys(i.categories),m=>{gv.has(m)||f.push(m)}),l.jsx(hc,{children:f.map(m=>l.jsx(yv,{title:u(m),current:i.current,requirements:i.requirements[r],category:i.categories[m],ids:o,filterMin:d},m))})}function lo({characterId:i,ship:r,setShip:d=null,filterMin:u=!1}){const{t:o}=L(),[f]=_e(`/incursions/api/skills/${i}`);return l.jsxs(l.Fragment,{children:[d&&l.jsxs(Ot,{style:{marginBottom:"1em"},children:[l.jsx(Te,{children:["Vindicator","Kronos","Paladin"].map(m=>l.jsx(X,{$active:r===m,onClick:()=>d(m),children:o(m)},m))}),l.jsx(Te,{children:["Guardian","Nestor"].map(m=>l.jsx(X,{$active:r===m,onClick:()=>d(m),children:o(m)},m))}),l.jsx(Te,{children:["Eos","Damnation"].map(m=>l.jsx(X,{$active:r===m,onClick:()=>d(m),children:o(m)},m))})]}),l.jsxs("div",{style:{marginBottom:"1em"},children:[o("Legend"),":",l.jsx(Gt,{$variant:"danger",children:o("Does Not Meet Requirements")}),l.jsx(Gt,{$variant:"secondary",children:o("Minimum")}),l.jsx(Gt,{$variant:"primary",children:o("Suggested")}),l.jsx(Gt,{$variant:"success",children:o("#Swag")})]}),l.jsx(xv,{children:(r==="Nestor"||r==="Guardian"||r==="Oneiros")&&l.jsx(sv,{children:o("Basic tier skills are required for logistics.")})}),f?l.jsx(vv,{mySkills:f,shipName:r,filterMin:u}):l.jsx("p",{children:o("Loading skill information")})]})}const jv=({relativeTo:i,isAlt:r})=>{const[d,u]=O.useState(Date.now());O.useEffect(()=>{const m=setInterval(()=>{u(Date.now())},6e4);return()=>clearInterval(m)},[]);const o=new Date(i).getTime(),f=Math.round((d-o)/1e3/60);return r?l.jsx("span",{title:`${f} min`,children:l.jsx(Gt,{variant:"danger",children:"ALT"})}):l.jsxs(Gt,{variant:"secondary",children:[f," min"]})},dx=i=>se("/incursions/api/waitlist/approve",{json:{id:i}}),fx=(i,r)=>se("/incursions/api/waitlist/reject",{json:{id:i,review_comment:r}}),bv=i=>se("/incursions/api/waitlist/remove_fit",{json:{id:i}}),Sv=(i,r)=>se("/incursions/api/open_window",{json:{target_id:i,character_id:r}}),Xe=_.div`
  border: solid 2px ${i=>i.theme.colors[i.$variant].color};
  background-color: ${i=>i.theme.colors[i.$variant].color};
  color: ${i=>i.theme.colors[i.$variant].text};
  border-radius: 5px;
  font-size: 0.9em;
  filter: drop-shadow(0px 4px 5px ${i=>i.theme.colors.shadow});
  min-width: 245px;

  a {
    color: inherit;
    text-decoration: none;
  }
`;Xe.Head=_.div`
  display: flex;
  padding: 0.2em 0.2em 0.3em 0.5em;
  align-items: center;

  a {
    font-weight: 600;
  }
`;Xe.Head.Badges=_.div`
  margin-left: auto;
  display: flex;
  flex-shrink: 0;
  align-items: center;

  > * {
    margin-left: 0.25em;
  }

  > *:last-child {
    margin-left: 0.5em;
  }

  > span {
    display: flex;
    align-items: center;
  }

  img {
    height: 1.3em;
  }
`;Xe.Content=_.div`
  display: flex;
  background-color: ${i=>i.theme.colors.background};
  align-items: center;
  color: ${i=>i.theme.colors.text};

  img {
    margin-right: 0.5em;
    align-self: flex-start;
  }

  a {
    align-items: center;
    display: flex;
    cursor: pointer;
    width: 100%;
  }
`;Xe.FooterGroup=_.div`
  > *:last-child {
    border-radius: 0 0 4px 4px;
  }
`;Xe.Footer=_.div`
  display: flex;
  background-color: ${i=>i.theme.colors.accent1};
  color: ${i=>i.theme.colors.text};
  text-align: center;

  a:hover {
    background-color: ${i=>i.theme.colors.accent2};
    cursor: pointer;
  }

  > * {
    flex-grow: 1;
    flex-basis: 0;
  }
`;Xe.ReviewComment=_.div`
  padding: 0.5em;
  margin: 0.5em;
  width: 100%;
  text-align: center;
  background-color: ${i=>i.theme.colors.secondary.color};
  border-radius: 5px;
  color: ${i=>i.theme.colors.secondary.text};
  word-break: break-word;
`;Xe.ReviewComment.Header=_.div`
  border-bottom: 1px solid;
  margin-bottom: 1em;
  font-weight: bold;
`;function wv({fit:i,onAction:r}){const d=H.useContext(Ne),u=H.useContext(oe),[o,f]=H.useState(!1),m=i.character?`${i.character.character_name}'s `:"";return i.dna&&i.ship?l.jsxs(l.Fragment,{children:[o?l.jsx(qe,{open:!0,setOpen:f,children:l.jsxs(Ae,{children:[d.access["incursions.waitlist_manage_waitlist"]&&l.jsxs(Ot,{style:{marginBlock:"1em",marginTop:"0px"},children:[l.jsx(X,{$variant:"success",style:{minWidth:"95px"},onClick:()=>{f(!1),me(u,dx(i.id)).then(r)},children:"Approve"}),l.jsx(X,{$variant:"danger",style:{minWidth:"95px"},onClick:()=>{var g=prompt("Why is the fit being rejected? (Will be displayed to pilot)");g&&(f(!1),me(u,fx(i.id,g)).then(r))},children:"Reject"})]}),l.jsx(ao,{fit:i}),i.tags.includes("STARTER")?l.jsxs(l.Fragment,{children:[l.jsx(Be,{children:"Starter skills"}),l.jsx(lo,{characterId:i.character.character_id,ship:i.ship.name,filterMin:!0})]}):null]})}):null,l.jsxs("a",{onClick:()=>f(!0),children:[l.jsx("img",{style:{height:"44px"},src:`https://images.evetech.net/types/${i.ship.id}/icon?size=64`,alt:i.ship.name}),l.jsxs("span",{style:{flexShrink:1},children:[m,i.ship.name]})]})]}):i.ship?l.jsxs(l.Fragment,{children:[l.jsx("img",{style:{height:"44px"},src:`https://images.evetech.net/types/${i.ship.id}/icon?size=64`,alt:i.ship.name}),l.jsxs("span",{children:[m,i.ship.name]})]}):l.jsxs(l.Fragment,{children:[l.jsx("img",{style:{height:"44px"},src:"https://images.evetech.net/types/28606/icon?size=64",alt:""}),l.jsxs("span",{children:[m,"Ship"]})]})}function _v({characterId:i,ship:r}){const{t:d}=L(),[u,o]=O.useState(!1),[f,m]=O.useState(r);return l.jsxs(l.Fragment,{children:[l.jsx("a",{title:d("View Skills"),onClick:()=>o(!0),children:l.jsx(ie,{icon:O0})}),u&&l.jsx(qe,{open:!0,setOpen:o,children:l.jsx(Ae,{children:l.jsx(lo,{characterId:i,ship:f,setShip:m})})})]})}function Xu({number:i}){const r=O.useContext(Ea);return l.jsx("span",{style:{verticalAlign:"middle"},children:l.jsx("svg",{style:{height:"1em"},viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:l.jsxs("g",{children:[l.jsx("circle",{style:{verticalAlign:"middle",fill:r.colors.text},cy:"25",cx:"25",r:"24"}),l.jsx("text",{style:{fontSize:"2.6em",fontWeight:"600",textAnchor:"middle",fill:r.colors.accent1,textRendering:"geometricPrecision"},x:"25",y:"38",children:i})]})})})}function Cv({fitId:i,fcId:r,onAction:d}){var D,B,k,q;const u=O.useContext(Ea),o=O.useContext(oe),[f,m]=O.useState(),[g,p]=O.useReducer(U=>U+1,0),{t:y}=L(),j={success:(B=(D=u==null?void 0:u.colors)==null?void 0:D.success)==null?void 0:B.color,failed:(q=(k=u==null?void 0:u.colors)==null?void 0:k.danger)==null?void 0:q.color},E=async()=>{m("pending"),p(),me(o,se("/incursions/api/waitlist/invite",{json:{id:i,character_id:r}}).then(()=>{m("success"),d()}).catch(U=>{throw m("failed"),U}))};return l.jsx("a",{title:y("Invite to Fleet"),onClick:E,style:{cursor:f==="pending"?"not-allowed":void 0,backgroundColor:j[f??""]??void 0,transition:"background-color 300ms linear"},children:g<2?l.jsx(ie,{fixedWidth:!0,icon:f!=="pending"?Ym:M0,spin:f==="pending"}):l.jsx(Xu,{number:g})})}function wm({from:i,message:r}){return l.jsxs(l.Fragment,{children:[l.jsx(Xe.ReviewComment.Header,{children:i}),l.jsx("div",{children:r})]})}function Tv({characterId:i,authContext:r,id:d}){const{t:u}=L(),[o]=_e(r.access["incursions.waitlist_notes_view"]?`/incursions/api/notes?character_id=${i}`:null);if(!o||!o.notes)return l.jsx(vt,{to:`/pilot?character_id=${d}`,children:l.jsx(Xu,{number:0})});const f=Math.min(Object.keys(o.notes).length,9);let m=u("Pilot Information");return f>0&&(m+=`
${u("Last Note")}
${o.notes[f-1].note}`),l.jsx(vt,{title:m,to:`/pilot?character_id=${d}`,children:l.jsx(Xu,{number:f})})}function Ui({entry:i,fit:r,onAction:d}){var k,q;const{t:u}=L(),o=O.useContext(Ne),f=O.useContext(oe),m=r.is_alt,g=i.character?i.character.character_name:u("Hidden"),p=((k=i.character)==null?void 0:k.character_id)===o.current.character_id,y=re.sortBy(r.tags,U=>to.indexOf(U)),j=[],E=y.map(U=>U in zi?l.jsx(Cn,{type:U},U):(j.push(U),null)),D=r.approved?null:l.jsx("span",{title:u("Pending Approval"),children:l.jsx(ie,{icon:E0})}),B=r.approved?p?"success":"secondary":r.review_comment?"danger":p||o.access["incursions.waitlist_context_a"]?"warning":"secondary";return l.jsxs(Xe,{$variant:B,children:[l.jsxs(Xe.Head,{children:[l.jsx("span",{children:g}),l.jsxs(Xe.Head.Badges,{children:[E,D,l.jsx(jv,{relativeTo:i.joined_at,isAlt:m})]})]}),l.jsx(Xe.Content,{children:l.jsx(wv,{fit:r,onAction:d})}),l.jsx(Xe.Content,{children:l.jsx("div",{style:{flexWrap:"wrap"},children:j.map(U=>l.jsx(Gt,{children:U},U))})}),r.review_comment&&l.jsx(Xe.Content,{children:l.jsx(Xe.ReviewComment,{children:l.jsx(wm,{from:u("FC"),message:r.review_comment})})}),r.messagexup&&l.jsx(Xe.Content,{children:l.jsx(Xe.ReviewComment,{children:l.jsx(wm,{from:u("Pilot"),message:r.messagexup})})}),l.jsxs(Xe.FooterGroup,{children:[l.jsxs(Xe.Footer,{children:[i.can_remove&&l.jsx("a",{title:u("Remove from Waitlist"),onClick:()=>me(f,bv(r.id)).then(d),children:l.jsx(ie,{icon:D0})}),o.access["incursions.waitlist_esi_show_info"]&&l.jsx("a",{title:u("Show Info In-Game"),onClick:()=>me(f,Sv(r.character.character_id,o.current.character_id)),children:l.jsx(ie,{icon:Bi})}),o.access["incursions.waitlist_context_a_skills"]&&l.jsx(_v,{characterId:r.character.character_id,ship:((q=r.ship)==null?void 0:q.name)??""}),o.access["incursions.waitlist_context_a_pilot"]&&l.jsx(Tv,{characterId:r.character.character_id,authContext:o,id:r.character.character_id}),re.isFinite(r.hours_in_fleet)&&l.jsxs("span",{title:u("Hours in Fleet"),children:[r.hours_in_fleet,"h"]}),o.access["incursions.waitlist_manage_waitlist"]&&l.jsxs(l.Fragment,{children:[!r.approved&&l.jsx("a",{title:u("Reject Fit"),onClick:()=>{const U=prompt(u("Rejection Reason"));U&&me(f,fx(r.id,U)).then(d)},children:l.jsx(ie,{icon:Zu})}),r.approved?l.jsx(Cv,{fitId:r.id,fcId:o.current.character_id,onAction:d}):l.jsx("a",{title:u("Approve Fit"),onClick:()=>me(f,dx(r.id)).then(d),children:l.jsx(ie,{icon:Gm})})]})]}),!m&&re.isFinite(r.hours_in_fleet)&&r.hours_in_fleet<1&&l.jsx(Xe.Footer,{children:l.jsx("span",{children:u("NEW")})})]})]})}const oc=_.div`
  background-color: ${i=>i.theme.colors.accent1};
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
  border-radius: 10px;
  box-shadow: 2px 2px 3px ${i=>i.theme.colors.shadow};
  > h2 {
    font-size: 1.2em;
    font-weight: 600;
    padding: 0.2em;
  }
  > div {
    display: flex;
    opacity: 0.7;
    > span {
      flex: 1;
      display: inline-flex;
      align-items: center;
      padding: 0.2em;
      img {
        width: 1.5em;
        height: 1.5em;
        border-radius: 2px;
        margin-right: 0.2em;
      }
    }
  }
`,Av=_(oc)`
  border-radius: 5px;
  border: solid 1px ${i=>i.theme.colors.accent2};
  padding: 0 0.2em;
  > h2 {
    font-size: initial;
    font-weight: initial;
  }
`;function Ev({name:i,shipCountsArr:r}){return l.jsxs(l.Fragment,{children:[l.jsx("h2",{children:i}),l.jsx("div",{children:r.map(([d,u])=>l.jsxs("span",{children:[l.jsx("img",{src:`https://images.evetech.net/types/${u.id}/icon?size=64`,alt:u.name}),d]},u.id))})]})}function io({name:i,fleetComposition:r,altCol:d=!0}){if(!(r!=null&&r.members))return!d&&i==="Alts"?null:l.jsx(oc,{children:l.jsx("h2",{children:i})});const u=r.members.filter(p=>p.wl_category===i);if(!d&&i==="Alts"&&u.length===0)return null;const o={},f={};for(const p of u)o[p.ship.id]=p.ship,f[p.ship.id]=(f[p.ship.id]||0)+1;const m=Object.entries(f).map(([p,y])=>[y,o[parseInt(p)]]).sort((p,y)=>y[0]-p[0]),g=!d&&i==="Alts"?Av:oc;return l.jsx(g,{children:l.jsx(Ev,{name:i,shipCountsArr:m})})}const dc=_.div`
  display: flex;
  @media (max-width: 480px) {
    flex-wrap: wrap;
    width: 100%;
  }
`;dc.Category=_.div`
  flex-grow: 1;
  flex-basis: 0;
  padding: 0.5em;
  > div {
    margin-bottom: 1.5em;
  }
  @media (max-width: 480px) {
    width: 100%;
    flex-basis: unset;
  }
`;function Dv({waitlist:i,onAction:r,fleetComposition:d,altCol:u=!1}){const o=[],f={};return i.categories.forEach(m=>{m==="Alts"&&!u||(f[m]=o.length,o.push([m,[]]))}),i.waitlist.forEach(m=>{m.fits.forEach(g=>{const p=u&&g.is_alt?"Alts":g.category,y=f[p];y!==void 0&&o[y][1].push(l.jsx("div",{children:l.jsx(Ui,{entry:m,fit:g,onAction:r})},g.id))})}),l.jsx(dc,{children:o.map(([m,g])=>l.jsxs(dc.Category,{children:[l.jsx(io,{name:m,fleetComposition:d,altCol:u}),g]},m))})}const Ov=_.div`
  display: flex;
  flex-wrap: wrap;
  > div {
    padding: 0.5em;
  }
`;function Mv({waitlist:i,onAction:r}){return l.jsx(Ov,{children:i.waitlist.map(d=>d.fits.map(u=>l.jsx("div",{children:l.jsx(Ui,{entry:d,fit:u,onAction:r})},u.id)))})}const Qu=_.div``;Qu.Entry=_.div`
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1em;
  > div {
    padding: 0.5em;
  }
`;function zv({waitlist:i,onAction:r}){return l.jsx(Qu,{children:i.waitlist.map(d=>l.jsx(Qu.Entry,{children:d.fits.map(u=>l.jsx("div",{children:l.jsx(Ui,{entry:d,fit:u,onAction:r})},u.id))},d.id))})}const Bv=_.table`
  width: 100%;
  table-layout: fixed;
  text-align: left;
  > thead > tr > th {
    width: 1%;
  }
  th,
  td {
    padding: 0.5em;
  }
`;function Nv({waitlist:i,onAction:r,fleetComposition:d}){const u=[],o={};return i.categories.forEach(f=>{o[f]=u.length,u.push([f,[]])}),l.jsx(Bv,{children:l.jsxs("thead",{children:[l.jsx("tr",{children:u.map(([f])=>l.jsx("th",{children:l.jsx(io,{name:f,fleetComposition:d})},f))}),i.waitlist.map(f=>{const m=u.map(()=>[]);return f.fits.forEach(g=>{const p=g.is_alt?"Alts":g.category,y=o[p];y!==void 0&&m[y].push(l.jsx("div",{children:l.jsx(Ui,{entry:f,fit:g,onAction:r})},g.id))}),l.jsx("tr",{children:m.map((g,p)=>l.jsx("td",{children:g},p))},f.id)})]})})}const Vu=_.div`
  overflow-x: auto;
`;Vu.Category=_.div`
  padding: 0.5em 0.5em;
  display: flex;
  > div {
    margin: 0 0.75em;
  }
`;function Rv({waitlist:i,onAction:r,fleetComposition:d}){const u=[],o={};return i.categories.forEach(f=>{o[f]=u.length,u.push([f,[]])}),i.waitlist.forEach(f=>{f.fits.forEach(m=>{const g=m.is_alt?"Alts":m.category,p=o[g];p!==void 0&&u[p][1].push(l.jsx("div",{children:l.jsx(Ui,{entry:f,fit:m,onAction:r})},m.id))})}),l.jsx(Vu,{children:u.map(([f,m])=>l.jsxs("div",{children:[l.jsx(io,{name:f,fleetComposition:d}),l.jsx(Vu.Category,{children:m})]},f))})}const Uv=["Paladin","Kronos","Golem","Vargur"],hx=["Eos","Damnation","Claymore","Vulture","Sleipnir","Astarte"];function Hv({characterId:i}){const[r]=_e(`/incursions/api/pilot/info?character_id=${i}`);return l.jsx(cx,{tags:r&&r.tags,height:"14px"})}function Lv({members:i,warnActive:r}){const{t:d}=L(),u=i.map(o=>o.ship.name).filter(o=>!hx.includes(o));return l.jsx(l.Fragment,{children:i.map(o=>l.jsxs(ze,{noAlternating:!0,children:[l.jsx(_n,{}),l.jsx(P0,{warn:u.length>2&&r&&"yellow",children:o.role==="squad_commander"&&"★"}),l.jsx(_n,{children:l.jsxs(vt,{to:"/incursions/api/pilot/info?character_id="+o.character_id,children:[o.character_name," "]})}),l.jsx(_n,{children:d(o.ship.name)}),l.jsx(_n,{children:l.jsx("div",{style:{display:"flex",justifyContent:"space-between"},children:l.jsx(Hv,{characterId:o.character_id})})})]},o.character_id))})}function kv({members:i,squadname:r,warnActive:d}){const{t:u}=L();return i.sort((o,f)=>o.role==="squad_commander"?-1:f.role==="squad_commander"?1:0),l.jsxs(H.Fragment,{children:[l.jsxs(ze,{style:{paddingLeft:"20px"},noAlternating:!0,children:[l.jsx(_n,{}),l.jsxs(_n,{children:[u(r),i.length>0&&` (${i.length})`]}),l.jsx(_n,{}),l.jsx(_n,{}),l.jsx(_n,{})]},r),l.jsx(Lv,{members:i,category:r,warnActive:d})]},r)}function _m({characterId:i,memberlist:r,showFull:d=!0}){const{t:u}=L();var o={Marauder:0,Logiarmor:0,Logishield:0,Vindicator:0,Booster:0},f={};return r&&r.forEach(m=>{f[m.ship.name]||(f[m.ship.name]=0),f[m.ship.name]++,hx.includes(m.ship.name)&&o.Booster++,Uv.includes(m.ship.name)&&o.Marauder++,m.ship.name==="Vindicator"&&o.Vindicator++,m.ship.name==="Loki"&&o.Logishield++,m.ship.name==="Nestor"&&o.Logiarmor++}),l.jsxs("div",{style:d?{}:{display:"flex",justifyContent:"center"},children:[d&&l.jsx(Be,{children:u("Fleet Summary")}),l.jsxs(Te,{style:{marginBottom:"1em"},children:[l.jsxs(lc,{children:[u("Marauders"),": ",o.Marauder," "]}),l.jsxs(lc,{children:[u("Logi (N/L)"),": ",o.Logiarmor,"/",o.Logishield]}),l.jsxs(lc,{children:[u("Vindicators"),": ",o.Vindicator," "]}),l.jsxs(lc,{children:[u("Boosters"),": ",o.Booster," "]})]}),d&&l.jsxs(An,{children:[l.jsx(Da,{children:l.jsxs(ze,{children:[l.jsx(Je,{children:u("Ship")}),l.jsx(Je,{children:"#"})]})}),l.jsx(En,{children:re.sortBy(re.entries(f),[1]).map(([m,g])=>l.jsxs(ze,{children:[l.jsx(W,{children:u(m)}),l.jsx(W,{children:g})]},m))})]})]})}function qv(i){let r=0;i.boss&&(r+=1);for(let d of i.squads)r+=d.members.length;return r}function mx({fleetpage:i=!0,setStatTempActive:r=null}){const{t:d}=L(),u=H.useContext(Ne),o=H.useContext(oe),[f,m]=H.useState(null),[g,p]=H.useState(0),y=u.current.character_id;return H.useEffect(()=>{se(`/incursions/api/fleet/fleetcomp/${y}`,{}).then(m).catch(()=>{m(null),i||r(!1)})},[y,i,r,d]),H.useEffect(()=>{if(!i){const j=setInterval(()=>{if(g>=4)return an(o,{title:d("Error"),message:d("Consecutive Error Limit Exceeded, shutting down fleetstats"),variant:"danger"}),r(!1),null;se(`/incursions/api/fleet/fleetcomp/${y}`,{}).then(E=>{m(E),p(0)}).catch(E=>{p(g+1),E.toLowerCase().includes("fleet".toLowerCase())&&r(!1)})},15e3);return()=>clearInterval(j)}},[y,g,i,r,o,d]),f?(f&&f.wings.forEach(j=>{j.squads.sort((E,D)=>E.id-D.id)}),l.jsxs(dc.Category,{children:[!i&&l.jsx(oc,{children:l.jsx("h2",{children:d("Members")})}),l.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[l.jsxs("div",{children:[i&&l.jsx(Be,{children:d("Members")}),!i&&l.jsx(_m,{characterId:u.current.character_id,showFull:!1,memberlist:f.members}),l.jsx(An,{style:{fontSize:"12px"},fullWidth:i?void 0:!0,children:l.jsx(En,{children:f.wings.map((j,E)=>l.jsxs(H.Fragment,{children:[l.jsxs(ze,{background:!0,noAlternating:!0,children:[l.jsxs(W,{style:{fontWeight:"bold",width:"40px",overflow:"visible",whiteSpace:"nowrap"},children:[d(j.name.toUpperCase())," (",qv(j),")"]}),l.jsx(W,{style:{width:"80px"}}),l.jsx(W,{}),l.jsx(W,{style:{width:"70px"}}),l.jsx(W,{style:{width:"75px"}})]}),j.squads.map((D,B)=>l.jsx(kv,{squadname:D.name,members:D.members,warnActive:B>2&&E===0},D.name))]},j.name))})})]}),i&&l.jsx("div",{style:{marginLeft:"4em"},children:l.jsx(_m,{characterId:u.current.character_id,showFull:!0,memberlist:f.members})})]})]})):null}async function Cm(i,r){return await se("/incursions/api/waitlist/set_open",{json:{waitlist_id:i,open:r}})}async function $v(i){return await se("/incursions/api/waitlist/empty",{json:{waitlist_id:i}})}async function Gv(i){return await se("/incursions/api/fleet/close",{json:{character_id:i}})}function Yv(){const[i,r]=H.useState(!1),[d,u]=H.useState(!1),o=H.useContext(Ne),f=H.useContext(oe),[m]=_e("/incursions/api/fleet/status"),{t:g}=L();return H.useEffect(()=>{window.Notification&&Notification.permission==="default"&&Notification.requestPermission()},[]),$e(g("Fleet")),l.jsxs(l.Fragment,{children:[l.jsxs(Ot,{children:[l.jsx(Te,{children:l.jsx(nn,{to:"/fc/fleet/register",children:g("Configure fleet")})}),l.jsx(Te,{children:l.jsx(nn,{as:"a",href:"/incursions/char/add_fc",children:g("ESI re-auth as FC")})}),l.jsxs(Te,{children:[l.jsx(X,{$variant:"success",onClick:()=>vl(f,Cm(1,!0)),children:g("Open waitlist")}),l.jsx(X,{onClick:()=>vl(f,Cm(1,!1)),children:g("Close waitlist")}),l.jsx(X,{onClick:()=>u(!0),children:g("Empty waitlist")})]}),l.jsx(Te,{children:l.jsx(X,{$variant:"danger",onClick:()=>r(!0),children:g("Kick everyone from fleet")})})]}),l.jsxs(st,{children:[l.jsx("p",{children:g("Make sure you re-auth via ESI, then create an in-game fleet with your comp. Click the 'Configure fleet' button, and select the five squads that the tool will invite people into. Then open the waitlist, allowing people to X up.")}),l.jsx("p",{children:g("To hand over the fleet, transfer the star (Boss role). Then the new FC should go via 'Configure fleet' again, as if it was a new fleet.")}),((m==null?void 0:m.fleets)??[]).map(p=>l.jsxs("div",{children:["STATUS: Fleet ",p.id,", boss ",p.boss.character_name]},p.id))]}),o.access["incursions.waitlist_history_view"]&&l.jsx(Ot,{children:l.jsx(Te,{children:l.jsx(nn,{to:"/fc/fleet/history",children:g("Fleet comp history")})})}),l.jsx(mx,{}),l.jsx(hm,{open:i,setOpen:r,title:g("Kick everyone from fleet"),onConfirm:()=>vl(f,Gv(o.current.character_id)).finally(()=>r(!1)),children:g("Are you sure?")}),l.jsx(hm,{open:d,setOpen:u,title:g("Empty waitlist"),onConfirm:()=>vl(f,$v(1)).finally(()=>u(!1)),children:g("Are you sure?")})]})}async function Xv({fleetInfo:i,categoryMatches:r,authContext:d}){return await se("/incursions/api/fleet/register",{json:{character_id:d.current.character_id,assignments:r,fleet_id:i.fleet_id}})}function Qv({matches:i,categories:r,wings:d}){var u={...i},o=!1;for(const f of r)if(!(f.id in i))for(const m of d)for(const g of m.squads)(g.name.toLowerCase().includes(f.name.toLowerCase())||g.name.toLowerCase().includes(String(f.id).toLowerCase()))&&(u[f.id]=[m.id,g.id],o=!0);return o?u:null}function Vv(){const i=H.useContext(Ne),r=H.useContext(oe),[d,u]=H.useState(null),[o,f]=H.useState(null),[m,g]=H.useState({}),{t:p}=L(),y=i.current.character_id;return H.useEffect(()=>{u(null),me(r,se("/incursions/api/fleet/info?character_id="+y,{}).then(u)),f(null),me(r,se("/incursions/api/categories",{}).then(j=>f(j.categories)))},[y,r]),H.useEffect(()=>{if(!(!o||!d)){var j=Qv({matches:m,categories:o,wings:d.wings});j&&g(j)}},[d,o,m,g]),!d||!o?l.jsx("em",{children:p("Loading fleet information.., Please be patient, this can take up to a minute")}):l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{marginBottom:"1em"},children:p("Will be automatically filled if the squad names in your fleet match.")}),l.jsxs("div",{style:{display:"flex"},children:[l.jsx(Zv,{categories:o,wings:d.wings,value:m,onChange:g}),l.jsx("img",{style:{marginLeft:"3em"},src:lv,alt:p("For auto filling, make sure the squad names match!")})]}),l.jsx(X,{$variant:"primary",onClick:()=>vl(r,Xv({authContext:i,fleetInfo:d,categoryMatches:m})),children:p("Continue")})]})}function Zv({categories:i,wings:r,onChange:d,value:u}){const{t:o}=L();var f=[];r.forEach(p=>{p.squads.forEach(y=>{f.push({name:`${p.name} - ${y.name}`,id:`${p.id},${y.id}`})})});var m=[];for(const p of i){var g=f.map(y=>l.jsx("option",{value:y.id,children:y.name},y.id));m.push(l.jsxs("p",{children:[l.jsxs("label",{className:"label",children:[o(p.name),l.jsx("br",{})]}),l.jsxs(Aa,{value:u[p.id],onChange:y=>d({...u,[p.id]:y.target.value.split(",").map(j=>parseInt(j))}),children:[l.jsx("option",{}),g]})]},p.id))}return l.jsx(st,{children:m})}function Kv(){const[i,r]=H.useState(""),[d,u]=H.useState(""),{t:o}=L(),f=i&&d?new Date(`${i}T${d}Z`):null,m=f?f.getTime()/1e3:null,[g]=_e(m?`/incursions/api/history/fleet-comp?time=${m}`:null);return $e(o("Fleet History")),l.jsxs(st,{children:[l.jsx("h2",{children:o("Fleet history lookup")}),l.jsxs(Te,{children:[l.jsx(Tn,{type:"date",value:i,onChange:p=>r(p.target.value)}),l.jsx(Tn,{type:"time",value:d,onChange:p=>u(p.target.value)})]}),f?l.jsx("div",{children:l.jsx("em",{children:f.toString()})}):null,g&&l.jsx("h2",{children:o("Results")}),g&&re.map(g.fleets,(p,y)=>l.jsxs("div",{children:[l.jsxs("h3",{children:[o("Fleet")," ",y]}),l.jsxs(An,{fullWidth:!0,children:[l.jsx(Da,{children:l.jsxs(ze,{children:[l.jsx(Je,{children:o("Pilot")}),l.jsx(Je,{children:o("Ship")}),l.jsx(Je,{children:o("Time")})]})}),l.jsx(En,{children:p.map(j=>l.jsxs(ze,{children:[l.jsxs(W,{children:[j.character_name,j.is_boss&&l.jsxs(l.Fragment,{children:[" ",l.jsx(ie,{icon:z0})]})]}),l.jsx(W,{children:j.ship.name}),l.jsxs(W,{children:[Sl(new Date(j.logged_at))," (",na(j.time_in_fleet),")"]})]},j.character_id))})]})]},y)),g&&re.isEmpty(g.fleets)&&l.jsx("em",{children:o("Nothing found!")})]})}const so=_.div`
  margin: 0.4em 0;
  margin-right: 1em;
  width: 330px;

  @media (max-width: 480px) {
    width: 100%;
    margin-right: 0;
  }
`,Jv=_.div`
  padding-bottom: 0.5em;
  background-color: ${({theme:i})=>i.colors.accent1};
  filter: drop-shadow(0px 1px 1px ${({theme:i})=>i.colors.shadow});
  border-radius: 5px;
  height: 100%;
  border: solid 1px ${({theme:i,$variant:r})=>{var d;return((d=i.colors[r])==null?void 0:d.color)??"transparent"}};

  &:hover {
    border: solid 1px ${({theme:i})=>i.colors.accent2};
  }
`,Fv=_.h3`
  font-weight: 600;
  padding: 0.2em 0.5em;
`,Wv=_.div`
  padding: 0.5em 0.5em 0em;
`,xx=_.div`
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
`;function gx({variant:i,title:r,size:d,children:u,...o}){return l.jsxs(Jv,{$variant:i,size:d,...o,children:[l.jsx(Fv,{children:r}),l.jsx(Wv,{children:u})]})}const _i={},Iv=_(st)`
  max-width: 800px;
`;function Pv(i){return i.split("/").pop()}function Tm(){const i=H.useContext(oe),r=ln(),d=Pv(r.pathname),[u,o]=H.useState(null),f=`./${d}`,m=`${f}/guide.md`,{t:g}=L();H.useEffect(()=>{if(o(null),!(m in _i))return;const y=document.title;return me(i,fetch(_i[m]).then(j=>j.text()).then(j=>{o(j),Iu(ax(j))})),()=>document.title=y},[i,m]);const p=y=>{const j=`${f}/${y}`;return j in _i?_i[j].default:y};return _i[m]?u?l.jsx(Iv,{style:{maxWidth:"800px"},children:l.jsx(Ri,{transformImageUri:p,transformLinkUri:null,children:u})}):l.jsx(l.Fragment,{children:l.jsx("em",{children:g("Loading...")})}):l.jsx("div",{children:g("client : a{{loc}}a",{loc:d})})}function pl({icon:i,slug:r,name:d,children:u}){const{t:o}=L();return l.jsx(so,{children:l.jsx(vt,{style:{textDecoration:"inherit",color:"inherit"},exact:!0,to:`/fc/${r}`,children:l.jsx(gx,{title:l.jsxs(l.Fragment,{children:[l.jsx(ie,{fixedWidth:!0,icon:i})," ",o(d)]}),children:l.jsx("p",{children:o(u)})})})})}function ej(){const i=H.useContext(Ne),{t:r}=L();return $e(r("FC Menu")),l.jsxs(l.Fragment,{children:[l.jsx(la,{children:r("FC Dashboard")}),l.jsxs(xx,{children:[i&&i.access["incursions.waitlist_announcements_manage"]&&l.jsx(pl,{slug:"announcements",name:r("Announcements"),icon:km}),i&&(i.access["incursions.waitlist_bans_view"]||i.access["incursions.waitlist_bans_manage"])&&l.jsx(pl,{slug:"bans",name:r("Bans"),icon:xc}),(i.access["incursions.waitlist_badges_view"]||i.access["incursions.waitlist_badges_manage"])&&l.jsx(pl,{slug:"badges",name:r("Badges"),icon:B0}),i&&i.access["incursions.waitlist_documentation_view"]&&l.jsx(pl,{slug:"documentation",name:r("FC Documentation"),icon:N0}),i&&i.access["incursions.waitlist_documentation_view"]&&l.jsx(pl,{slug:"trainee",name:r("FC Training"),icon:Ku}),i&&i.access["incursions.waitlist_stats_view"]&&l.jsx(pl,{slug:"stats",name:r("Statistics"),icon:R0})]})]})}async function tj(i,r){await se("/incursions/api/notes/add",{json:{character_id:i,note:r}})}function nj(){const{t:i}=L();$e(i("Add Note"));const r=H.useContext(oe),[d,u]=H.useState(""),[o,f]=H.useState(!1),m=new URLSearchParams(ln().search);var g=parseInt(m.get("character_id"));const p=mc(),[y]=_e(g?`/incursions/api/pilot/info?character_id=${g}`:null);return g?l.jsxs(l.Fragment,{children:[l.jsxs(la,{children:[i("Add note"),y&&`: ${y.name}`]}),l.jsx(Vt,{style:{width:"100%"},onChange:j=>u(j.target.value),value:d,rows:"5",cols:"60"}),l.jsx("p",{children:l.jsx("em",{children:i("Remember that notes cannot be removed!")})}),l.jsxs(Te,{children:[l.jsx(X,{$variant:"success",disabled:d.length<20||d.length>5e3||o,onClick:()=>{f(!0),me(r,tj(g,d).then(()=>p(`/pilot?character_id=${g}`)).finally(()=>f(!1)))},children:i("Save")}),l.jsx(X,{onClick:()=>p(-1),children:i("Never mind")})]})]}):l.jsx("em",{children:i("Missing character ID")})}function co(){const i=ln(),r=mc(),d=i.search,u=O.useMemo(()=>{const f=new URLSearchParams(d),m={};for(const[g,p]of f.entries())m[g]=p;return m},[d]),o=O.useCallback((f,m,g=!1)=>{const p=new URLSearchParams(d);m===null?p.delete(f):p.set(f,m),r({search:`?${p.toString()}`},{replace:g})},[d,r]);return[u,o]}const Am=_.div`
  margin-left: 40px;
  margin-bottom: 5px;

  &:first-of-type {
    min-height: 50px;
  }

  &:nth-of-type(2) {
    min-height: 100px;
  }

  @media (min-width: 400px) {
    min-width: 310px;
  }

  @media (max-width: 451px) {
    margin-left: 3px;

    span {
      display: block;
    }

    br {
      display: none;
    }
  }
`;async function aj(i,r){return await se(`/incursions/api/badges/${i}/members`,{method:"POST",json:{character_id:parseInt(r)}})}async function lj(i,r){return await se(`/incursions/api/badges/${i}/members/${r}`,{method:"DELETE"})}const px=({character:i,refreshData:r})=>{const[d,u]=H.useState();return l.jsxs(l.Fragment,{children:[l.jsx(X,{onClick:()=>u(!0),children:"Badges"}),d&&l.jsx(ij,{character:i,isOpen:d,setOpen:u,refreshData:r})]})},ij=({character:i,isOpen:r,setOpen:d,refreshData:u})=>{const[o,f]=_e("/incursions/api/badges"),[m,g]=H.useState(void 0),[p,y]=H.useState(!1),j=H.useContext(oe);O.useEffect(()=>{o&&me(j,se(`/incursions/api/pilot/info?character_id=${i==null?void 0:i.character_id}`,{}).then(q=>{if(!q.tags)return;const U=q.tags,G=o;for(let ne=0;ne<(G==null?void 0:G.length);ne++)G[ne].default=U.includes(G[ne].name),G[ne].checked=U.includes(G[ne].name);g(G??[])}))},[o,j,i==null?void 0:i.character_id]);const E=()=>{y(!0);let q=[];m.forEach(U=>{U.default&&!U.checked&&q.push(new Promise(G=>{toaster(j,lj(U.id,i.character_id)).then(G)}))}),Promise.all(q).then(()=>{let U=[];m.forEach(G=>{!G.default&&G.checked&&U.push(new Promise(ne=>{toaster(j,aj(G.id,i.character_id)).then(ne)}))}),Promise.all(U).then(()=>{f(),y(!1),u&&u()})})},D=(q,U,G)=>{G.checked=q.target.checked;let ne=m;ne[U]=G,g([...ne])};if(m){var B=[];m.forEach(U=>{U.default&&B.push(U.name)});const q=re.sortBy(B,function(U){return to.indexOf(U)});var k=[];re.forEach(q,U=>{U in zi&&k.push(l.jsx("span",{style:{marginRight:"5px",display:"inline-block"},children:l.jsx(Cn,{type:U})},U))})}return l.jsx(qe,{open:r,setOpen:d,children:l.jsxs(Ae,{children:[l.jsx(Be,{style:{marginBottom:"5px"},children:l.jsx(ot,{...i,avatarSize:32,noLink:!0})}),l.jsx(Am,{children:m?l.jsxs(l.Fragment,{children:[l.jsx("p",{children:"Current Badges:"}),l.jsx("span",{children:k})]}):l.jsx("small",{style:{fontStyle:"italic",fontSize:"smaller"},children:"Loading..."})}),l.jsx(Am,{children:m==null?void 0:m.map((q,U)=>l.jsxs("span",{children:[U%3?null:l.jsx("br",{}),l.jsxs("label",{style:{marginRight:"20px",marginBottom:"15px",display:"inline-block"},htmlFor:U,children:[l.jsx("input",{id:U,type:"checkbox",checked:q.checked,onChange:G=>D(G,U,q)}),q.name]})]},U))}),l.jsxs(pc,{children:[l.jsx(X,{$variant:"success",onClick:E,disabled:p,children:"Confirm"}),l.jsx(X,{onClick:()=>d(!1),children:"Close"})]})]})})};function sj(){const i=H.useContext(Ne),{t:r}=L();var[{query:d},u]=co();const o=m=>{u("query",m||null,!0)},[f]=_e(d&&d.length>=3?"/incursions/api/search?"+new URLSearchParams({query:d}):null);return $e(r("Search")),l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{marginBottom:"1em"},children:l.jsxs("label",{children:[l.jsx("strong",{children:r("Search term:")}),l.jsx("br",{}),l.jsx(Tn,{value:d??"",onChange:m=>o(m.target.value)})]})}),f==null?null:f.results.length?l.jsxs(An,{fullWidth:!0,children:[l.jsx(Da,{children:l.jsxs(ze,{children:[l.jsx(Je,{children:r("Name")}),l.jsx(Je,{children:r("Character ID")}),l.jsx(Je,{style:{width:"50%"}})]})}),l.jsx(En,{children:f.results.map(m=>l.jsxs(ze,{children:[l.jsx(W,{children:m.character_name}),l.jsx(W,{children:m.character_id}),l.jsx(W,{children:l.jsxs(Ot,{marginb:"0em",children:[l.jsxs(Te,{children:[l.jsx(nn,{to:"/skills?character_id="+m.character_id,children:r("Skills")}),l.jsx(nn,{to:"/pilot?character_id="+m.character_id,children:r("Information")})]}),l.jsx(Te,{children:(i.access["incursions.waitlist_badges_view"]||i.access["incursions.waitlist_badges_manage"])&&l.jsx(px,{character:m})})]})})]},m.character_id))})]}):l.jsx("em",{children:r("No results")})]})}Hm.register(i0,s0,c0,r0,u0,o0,d0,f0,h0);Hm.register(...m0);const ea=_(bl).attrs({md:4})`
  max-height: 350px;
`;function Em(i,r){let d=1546047137;for(let m=0;m<r.length;m++)d=r.charCodeAt(m)+((d<<5)-d);d=d&2147483647;const u=d%360,o=(d>>10)%60+30,f=Math.round(i.colors.lumFactor*50);return`hsla(${u}, ${o}%, ${f}%, 1)`}function ro(i,r){return re.merge({},{maintainAspectRatio:!1,animation:!1,color:i.colors.text,backgroundColor:i.colors.accent1,borderColor:i.colors.accent2,plugins:{title:{color:i.colors.text}},scales:{x:{ticks:{color:i.colors.text},grid:{color:i.colors.accent2}},y:{ticks:{color:i.colors.text},grid:{color:i.colors.accent2}}}},r||{})}function uo(i,r,d){const u=re.cloneDeep(r);if(u.datasets)for(const o of u.datasets){for(const f of["backgroundColor","borderColor"])o[f]||(d?o[f]=u.labels.map(m=>Em(i,m)):o[f]=Em(i,o.label||""));o.fill===void 0&&(o.fill=!0)}return u}function oo({options:i,data:r,...d}){const u=H.useContext(Ea);return l.jsx(g0,{options:ro(u,i),data:uo(u,r,!1),...d})}function fo({options:i,data:r,...d}){const u=H.useContext(Ea);return l.jsx(x0,{options:ro(u,i),data:uo(u,r,!1),...d})}function yx({options:i,data:r,...d}){const u=H.useContext(Ea);return l.jsx(p0,{options:ro(u,i),data:uo(u,r,!0),...d})}function Hi(i){const r=Object.keys(i).sort(),d=r.map(u=>i[u]);return{labels:r,data:d}}function yc(i){const r=Hi(i),d={};for(let u=0;u<r.labels.length;u++)for(const[o,f]of Object.entries(r.data[u]))d[o]||(d[o]=new Array(r.labels.length).fill(null)),d[o][u]=f;return{labels:r.labels,series:d}}function cj({data:i}){const{t:r}=L(),d=Hi(i);return l.jsx(fo,{data:{labels:d.labels,datasets:[{label:r("Hours"),data:d.data.map(u=>Math.round(u/3600))}]},options:{plugins:{title:{display:!0,text:r("Total fleet time")}}}})}function rj({data:i}){const{t:r}=L(),d=Hi(i);return l.jsx(fo,{data:{labels:d.labels,datasets:[{label:r("Pilots"),data:d.data}]},options:{plugins:{title:{display:!0,text:r("Pilots seen in fleet")}}}})}function uj({data:i}){const{t:r}=L(),d=yc(i);return l.jsx(oo,{data:{labels:d.labels,datasets:Object.entries(d.series).map(([u,o])=>({label:r(u),data:o.map(f=>Math.round(f/3600))}))},options:{scales:{x:{stacked:!0},y:{stacked:!0}},plugins:{title:{display:!0,text:r("Time in fleet by ship")}}}})}function oj({data:i}){const{t:r}=L(),d=yc(i);return l.jsx(fo,{data:{labels:d.labels,datasets:Object.entries(d.series).map(([u,o])=>({label:r(u),data:o.map(f=>f||0)}))},options:{plugins:{title:{display:!0,text:r("X'es by ship")}}}})}function dj({data:i}){const{t:r}=L(),d=yc(i);return l.jsx(oo,{data:{labels:d.labels,datasets:Object.entries(d.series).map(([u,o])=>({label:r(u),data:o.map(f=>f||0)}))},options:{plugins:{title:{display:!0,text:r("Distribution of time in fleet")}}}})}function fj({data:i}){const{t:r}=L(),d=yc(i);return l.jsx(oo,{data:{labels:d.labels,datasets:Object.entries(d.series).map(([u,o])=>({label:r(u),data:o.map(f=>Math.round((f||0)*1e3)/10)}))},options:{plugins:{title:{display:!0,text:r("Time vs X'es in percentages (28d)")}}}})}function hj({data:i}){const{t:r}=L(),d=Hi(i);return l.jsx(yx,{data:{labels:d.labels.map(u=>r(u)),datasets:[{data:d.data}]},options:{plugins:{title:{display:!0,text:r("X'es by ship (28d)")}}}})}function mj({data:i}){const{t:r}=L(),d=Hi(i);return l.jsx(yx,{data:{labels:d.labels.map(u=>r(u)),datasets:[{data:d.data.map(u=>Math.round((u||0)/3600))}]},options:{plugins:{title:{display:!0,text:r("Time in fleet by ship (28d)")}}}})}function xj(){const{t:i}=L();$e(i("Statistics"));const[r]=_e("/incursions/api/stats");return r?l.jsxs(hc,{children:[l.jsx(ea,{children:l.jsx(cj,{data:r.fleet_seconds_by_month})}),l.jsx(ea,{children:l.jsx(rj,{data:r.pilots_by_month})}),l.jsx(ea,{children:l.jsx(uj,{data:r.fleet_seconds_by_ship_by_month})}),l.jsx(ea,{children:l.jsx(oj,{data:r.xes_by_ship_by_month})}),l.jsx(ea,{children:l.jsx(dj,{data:r.time_spent_in_fleet_by_month})}),l.jsx(ea,{children:l.jsx(fj,{data:r.x_vs_time_by_ship_28d})}),l.jsx(ea,{children:l.jsx(hj,{data:r.xes_by_ship_28d})}),l.jsx(ea,{children:l.jsx(mj,{data:r.fleet_seconds_by_ship_28d})})]}):l.jsx("em",{children:i("Loading statistics...")})}const gj=_.ul`
  position: absolute;
  width: 100%;
  background: ${({theme:i})=>{var r;return(r=i.colors)==null?void 0:r.accent1}};
  z-index: 500;
  border: 1px solid #999;
  border-top-width: 0;
  list-style: none;
  margin-top: 0;
  overflow-y: auto;
  padding-left: 0;

  > li {
    padding: 0.5rem;

    &.active,
    &:hover {
      color: ${({theme:i})=>{var r;return(r=i.active)==null?void 0:r.text}};
      cursor: pointer;
      font-weight: 700;
    }
  }
`,pj=_.div`
  color: ${({theme:i})=>{var r,d;return(d=(r=i.colors)==null?void 0:r.secondary)==null?void 0:d.text}};
  padding: 0.5rem;
  font-style: italic;
`,yj=({id:i="pilot-search",onChange:r,style:d,resetSearch:u,hideNotFound:o=!1})=>{const{t:f}=L(),[m,g]=O.useState(0),[p,y]=O.useState(!1),[j,E]=O.useState([]),[D,B]=O.useState(""),[k,q]=O.useState(""),U=F=>{q(F),B(F)},[G]=_e(k&&k.length>=3?`/incursions/api/search?${new URLSearchParams({query:k})}`:null);O.useEffect(()=>{let F=!1;const de=(G==null?void 0:G.results.filter(Fe=>(Fe.character_name.toLowerCase()===D.toLowerCase()&&(r(Fe),B(Fe.character_name),g(0),F=!0),Fe.character_name.toLowerCase().includes(D.toLowerCase()))))??[];E(de),y(!F)},[G,D,r]),O.useEffect(()=>{B(""),E([]),y(!1),g(0)},[u]);const ne=F=>{g(0),y(!1),B(F.currentTarget.innerText);const de=j.find(Fe=>Fe.character_name.toLowerCase()===F.currentTarget.innerText.toLowerCase());de&&r(de)},Ee=F=>{if(j.length)if(F.key==="Enter"){F.preventDefault();const de=j[m];de&&(r(de),B(de.character_name),g(0),y(!1))}else F.key==="ArrowUp"?(F.preventDefault(),g(de=>Math.max(0,de-1))):F.key==="ArrowDown"&&(F.preventDefault(),g(de=>Math.min(j.length-1,de+1)))},le=()=>!p||!D?null:j.length?l.jsx(gj,{children:j.map((F,de)=>l.jsx("li",{className:de===m?"active":void 0,onClick:ne,children:F.character_name},F.character_id))}):o?null:l.jsx(pj,{children:f("Could not find {{character_name}} in the database, sorry.",{character_name:D})});return l.jsxs("div",{style:{position:"relative"},children:[l.jsx(Tn,{id:i,type:"text",value:D,onChange:F=>U(F.target.value),onKeyDown:Ee,style:d,autoComplete:"off"}),le()]})},Dm=_.div`
  margin: 15px 0px;
`,vj=_.p`
  margin-bottom: 20px;
`,jj=({badgeOptions:i=[],isOpen:r,setOpen:d,refreshFunction:u})=>{const{t:o}=L(),f=O.useContext(oe),[m,g]=O.useState(0),[p,y]=O.useState(void 0),[j,E]=O.useState(void 0),[D,B]=O.useState(!1),k=async U=>{if(U.preventDefault(),!j||isNaN(j))return an(f,{title:o("Error:"),message:o("You need to search for a pilot..."),variant:"danger"});B(!0),await me(f,se(`/incursions/api/badges/${p}/members`,{method:"POST",json:{character_id:j}}).then(()=>{u(),q()}).finally(()=>B(!1)))},q=()=>{var U;y(((U=i==null?void 0:i[0])==null?void 0:U.id)??void 0),E(void 0),d(!1),g(G=>G+1)};return O.useEffect(()=>{!p&&i.length>0&&y(i[0].id)},[i,p]),l.jsx(qe,{open:r,setOpen:d,children:l.jsxs(Ae,{style:{overflowY:"hidden"},children:[l.jsx(Be,{children:o("Assign a Specialist Badge")}),l.jsxs("form",{onSubmit:k,children:[l.jsxs(Dm,{children:[l.jsx(Ke,{htmlFor:"pilot-search",required:!0,children:o("Search for a pilot:")}),l.jsx(yj,{required:!0,resetSearch:m,style:{width:"100%"},onChange:U=>E(U.character_id),hideNotFound:!0})]}),l.jsxs(Dm,{children:[l.jsx(Ke,{htmlFor:"badge-select",required:!0,children:o("Select badge type:")}),l.jsx(Aa,{id:"badge-select",value:p,onChange:U=>y(parseInt(U.target.value)),style:{width:"100%",appearance:"auto"},required:!0,children:i.map(U=>l.jsx("option",{value:U.id,children:U.name},U.id))})]}),l.jsx(X,{$variant:"success",disabled:D,children:o("Confirm")})]})]})})},bj=i=>{const{t:r}=L(),[d,u]=O.useState(!1);return l.jsxs(l.Fragment,{children:[l.jsx(X,{$variant:"danger",onClick:()=>u(!0),children:r("Revoke")}),l.jsx(Sj,{isOpen:d,setOpen:u,...i})]})},Sj=({badge:i,character:r,isOpen:d,setOpen:u,refreshFunction:o})=>{const{t:f}=L(),m=O.useContext(oe),[g,p]=O.useState(!1),y=async()=>{g||(p(!0),await me(m,se(`/incursions/api/badges/${i.id}/members/${r.character_id}`,{method:"DELETE"}).then(()=>{o(),u(!1)}).finally(()=>p(!1))))};return l.jsx(qe,{open:d,setOpen:u,children:l.jsxs(Ae,{children:[l.jsx(Be,{children:f("Revoke {{badge}}",{badge:i.name})}),l.jsxs(vj,{children:[f("From"),": ",l.jsx(ot,{...r,noLink:!0,avatar:!1})]}),l.jsxs(pc,{size:"90px",children:[l.jsx(X,{$variant:"secondary",onClick:()=>u(!1),children:f("Cancel")}),l.jsx(X,{$variant:"danger",onClick:y,disabled:g,children:f("Confirm")})]})]})})},wj=_.div`
  padding-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;

  h1 {
    font-size: 32px;
  }
`,_j=_.div`
  align-content: space-between;
  display: flex;
  width: 100%;
  flex-wrap: wrap;

  > button {
    @media (max-width: 800px) {
      width: 100%;
    }
  }

  #filters {
    flex-grow: 1;

    span:first-of-type {
      font-style: italic;
      margin-right: 10px;

      @media (max-width: 800px) {
        display: block;
        margin-bottom: 5px;
      }
    }

    @media (max-width: 800px) {
      input,
      select {
        width: calc(calc(100vw - 158px) / 2);
      }
    }

    @media (max-width: 500px) {
      input,
      select {
        width: 100%;
      }
      button {
        display: block;
        width: 100%;
      }
    }
  }
`,ku=(i,r)=>i.character_name.toLowerCase().localeCompare(r.character_name.toLowerCase()),Cj=({badgeOptions:i,filters:r,onChange:d,onClear:u})=>{const{t:o}=L();return l.jsxs("div",{id:"filters",children:[l.jsx("span",{children:o("Filter results by...")}),l.jsxs(Aa,{value:(r==null?void 0:r.type)??"",onChange:f=>d({...r,type:f.target.value==="-1"?null:parseInt(f.target.value)}),style:{marginRight:"10px",marginBottom:"10px",appearance:"auto"},children:[l.jsx("option",{value:-1,children:o("any type...")}),i.map(f=>l.jsxs("option",{value:f.id,children:[f.name," (",f.member_count.toLocaleString(),")"]},f.id))]}),l.jsx(Tn,{value:r.name??"",onChange:f=>d({...r,name:f.target.value}),placeholder:o("pilot name"),style:{marginRight:"10px",marginBottom:"10px"}}),l.jsx(X,{$variant:"primary",onClick:u,style:{marginBottom:"10px"},children:o("Clear")})]})},Tj=()=>{const[i,r]=_e("/incursions/api/badges"),[d,u]=O.useState(null),[o,f]=O.useState(!1),[m,g]=O.useState({type:null,name:""}),{t:p}=L();O.useEffect(()=>{i&&Promise.all(i.map(D=>se(`/incursions/api/badges/${D.id}/members`,{}).catch(()=>[]))).then(D=>{u(D.flat().filter(Boolean))})},[i]);const y=[{name:p("Pilot Name"),sortable:!0,sortFunction:(D,B)=>ku(D.character,B.character),grow:2,selector:D=>l.jsx(ot,{...D.character})},{name:p("Badge"),sortable:!0,sortFunction:(D,B)=>ku(D.badge,B.badge),grow:1,selector:D=>l.jsx(Cn,{type:D.badge.name,height:"1.8em"})},{name:p("Granted By"),sortable:!0,sortFunction:(D,B)=>ku(D.granted_by,B.granted_by),hide:"md",grow:2,selector:D=>l.jsx(ot,{...D.granted_by})},{name:p("Granted At"),hide:"sm",grow:2,selector:D=>Sl(new Date(D.granted_at))},{name:"",grow:1,minWidth:"95",selector:D=>l.jsx(bj,{badge:D.badge,character:D.character,refreshFunction:r})}],j=O.useMemo(()=>l.jsxs(_j,{children:[l.jsx(Cj,{badgeOptions:i??[],filters:m,onChange:D=>g(D),onClear:()=>g({type:null,name:""})}),l.jsxs(X,{$variant:"primary",onClick:()=>f(!0),style:{marginBottom:"10px"},children:[l.jsx(ie,{fixedWidth:!0,icon:Ym,style:{marginRight:"10px"}}),p("Assign Badge")]})]}),[m,i,p]),E=(d??[]).filter(D=>D&&D.character&&(!m.type||D.badge.id===m.type)&&D.character.character_name.toLowerCase().includes(m.name.toLowerCase()));return $e(p("Specialist Badges")),l.jsxs(l.Fragment,{children:[l.jsx(wj,{children:l.jsx("h1",{children:p("Specialist Badges")})}),l.jsxs("p",{style:{marginBottom:"10px"},children:[p("You can find the badge guide")," ",l.jsx(fc,{to:"/badges",children:p("here")}),"."]}),l.jsx(eo,{columns:y,data:E,defaultSortFieldId:1,subHeader:!0,subHeaderComponent:j,progressPending:!d}),l.jsx(jj,{badgeOptions:i??[],isOpen:o,setOpen:f,refreshFunction:r})]})},Om="/static/incursions/waitlist/static/img/w-S0yXGjWr.png";function vx(i,r){Fm(i,navigator.clipboard.writeText(r).then(()=>"Copied to clipboard"))}function Aj({type:i}){const r=H.useContext(oe),{t:d}=L();var u;switch(i){case"Amulet":u=["Mid-grade Amulet Alpha","Mid-grade Amulet Beta","Mid-grade Amulet Gamma","Mid-grade Amulet Delta","Mid-grade Amulet Epsilon"];break;case"Ascendancy":u=["High-grade Ascendancy Alpha","High-grade Ascendancy Beta","High-grade Ascendancy Gamma","High-grade Ascendancy Delta","High-grade Ascendancy Epsilon"];break;case"None":u=[];break;default:u=[]}return l.jsx(l.Fragment,{children:l.jsxs(An,{style:{width:"100%"},children:[l.jsx(Da,{children:l.jsxs(ze,{children:[l.jsx(I0,{}),l.jsx(Je,{children:d("DEFAULT")}),l.jsx(Je,{children:d("ALTERNATIVE (not required)")})]})}),l.jsxs(En,{children:[u.map((o,f)=>l.jsx(Ej,{toast:r,slot:f+1,implant:o},f)),l.jsxs(ze,{children:[l.jsx(W,{children:l.jsx("b",{children:d("Slot 6")})}),i==="Amulet"?l.jsx(W,{children:l.jsx(Ze,{toast:r,item:"Mid-Grade Amulet Omega"})}):i==="Ascendancy"?l.jsxs(W,{children:[l.jsx(Ze,{toast:r,item:"WS-518"})," ",d("+18% warp speed")]}):l.jsxs(W,{children:[l.jsx(Ze,{toast:r,item:"High-grade Ascendancy Omega"})," ",d("+21% warp speed")]})]}),l.jsx(Dj,{toastContext:r})]})]})})}function Ej({toast:i,slot:r,implant:d}){const{t:u}=L();return l.jsxs(ze,{children:[l.jsx(W,{children:l.jsxs("b",{children:[u("Slot")," ",r]})}),l.jsx(W,{children:l.jsx(Ze,{toast:i,item:d})}),l.jsx(W,{})]})}function Ze({toast:i,item:r}){return l.jsx(my,{onClick:()=>{vx(i,r)},children:r})}function Dj({toastContext:i}){const{t:r}=L();return l.jsxs(l.Fragment,{children:[l.jsxs(ze,{children:[l.jsx(W,{children:l.jsx("b",{children:r("Slot 7")})}),l.jsxs(W,{children:[l.jsx(Ze,{toast:i,item:"Ogdin's Eye Coordination Enhancer"})," ",r("+6% Tracking (Often Cheaper!)")]}),l.jsxs(W,{children:[l.jsx(Ze,{toast:i,item:"MR-705"})," ",r("+5% Tracking"),l.jsx("br",{}),l.jsx("b",{children:r("Logi:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"RA-705"})," ",r("-5% Cap use for remote reps")]})]}),l.jsxs(ze,{children:[l.jsx(W,{children:l.jsx("b",{children:r("Slot 8")})}),l.jsxs(W,{children:[l.jsx(Ze,{toast:i,item:"EM-805"})," ",r("+5% Capacitor")]}),l.jsxs(W,{children:[l.jsx(Ze,{toast:i,item:"Zor's Custom Navigation Hyper-Link"})," ",r("+5% MWD/AB Speed"),l.jsx("br",{}),l.jsx("b",{children:r("Vindicator:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"MR-805"})," ",r("+5% Web range")]})]}),l.jsxs(ze,{children:[l.jsx(W,{children:l.jsx("b",{children:r("Slot 9")})}),l.jsxs(W,{children:[l.jsx(Ze,{toast:i,item:"RF-905"})," ",r("+5% rate of fire for all turrets")]}),l.jsxs(W,{children:[l.jsx(Ze,{toast:i,item:"SS-905"})," ",r("+5% damage for all turrets"),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"Pashan's Turret Customization Mindlink"})," ",r("+7% rate of fire for all turrets")]})]}),l.jsxs(ze,{children:[l.jsx(W,{children:l.jsx("b",{children:r("Slot 10")})}),l.jsxs(W,{children:[l.jsx("b",{children:r("Kronos/Vindicator:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"LH-1005"})," ",r("+5% Hybrid weapon damage"),l.jsx("br",{}),l.jsx("b",{children:r("Paladin:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"LE-1005"})," ",r("+5% Energy weapon damage"),l.jsx("br",{}),l.jsx("b",{children:r("Vargur:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"LP-1005"})," ",r("+5% Projectile weapon damage")]}),l.jsxs(W,{children:[l.jsx("b",{children:r("Paladin:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"Pashan's Turret Handling Mindlink"})," ",r("+7% energy weapon damage"),l.jsx("br",{}),l.jsx("b",{children:r("Logi:")}),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"HG-1005"})," ",r("+5% Armor hitpoints"),l.jsx("br",{}),l.jsx(Ze,{toast:i,item:"HG-1008"})," ",r("+8% Armor hitpoints"),l.jsx("br",{})]})]})]})}const Ei=_.div`
  border: solid 2px ${i=>i.theme.colors.accent2};
  background-color: ${i=>i.theme.colors.background};
  border-radius: 5px;
  font-size: 0.9em;
  filter: drop-shadow(0px 3px 4px ${i=>i.theme.colors.shadow});
  width: 380px;
  &:hover:not(:disabled):not(.static) {
    border-color: ${i=>i.theme.colors.accent3};
    cursor: pointer;
  }
  @media (max-width: 480px) {
    width: 100%;
  }
`;Ei.Content=_.div`
  display: flex;
  align-items: center;
  color: ${i=>i.theme.colors.text};
  p {
    @media (max-width: 480px) {
      font-size: 3.1vw;
    }
  }
  img {
    border-radius: 3px 0px 0px 3px;
    margin-right: 0.5em;
    align-self: flex-start;
  }
`;Ei.Content.Badges=_.div`
  margin-left: auto;
  display: flex;
  align-items: center;
  > *:last-child {
    margin-right: 0.5em;
  }
  img {
    height: 1.3em;
  }
  @media (max-width: 480px) {
    font-size: 1em;
    > *:last-child {
      margin-right: 0.4em;
    }
  }
`;const Di=_.div`
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  @media (max-width: 480px) {
    justify-content: center;
  }
`;function cc({data:i,tier:r}){const{t:d}=L();var u=[],o=[],f=[],m={},g,p;return r==="Antigank"?p=i.fittingdata:p=re.sortBy(i.fittingdata,function(y){return y.name.indexOf("HYBRID")}),re.forEach(i.logi_rules,y=>{f.push(y)}),re.forEach(i.notes,y=>{m[y.name]=y.description??""}),p.forEach(y=>{if(y.dna&&y.name&&y.tier===r&&!(r!=="Antigank"&&y.name.toLowerCase().indexOf("antigank")!==-1)){const j=y.dna.split(":",1)[0];y.name in m?g=m[y.name]:g=null,f.includes(parseInt(j))?o.push(l.jsx(Mm,{fit:y,id:j,note:g},y.name)):u.push(l.jsx(Mm,{fit:y,id:j,note:g},y.name))}}),r==="Other"?l.jsx(l.Fragment,{children:l.jsxs("div",{children:[l.jsx("div",{style:{padding:"1em 0 0.4em"},children:l.jsx("p",{children:d("These ships are never used as main characters in fleet.")})}),l.jsx(Be,{children:d("Secondary Support Ships")}),l.jsx(Di,{children:u})]})}):l.jsx(l.Fragment,{children:l.jsxs("div",{children:[l.jsx("div",{style:{padding:"1em 0 0.4em"},children:r in m?l.jsx(Ri,{children:m[r]}):l.jsx("br",{})}),u.length!==0&&l.jsxs(l.Fragment,{children:[l.jsx(Be,{children:d("DPS")}),l.jsx(Di,{children:u})]}),l.jsx("br",{}),o.length!==0&&l.jsxs(l.Fragment,{children:[l.jsx(Be,{children:d("LOGISTICS")}),l.jsx(Di,{children:o})]})]})})}function Mm({fit:i,id:r,note:d}){const[u,o]=H.useState(!1),{t:f}=L();return l.jsxs(l.Fragment,{children:[u?l.jsx(qe,{open:!0,setOpen:o,children:l.jsxs(Ae,{style:{maxWidth:"500px"},children:[l.jsx("div",{style:{display:"flex"},children:l.jsx("div",{style:{margin:"0 0.5em"},children:l.jsx(no,{dna:i.dna,name:i.name})})}),d?l.jsx(rc,{$variant:"secondary",children:l.jsx(Ri,{children:d})}):null,i.implant_set==="Amulet"?l.jsx(rc,{$variant:"danger",children:l.jsx("p",{children:f("HYBRID FIT! This fit requires at least Amulet 1 - 5. See implants above")})}):i.implant_set==="Ascendancy "?l.jsx(rc,{$variant:"danger",children:l.jsx("p",{children:f("ASCENDANCY FIT! This fit requires at least Ascendancy 1 - 5 & WS-618. See implants above")})}):null]})}):null,l.jsx(Ae,{mpadding:"0.2em",style:{margin:"0.5em 0"},children:l.jsx(Ei,{$variant:"input",children:l.jsx("a",{onClick:()=>o(!0),children:l.jsxs(Ei.Content,{children:[l.jsx("img",{style:{height:"64px"},src:`https://images.evetech.net/types/${r}/icon`,alt:i.name}),l.jsx("p",{children:i.name}),l.jsxs(Ei.Content.Badges,{children:[d?l.jsx(ie,{icon:qm}):null,i.implant_set==="Amulet"?l.jsx(Yu,{color:"red",letter:"A",title:f("Amulet Implants")}):i.implant_set==="Ascendancy "?l.jsx(Yu,{color:"red",letter:"W",title:f("Ascendancy Implants")}):null]})]})})})})]})}function Oj(){return l.jsxs(l.Fragment,{children:[l.jsx(Di,{style:{justifyContent:"initial"},children:l.jsx(zm,{name:"Amulet",img:Om})}),l.jsx(Di,{style:{justifyContent:"initial"},children:l.jsx(zm,{name:"Ascendancy",img:Om})})]})}function zm({name:i,img:r}){const[d,u]=H.useState(!1),{t:o}=L();return l.jsxs(l.Fragment,{children:[d?l.jsx(qe,{open:!0,setOpen:u,children:l.jsxs(Ae,{style:{width:"100%"},children:[l.jsx(Mi,{style:{width:"100%"},children:l.jsxs(Mi.Title,{children:[l.jsx("div",{children:l.jsx("img",{src:r,alt:i,style:{width:"1.8em",marginRight:"0.5em"}})}),l.jsxs(Be,{children:[o(i),"  "]})]})}),l.jsx("br",{}),l.jsx("br",{}),l.jsx(Aj,{type:i})]})}):null,l.jsx(aa,{children:l.jsx("a",{onClick:()=>u(!0),children:l.jsxs(aa.Content,{children:[l.jsx(aa.Icon,{children:l.jsx("img",{src:r,alt:i,style:{width:"1.5em"}})}),o(i)]})})})]})}function Mj(){const i=new URLSearchParams(ln().search),r=mc(),d=i.get("Tier")||"Armor",u=o=>{i.set("Tier",o),r({search:`?${i.toString()}`})};return l.jsx(zj,{tier:d,setTier:u})}function zj({tier:i,setTier:r=null}){const{t:d}=L();$e(d(`${i} Fits`));const[u]=_e("/incursions/api/fittings");return u===null?l.jsx("em",{children:d("Loading fits...")}):l.jsxs(l.Fragment,{children:[l.jsx(la,{children:d("FITS")}),r!=null&&l.jsx(Ot,{style:{marginBottom:"0.5em"},children:l.jsxs(Te,{children:[l.jsx(X,{$active:i==="Basic",onClick:()=>r("Basic"),children:d("Basic")}),l.jsx(X,{$active:i==="Mainline",onClick:()=>r("Mainline"),children:d("Mainline")}),l.jsx(X,{$active:i==="Alt",onClick:()=>r("Alt"),children:d("Alt")}),l.jsx(X,{$active:i==="Other",onClick:()=>r("Other"),children:d("Other")})]})}),l.jsx(Oj,{}),i==="Basic"?l.jsx(cc,{data:u,tier:"Basic"}):i==="Mainline"?l.jsx(cc,{data:u,tier:"Mainline"}):i==="Alt"?l.jsx(cc,{data:u,tier:"Alt"}):i==="Other"?l.jsx(cc,{data:u,tier:"Other"}):null]})}const Bm=_.div`
  display: flex;
  flex-wrap: wrap;
  margin-top: 1em;
`,Bj={};function yl({name:i,icon:r,children:d}){const[u,o]=H.useState(!1);return l.jsxs(l.Fragment,{children:[u?l.jsx(qe,{open:!0,setOpen:o,children:l.jsx(Ae,{children:l.jsxs(Mi,{children:[l.jsxs(Mi.Title,{children:[l.jsx("div",{style:{display:"flex",alignItems:"center"},children:l.jsx(Cn,{type:r,height:"40px"})}),l.jsxs(Be,{children:[i,"  "]})]}),d]})})}):null,l.jsx(aa,{children:l.jsx("a",{onClick:()=>o(!0),children:l.jsxs(aa.Content,{children:[l.jsx(aa.Icon,{children:l.jsx(Cn,{type:r,height:"50px"})}),i]})})})]})}function Nj(){$e("Badges");const[i,r]=H.useState(!1);return l.jsxs(l.Fragment,{children:[i?l.jsx(qe,{open:!0,setOpen:r,children:l.jsx(Ae,{style:{width:"100%"},children:l.jsx("img",{src:Bj["./examplediscord.png"],alt:"examplediscord",style:{width:"100%"}})})}):null,l.jsxs(st,{style:{marginBottom:"2em"},children:[l.jsx("h1",{children:"Badges"}),l.jsxs("p",{children:["To get the T, A, or ! badge, use the",l.jsx("a",{href:"https://discord.com/channels/930000021083005028/930014112635826196/1287232984495423570",target:"_blank",rel:"noopener noreferrer",style:{marginLeft:"0.5em"},children:"ticket"})," ","system on Discord. Make sure your screenshot is saved on an image hosting website & shows the highlighted areas as per the",l.jsx(ex,{onClick:()=>r(!0),style:{marginLeft:"0.5em"},children:"example"})]}),l.jsx(Be,{children:"Pilot Badge"}),l.jsxs(Bm,{children:[l.jsx(yl,{name:"DPS",icon:"DPS",children:"The DPS Badge is given to a pilot that has met the main DPS Values on the fitting page. You must have implant slots 9 & 10 to get this badge."}),l.jsx(yl,{name:"Logi",icon:"LOGI",children:"The Logi Badge is given out by an FC that has vouched for your logi performance. It is not required to fly Logi."}),l.jsxs(yl,{name:"Alt Approved",icon:"ALT",children:["The Alt Approved Badge is given to a pilot that has met the DPS Values for alts on the fitting page. Your main or T badge must have a ",l.jsx("b",{children:"full"})," implant set before you can apply for this badge and recieve your guaranteed alt spot."]}),l.jsx(yl,{name:"VINDICATION!",icon:"VINDI",children:"The VINDICATION badge is given to a pilot that has met the DPS and Web values on the fitting page."})]}),l.jsx(Be,{children:"Commander Badges"}),l.jsxs(Bm,{children:[l.jsx(yl,{name:"Training FC",icon:"TRAINEE",children:"Trainee isk bringers"}),l.jsx(yl,{name:"Fleet Commander",icon:"HQ-FC",children:"Isk bringers"})]})]})]})}const Ci={},Rj=_(st)`
  max-width: 800px;
`,Uj=_.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 150px;
  background-color: ${i=>i.theme.colors.accent1};
  border-radius: 5px;
  cursor: pointer;
  &:hover {
    border: solid 1px ${i=>i.theme.colors.accent2};
  }
  @media (max-width: 600px) {
    width: 100%;
  }
  box-shadow: 3px 3px 1px ${i=>i.theme.colors.shadow};
`,Hj=_.img`
  height: 40px;
  margin-bottom: 5px;
`,Lj=_.span`
  font-size: 20px;
`,kj=_.span`
  font-size: 14px;
  color: gray;
`,qj=_.div`
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-top: 2px solid;
  padding-top: 5em;
  border-color: ${i=>i.theme.colors.accent2};
`,qu=({imageSrc:i,slug:r,title:d,subtitle:u,children:o})=>l.jsx(so,{children:l.jsx(vt,{style:{textDecoration:"inherit",color:"inherit"},to:`${r}`,children:l.jsxs(Uj,{children:[l.jsxs("div",{style:{display:"flex",height:"40px"},children:[o,i&&l.jsx(Hj,{src:i})]}),l.jsx(Lj,{children:d}),l.jsx(kj,{children:u})]})})});function $j(){const i=H.useContext(oe),{guideName:r}=Ip(),[d,u]=H.useState(null),o=`./${r}`,f=`${o}/guide.md`;H.useEffect(()=>{if(u(null),!(f in Ci))return;let g=document.title;return me(i,fetch(Ci[f]).then(p=>p.text()).then(p=>{u(p),Iu(ax(p))})),()=>document.title=g},[i,f]);const m=g=>{const p=`${o}/${g}`;return p in Ci?Ci[p]:g};return Ci[f]?d?l.jsx(Rj,{style:{maxWidth:"800px"},children:l.jsx(Ri,{transformImageUri:m,transformLinkUri:null,children:d})}):l.jsx(l.Fragment,{children:l.jsx("em",{children:"Loading..."})}):l.jsxs(l.Fragment,{children:[l.jsx("strong",{children:"Not found!"})," The guide could not be loaded."]})}function Gj(){return $e("Guides"),l.jsxs(l.Fragment,{children:[l.jsx(la,{style:{marginLeft:"40%",marginBottom:"1em"},children:"Guides"}),l.jsxs(qj,{style:{justifyContent:"space-around"},children:[l.jsx(qu,{imageSrc:"https://images.evetech.net/types/14268/icon",title:"DDD Guide",subtitle:"get GUD & Read",slug:"guide/ddd"}),l.jsxs(qu,{title:"Badges",subtitle:"Showing off u GUD",slug:"badges",children:[l.jsx(Cn,{type:"DPS",height:"30px"}),l.jsx(Cn,{type:"LOGI",height:"30px"}),l.jsx(Cn,{type:"ALT",height:"30px"})]}),l.jsx(qu,{imageSrc:"https://images.evetech.net/types/33400/icon",title:"Marauder Guide",subtitle:"Count to 2 and you gucci",slug:"guide/marauder"})]})]})}function Yj(){return l.jsx(Nj,{})}function Xj(){return l.jsxs(l.Fragment,{children:[l.jsx(Te,{style:{marginTop:"5em"},children:l.jsx(nn,{to:"/legal",children:"Legal"})}),l.jsx(st,{children:l.jsxs(tn,{children:[l.jsx(tn.Head,{style:{marginBottom:"1em"},children:"Welcome to a fork of TLA Waitlist, embedded into Alliance Auth. This App is still a work in progress and not every API call is implemented yet."}),l.jsx(tn.Paragraph,{})]})})]})}function jx(i){const{i18n:r}=L();return d=>d==null?null:d.toLocaleString(r.language,{maximumFractionDigits:2,...i})}function Qj(i){var r=[];for(const o of i)$u.encode(Math.round(o),r,r.length);var d=85;for(const o of r)d^=o;return r.push(d),r=Lm.Buffer.from(r),r.toString("base64").replaceAll("+","-").replaceAll("/","_").replaceAll("=","")}function Vj(i){var r=Lm.Buffer.from(i,"base64"),d=0,u=0;for(const f of r)u^=f;if(u!==85)throw new Error("Checksum mismatch!");for(var o=[];d<r.byteLength-1;)o.push($u.decode(r,d)),d+=$u.decode.bytes;return o}function Zj(i){return"1"+Qj([i.isk,i.lp,i.sites,i.startTime,i.endTime-i.startTime,i.minTime,i.maxTime,i.chars,i.firstSitePayout])}function Kj(i){if(i[0]==="1"){const r=Vj(i.slice(1));return{isk:r[0],lp:r[1],sites:r[2],startTime:r[3],endTime:r[3]+r[4],minTime:r[5],maxTime:r[6],chars:r[7],firstSitePayout:r[8]||315e5}}else throw new Error("Cannot decode input")}function Jj(){var i={};for(const[d,u,o,f]of[["Mothership (HS)",63e6,14e3,80],["Mothership (LS/NS)",9e7,2e4,120],["HQ (HS)",315e5,7e3,40],["HQ (LS/NS)",45e6,1e4,60],["AS (HS)",182e5,3500,20],["AS (LS/NS)",26e6,5e3,30],["VG (HS)",10395e3,1400,10],["VG (LS/NS)",15e6,2e3,15],["Scout",35e5,400,5]])for(var r=0;r<11;r++){const m=1-.0725*r-.0025*r**2,g=Math.round(u*m);if(i[g])throw new Error("Two sites give the same payout?!");i[g]={siteType:d,payout:g,lp:Math.round(o*m),normalPayout:u,normalLp:o,onGrid:r?f+r:null}}return i}const Fj=Jj();function Wj(i){var r=[];for(const j of i.split(`
`)){var[d,u,o,,f]=j.split(/\t|\s{2,}/);if(!u||!f||!o||!o.match(/ISK/)||!(u.match(/reward payout/i)&&f.match(/concord/i)))continue;o=o.replace(/[.,]\d{2} /," "),o=o.replace(/\D/g,""),o=Math.round(parseFloat(o));const[E,D]=d.split(/ /),B=`${E.replaceAll(".","-")}T${D}Z`,k=new Date(B);r.push({time:k,value:o})}r=re.sortBy(r,["time","value"]);var m=null,g=1,p=[],y={isk:0,lp:0,sites:0,chars:1,raw:[]};for(const j of r){m?m.getTime()!==j.time.getTime()?(p.push((j.time.getTime()-m.getTime())/1e3),m=j.time,g=1,y.sites+=1):(g+=1,y.chars<g&&(y.chars=g)):(m=j.time,y.sites+=1),y.isk+=j.value;const E=Fj[j.value];E&&(y.lp+=E.lp),y.raw.push({time:j.time.getTime()/1e3,isk:j.value,lp:E?E.lp:null,onGrid:E?E.onGrid:null})}return p.length<1?null:(y.minTime=Math.min(...p),y.maxTime=Math.max(...p),y.startTime=Math.min(...y.raw.map(j=>j.time)),y.endTime=Math.max(...y.raw.map(j=>j.time)),y.firstSitePayout=y.raw.find(j=>j.time===y.startTime).isk,y)}function Ij(){const[i,r]=H.useState(""),d=Wj(i),u=d?Zj(d):null,{t:o}=L(),f=jx();return $e(o("ISK/h")),l.jsxs(l.Fragment,{children:[l.jsx(la,{children:o("ISK/h calculator")}),l.jsxs("div",{style:{display:"flex"},children:[l.jsxs("div",{style:{flex:1,padding:"0.5em"},children:[l.jsx("em",{children:o("Go to your in-game wallet, select all incursion payouts, and hit Ctrl-C. Then, paste them here. Note: this calculator currently only works for English EVE clients.")}),l.jsx(Vt,{value:i,onChange:m=>r(m.target.value),rows:"10",style:{width:"100%"}}),l.jsx("div",{style:{padding:"1em"},children:l.jsx(bx,{dataStr:u})})]}),d&&l.jsx("div",{style:{flex:2,padding:"0.5em"},children:l.jsxs(An,{fullWidth:!0,children:[l.jsx(Da,{children:l.jsxs(ze,{children:[l.jsx(Je,{children:o("Time")}),l.jsx(Je,{children:o("ISK")}),l.jsx(Je,{children:o("LP")}),l.jsx(Je,{children:o("On grid")})]})}),l.jsx(En,{children:d.raw.map((m,g)=>l.jsxs(ze,{children:[l.jsx(W,{children:Sl(new Date(m.time*1e3))}),l.jsx(W,{children:f(m.isk)}),l.jsx(W,{children:f(m.lp)}),l.jsx(W,{children:f(m.onGrid)})]},g))})]})})]})]})}function Pj(){const r=new URLSearchParams(ln().search).get("d")||"",{t:d}=L();return l.jsxs(l.Fragment,{children:[l.jsx("div",{children:l.jsx(nn,{exact:!0,to:"/isk-h/calc",children:d("Calculator")})}),l.jsx("div",{style:{display:"flex",justifyContent:"center"},children:l.jsx(bx,{dataStr:r})})]})}const e1=_.div`
  ${i=>`
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    border: solid 1px ${i.theme.colors.accent4};

    > h1 {
      margin-top: 0.5em;
      font-size: 2em;
      font-weight: 600;
      filter: drop-shadow(0px 1px 1px ${i.theme.colors.shadow});
    }
    > h2 {
      font-size: 1.5em;
      font-weight: 600;
    }
    > * {
      padding-left: 1em;
      padding-right: 1em;
    }

    hr {
      border: 0;
      margin-top: 0.75em;
    }
    p:last-child {
      border-top: solid 1px ${i.theme.colors.accent3};
      font-size: 0.8em;
      margin-top: 1em;
      margin-bottom: 0.3em;
    padding-top: 0.3em;
    &:hover:not(:disabled):not(.static) {
    color: ${i.theme.colors.accent4};
    cursor: pointer;
    }
    }
    a {
      color: ${i.theme.colors.text};
      text-decoration: none;
    }
  `}
`;function bx({dataStr:i}){const r=H.useContext(oe),{t:d}=L(),u=jx();if(!i)return null;var o;try{o=Kj(i)}catch{return l.jsx("em",{children:d("Failed to load results")})}const f=o.endTime-o.startTime,m=Math.round((o.isk-o.firstSitePayout)/(f/3600)),g=`${window.location.origin}/incursions/waitlist/isk-h?d=${encodeURIComponent(i)}`;return l.jsx(l.Fragment,{children:l.jsxs(e1,{children:[l.jsxs("h1",{children:[u(m)," ",d("ISK/h")]}),l.jsxs("h2",{children:[u(o.isk)," ISK + ",u(o.lp)," LP"]}),l.jsx("hr",{}),l.jsxs("p",{children:[u(o.sites)," ",d("sites completed")]}),o.chars>1&&l.jsxs("p",{children:[u(o.chars)," ",d("characters included in payout calculation")]}),l.jsx("hr",{}),l.jsxs("p",{children:[na(o.minTime)," ~ ",na(o.maxTime)," (",d("average")," ",na(Math.round(f/(o.sites-1))),")"]}),l.jsxs("p",{children:[Sl(new Date(o.startTime*1e3))," ++ ",na(f)]}),l.jsx("p",{onClick:()=>{vx(r,g)},children:g})]})})}function t1(){return $e("Legal Notice"),l.jsxs(st,{children:[l.jsx("h2",{children:"CCP Copyright Notice"}),l.jsx("p",{children:"EVE Online and the EVE logo are the registered trademarks of CCP hf. All rights are reserved worldwide. All other trademarks are the property of their respective owners. EVE Online, the EVE logo, EVE and all associated logos and designs are the intellectual property of CCP hf. All artwork, screenshots, characters, vehicles, storylines, world facts or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of CCP hf. CCP hf. has granted permission to the Alliance Auth team to use EVE Online and all associated logos and designs for promotional and information purposes on its website but does not endorse, and is not in any way affiliated with, the Alliance Auth team. CCP is in no way responsible for the content on or functioning of this website, nor can it be liable for any damage arising from the use of this website."}),l.jsxs("p",{children:["The source code for AA Incursions and this Waitlist Module is available under the MIT license. The source code and full text for this license can be found"," ",l.jsx("a",{href:"https://gitlab.com/tactical-supremacy/aa-incursions",children:"here"}),"."]}),l.jsxs("p",{children:["This Waitlist Module is a fork of TLA Waitlist, which is also available under the MIT license. The source code and full text for this license can be found ",l.jsx("a",{href:"https://github.com/luna-duclos/tla-waitlist",children:"here"}),"."]})]})}const n1="/static/incursions/waitlist/media/dead.jpg",a1=_.div`
  margin: 0 0 0.5em;
  display: flex;
  background-color: ${i=>i.theme.colors.secondary.color};
  color: ${i=>i.theme.colors.secondary.text};
  width: 100%;
  filter: drop-shadow(0px 4px 5px ${i=>i.theme.colors.shadow});
  padding: 0.1em 0.5em 0.5em;
  align-items: center;
  word-break: break-word;

  svg {
    font-size: 32px;
    margin: 5px 5px 5px 5px;
    flex-shrink: 1;
  }

  div {
    flex-grow: 3;

    h3 {
      font-size: 1.5em;
      font-weight: 600;
    }
  }

  a {
    color: white;
  }
`;_.div`
  svg:first-of-type {
    font-size: 50px;
    display: block;
    margin: 10vh auto 20px auto;
  }
  h1 {
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 12px;
  }
  p {
    display: block;
    margin: 0 auto 15px auto;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    max-width: 500px;
    text-align: center;
  }
`;_.div`
  position: absolute;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 10;
  background: url(${n1}) no-repeat;
  background-size: cover;
  color: #d5d5d5;
  h1 {
    text-align: center;
    margin-top: 30vh;
    font-size: revert;
    font-weight: bolder;
  }
  p {
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
`;const l1=({bans:i})=>{var o,f;const{t:r}=L(),d=H.useContext(Ne),u=i==null?void 0:i.find(m=>m.revoked_at===null||m.revoked_at>new Date);return d.access["incursions.waitlist_bans_manage"]&&u?l.jsxs(a1,{children:[l.jsx(ie,{fixedWidth:!0,icon:xc}),l.jsxs("div",{children:[l.jsx("h3",{children:r("{{category}} Suspended",{category:(o=u==null?void 0:u.entity)==null?void 0:o.category})}),l.jsx("p",{children:r("Issued on: {{date}} by {{issuer}}.",{date:Oi(new Date(u.issued_at)),issuer:(f=u==null?void 0:u.issued_by)==null?void 0:f.name})}),(u==null?void 0:u.revoked_at)&&l.jsx("p",{children:r("Expires in {{time}}.",{time:gc(new Date(u.revoked_at))})}),l.jsx("p",{children:u==null?void 0:u.reason})]})]}):null};function i1({summary:i}){const{t:r}=L();if(!i)return null;if(!i.length)return l.jsx("em",{children:r("Never seen before")});const d=re.sum(i.map(({time_in_fleet:u})=>u));return l.jsx(An,{fullWidth:!0,edgeLine:!0,style:{marginBottom:"2em"},children:l.jsxs(En,{children:[l.jsxs(ze,{children:[l.jsx(Je,{children:r("Total")}),l.jsx(Je,{children:na(d)})]}),i.map(({ship:u,time_in_fleet:o})=>l.jsxs(ze,{children:[l.jsx(W,{children:r(u.name)}),l.jsx(W,{children:na(o)})]},u.id))]})})}const s1=_.div`
  span {
    display: none;
  }

  div {
    display: inline-block;
    height: 2rem;
    width: 2rem !important;
    vertical-align: text-bottom;
    margin: 15px auto;

    background-color: ${({theme:i})=>i.colors.accent3};
    border-radius: 50%;
    opacity: 0;
    animation: spinner-grow 0.75s linear infinite;
    -webkit-animation: spinner-grow 0.75s linear infinite;
  }

  @keyframes spinner-grow {
    0% {
      transform: scale(0);
    }
    50% {
      opacity: 1;
      transform: none;
    }
  }
`,c1=()=>{const{t:i}=L();return l.jsxs(s1,{children:[l.jsx("div",{}),l.jsx("span",{children:i("Loading...")})]})},Nm=_.div`
  margin-bottom: 25px;

  div {
    padding: 5px;
    width: 100%;
  }

  button {
    padding: 5px;
    font-size: 10px;
    margin-left: 5px;
  }
`;async function r1(i,r){return await se("/incursions/api/open_window",{json:{target_id:i,character_id:r}})}const u1=i=>{const r=O.useContext(Ne);return r!=null&&r.access["incursions.waitlist_alts_view"]?l.jsx(o1,{characterId:i.character}):null},o1=({characterId:i=0})=>{const r=O.useContext(Ne),{t:d}=L(),u=i!==0?`/incursions/api/pilot/alts?character_id=${i}`:null,[o]=_e(u);return i===0?l.jsxs(Nm,{children:[l.jsx(Be,{children:d("Known Alt Characters")}),l.jsx("em",{style:{fontSize:"smaller"},children:d("No character selected.")})]}):l.jsxs(Nm,{children:[l.jsxs(Be,{children:[d("Known Alt Characters"),l.jsx(ie,{fixedWidth:!0,icon:U0,style:{marginLeft:"5px"},title:d("Only characters that the pilot has linked are shown below. Characters are unlinked when the user clicks logout.")})]}),o?o.length>0?o.map((f,m)=>l.jsxs("div",{children:[l.jsx(ot,{...f}),l.jsx(X,{title:d("Open Show Info Window"),onClick:()=>me(oe,r1(f.character_id,r.current.character_id)),children:l.jsx(ie,{fixedWidth:!0,icon:Bi})})]},m)):l.jsx("em",{style:{fontSize:"smaller"},children:d("Pilot has no known alts.")}):l.jsx(c1,{})]})},d1=_.a`
  cursor: pointer;
  text-decoration: underline;
`,Ta=_.div`
  display: flex;

  border-bottom: solid 1px ${i=>i.theme.colors.accent2};
  &:first-child {
    border-top: solid 1px ${i=>i.theme.colors.accent2};
  }
  &:nth-child(odd) {
    background-color: ${i=>i.theme.colors.accent1};
  }
`;Ta.Time=_.div`
  flex: 0 0 200px;
  padding: 0.5em;
  @media (max-width: 480px) {
    width: 40%;
    flex: unset;
  }
`;Ta.Icon=_.div`
  flex: 0 0 auto;
  padding: 0.5em;
`;Ta.Content=_.div`
  flex: 1;
  padding: 0.5em;
`;function Li({time:i,icon:r,children:d}){return l.jsxs(Ta,{children:[l.jsx(Ta.Icon,{children:r&&l.jsx(ie,{fixedWidth:!0,icon:r})}),l.jsx(Ta.Time,{children:Sl(new Date(i*1e3))}),l.jsx(Ta.Content,{children:d})]})}function f1({issued_at:i,issued_by:r,reason:d,public_reason:u,revoked_at:o,revoked_by:f}){const{t:m}=L(),g=!o;return l.jsx(Li,{time:i,icon:xc,children:l.jsxs(st,{children:[l.jsxs("p",{children:[m(g?"Permanent":"Temporary")," ",m("ban"),", ",m("issued by"),":"," ",l.jsx(ot,{...r,avatar:!1}),"."]}),!g&&!f&&l.jsxs("p",{children:[m("Expires"),": ",gc(new Date(o*1e3)),"."]}),!g&&f&&l.jsxs("p",{children:[m("Revoked by"),": ",l.jsx(ot,{...f,avatar:!1})," ",m("on the")," ",Oi(new Date(o*1e3)),"."]}),l.jsxs("p",{style:{marginBottom:"2px",fontWeight:"600"},children:[m("Reason"),":"]}),l.jsx("p",{children:d}),u&&l.jsxs(l.Fragment,{children:[l.jsx("p",{style:{marginBottom:"2px",fontWeight:"600"},children:m("Public Reason")}),l.jsx("p",{children:u})]})]})})}function h1({logged_at:i,ship:r,dna:d,implants:u}){const[o,f]=H.useState(!1);return l.jsxs(Li,{time:i,icon:Xm,children:[o&&l.jsx(qe,{open:!0,setOpen:f,children:l.jsx(Ae,{style:{display:"flex"},children:l.jsx(ao,{fit:{dna:d,implants:u,fit_analysis:{name:r.name}}})})}),l.jsx(d1,{onClick:()=>f(!0),children:r.name})]})}function m1({logged_at:i,ship:r,time_in_fleet:d}){return l.jsxs(Li,{time:i,icon:Qm,children:[l.jsx("span",{style:{display:"inline-block",minWidth:"40%",marginRight:"0.5em"},children:r.name}),l.jsx("span",{children:na(d)})]})}function x1({logged_at:i,name:r,old_level:d,new_level:u}){const{t:o}=L();var f=d>u?"danger":d===u?"":"success";return l.jsxs(Li,{time:i,icon:Ku,children:[l.jsx("span",{style:{display:"inline-block",minWidth:"40%",marginRight:"0.5em"},children:o(r)}),l.jsxs(Gt,{$variant:f,children:[d," -> ",u]})]})}function g1({logged_at:i,author:r,note:d}){const{t:u}=L();return l.jsx(Li,{time:i,icon:Vm,children:l.jsxs(st,{children:[l.jsxs("p",{children:[u("Note written by")," ",l.jsx("strong",{children:r.name})]}),l.jsx(Rm,{children:d})]})})}const p1=_.div`
  margin-bottom: 2em;
`;function y1({filter:i,banHistory:r,fleetHistory:d,skillHistory:u,xupHistory:o,notes:f}){const{t:m}=L();var g=[],p=0;for(const B of r||[])p++,g.push({key:`ban-${p}`,entry:B,time:B.issued_at,type:"ban"});p=0;for(const B of o||[])p++,g.push({time:B.logged_at,type:"fit",entry:B,key:`fit-${p}`});p=0;for(const B of d||[])p++,g.push({time:B.logged_at,endTime:B.logged_at+B.time_in_fleet,type:"fleet",entry:B,key:`fleet-${p}`});p=0;for(const B of u||[])p++,g.push({time:B.logged_at,type:"skill",entry:B,key:`skill-${p}`});p=0;for(const B of f||[])p++,g.push({time:B.logged_at,type:"note",entry:B,key:`note-${p}`});i!==null&&(g=g.filter(B=>i(B.type))),g=re.sortBy(g,["time"]);var y=[],j=null,E=null;for(const{time:B,entry:k,type:q,endTime:U,key:G}of g)(j===null||E<B)&&(j=[],y.push({key:B,group:j})),E=(U||B)+3*3600,q==="ban"?j.push(l.jsx(f1,{...k},G)):q==="fit"?j.push(l.jsx(h1,{...k},G)):q==="fleet"?j.push(l.jsx(m1,{...k},G)):q==="skill"?j.push(l.jsx(x1,{...k},G)):q==="note"&&j.push(l.jsx(g1,{...k},G));var D=[];y.reverse();for(const{group:B,key:k}of y)B.reverse(),D.push(l.jsx(p1,{children:B},k));return D.length?l.jsx("div",{children:D}):l.jsx("div",{children:l.jsx("em",{children:m("No logged history")})})}function v1({filter:i,banHistory:r,fleetHistory:d,skillHistory:u,xupHistory:o,notes:f}){return l.jsx(y1,{filter:i,banHistory:r,fleetHistory:d,skillHistory:u,xupHistory:o,notes:f})}const j1=_.span`
  font-size: 0.75em;
  margin-left: 2em;

  a {
    cursor: pointer;
    padding: 0 0.2em;
  }
`;async function b1(i,r){return await se("/incursions/api/open_window",{json:{target_id:i,character_id:r}})}function S1(){const i=H.useContext(Ne),{t:r}=L();return i?l.jsx(_1,{authContext:i}):l.jsxs(st,{children:[l.jsx("b",{children:r("Login Required!")}),l.jsx("p",{children:r("This page will show you your own Fleet statistics like x-up's, fleet times and skill changes.")})]})}const w1=_.div`
  display: flex;
  align-items: center;
  padding-bottom: 30px;

  @media (max-width: 400px) {
    flex-direction: column;
  }

  img {
    border-radius: 50%;
    height: 100px;
    width: 100px;
    margin-right: 10px;
    vertical-align: bottom;

    @media (max-width: 400px) {
      margin-right: 0px;
    }
  }

  div:first-of-type {
    display: flex;
    flex-direction: column;

    div:first-of-type {
      display: flex;
      flex-direction: row;

      @media (max-width: 400px) {
        flex-direction: column;
        padding-bottom: 15px;

        h1 {
          text-align: center;
        }
      }

      h1 {
        font-size: 1.9em;
        margin-right: 10px;
      }
    }
  }
`;function _1({authContext:i}){const{t:r}=L();var u=new URLSearchParams(ln().search).get("character_id")||i.current.character_id;const[o,f]=H.useState(null),[m,g]=_e(`/incursions/api/pilot/info?character_id=${u}`),[p]=_e(`/incursions/api/history/fleet?character_id=${u}`),[y]=_e(i.access["incursions.waitlist_bans_view"]||i.access["incursions.waitlist_bans_manage"]?`/incursions/api/bans/${u}`:null),[j]=_e(`/incursions/api/history/xup?character_id=${u}`),[E]=_e(`/incursions/api/history/skills?character_id=${u}`),[D]=_e(i.access["incursions.waitlist_notes_view"]?`/incursions/api/notes?character_id=${u}`:null);return $e(r("Pilot")),l.jsxs(l.Fragment,{children:[(i.access["incursions.waitlist_bans_view"]||i.access["incursions.waitlist_bans_manage"])&&l.jsx(l1,{bans:y}),l.jsxs(w1,{children:[(m==null?void 0:m.character.character_id)!==1&&l.jsx("img",{src:`https://images.evetech.net/characters/${m==null?void 0:m.character.character_id}/portrait?size=128`,alt:r("Character Portrait")}),l.jsxs("div",{children:[l.jsx("div",{children:l.jsx("h1",{children:m==null?void 0:m.character.character_name})}),l.jsx(cx,{style:{flexWrap:"flex"},tags:m==null?void 0:m.tags})]})]}),i.account_id!==u&&l.jsxs(Te,{style:{marginBottom:"20px"},children:[i.access["incursions.waitlist_notes_manage"]&&l.jsx(nn,{to:`/fc/notes/add?character_id=${u}`,children:r("Write note")}),i.access["incursions.waitlist_badges_manage"]&&l.jsx(px,{character:m??{id:parseInt(u),name:""},refreshData:g}),i.access["incursions.waitlist_esi_show_info"]&&l.jsxs(X,{title:r("Open Show Info Window"),onClick:()=>me(oe,b1(m.id,i.current.character_id)),children:[r("Show Info")," ",l.jsx(ie,{fixedWidth:!0,icon:Bi})]})]}),l.jsxs(hc,{children:[l.jsxs(bl,{xs:4,md:6,children:[l.jsxs(Be,{children:[r("History"),l.jsxs(j1,{children:[l.jsx("a",{onClick:()=>f(null),style:{marginRight:"0.5em"},title:r("Clear Filters"),children:l.jsx(ie,{fixedWidth:!0,icon:Zu})}),l.jsx("a",{onClick:()=>f("skill"),title:r("Skill History"),children:l.jsx(ie,{fixedWidth:!0,icon:Ku})}),l.jsx("a",{onClick:()=>f("fit"),title:r("X-UP History"),children:l.jsx(ie,{fixedWidth:!0,icon:Xm})}),l.jsx("a",{onClick:()=>f("fleet"),title:r("Fleet History"),children:l.jsx(ie,{fixedWidth:!0,icon:Qm})}),i.access["incursions.waitlist_notes_view"]&&l.jsx("a",{onClick:()=>f("note"),title:r("Pilot Notes"),children:l.jsx(ie,{fixedWidth:!0,icon:Vm})}),(i.access["incursions.waitlist_bans_view"]||i.access["incursions.waitlist_bans_manage"])&&l.jsx("a",{onClick:()=>f("ban"),title:r("Character Ban History"),children:l.jsx(ie,{fixedWidth:!0,icon:xc})})]})]}),l.jsx(v1,{filter:o?B=>B===o:null,banHistory:y,fleetHistory:p&&p.activity,skillHistory:E&&E.history,xupHistory:j&&j.xups,notes:D&&D.notes})]}),l.jsxs(bl,{xs:4,md:2,children:[l.jsx(Be,{children:r("Time in fleet")}),l.jsx(i1,{summary:p&&p.summary}),l.jsx(u1,{character:m==null?void 0:m.character.character_id})]})]})]})}const C1="/static/incursions/waitlist/media/skillqueue.png";function T1(){const i=H.useContext(Ne),{t:r}=L();return i?l.jsx(A1,{authContext:i}):l.jsxs(st,{children:[l.jsx("b",{children:r("Login Required!")}),l.jsx("p",{children:r("This page will show copyable skill plan tables comparing to your current skills with checkmarks next to already completed skills.")})]})}function A1({authContext:i}){const[{plan:r}]=co(),[d]=_e("/incursions/api/skills/plans"),[u]=_e(`/incursions/api/skills/${i.current.character_id}`),{t:o}=L();if(!d||!u)return l.jsx("em",{children:o("Loading...")});if(r){const f=re.find(d.plans,m=>m.source.name===r);return f?l.jsx(D1,{plan:f,mySkills:u}):l.jsx("em",{children:o("Plan not found")})}return l.jsx(M1,{plans:d.plans,mySkills:u})}function Sx(i){if(i===1)return"I";if(i===2)return"II";if(i===3)return"III";if(i===4)return"IV";if(i===5)return"V";throw new Error("Unlikely skill numeral")}function E1(i,r){return i.map(([d,u])=>`${r[d]||"MISSING SKILL"} ${Sx(u)}`).join(`
`)}function D1({plan:i,mySkills:r}){const d=H.useContext(oe),[u,o]=H.useState(!1),{t:f}=L();var m=[],g=re.invert(r.ids);return re.forEach(i.levels,([p,y])=>{const j=g[p],E=r.current[p];m.push(l.jsxs(ze,{children:[l.jsxs(W,{children:[j||f("MISSING SKILL")," ",Sx(y)]}),l.jsx(W,{children:E>=y?l.jsx(ie,{icon:Gm}):null})]},`${p} ${y}`))}),$e(Dy(i.source.name)),l.jsxs(hc,{children:[l.jsxs(bl,{xs:4,md:4,children:[l.jsx(Ot,{children:l.jsx(vt,{exact:!0,to:"/skills/plans",style:{textDecoration:"inherit",color:"inherit"},children:l.jsx(X,{children:f("Back")})})}),l.jsxs(st,{children:[l.jsx("h2",{children:i.source.name}),l.jsx("p",{children:i.source.description}),l.jsx("div",{style:{marginTop:"2em"},children:i.ships.map(p=>l.jsx("img",{src:`https://images.evetech.net/types/${p.id}/render?size=128`,style:{maxWidth:"128px",margin:"0.5em"},alt:p.name,title:p.name},p.id))})]})]}),l.jsxs(bl,{xs:4,md:4,children:[l.jsxs("p",{style:{marginBottom:"1em"},children:[l.jsx(X,{onClick:()=>{vl(d,navigator.clipboard.writeText(E1(i.levels,g)).then(()=>f("Copied to clipboard")))},children:l.jsx(ie,{icon:$m})})," ",l.jsx("a",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>o(!0),children:f("How do I use this?")})]}),l.jsxs(An,{children:[l.jsx(Da,{children:l.jsxs(ze,{children:[l.jsx(Je,{children:f("Skill")}),l.jsx(Je,{})]})}),l.jsx(En,{children:m})]})]}),l.jsx(qe,{open:u,setOpen:o,children:l.jsx("img",{alt:f("Explanation for using the skill queue"),src:C1})})]})}const O1=_.div`
  border: solid 2px ${i=>i.theme.colors.secondary.color};
  line-height: 0;
  padding: 0.1em;
  justify-content: center;
  border-radius: 5px;
  max-width: fit-content;
  img {
    margin: 1px;
    border-radius: 3px;
    max-width: 31px;
  }
`;function M1({plans:i,mySkills:r}){const{t:d}=L();return $e(d("Skill Plans")),l.jsxs(l.Fragment,{children:[l.jsx(la,{children:d("Skill plans")}),l.jsx(xx,{children:i.map(u=>l.jsx(so,{children:l.jsx(vt,{exact:!0,to:`/skills/plans?plan=${u.source.name}`,style:{textDecoration:"inherit",color:"inherit"},children:l.jsxs(gx,{title:u.source.name,children:[l.jsx(O1,{children:u.ships.map(o=>l.jsx("img",{src:`https://images.evetech.net/types/${o.id}/icon?size=64`,alt:o.name,title:o.name},o.id))}),l.jsx("p",{children:u.source.description})]})})},u.source.name))})]})}function z1(){const{t:i}=L(),r=H.useContext(Ne);return r?l.jsx(B1,{authContext:r}):l.jsxs(st,{children:[l.jsx("b",{children:i("Login Required!")}),l.jsx("p",{children:i("This page will show tables with TDF related skills comparing to your current skills with a color indicating the progres tier that skill is at.")})]})}function B1({authContext:i}){const{t:r}=L(),d=new URLSearchParams(ln().search),u=mc();var o=d.get("character_id")||i.current.character_id,f=d.get("ship")||"Vindicator";const[m]=_e(`/incursions/api/pilot/info?character_id=${o}`),g=p=>{d.set("ship",p),u({search:`?${d.toString()}`})};return $e(r("{{ship}} Skills",{ship:f})),l.jsxs(l.Fragment,{children:[l.jsx(la,{children:m?r("Skills for {{name}}",{name:m.character.character_name}):r("Skills")}),l.jsx(lo,{characterId:o,ship:f,setShip:g})]})}const N1="[Paladin, Paladin]...".trim(),R1="bringing 1 alt".trim(),U1=_.div`
  display: flex;
  @media (max-width: 1100px) {
    display: block;
  }
`,wx=({setXupOpen:i})=>{$e("X-up");const{t:r}=L(),d=O.useContext(oe),u=O.useContext(Ne),f=new URLSearchParams(ln().search).get("wl"),[m,g]=O.useState(""),[p,y]=O.useState(""),[j,E]=O.useState(!1),[D,B]=O.useState(!1),[k]=Wm(`/incursions/api/implants?character_id=${u.current.character_id}`),q=!1,U=O.useMemo(()=>100-p.length,[p]),G=O.useCallback(async()=>{E(!0),me(d,L1({character:u.current.character_id,eft:m,toastContext:d,waitlistId:f,alt:q,messagexup:p}).then(()=>B(!0))).finally(()=>E(!1))},[m,p,u,d,f,q]);return f?D?l.jsx(H1,{waitlistId:f,setOpen:B,setXupOpen:i}):l.jsxs(U1,{children:[l.jsxs(st,{style:{flex:1},children:[l.jsx("h2",{children:r("X-up with fit(s)")}),l.jsx(Vt,{placeholder:N1,rows:15,onChange:ne=>g(ne.target.value),value:m,style:{width:"100%",marginBottom:"1em"}}),l.jsxs("div",{style:{marginBottom:"1em"},children:[l.jsx("h2",{children:r("X-up message (optional)")}),l.jsx(Vt,{placeholder:R1,rows:1,onChange:ne=>y(ne.target.value),value:p,style:{width:"100%"}}),l.jsxs("div",{children:[r("Characters left"),": ",U>=0?U:r("Too long")]})]}),l.jsxs(Te,{children:[l.jsx(X,{static:!0,children:u.current.character_name}),l.jsx(X,{$variant:"success",onClick:G,disabled:m.trim().length<50||!m.startsWith("[")||j||p.length>100,children:r("X-up")})]})]}),l.jsx(Ae,{style:{flex:1,marginTop:"1em"},children:k&&l.jsx(ux,{implants:k.implants,name:`${u.current.character_name}'s capsule`})})]}):l.jsx("em",{children:r("Missing waitlist information")})},H1=({waitlistId:i,setOpen:r,setXupOpen:d})=>{const{t:u}=L(),o=O.useContext(Ne),[f]=Wm("/incursions/api/waitlist");if(!f)return l.jsx("em",{children:u("Loading")});const m=f.waitlist.find(g=>{var p;return((p=g.character)==null?void 0:p.character_id)===o.current.character_id});return l.jsxs(l.Fragment,{children:[l.jsx(la,{children:u("Fit review")}),l.jsx("em",{children:u("You are now on the waitlist! These are the fits you x-ed up with, please check to make sure you have everything and adjust your fit if needed.")}),m==null?void 0:m.fits.map(g=>l.jsx(Ae,{children:l.jsx(ao,{fit:g})},g.id)),l.jsxs(Ot,{children:[l.jsx(X,{$variant:"primary",onClick:()=>d(!1),children:u("Yes, looks good")}),l.jsx(X,{$variant:"secondary",onClick:()=>r(!1),children:u("No, go back to update my fit")})]})]})};async function L1({character:i,eft:r,toastContext:d,waitlistId:u,alt:o,messagexup:f}){const m={eft:r,character_id:i,waitlist_id:parseInt(u),is_alt:o,messagexup:f};await uc("/incursions/api/waitlist/xup","post",{body:m}),an(d,{title:"Added to waitlist.",message:"Your X has been added to the waitlist!",variant:"success"}),window.Notification&&Notification.requestPermission()}function k1(i){return i.waitlist.map(r=>{const d=[],u={};if(!r.character)return"";for(const o of r.fits){if(!o.character)continue;let f=u[o.character.character_id];f||(f={character:o.character,fits:[]},d.push(f),u[o.character.character_id]=f),f.fits.push(o)}return d.map(o=>{const f=`<a href="showinfo:1377//${o.character.character_id}">${o.character.name}</a>`,m=o.fits.map(g=>{const p=g.approved?"":", CHECK FIT";return`${g.ship.name[0]}${p}`});return f+" "+m.join(", ")}).join(" | ")}).join(`
`)}function q1({waitlist:i}){const{t:r}=L();return l.jsxs(st,{children:[l.jsx("h2",{children:r("Notepad waitlist")}),l.jsxs("p",{children:[l.jsx("strong",{children:r("What is this?!")})," ",r("When ESI is having trouble, the Invite button may not always work. To invite manually, or to switch to a channel-based waitlist, you can copy the existing waitlist into a notepad or channel MOTD by copying the code below. It will make the names linkable so that they can be invited by dragging into the fleet composition.")]}),l.jsx(Vt,{readOnly:!0,style:{width:"100%"},rows:15,children:k1(i)})]})}const $1=y0`
  to {
    transform: rotate(360deg);
  }
`,G1=_.div`
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
`,Y1=_.div`
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 0.2rem solid ${i=>i.theme.colors.accent1};
  border-top-color: ${i=>i.theme.colors.text};
  animation: ${$1} 1.5s linear infinite;
  box-shadow: 0px -12px 8px -5px ${i=>i.theme.colors.text}40;
`,X1=()=>{const[i,r]=O.useState(!1),{t:d}=L();return l.jsxs(tn,{style:{width:"100%"},children:[l.jsx(tn.Head,{style:{marginBottom:"1em"},children:d("We apologize, the waitlist is currently closed.")}),l.jsx(tn.Paragraph,{style:{width:"50%"},children:d("Thank you for your patience. A fleet commander will be available shortly. Please stand by...")}),l.jsxs(tn.Paragraph,{style:{width:"50%"},children:[l.jsx(G1,{children:l.jsx(Y1,{})}),l.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:"1.5em"},children:l.jsx(Te,{children:l.jsx(X,{onClick:()=>r(!0),children:d("Click here to Ping FC's for Fleet")})})})]}),i&&l.jsx("iframe",{title:"Never Gonna Give You Up",width:"560",height:"315",src:"https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ?autoplay=1&controls=0",frameBorder:"0",allow:"autoplay; encrypted-media; picture-in-picture",allowFullScreen:!0})]})},Q1=_.div`
  width: 100%;
`,V1=_.div`
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 1em;
  @media (max-width: 1100px) {
    flex-wrap: wrap;
  }
`,Z1=_.div`
  width: 70%;
  @media (max-width: 970px) {
    width: 100%;
  }
`;function _x(i,r){let d=null,u=null;const o=()=>{if(u=setTimeout(o,r),d){const[f,m]=d;d=null,i.apply(f,m)}};return u=setTimeout(o,r*Math.random()),[function(...f){d=[this,arguments]},()=>{u&&clearTimeout(u)}]}async function K1(i){await se("/incursions/api/waitlist/remove_x",{json:{id:i}})}function J1(i){const r=O.useContext(Ni),[d,u]=_e("/incursions/api/waitlist");return O.useEffect(()=>{if(!r)return;const[o,f]=_x(u,2e3),m=g=>{JSON.parse(g.data).waitlist_id===i&&o()};return r.addEventListener("waitlist_update",m),r.addEventListener("open",o),()=>{f(),r.removeEventListener("waitlist_update",m),r.removeEventListener("open",o)}},[u,r,i]),[d,u]}function F1(){const i=O.useContext(Ne),r=O.useContext(Ni),[d,u]=O.useState(null),o=O.useCallback(()=>{if(!i.access["incursions.waitlist_fleet_view"]){u(null);return}se(`/incursions/api/fleet/members/${i.current.character_id}`,{}).then(u).catch(()=>u(null))},[i]);return O.useEffect(()=>{o()},[o]),O.useEffect(()=>{if(!r)return;const[f,m]=_x(o,2e3);return r.addEventListener("comp_update",f),r.addEventListener("open",f),()=>{m(),r.removeEventListener("comp_update",f),r.removeEventListener("open",f)}},[o,r]),d}function W1(){var Ee;const{t:i}=L(),r=O.useContext(Ne),d=O.useContext(oe),[u,o]=co(),[f,m]=O.useState(((Ee=window.localStorage)==null?void 0:Ee.getItem("FleetStat"))==="true"),[g,p]=O.useState(!0),[y,j]=O.useState(!1),E=O.useMemo(()=>parseInt(u.wl),[u.wl]),[D,B]=J1(E),k=F1(),q=u.mode||"columns";if($e(i("Waitlist")),O.useEffect(()=>{E||o("wl",1)},[E,o]),O.useEffect(()=>{p(!0)},[r.current.character_id]),!E)return null;if(D===null)return l.jsx("em",{children:i("Loading waitlist information.")});if(!D.open)return l.jsx(X1,{});var U=re.find(D.waitlist,le=>le.character&&le.character.character_id===r.current.character_id);const G=()=>{var F;const le=!f;m(le),(F=window.localStorage)==null||F.setItem("FleetStat",JSON.stringify(le))},ne=le=>{o("mode",le)};return l.jsxs(l.Fragment,{children:[l.jsx(_a,{children:l.jsxs(Ot,{children:[l.jsxs(Te,{children:[y&&l.jsx(qe,{open:!0,setOpen:j,fill:"true",children:l.jsx(Q1,{children:l.jsx(Ae,{children:l.jsx(wx,{setXupOpen:j})})})}),l.jsx(ex,{$variant:U?void 0:"primary",onClick:()=>j(!0),children:i(U?"Update fit(s)":"Join waitlist")}),l.jsx(X,{$variant:U?"danger":void 0,onClick:()=>me(d,K1(U.id)),disabled:!U,children:i("Leave waitlist")})]}),r.access["incursions.waitlist_context_a"]&&l.jsxs(l.Fragment,{children:[l.jsx(Te,{children:["columns","matrix","compact","linear","rows"].map(le=>l.jsx(X,{active:q===le,onClick:()=>ne(le),children:i(le.charAt(0).toUpperCase()+le.slice(1))},le))}),l.jsx(Te,{children:l.jsx(X,{active:q==="notepad",onClick:()=>ne("notepad"),children:i("Notepad")})}),l.jsx(Te,{children:l.jsx(X,{onClick:G,children:i(f?"Disable Fleet Stats":"Enable Fleet Stats")})})]})]})}),l.jsx(_a,{children:l.jsxs(V1,{children:[l.jsxs(Z1,{children:[q==="columns"&&l.jsx(Dv,{waitlist:D,onAction:B,fleetComposition:k,authContext:r,showMembers:f}),q==="compact"&&l.jsx(Mv,{waitlist:D,onAction:B}),q==="linear"&&l.jsx(zv,{waitlist:D,onAction:B}),q==="matrix"&&l.jsx(Nv,{waitlist:D,onAction:B,fleetComposition:k}),q==="rows"&&l.jsx(Rv,{waitlist:D,onAction:B,fleetComposition:k}),q==="notepad"&&l.jsx(q1,{waitlist:D,onAction:B})]}),f&&g&&r.access["incursions.waitlist_context_a"]&&l.jsx(mx,{fleetpage:!1,setStatTempActive:p})]})})]})}const yt=({component:i,loginRequired:r=!1,access:d=null})=>{var o;const u=O.useContext(Ne);return!r&&!d?i:u?d&&!((o=u.access)!=null&&o[d])?l.jsx(zy,{}):i:l.jsx(My,{})};function I1(){return l.jsxs(Pp,{children:[l.jsx(be,{path:"/",element:l.jsx(Xj,{})}),l.jsx(be,{path:"/fits",element:l.jsx(Mj,{})}),l.jsx(be,{path:"/isk-h",element:l.jsx(Pj,{})}),l.jsx(be,{path:"/isk-h/calc",element:l.jsx(Ij,{})}),l.jsx(be,{path:"/pilot",element:l.jsx(S1,{})}),l.jsx(be,{path:"/skills",element:l.jsx(z1,{})}),l.jsx(be,{path:"/skills/plans",element:l.jsx(T1,{})}),l.jsx(be,{path:"/badges",element:l.jsx(Yj,{})}),l.jsx(be,{path:"/guide",element:l.jsx(Gj,{})}),l.jsx(be,{path:"/guide/:guideName",element:l.jsx($j,{})}),l.jsx(be,{path:"/legal",element:l.jsx(t1,{})}),l.jsx(be,{path:"/waitlist",element:l.jsx(yt,{component:l.jsx(W1,{}),loginRequired:!0})}),l.jsx(be,{path:"/xup",element:l.jsx(yt,{component:l.jsx(wx,{}),loginRequired:!0})}),l.jsx(be,{path:"/fc",element:l.jsx(yt,{component:l.jsx(ej,{}),access:"incursions.waitlist_manage_waitlist"})}),l.jsx(be,{path:"/fc/announcements",element:l.jsx(yt,{component:l.jsx(Gy,{}),access:"incursions.waitlist_announcements_manage"})}),l.jsx(be,{path:"/fc/badges",element:l.jsx(yt,{component:l.jsx(Tj,{}),access:"incursions.waitlist_badges_manage"})}),l.jsx(be,{path:"/fc/bans",element:l.jsx(yt,{component:l.jsx(av,{}),access:"incursions.waitlist_bans_manage"})}),l.jsx(be,{path:"/fc/documentation",element:l.jsx(yt,{component:l.jsx(Tm,{}),access:"incursions.waitlist_documentation_view"})}),l.jsx(be,{path:"/fc/fleet",element:l.jsx(yt,{component:l.jsx(Yv,{}),access:"incursions.waitlist_manage_waitlist"})}),l.jsx(be,{path:"/fc/fleet/register",element:l.jsx(yt,{component:l.jsx(Vv,{}),access:"incursions.waitlist_manage_waitlist"})}),l.jsx(be,{path:"/fc/fleet/history",element:l.jsx(yt,{component:l.jsx(Kv,{}),access:"incursions.waitlist_history_view"})}),l.jsx(be,{path:"/fc/notes/add",element:l.jsx(yt,{component:l.jsx(nj,{}),access:"incursions.waitlist_notes_manage"})}),l.jsx(be,{path:"/fc/search",element:l.jsx(yt,{component:l.jsx(sj,{}),access:"incursions.waitlist_search"})}),l.jsx(be,{path:"/fc/stats",element:l.jsx(yt,{component:l.jsx(xj,{}),access:"incursions.waitlist_stats_view"})}),l.jsx(be,{path:"/fc/trainee",element:l.jsx(yt,{component:l.jsx(Tm,{}),access:"incursions.waitlist_documentation_view"})}),l.jsx(be,{path:"*",element:l.jsx(By,{})})]})}const P1=v0`
  html {
    // overflow-y: scroll;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    min-width: 300px;
  }
  body {
    min-height: 100vh;
    background-color: ${i=>i.theme.colors.background};
    color: ${i=>i.theme.colors.text};
    font-family: ${i=>i.theme.font.family};
    line-height: 1.5;
    font-weight: 400;
  overflow-y: scroll;
  ${i=>i.sticker&&i.theme.sticker&&`
    &:before {
      content:'';
      pointer-events:none;
      position:fixed;
      z-index:100;
      width:100%;
      height:100%;
      background-position:100% 100%;
      background-repeat: no-repeat;
      opacity:1;
      background-size: 18%;
        background-image: url(${i.theme.sticker});
    }
  `}
  }
  em, i {
    font-style: italic;
  }
  strong, b {
    font-weight: bold;
  }
`;class eb extends H.Component{constructor(d){super(d);Nu(this,"addToast",d=>{this.setState({toasts:[...this.state.toasts,d]})});Nu(this,"changeCharacter",d=>{var u={...this.state.auth},o=this.state.auth.characters.filter(f=>f.character_id===d)[0];u.current=o,this.setState({auth:u}),localStorage.setItem("selectedCharacter",d)});this.state={auth:null,toasts:[],events:null,eventErrors:0,theme:window.localStorage&&window.localStorage.getItem("theme")in it&&window.localStorage.getItem("theme")||"Light",sticker:(window.localStorage&&window.localStorage.getItem("Sticker")&&window.localStorage.getItem("Sticker")||"true")==="true"}}componentDidUpdate(){if(this.state.auth&&!this.state.events){var d=new EventSource("/incursions/api/sse/stream");d.addEventListener("open",()=>{this.setState({eventErrors:0})}),d.addEventListener("error",()=>{d.close(),setTimeout(()=>{this.setState({events:null,eventErrors:this.state.eventErrors+1})},this.state.eventErrors*5e3+Math.random()*1e4)}),this.setState({events:d})}}componentDidMount(){uy(d=>this.setState({auth:d}))}render(){return l.jsx(H.StrictMode,{children:l.jsxs(j0,{theme:it[this.state.theme],children:[l.jsx(P1,{sticker:this.state.sticker}),l.jsx(oe.Provider,{value:this.addToast,children:l.jsx(Ni.Provider,{value:this.state.events,children:l.jsx(Ne.Provider,{value:this.state.auth,children:l.jsx(e0,{basename:"/incursions/waitlist",children:l.jsxs(t0,{children:[l.jsx(_a,{children:l.jsx(Ay,{onChangeCharacter:d=>this.changeCharacter(d),theme:this.state.theme,setTheme:d=>{this.setState({theme:d}),window.localStorage&&window.localStorage.setItem("theme",d)},sticker:this.state.sticker,setSticker:d=>{this.setState({sticker:d}),window.localStorage&&window.localStorage.setItem("Sticker",d)}})}),l.jsx(_a,{children:l.jsx(ry,{})}),l.jsx(_a,{children:l.jsx(I1,{})}),l.jsx(_a,{children:l.jsx(F0,{toasts:this.state.toasts,setToasts:d=>this.setState({toasts:d})})})]})})})})})]})})}}const tb=document.getElementById("root"),nb=V0.createRoot(tb);nb.render(l.jsx(H.StrictMode,{children:l.jsx(_a,{children:l.jsx(eb,{})})}));
//# sourceMappingURL=index-C-5c_8mf.js.map
