hfs 3.3.0-rc7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/admin/assets/AccountsPage-Cvi9DSc1.js +3 -0
- package/admin/assets/ArrayField-ChS9pNra.js +2 -0
- package/admin/assets/ConfigFilePage-6jCYVkbr.js +4 -0
- package/admin/assets/CustomHtmlPage-DaEXsEcQ.js +2 -0
- package/admin/assets/DataTable-Cf5S5yWr.js +119 -0
- package/admin/assets/DateTimeField--mTsSB1l.js +1 -0
- package/admin/assets/{EventManager-CMbOaOVu.js → EventManager-BJWba-fL.js} +1 -1
- package/admin/assets/{FileField-DvOcVuL3.js → FileField-B0WhrAuk.js} +53 -53
- package/admin/assets/InternetPage-BICQDG_K.js +8 -0
- package/admin/assets/LangPage-D42UPSxC.js +2 -0
- package/admin/assets/LogsPage-DQTrf5GE.js +4 -0
- package/admin/assets/MenuButton-DDfB3119.js +1 -0
- package/admin/assets/MonitorPage-CH06c8aW.js +2 -0
- package/admin/assets/OptionsPage-BvXLA_R0.js +3 -0
- package/admin/assets/PluginsPage-CyaVJZkM.js +1 -0
- package/admin/assets/Tabs-CGfV3BK0.js +1 -0
- package/admin/assets/{TextEditor-CuqsIrmD.js → TextEditor-Df9LSzm6.js} +2 -2
- package/admin/assets/VfsPathField-6Kyy5vuQ.js +1 -0
- package/admin/assets/{agentIcons-h26neS1O.js → agentIcons-DwT9U-lh.js} +1 -1
- package/admin/assets/baseUrl-D7S0KsqZ.js +2 -0
- package/admin/assets/{icons-unNxkvar.js → icons-DWkdo8hc.js} +1 -1
- package/admin/assets/{index-CCbBe4VH.js → index-BDdPG215.js} +6 -6
- package/admin/assets/routing-CxxvyWME.js +1 -0
- package/admin/index.html +1 -1
- package/frontend/assets/{dist-legacy-DGxI1c76.js → dist-legacy-zQdkj0Z9.js} +1 -1
- package/frontend/assets/index-legacy-B8EvbIOB.js +1 -0
- package/frontend/assets/{lib-legacy-B78r2oy1.js → lib-legacy-CRrFEEqm.js} +1 -1
- package/frontend/assets/{sha512-legacy-Df4fa7x7.js → sha512-legacy-BB7Mdt0y.js} +1 -1
- package/frontend/index.html +1 -1
- package/npm-shrinkwrap.json +8 -8
- package/package.json +3 -3
- package/src/api.auth.js +1 -0
- package/src/api.vfs.js +2 -5
- package/src/auth.js +9 -1
- package/src/comments.js +0 -4
- package/src/const.js +1 -1
- package/src/cross-const.js +1 -1
- package/src/cross.js +11 -0
- package/src/middlewares.js +10 -2
- package/src/perm.js +7 -2
- package/src/plugins.js +24 -9
- package/src/roots.js +1 -1
- package/src/serveGuiFiles.js +1 -0
- package/src/upload.js +15 -2
- package/src/vfs.js +1 -3
- package/src/webdav.js +1 -1
- package/admin/assets/AccountsPage-D18kfsM7.js +0 -3
- package/admin/assets/ArrayField-C_SiccHt.js +0 -2
- package/admin/assets/ConfigFilePage-DK2WoVVT.js +0 -4
- package/admin/assets/CustomHtmlPage-BuwxgXZb.js +0 -2
- package/admin/assets/DataTable-YO7t2zol.js +0 -119
- package/admin/assets/DateTimeField-JJtFlhyP.js +0 -1
- package/admin/assets/InternetPage-Bnqiyd6R.js +0 -8
- package/admin/assets/LangPage-UvLk_tcp.js +0 -2
- package/admin/assets/LogsPage-DZrag-6q.js +0 -3
- package/admin/assets/MenuButton-DZSVYDgz.js +0 -1
- package/admin/assets/MonitorPage-DHo-WAeK.js +0 -2
- package/admin/assets/OptionsPage-C2tESF0q.js +0 -3
- package/admin/assets/PluginsPage-DsDE4gaI.js +0 -1
- package/admin/assets/Tabs-Bo50sE_k.js +0 -1
- package/admin/assets/VfsPathField-DAjlREzU.js +0 -1
- package/admin/assets/baseUrl-DBsHXX2p.js +0 -2
- package/admin/assets/routing-BTxUMqWz.js +0 -1
- package/frontend/assets/index-legacy-DEPpVUOz.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sha512-DJtGRwVu.js","assets/rolldown-runtime-CacB07dV.js","assets/dist-DC2A6cD2.js","assets/InternetPage-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/sha512-DJtGRwVu.js","assets/rolldown-runtime-CacB07dV.js","assets/dist-DC2A6cD2.js","assets/InternetPage-BICQDG_K.js","assets/ArrayField-ChS9pNra.js","assets/DataTable-Cf5S5yWr.js","assets/icons-DWkdo8hc.js","assets/Tabs-CGfV3BK0.js","assets/EventManager-BJWba-fL.js","assets/DateTimeField--mTsSB1l.js","assets/VfsPathField-6Kyy5vuQ.js","assets/baseUrl-D7S0KsqZ.js","assets/OptionsPage-BvXLA_R0.js","assets/FileField-B0WhrAuk.js","assets/MenuButton-DDfB3119.js","assets/TextEditor-Df9LSzm6.js","assets/TextEditor-BeS-mR2I.css","assets/agentIcons-DwT9U-lh.js","assets/routing-CxxvyWME.js","assets/AccountsPage-Cvi9DSc1.js","assets/MonitorPage-CH06c8aW.js","assets/LogsPage-DQTrf5GE.js","assets/LangPage-D42UPSxC.js","assets/PluginsPage-CyaVJZkM.js","assets/CustomHtmlPage-DaEXsEcQ.js","assets/af-B1Gi_bpo.js","assets/esm-Dtaf0rWK.js","assets/en-B26lXzkx.js","assets/am-B-dZnhsM.js","assets/ar-dz-CxlYiKtP.js","assets/ar-iq-y4_Puo4B.js","assets/ar-kw-DTOZ0VC7.js","assets/ar-ly-lPV9gApv.js","assets/ar-ma-DZqLSpeB.js","assets/ar-sa-v-5vsIOR.js","assets/ar-tn-a4q8lhXy.js","assets/ar-DsQGp6kZ.js","assets/az-Cj4yq-j-.js","assets/be-B-3QlFM8.js","assets/bg-A8-93xdK.js","assets/bi-bwwEWGG2.js","assets/bm-DpLmtYXC.js","assets/bn-bd-DukmY_R5.js","assets/bn-DPL_BgLw.js","assets/bo-68KDEKGI.js","assets/br-gA86uwqY.js","assets/bs-SfthSp42.js","assets/ca-8qUtZKFe.js","assets/cs-CTHcqPCX.js","assets/cv-BhBW7hcO.js","assets/cy-BYTS4PNY.js","assets/da-BiwfOrRd.js","assets/de-at-C7zUXXVL.js","assets/de-ch-BVHosAzt.js","assets/de-BFqyDxvo.js","assets/dv-dvig99nB.js","assets/el-BtJcYjoT.js","assets/en-au-CWzJ565h.js","assets/en-ca-nou5bZ6q.js","assets/en-gb-kl3giCnh.js","assets/en-ie-C55e3apX.js","assets/en-il-HYabE6j7.js","assets/en-in-Bri93cNM.js","assets/en-nz-BqhpzeuX.js","assets/en-sg-q8xv-C8V.js","assets/en-tt-BqzQXPA5.js","assets/eo-5Y962E4S.js","assets/es-do-Diob7juh.js","assets/es-mx-miy7RFDh.js","assets/es-pr-CZa5Iw2n.js","assets/es-us-BX03CBQf.js","assets/es-DOQ7swrW.js","assets/et-DGWOmMlC.js","assets/eu-D1Qj8RMh.js","assets/fa--TfwKnl9.js","assets/fi-Dcbkv925.js","assets/fo-BPGX_WF4.js","assets/fr-ca-BsNs3KIJ.js","assets/fr-ch-BBmdtvlB.js","assets/fr-CNsDHzNh.js","assets/fy-q3UE-mqp.js","assets/ga-C-DOgnYh.js","assets/gd-mLMfry_l.js","assets/gl-CO8Bj9I_.js","assets/gom-latn-myglMmHV.js","assets/gu-Bdz1OpMU.js","assets/he-C4lqk2AA.js","assets/hi-h0Byc_UN.js","assets/hr-CZV7Za1n.js","assets/ht-Dg2blNvl.js","assets/hu-DbOVhd9K.js","assets/hy-am-E48Q7kWE.js","assets/id-Cd4yWevW.js","assets/is-BJZYSfrA.js","assets/it-ch-BkLqxaff.js","assets/it-BRaqqFz4.js","assets/ja-X_I-25cD.js","assets/jv-BBBx3R3v.js","assets/ka-D9Yrujqk.js","assets/kk-Bz450_o8.js","assets/km-CKOAqvHM.js","assets/kn-k2xTBR7a.js","assets/ko-BCvoCYib.js","assets/ku-D6Rloctr.js","assets/ky-C54qnEzk.js","assets/lb-y3rkrWB2.js","assets/lo-nA_dPnOU.js","assets/lt-hjPmCCML.js","assets/lv-Bh4qmUa_.js","assets/me-e32suC_n.js","assets/mi-Dwbsuyr9.js","assets/mk-DjUXwKRn.js","assets/ml-CWjFAViF.js","assets/mn-BU4qTvEl.js","assets/mr-Bvnduzfb.js","assets/ms-my-CDbnYp0g.js","assets/ms-XuKVAni7.js","assets/mt-PDuxJf8J.js","assets/my-7N6SHnsD.js","assets/nb-Cu3KUtTR.js","assets/ne-CYW0uI2a.js","assets/nl-be-B3NSF-2w.js","assets/nl-DL7cw699.js","assets/nn-BHITVkGB.js","assets/oc-lnc-dp3c4Bty.js","assets/pa-in-BxgIlP1T.js","assets/pl-GrG6yjkB.js","assets/pt-br-BxTgeF95.js","assets/pt-cVbj6hL6.js","assets/rn-DiVJ2_Jy.js","assets/ro-D1WeRyXR.js","assets/ru-DZCu4V9W.js","assets/rw-DfFpVc_g.js","assets/sd-yDyBYxtQ.js","assets/se-EJKibocp.js","assets/si-BCBV00rO.js","assets/sk-B2VvG_mo.js","assets/sl-BTYmt65M.js","assets/sq-BaLGKAHu.js","assets/sr-cyrl-CrwXFtkw.js","assets/sr-DarE-95b.js","assets/ss-CbBe1RUs.js","assets/sv-fi-CVHORXkw.js","assets/sv-Baw7Je9j.js","assets/sw-k1H_OzIi.js","assets/ta-Bc4ZaZT9.js","assets/te-ClciACZi.js","assets/tet-B75w1oSG.js","assets/tg-CuH2ARRk.js","assets/th-LvExAoJ6.js","assets/tk-2CFwTMKo.js","assets/tl-ph-CNJ_lViV.js","assets/tlh-9UbKQkHo.js","assets/tr-Cu4P4OMe.js","assets/tzl-D97WsZW-.js","assets/tzm-latn-BRGsWK-9.js","assets/tzm-CURkYgMY.js","assets/ug-cn-Cd4exKOc.js","assets/uk-DEXM3PIH.js","assets/ur-DpUycj07.js","assets/uz-latn-Baga58FN.js","assets/uz-CznjzufA.js","assets/vi-BrZWcL2C.js","assets/x-pseudo-BY6J4I7_.js","assets/yo-Dkeaym0x.js","assets/zh-cn-CiA7hMZm.js","assets/zh-hk-EkoniWh0.js","assets/zh-tw-KDgos-kB.js","assets/zh-C2fOZUKR.js","assets/ConfigFilePage-6jCYVkbr.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{i as e,n as t,t as n}from"./rolldown-runtime-CacB07dV.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var r=n((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function ee(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=ee(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=ee(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function j(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function M(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N={current:null},P={transition:null},te={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:P,ReactCurrentOwner:C};function F(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,e.act=F,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},e.unstable_act=F,e.useCallback=function(e,t){return N.current.useCallback(e,t)},e.useContext=function(e){return N.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return N.current.useDeferredValue(e)},e.useEffect=function(e,t){return N.current.useEffect(e,t)},e.useId=function(){return N.current.useId()},e.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return N.current.useMemo(e,t)},e.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},e.useRef=function(e){return N.current.useRef(e)},e.useState=function(e){return N.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return N.current.useTransition()},e.version=`18.3.1`})),i=n(((e,t)=>{t.exports=r()})),a=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,j(x);else{var t=n(l);t!==null&&M(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&M(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,ee=A.port2;A.port1.onmessage=O,k=function(){ee.postMessage(null)}}else k=function(){g(O,0)};function j(e){C=e,S||(S=!0,k())}function M(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,j(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,M(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,j(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),o=n(((e,t)=>{t.exports=a()})),s=n((e=>{var t=i(),n=o();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;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.`}var a=new Set,s={};function c(e,t){l(e,t),l(e+`Capture`,t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},m={};function h(e){return d.call(m,e)?!0:d.call(p,e)?!1:f.test(e)?m[e]=!0:(p[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),k=Symbol.for(`react.provider`),A=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),j=Symbol.for(`react.suspense`),M=Symbol.for(`react.suspense_list`),N=Symbol.for(`react.memo`),P=Symbol.for(`react.lazy`),te=Symbol.for(`react.offscreen`),F=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=F&&e[F]||e[`@@iterator`],typeof e==`function`?e:null)}var I=Object.assign,re;function L(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``}return`
|
|
3
3
|
`+re+e}var R=!1;function z(e,t){if(!e||R)return``;R=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
|
|
4
4
|
`),a=r.stack.split(`
|
|
@@ -214,9 +214,9 @@ __p += '`),r&&(m+=`' +
|
|
|
214
214
|
function print() { __p += __j.call(arguments, '') }
|
|
215
215
|
`:`;
|
|
216
216
|
`)+m+`return __p
|
|
217
|
-
}`;var v=Tf(function(){return lt(o,g+`return `+m).apply(n,l)});if(v.source=m,xu(v))throw v;return v}function hf(e){return td(e).toLowerCase()}function gf(e){return td(e).toUpperCase()}function _f(e,t,r){if(e=td(e),e&&(r||t===n))return Qn(e);if(!e||!(t=za(t)))return e;var i=yr(e),a=yr(t);return Za(i,nr(i,a),rr(i,a)+1).join(``)}function vf(e,t,r){if(e=td(e),e&&(r||t===n))return e.slice(0,br(e)+1);if(!e||!(t=za(t)))return e;var i=yr(e);return Za(i,0,rr(i,yr(t))+1).join(``)}function yf(e,t,r){if(e=td(e),e&&(r||t===n))return e.replace(We,``);if(!e||!(t=za(t)))return e;var i=yr(e);return Za(i,nr(i,yr(t))).join(``)}function bf(e,t){var r=D,i=O;if(Eu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Xu(t.length):r,i=`omission`in t?za(t.omission):i}e=td(e);var o=e.length;if(cr(e)){var s=yr(e);o=s.length}if(r>=o)return e;var c=r-vr(i);if(c<1)return i;var l=s?Za(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Lu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ft(a.source,td($e.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(za(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function xf(e){return e=td(e),e&&Pe.test(e)?e.replace(Me,xr):e}var Sf=bo(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Cf=yo(`toUpperCase`);function wf(e,t,r){return e=td(e),t=r?n:t,t===n?lr(e)?wr(e):Rn(e):e.match(t)||[]}var Tf=Ea(function(e,t){try{return Cn(e,n,t)}catch(e){return xu(e)?e:new ct(e)}}),Ef=Wo(function(e,t){return Tn(t,function(t){t=Ls(t),xi(e,t,Pl(e[t],e))}),e});function Df(e){var t=e==null?0:e.length,n=Xo();return e=t?jn(e,function(e){if(typeof e[1]!=`function`)throw new mt(o);return[n(e[0]),e[1]]}):[],Ea(function(n){for(var r=-1;++r<t;){var i=e[r];if(Cn(i[0],this,n))return Cn(i[1],this,n)}})}function Of(e){return Ti(wi(e,f))}function kf(e){return function(){return e}}function Af(e,t){return e==null||e!==e?t:e}var jf=wo(),Mf=wo(!0);function Nf(e){return e}function Pf(e){return sa(typeof e==`function`?e:wi(e,f))}function Ff(e){return fa(wi(e,f))}function If(e,t){return pa(e,wi(t,f))}var Lf=Ea(function(e,t){return function(n){return Xi(n,e,t)}}),Rf=Ea(function(e,t){return function(n){return Xi(e,n,t)}});function zf(e,t,n){var r=wd(t),i=Bi(t,r);n==null&&!(Eu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Bi(t,wd(t)));var a=!(Eu(n)&&`chain`in n)||!!n.chain,o=Cu(e);return Tn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=lo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mn([this.value()],arguments))})}),e}function Bf(){return dn._===this&&(dn._=Tt),this}function Vf(){}function Hf(e){return e=Xu(e),Ea(function(t){return ga(t,e)})}var Uf=Oo(jn),Wf=Oo(Dn),Gf=Oo(Fn);function Kf(e){return ms(e)?Gn(Ls(e)):ba(e)}function qf(e){return function(t){return e==null?n:Vi(e,t)}}var Jf=jo(),Yf=jo(!0);function Xf(){return[]}function Zf(){return!1}function Qf(){return{}}function $f(){return``}function ep(){return!0}function tp(e,t){if(e=Xu(e),e<1||e>P)return[];var n=ne,r=nn(e,ne);t=Xo(t),e-=ne;for(var i=Xn(r,t);++n<e;)t(n);return i}function np(e){return uu(e)?jn(e,Ls):Vu(e)?[e]:lo(Is(td(e)))}function rp(e){var t=++xt;return td(e)+t}var ip=Do(function(e,t){return e+t},0),ap=Po(`ceil`),op=Do(function(e,t){return e/t},1),sp=Po(`floor`);function cp(e){return e&&e.length?Mi(e,Nf,Wi):n}function lp(e,t){return e&&e.length?Mi(e,Xo(t,2),Wi):n}function up(e){return Wn(e,Nf)}function dp(e,t){return Wn(e,Xo(t,2))}function fp(e){return e&&e.length?Mi(e,Nf,ua):n}function pp(e,t){return e&&e.length?Mi(e,Xo(t,2),ua):n}var mp=Do(function(e,t){return e*t},1),hp=Po(`round`),gp=Do(function(e,t){return e-t},0);function _p(e){return e&&e.length?Yn(e,Nf):0}function vp(e,t){return e&&e.length?Yn(e,Xo(t,2)):0}return q.after=jl,q.ary=Ml,q.assign=nd,q.assignIn=rd,q.assignInWith=id,q.assignWith=ad,q.at=od,q.before=Nl,q.bind=Pl,q.bindAll=Ef,q.bindKey=Fl,q.castArray=eu,q.chain=qc,q.chunk=Vs,q.compact=Hs,q.concat=Us,q.cond=Df,q.conforms=Of,q.constant=kf,q.countBy=il,q.create=sd,q.curry=Il,q.curryRight=Ll,q.debounce=Rl,q.defaults=cd,q.defaultsDeep=ld,q.defer=zl,q.delay=Bl,q.difference=Ws,q.differenceBy=Gs,q.differenceWith=Ks,q.drop=qs,q.dropRight=Js,q.dropRightWhile=Ys,q.dropWhile=Xs,q.fill=Zs,q.filter=ol,q.flatMap=ll,q.flatMapDeep=ul,q.flatMapDepth=dl,q.flatten=ec,q.flattenDeep=tc,q.flattenDepth=nc,q.flip=Vl,q.flow=jf,q.flowRight=Mf,q.fromPairs=rc,q.functions=gd,q.functionsIn=_d,q.groupBy=ml,q.initial=oc,q.intersection=sc,q.intersectionBy=cc,q.intersectionWith=Y,q.invert=xd,q.invertBy=Sd,q.invokeMap=gl,q.iteratee=Pf,q.keyBy=_l,q.keys=wd,q.keysIn=Td,q.map=vl,q.mapKeys=Ed,q.mapValues=Dd,q.matches=Ff,q.matchesProperty=If,q.memoize=Hl,q.merge=Od,q.mergeWith=kd,q.method=Lf,q.methodOf=Rf,q.mixin=zf,q.negate=Ul,q.nthArg=Hf,q.omit=Ad,q.omitBy=jd,q.once=Wl,q.orderBy=yl,q.over=Uf,q.overArgs=Gl,q.overEvery=Wf,q.overSome=Gf,q.partial=Kl,q.partialRight=ql,q.partition=bl,q.pick=Md,q.pickBy=Nd,q.property=Kf,q.propertyOf=qf,q.pull=pc,q.pullAll=X,q.pullAllBy=mc,q.pullAllWith=hc,q.pullAt=gc,q.range=Jf,q.rangeRight=Yf,q.rearg=Jl,q.reject=Cl,q.remove=_c,q.rest=Yl,q.reverse=vc,q.sampleSize=Tl,q.set=Fd,q.setWith=Id,q.shuffle=El,q.slice=yc,q.sortBy=kl,q.sortedUniq=Tc,q.sortedUniqBy=Ec,q.split=df,q.spread=Xl,q.tail=Dc,q.take=Oc,q.takeRight=kc,q.takeRightWhile=Ac,q.takeWhile=jc,q.tap=Jc,q.throttle=Zl,q.thru=Yc,q.toArray=Ju,q.toPairs=Ld,q.toPairsIn=Rd,q.toPath=np,q.toPlainObject=$u,q.transform=zd,q.unary=Ql,q.union=Q,q.unionBy=Mc,q.unionWith=Nc,q.uniq=Pc,q.uniqBy=Fc,q.uniqWith=Ic,q.unset=Bd,q.unzip=Lc,q.unzipWith=Rc,q.update=Vd,q.updateWith=Hd,q.values=Ud,q.valuesIn=Wd,q.without=zc,q.words=wf,q.wrap=$l,q.xor=Bc,q.xorBy=Vc,q.xorWith=Hc,q.zip=Uc,q.zipObject=Wc,q.zipObjectDeep=Gc,q.zipWith=Kc,q.entries=Ld,q.entriesIn=Rd,q.extend=rd,q.extendWith=id,zf(q,q),q.add=ip,q.attempt=Tf,q.camelCase=Jd,q.capitalize=Yd,q.ceil=ap,q.clamp=Gd,q.clone=tu,q.cloneDeep=ru,q.cloneDeepWith=iu,q.cloneWith=nu,q.conformsTo=au,q.deburr=Xd,q.defaultTo=Af,q.divide=op,q.endsWith=Zd,q.eq=ou,q.escape=Qd,q.escapeRegExp=$d,q.every=al,q.find=sl,q.findIndex=Qs,q.findKey=ud,q.findLast=cl,q.findLastIndex=$s,q.findLastKey=dd,q.floor=sp,q.forEach=fl,q.forEachRight=pl,q.forIn=fd,q.forInRight=pd,q.forOwn=md,q.forOwnRight=hd,q.get=vd,q.gt=su,q.gte=cu,q.has=yd,q.hasIn=bd,q.head=ic,q.identity=Nf,q.includes=hl,q.indexOf=ac,q.inRange=Kd,q.invoke=Cd,q.isArguments=lu,q.isArray=uu,q.isArrayBuffer=du,q.isArrayLike=fu,q.isArrayLikeObject=pu,q.isBoolean=mu,q.isBuffer=hu,q.isDate=gu,q.isElement=_u,q.isEmpty=vu,q.isEqual=yu,q.isEqualWith=bu,q.isError=xu,q.isFinite=Su,q.isFunction=Cu,q.isInteger=wu,q.isLength=Tu,q.isMap=Ou,q.isMatch=ku,q.isMatchWith=Au,q.isNaN=ju,q.isNative=Mu,q.isNil=Pu,q.isNull=Nu,q.isNumber=Fu,q.isObject=Eu,q.isObjectLike=Du,q.isPlainObject=Iu,q.isRegExp=Lu,q.isSafeInteger=Ru,q.isSet=zu,q.isString=Bu,q.isSymbol=Vu,q.isTypedArray=Hu,q.isUndefined=Uu,q.isWeakMap=Wu,q.isWeakSet=Gu,q.join=lc,q.kebabCase=ef,q.last=uc,q.lastIndexOf=dc,q.lowerCase=tf,q.lowerFirst=nf,q.lt=Ku,q.lte=qu,q.max=cp,q.maxBy=lp,q.mean=up,q.meanBy=dp,q.min=fp,q.minBy=pp,q.stubArray=Xf,q.stubFalse=Zf,q.stubObject=Qf,q.stubString=$f,q.stubTrue=ep,q.multiply=mp,q.nth=fc,q.noConflict=Bf,q.noop=Vf,q.now=Al,q.pad=rf,q.padEnd=af,q.padStart=of,q.parseInt=sf,q.random=qd,q.reduce=xl,q.reduceRight=Sl,q.repeat=cf,q.replace=lf,q.result=Pd,q.round=hp,q.runInContext=e,q.sample=wl,q.size=Dl,q.snakeCase=uf,q.some=Ol,q.sortedIndex=bc,q.sortedIndexBy=xc,q.sortedIndexOf=Sc,q.sortedLastIndex=Z,q.sortedLastIndexBy=Cc,q.sortedLastIndexOf=wc,q.startCase=ff,q.startsWith=pf,q.subtract=gp,q.sum=_p,q.sumBy=vp,q.template=mf,q.times=tp,q.toFinite=Yu,q.toInteger=Xu,q.toLength=Zu,q.toLower=hf,q.toNumber=Qu,q.toSafeInteger=ed,q.toString=td,q.toUpper=gf,q.trim=_f,q.trimEnd=vf,q.trimStart=yf,q.truncate=bf,q.unescape=xf,q.uniqueId=rp,q.upperCase=Sf,q.upperFirst=Cf,q.each=fl,q.eachRight=pl,q.first=ic,zf(q,function(){var e={};return Ri(q,function(t,n){bt.call(q.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),q.VERSION=r,Tn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){q[e].placeholder=q}),Tn([`drop`,`take`],function(e,t){Pr.prototype[e]=function(r){r=r===n?1:Zt(Xu(r),0);var i=this.__filtered__&&!t?new Pr(this):this.clone();return i.__filtered__?i.__takeCount__=nn(r,i.__takeCount__):i.__views__.push({size:nn(r,ne),type:e+(i.__dir__<0?`Right`:``)}),i},Pr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Tn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==ee||n==M;Pr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Tn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);Pr.prototype[e]=function(){return this[n](1).value()[0]}}),Tn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);Pr.prototype[e]=function(){return this.__filtered__?new Pr(this):this[n](1)}}),Pr.prototype.compact=function(){return this.filter(Nf)},Pr.prototype.find=function(e){return this.filter(e).head()},Pr.prototype.findLast=function(e){return this.reverse().find(e)},Pr.prototype.invokeMap=Ea(function(e,t){return typeof e==`function`?new Pr(this):this.map(function(n){return Xi(n,e,t)})}),Pr.prototype.reject=function(e){return this.filter(Ul(Xo(e)))},Pr.prototype.slice=function(e,t){e=Xu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Pr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Xu(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},Pr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pr.prototype.toArray=function(){return this.take(ne)},Ri(Pr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=q[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(q.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof Pr,l=s[0],u=c||uu(t),d=function(e){var t=a.apply(q,Mn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new Pr(this);var g=e.apply(t,s);return g.__actions__.push({func:Yc,args:[d],thisArg:n}),new Nr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Tn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=ht[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);q.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(uu(i)?i:[],e)}return this[n](function(n){return t.apply(uu(n)?n:[],e)})}}),Ri(Pr.prototype,function(e,t){var n=q[t];if(n){var r=n.name+``;bt.call(Kn,r)||(Kn[r]=[]),Kn[r].push({name:t,func:n})}}),Kn[To(n,v).name]=[{name:`wrapper`,func:n}],Pr.prototype.clone=Fr,Pr.prototype.reverse=Ir,Pr.prototype.value=Lr,q.prototype.at=Xc,q.prototype.chain=Zc,q.prototype.commit=Qc,q.prototype.next=$c,q.prototype.plant=tl,q.prototype.reverse=nl,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=rl,q.prototype.first=q.prototype.head,It&&(q.prototype[It]=el),q})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(dn._=Tr,define(function(){return Tr})):pn?((pn.exports=Tr)._=Tr,fn._=Tr):dn._=Tr}).call(e)})),$=e(fS());de();var pS=`\0listeners`,mS=class{constructor(){V(this,`listeners`,new Map),V(this,`stop`,Symbol())}on(e,t,{warnAfter:n=10,callNow:r=!1}={}){typeof e==`string`&&(e=[e]);for(let r of e){let e=this.listeners.get(r);e||this.listeners.set(r,e=new Set),e.add(t),e.size>n&&console.warn(`Warning: many event listeners for `,r),this.emit(r+pS,e,t)}return r&&Promise.resolve().then(t).catch(console.error),()=>{for(let n of e){let e=this.listeners.get(n);e&&(e.delete(t),this.emit(n+pS,e))}}}onListeners(e,t){return this.on(e+pS,t)}once(e,t){let n,r=new Promise(r=>{n=this.on(e,function(...e){return n(),r(e.slice(0,-1)),t==null?void 0:t(...e)})});return Object.assign(n,{then:r.then.bind(r)})}multi(e,t){let n=Object.entries(e).map(([e,n])=>this.on(e.split(` `),n,t));return()=>{for(let e of n)e()}}anyListener(e){var t;return!!((t=this.listeners.get(e))!=null&&t.size)}emit(e,...t){let n=this.listeners.get(e);if(!(n!=null&&n.size))return;let r=[],i=!1,a={event:e,output:r,preventDefault(){i=!0}};for(let e of n){let n=e(...t,a);n===this.stop?a.preventDefault():n!==void 0&&r.push(n)}return Object.assign(r,{isDefaultPrevented:()=>i})}emitAsync(e,...t){var n=this;return p(function*(){let r=n.emit(e,...t);if(!r)return;let i=yield Promise.all(r);return Object.assign(i,{isDefaultPrevented:()=>r.isDefaultPrevented()||i.some(e=>e===n.stop)})})()}};new mS;var hS=`/~/api/`,gS={loginSrp1:90,login:90,get_status:20,check_update:20,get_vfs:20,self_check:15},_S={};function vS(e){Object.assign(_S,e)}function yS(e,t,n={}){var r,i,a;$.default.defaults(n,_S);let o=(r=n.modal)==null?void 0:r.call(n,e,t),s=window.AbortController?new AbortController:void 0,c=``,l=1e3*((i=(a=gS[e])==null?n.timeout:a)==null?10:i),u=l&&setTimeout(()=>{s==null||s.abort(c=`timeout`),console.debug(`API TIMEOUT`,e,t==null?``:t)},l),d=n.restUri,f=new Date;return Object.assign(fetch(`${location.origin}${d||IT()+`/~/api/`+e}`,{method:d?e:n.method||`POST`,headers:{"content-type":`application/json`,"x-hfs-anti-csrf":`1`},signal:s==null?void 0:s.signal,body:t&&JSON.stringify(t)}).then(function(){var r=p(function*(r){var i;o==null||o();let a=yield r.text(),s;try{s=n.skipParse?a:JSON.parse(a)}catch(e){s=a}if(n!=null&&n.skipLog||console.debug(r.ok?`API`:`API FAILED`,e,t==null?``:t,`>>`,s,{started:AC(f),duration:Date.now()-+f}),yield(i=n.onResponse)==null?void 0:i.call(n,r,s),!r.ok)throw new bS(r.status,s===a?a:`Failed API ${e}: ${r.statusText}`,s);return s});return function(e){return r.apply(this,arguments)}}(),e=>{var t;throw o==null||o(),!(e==null||(t=e.message)==null)&&t.includes(`fetch`)?(console.error(e.message),Error(`Server unreachable`)):c||e}).catch(e=>{throw c||e}).finally(()=>clearTimeout(u)),{abort(){s==null||s.abort(c=`cancel`)},aborted:()=>s==null?void 0:s.signal.aborted})}var bS=class extends Error{constructor(e,t,n){super(t,{cause:n}),this.code=e}get data(){return this.cause}};function xS(e,t,n={}){let[r,i,a]=cw(void 0),[o,s]=cw(void 0),[c,l]=cw(0),[d,f,p]=cw(void 0),m=(0,u.useRef)();(0,u.useEffect)(()=>{var r;s(void 0);let a=!1,o,c=()=>a||(o==null?void 0:o.aborted()),l=iC(0).then(()=>{if(!a)return o=!e||c()?void 0:yS(e,t,n),f(o),o}).then(e=>{i(c()?void 0:e),s(void 0)},e=>{s(a?void 0:e),i(void 0)}).finally(()=>{o===p()&&f(void 0),m.current=void 0});return(r=m.current)==null||r.resolve(l),()=>{a=!0,o==null||o.abort()}},[e,JSON.stringify(t),JSON.stringify(n),c]);let h=(0,u.useCallback)(()=>{m.current||(m.current=bC(),l(e=>e+1))},[l]),g=(0,u.useMemo)(()=>new mS,[]),_=(0,u.useCallback)(e=>g.on(`data`,e),[g]);return(0,u.useEffect)(()=>{g.emit(`data`)},[r]),{data:r,setData:i,getData:a,error:o,reload:h,sub:_,loading:d}}function SS(e,t,n){t=$.default.omitBy(t,$.default.isUndefined);let r=new EventSource(IT()+hS+e+AT(t));return r.onopen=()=>{console.debug(`API EVENTS`,e,t),n(`connected`)},r.onerror=e=>n(`error`,e),r.onmessage=({data:e})=>{if(!e)return n(`closed`),r.close();try{e=JSON.parse(e)}catch(t){return n(`string`,e)}console.debug(`SSE msg`,e),n(`msg`,e)},r}function CS(e,t={}){let[n,r]=cw(void 0),[i,a]=cw(void 0),[o,s]=cw(!1);return(0,u.useEffect)(()=>{let n=SS(e,t,(e,t)=>{switch(e){case`error`:return a(`Connection error`),i();case`closed`:return i();case`msg`:return n.readyState===n.CLOSED?i():r(t)}});return()=>{n.close(),i()};function i(){s(!1)}},[e,JSON.stringify(t)]),{data:n,loading:o,error:i}}var wS=n(((e,t)=>{U();var n=`\\\\/`,r=`[^${n}]`,i=0,a=`\\.`,o=`\\+`,s=`\\?`,c=`\\/`,l=`(?=.)`,u=`[^/]`,d=`(?:${c}|$)`,f=`(?:^|${c})`,p=`${a}{1,2}${d}`,m={DOT_LITERAL:a,PLUS_LITERAL:o,QMARK_LITERAL:s,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:u,END_ANCHOR:d,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${f}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${d})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${c}]`,STAR:`${u}*?`,START_ANCHOR:f,SEP:`/`},h=H(H({},m),{},{SLASH_LITERAL:`[${n}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${a}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${n}])${a}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`,SEP:`\\`});t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:i,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?h:m}}})),TS=n((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=wS();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),ES=n(((e,t)=>{var n=TS(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=wS(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,ee=!1,j=!1,M=!1,N=!1,P=!1,te=!1,F=!1,ne=!1,I=!1,re=0,L,R,z={value:``,depth:0,isGlob:!1},ie=()=>D>=x,ae=()=>E.charCodeAt(D+1),oe=()=>(L=R,E.charCodeAt(++D));for(;D<x;){R=oe();let e;if(R===a){te=z.backslashes=!0,R=oe(),R===u&&(P=!0);continue}if(P===!0||R===u){for(re++;ie()!==!0&&(R=oe());){if(R===a){te=z.backslashes=!0,oe();continue}if(R===u){re++;continue}if(P!==!0&&R===s&&(R=oe())===s){if(A=z.isBrace=!0,j=z.isGlob=!0,I=!0,S===!0)continue;break}if(P!==!0&&R===o){if(A=z.isBrace=!0,j=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===h&&(re--,re===0)){P=!1,A=z.isBrace=!0,I=!0;break}}if(S===!0)continue;break}if(R===l){if(C.push(D),w.push(z),z={value:``,depth:0,isGlob:!1},I===!0)continue;if(L===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(R===p||R===i||R===r||R===m||R===c)&&ae()===d){if(j=z.isGlob=!0,M=z.isExtglob=!0,I=!0,R===c&&D===O&&(ne=!0),S===!0){for(;ie()!==!0&&(R=oe());){if(R===a){te=z.backslashes=!0,R=oe();continue}if(R===g){j=z.isGlob=!0,I=!0;break}}continue}break}if(R===r){if(L===r&&(N=z.isGlobstar=!0),j=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===m){if(j=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===f){for(;ie()!==!0&&(e=oe());){if(e===a){te=z.backslashes=!0,oe();continue}if(e===_){ee=z.isBracket=!0,j=z.isGlob=!0,I=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&R===c&&D===O){F=z.negated=!0,O++;continue}if(b.noparen!==!0&&R===d){if(j=z.isGlob=!0,S===!0){for(;ie()!==!0&&(R=oe());){if(R===d){te=z.backslashes=!0,R=oe();continue}if(R===g){I=!0;break}}continue}break}if(j===!0){if(I=!0,S===!0)continue;break}}b.noext===!0&&(M=!1,j=!1);let B=E,se=``,ce=``;O>0&&(se=E.slice(0,O),E=E.slice(O),k-=O),B&&j===!0&&k>0?(B=E.slice(0,k),ce=E.slice(k)):j===!0?(B=``,ce=E):B=E,B&&B!==``&&B!==`/`&&B!==E&&v(B.charCodeAt(B.length-1))&&(B=B.slice(0,-1)),b.unescape===!0&&(ce&&(ce=n.removeBackslashes(ce)),B&&te===!0&&(B=n.removeBackslashes(B)));let le={prefix:se,input:e,start:O,base:B,glob:ce,isBrace:A,isBracket:ee,isGlob:j,isExtglob:M,isGlobstar:N,negated:F,negatedExtglob:ne};if(b.tokens===!0&&(le.maxDepth=0,v(R)||w.push(z),le.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=se):w[n].value=a,y(w[n]),le.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),le.maxDepth+=w[w.length-1].depth)}le.slashes=C,le.parts=T}return le}})),DS=n(((e,t)=>{U();var n=wS(),r=TS(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch(t){return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(!(!a||r!==a.repeat(r.length)||i!==a.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0){a=!1;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return`${n.length===1?r.escapeRegex(n[0]):`[${n.map(e=>r.escapeRegex(e)).join(``)}]`}*`},_=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},v=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};for(let e of i){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(_(e)>r)return{risky:!0}}return{risky:!1}},y=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d=H({},t),f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=n.globChars(d.windows),b=n.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:ee,START_ANCHOR:j}=_,M=e=>`(${g}(?:(?!${j}${e.dot?T:x}).)*?)`,N=d.dot?``:E,P=d.dot?k:A,te=d.bash===!0?M(d):ee;d.capture&&(te=`(${te})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let F={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,F),p=e.length;let ne=[],I=[],re=[],L=m,R,z=()=>F.index===p-1,ie=F.peek=(t=1)=>e[F.index+t],ae=F.advance=()=>e[++F.index]||``,oe=()=>e.slice(F.index+1),B=(e=``,t=0)=>{F.consumed+=e,F.index+=t},se=e=>{F.output+=e.output==null?e.value:e.output,B(e.value)},ce=()=>{let e=1;for(;ie()===`!`&&(ie(2)!==`(`||ie(3)===`?`);)ae(),F.start++,e++;return e%2==0?!1:(F.negated=!0,F.start++,!0)},le=e=>{F[e]++,re.push(e)},ue=e=>{F[e]--,re.pop()},V=e=>{if(L.type===`globstar`){let t=F.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||ne.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(F.output=F.output.slice(0,-L.output.length),L.type=`star`,L.value=`*`,L.output=te,F.output+=L.output)}if(ne.length&&e.type!==`paren`&&(ne[ne.length-1].inner+=e.value),(e.value||e.output)&&se(e),L&&L.type===`text`&&e.type===`text`){L.output=(L.output||L.value)+e.value,L.value+=e.value;return}e.prev=L,h.push(e),L=e},de=(e,t)=>{let n=H(H({},b[t]),{},{conditions:1,inner:``});n.prev=L,n.parens=F.parens,n.output=F.output,n.startIndex=F.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;le(`parens`),V({type:e,value:t,output:F.output?``:w}),V({type:`paren`,extglob:!0,value:ae(),output:r}),ne.push(n)},fe=n=>{let i=e.slice(n.startIndex,F.index+1),a=v(e.slice(n.startIndex+2,F.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:w)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;F.output=n.output+t.output,F.backtrack=!0,V({type:`paren`,extglob:!0,value:R,output:``}),ue(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=te;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=M(d)),(e!==te||z()||/^\)+$/.test(oe()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=oe())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${y(s,H(H({},t),{},{fastpaths:!1})).output})${e})`),n.prev.type===`bos`&&(F.negatedExtglob=!0)}V({type:`paren`,extglob:!0,value:R,output:o}),ue(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?P+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?te:``):te:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(F.output=e,F):(F.output=r.wrapOutput(i,F,t),F)}for(;!z();){if(R=ae(),R===`\0`)continue;if(R===`\\`){let e=ie();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){R+=`\\`,V({type:`text`,value:R});continue}let t=/^\\+/.exec(oe()),n=0;if(t&&t[0].length>2&&(n=t[0].length,F.index+=n,n%2!=0&&(R+=`\\`)),d.unescape===!0?R=ae():R+=ae(),F.brackets===0){V({type:`text`,value:R});continue}}if(F.brackets>0&&(R!==`]`||L.value===`[`||L.value===`[^`)){if(d.posix!==!1&&R===`:`){let e=L.value.slice(1);if(e.includes(`[`)&&(L.posix=!0,e.includes(`:`))){let e=L.value.lastIndexOf(`[`),t=L.value.slice(0,e),n=a[L.value.slice(e+2)];if(n){L.value=t+n,F.backtrack=!0,ae(),!m.output&&h.indexOf(L)===1&&(m.output=w);continue}}}(R===`[`&&ie()!==`:`||R===`-`&&ie()===`]`)&&(R=`\\${R}`),R===`]`&&(L.value===`[`||L.value===`[^`)&&(R=`\\${R}`),d.posix===!0&&R===`!`&&L.value===`[`&&(R=`^`),L.value+=R,se({value:R});continue}if(F.quotes===1&&R!==`"`){R=r.escapeRegex(R),L.value+=R,se({value:R});continue}if(R===`"`){F.quotes=F.quotes===1?0:1,d.keepQuotes===!0&&V({type:`text`,value:R});continue}if(R===`(`){le(`parens`),V({type:`paren`,value:R});continue}if(R===`)`){if(F.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=ne[ne.length-1];if(e&&F.parens===e.parens+1){fe(ne.pop());continue}V({type:`paren`,value:R,output:F.parens?`)`:`\\)`}),ue(`parens`);continue}if(R===`[`){if(d.nobracket===!0||!oe().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));R=`\\${R}`}else le(`brackets`);V({type:`bracket`,value:R});continue}if(R===`]`){if(d.nobracket===!0||L&&L.type===`bracket`&&L.value.length===1){V({type:`text`,value:R,output:`\\${R}`});continue}if(F.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));V({type:`text`,value:R,output:`\\${R}`});continue}ue(`brackets`);let e=L.value.slice(1);if(L.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(R=`/${R}`),L.value+=R,se({value:R}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(L.value);if(F.output=F.output.slice(0,-L.value.length),d.literalBrackets===!0){F.output+=t,L.value=t;continue}L.value=`(${g}${t}|${L.value})`,F.output+=L.value;continue}if(R===`{`&&d.nobrace!==!0){le(`braces`);let e={type:`brace`,value:R,output:`(`,outputIndex:F.output.length,tokensIndex:F.tokens.length};I.push(e),V(e);continue}if(R===`}`){let e=I[I.length-1];if(d.nobrace===!0||!e){V({type:`text`,value:R,output:R});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),F.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=F.output.slice(0,e.outputIndex),r=F.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,R=t=`\\}`,F.output=n;for(let e of r)F.output+=e.output||e.value}V({type:`brace`,value:R,output:t}),ue(`braces`),I.pop();continue}if(R===`|`){ne.length>0&&ne[ne.length-1].conditions++,V({type:`text`,value:R});continue}if(R===`,`){let e=R,t=I[I.length-1];t&&re[re.length-1]===`braces`&&(t.comma=!0,e=`|`),V({type:`comma`,value:R,output:e});continue}if(R===`/`){if(L.type===`dot`&&F.index===F.start+1){F.start=F.index+1,F.consumed=``,F.output=``,h.pop(),L=m;continue}V({type:`slash`,value:R,output:C});continue}if(R===`.`){if(F.braces>0&&L.type===`dot`){L.value===`.`&&(L.output=x);let e=I[I.length-1];L.type=`dots`,L.output+=R,L.value+=R,e.dots=!0;continue}if(F.braces+F.parens===0&&L.type!==`bos`&&L.type!==`slash`){V({type:`text`,value:R,output:x});continue}V({type:`dot`,value:R,output:x});continue}if(R===`?`){if(!(L&&L.value===`(`)&&d.noextglob!==!0&&ie()===`(`&&ie(2)!==`?`){de(`qmark`,R);continue}if(L&&L.type===`paren`){let e=ie(),t=R;(L.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(oe()))&&(t=`\\${R}`),V({type:`text`,value:R,output:t});continue}if(d.dot!==!0&&(L.type===`slash`||L.type===`bos`)){V({type:`qmark`,value:R,output:A});continue}V({type:`qmark`,value:R,output:k});continue}if(R===`!`){if(d.noextglob!==!0&&ie()===`(`&&(ie(2)!==`?`||!/[!=<:]/.test(ie(3)))){de(`negate`,R);continue}if(d.nonegate!==!0&&F.index===0){ce();continue}}if(R===`+`){if(d.noextglob!==!0&&ie()===`(`&&ie(2)!==`?`){de(`plus`,R);continue}if(L&&L.value===`(`||d.regex===!1){V({type:`plus`,value:R,output:S});continue}if(L&&(L.type===`bracket`||L.type===`paren`||L.type===`brace`)||F.parens>0){V({type:`plus`,value:R});continue}V({type:`plus`,value:S});continue}if(R===`@`){if(d.noextglob!==!0&&ie()===`(`&&ie(2)!==`?`){V({type:`at`,extglob:!0,value:R,output:``});continue}V({type:`text`,value:R});continue}if(R!==`*`){(R===`$`||R===`^`)&&(R=`\\${R}`);let e=o.exec(oe());e&&(R+=e[0],F.index+=e[0].length),V({type:`text`,value:R});continue}if(L&&(L.type===`globstar`||L.star===!0)){L.type=`star`,L.star=!0,L.value+=R,L.output=te,F.backtrack=!0,F.globstar=!0,B(R);continue}let t=oe();if(d.noextglob!==!0&&/^\([^?]/.test(t)){de(`star`,R);continue}if(L.type===`star`){if(d.noglobstar===!0){B(R);continue}let n=L.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){V({type:`star`,value:R,output:``});continue}let o=F.braces>0&&(n.type===`comma`||n.type===`brace`),s=ne.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){V({type:`star`,value:R,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[F.index+4];if(n&&n!==`/`)break;t=t.slice(3),B(`/**`,3)}if(n.type===`bos`&&z()){L.type=`globstar`,L.value+=R,L.output=M(d),F.output=L.output,F.globstar=!0,B(R);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&z()){F.output=F.output.slice(0,-(n.output+L.output).length),n.output=`(?:${n.output}`,L.type=`globstar`,L.output=M(d)+(d.strictSlashes?`)`:`|$)`),L.value+=R,F.globstar=!0,F.output+=n.output+L.output,B(R);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;F.output=F.output.slice(0,-(n.output+L.output).length),n.output=`(?:${n.output}`,L.type=`globstar`,L.output=`${M(d)}${C}|${C}${e})`,L.value+=R,F.output+=n.output+L.output,F.globstar=!0,B(R+ae()),V({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){L.type=`globstar`,L.value+=R,L.output=`(?:^|${C}|${M(d)}${C})`,F.output=L.output,F.globstar=!0,B(R+ae()),V({type:`slash`,value:`/`,output:``});continue}F.output=F.output.slice(0,-L.output.length),L.type=`globstar`,L.output=M(d),L.value+=R,F.output+=L.output,F.globstar=!0,B(R);continue}let n={type:`star`,value:R,output:te};if(d.bash===!0){n.output=`.*?`,(L.type===`bos`||L.type===`slash`)&&(n.output=N+n.output),V(n);continue}if(L&&(L.type===`bracket`||L.type===`paren`)&&d.regex===!0){n.output=R,V(n);continue}(F.index===F.start||L.type===`slash`||L.type===`dot`)&&(L.type===`dot`?(F.output+=D,L.output+=D):d.dot===!0?(F.output+=O,L.output+=O):(F.output+=N,L.output+=N),ie()!==`*`&&(F.output+=w,L.output+=w)),V(n)}for(;F.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));F.output=r.escapeLast(F.output,`[`),ue(`brackets`)}for(;F.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));F.output=r.escapeLast(F.output,`(`),ue(`parens`)}for(;F.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));F.output=r.escapeLast(F.output,`{`),ue(`braces`)}if(d.strictSlashes!==!0&&(L.type===`star`||L.type===`bracket`)&&V({type:`maybe_slash`,value:``,output:`${C}?`}),F.backtrack===!0){F.output=``;for(let e of F.tokens)F.output+=e.output==null?e.value:e.output,e.suffix&&(F.output+=e.suffix)}return F};y.fastpaths=(e,t)=>{let a=H({},t),o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=y})),OS=e(n(((e,t)=>{U();var n=ES(),r=DS(),i=TS(),a=wS(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e=H(H({},t),{},{ignore:null,onMatch:null,onResult:null});u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,H(H({},t),{},{fastpaths:!1})),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s}))()),kS=`rejetto/hfs`,AS=`allow_session_ip_change`,jS=`hideInTests`,MS=`maskInTests`,NS=1024;NS*NS;var PS=FS(`accounts.acme_domain.acme_renew.admin_net.allowed_referer.authorization_header.auto_basic.auto_check_update.auto_play_seconds.base_url.block.cache_control_disk_files.cert.comments_storage.create-admin.debug.delete_unfinished_uploads_after.descript_ion.descript_ion_encoding.disable_custom_html.disableTranslation.dont_log_net.dont_overwrite_uploading.dynamic_dns_url.enable_plugins.error_log.favicon.file_menu_on_link.file_timeout.folders_first.force_address.force_https.force_lang.force_webdav_login.geo_allow.geo_allow_unknown.geo_enable.geo_ignore_net.geo_list.ignore_proxies.invert_order.keep_session_alive.listen_interface.localhost_admin.log.log_api.log_gui.log_host.log_rotation.log_spam.log_ua.mapped_port.max_downloads.max_downloads_per_account.max_downloads_per_ip.max_kbps.max_kbps_per_ip.menu_at_top.mime.min_available_mb.open_browser_at_start.outbound_interface.outbound_proxy.own_upload_delete_hours.page_size.plugins_config.port.private_key.proxies.roots.server_code.session_duration.show_hidden_files.show_uploader.size_1024.smart_unc_folder_detection.sort_by.sort_numerics.split_uploads.suspend_plugins.theme.tile_size.title.title_with_path.track_ips.update_to_beta.upnp_enabled.version.vfs.webdav_initial_auth.zip_calculate_size_for_seconds.https_port`.split(`.`));function FS(e){return Object.fromEntries(e.map(e=>[e,e]))}var IS={401:`Unauthorized`,403:`Forbidden`,404:`Not found`,500:`Server error`,429:`Too many requests`};function LS(e,t){this.v=e,this.k=t}function RS(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof LS;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`?`return`:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(a.done?`return`:`normal`,n)},function(e){r(`throw`,e)})}catch(e){i(`throw`,e)}}function i(e,i){switch(e){case`return`:t.resolve({value:i,done:!0});break;case`throw`:t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}RS.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},RS.prototype.next=function(e){return this._invoke(`next`,e)},RS.prototype.throw=function(e){return this._invoke(`throw`,e)},RS.prototype.return=function(e){return this._invoke(`return`,e)},U();var zS=`https://rejetto.com/hfs/`,BS=`https://github.com/${kS}/`,VS=BS+`wiki/`,HS=6e4,US=60*HS,WS=24*US;PS.file_menu_on_link,PS.menu_at_top,PS.tile_size,PS.page_size,PS.sort_by,PS.invert_order,PS.folders_first,PS.sort_numerics,PS.title_with_path,PS.theme,PS.auto_play_seconds,PS.disableTranslation;var GS=[`name`,`extension`,`size`,`time`,`creation`],KS={auto:``,light:`light`,dark:`dark`},qS={add:`+`,remove:`-`,update:`=`,props:`props`,ready:`ready`,error:`e`},JS=`admin`,YS={can_read:!0,can_see:`can_read`,can_list:`can_read`,can_archive:`can_read`,can_upload:JS,can_delete:JS},XS=EC(YS),ZS=[`name`,`source`,`masks`,`default`,`accept`,`rename`,`mime`,`url`,`target`,`comment`,`icon`,`order`,`see_without_probing`,`children`,...XS];function QS(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var $S=[``,`K`,`M`,`G`,`T`];function eC(e,{post:t=`B`,k:n=0,digits:r=NaN,sep:i=` `}={}){var a;if(isNaN(Number(e))||e<0)return``;n||(n=(a=eC.k)==null?1024:a);let o=e&&Math.min($S.length-1,Math.floor(Math.log2(e)/Math.log2(n)));return e/=Math.pow(n,o),(o&&!isNaN(r)?e.toFixed(r):$.default.round(e,isNaN(r)?e>=100?0:1:r))+i+($S[o]||``)+t}function tC(e,t={}){return eC(e,H({post:`B/s`},t))}function nC(e,t,n=``){return t?(e||``)+t+(n||``):``}function rC(e,t,n=`/`){if(!t)return e;if(!e)return t;let r=e.at(-1)===n,i=t[0]===n;return e+(!r&&!i?n+t:r&&i?t.slice(1):t)}function iC(e,t){return new Promise(n=>setTimeout(n,e,t))}function aC(e,t){return Object.fromEntries(e.map(e=>[e,t(e)]))}function oC(e){return/[\\/]$/.test(e)}function sC(e,t=``,n=!1){return(t?!t.endsWith(e):n)?t+e:t}function cC(e,t){return t.startsWith(e)?t.slice(e.length):t}function lC(e,t){if(typeof e==`number`)return[t.slice(0,e),t.slice(e+1)];let n=t.indexOf(e);return n<0?[t,``]:[t.slice(0,n),t.slice(n+e.length)]}function uC(e,t){let n=t.indexOf(e);return n<0?``:t.slice(n+e.length)}function dC(e,t,n=!0){let r=t.indexOf(e);return r>=0?t.slice(0,r):n?``:t}function fC(e){return!!e}function pC(e){return e.filter(fC)}function mC(e,t){return Object.defineProperties(e,TC(t,e=>({enumerable:!1,writable:!0,value:e})))}function hC(e,t){try{return e()}catch(e){return t==null?void 0:t(e)}}function gC(e,t){return t(e)}function _C(e){return(e*100).toFixed(1)+`%`}function vC(e){return e==null?[]:Array.isArray(e)?e:[e]}function yC(e){return e}function bC(){let e,t=new Promise((t,n)=>e={resolve:t,reject:n});return Object.assign(t,e)}function xC(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function SC(e,t,n){let r=e[t];return e[t]=e[n],e[n]=r,e}function CC(e,t){return $.default.isEqualWith(e,t,(e,t)=>{if(!$.default.isPlainObject(e)||!$.default.isPlainObject(t))return;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n,i)=>{let a=r[i];return n===a&&CC(e[n],t[a])})})}function wC(e,t){if(e)for(let n in e){let r=t(e[n],n);if(r!==void 0)return r}}function TC(e,t,n=!1){let r,i=Object.entries(e||{}).map(([e,i])=>{let o=typeof n==`number`?n:0;r=e;let s=t(i,e,a,o);return(n!==!1||t.length===4)&&$.default.isPlainObject(s)&&(s=TC(s,t,o+1)),r!==void 0&&[r,s]});return Object.fromEntries(pC(i));function a(e){return r=e,!0}}function EC(e){return Object.keys(e)}function DC(e){return Object.entries(e)}function OC(e,t){let n=!1;return p(function*(){for(;!n;){try{yield t(r)}catch(e){}yield iC(e)}})(),r;function r(){n=!0}}function kC(e,t=!0){return e?(e instanceof Date||(e=new Date(e)),jC(e)+` `+AC(e,t)):``}function AC(e,t=!0){return String(e.getHours()).padStart(2,`0`)+`:`+String(e.getMinutes()).padStart(2,`0`)+(t?`:`+String(e.getSeconds()).padStart(2,`0`):``)}function jC(e){return[e.getFullYear(),e.getMonth()+1,e.getDate()].map(e=>e.toString().padStart(2,`0`)).join(`-`)}function MC(e){return $.default.isNumber(e)||$.default.isString(e)&&!isNaN(Number(e))}function NC(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function PC(e){return/^([.:\da-f]+)$/i.test(e)}function FC(e){return e&&/^[a-zA-Z]:$/.test(e)}function IC(e){return typeof e==`string`&&/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z*$/.test(e)}function LC(e,t,n){var r;return(r=n==null?void 0:n(e,t))==null?e==t||e&&t&&typeof e==`object`&&typeof t==`object`&&Object.entries(e).every(([e,r])=>LC(r,t[e],n))&&Object.entries(t).every(([t,r])=>t in e||LC(r,e[t],n)):r}function RC(e,t){var n;return(n=t[e])==null?e:n}function zC(e){return e[0]===`[`?e.slice(1,e.indexOf(`]`)):e.split(`:`)[0]}function BC(e){return e===`::1`||/^(?:::ffff:)?127\.0\.0\.1$/i.test(e)}function VC(e){return/^(?:10\.|172\.(1[6-9]|2\d|3[01])\.|192\.168\.|fe80::)/.test(e)}function HC(e){if(e.startsWith(`[`))return e;let t=e.indexOf(`:`);return t>=0&&e.indexOf(`:`,t+1)>=0?`[${e}]`:e}function UC(e,t=!1){return t?encodeURI(e).replace(/#/g,escape):e.replace(/[:&#'"% ?\\]/g,escape)}function WC(e){return decodeURI(e).replace(/%23/g,`#`)}function GC(e,t=!1,n=!0){if(!e)return()=>t;let r=e.replace(/^(!)?/,`$1(`)+`)`,i={nocase:!0,noextglob:!n};return/\)\)[+*]/.test(OS.default.makeRe(r,i).source)?()=>!1:(0,OS.default)(r,i)}function KC(e,t,n=!1){var r;let i=KC.cache||(KC.cache={});return(i[r=t+(n?`1`:`0`)]||(i[r]=GC(t,n)))(e)}function qC(e,t,n=``){let[r,i]=lC(` `,n);for(let[n,a]of Object.entries(t))e=e.replaceAll(r+n+i,a);return e}function JC(e,t,n,r=!1){let i=n==null?(e=>e!==void 0):n;return e[r?`reduceRight`:`reduce`]((e,n,r)=>{let a=t(n,r);return i(a)&&e.push(a),e},[])}function YC(e,...t){return $.default.isFunction(e)?e(...t):e}function XC(e,t=e){try{return decodeURIComponent(e)}catch(e){return t}}function ZC(e){return Array.isArray(e)?e.slice():H({},e)}function QC(e){var t;return $.default.findKey($C,t=>t.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}var $C={YaBrowser:/yabrowser/i,AlamoFire:/alamofire/i,Edge:/edge|edga|edgios|edg/i,PhantomJS:/phantomjs/i,Konqueror:/konqueror/i,Amaya:/amaya/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Opera:/opera|OPR\//i,Chromium:/chromium/i,Facebook:/FBA[NV]/,Chrome:/chrome|crios/i,WinJs:/msapphost/i,IE:/msie|trident/i,Firefox:/firefox|fxios/i,Safari:/safari/i,PS5:/playstation 5/i,PS4:/playstation 4/i,PS3:/playstation 3/i,PSP:/playstation portable/i,PS:/playstation/i,Xbox:/xbox/i,UC:/UCBrowser/i,Finder:/WebDAVFS.+Darwin|WebDAVLib/,Cyberduck:/^Cyberduck/,ForkLift:/^ForkLift/,Explorer:/^Microsoft-WebDAV-MiniRedir/},ew=typeof window<`u`?u.useLayoutEffect:u.useEffect;function tw(e,t,n,r){let i=(0,u.useRef)(t);ew(()=>{i.current=t},[t]),(0,u.useEffect)(()=>{var t;let a=(t=n==null?void 0:n.current)==null?window:t;if(!(a&&a.addEventListener))return;let o=e=>i.current(e);return a.addEventListener(e,o,r),()=>{a.removeEventListener(e,o,r)}},[e,n,r])}var nw=e=>typeof window<`u`?window.matchMedia(e).matches:!1;function rw(e){let[t,n]=(0,u.useState)(nw(e));return(0,u.useEffect)(()=>{function t(){n(nw(e))}let r=window.matchMedia(e);return t(),r.addListener?r.addListener(t):r.addEventListener(`change`,t),()=>{r.removeListener?r.removeListener(t):r.removeEventListener(`change`,t)}},[e]),t}function iw(e,t){let[n,r]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function aw(){let e=(0,u.useRef)(!1);return(0,u.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,u.useCallback)(()=>e.current,[])}function ow(){let[e,t]=(0,u.useState)({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return tw(`resize`,n),ew(()=>{n()},[]),e}U();var sw=[`margin`];function cw(e){let t=aw(),[n,r]=(0,u.useState)(e),i=(0,u.useRef)(e);return i.current=n,[n,(0,u.useCallback)(e=>{t()&&r(e)},[t,r]),()=>i.current]}function lw(e){return e.filter(e=>e===0||e&&(!Array.isArray(e)||e.length))}function uw(e,t){let n=[];for(let r of lw(t))n.push(r,e);return n.splice(-1,1),dw(n)}function dw(e){return e.map((e,t)=>!e||typeof e==`string`?e:Array.isArray(e)?dw(e):(0,u.createElement)(u.Fragment,{key:t,children:e}))}function fw(){let[e,t]=(0,u.useState)(0);return Object.assign((0,u.useCallback)(()=>t(e=>e+1),[t]),{state:e})}function pw(e,t,{delay:n=0,expireAfter:r=0,depend:i=0}={}){let a=pw.worker2env||(pw.worker2env=e&&new Map),o=a&&a.get(e);o&&!$.default.isEqual(o.depend,i)&&(o=void 0),o||(o=a&&(()=>{let t={batch:new Set,cache:new Map,depend:i};return a.set(e,t),t})());let s=fw();(0,u.useEffect)(()=>{var t;e&&((t=o).waiter||(t.waiter=new Promise(t=>{setTimeout(p(function*(){try{if(!o.batch.size)return;let n=[...o.batch.values()];o.batch.clear(),e(n).then(e=>{n.forEach((t,n)=>{var r;return o.cache.set(t,(r=e[n])==null?null:r)})}).finally(t),r&&setTimeout(()=>{for(let e of n)o.cache.delete(e)},r)}finally{o.waiter=void 0}}),n)}))).then(s)},[e,s.state]);let c=o&&o.cache.get(t);return(0,u.useEffect)(()=>{o&&c===void 0&&(s(),o.batch.add(t))},[o,t,c]),{data:c,refresh(){o&&(o.batch.add(t),s())}}}function mw(e){let{margin:t}=e,n=G(e,sw),r=(0,u.useRef)(),[i,a]=(0,u.useState)();return(0,u.useEffect)(()=>{let e=r.current;if(!e)return;let n=e.getBoundingClientRect(),i=document.documentElement;a((window.innerHeight||i.clientHeight)-(n==null?void 0:n.top)-t)},[ow()]),(0,u.createElement)(`div`,H({ref:r,style:{maxHeight:i,overflow:`auto`}},n))}function hw(){return rw(`(pointer:coarse)`)}function gw(){return _w((0,u.useCallback)((e,t,n,r)=>{Object.assign(document.documentElement.style,{scrollPaddingTop:`${t+(parseFloat(r.top)||0)}px`,scrollPaddingBottom:`${t+(parseFloat(r.bottom)||0)}px`})},[])).refToPass}function _w(e){let t=(0,u.useRef)(null),n=(0,u.useRef)($.default.noop);return(0,u.useMemo)(()=>{let r=-1,i=-1;function a(t){let n=getComputedStyle(t),a=(t.clientWidth||t.getBoundingClientRect().width)+parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderRightWidth)-parseFloat(n.borderLeftWidth),o=(t.clientHeight||t.getBoundingClientRect().height)+parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderBottomWidth)-parseFloat(n.borderTopWidth);(a!==r||o!==i)&&e(r=a,i=o,t,n)}return{ref:t,refToPass(e){if(t.current=e,n.current(),n.current=$.default.noop,!e)return;if(!window.ResizeObserver)return n.current=OC(500,()=>a(e));let r=new ResizeObserver($.default.debounce(e=>a(e[0].target),10));r.observe(e),n.current=()=>r.disconnect()}}},[e])}function vw(){let[e,t]=(0,u.useState)(),{refToPass:n,ref:r}=_w((0,u.useCallback)((e,n)=>t([e,n]),[]));return(0,u.useMemo)(()=>({w:e==null?void 0:e[0],h:e==null?void 0:e[1],ref:r,refToPass:n}),[e,r])}function yw({children:e}){return e?(0,u.createElement)(`div`,{className:`ariaOnly`},e):null}var bw=navigator.platform.match(`Mac`);function xw(e){return(e.ctrlKey||bw&&e.metaKey)&&e.key}function Sw(e){let t=(0,u.useRef)(null),n=(0,u.useRef)(),[r,i]=(0,u.useState)(!0);return(0,u.useEffect)(()=>{let{current:e}=t;r&&(e==null||e.scrollTo(0,e.scrollHeight))},[r,e]),(0,u.useCallback)(e=>{var r;t.current=e,(r=n.current)==null||r.call(n),e&&(n.current=jT(`scroll`,e=>{let t=e.target;t&&i(t.scrollTop+t.clientHeight>=t.scrollHeight-3)},{target:e}))},[])}var Cw=Symbol(),ww=Symbol(),Tw=`a`,Ew=`w`,Dw=(e,t)=>new Proxy(e,t),Ow=Object.getPrototypeOf,kw=new WeakMap,Aw=e=>e&&(kw.has(e)?kw.get(e):Ow(e)===Object.prototype||Ow(e)===Array.prototype),jw=e=>typeof e==`object`&&!!e,Mw=e=>{if(Array.isArray(e))return Array.from(e);let t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(Ow(e),t)},Nw=e=>e[ww]||e,Pw=(e,t,n,r)=>{if(!Aw(e))return e;let i=r&&r.get(e);if(!i){let t=Nw(e);i=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.configurable&&!e.writable))(t)?[t,Mw(t)]:[t],r==null||r.set(e,i)}let[a,o]=i,s=n&&n.get(a);return s&&s[1].f===!!o||(s=((e,t)=>{let n={f:t},r=!1,i=(t,i)=>{if(!r){let r=n[Tw].get(e);if(r||(r={},n[Tw].set(e,r)),t===Ew)r[Ew]=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(i)}}},a={get:(t,r)=>r===ww?e:(i(`k`,r),Pw(Reflect.get(t,r),n[Tw],n.c,n.t)),has:(t,a)=>a===Cw?(r=!0,n[Tw].delete(e),!0):(i(`h`,a),Reflect.has(t,a)),getOwnPropertyDescriptor:(e,t)=>(i(`o`,t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(i(Ew),Reflect.ownKeys(e))};return t&&(a.set=a.deleteProperty=()=>!1),[a,n]})(a,!!o),s[1].p=Dw(o||a,s[0]),n&&n.set(a,s)),s[1][Tw]=t,s[1].c=n,s[1].t=r,s[1].p},Fw=(e,t,n,r,i=Object.is)=>{if(i(e,t))return!1;if(!jw(e)||!jw(t))return!0;let a=n.get(Nw(e));if(!a)return!0;if(r){let n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let o=null;try{for(let n of a.h||[])if(o=Reflect.has(e,n)!==Reflect.has(t,n),o)return o;if(!0===a[Ew]){if(o=((e,t)=>{let n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((e,t)=>e!==r[t])})(e,t),o)return o}else for(let n of a.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),o)return o;for(let s of a.k||[])if(o=Fw(e[s],t[s],n,r,i),o)return o;return o===null&&(o=!0),o}finally{r&&r.set(e,{n:t,g:o})}},Iw=e=>Aw(e)&&e[ww]||null,Lw=(e,t=!0)=>{kw.set(e,t)},Rw=e=>typeof e==`object`&&!!e,zw=new WeakMap,Bw=new WeakSet,[Vw]=((e=Object.is,t=(e,t)=>new Proxy(e,t),n=e=>Rw(e)&&!Bw.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:throw e}},i=new WeakMap,a=(e,t,n=r)=>{let o=i.get(e);if((o==null?void 0:o[0])===t)return o[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return Lw(s,!0),i.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let r=Reflect.get(e,t),{enumerable:i}=Reflect.getOwnPropertyDescriptor(e,t),o={value:r,enumerable:i,configurable:!0};if(Bw.has(r))Lw(r,!1);else if(r instanceof Promise)delete o.value,o.get=()=>n(r);else if(zw.has(r)){let[e,t]=zw.get(r);o.value=a(e,t(),n)}Object.defineProperty(s,t,o)}),Object.preventExtensions(s)},o=new WeakMap,s=[1,1],c=r=>{if(!Rw(r))throw Error(`object required`);let i=o.get(r);if(i)return i;let l=s[0],u=new Set,d=(e,t=++s[0])=>{l!==t&&(l=t,u.forEach(n=>n(e,t)))},f=s[1],p=(e=++s[1])=>(f!==e&&!u.size&&(f=e,h.forEach(([t])=>{let n=t[1](e);n>l&&(l=n)})),l),m=e=>(t,n)=>{let r=[...t];r[1]=[e,...r[1]],d(r,n)},h=new Map,g=(e,t)=>{if(u.size){let n=t[3](m(e));h.set(e,[t,n])}else h.set(e,[t])},_=e=>{var t;let n=h.get(e);n&&(h.delete(e),(t=n[1])==null||t.call(n))},v=e=>(u.add(e),u.size===1&&h.forEach(([e,t],n)=>{let r=e[3](m(n));h.set(n,[e,r])}),()=>{u.delete(e),u.size===0&&h.forEach(([e,t],n)=>{t&&(t(),h.set(n,[e]))})}),y=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),b=t(y,{deleteProperty(e,t){let n=Reflect.get(e,t);_(t);let r=Reflect.deleteProperty(e,t);return r&&d([`delete`,[t],n]),r},set(t,r,i,a){let s=Reflect.has(t,r),l=Reflect.get(t,r,a);if(s&&(e(l,i)||o.has(i)&&e(l,o.get(i))))return!0;_(r),Rw(i)&&(i=Iw(i)||i);let u=i;if(i instanceof Promise)i.then(e=>{i.status=`fulfilled`,i.value=e,d([`resolve`,[r],e])}).catch(e=>{i.status=`rejected`,i.reason=e,d([`reject`,[r],e])});else{!zw.has(i)&&n(i)&&(u=c(i));let e=!Bw.has(u)&&zw.get(u);e&&g(r,e)}return Reflect.set(t,r,u,a),d([`set`,[r],i,l]),!0}});o.set(r,b);let x=[y,p,a,v];return zw.set(b,x),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);`value`in t&&(b[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(y,e,t)}),b})=>[c,zw,Bw,e,t,n,r,i,a,o,s])();function Hw(e={}){return Vw(e)}function Uw(e,t,n){let r=zw.get(e),i,a=[],o=r[3],s=!1,c=o(e=>{if(a.push(e),n){t(a.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(a.splice(0))}))});return s=!0,()=>{s=!1,c()}}function Ww(e,t){let[n,r,i]=zw.get(e);return i(n,r(),t)}function Gw(e){return Bw.add(e),e}var{use:Kw}=u.default,{useSyncExternalStore:qw}=C.default,Jw=new WeakMap;function Yw(e,t){let n=t==null?void 0:t.sync,r=(0,u.useRef)(),i=(0,u.useRef)(),a=!0,o=qw((0,u.useCallback)(t=>{let r=Uw(e,t,n);return t(),r},[e,n]),()=>{let t=Ww(e,Kw);try{if(!a&&r.current&&i.current&&!Fw(r.current,t,i.current,new WeakMap))return r.current}catch(e){}return t},()=>Ww(e,Kw));a=!1;let s=new WeakMap;return(0,u.useEffect)(()=>{r.current=o,i.current=s}),Pw(o,s,(0,u.useMemo)(()=>new WeakMap,[]),Jw)}U();var Xw=Hw([]),{history:Zw}=window,Qw={closableProps:{children:`x`,"aria-label":`Close`},padding:!0},$w=[`input:not([type="hidden"])`,`button`,`select`,`textarea`,`a[href]`,`[tabindex]`].map(e=>e+`:not([disabled]):not([tabindex="-1"])`).join(`,`);window.addEventListener(`keydown`,e=>{e.key===`Tab`&&eT(e.target,e.shiftKey)&&e.preventDefault()});function eT(e,t=!1){let n=document.querySelectorAll(`[role$=dialog]`),r=n[n.length-1];if(!r)return;let i=r.querySelectorAll($w),a=i.length;if(!a)return;let[o,s]=t?[a-1,0]:[0,a-1];if(!(e!==i[s]&&tT(document.activeElement,r)))return i[o].focus(),!0}function tT(e,t){if(!t)return!1;let n=typeof t==`function`;for(;e;){if(n?t(e):e===t)return!0;e=e.parentNode}return!1}var nT=Promise.resolve(),rT=Promise.resolve(),iT=0;function aT(){return oT.apply(this,arguments)}function oT(){return oT=p(function*(){let e=Zw.state;return new Promise(function(){var t=p(function*(t){let n=Date.now()+1500,r=0;for(;e===Zw.state;){let e=Date.now();if(e>n)break;if(e-r>1e3){var i;if(((i=Zw.state)==null?void 0:i.$dialog)===void 0||Zw.state.$dialog===lT)break;iT++,Zw.back(),r=e}yield iC(10)}t()});return function(e){return t.apply(this,arguments)}}())}),oT.apply(this,arguments)}function sT(){return cT.apply(this,arguments)}function cT(){return cT=p(function*(){return nT=nT.then(aT)}),cT.apply(this,arguments)}var lT=1;p(function*(){for(var e;((e=Zw.state)==null?void 0:e.$dialog)!==void 0&&Zw.state.$dialog!==lT;)Zw.back(),yield iC(1)})();function uT(e){(0,u.useEffect)(()=>jT(`popstate`,()=>{var e;if(iT)return iT--;let t=(e=Zw.state)==null?void 0:e.$dialog;if(t!==void 0){if(t!==lT&&!Xw.find(e=>e.$id===t))return sT();mT(void 0,!0)}}),[]);let t=Yw(Xw);return(0,u.useEffect)(()=>{document.body.style.overflow=t.length?`hidden`:``},[t.length]),(0,u.createElement)(u.Fragment,{},(0,u.createElement)(`div`,H({"aria-hidden":t.length>0},e)),t.map(e=>(0,u.createElement)(dT,H({key:e.$id},e))))}function dT(e){var t;let n=(0,u.useRef)(null),[r,i]=(0,u.useState)(0);if((0,u.useEffect)(()=>{var t,r;let a=(t=n.current)==null?void 0:t.querySelector(`.dialog`);if(!a||(eT(a),(r=a.querySelector(`[autofocus]`))==null||r.focus(),!e.position))return;let o=0,s=setInterval(()=>{let e=a.getBoundingClientRect();i(o=Math.min(o,e.top,window.innerHeight-e.bottom+o))},100);return()=>clearInterval(s)},[]),e=H(H({closable:!0},Qw),e),e.Container)return(0,u.createElement)(e.Container,e);return(0,u.createElement)(`div`,{ref:n,className:`dialog-backdrop `+(e.className||``),onKeyDown(e){e.key===`Escape`&&mT(),e.stopPropagation()},onClick:t=>e.closable&&t.target===t.currentTarget&&mT()},e.noFrame?(0,u.createElement)(e.Content||`div`):(0,u.createElement)(`div`,H({role:`dialog`,"aria-modal":!0,className:`dialog`,style:H(H({},a()),(t=e.dialogProps)==null?void 0:t.style),onClick(e){e.stopPropagation()}},e.dialogProps),(0,u.createElement)(`button`,H({className:`dialog-icon dialog-closer`+(e.closable?``:` hidden`),onClick(){mT()}},e.closableProps)),e.icon&&(0,u.createElement)(`div`,{className:`dialog-icon dialog-type`+(typeof e.icon==`string`?` dialog-icon-text`:``),"aria-hidden":!0},fT(e.icon)),(0,u.createElement)(`h1`,{className:`dialog-title`},fT(e.title)),(0,u.createElement)(`div`,{className:`dialog-content`},(0,u.createElement)(e.Content||`div`))));function a(){let{innerWidth:t,innerHeight:n}=window,i=e.position;return i&&H(H({margin:`1em`,position:`absolute`},i[0]<t/2?{left:i[0]}:{right:t-i[0]}),i[1]<n/2?{top:r+i[1]}:{bottom:r+n-i[1]})}}function fT(e){return NC(e)||(0,u.isValidElement)(e)?e:(0,u.createElement)(e)}function pT(e){var t;let n=Math.random(),r=performance.now(),i=Object.assign($.default.mapValues(e,e=>(0,u.isValidElement)(e)?Gw(e):e),{close:o,ts:r,$id:n,restoreFocus:(t=e.restoreFocus)==null?Gw(document.activeElement||{}):t}),a=!1;return Promise.all([nT,rT]).then(()=>{if(!a&&(Xw.length||Zw.replaceState(H(H({},Zw.state),{},{$dialog:lT}),``),Xw.push(i),Xw.at(-1).closable!==!1)){var e,t;((e=Zw.state)==null?void 0:e.$dialog)===void 0&&Zw.replaceState(H(H({},Zw.state),{},{$dialog:lT}),``),Zw.pushState({$dialog:n,ts:r,idx:1+(((t=Zw.state)==null?void 0:t.idx)||0)},``)}}),i;function o(t,r=!0){var o;a=!0;let s=Xw.findIndex(e=>e.$id===n);if(!(s<0))return i.closed=!r&&((o=Zw.state)==null?void 0:o.$dialog)===n?sT():Promise.resolve(),gT(s,t),e.closed}}function mT(e,t=!1){var n;let r=Xw.length;if(((n=Xw[r-1])==null?void 0:n.closable)!==!1)for(;r--;){let n=Xw[r];if(!n.reserveClosing){if(!t){var i;if(((i=Zw.state)==null?void 0:i.$dialog)!==n.$id){let t=rT=rT.then(()=>nT).then(()=>{var t,n,r;return(t=mT(e,((n=Zw.state)==null?void 0:n.$dialog)!==((r=Xw.at(-1))==null?void 0:r.$id)))==null?void 0:t.closed});return H(H({},n),{},{closed:t})}n.closed=sT()}return gT(r,e),n}}}var hT=Promise.resolve();function gT(e,t){var n,r;let[i]=Xw.splice(e,1);return(n=i.restoreFocus)==null||(r=n.focus)==null||r.call(n),i.closingValue=t&&typeof t==`object`?Gw(t):t,i.closed!=null||(i.closed=Promise.resolve()),i.closed.then(p(function*(){var e;hT=hT.then(p(function*(){var e;for(yield nT;!Xw.length&&((e=Zw.state)==null?void 0:e.$dialog)!==void 0&&Zw.state.$dialog!==lT;)yield sT()})),yield hT,i==null||(e=i.onClose)==null||e.call(i,t)})),i}function _T(){return Xw.length>0}U();var vT=[`children`],yT={a:`a`,"`":`code`,"*":`i`,"**":`b`};function bT(e,{html:t=!0,linkTarget:n=`_blank`,onText:r=(e=>e)}={}){return typeof e!=`string`&&(e=e[0]),xT(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|(<(\w+?)(?:\s+[^>]*?)?>(?:.*?<\/\7>)?)/g,e=>e[4]?(0,u.createElement)(yT.a,{href:e[5],target:n},r(e[4])):e[3]?(0,u.createElement)(`br`):e[1]?(0,u.createElement)(yT[e[1]]||u.Fragment,{},r(e[2])):t?(0,u.createElement)(ST,{},e[6]):e[6],r)}function xT(e,t,n,r=(e=>e)){let i=[],a=0,o;for(;(o=t.exec(e))&&(i.push(r(e.slice(a,o.index))),i.push(n(o)),a=o.index+o[0].length,t.global););return(0,u.createElement)(u.Fragment,{},...i,r(e.slice(a,1/0)))}function ST(e){let{children:t}=e,n=G(e,vT);return(0,u.useMemo)(()=>t?(0,u.createElement)(`span`,H(H({},n),{},{ref:e=>e&&e.replaceChildren(document.createRange().createContextualFragment(t))})):null,[t])}var CT;window._=$.default,setTimeout(()=>{document.querySelectorAll(`.removeAtBoot`).forEach(e=>e.remove())},500);var wT=(()=>{let e=performance.now();return $.default.range(1e5).map(e=>++e),e=performance.now()-e,1/e})(),TT=Object.fromEntries(new URLSearchParams(window.location.search).entries()),ET=FT();Object.assign(ET,{getPluginKey:(e=!1)=>{var t,n;return(t=(n=kT(`plugin`))==null?DT():n)==null?e?void 0:console.error(`this function must be called synchronously during initial script evaluation`):t},getPluginPublic:()=>{var e;return(e=kT(`src`))==null||(e=e.match(/^.*\//))==null?void 0:e[0]},getPluginConfig:()=>ET.plugins[ET.getPluginKey()]||{},loadScript:e=>zT(e.includes(`//`)||e.startsWith(`/`)?e:ET.getPluginPublic()+e),userBelongsTo:e=>vC(e).some(e=>{var t;return(t=ET.state.expandedUsername)==null?void 0:t.includes(e)}),cpuSpeedIndex:wT,copyTextToClipboard:WT,urlParams:TT}),eC.k=ET.kb;function DT(){var e;return dC(`/`,((e=Error().stack)==null?void 0:e.split(`/~/plugins/`)[1])||``)}var OT=`*.jpg|*.jpeg|*.png|*.gif|*.svg`;{let e=console.debug;console.debug=(...t)=>window.DEV&&e(...t)}function kT(e){var t;return(t=document.currentScript)==null?void 0:t.getAttribute(e)}function AT(e){return`?`+Object.entries(e).filter(e=>e[1]!==void 0).map(e=>e.map(e=>encodeURIComponent(e).replaceAll(`%2F`,`/`)).join(`=`)).join(`&`)}function jT(e,t,n){let r=n&&`target`in n?n.target:window;return r?(r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)):()=>{}}function MT(e,t){e&&(e.style.animation=``,e.offsetWidth,e.style.animation=t)}function NT(e,{accept:t=``,multiple:n=!0,folder:r=!1}={}){let i=Object.assign(document.createElement(`input`),{type:`file`,name:`file`,accept:t,multiple:n,webkitdirectory:r});i.addEventListener(`change`,()=>e(i.files)),i.click()}function PT(e){return new Promise((t,n)=>{let r=new FileReader;r.addEventListener(`load`,r=>{if(!r.target||e.size&&!r.target.result)return n(`cannot read`);let{result:i}=r.target;t(i==null?void 0:i.toString())}),r.addEventListener(`error`,()=>{n(r.error)}),r.readAsText(e)})}function FT(){var e;return(e=window).HFS||(e.HFS={})}function IT(){return FT().prefixUrl||``}function LT(e){let t;return n(FT().session),n;function n(r){clearTimeout(t);let i=[`username`,`isAdmin`,`adminUrl`,`canChangePassword`,`accountExp`,`expandedUsername`,`requireChangePassword`];r!=null||(r=aC(i,()=>void 0));let{exp:a}=r;if(FT().session=Object.assign(e,$.default.pick(r,i)),!r.username||!a)return;let o=new Date(a).getTime()-Date.now(),s=$.default.clamp(o-3e4,4e3,6e5);console.debug(`session refresh in`,Math.round(s/1e3)),t=setTimeout(()=>yS(`refresh_session`).then(n),s)}}function RT(e,t=document){let n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function zT(e,t={}){return new Promise((n,r)=>{let i=document.createElement(`script`);i.type=`text/javascript`,i.src=e,i.onload=n,i.onerror=r;for(let[e,n]of Object.entries(t))i.setAttribute(e,String(n));document.head.appendChild(i)})}function BT(e){var t;return((t=e.match(/([^\\/]+)[\\/]*$/))==null?void 0:t[1])||``}function VT(e){let t=BT(e),n=t.lastIndexOf(`.`);return n<=0?``:t.slice(n)}function HT(e){return e.slice(0,Math.max(0,e.lastIndexOf(`/`,e.length-1)))}function UT({locale:e=void 0,unitDisplay:t=`narrow`,largest:n=`day`,smallest:r=`second`,maxTokens:i,skipZeroes:a}={}){let o={day:WS,hour:US,minute:HS,second:1e3},s=$.default.mapValues(o,(n,r)=>Intl.NumberFormat(e,{style:`unit`,unit:r,unitDisplay:t}).format),c=new Intl.ListFormat(e,{style:`narrow`,type:`unit`});return e=>{let t=[],l=!1;for(let[c,f]of DC(o)){var u,d;if(c===r&&t.length)break;if(c===n&&(l=!0),!l)continue;let o=Math.floor(e/f);if(!(!o&&a)){if(t.push((u=(d=s[c])==null?void 0:d.call(s,o))==null?String(o):u),t.length===i)break;e%=f}}return c.format(t)}}function WT(e){return GT.apply(this,arguments)}function GT(){return GT=p(function*(e){e=String(e);try{yield navigator.clipboard.writeText(e)}catch(t){console.debug(`fallback clipboard method`);let n=jT(`copy`,t=>{var n;(n=t.clipboardData)==null||n.setData(`text/plain`,e),t.preventDefault()},{capture:!0,target:document});try{if(!document.execCommand(`copy`))throw Error(`unknown`)}finally{n()}}}),GT.apply(this,arguments)}function KT(e,t){let n=t instanceof Blob?t:new Blob([t],{type:`text/plain`}),r=document.createElement(`a`);r.href=URL.createObjectURL(n),r.download=e,r.style.display=`none`,document.body.append(r),r.click(),setTimeout(()=>r.remove(),100)}function qT(t){return(...n)=>_(()=>import(`./dist-DC2A6cD2.js`).then(t=>e(t.default)).then(e=>t(e,...n)),__vite__mapDeps([2,1]))}function JT(e,t){return YT.apply(this,arguments)}function YT(){return YT=p(function*(t,n){let{createVerifierAndSalt:r,SRPParameters:i,SRPRoutines:a}=yield _(p(function*(){let{createVerifierAndSalt:t,SRPParameters:n,SRPRoutines:r}=yield import(`./dist-DC2A6cD2.js`).then(t=>e(t.default));return{createVerifierAndSalt:t,SRPParameters:n,SRPRoutines:r}}),__vite__mapDeps([2,1])),o=yield r(new a(new i),t,n);return yS(`change_srp`,{username:t,salt:String(o.s),verifier:String(o.v)})}),YT.apply(this,arguments)}(CT=Element.prototype).replaceChildren||(CT.replaceChildren=function(e){for(;this.lastChild;)this.removeChild(this.lastChild);e!==void 0&&this.append(e)});var XT={100:`Continue: the initial headers were received; continue with the request body`,101:`Switching Protocols: the server is switching protocols as requested`,102:`Processing: the server is processing the request but a complete response isn’t ready yet`,103:`Early Hints: preliminary headers are being sent before the final response`,200:`OK: response sent`,201:`Created: a new resource was created successfully`,202:`Accepted: the request has been accepted for processing but isn’t complete yet`,203:`Non-Authoritative Information: the response contains modified information from a third party`,204:`No Content: the request succeeded but there’s no content to return`,205:`Reset Content: the request succeeded; please reset your view`,206:`Partial Content: only part of the resource is being returned as requested`,207:`Multi-Status: the response contains several status codes for different parts of the request`,208:`Already Reported: the resource has already been reported in a previous response`,226:`IM Used: the server fulfilled the request using instance manipulations`,300:`Multiple Choices: several options are available for the requested resource`,301:`Moved Permanently: the resource has been permanently moved to a new URL`,302:`Found: the resource is temporarily located at a different URL`,303:`See Other: the requested resource can be found using GET at another URL`,304:`Not Modified: the browser was asked to use its cached version, and the file was not actually sent`,305:`Use Proxy: the requested resource must be accessed through the specified proxy`,306:`Switch Proxy: this code is no longer used but is reserved for future use`,307:`Temporary Redirect: the resource is temporarily available at a different URL; use the original for future requests`,308:`Permanent Redirect: the resource has been permanently moved to another URL`,400:`Bad Request: the request is malformed or contains invalid parameters`,401:`Unauthorized: authentication is required and was either not provided or failed`,402:`Payment Required: payment is required to access this resource (reserved for future use)`,403:`Forbidden: the server understands the request but refuses to authorize it`,404:`Not Found: the requested resource could not be found`,405:`Method Not Allowed: the HTTP method used isn’t allowed for this resource`,406:`Not Acceptable: the resource can’t produce content acceptable according to the request`,407:`Proxy Authentication Required: proxy authentication is required to access the resource`,408:`Request Timeout: the server timed out waiting for the request`,409:`Conflict: the request couldn’t be processed due to a conflict`,410:`Gone: the requested resource is no longer available`,411:`Length Required: the request didn’t include the required content length`,412:`Precondition Failed: one or more conditions in the request header failed`,413:`Payload Too Large: the request payload is too large for the server to process`,414:`URI Too Long: the URL provided is too long`,415:`Unsupported Media Type: the media type is not supported by the server`,416:`Range Not Satisfiable: the requested range cannot be fulfilled by the server`,417:`Expectation Failed: the server can’t meet the expectations in the request’s header`,418:`I'm a Teapot: this code is a humorous reference and not meant for real use`,421:`Misdirected Request: the request was sent to a server that can’t produce a response`,422:`Unprocessable Entity: the request was well-formed but contains semantic errors`,423:`Locked: the resource is locked and can’t be accessed`,424:`Failed Dependency: the request failed because a previous request did not succeed`,425:`Too Early: the server refuses to process the request to prevent replay attacks`,426:`Upgrade Required: the client should switch to a different protocol`,428:`Precondition Required: the server requires the request to be conditional`,429:`Too Many Requests: too many requests have been sent in a short period`,431:`Request Header Fields Too Large: the request’s header fields are too large`,451:`Unavailable For Legal Reasons: the resource is unavailable due to legal restrictions`,500:`Internal Server Error: the server encountered an unexpected error`,501:`Not Implemented: the server does not support the requested functionality`,502:`Bad Gateway: the server received an invalid response from an upstream server`,503:`Service Unavailable: the server is currently unable to handle the request`,504:`Gateway Timeout: the server did not receive a timely response from an upstream server`,505:`HTTP Version Not Supported: the server does not support the HTTP version used`,506:`Variant Also Negotiates: a circular reference was detected during content negotiation`,507:`Insufficient Storage: the server is unable to store the requested resource`,508:`Loop Detected: the server detected an infinite loop while processing the request`,510:`Not Extended: additional extensions are needed to fulfill the request`,511:`Network Authentication Required: network access requires proper authentication`};yT.a=ey;function ZT(e){var t;let n=typeof e==`string`&&((t=e.split(`Error: EPERM: operation not permitted, access `)[1])==null?void 0:t.split(`
|
|
218
|
-
`)[0]);return n?`Access denied on disk for ${n}`:{github_quota:`Request denied. You may have reached the limit, retry later.`,ENOENT:`Not found`,ENOTDIR:`Not a folder`}[e]||IS[e]
|
|
219
|
-
`))){if(d){let e=d(t);if(e===!1)return;t=e}S(t),(s||T.current||w.current===void 0)&&O(e,t)}},onKeyDown(e){var t;(t=y.onKeyDown)==null||t.call(y,e),T.current=e.code===void 0,e.key===`Enter`&&e.target.ariaExpanded!==`true`&&O(e)},onFocus(e){w.current=e.target.value},onBlur(e){var t;(t=y.onBlur)==null||t.call(y,e),w.current!==e.target.value&&O(e)}}))};return f?(0,u.createElement)(sh,{freeSolo:!0,options:f,renderInput:E,onChange(e,t){O(e,t)}}):E(null);function D(e,t,n){if(!t)return n;let r=(0,u.createElement)(Ev,{position:e},t);return e===`start`?(0,u.createElement)(u.Fragment,{},r,n):(0,u.createElement)(u.Fragment,{},n,r)}function O(e,r=x){r=r==null?void 0:r.trim(),r!==C.current&&(C.current=r,n(r,{was:t,event:e,cancel(){S(b)}}))}}U();var oE=[`defaultValue`,`value`,`onChange`,`setApi`,`options`,`sx`,`disabled`,`afterList`,`renderOption`],sE=[`renderOption`],cE=[`value`,`onChange`,`setApi`,`options`,`placeholder`,`helperText`,`label`,`valueSeparator`,`clearable`,`afterList`];function lE(e){let{defaultValue:t,value:n=t,onChange:r,setApi:i,options:a,sx:o,disabled:s,afterList:c,renderOption:l}=e,d=G(e,oE),f=(0,u.useMemo)(()=>fE(a),[a]),p=JSON.stringify(n),m=f==null?void 0:f.find(e=>JSON.stringify(e.value)===p);return l!=null||(l=e=>{var t;return(t=e.label)==null?String(e.value):t}),(0,u.createElement)($x,H(H(H({select:!0,hiddenLabel:!e.label,value:m?p:``,disabled:(f==null?void 0:f.length)===0||s,children:f?[...f.map((e,t)=>(0,u.createElement)(Lb,{key:t,value:JSON.stringify(e==null?void 0:e.value),disabled:e==null?void 0:e.disabled,children:(0,u.createElement)(u.Fragment,{key:t},l(e))})),(0,u.createElement)(`div`,{key:-1},c)]:(0,u.createElement)(Kv)},dE(e)),d),{},{onChange(e){try{let t=e.target.value;t=JSON.parse(t),r(t,{was:n,event:e})}catch(e){}}}))}function uE(e){let{renderOption:t}=e,n=G(e,sE),{value:r,onChange:i,setApi:a,options:o,placeholder:s,helperText:c,label:l,valueSeparator:d=`, `,clearable:f=!0,afterList:p}=n,m=G(n,cE),h=(0,u.useMemo)(()=>fE(o),[o]),g=(0,u.useMemo)(()=>Array.isArray(r)?r.map(e=>(h==null?void 0:h.find(t=>t.value===e))||{value:e,label:String(e)}):[],[r,h]),_=(0,u.useMemo)(()=>(r==null?void 0:r.map(e=>JSON.stringify(e)))||[],[r]),v=hw(),y=(0,u.useId)(),b=(0,u.useId)(),x=!g.length;return t!=null||(t=e=>{var t;return(t=e.label)==null?String(e.value):t}),(0,u.createElement)(L_,{fullWidth:!0,variant:`filled`,hiddenLabel:!l},(0,u.createElement)(Av,{id:y,sx:{"&.Mui-focused":{color:`inherit`}}},l),(0,u.createElement)(bx,H(H({},dE(n)),{},{multiple:!0,displayEmpty:!0,value:_,onChange:e=>{let{value:t}=e.target;Array.isArray(t)&&(t=t.map(e=>e&&JSON.parse(e)),i(t,{was:r,event:e}))},sx:{"& .MuiSelect-select":{maxHeight:`15em`,overflowY:`auto`}},input:(0,u.createElement)(M_,{hiddenLabel:!l,"aria-describedby":b}),renderValue:()=>(0,u.createElement)(`div`,{"aria-label":l+`: `+g.map(e=>{var t;return(t=e.label)==null?String(e.value):t}),style:{overflow:`hidden`,display:`flex`,flexWrap:`wrap`,gap:`.5em`},children:x?(0,u.createElement)(yh,{sx:{position:`relative`,top:`.3em`,fontSize:`small`,fontStyle:`italic`,color:`text.secondary`}},s):g.map((e,n)=>(0,u.createElement)(`span`,{key:n},t(e),n<g.length-1&&d))})},m),h?!h.length&&(0,u.createElement)(Ty,{sx:{fontStyle:`italic`,ml:1},onClickCapture(e){e.stopPropagation()}},`No options available`):(0,u.createElement)(Kv),!v&&(h==null?void 0:h.length)>20&&(0,u.createElement)(yh,{sx:{float:`right`,fontSize:`small`,width:`8em`,textAlign:`right`,marginRight:`.5em`}},`ⓘ You can type the name`),(0,u.createElement)(Mh,{size:`small`,sx:{ml:1,display:(h==null?void 0:h.length)>1?void 0:`none`},ref:(0,u.useCallback)(e=>e&&Object.assign(e,{role:void 0})&&setTimeout(()=>e.focus()),[]),onClickCapture(e){e.stopPropagation(),i(x?h.map(e=>e.value):[],{was:r,event:e})}},x?`Select all`:`Unselect all`),...(h==null?void 0:h.map(e=>(0,u.createElement)(Lb,{value:JSON.stringify(e==null?void 0:e.value)},(0,u.createElement)(fg,{checked:(r==null?void 0:r.includes(e.value))||!1}),(0,u.createElement)(Ty,{primary:t(e)}))))||[],p),(0,u.createElement)(Z_,{id:b,error:n.error},c))}function dE(e){return{fullWidth:!0,sx:Object.assign({"& .MuiInputBase-inputHiddenLabel":{py:1,"& .MuiInputAdornment-root":{ml:-1}}},e.sx)}}function fE(e){return e?Array.isArray(e)?e.map(e=>typeof e==`string`||typeof e==`number`?{value:e}:e):Object.entries(e).map(([e,t])=>({value:t,label:e})):void 0}var pE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z`}),`Cancel`);U();var mE=[`value`,`empty`],hE=[`value`,`onChange`,`setApi`,`required`,`min`,`max`,`step`,`unit`,`clearable`],gE=[`was`],_E=[`label`,`value`,`onChange`,`setApi`,`helperText`,`error`,`Control`,`type`];function vE(e){let{value:t,empty:n=`-`}=e,r=G(e,mE);return!r.toField&&n!==void 0&&t!==0&&!t&&(t=n),(0,u.createElement)(aE,H(H({},r),{},{value:t,disabled:!0,onChange(){}}))}function yE(e){let{value:t,onChange:n,setApi:r,required:i,min:a=0,max:o,step:s,unit:c,clearable:l}=e,d=G(e,hE);r==null||r({getError(){return t==null?i?`required`:!1:t<a?`too low`:t>o?`too high`:!1}});let f=vw();return(0,u.createElement)(aE,H(H({type:`number`,value:t==null?``:String(t),onChange(e,t){let{was:r}=t,i=G(t,gE);n(e?Number(e):null,H(H({},i),{},{was:r?Number(r):null}))},inputProps:{min:a,max:o,step:s},InputProps:$.default.merge({sx:{"& input":{appearance:`textfield`}},startAdornment:(l==null?d.placeholder:l)&&f.w>100&&(t||t===0)&&(0,u.createElement)(Ev,{position:`start`},(0,u.createElement)($u,{size:`small`,edge:`start`,sx:{ml:-1,opacity:.5},"aria-label":`clear`,onClick(e){n(null,{was:t,event:e})}},(0,u.createElement)(pE)))},c&&{sx:{pr:`6px`,"& input":{pl:`.2em`,textAlign:`right`}},endAdornment:(0,u.createElement)(Ev,{position:`end`,sx:{mt:`1.2em`,ml:`5px`,"& p":{fontSize:`80%`,".Mui-focused &":{color:`text.primary`}}}},c)})},d),{},{fieldRef:f.refToPass}))}function bE(e){let{label:t=``,value:n,onChange:r,setApi:i,helperText:a,error:o,Control:s=Hx,type:c}=e,l=G(e,_E),d=()=>n==null?!1:n,[f,p]=(0,u.useState)(d);(0,u.useEffect)(()=>p(d),[n]);let m=(0,u.createElement)(s,H(H({checked:f},l),{},{onChange(e){r(e.target.checked,{event:e,was:n})}}));return(0,u.createElement)(yh,{sx:H({ml:1},o&&{color:`error.main`,outlineOffset:6,outline:`1px solid`})},(0,u.createElement)(W_,{label:t,control:m,labelPlacement:`end`,sx:H({mr:0},l.size===`small`&&{"& .MuiFormControlLabel-label":{fontSize:`.9rem`}})}),a&&(0,u.createElement)(Z_,{sx:{mt:0},error:o},a))}function xE(e){return(0,u.createElement)(bE,H({Control:fg},e))}U();var SE=[`fields`,`values`,`set`,`get`,`defaults`,`save`,`stickyBar`,`addToBar`,`barSx`,`apiRef`,`formRef`,`onError`,`onValidation`,`saveOnEnter`,`gridProps`,`sx`,`onKeyDown`],CE=[`k`,`fromField`,`toField`,`getError`,`error`,`xs`,`sm`,`md`,`lg`,`xl`,`comp`,`before`,`after`,`parentProps`];function wE(...e){return e.filter(Boolean).flatMap(e=>$.default.castArray(e))}var TE=`field-container-with-error`;function EE(e){let{fields:t,values:n,set:r,get:i,defaults:a,save:o,stickyBar:s,addToBar:c=[],barSx:l,apiRef:d,formRef:f,onError:m,onValidation:h,saveOnEnter:g,gridProps:_,sx:v,onKeyDown:y}=e,b=G(e,SE),x=(0,u.useRef)(!1);(0,u.useEffect)(()=>(x.current=!0,()=>{x.current=!1}),[]);let[S,C]=(0,u.useState)({}),[w,T]=(0,u.useState)({}),E=typeof o==`function`?{onClick:o}:o,[D,O]=(0,u.useState)(0),k=(0,u.useRef)(!1),A=(0,u.useRef)(),ee=(0,u.useRef)(``);d&&(d.current={submit:N,validate:()=>new Promise(e=>{k.current=!1,A.current=e,P()||e(!1)})}),f||(f=(0,u.useRef)()),(0,u.useEffect)(()=>void F(),[D]);let j={},M={};return(0,u.createElement)(yh,H({component:`form`,sx:wE({display:`flex`,flexDirection:`column`,gap:3},v),ref:f,onSubmit(e){e.preventDefault()},onKeyDown(e){y==null||y(e),!e.defaultPrevented&&E&&!E.disabled&&(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&N()}},b),(0,u.createElement)(av,H({container:!0,rowSpacing:3,columnSpacing:1},_),t.map((e,t)=>{if(!e)return null;if((0,u.isValidElement)(e))return(0,u.createElement)(av,{key:t,size:12},e);a&&(e=H(H({},a==null?void 0:a(e)),e));let{k:n,fromField:i=$.default.identity,toField:o=$.default.identity,getError:s,error:c,xs:l=12,sm:d,md:f,lg:p,xl:m,comp:h=aE,before:_,after:v,parentProps:y}=e,b=G(e,CE),x=OE({xs:l,sm:d,md:f,lg:p,xl:m}),C=S[n]||c||w[n];C===!0&&(C=`Not valid`);let E=!!(C||c)||void 0;if(n){let t=e.hasOwnProperty(`value`)?e.value:te(n);Object.assign(b,{name:n,value:o(t),error:E,setApi(e){M[n]=e},onKeyDown(e){g&&e.key===`Enter`&&N()},onChange(e){try{var a;if(e=i(e,{originalValue:t}),T(e=>H(H({},e),{},{[n]:!1})),(((a=M[n])==null?void 0:a.isEqual)||$.default.isEqual)(e,t))return;r(e,n),P(n)}catch(e){T(t=>H(H({},t),{},{[n]:(e==null?void 0:e.message)||String(e)||!0}))}}}),Array.isArray(b.helperText)&&(b.helperText=(0,u.createElement)(u.Fragment,{},...b.helperText)),C&&(b.helperText=b.helperText?(0,u.createElement)(yh,{sx:{color:`text.primary`},component:`span`},(0,u.createElement)(yh,{sx:{color:`error.main`,display:`block`},style:{borderBottom:`1px solid`},component:`span`},C),b.helperText):C),b.label===void 0&&(b.label=DE(n))}let D=j[n]=(j[n]||0)+1;return(0,u.createElement)(av,H({key:n?n+D:t,size:x,className:E&&TE},y),_,(0,u.isValidElement)(h)?h:(0,u.createElement)(h,b),v)})),E&&(0,u.createElement)(yh,{sx:H(H({display:`flex`,alignItems:`center`},s&&{width:`fit-content`,zIndex:2,backgroundColor:`background.paper`,borderRadius:1,position:`sticky`,bottom:0,p:1,m:-1,boxShadow:`0px 0px 15px #000`}),l)},(0,u.createElement)(Nx,{title:`ctrl + enter`,children:(0,u.createElement)(Mh,H(H({variant:`contained`,startIcon:(0,u.createElement)(rE),children:`Save`,loading:iw(D!==0)},E),{},{className:`saveBtn ${(E==null?void 0:E.className)||``}`,onClick(){N()}}))}),...c));function N(){k.current=!0,P()}function P(e=``){return D===0?(ee.current=e,setTimeout(()=>O(e=>e===0?1:e)),!0):!1}function te(e){return i?i(e):n==null?void 0:n[e]}function F(){return ne.apply(this,arguments)}function ne(){return ne=p(function*(){var e;if(D===0)return;if(D===1)return O(2);let r={};for(let e of t){if(!e||(0,u.isValidElement)(e)||!e.k)continue;let{k:s}=e,c=te(s),l;try{var i,a,o;l=(yield(i=M[s])==null||(a=i.getError)==null?void 0:a.call(i,c,{values:n,fields:t}))||(yield(o=e.getError)==null?void 0:o.call(e,c,{values:n,fields:t}))||w[s]||!1}catch(e){l=String(e)}if(r[s]=l,!k.current&&s===ee.current)break;if(!x.current)return}C(r);let s=Object.values(r).some(Boolean);if(h==null||h(s&&r,k.current),(e=A.current)==null||e.call(A,!s),A.current=void 0,!k.current){x.current&&O(0);return}try{if(s)try{return yield m==null?void 0:m(`Please review errors`)}finally{setTimeout(()=>{var e;return f==null||(e=f.current)==null||(e=e.querySelector(`.field-container-with-error`))==null?void 0:e.scrollIntoView({block:`center`})},1)}let e=E&&E.onClick;e&&(yield e())}catch(e){yield m==null?void 0:m(e)}finally{k.current=!1,x.current&&O(0)}}),ne.apply(this,arguments)}}function DE(e){return $.default.upperFirst(e.indexOf(`_`)>0?e.replace(/_/g,` `):e.replace(/([a-z])([A-Z])/g,(e,t,n)=>t+` `+n.toLowerCase()))}function OE({xs:e,sm:t,md:n,lg:r,xl:i}){let a={xs:kE(e),sm:kE(t),md:kE(n),lg:kE(r),xl:kE(i)};return t===void 0&&n===void 0&&r===void 0&&i===void 0?a.xs:a}function kE(e){return e===!0?`grow`:e}var AE=Hc((0,K.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),jE=Hc((0,K.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),ME=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`Error`),NE=Hc((0,K.jsx)(`path`,{d:`M12 8V4l8 8-8 8v-4H4V8z`}),`Forward`),PE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z`}),`Info`),FE=Hc((0,K.jsx)(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`Warning`);function IE(e,t,n,r){let i=e[t];return Uw(e,()=>{let r=e[t];Object.is(i,r)||n(i=r)},r)}U();var LE=Symbol.for(`immer-nothing`),RE=Symbol.for(`immer-draftable`),zE=Symbol.for(`immer-state`);function BE(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var VE=Object.getPrototypeOf;function HE(e){return!!e&&!!e[zE]}function UE(e){var t;return e?GE(e)||Array.isArray(e)||!!e[RE]||!!((t=e.constructor)!=null&&t[RE])||ZE(e)||QE(e):!1}var WE=Object.prototype.constructor.toString();function GE(e){if(!e||typeof e!=`object`)return!1;let t=VE(e);if(t===null)return!0;let n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object?!0:typeof n==`function`&&Function.toString.call(n)===WE}function KE(e,t){qE(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function qE(e){let t=e[zE];return t?t.type_:Array.isArray(e)?1:ZE(e)?2:QE(e)?3:0}function JE(e,t){return qE(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function YE(e,t,n){let r=qE(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function XE(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function ZE(e){return e instanceof Map}function QE(e){return e instanceof Set}function $E(e){return e.copy_||e.base_}function eD(e,t){if(ZE(e))return new Map(e);if(QE(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=GE(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[zE];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(VE(e),t)}else{let t=VE(e);return t!==null&&n?H({},e):Object.assign(Object.create(t),e)}}function tD(e,t=!1){return rD(e)||HE(e)||!UE(e)?e:(qE(e)>1&&Object.defineProperties(e,{set:{value:nD},add:{value:nD},clear:{value:nD},delete:{value:nD}}),Object.freeze(e),t&&Object.values(e).forEach(e=>tD(e,!0)),e)}function nD(){BE(2)}function rD(e){return Object.isFrozen(e)}var iD={};function aD(e){let t=iD[e];return t||BE(0,e),t}var oD;function sD(){return oD}function cD(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lD(e,t){t&&(aD(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function uD(e){dD(e),e.drafts_.forEach(pD),e.drafts_=null}function dD(e){e===oD&&(oD=e.parent_)}function fD(e){return oD=cD(oD,e)}function pD(e){let t=e[zE];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mD(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[zE].modified_&&(uD(t),BE(4)),UE(e)&&(e=hD(t,e),t.parent_||_D(t,e)),t.patches_&&aD(`Patches`).generateReplacementPatches_(n[zE].base_,e,t.patches_,t.inversePatches_)):e=hD(t,n,[]),uD(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===LE?void 0:e}function hD(e,t,n){if(rD(t))return t;let r=t[zE];if(!r)return KE(t,(i,a)=>gD(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return _D(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;let t=r.copy_,i=t,a=!1;r.type_===3&&(i=new Set(t),t.clear(),a=!0),KE(i,(i,o)=>gD(e,r,t,i,o,n,a)),_D(e,t,!1),n&&e.patches_&&aD(`Patches`).generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function gD(e,t,n,r,i,a,o){if(HE(i)){let o=hD(e,i,a&&t&&t.type_!==3&&!JE(t.assigned_,r)?a.concat(r):void 0);if(YE(n,r,o),HE(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(UE(i)&&!rD(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;hD(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(ZE(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&_D(e,i)}}function _D(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tD(t,n)}function vD(e,t){let n=Array.isArray(e),r={type_:+!!n,scope_:t?t.scope_:sD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=yD;n&&(i=[r],a=bD);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var yD={get(e,t){if(t===zE)return e;let n=$E(e);if(!JE(n,t))return SD(e,n,t);let r=n[t];return e.finalized_||!UE(r)?r:r===xD(e.base_,t)?(TD(e),e.copy_[t]=DD(r,e)):r},has(e,t){return t in $E(e)},ownKeys(e){return Reflect.ownKeys($E(e))},set(e,t,n){let r=CD($E(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=xD($E(e),t),i=r==null?void 0:r[zE];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(XE(n,r)&&(n!==void 0||JE(e.base_,t)))return!0;TD(e),wD(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty(e,t){return xD(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,TD(e),wD(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=$E(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){BE(11)},getPrototypeOf(e){return VE(e.base_)},setPrototypeOf(){BE(12)}},bD={};KE(yD,(e,t)=>{bD[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),bD.deleteProperty=function(e,t){return bD.set.call(this,e,t,void 0)},bD.set=function(e,t,n){return yD.set.call(this,e[0],t,n,e[0])};function xD(e,t){let n=e[zE];return(n?$E(n):e)[t]}function SD(e,t,n){var r;let i=CD(t,n);return i?`value`in i?i.value:(r=i.get)==null?void 0:r.call(e.draft_):void 0}function CD(e,t){if(!(t in e))return;let n=VE(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=VE(n)}}function wD(e){e.modified_||(e.modified_=!0,e.parent_&&wD(e.parent_))}function TD(e){e.copy_||(e.copy_=eD(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ED=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if(typeof e==`function`&&typeof t!=`function`){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}typeof t!=`function`&&BE(6),n!==void 0&&typeof n!=`function`&&BE(7);let r;if(UE(e)){let i=fD(this),a=DD(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?uD(i):dD(i)}return lD(i,n),mD(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===LE&&(r=void 0),this.autoFreeze_&&tD(r,!0),n){let t=[],i=[];aD(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else BE(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e==`function`)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},typeof(e==null?void 0:e.autoFreeze)==`boolean`&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)==`boolean`&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){UE(e)||BE(8),HE(e)&&(e=OD(e));let t=fD(this),n=DD(e,void 0);return n[zE].isManual_=!0,dD(t),n}finishDraft(e,t){let n=e&&e[zE];(!n||!n.isManual_)&&BE(9);let{scope_:r}=n;return lD(r,t),mD(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=aD(`Patches`).applyPatches_;return HE(e)?r(e,t):this.produce(e,e=>r(e,t))}};function DD(e,t){let n=ZE(e)?aD(`MapSet`).proxyMap_(e,t):QE(e)?aD(`MapSet`).proxySet_(e,t):vD(e,t);return(t?t.scope_:sD()).drafts_.push(n),n}function OD(e){return HE(e)||BE(10,e),kD(e)}function kD(e){if(!UE(e)||rD(e))return e;let t=e[zE],n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=eD(e,t.scope_.immer_.useStrictShallowCopy_)}else n=eD(e,!0);return KE(n,(e,t)=>{YE(n,e,kD(t))}),t&&(t.finalized_=!1),n}var AD=new ED().produce;U();var jD=[`parent`,`children`],MD=new Map,ND=`admin_state`,PD={title:``,config:{},selectedFiles:[],vfsShowDiskContentFor:``,accountsAsTree:!1,movingFiles:[],vfs:void 0,vfsUndo:void 0,vfsModified:!1,expanded:[],loginRequired:!1,username:``,monitorOnlyFiles:!0,monitorWithLog:!0,customHtmlSection:``,darkTheme:void 0,dataTablePersistence:{},hideRandomPlugin:!1,onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}};Object.assign(PD,JSON.parse(localStorage[ND]||null));var FD=Hw(PD);Object.assign(window,{state:FD});var ID=[`onlinePluginsColumns`,`monitorOnlyFiles`,`monitorWithLog`,`customHtmlSection`,`darkTheme`,`dataTablePersistence`,`accountsAsTree`,`hideRandomPlugin`],LD=$.default.debounce(()=>localStorage[ND]=JSON.stringify($.default.pick(FD,ID)),500,{maxWait:1e3});for(let e of ID)IE(FD,e,LD);function RD(){return Yw(FD)}function zD(){FD.vfs=H({},FD.vfs),FD.vfsModified=!0,BD()}function BD({node:e=FD.vfs,clearMap:t=!0,sortChildren:n=!1,select:r=FD.selectedFiles}={}){var i;if(!e)return;let a=new Map;t&&MD.clear(),o(e,((i=e.parent)==null?void 0:i.id)||`/`,e.parent),FD.vfsShowDiskContentFor=``,r&&(FD.selectedFiles=pC(r.map(e=>MD.get(typeof e==`string`?e:e.id)||a.get(typeof e==`string`?e:e.originalId))));function o(e,t,r){let i=e.id;e.parent=r,e.inherited=VD(e);let s=e.isRoot?`/`:nC(t,UC(e.name),e.type===`folder`?`/`:``);if(i&&i!==s&&MD.delete(i),e.id=s,e.originalId||(e.originalId=s),MD.set(s,e),a.set(e.originalId,e),e.children){n&&(e.children=$.default.sortBy(e.children,[`type`,e=>{var t;return(t=e.name)==null?void 0:t.toLocaleLowerCase()}]));for(let t of e.children)o(t,e.id,e)}}}function VD(e){let t=e==null?void 0:e.parent;if(!t)return;let n={};for(let i of XS){let a=r(t,i);a!==void 0&&e[i]==null&&(n[i]=a)}return $.default.isEmpty(n)?void 0:n;function r(e,t){for(;e;){let n=e[t];if(n!=null&&(!QS(n)||(n=n.children,n!==void 0)))return n;e=e.parent}}}function HD(e,t){return t.endsWith(`/`)&&e.startsWith(t)}function UD(){FD.vfs&&(FD.vfsUndo=KD(FD.vfs))}function WD(){if(!FD.vfs||!FD.vfsUndo)return;let e=KD(FD.vfs);FD.vfs=FD.vfsUndo,FD.vfsUndo=e,FD.vfsModified=!0,BD()}function GD(e,t,n){e[t]=AD(e[t],n)}function KD(e){let{parent:t,children:n}=e,r=G(e,jD),i=$.default.cloneDeep(r);return n&&(i.children=n.map(KD)),i}var qD=Hc((0,K.jsx)(`path`,{d:`M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6`}),`Brightness4`),JD=Hc((0,K.jsx)(`path`,{d:`M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4`}),`Brightness7`);U();function YD(){return eS(`(prefers-color-scheme: dark)`)}var XD={};function ZD(){let{darkTheme:e}=RD(),t=YD(),n=(e==null?t:e)?null:XD;return(0,u.useMemo)(()=>_c({palette:n||{mode:`dark`,text:{primary:`#bbb`,secondary:`#fff6`},primary:{main:`#469`,light:`#68c`},secondary:{main:`#969`}},typography:{fontFamily:`Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif`},components:{MuiDataGrid:{styleOverrides:{panel:({theme:e})=>({color:e.palette.text.primary})}},MuiLink:{defaultProps:n||{color:`primary.light`}},MuiTextField:{defaultProps:{variant:`filled`},styleOverrides:n||{root:{"& label.Mui-focused":{color:`#ccc`}}}},MuiButton:{defaultProps:{variant:`outlined`},styleOverrides:n||{root({ownerState:e}){return e.color===`primary`&&{color:e.variant===`contained`?`#ddd`:`#68c`}}}}}}),[n])}function QD(e){let{darkTheme:t}=RD(),n=YD(),r=t==null?n:t;return(0,u.createElement)(IO,H({icon:r?JD:qD,onClick:()=>{let e=!r;return FD.darkTheme=n===e?void 0:e}},e),r?`Light theme`:`Dark theme`)}U();var $D=[`sx`,`root`],eO=[`type`],tO=[`href`,`trueText`,`falseText`,`before`,`after`],nO=[`form`,`values`,`Wrapper`],rO=[`onChange`,`before`,`addToBar`],iO=[`value`,`field`,`save`,`addToBar`];Qw.Container=function(e){let t=(0,u.useRef)(),n=hw();(0,u.useEffect)(()=>{let e=setTimeout(()=>{let e=t.current;e&&(n||RT(`[autofocus]`,e)||RT($w,e))});return()=>clearTimeout(e)},[n,t.current]);let r=aO();e=H(H({},Qw),e);let i=e.dialogProps||{},{sx:a,root:o}=i,s=G(i,$D);return e.noFrame?(0,u.createElement)(Bg,{open:!0,children:(0,u.createElement)(BO,{},(0,u.createElement)(e.Content))}):(0,u.createElement)(Xg,H(H(H({open:!0,maxWidth:!1,fullScreen:n},s),o),{},{className:e.className,onClose:()=>mT()}),e.title&&(0,u.createElement)(s_,{sx:H({position:`sticky`,top:0,p:1,zIndex:2,boxShadow:`0 0 8px #0004`,display:`flex`,alignItems:`center`},r)},e.icon&&fT(e.icon),(0,u.createElement)(yh,{sx:{flex:1,minWidth:40,ml:1}},fT(e.title)),e.closable&&(0,u.createElement)(FO,{icon:jE,title:`Close`,onClick:()=>mT()})),(0,u.createElement)(r_,{ref:t,sx:wE({p:e.padding?{xs:1,sm:void 0}:0,pt:`16px !important`,overflow:`initial`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`stretch`},a)},(0,u.createElement)(e.Content)))};function aO(){let{darkTheme:e}=RD();return(e==null?YD():e)?{bgcolor:`#2d2d2d`}:{bgcolor:`#ccc`,color:`#444`}}var oO={error:ME,warning:FE,info:PE,success:AE};function sO(e,t){var n;let r=typeof t==`string`?{type:t}:t==null?{}:t,{type:i=`info`}=r,a=G(r,eO);e instanceof Error&&(e=ZT(e.message||e.code),i=`error`);let o=bC(),s=pT(H(H({className:`dialog-alert dialog-alert-`+i,icon:(n=r.icon)==null?(0,u.createElement)(oO[i],{color:i}):n,onClose:o.resolve,title:$.default.upperFirst(i),dialogProps:{fullScreen:!1}},a),{},{Content(){return(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1}},(0,u.isValidElement)(e)?e:(0,u.createElement)(yh,{sx:{fontSize:`large`,lineHeight:`1.8em`,pb:1}},String(e)))}}));return Object.assign(o,s)}function cO(e,t={}){let{href:n,trueText:r=`Go`,falseText:i=`Don't`,before:a,after:o}=t,s=G(t,tO),c=bC(),l=pT(H(H({className:`dialog-confirm`,onClose:c.resolve,dialogProps:{sx:{alignItems:`center`}}},s),{},{Content:d}));return Object.assign(c,l);function d(){return(0,u.createElement)(u.Fragment,{},(0,u.createElement)(yh,{sx:{mb:2}},typeof e==`string`?bT(e):e),(0,u.createElement)(OO,{},a==null?void 0:a({onClick:e=>l.close(e)}),(0,u.createElement)(`a`,{href:n,onClick:()=>l.close(!0)},(0,u.createElement)(Mh,{variant:`contained`},r)),(0,u.createElement)(Mh,{onClick:()=>l.close(!1)},i),o==null?void 0:o({onClick:e=>l.close(e)})))}}function lO(e){return uO.apply(this,arguments)}function uO(){return uO=p(function*(e){let{form:t,values:n,Wrapper:r}=e,i=G(e,nO),a;return new Promise(e=>{let o=pT(H(H({className:`dialog-form`,onClose:t=>e(t||a)},i),{},{Content(){let[e,i]=(0,u.useState)(n||{}),s=(0,u.useRef)(),c=(0,u.useRef)(),l={values:e,dialog:o,submit:g},d=typeof t==`function`?t(e,l):t,{onChange:f,before:p,addToBar:m}=d,h=G(d,rO);return h.save===!1&&(a=e),(0,u.createElement)(r||u.Fragment,{},p,(0,u.createElement)(EE,H(H({},h),{},{values:e,set(e,t){i(n=>{let r=H(H({},n),{},{[t]:e});return f==null||f(r,{setValues:i}),r})},save:h.save!==!1&&H(H({},h.save),{},{onClick(){let{current:t}=c;return c.current=void 0,t?t(e,o):o.close(e)}}),apiRef:s,addToBar:$.default.castArray(YC(m,l))})));function g(e){var t;c.current=e,(t=s.current)==null||t.submit()}}}))})}),uO.apply(this,arguments)}function dO(e){return fO.apply(this,arguments)}function fO(){return fO=p(function*(e,t={}){let{value:n=``,field:r,save:i,addToBar:a=[]}=t,o=G(t,iO);return lO(H(H({},o),{},{values:{text:n},form:H({fields:[H(H({k:`text`,label:null,autoFocus:!0},r),{},{before:(0,u.createElement)(yh,{sx:{mb:2}},e)})],save:H({children:`Continue`,startIcon:(0,u.createElement)(NE)},i),saveOnEnter:!0,barSx:{gap:2},addToBar:[(0,u.createElement)(Mh,{onClick:mT},`Cancel`),...a]},o.form)})).then(e=>e==null?void 0:e.text)}),fO.apply(this,arguments)}function pO(){return pT({Content:()=>(0,u.createElement)(Ku,{size:`20vw`}),noFrame:!0,closable:!1}).close}function mO(e,t=`info`,n){let r=3e3,i=pT(H(H({},n),{},{Content:a,dialogProps:{fullScreen:!1,slotProps:{paper:{sx:{transition:`opacity ${r}ms ease-in`},ref(e){e&&(e.style.opacity=`0`)}}}}}));return setTimeout(i.close,r),i;function a(){return(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1}},(0,u.isValidElement)(t)?t:(0,u.createElement)(oO[t],{color:t}),(0,u.isValidElement)(e)?e:(0,u.createElement)(`div`,{},String(e)))}}var hO=`🇦🇫|AF|Afghanistan
|
|
217
|
+
}`;var v=Tf(function(){return lt(o,g+`return `+m).apply(n,l)});if(v.source=m,xu(v))throw v;return v}function hf(e){return td(e).toLowerCase()}function gf(e){return td(e).toUpperCase()}function _f(e,t,r){if(e=td(e),e&&(r||t===n))return Qn(e);if(!e||!(t=za(t)))return e;var i=yr(e),a=yr(t);return Za(i,nr(i,a),rr(i,a)+1).join(``)}function vf(e,t,r){if(e=td(e),e&&(r||t===n))return e.slice(0,br(e)+1);if(!e||!(t=za(t)))return e;var i=yr(e);return Za(i,0,rr(i,yr(t))+1).join(``)}function yf(e,t,r){if(e=td(e),e&&(r||t===n))return e.replace(We,``);if(!e||!(t=za(t)))return e;var i=yr(e);return Za(i,nr(i,yr(t))).join(``)}function bf(e,t){var r=D,i=O;if(Eu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Xu(t.length):r,i=`omission`in t?za(t.omission):i}e=td(e);var o=e.length;if(cr(e)){var s=yr(e);o=s.length}if(r>=o)return e;var c=r-vr(i);if(c<1)return i;var l=s?Za(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),Lu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=ft(a.source,td($e.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(za(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function xf(e){return e=td(e),e&&Pe.test(e)?e.replace(Me,xr):e}var Sf=bo(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),Cf=yo(`toUpperCase`);function wf(e,t,r){return e=td(e),t=r?n:t,t===n?lr(e)?wr(e):Rn(e):e.match(t)||[]}var Tf=Ea(function(e,t){try{return Cn(e,n,t)}catch(e){return xu(e)?e:new ct(e)}}),Ef=Wo(function(e,t){return Tn(t,function(t){t=Ls(t),xi(e,t,Pl(e[t],e))}),e});function Df(e){var t=e==null?0:e.length,n=Xo();return e=t?jn(e,function(e){if(typeof e[1]!=`function`)throw new mt(o);return[n(e[0]),e[1]]}):[],Ea(function(n){for(var r=-1;++r<t;){var i=e[r];if(Cn(i[0],this,n))return Cn(i[1],this,n)}})}function Of(e){return Ti(wi(e,f))}function kf(e){return function(){return e}}function Af(e,t){return e==null||e!==e?t:e}var jf=wo(),Mf=wo(!0);function Nf(e){return e}function Pf(e){return sa(typeof e==`function`?e:wi(e,f))}function Ff(e){return fa(wi(e,f))}function If(e,t){return pa(e,wi(t,f))}var Lf=Ea(function(e,t){return function(n){return Xi(n,e,t)}}),Rf=Ea(function(e,t){return function(n){return Xi(e,n,t)}});function zf(e,t,n){var r=wd(t),i=Bi(t,r);n==null&&!(Eu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Bi(t,wd(t)));var a=!(Eu(n)&&`chain`in n)||!!n.chain,o=Cu(e);return Tn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=lo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mn([this.value()],arguments))})}),e}function Bf(){return dn._===this&&(dn._=Tt),this}function Vf(){}function Hf(e){return e=Xu(e),Ea(function(t){return ga(t,e)})}var Uf=Oo(jn),Wf=Oo(Dn),Gf=Oo(Fn);function Kf(e){return ms(e)?Gn(Ls(e)):ba(e)}function qf(e){return function(t){return e==null?n:Vi(e,t)}}var Jf=jo(),Yf=jo(!0);function Xf(){return[]}function Zf(){return!1}function Qf(){return{}}function $f(){return``}function ep(){return!0}function tp(e,t){if(e=Xu(e),e<1||e>P)return[];var n=ne,r=nn(e,ne);t=Xo(t),e-=ne;for(var i=Xn(r,t);++n<e;)t(n);return i}function np(e){return uu(e)?jn(e,Ls):Vu(e)?[e]:lo(Is(td(e)))}function rp(e){var t=++xt;return td(e)+t}var ip=Do(function(e,t){return e+t},0),ap=Po(`ceil`),op=Do(function(e,t){return e/t},1),sp=Po(`floor`);function cp(e){return e&&e.length?Mi(e,Nf,Wi):n}function lp(e,t){return e&&e.length?Mi(e,Xo(t,2),Wi):n}function up(e){return Wn(e,Nf)}function dp(e,t){return Wn(e,Xo(t,2))}function fp(e){return e&&e.length?Mi(e,Nf,ua):n}function pp(e,t){return e&&e.length?Mi(e,Xo(t,2),ua):n}var mp=Do(function(e,t){return e*t},1),hp=Po(`round`),gp=Do(function(e,t){return e-t},0);function _p(e){return e&&e.length?Yn(e,Nf):0}function vp(e,t){return e&&e.length?Yn(e,Xo(t,2)):0}return q.after=jl,q.ary=Ml,q.assign=nd,q.assignIn=rd,q.assignInWith=id,q.assignWith=ad,q.at=od,q.before=Nl,q.bind=Pl,q.bindAll=Ef,q.bindKey=Fl,q.castArray=eu,q.chain=qc,q.chunk=Vs,q.compact=Hs,q.concat=Us,q.cond=Df,q.conforms=Of,q.constant=kf,q.countBy=il,q.create=sd,q.curry=Il,q.curryRight=Ll,q.debounce=Rl,q.defaults=cd,q.defaultsDeep=ld,q.defer=zl,q.delay=Bl,q.difference=Ws,q.differenceBy=Gs,q.differenceWith=Ks,q.drop=qs,q.dropRight=Js,q.dropRightWhile=Ys,q.dropWhile=Xs,q.fill=Zs,q.filter=ol,q.flatMap=ll,q.flatMapDeep=ul,q.flatMapDepth=dl,q.flatten=ec,q.flattenDeep=tc,q.flattenDepth=nc,q.flip=Vl,q.flow=jf,q.flowRight=Mf,q.fromPairs=rc,q.functions=gd,q.functionsIn=_d,q.groupBy=ml,q.initial=oc,q.intersection=sc,q.intersectionBy=cc,q.intersectionWith=Y,q.invert=xd,q.invertBy=Sd,q.invokeMap=gl,q.iteratee=Pf,q.keyBy=_l,q.keys=wd,q.keysIn=Td,q.map=vl,q.mapKeys=Ed,q.mapValues=Dd,q.matches=Ff,q.matchesProperty=If,q.memoize=Hl,q.merge=Od,q.mergeWith=kd,q.method=Lf,q.methodOf=Rf,q.mixin=zf,q.negate=Ul,q.nthArg=Hf,q.omit=Ad,q.omitBy=jd,q.once=Wl,q.orderBy=yl,q.over=Uf,q.overArgs=Gl,q.overEvery=Wf,q.overSome=Gf,q.partial=Kl,q.partialRight=ql,q.partition=bl,q.pick=Md,q.pickBy=Nd,q.property=Kf,q.propertyOf=qf,q.pull=pc,q.pullAll=X,q.pullAllBy=mc,q.pullAllWith=hc,q.pullAt=gc,q.range=Jf,q.rangeRight=Yf,q.rearg=Jl,q.reject=Cl,q.remove=_c,q.rest=Yl,q.reverse=vc,q.sampleSize=Tl,q.set=Fd,q.setWith=Id,q.shuffle=El,q.slice=yc,q.sortBy=kl,q.sortedUniq=Tc,q.sortedUniqBy=Ec,q.split=df,q.spread=Xl,q.tail=Dc,q.take=Oc,q.takeRight=kc,q.takeRightWhile=Ac,q.takeWhile=jc,q.tap=Jc,q.throttle=Zl,q.thru=Yc,q.toArray=Ju,q.toPairs=Ld,q.toPairsIn=Rd,q.toPath=np,q.toPlainObject=$u,q.transform=zd,q.unary=Ql,q.union=Q,q.unionBy=Mc,q.unionWith=Nc,q.uniq=Pc,q.uniqBy=Fc,q.uniqWith=Ic,q.unset=Bd,q.unzip=Lc,q.unzipWith=Rc,q.update=Vd,q.updateWith=Hd,q.values=Ud,q.valuesIn=Wd,q.without=zc,q.words=wf,q.wrap=$l,q.xor=Bc,q.xorBy=Vc,q.xorWith=Hc,q.zip=Uc,q.zipObject=Wc,q.zipObjectDeep=Gc,q.zipWith=Kc,q.entries=Ld,q.entriesIn=Rd,q.extend=rd,q.extendWith=id,zf(q,q),q.add=ip,q.attempt=Tf,q.camelCase=Jd,q.capitalize=Yd,q.ceil=ap,q.clamp=Gd,q.clone=tu,q.cloneDeep=ru,q.cloneDeepWith=iu,q.cloneWith=nu,q.conformsTo=au,q.deburr=Xd,q.defaultTo=Af,q.divide=op,q.endsWith=Zd,q.eq=ou,q.escape=Qd,q.escapeRegExp=$d,q.every=al,q.find=sl,q.findIndex=Qs,q.findKey=ud,q.findLast=cl,q.findLastIndex=$s,q.findLastKey=dd,q.floor=sp,q.forEach=fl,q.forEachRight=pl,q.forIn=fd,q.forInRight=pd,q.forOwn=md,q.forOwnRight=hd,q.get=vd,q.gt=su,q.gte=cu,q.has=yd,q.hasIn=bd,q.head=ic,q.identity=Nf,q.includes=hl,q.indexOf=ac,q.inRange=Kd,q.invoke=Cd,q.isArguments=lu,q.isArray=uu,q.isArrayBuffer=du,q.isArrayLike=fu,q.isArrayLikeObject=pu,q.isBoolean=mu,q.isBuffer=hu,q.isDate=gu,q.isElement=_u,q.isEmpty=vu,q.isEqual=yu,q.isEqualWith=bu,q.isError=xu,q.isFinite=Su,q.isFunction=Cu,q.isInteger=wu,q.isLength=Tu,q.isMap=Ou,q.isMatch=ku,q.isMatchWith=Au,q.isNaN=ju,q.isNative=Mu,q.isNil=Pu,q.isNull=Nu,q.isNumber=Fu,q.isObject=Eu,q.isObjectLike=Du,q.isPlainObject=Iu,q.isRegExp=Lu,q.isSafeInteger=Ru,q.isSet=zu,q.isString=Bu,q.isSymbol=Vu,q.isTypedArray=Hu,q.isUndefined=Uu,q.isWeakMap=Wu,q.isWeakSet=Gu,q.join=lc,q.kebabCase=ef,q.last=uc,q.lastIndexOf=dc,q.lowerCase=tf,q.lowerFirst=nf,q.lt=Ku,q.lte=qu,q.max=cp,q.maxBy=lp,q.mean=up,q.meanBy=dp,q.min=fp,q.minBy=pp,q.stubArray=Xf,q.stubFalse=Zf,q.stubObject=Qf,q.stubString=$f,q.stubTrue=ep,q.multiply=mp,q.nth=fc,q.noConflict=Bf,q.noop=Vf,q.now=Al,q.pad=rf,q.padEnd=af,q.padStart=of,q.parseInt=sf,q.random=qd,q.reduce=xl,q.reduceRight=Sl,q.repeat=cf,q.replace=lf,q.result=Pd,q.round=hp,q.runInContext=e,q.sample=wl,q.size=Dl,q.snakeCase=uf,q.some=Ol,q.sortedIndex=bc,q.sortedIndexBy=xc,q.sortedIndexOf=Sc,q.sortedLastIndex=Z,q.sortedLastIndexBy=Cc,q.sortedLastIndexOf=wc,q.startCase=ff,q.startsWith=pf,q.subtract=gp,q.sum=_p,q.sumBy=vp,q.template=mf,q.times=tp,q.toFinite=Yu,q.toInteger=Xu,q.toLength=Zu,q.toLower=hf,q.toNumber=Qu,q.toSafeInteger=ed,q.toString=td,q.toUpper=gf,q.trim=_f,q.trimEnd=vf,q.trimStart=yf,q.truncate=bf,q.unescape=xf,q.uniqueId=rp,q.upperCase=Sf,q.upperFirst=Cf,q.each=fl,q.eachRight=pl,q.first=ic,zf(q,function(){var e={};return Ri(q,function(t,n){bt.call(q.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),q.VERSION=r,Tn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){q[e].placeholder=q}),Tn([`drop`,`take`],function(e,t){Pr.prototype[e]=function(r){r=r===n?1:Zt(Xu(r),0);var i=this.__filtered__&&!t?new Pr(this):this.clone();return i.__filtered__?i.__takeCount__=nn(r,i.__takeCount__):i.__views__.push({size:nn(r,ne),type:e+(i.__dir__<0?`Right`:``)}),i},Pr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),Tn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==ee||n==M;Pr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Tn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);Pr.prototype[e]=function(){return this[n](1).value()[0]}}),Tn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);Pr.prototype[e]=function(){return this.__filtered__?new Pr(this):this[n](1)}}),Pr.prototype.compact=function(){return this.filter(Nf)},Pr.prototype.find=function(e){return this.filter(e).head()},Pr.prototype.findLast=function(e){return this.reverse().find(e)},Pr.prototype.invokeMap=Ea(function(e,t){return typeof e==`function`?new Pr(this):this.map(function(n){return Xi(n,e,t)})}),Pr.prototype.reject=function(e){return this.filter(Ul(Xo(e)))},Pr.prototype.slice=function(e,t){e=Xu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Pr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Xu(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},Pr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pr.prototype.toArray=function(){return this.take(ne)},Ri(Pr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=q[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(q.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof Pr,l=s[0],u=c||uu(t),d=function(e){var t=a.apply(q,Mn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new Pr(this);var g=e.apply(t,s);return g.__actions__.push({func:Yc,args:[d],thisArg:n}),new Nr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),Tn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=ht[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);q.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(uu(i)?i:[],e)}return this[n](function(n){return t.apply(uu(n)?n:[],e)})}}),Ri(Pr.prototype,function(e,t){var n=q[t];if(n){var r=n.name+``;bt.call(Kn,r)||(Kn[r]=[]),Kn[r].push({name:t,func:n})}}),Kn[To(n,v).name]=[{name:`wrapper`,func:n}],Pr.prototype.clone=Fr,Pr.prototype.reverse=Ir,Pr.prototype.value=Lr,q.prototype.at=Xc,q.prototype.chain=Zc,q.prototype.commit=Qc,q.prototype.next=$c,q.prototype.plant=tl,q.prototype.reverse=nl,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=rl,q.prototype.first=q.prototype.head,It&&(q.prototype[It]=el),q})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(dn._=Tr,define(function(){return Tr})):pn?((pn.exports=Tr)._=Tr,fn._=Tr):dn._=Tr}).call(e)})),$=e(fS());de();var pS=`\0listeners`,mS=class{constructor(){V(this,`listeners`,new Map),V(this,`stop`,Symbol())}on(e,t,{warnAfter:n=10,callNow:r=!1}={}){typeof e==`string`&&(e=[e]);for(let r of e){let e=this.listeners.get(r);e||this.listeners.set(r,e=new Set),e.add(t),e.size>n&&console.warn(`Warning: many event listeners for `,r),this.emit(r+pS,e,t)}return r&&Promise.resolve().then(t).catch(console.error),()=>{for(let n of e){let e=this.listeners.get(n);e&&(e.delete(t),this.emit(n+pS,e))}}}onListeners(e,t){return this.on(e+pS,t)}once(e,t){let n,r=new Promise(r=>{n=this.on(e,function(...e){return n(),r(e.slice(0,-1)),t==null?void 0:t(...e)})});return Object.assign(n,{then:r.then.bind(r)})}multi(e,t){let n=Object.entries(e).map(([e,n])=>this.on(e.split(` `),n,t));return()=>{for(let e of n)e()}}anyListener(e){var t;return!!((t=this.listeners.get(e))!=null&&t.size)}emit(e,...t){let n=this.listeners.get(e);if(!(n!=null&&n.size))return;let r=[],i=!1,a={event:e,output:r,preventDefault(){i=!0}};for(let e of n){let n=e(...t,a);n===this.stop?a.preventDefault():n!==void 0&&r.push(n)}return Object.assign(r,{isDefaultPrevented:()=>i})}emitAsync(e,...t){var n=this;return p(function*(){let r=n.emit(e,...t);if(!r)return;let i=yield Promise.all(r);return Object.assign(i,{isDefaultPrevented:()=>r.isDefaultPrevented()||i.some(e=>e===n.stop)})})()}};new mS;var hS=`/~/api/`,gS={loginSrp1:90,login:90,get_status:20,check_update:20,get_vfs:20,self_check:15},_S={};function vS(e){Object.assign(_S,e)}function yS(e,t,n={}){var r,i,a;$.default.defaults(n,_S);let o=(r=n.modal)==null?void 0:r.call(n,e,t),s=window.AbortController?new AbortController:void 0,c=``,l=1e3*((i=(a=gS[e])==null?n.timeout:a)==null?10:i),u=l&&setTimeout(()=>{s==null||s.abort(c=`timeout`),console.debug(`API TIMEOUT`,e,t==null?``:t)},l),d=n.restUri,f=new Date;return Object.assign(fetch(`${location.origin}${d||zT()+`/~/api/`+e}`,{method:d?e:n.method||`POST`,headers:{"content-type":`application/json`,"x-hfs-anti-csrf":`1`},signal:s==null?void 0:s.signal,body:t&&JSON.stringify(t)}).then(function(){var r=p(function*(r){var i;o==null||o();let a=yield r.text(),s;try{s=n.skipParse?a:JSON.parse(a)}catch(e){s=a}if(n!=null&&n.skipLog||console.debug(r.ok?`API`:`API FAILED`,e,t==null?``:t,`>>`,s,{started:MC(f),duration:Date.now()-+f}),yield(i=n.onResponse)==null?void 0:i.call(n,r,s),!r.ok)throw new bS(r.status,s===a?a:`Failed API ${e}: ${r.statusText}`,s);return s});return function(e){return r.apply(this,arguments)}}(),e=>{var t;throw o==null||o(),!(e==null||(t=e.message)==null)&&t.includes(`fetch`)?(console.error(e.message),Error(`Server unreachable`)):c||e}).catch(e=>{throw c||e}).finally(()=>clearTimeout(u)),{abort(){s==null||s.abort(c=`cancel`)},aborted:()=>s==null?void 0:s.signal.aborted})}var bS=class extends Error{constructor(e,t,n){super(t,{cause:n}),this.code=e}get data(){return this.cause}};function xS(e,t,n={}){let[r,i,a]=dw(void 0),[o,s]=dw(void 0),[c,l]=dw(0),[d,f,p]=dw(void 0),m=(0,u.useRef)();(0,u.useEffect)(()=>{var r;s(void 0);let a=!1,o,c=()=>a||(o==null?void 0:o.aborted()),l=iC(0).then(()=>{if(!a)return o=!e||c()?void 0:yS(e,t,n),f(o),o}).then(e=>{i(c()?void 0:e),s(void 0)},e=>{s(a?void 0:e),i(void 0)}).finally(()=>{o===p()&&f(void 0),m.current=void 0});return(r=m.current)==null||r.resolve(l),()=>{a=!0,o==null||o.abort()}},[e,JSON.stringify(t),JSON.stringify(n),c]);let h=(0,u.useCallback)(()=>(m.current||(m.current=SC(),l(e=>e+1)),m.current),[l]),g=(0,u.useMemo)(()=>new mS,[]),_=(0,u.useCallback)(e=>g.on(`data`,e),[g]);return(0,u.useEffect)(()=>{g.emit(`data`)},[r]),{data:r,setData:i,getData:a,error:o,reload:h,sub:_,loading:d}}function SS(e,t,n){t=$.default.omitBy(t,$.default.isUndefined);let r=new EventSource(zT()+hS+e+NT(t));return r.onopen=()=>{console.debug(`API EVENTS`,e,t),n(`connected`)},r.onerror=e=>n(`error`,e),r.onmessage=({data:e})=>{if(!e)return n(`closed`),r.close();try{e=JSON.parse(e)}catch(t){return n(`string`,e)}console.debug(`SSE msg`,e),n(`msg`,e)},r}function CS(e,t={}){let[n,r]=dw(void 0),[i,a]=dw(void 0),[o,s]=dw(!1);return(0,u.useEffect)(()=>{let n=SS(e,t,(e,t)=>{switch(e){case`error`:return a(`Connection error`),i();case`closed`:return i();case`msg`:return n.readyState===n.CLOSED?i():r(t)}});return()=>{n.close(),i()};function i(){s(!1)}},[e,JSON.stringify(t)]),{data:n,loading:o,error:i}}var wS=n(((e,t)=>{U();var n=`\\\\/`,r=`[^${n}]`,i=0,a=`\\.`,o=`\\+`,s=`\\?`,c=`\\/`,l=`(?=.)`,u=`[^/]`,d=`(?:${c}|$)`,f=`(?:^|${c})`,p=`${a}{1,2}${d}`,m={DOT_LITERAL:a,PLUS_LITERAL:o,QMARK_LITERAL:s,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:u,END_ANCHOR:d,DOTS_SLASH:p,NO_DOT:`(?!${a})`,NO_DOTS:`(?!${f}${p})`,NO_DOT_SLASH:`(?!${a}{0,1}${d})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${c}]`,STAR:`${u}*?`,START_ANCHOR:f,SEP:`/`},h=H(H({},m),{},{SLASH_LITERAL:`[${n}]`,QMARK:r,STAR:`${r}*?`,DOTS_SLASH:`${a}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${a})`,NO_DOTS:`(?!(?:^|[${n}])${a}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${a}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${a}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`,SEP:`\\`});t.exports={DEFAULT_MAX_EXTGLOB_RECURSION:i,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:{__proto__:null,alnum:`a-zA-Z0-9`,alpha:`a-zA-Z`,ascii:`\\x00-\\x7F`,blank:` \\t`,cntrl:`\\x00-\\x1F\\x7F`,digit:`0-9`,graph:`\\x21-\\x7E`,lower:`a-z`,print:`\\x20-\\x7E `,punct:`\\-!"#$%&'()\\*+,./:;<=>?@[\\]^_\`{|}~`,space:` \\t\\r\\n\\v\\f`,upper:`A-Z`,word:`A-Za-z0-9_`,xdigit:`A-Fa-f0-9`},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":`*`,"**/**":`**`,"**/**/**":`**`},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:`negate`,open:`(?:(?!(?:`,close:`))${e.STAR})`},"?":{type:`qmark`,open:`(?:`,close:`)?`},"+":{type:`plus`,open:`(?:`,close:`)+`},"*":{type:`star`,open:`(?:`,close:`)*`},"@":{type:`at`,open:`(?:`,close:`)`}}},globChars(e){return e===!0?h:m}}})),TS=n((e=>{var{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=wS();e.isObject=e=>typeof e==`object`&&!!e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,`\\$1`),e.toPosixSlashes=e=>e.replace(t,`/`),e.isWindows=()=>{if(typeof navigator<`u`&&navigator.platform){let e=navigator.platform.toLowerCase();return e===`win32`||e===`windows`}return typeof process<`u`&&process.platform?process.platform===`win32`:!1},e.removeBackslashes=e=>e.replace(n,e=>e===`\\`?``:e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return i===-1?t:t[i-1]===`\\`?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith(`./`)&&(n=n.slice(2),t.prefix=`./`),n},e.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?``:`^`}(?:${e})${n.contains?``:`$`}`;return t.negated===!0&&(r=`(?:^(?!${r}).*$)`),r},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:`/`),r=n[n.length-1];return r===``?n[n.length-2]:r}})),ES=n(((e,t)=>{var n=TS(),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:u,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:p,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:_}=wS(),v=e=>e===l||e===a,y=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)};t.exports=(e,t)=>{let b=t||{},x=e.length-1,S=b.parts===!0||b.scanToEnd===!0,C=[],w=[],T=[],E=e,D=-1,O=0,k=0,A=!1,ee=!1,j=!1,M=!1,N=!1,P=!1,te=!1,F=!1,ne=!1,I=!1,re=0,L,R,z={value:``,depth:0,isGlob:!1},ie=()=>D>=x,ae=()=>E.charCodeAt(D+1),oe=()=>(L=R,E.charCodeAt(++D));for(;D<x;){R=oe();let e;if(R===a){te=z.backslashes=!0,R=oe(),R===u&&(P=!0);continue}if(P===!0||R===u){for(re++;ie()!==!0&&(R=oe());){if(R===a){te=z.backslashes=!0,oe();continue}if(R===u){re++;continue}if(P!==!0&&R===s&&(R=oe())===s){if(A=z.isBrace=!0,j=z.isGlob=!0,I=!0,S===!0)continue;break}if(P!==!0&&R===o){if(A=z.isBrace=!0,j=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===h&&(re--,re===0)){P=!1,A=z.isBrace=!0,I=!0;break}}if(S===!0)continue;break}if(R===l){if(C.push(D),w.push(z),z={value:``,depth:0,isGlob:!1},I===!0)continue;if(L===s&&D===O+1){O+=2;continue}k=D+1;continue}if(b.noext!==!0&&(R===p||R===i||R===r||R===m||R===c)&&ae()===d){if(j=z.isGlob=!0,M=z.isExtglob=!0,I=!0,R===c&&D===O&&(ne=!0),S===!0){for(;ie()!==!0&&(R=oe());){if(R===a){te=z.backslashes=!0,R=oe();continue}if(R===g){j=z.isGlob=!0,I=!0;break}}continue}break}if(R===r){if(L===r&&(N=z.isGlobstar=!0),j=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===m){if(j=z.isGlob=!0,I=!0,S===!0)continue;break}if(R===f){for(;ie()!==!0&&(e=oe());){if(e===a){te=z.backslashes=!0,oe();continue}if(e===_){ee=z.isBracket=!0,j=z.isGlob=!0,I=!0;break}}if(S===!0)continue;break}if(b.nonegate!==!0&&R===c&&D===O){F=z.negated=!0,O++;continue}if(b.noparen!==!0&&R===d){if(j=z.isGlob=!0,S===!0){for(;ie()!==!0&&(R=oe());){if(R===d){te=z.backslashes=!0,R=oe();continue}if(R===g){I=!0;break}}continue}break}if(j===!0){if(I=!0,S===!0)continue;break}}b.noext===!0&&(M=!1,j=!1);let B=E,se=``,ce=``;O>0&&(se=E.slice(0,O),E=E.slice(O),k-=O),B&&j===!0&&k>0?(B=E.slice(0,k),ce=E.slice(k)):j===!0?(B=``,ce=E):B=E,B&&B!==``&&B!==`/`&&B!==E&&v(B.charCodeAt(B.length-1))&&(B=B.slice(0,-1)),b.unescape===!0&&(ce&&(ce=n.removeBackslashes(ce)),B&&te===!0&&(B=n.removeBackslashes(B)));let le={prefix:se,input:e,start:O,base:B,glob:ce,isBrace:A,isBracket:ee,isGlob:j,isExtglob:M,isGlobstar:N,negated:F,negatedExtglob:ne};if(b.tokens===!0&&(le.maxDepth=0,v(R)||w.push(z),le.tokens=w),b.parts===!0||b.tokens===!0){let t;for(let n=0;n<C.length;n++){let r=t?t+1:O,i=C[n],a=e.slice(r,i);b.tokens&&(n===0&&O!==0?(w[n].isPrefix=!0,w[n].value=se):w[n].value=a,y(w[n]),le.maxDepth+=w[n].depth),(n!==0||a!==``)&&T.push(a),t=i}if(t&&t+1<e.length){let n=e.slice(t+1);T.push(n),b.tokens&&(w[w.length-1].value=n,y(w[w.length-1]),le.maxDepth+=w[w.length-1].depth)}le.slashes=C,le.parts=T}return le}})),DS=n(((e,t)=>{U();var n=wS(),r=TS(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:c}=n,l=(e,t)=>{if(typeof t.expandRange==`function`)return t.expandRange(...e,t);e.sort();let n=`[${e.join(`-`)}]`;try{new RegExp(n)}catch(t){return e.map(e=>r.escapeRegex(e)).join(`..`)}return n},u=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=e=>{let t=[],n=0,r=0,i=0,a=``,o=!1;for(let s of e){if(o===!0){a+=s,o=!1;continue}if(s===`\\`){a+=s,o=!0;continue}if(s===`"`){i=i===1?0:1,a+=s;continue}if(i===0){if(s===`[`)n++;else if(s===`]`&&n>0)n--;else if(n===0){if(s===`(`)r++;else if(s===`)`&&r>0)r--;else if(s===`|`&&r===0){t.push(a),a=``;continue}}}a+=s}return t.push(a),t},f=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n===`\\`){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},p=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(f(t))return t.replace(/\\(.)/g,`$1`)},m=e=>{let t=e.map(p).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],a=r[0];if(!(!a||r!==a.repeat(r.length)||i!==a.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},h=(e,t=!0)=>{if(e[0]!==`+`&&e[0]!==`*`||e[1]!==`(`)return;let n=0,r=0,i=0,a=!1;for(let o=1;o<e.length;o++){let s=e[o];if(a===!0){a=!1;continue}if(s===`\\`){a=!0;continue}if(s===`"`){i=i===1?0:1;continue}if(i!==1){if(s===`[`){n++;continue}if(s===`]`&&n>0){n--;continue}if(!(n>0)){if(s===`(`){r++;continue}if(s===`)`&&(r--,r===0))return t===!0&&o!==e.length-1?void 0:{type:e[0],body:e.slice(2,o),end:o}}}}},g=e=>{let t=0,n=[];for(;t<e.length;){let r=h(e.slice(t),!1);if(!r||r.type!==`*`)return;let i=d(r.body).map(e=>e.trim());if(i.length!==1)return;let a=p(i[0]);if(!a||a.length!==1)return;n.push(a),t+=r.end+1}if(!(n.length<1))return`${n.length===1?r.escapeRegex(n[0]):`[${n.map(e=>r.escapeRegex(e)).join(``)}]`}*`},_=e=>{let t=0,n=e.trim(),r=h(n);for(;r;)t++,n=r.body.trim(),r=h(n);return t},v=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==`number`?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,i=d(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>e===``)||i.some(e=>/^[*?]+$/.test(e))||m(i)))return{risky:!0};for(let e of i){let t=g(e);if(t)return{risky:!0,safeOutput:t};if(_(e)>r)return{risky:!0}}return{risky:!1}},y=(e,t)=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);e=c[e]||e;let d=H({},t),f=typeof d.maxLength==`number`?Math.min(i,d.maxLength):i,p=e.length;if(p>f)throw SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${f}`);let m={type:`bos`,value:``,output:d.prepend||``},h=[m],g=d.capture?``:`?:`,_=n.globChars(d.windows),b=n.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:S,SLASH_LITERAL:C,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:E,NO_DOT_SLASH:D,NO_DOTS_SLASH:O,QMARK:k,QMARK_NO_DOT:A,STAR:ee,START_ANCHOR:j}=_,M=e=>`(${g}(?:(?!${j}${e.dot?T:x}).)*?)`,N=d.dot?``:E,P=d.dot?k:A,te=d.bash===!0?M(d):ee;d.capture&&(te=`(${te})`),typeof d.noext==`boolean`&&(d.noextglob=d.noext);let F={input:e,index:-1,start:0,dot:d.dot===!0,consumed:``,output:``,prefix:``,backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,F),p=e.length;let ne=[],I=[],re=[],L=m,R,z=()=>F.index===p-1,ie=F.peek=(t=1)=>e[F.index+t],ae=F.advance=()=>e[++F.index]||``,oe=()=>e.slice(F.index+1),B=(e=``,t=0)=>{F.consumed+=e,F.index+=t},se=e=>{F.output+=e.output==null?e.value:e.output,B(e.value)},ce=()=>{let e=1;for(;ie()===`!`&&(ie(2)!==`(`||ie(3)===`?`);)ae(),F.start++,e++;return e%2==0?!1:(F.negated=!0,F.start++,!0)},le=e=>{F[e]++,re.push(e)},ue=e=>{F[e]--,re.pop()},V=e=>{if(L.type===`globstar`){let t=F.braces>0&&(e.type===`comma`||e.type===`brace`),n=e.extglob===!0||ne.length&&(e.type===`pipe`||e.type===`paren`);e.type!==`slash`&&e.type!==`paren`&&!t&&!n&&(F.output=F.output.slice(0,-L.output.length),L.type=`star`,L.value=`*`,L.output=te,F.output+=L.output)}if(ne.length&&e.type!==`paren`&&(ne[ne.length-1].inner+=e.value),(e.value||e.output)&&se(e),L&&L.type===`text`&&e.type===`text`){L.output=(L.output||L.value)+e.value,L.value+=e.value;return}e.prev=L,h.push(e),L=e},de=(e,t)=>{let n=H(H({},b[t]),{},{conditions:1,inner:``});n.prev=L,n.parens=F.parens,n.output=F.output,n.startIndex=F.index,n.tokensIndex=h.length;let r=(d.capture?`(`:``)+n.open;le(`parens`),V({type:e,value:t,output:F.output?``:w}),V({type:`paren`,extglob:!0,value:ae(),output:r}),ne.push(n)},fe=n=>{let i=e.slice(n.startIndex,F.index+1),a=v(e.slice(n.startIndex+2,F.index),d);if((n.type===`plus`||n.type===`star`)&&a.risky){let e=a.safeOutput?(n.output?``:w)+(d.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=h[n.tokensIndex];t.type=`text`,t.value=i,t.output=e||r.escapeRegex(i);for(let e=n.tokensIndex+1;e<h.length;e++)h[e].value=``,h[e].output=``,delete h[e].suffix;F.output=n.output+t.output,F.backtrack=!0,V({type:`paren`,extglob:!0,value:R,output:``}),ue(`parens`);return}let o=n.close+(d.capture?`)`:``),s;if(n.type===`negate`){let e=te;n.inner&&n.inner.length>1&&n.inner.includes(`/`)&&(e=M(d)),(e!==te||z()||/^\)+$/.test(oe()))&&(o=n.close=`)$))${e}`),n.inner.includes(`*`)&&(s=oe())&&/^\.[^\\/.]+$/.test(s)&&(o=n.close=`)${y(s,H(H({},t),{},{fastpaths:!1})).output})${e})`),n.prev.type===`bos`&&(F.negatedExtglob=!0)}V({type:`paren`,extglob:!0,value:R,output:o}),ue(`parens`)};if(d.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(s,(e,t,r,i,a,o)=>i===`\\`?(n=!0,e):i===`?`?t?t+i+(a?k.repeat(a.length):``):o===0?P+(a?k.repeat(a.length):``):k.repeat(r.length):i===`.`?x.repeat(r.length):i===`*`?t?t+i+(a?te:``):te:t?e:`\\${e}`);return n===!0&&(i=d.unescape===!0?i.replace(/\\/g,``):i.replace(/\\+/g,e=>e.length%2==0?`\\\\`:e?`\\`:``)),i===e&&d.contains===!0?(F.output=e,F):(F.output=r.wrapOutput(i,F,t),F)}for(;!z();){if(R=ae(),R===`\0`)continue;if(R===`\\`){let e=ie();if(e===`/`&&d.bash!==!0||e===`.`||e===`;`)continue;if(!e){R+=`\\`,V({type:`text`,value:R});continue}let t=/^\\+/.exec(oe()),n=0;if(t&&t[0].length>2&&(n=t[0].length,F.index+=n,n%2!=0&&(R+=`\\`)),d.unescape===!0?R=ae():R+=ae(),F.brackets===0){V({type:`text`,value:R});continue}}if(F.brackets>0&&(R!==`]`||L.value===`[`||L.value===`[^`)){if(d.posix!==!1&&R===`:`){let e=L.value.slice(1);if(e.includes(`[`)&&(L.posix=!0,e.includes(`:`))){let e=L.value.lastIndexOf(`[`),t=L.value.slice(0,e),n=a[L.value.slice(e+2)];if(n){L.value=t+n,F.backtrack=!0,ae(),!m.output&&h.indexOf(L)===1&&(m.output=w);continue}}}(R===`[`&&ie()!==`:`||R===`-`&&ie()===`]`)&&(R=`\\${R}`),R===`]`&&(L.value===`[`||L.value===`[^`)&&(R=`\\${R}`),d.posix===!0&&R===`!`&&L.value===`[`&&(R=`^`),L.value+=R,se({value:R});continue}if(F.quotes===1&&R!==`"`){R=r.escapeRegex(R),L.value+=R,se({value:R});continue}if(R===`"`){F.quotes=F.quotes===1?0:1,d.keepQuotes===!0&&V({type:`text`,value:R});continue}if(R===`(`){le(`parens`),V({type:`paren`,value:R});continue}if(R===`)`){if(F.parens===0&&d.strictBrackets===!0)throw SyntaxError(u(`opening`,`(`));let e=ne[ne.length-1];if(e&&F.parens===e.parens+1){fe(ne.pop());continue}V({type:`paren`,value:R,output:F.parens?`)`:`\\)`}),ue(`parens`);continue}if(R===`[`){if(d.nobracket===!0||!oe().includes(`]`)){if(d.nobracket!==!0&&d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));R=`\\${R}`}else le(`brackets`);V({type:`bracket`,value:R});continue}if(R===`]`){if(d.nobracket===!0||L&&L.type===`bracket`&&L.value.length===1){V({type:`text`,value:R,output:`\\${R}`});continue}if(F.brackets===0){if(d.strictBrackets===!0)throw SyntaxError(u(`opening`,`[`));V({type:`text`,value:R,output:`\\${R}`});continue}ue(`brackets`);let e=L.value.slice(1);if(L.posix!==!0&&e[0]===`^`&&!e.includes(`/`)&&(R=`/${R}`),L.value+=R,se({value:R}),d.literalBrackets===!1||r.hasRegexChars(e))continue;let t=r.escapeRegex(L.value);if(F.output=F.output.slice(0,-L.value.length),d.literalBrackets===!0){F.output+=t,L.value=t;continue}L.value=`(${g}${t}|${L.value})`,F.output+=L.value;continue}if(R===`{`&&d.nobrace!==!0){le(`braces`);let e={type:`brace`,value:R,output:`(`,outputIndex:F.output.length,tokensIndex:F.tokens.length};I.push(e),V(e);continue}if(R===`}`){let e=I[I.length-1];if(d.nobrace===!0||!e){V({type:`text`,value:R,output:R});continue}let t=`)`;if(e.dots===!0){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),e[t].type!==`brace`);t--)e[t].type!==`dots`&&n.unshift(e[t].value);t=l(n,d),F.backtrack=!0}if(e.comma!==!0&&e.dots!==!0){let n=F.output.slice(0,e.outputIndex),r=F.tokens.slice(e.tokensIndex);e.value=e.output=`\\{`,R=t=`\\}`,F.output=n;for(let e of r)F.output+=e.output||e.value}V({type:`brace`,value:R,output:t}),ue(`braces`),I.pop();continue}if(R===`|`){ne.length>0&&ne[ne.length-1].conditions++,V({type:`text`,value:R});continue}if(R===`,`){let e=R,t=I[I.length-1];t&&re[re.length-1]===`braces`&&(t.comma=!0,e=`|`),V({type:`comma`,value:R,output:e});continue}if(R===`/`){if(L.type===`dot`&&F.index===F.start+1){F.start=F.index+1,F.consumed=``,F.output=``,h.pop(),L=m;continue}V({type:`slash`,value:R,output:C});continue}if(R===`.`){if(F.braces>0&&L.type===`dot`){L.value===`.`&&(L.output=x);let e=I[I.length-1];L.type=`dots`,L.output+=R,L.value+=R,e.dots=!0;continue}if(F.braces+F.parens===0&&L.type!==`bos`&&L.type!==`slash`){V({type:`text`,value:R,output:x});continue}V({type:`dot`,value:R,output:x});continue}if(R===`?`){if(!(L&&L.value===`(`)&&d.noextglob!==!0&&ie()===`(`&&ie(2)!==`?`){de(`qmark`,R);continue}if(L&&L.type===`paren`){let e=ie(),t=R;(L.value===`(`&&!/[!=<:]/.test(e)||e===`<`&&!/<([!=]|\w+>)/.test(oe()))&&(t=`\\${R}`),V({type:`text`,value:R,output:t});continue}if(d.dot!==!0&&(L.type===`slash`||L.type===`bos`)){V({type:`qmark`,value:R,output:A});continue}V({type:`qmark`,value:R,output:k});continue}if(R===`!`){if(d.noextglob!==!0&&ie()===`(`&&(ie(2)!==`?`||!/[!=<:]/.test(ie(3)))){de(`negate`,R);continue}if(d.nonegate!==!0&&F.index===0){ce();continue}}if(R===`+`){if(d.noextglob!==!0&&ie()===`(`&&ie(2)!==`?`){de(`plus`,R);continue}if(L&&L.value===`(`||d.regex===!1){V({type:`plus`,value:R,output:S});continue}if(L&&(L.type===`bracket`||L.type===`paren`||L.type===`brace`)||F.parens>0){V({type:`plus`,value:R});continue}V({type:`plus`,value:S});continue}if(R===`@`){if(d.noextglob!==!0&&ie()===`(`&&ie(2)!==`?`){V({type:`at`,extglob:!0,value:R,output:``});continue}V({type:`text`,value:R});continue}if(R!==`*`){(R===`$`||R===`^`)&&(R=`\\${R}`);let e=o.exec(oe());e&&(R+=e[0],F.index+=e[0].length),V({type:`text`,value:R});continue}if(L&&(L.type===`globstar`||L.star===!0)){L.type=`star`,L.star=!0,L.value+=R,L.output=te,F.backtrack=!0,F.globstar=!0,B(R);continue}let t=oe();if(d.noextglob!==!0&&/^\([^?]/.test(t)){de(`star`,R);continue}if(L.type===`star`){if(d.noglobstar===!0){B(R);continue}let n=L.prev,r=n.prev,i=n.type===`slash`||n.type===`bos`,a=r&&(r.type===`star`||r.type===`globstar`);if(d.bash===!0&&(!i||t[0]&&t[0]!==`/`)){V({type:`star`,value:R,output:``});continue}let o=F.braces>0&&(n.type===`comma`||n.type===`brace`),s=ne.length&&(n.type===`pipe`||n.type===`paren`);if(!i&&n.type!==`paren`&&!o&&!s){V({type:`star`,value:R,output:``});continue}for(;t.slice(0,3)===`/**`;){let n=e[F.index+4];if(n&&n!==`/`)break;t=t.slice(3),B(`/**`,3)}if(n.type===`bos`&&z()){L.type=`globstar`,L.value+=R,L.output=M(d),F.output=L.output,F.globstar=!0,B(R);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&!a&&z()){F.output=F.output.slice(0,-(n.output+L.output).length),n.output=`(?:${n.output}`,L.type=`globstar`,L.output=M(d)+(d.strictSlashes?`)`:`|$)`),L.value+=R,F.globstar=!0,F.output+=n.output+L.output,B(R);continue}if(n.type===`slash`&&n.prev.type!==`bos`&&t[0]===`/`){let e=t[1]===void 0?``:`|$`;F.output=F.output.slice(0,-(n.output+L.output).length),n.output=`(?:${n.output}`,L.type=`globstar`,L.output=`${M(d)}${C}|${C}${e})`,L.value+=R,F.output+=n.output+L.output,F.globstar=!0,B(R+ae()),V({type:`slash`,value:`/`,output:``});continue}if(n.type===`bos`&&t[0]===`/`){L.type=`globstar`,L.value+=R,L.output=`(?:^|${C}|${M(d)}${C})`,F.output=L.output,F.globstar=!0,B(R+ae()),V({type:`slash`,value:`/`,output:``});continue}F.output=F.output.slice(0,-L.output.length),L.type=`globstar`,L.output=M(d),L.value+=R,F.output+=L.output,F.globstar=!0,B(R);continue}let n={type:`star`,value:R,output:te};if(d.bash===!0){n.output=`.*?`,(L.type===`bos`||L.type===`slash`)&&(n.output=N+n.output),V(n);continue}if(L&&(L.type===`bracket`||L.type===`paren`)&&d.regex===!0){n.output=R,V(n);continue}(F.index===F.start||L.type===`slash`||L.type===`dot`)&&(L.type===`dot`?(F.output+=D,L.output+=D):d.dot===!0?(F.output+=O,L.output+=O):(F.output+=N,L.output+=N),ie()!==`*`&&(F.output+=w,L.output+=w)),V(n)}for(;F.brackets>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`]`));F.output=r.escapeLast(F.output,`[`),ue(`brackets`)}for(;F.parens>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`)`));F.output=r.escapeLast(F.output,`(`),ue(`parens`)}for(;F.braces>0;){if(d.strictBrackets===!0)throw SyntaxError(u(`closing`,`}`));F.output=r.escapeLast(F.output,`{`),ue(`braces`)}if(d.strictSlashes!==!0&&(L.type===`star`||L.type===`bracket`)&&V({type:`maybe_slash`,value:``,output:`${C}?`}),F.backtrack===!0){F.output=``;for(let e of F.tokens)F.output+=e.output==null?e.value:e.output,e.suffix&&(F.output+=e.suffix)}return F};y.fastpaths=(e,t)=>{let a=H({},t),o=typeof a.maxLength==`number`?Math.min(i,a.maxLength):i,s=e.length;if(s>o)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${o}`);e=c[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:u,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:p,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:_}=n.globChars(a.windows),v=a.dot?m:p,y=a.dot?h:p,b=a.capture?``:`?:`,x={negated:!1,prefix:``},S=a.bash===!0?`.*?`:g;a.capture&&(S=`(${S})`);let C=e=>e.noglobstar===!0?S:`(${b}(?:(?!${_}${e.dot?f:l}).)*?)`,w=e=>{switch(e){case`*`:return`${v}${d}${S}`;case`.*`:return`${l}${d}${S}`;case`*.*`:return`${v}${S}${l}${d}${S}`;case`*/*`:return`${v}${S}${u}${d}${y}${S}`;case`**`:return v+C(a);case`**/*`:return`(?:${v}${C(a)}${u})?${y}${d}${S}`;case`**/*.*`:return`(?:${v}${C(a)}${u})?${y}${S}${l}${d}${S}`;case`**/.*`:return`(?:${v}${C(a)}${u})?${l}${d}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=w(t[1]);return n?n+l+t[2]:void 0}}},T=w(r.removePrefix(e,x));return T&&a.strictSlashes!==!0&&(T+=`${u}?`),T},t.exports=y})),OS=e(n(((e,t)=>{U();var n=ES(),r=DS(),i=TS(),a=wS(),o=e=>e&&typeof e==`object`&&!Array.isArray(e),s=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>s(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=o(e)&&e.tokens&&e.input;if(e===``||typeof e!=`string`&&!r)throw TypeError(`Expected pattern to be a non-empty string`);let i=t||{},a=i.windows,c=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),l=c.state;delete c.state;let u=()=>!1;if(i.ignore){let e=H(H({},t),{},{ignore:null,onMatch:null,onResult:null});u=s(i.ignore,e,n)}let d=(n,r=!1)=>{let{isMatch:o,match:d,output:f}=s.test(n,c,t,{glob:e,posix:a}),p={glob:e,state:l,regex:c,posix:a,input:n,output:f,match:d,isMatch:o};return typeof i.onResult==`function`&&i.onResult(p),o===!1?(p.isMatch=!1,r?p:!1):u(n)?(typeof i.onIgnore==`function`&&i.onIgnore(p),p.isMatch=!1,r?p:!1):(typeof i.onMatch==`function`&&i.onMatch(p),r?p:!0)};return n&&(d.state=l),d};s.test=(e,t,n,{glob:r,posix:a}={})=>{if(typeof e!=`string`)throw TypeError(`Expected input to be a string`);if(e===``)return{isMatch:!1,output:``};let o=n||{},c=o.format||(a?i.toPosixSlashes:null),l=e===r,u=l&&c?c(e):e;return l===!1&&(u=c?c(e):e,l=u===r),(l===!1||o.capture===!0)&&(l=o.matchBase===!0||o.basename===!0?s.matchBase(e,t,n,a):t.exec(u)),{isMatch:!!l,match:l,output:u}},s.matchBase=(e,t,n)=>(t instanceof RegExp?t:s.makeRe(t,n)).test(i.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):r(e,H(H({},t),{},{fastpaths:!1})),s.scan=(e,t)=>n(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},a=i.contains?``:`^`,o=i.contains?``:`$`,c=`${a}(?:${e.output})${o}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=s.toRegex(c,t);return r===!0&&(l.state=e),l},s.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||typeof e!=`string`)throw TypeError(`Expected a non-empty string`);let a={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]===`.`||e[0]===`*`)&&(a.output=r.fastpaths(e,t)),a.output||(a=r(e,t)),s.compileRe(a,t,n,i)},s.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?`i`:``))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}},s.constants=a,t.exports=s}))()),kS=`rejetto/hfs`,AS=`allow_session_ip_change`,jS=`hideInTests`,MS=`maskInTests`,NS=1024;NS*NS;var PS=FS(`accounts.acme_domain.acme_renew.admin_net.allowed_referer.authorization_header.auto_basic.auto_check_update.auto_play_seconds.base_url.block.cache_control_disk_files.cert.comments_storage.create-admin.debug.delete_unfinished_uploads_after.descript_ion_encoding.disable_custom_html.disableTranslation.dont_log_net.dont_overwrite_uploading.dynamic_dns_url.enable_plugins.error_log.favicon.file_menu_on_link.file_timeout.folders_first.force_address.force_https.force_lang.force_webdav_login.geo_allow.geo_allow_unknown.geo_enable.geo_ignore_net.geo_list.ignore_proxies.invert_order.keep_session_alive.listen_interface.localhost_admin.log.log_api.log_gui.log_host.log_rotation.log_spam.log_ua.mapped_port.max_downloads.max_downloads_per_account.max_downloads_per_ip.max_kbps.max_kbps_per_ip.menu_at_top.mime.min_available_mb.open_browser_at_start.outbound_interface.outbound_proxy.own_upload_delete_hours.page_size.plugins_config.port.private_key.proxies.roots.server_code.session_duration.show_hidden_files.show_uploader.size_1024.smart_unc_folder_detection.sort_by.sort_numerics.split_uploads.suspend_plugins.theme.tile_size.title.title_with_path.track_ips.update_to_beta.upnp_enabled.version.vfs.webdav_initial_auth.zip_calculate_size_for_seconds.https_port`.split(`.`));function FS(e){return Object.fromEntries(e.map(e=>[e,e]))}var IS={401:`Unauthorized`,403:`Forbidden`,404:`Not found`,500:`Server error`,429:`Too many requests`};function LS(e,t){this.v=e,this.k=t}function RS(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof LS;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`?`return`:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(a.done?`return`:`normal`,n)},function(e){r(`throw`,e)})}catch(e){i(`throw`,e)}}function i(e,i){switch(e){case`return`:t.resolve({value:i,done:!0});break;case`throw`:t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}RS.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},RS.prototype.next=function(e){return this._invoke(`next`,e)},RS.prototype.throw=function(e){return this._invoke(`throw`,e)},RS.prototype.return=function(e){return this._invoke(`return`,e)},U();var zS=`https://rejetto.com/hfs/`,BS=`https://github.com/${kS}/`,VS=BS+`wiki/`,HS=6e4,US=60*HS,WS=24*US;PS.file_menu_on_link,PS.menu_at_top,PS.tile_size,PS.page_size,PS.sort_by,PS.invert_order,PS.folders_first,PS.sort_numerics,PS.title_with_path,PS.theme,PS.auto_play_seconds,PS.disableTranslation;var GS=[`name`,`extension`,`size`,`time`,`creation`],KS={auto:``,light:`light`,dark:`dark`},qS={add:`+`,remove:`-`,update:`=`,props:`props`,ready:`ready`,error:`e`},JS=`admin`,YS={can_read:!0,can_see:`can_read`,can_list:`can_read`,can_archive:`can_read`,can_upload:JS,can_delete:JS},XS=OC(YS),ZS=[`name`,`source`,`masks`,`default`,`accept`,`rename`,`mime`,`url`,`target`,`comment`,`icon`,`order`,`see_without_probing`,`children`,...XS];function QS(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var $S=[``,`K`,`M`,`G`,`T`];function eC(e,{post:t=`B`,k:n=0,digits:r=NaN,sep:i=` `}={}){var a;if(isNaN(Number(e))||e<0)return``;n||(n=(a=eC.k)==null?1024:a);let o=e&&Math.min($S.length-1,Math.floor(Math.log2(e)/Math.log2(n)));return e/=Math.pow(n,o),(o&&!isNaN(r)?e.toFixed(r):$.default.round(e,isNaN(r)?e>=100?0:1:r))+i+($S[o]||``)+t}function tC(e,t={}){return eC(e,H({post:`B/s`},t))}function nC(e,t,n=``){return t?(e||``)+t+(n||``):``}function rC(e,t,n=`/`){if(!t)return e;if(!e)return t;let r=e.at(-1)===n,i=t[0]===n;return e+(!r&&!i?n+t:r&&i?t.slice(1):t)}function iC(e,t){return new Promise(n=>setTimeout(n,e,t))}function aC(e,t){return Object.fromEntries(e.map(e=>[e,t(e)]))}function oC(e){return cC(`/`,lC(`/`,e.replace(/\/{2,}/g,`/`)))}function sC(e){return/[\\/]$/.test(e)}function cC(e,t=``,n=!1){return(t?!t.endsWith(e):n)?t+e:t}function lC(e,t=``,n=!1){return(t?!t.startsWith(e):n)?e+t:t}function uC(e,t){return t.startsWith(e)?t.slice(e.length):t}function dC(e,t){if(typeof e==`number`)return[t.slice(0,e),t.slice(e+1)];let n=t.indexOf(e);return n<0?[t,``]:[t.slice(0,n),t.slice(n+e.length)]}function fC(e,t){let n=t.indexOf(e);return n<0?``:t.slice(n+e.length)}function pC(e,t,n=!0){let r=t.indexOf(e);return r>=0?t.slice(0,r):n?``:t}function mC(e){return!!e}function hC(e){return e.filter(mC)}function gC(e,t){return Object.defineProperties(e,DC(t,e=>({enumerable:!1,writable:!0,value:e})))}function _C(e,t){try{return e()}catch(e){return t==null?void 0:t(e)}}function vC(e,t){return t(e)}function yC(e){return(e*100).toFixed(1)+`%`}function bC(e){return e==null?[]:Array.isArray(e)?e:[e]}function xC(e){return e}function SC(){let e,t=new Promise((t,n)=>e={resolve:t,reject:n});return Object.assign(t,e)}function CC(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function wC(e,t,n){let r=e[t];return e[t]=e[n],e[n]=r,e}function TC(e,t){return $.default.isEqualWith(e,t,(e,t)=>{if(!$.default.isPlainObject(e)||!$.default.isPlainObject(t))return;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n,i)=>{let a=r[i];return n===a&&TC(e[n],t[a])})})}function EC(e,t){if(e)for(let n in e){let r=t(e[n],n);if(r!==void 0)return r}}function DC(e,t,n=!1){let r,i=Object.entries(e||{}).map(([e,i])=>{let o=typeof n==`number`?n:0;r=e;let s=t(i,e,a,o);return(n!==!1||t.length===4)&&$.default.isPlainObject(s)&&(s=DC(s,t,o+1)),r!==void 0&&[r,s]});return Object.fromEntries(hC(i));function a(e){return r=e,!0}}function OC(e){return Object.keys(e)}function kC(e){return Object.entries(e)}function AC(e,t){let n=!1;return p(function*(){for(;!n;){try{yield t(r)}catch(e){}yield iC(e)}})(),r;function r(){n=!0}}function jC(e,t=!0){return e?(e instanceof Date||(e=new Date(e)),NC(e)+` `+MC(e,t)):``}function MC(e,t=!0){return String(e.getHours()).padStart(2,`0`)+`:`+String(e.getMinutes()).padStart(2,`0`)+(t?`:`+String(e.getSeconds()).padStart(2,`0`):``)}function NC(e){return[e.getFullYear(),e.getMonth()+1,e.getDate()].map(e=>e.toString().padStart(2,`0`)).join(`-`)}function PC(e){return $.default.isNumber(e)||$.default.isString(e)&&!isNaN(Number(e))}function FC(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function IC(e){return/^([.:\da-f]+)$/i.test(e)}function LC(e){return e&&/^[a-zA-Z]:$/.test(e)}function RC(e){return typeof e==`string`&&/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z*$/.test(e)}function zC(e,t,n){var r;return(r=n==null?void 0:n(e,t))==null?e==t||e&&t&&typeof e==`object`&&typeof t==`object`&&Object.entries(e).every(([e,r])=>zC(r,t[e],n))&&Object.entries(t).every(([t,r])=>t in e||zC(r,e[t],n)):r}function BC(e,t){var n;return(n=t[e])==null?e:n}function VC(e){return e[0]===`[`?e.slice(1,e.indexOf(`]`)):e.split(`:`)[0]}function HC(e){return e===`::1`||/^(?:::ffff:)?127\.0\.0\.1$/i.test(e)}function UC(e){return/^(?:10\.|172\.(1[6-9]|2\d|3[01])\.|192\.168\.|fe80::)/.test(e)}function WC(e){if(e.startsWith(`[`))return e;let t=e.indexOf(`:`);return t>=0&&e.indexOf(`:`,t+1)>=0?`[${e}]`:e}function GC(e,t){let n=t===`win32`||t===`darwin`?e.toLocaleLowerCase():e;return t===`darwin`?n.normalize():n}function KC(e,t=!1){return t?encodeURI(e).replace(/#/g,escape):e.replace(/[:&#'"% ?\\]/g,escape)}function qC(e){return decodeURI(e).replace(/%23/g,`#`)}function JC(e,t=!1,n=!0){if(!e)return()=>t;let r=e.replace(/^(!)?/,`$1(`)+`)`,i={nocase:!0,noextglob:!n};return/\)\)[+*]/.test(OS.default.makeRe(r,i).source)?()=>!1:(0,OS.default)(r,i)}function YC(e,t,n=!1){var r;let i=YC.cache||(YC.cache={});return(i[r=t+(n?`1`:`0`)]||(i[r]=JC(t,n)))(e)}function XC(e,t,n=``){let[r,i]=dC(` `,n);for(let[n,a]of Object.entries(t))e=e.replaceAll(r+n+i,a);return e}function ZC(e,t,n,r=!1){let i=n==null?(e=>e!==void 0):n;return e[r?`reduceRight`:`reduce`]((e,n,r)=>{let a=t(n,r);return i(a)&&e.push(a),e},[])}function QC(e,...t){return $.default.isFunction(e)?e(...t):e}function $C(e,t=e){try{return decodeURIComponent(e)}catch(e){return t}}function ew(e){return Array.isArray(e)?e.slice():H({},e)}function tw(e){var t;return $.default.findKey(nw,t=>t.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}var nw={YaBrowser:/yabrowser/i,AlamoFire:/alamofire/i,Edge:/edge|edga|edgios|edg/i,PhantomJS:/phantomjs/i,Konqueror:/konqueror/i,Amaya:/amaya/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Opera:/opera|OPR\//i,Chromium:/chromium/i,Facebook:/FBA[NV]/,Chrome:/chrome|crios/i,WinJs:/msapphost/i,IE:/msie|trident/i,Firefox:/firefox|fxios/i,Safari:/safari/i,PS5:/playstation 5/i,PS4:/playstation 4/i,PS3:/playstation 3/i,PSP:/playstation portable/i,PS:/playstation/i,Xbox:/xbox/i,UC:/UCBrowser/i,Finder:/WebDAVFS.+Darwin|WebDAVLib/,Cyberduck:/^Cyberduck/,ForkLift:/^ForkLift/,Explorer:/^Microsoft-WebDAV-MiniRedir/},rw=typeof window<`u`?u.useLayoutEffect:u.useEffect;function iw(e,t,n,r){let i=(0,u.useRef)(t);rw(()=>{i.current=t},[t]),(0,u.useEffect)(()=>{var t;let a=(t=n==null?void 0:n.current)==null?window:t;if(!(a&&a.addEventListener))return;let o=e=>i.current(e);return a.addEventListener(e,o,r),()=>{a.removeEventListener(e,o,r)}},[e,n,r])}var aw=e=>typeof window<`u`?window.matchMedia(e).matches:!1;function ow(e){let[t,n]=(0,u.useState)(aw(e));return(0,u.useEffect)(()=>{function t(){n(aw(e))}let r=window.matchMedia(e);return t(),r.addListener?r.addListener(t):r.addEventListener(`change`,t),()=>{r.removeListener?r.removeListener(t):r.removeEventListener(`change`,t)}},[e]),t}function sw(e,t){let[n,r]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function cw(){let e=(0,u.useRef)(!1);return(0,u.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,u.useCallback)(()=>e.current,[])}function lw(){let[e,t]=(0,u.useState)({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return iw(`resize`,n),rw(()=>{n()},[]),e}U();var uw=[`margin`];function dw(e){let t=cw(),[n,r]=(0,u.useState)(e),i=(0,u.useRef)(e);return i.current=n,[n,(0,u.useCallback)(e=>{t()&&r(e)},[t,r]),()=>i.current]}function fw(e){return e.filter(e=>e===0||e&&(!Array.isArray(e)||e.length))}function pw(e,t){let n=[];for(let r of fw(t))n.push(r,e);return n.splice(-1,1),mw(n)}function mw(e){return e.map((e,t)=>!e||typeof e==`string`?e:Array.isArray(e)?mw(e):(0,u.createElement)(u.Fragment,{key:t,children:e}))}function hw(){let[e,t]=(0,u.useState)(0);return Object.assign((0,u.useCallback)(()=>t(e=>e+1),[t]),{state:e})}function gw(e,t,{delay:n=0,expireAfter:r=0,depend:i=0}={}){let a=gw.worker2env||(gw.worker2env=e&&new Map),o=a&&a.get(e);o&&!$.default.isEqual(o.depend,i)&&(o=void 0),o||(o=a&&(()=>{let t={batch:new Set,cache:new Map,depend:i};return a.set(e,t),t})());let s=hw();(0,u.useEffect)(()=>{var t;e&&((t=o).waiter||(t.waiter=new Promise(t=>{setTimeout(p(function*(){try{if(!o.batch.size)return;let n=[...o.batch.values()];o.batch.clear(),e(n).then(e=>{n.forEach((t,n)=>{var r;return o.cache.set(t,(r=e[n])==null?null:r)})}).finally(t),r&&setTimeout(()=>{for(let e of n)o.cache.delete(e)},r)}finally{o.waiter=void 0}}),n)}))).then(s)},[e,s.state]);let c=o&&o.cache.get(t);return(0,u.useEffect)(()=>{o&&c===void 0&&(s(),o.batch.add(t))},[o,t,c]),{data:c,refresh(){o&&(o.batch.add(t),s())}}}function _w(e){let{margin:t}=e,n=G(e,uw),r=(0,u.useRef)(),[i,a]=(0,u.useState)();return(0,u.useEffect)(()=>{let e=r.current;if(!e)return;let n=e.getBoundingClientRect(),i=document.documentElement;a((window.innerHeight||i.clientHeight)-(n==null?void 0:n.top)-t)},[lw()]),(0,u.createElement)(`div`,H({ref:r,style:{maxHeight:i,overflow:`auto`}},n))}function vw(){return ow(`(pointer:coarse)`)}function yw(){return bw((0,u.useCallback)((e,t,n,r)=>{Object.assign(document.documentElement.style,{scrollPaddingTop:`${t+(parseFloat(r.top)||0)}px`,scrollPaddingBottom:`${t+(parseFloat(r.bottom)||0)}px`})},[])).refToPass}function bw(e){let t=(0,u.useRef)(null),n=(0,u.useRef)($.default.noop);return(0,u.useMemo)(()=>{let r=-1,i=-1;function a(t){let n=getComputedStyle(t),a=(t.clientWidth||t.getBoundingClientRect().width)+parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderRightWidth)-parseFloat(n.borderLeftWidth),o=(t.clientHeight||t.getBoundingClientRect().height)+parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderBottomWidth)-parseFloat(n.borderTopWidth);(a!==r||o!==i)&&e(r=a,i=o,t,n)}return{ref:t,refToPass(e){if(t.current=e,n.current(),n.current=$.default.noop,!e)return;if(!window.ResizeObserver)return n.current=AC(500,()=>a(e));let r=new ResizeObserver($.default.debounce(e=>a(e[0].target),10));r.observe(e),n.current=()=>r.disconnect()}}},[e])}function xw(){let[e,t]=(0,u.useState)(),{refToPass:n,ref:r}=bw((0,u.useCallback)((e,n)=>t([e,n]),[]));return(0,u.useMemo)(()=>({w:e==null?void 0:e[0],h:e==null?void 0:e[1],ref:r,refToPass:n}),[e,r])}function Sw({children:e}){return e?(0,u.createElement)(`div`,{className:`ariaOnly`},e):null}var Cw=navigator.platform.match(`Mac`);function ww(e){return(e.ctrlKey||Cw&&e.metaKey)&&e.key}function Tw(e){let t=(0,u.useRef)(null),n=(0,u.useRef)(),[r,i]=(0,u.useState)(!0);return(0,u.useEffect)(()=>{let{current:e}=t;r&&(e==null||e.scrollTo(0,e.scrollHeight))},[r,e]),(0,u.useCallback)(e=>{var r;t.current=e,(r=n.current)==null||r.call(n),e&&(n.current=PT(`scroll`,e=>{let t=e.target;t&&i(t.scrollTop+t.clientHeight>=t.scrollHeight-3)},{target:e}))},[])}var Ew=Symbol(),Dw=Symbol(),Ow=`a`,kw=`w`,Aw=(e,t)=>new Proxy(e,t),jw=Object.getPrototypeOf,Mw=new WeakMap,Nw=e=>e&&(Mw.has(e)?Mw.get(e):jw(e)===Object.prototype||jw(e)===Array.prototype),Pw=e=>typeof e==`object`&&!!e,Fw=e=>{if(Array.isArray(e))return Array.from(e);let t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(jw(e),t)},Iw=e=>e[Dw]||e,Lw=(e,t,n,r)=>{if(!Nw(e))return e;let i=r&&r.get(e);if(!i){let t=Iw(e);i=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.configurable&&!e.writable))(t)?[t,Fw(t)]:[t],r==null||r.set(e,i)}let[a,o]=i,s=n&&n.get(a);return s&&s[1].f===!!o||(s=((e,t)=>{let n={f:t},r=!1,i=(t,i)=>{if(!r){let r=n[Ow].get(e);if(r||(r={},n[Ow].set(e,r)),t===kw)r[kw]=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(i)}}},a={get:(t,r)=>r===Dw?e:(i(`k`,r),Lw(Reflect.get(t,r),n[Ow],n.c,n.t)),has:(t,a)=>a===Ew?(r=!0,n[Ow].delete(e),!0):(i(`h`,a),Reflect.has(t,a)),getOwnPropertyDescriptor:(e,t)=>(i(`o`,t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(i(kw),Reflect.ownKeys(e))};return t&&(a.set=a.deleteProperty=()=>!1),[a,n]})(a,!!o),s[1].p=Aw(o||a,s[0]),n&&n.set(a,s)),s[1][Ow]=t,s[1].c=n,s[1].t=r,s[1].p},Rw=(e,t,n,r,i=Object.is)=>{if(i(e,t))return!1;if(!Pw(e)||!Pw(t))return!0;let a=n.get(Iw(e));if(!a)return!0;if(r){let n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let o=null;try{for(let n of a.h||[])if(o=Reflect.has(e,n)!==Reflect.has(t,n),o)return o;if(!0===a[kw]){if(o=((e,t)=>{let n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((e,t)=>e!==r[t])})(e,t),o)return o}else for(let n of a.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),o)return o;for(let s of a.k||[])if(o=Rw(e[s],t[s],n,r,i),o)return o;return o===null&&(o=!0),o}finally{r&&r.set(e,{n:t,g:o})}},zw=e=>Nw(e)&&e[Dw]||null,Bw=(e,t=!0)=>{Mw.set(e,t)},Vw=e=>typeof e==`object`&&!!e,Hw=new WeakMap,Uw=new WeakSet,[Ww]=((e=Object.is,t=(e,t)=>new Proxy(e,t),n=e=>Vw(e)&&!Uw.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),r=e=>{switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:throw e}},i=new WeakMap,a=(e,t,n=r)=>{let o=i.get(e);if((o==null?void 0:o[0])===t)return o[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return Bw(s,!0),i.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let r=Reflect.get(e,t),{enumerable:i}=Reflect.getOwnPropertyDescriptor(e,t),o={value:r,enumerable:i,configurable:!0};if(Uw.has(r))Bw(r,!1);else if(r instanceof Promise)delete o.value,o.get=()=>n(r);else if(Hw.has(r)){let[e,t]=Hw.get(r);o.value=a(e,t(),n)}Object.defineProperty(s,t,o)}),Object.preventExtensions(s)},o=new WeakMap,s=[1,1],c=r=>{if(!Vw(r))throw Error(`object required`);let i=o.get(r);if(i)return i;let l=s[0],u=new Set,d=(e,t=++s[0])=>{l!==t&&(l=t,u.forEach(n=>n(e,t)))},f=s[1],p=(e=++s[1])=>(f!==e&&!u.size&&(f=e,h.forEach(([t])=>{let n=t[1](e);n>l&&(l=n)})),l),m=e=>(t,n)=>{let r=[...t];r[1]=[e,...r[1]],d(r,n)},h=new Map,g=(e,t)=>{if(u.size){let n=t[3](m(e));h.set(e,[t,n])}else h.set(e,[t])},_=e=>{var t;let n=h.get(e);n&&(h.delete(e),(t=n[1])==null||t.call(n))},v=e=>(u.add(e),u.size===1&&h.forEach(([e,t],n)=>{let r=e[3](m(n));h.set(n,[e,r])}),()=>{u.delete(e),u.size===0&&h.forEach(([e,t],n)=>{t&&(t(),h.set(n,[e]))})}),y=Array.isArray(r)?[]:Object.create(Object.getPrototypeOf(r)),b=t(y,{deleteProperty(e,t){let n=Reflect.get(e,t);_(t);let r=Reflect.deleteProperty(e,t);return r&&d([`delete`,[t],n]),r},set(t,r,i,a){let s=Reflect.has(t,r),l=Reflect.get(t,r,a);if(s&&(e(l,i)||o.has(i)&&e(l,o.get(i))))return!0;_(r),Vw(i)&&(i=zw(i)||i);let u=i;if(i instanceof Promise)i.then(e=>{i.status=`fulfilled`,i.value=e,d([`resolve`,[r],e])}).catch(e=>{i.status=`rejected`,i.reason=e,d([`reject`,[r],e])});else{!Hw.has(i)&&n(i)&&(u=c(i));let e=!Uw.has(u)&&Hw.get(u);e&&g(r,e)}return Reflect.set(t,r,u,a),d([`set`,[r],i,l]),!0}});o.set(r,b);let x=[y,p,a,v];return Hw.set(b,x),Reflect.ownKeys(r).forEach(e=>{let t=Object.getOwnPropertyDescriptor(r,e);`value`in t&&(b[e]=r[e],delete t.value,delete t.writable),Object.defineProperty(y,e,t)}),b})=>[c,Hw,Uw,e,t,n,r,i,a,o,s])();function Gw(e={}){return Ww(e)}function Kw(e,t,n){let r=Hw.get(e),i,a=[],o=r[3],s=!1,c=o(e=>{if(a.push(e),n){t(a.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(a.splice(0))}))});return s=!0,()=>{s=!1,c()}}function qw(e,t){let[n,r,i]=Hw.get(e);return i(n,r(),t)}function Jw(e){return Uw.add(e),e}var{use:Yw}=u.default,{useSyncExternalStore:Xw}=C.default,Zw=new WeakMap;function Qw(e,t){let n=t==null?void 0:t.sync,r=(0,u.useRef)(),i=(0,u.useRef)(),a=!0,o=Xw((0,u.useCallback)(t=>{let r=Kw(e,t,n);return t(),r},[e,n]),()=>{let t=qw(e,Yw);try{if(!a&&r.current&&i.current&&!Rw(r.current,t,i.current,new WeakMap))return r.current}catch(e){}return t},()=>qw(e,Yw));a=!1;let s=new WeakMap;return(0,u.useEffect)(()=>{r.current=o,i.current=s}),Lw(o,s,(0,u.useMemo)(()=>new WeakMap,[]),Zw)}U();var $w=Gw([]),{history:eT}=window,tT={closableProps:{children:`x`,"aria-label":`Close`},padding:!0},nT=[`input:not([type="hidden"])`,`button`,`select`,`textarea`,`a[href]`,`[tabindex]`].map(e=>e+`:not([disabled]):not([tabindex="-1"])`).join(`,`);window.addEventListener(`keydown`,e=>{e.key===`Tab`&&rT(e.target,e.shiftKey)&&e.preventDefault()});function rT(e,t=!1){let n=document.querySelectorAll(`[role$=dialog]`),r=n[n.length-1];if(!r)return;let i=r.querySelectorAll(nT),a=i.length;if(!a)return;let[o,s]=t?[a-1,0]:[0,a-1];if(!(e!==i[s]&&iT(document.activeElement,r)))return i[o].focus(),!0}function iT(e,t){if(!t)return!1;let n=typeof t==`function`;for(;e;){if(n?t(e):e===t)return!0;e=e.parentNode}return!1}var aT=Promise.resolve(),oT=Promise.resolve(),sT=0;function cT(){return lT.apply(this,arguments)}function lT(){return lT=p(function*(){let e=eT.state;return new Promise(function(){var t=p(function*(t){let n=Date.now()+1500,r=0;for(;e===eT.state;){let e=Date.now();if(e>n)break;if(e-r>1e3){var i;if(((i=eT.state)==null?void 0:i.$dialog)===void 0||eT.state.$dialog===fT)break;sT++,eT.back(),r=e}yield iC(10)}t()});return function(e){return t.apply(this,arguments)}}())}),lT.apply(this,arguments)}function uT(){return dT.apply(this,arguments)}function dT(){return dT=p(function*(){return aT=aT.then(cT)}),dT.apply(this,arguments)}var fT=1;p(function*(){for(var e;((e=eT.state)==null?void 0:e.$dialog)!==void 0&&eT.state.$dialog!==fT;)eT.back(),yield iC(1)})();function pT(e){(0,u.useEffect)(()=>PT(`popstate`,()=>{var e;if(sT)return sT--;let t=(e=eT.state)==null?void 0:e.$dialog;if(t!==void 0){if(t!==fT&&!$w.find(e=>e.$id===t))return uT();_T(void 0,!0)}}),[]);let t=Qw($w);return(0,u.useEffect)(()=>{document.body.style.overflow=t.length?`hidden`:``},[t.length]),(0,u.createElement)(u.Fragment,{},(0,u.createElement)(`div`,H({"aria-hidden":t.length>0},e)),t.map(e=>(0,u.createElement)(mT,H({key:e.$id},e))))}function mT(e){var t;let n=(0,u.useRef)(null),[r,i]=(0,u.useState)(0);if((0,u.useEffect)(()=>{var t,r;let a=(t=n.current)==null?void 0:t.querySelector(`.dialog`);if(!a||(rT(a),(r=a.querySelector(`[autofocus]`))==null||r.focus(),!e.position))return;let o=0,s=setInterval(()=>{let e=a.getBoundingClientRect();i(o=Math.min(o,e.top,window.innerHeight-e.bottom+o))},100);return()=>clearInterval(s)},[]),e=H(H({closable:!0},tT),e),e.Container)return(0,u.createElement)(e.Container,e);return(0,u.createElement)(`div`,{ref:n,className:`dialog-backdrop `+(e.className||``),onKeyDown(e){e.key===`Escape`&&_T(),e.stopPropagation()},onClick:t=>e.closable&&t.target===t.currentTarget&&_T()},e.noFrame?(0,u.createElement)(e.Content||`div`):(0,u.createElement)(`div`,H({role:`dialog`,"aria-modal":!0,className:`dialog`,style:H(H({},a()),(t=e.dialogProps)==null?void 0:t.style),onClick(e){e.stopPropagation()}},e.dialogProps),(0,u.createElement)(`button`,H({className:`dialog-icon dialog-closer`+(e.closable?``:` hidden`),onClick(){_T()}},e.closableProps)),e.icon&&(0,u.createElement)(`div`,{className:`dialog-icon dialog-type`+(typeof e.icon==`string`?` dialog-icon-text`:``),"aria-hidden":!0},hT(e.icon)),(0,u.createElement)(`h1`,{className:`dialog-title`},hT(e.title)),(0,u.createElement)(`div`,{className:`dialog-content`},(0,u.createElement)(e.Content||`div`))));function a(){let{innerWidth:t,innerHeight:n}=window,i=e.position;return i&&H(H({margin:`1em`,position:`absolute`},i[0]<t/2?{left:i[0]}:{right:t-i[0]}),i[1]<n/2?{top:r+i[1]}:{bottom:r+n-i[1]})}}function hT(e){return FC(e)||(0,u.isValidElement)(e)?e:(0,u.createElement)(e)}function gT(e){var t;let n=Math.random(),r=performance.now(),i=Object.assign($.default.mapValues(e,e=>(0,u.isValidElement)(e)?Jw(e):e),{close:o,ts:r,$id:n,restoreFocus:(t=e.restoreFocus)==null?Jw(document.activeElement||{}):t}),a=!1;return Promise.all([aT,oT]).then(()=>{if(!a&&($w.length||eT.replaceState(H(H({},eT.state),{},{$dialog:fT}),``),$w.push(i),$w.at(-1).closable!==!1)){var e,t;((e=eT.state)==null?void 0:e.$dialog)===void 0&&eT.replaceState(H(H({},eT.state),{},{$dialog:fT}),``),eT.pushState({$dialog:n,ts:r,idx:1+(((t=eT.state)==null?void 0:t.idx)||0)},``)}}),i;function o(t,r=!0){var o;a=!0;let s=$w.findIndex(e=>e.$id===n);if(!(s<0))return i.closed=!r&&((o=eT.state)==null?void 0:o.$dialog)===n?uT():Promise.resolve(),yT(s,t),e.closed}}function _T(e,t=!1){var n;let r=$w.length;if(((n=$w[r-1])==null?void 0:n.closable)!==!1)for(;r--;){let n=$w[r];if(!n.reserveClosing){if(!t){var i;if(((i=eT.state)==null?void 0:i.$dialog)!==n.$id){let t=oT=oT.then(()=>aT).then(()=>{var t,n,r;return(t=_T(e,((n=eT.state)==null?void 0:n.$dialog)!==((r=$w.at(-1))==null?void 0:r.$id)))==null?void 0:t.closed});return H(H({},n),{},{closed:t})}n.closed=uT()}return yT(r,e),n}}}var vT=Promise.resolve();function yT(e,t){var n,r;let[i]=$w.splice(e,1);return(n=i.restoreFocus)==null||(r=n.focus)==null||r.call(n),i.closingValue=t&&typeof t==`object`?Jw(t):t,i.closed!=null||(i.closed=Promise.resolve()),i.closed.then(p(function*(){var e;vT=vT.then(p(function*(){var e;for(yield aT;!$w.length&&((e=eT.state)==null?void 0:e.$dialog)!==void 0&&eT.state.$dialog!==fT;)yield uT()})),yield vT,i==null||(e=i.onClose)==null||e.call(i,t)})),i}function bT(){return $w.length>0}U();var xT=[`children`],ST={a:`a`,"`":`code`,"*":`i`,"**":`b`};function CT(e,{html:t=!0,linkTarget:n=`_blank`,onText:r=(e=>e)}={}){return typeof e!=`string`&&(e=e[0]),wT(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|(<(\w+?)(?:\s+[^>]*?)?>(?:.*?<\/\7>)?)/g,e=>e[4]?(0,u.createElement)(ST.a,{href:e[5],target:n},r(e[4])):e[3]?(0,u.createElement)(`br`):e[1]?(0,u.createElement)(ST[e[1]]||u.Fragment,{},r(e[2])):t?(0,u.createElement)(TT,{},e[6]):e[6],r)}function wT(e,t,n,r=(e=>e)){let i=[],a=0,o;for(;(o=t.exec(e))&&(i.push(r(e.slice(a,o.index))),i.push(n(o)),a=o.index+o[0].length,t.global););return(0,u.createElement)(u.Fragment,{},...i,r(e.slice(a,1/0)))}function TT(e){let{children:t}=e,n=G(e,xT);return(0,u.useMemo)(()=>t?(0,u.createElement)(`span`,H(H({},n),{},{ref:e=>e&&e.replaceChildren(document.createRange().createContextualFragment(t))})):null,[t])}var ET;window._=$.default,setTimeout(()=>{document.querySelectorAll(`.removeAtBoot`).forEach(e=>e.remove())},500);var DT=(()=>{let e=performance.now();return $.default.range(1e5).map(e=>++e),e=performance.now()-e,1/e})(),OT=Object.fromEntries(new URLSearchParams(window.location.search).entries()),kT=RT();Object.assign(kT,{getPluginKey:(e=!1)=>{var t,n;return(t=(n=MT(`plugin`))==null?AT():n)==null?e?void 0:console.error(`this function must be called synchronously during initial script evaluation`):t},getPluginPublic:()=>{var e;return(e=MT(`src`))==null||(e=e.match(/^.*\//))==null?void 0:e[0]},getPluginConfig:()=>kT.plugins[kT.getPluginKey()]||{},loadScript:e=>HT(e.includes(`//`)||e.startsWith(`/`)?e:kT.getPluginPublic()+e),userBelongsTo:e=>bC(e).some(e=>{var t;return(t=kT.state.expandedUsername)==null?void 0:t.includes(e)}),cpuSpeedIndex:DT,copyTextToClipboard:qT,urlParams:OT}),eC.k=kT.kb;function AT(){var e;return pC(`/`,((e=Error().stack)==null?void 0:e.split(`/~/plugins/`)[1])||``)}var jT=`*.jpg|*.jpeg|*.png|*.gif|*.svg`;{let e=console.debug;console.debug=(...t)=>window.DEV&&e(...t)}function MT(e){var t;return(t=document.currentScript)==null?void 0:t.getAttribute(e)}function NT(e){return`?`+Object.entries(e).filter(e=>e[1]!==void 0).map(e=>e.map(e=>encodeURIComponent(e).replaceAll(`%2F`,`/`)).join(`=`)).join(`&`)}function PT(e,t,n){let r=n&&`target`in n?n.target:window;return r?(r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)):()=>{}}function FT(e,t){e&&(e.style.animation=``,e.offsetWidth,e.style.animation=t)}function IT(e,{accept:t=``,multiple:n=!0,folder:r=!1}={}){let i=Object.assign(document.createElement(`input`),{type:`file`,name:`file`,accept:t,multiple:n,webkitdirectory:r});i.addEventListener(`change`,()=>e(i.files)),i.click()}function LT(e){return new Promise((t,n)=>{let r=new FileReader;r.addEventListener(`load`,r=>{if(!r.target||e.size&&!r.target.result)return n(`cannot read`);let{result:i}=r.target;t(i==null?void 0:i.toString())}),r.addEventListener(`error`,()=>{n(r.error)}),r.readAsText(e)})}function RT(){var e;return(e=window).HFS||(e.HFS={})}function zT(){return RT().prefixUrl||``}function BT(e){let t;return n(RT().session),n;function n(r){clearTimeout(t);let i=[`username`,`isAdmin`,`adminUrl`,`canChangePassword`,`accountExp`,`expandedUsername`,`requireChangePassword`];r!=null||(r=aC(i,()=>void 0));let{exp:a}=r;if(RT().session=Object.assign(e,$.default.pick(r,i)),!r.username||!a)return;let o=new Date(a).getTime()-Date.now(),s=$.default.clamp(o-3e4,4e3,6e5);console.debug(`session refresh in`,Math.round(s/1e3)),t=setTimeout(()=>yS(`refresh_session`).then(n),s)}}function VT(e,t=document){let n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function HT(e,t={}){return new Promise((n,r)=>{let i=document.createElement(`script`);i.type=`text/javascript`,i.src=e,i.onload=n,i.onerror=r;for(let[e,n]of Object.entries(t))i.setAttribute(e,String(n));document.head.appendChild(i)})}function UT(e){var t;return((t=e.match(/([^\\/]+)[\\/]*$/))==null?void 0:t[1])||``}function WT(e){let t=UT(e),n=t.lastIndexOf(`.`);return n<=0?``:t.slice(n)}function GT(e){return e.slice(0,Math.max(0,e.lastIndexOf(`/`,e.length-1)))}function KT({locale:e=void 0,unitDisplay:t=`narrow`,largest:n=`day`,smallest:r=`second`,maxTokens:i,skipZeroes:a}={}){let o={day:WS,hour:US,minute:HS,second:1e3},s=$.default.mapValues(o,(n,r)=>Intl.NumberFormat(e,{style:`unit`,unit:r,unitDisplay:t}).format),c=new Intl.ListFormat(e,{style:`narrow`,type:`unit`});return e=>{let t=[],l=!1;for(let[c,f]of kC(o)){var u,d;if(c===r&&t.length)break;if(c===n&&(l=!0),!l)continue;let o=Math.floor(e/f);if(!(!o&&a)){if(t.push((u=(d=s[c])==null?void 0:d.call(s,o))==null?String(o):u),t.length===i)break;e%=f}}return c.format(t)}}function qT(e){return JT.apply(this,arguments)}function JT(){return JT=p(function*(e){e=String(e);try{yield navigator.clipboard.writeText(e)}catch(t){console.debug(`fallback clipboard method`);let n=PT(`copy`,t=>{var n;(n=t.clipboardData)==null||n.setData(`text/plain`,e),t.preventDefault()},{capture:!0,target:document});try{if(!document.execCommand(`copy`))throw Error(`unknown`)}finally{n()}}}),JT.apply(this,arguments)}function YT(e,t){let n=t instanceof Blob?t:new Blob([t],{type:`text/plain`}),r=document.createElement(`a`);r.href=URL.createObjectURL(n),r.download=e,r.style.display=`none`,document.body.append(r),r.click(),setTimeout(()=>r.remove(),100)}function XT(t){return(...n)=>_(()=>import(`./dist-DC2A6cD2.js`).then(t=>e(t.default)).then(e=>t(e,...n)),__vite__mapDeps([2,1]))}function ZT(e,t){return QT.apply(this,arguments)}function QT(){return QT=p(function*(t,n){let{createVerifierAndSalt:r,SRPParameters:i,SRPRoutines:a}=yield _(p(function*(){let{createVerifierAndSalt:t,SRPParameters:n,SRPRoutines:r}=yield import(`./dist-DC2A6cD2.js`).then(t=>e(t.default));return{createVerifierAndSalt:t,SRPParameters:n,SRPRoutines:r}}),__vite__mapDeps([2,1])),o=yield r(new a(new i),t,n);return yS(`change_srp`,{username:t,salt:String(o.s),verifier:String(o.v)})}),QT.apply(this,arguments)}(ET=Element.prototype).replaceChildren||(ET.replaceChildren=function(e){for(;this.lastChild;)this.removeChild(this.lastChild);e!==void 0&&this.append(e)});var $T={100:`Continue: the initial headers were received; continue with the request body`,101:`Switching Protocols: the server is switching protocols as requested`,102:`Processing: the server is processing the request but a complete response isn’t ready yet`,103:`Early Hints: preliminary headers are being sent before the final response`,200:`OK: response sent`,201:`Created: a new resource was created successfully`,202:`Accepted: the request has been accepted for processing but isn’t complete yet`,203:`Non-Authoritative Information: the response contains modified information from a third party`,204:`No Content: the request succeeded but there’s no content to return`,205:`Reset Content: the request succeeded; please reset your view`,206:`Partial Content: only part of the resource is being returned as requested`,207:`Multi-Status: the response contains several status codes for different parts of the request`,208:`Already Reported: the resource has already been reported in a previous response`,226:`IM Used: the server fulfilled the request using instance manipulations`,300:`Multiple Choices: several options are available for the requested resource`,301:`Moved Permanently: the resource has been permanently moved to a new URL`,302:`Found: the resource is temporarily located at a different URL`,303:`See Other: the requested resource can be found using GET at another URL`,304:`Not Modified: the browser was asked to use its cached version, and the file was not actually sent`,305:`Use Proxy: the requested resource must be accessed through the specified proxy`,306:`Switch Proxy: this code is no longer used but is reserved for future use`,307:`Temporary Redirect: the resource is temporarily available at a different URL; use the original for future requests`,308:`Permanent Redirect: the resource has been permanently moved to another URL`,400:`Bad Request: the request is malformed or contains invalid parameters`,401:`Unauthorized: authentication is required and was either not provided or failed`,402:`Payment Required: payment is required to access this resource (reserved for future use)`,403:`Forbidden: the server understands the request but refuses to authorize it`,404:`Not Found: the requested resource could not be found`,405:`Method Not Allowed: the HTTP method used isn’t allowed for this resource`,406:`Not Acceptable: the resource can’t produce content acceptable according to the request`,407:`Proxy Authentication Required: proxy authentication is required to access the resource`,408:`Request Timeout: the server timed out waiting for the request`,409:`Conflict: the request couldn’t be processed due to a conflict`,410:`Gone: the requested resource is no longer available`,411:`Length Required: the request didn’t include the required content length`,412:`Precondition Failed: one or more conditions in the request header failed`,413:`Payload Too Large: the request payload is too large for the server to process`,414:`URI Too Long: the URL provided is too long`,415:`Unsupported Media Type: the media type is not supported by the server`,416:`Range Not Satisfiable: the requested range cannot be fulfilled by the server`,417:`Expectation Failed: the server can’t meet the expectations in the request’s header`,418:`I'm a Teapot: this code is a humorous reference and not meant for real use`,421:`Misdirected Request: the request was sent to a server that can’t produce a response`,422:`Unprocessable Entity: the request was well-formed but contains semantic errors`,423:`Locked: the resource is locked and can’t be accessed`,424:`Failed Dependency: the request failed because a previous request did not succeed`,425:`Too Early: the server refuses to process the request to prevent replay attacks`,426:`Upgrade Required: the client should switch to a different protocol`,428:`Precondition Required: the server requires the request to be conditional`,429:`Too Many Requests: too many requests have been sent in a short period`,431:`Request Header Fields Too Large: the request’s header fields are too large`,451:`Unavailable For Legal Reasons: the resource is unavailable due to legal restrictions`,500:`Internal Server Error: the server encountered an unexpected error`,501:`Not Implemented: the server does not support the requested functionality`,502:`Bad Gateway: the server received an invalid response from an upstream server`,503:`Service Unavailable: the server is currently unable to handle the request`,504:`Gateway Timeout: the server did not receive a timely response from an upstream server`,505:`HTTP Version Not Supported: the server does not support the HTTP version used`,506:`Variant Also Negotiates: a circular reference was detected during content negotiation`,507:`Insufficient Storage: the server is unable to store the requested resource`,508:`Loop Detected: the server detected an infinite loop while processing the request`,510:`Not Extended: additional extensions are needed to fulfill the request`,511:`Network Authentication Required: network access requires proper authentication`};ST.a=ey;function eE(e){var t;let n=typeof e==`string`&&((t=e.split(`Error: EPERM: operation not permitted, access `)[1])==null?void 0:t.split(`
|
|
218
|
+
`)[0]);return n?`Access denied on disk for ${n}`:{github_quota:`Request denied. You may have reached the limit, retry later.`,ENOENT:`Not found`,ENOTDIR:`Not a folder`}[e]||IS[e]||$T[e]||String(e)}function tE(e){return e?(e instanceof Date?e:new Date(e)).toLocaleString():``}function nE(e,t){return!zC(e,t,(e,t)=>!e&&!t||void 0)}var rE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 14H9V8h2zm4 0h-2V8h2z`}),`PauseCircle`),iE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.5 16.5v-9l7 4.5z`}),`PlayCircle`),aE=Hc((0,K.jsx)(`path`,{d:`M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z`}),`Refresh`),oE=Hc((0,K.jsx)(`path`,{d:`M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z`}),`Save`);U();var sE=[`value`,`onChange`,`min`,`max`,`required`,`setApi`,`typing`,`start`,`end`,`onTyping`,`suggestions`,`wrap`,`fieldRef`,`InputProps`,`InputLabelProps`,`inputProps`,`slotProps`];function cE(e){let{value:t,onChange:n,min:r,max:i,required:a,setApi:o,typing:s,start:c,end:l,onTyping:d,suggestions:f,wrap:p,fieldRef:m,InputProps:h,InputLabelProps:g,inputProps:_,slotProps:v}=e,y=G(e,sE),b=t==null?``:t;o==null||o({getError(){return!t&&a?`required`:(t==null?void 0:t.length)<r?`too short`:(t==null?void 0:t.length)>i?`too long`:!1}});let[x,S]=(0,u.useState)(b),C=(0,u.useRef)(b);(0,u.useEffect)(()=>{S(b),C.current=b},[b]);let w=(0,u.useRef)(),T=(0,u.useRef)(!1),E=e=>{var t,n,r;let i=H(H(H({},v==null?void 0:v.input),h),e==null||(t=e.slotProps)==null?void 0:t.input);return(0,u.createElement)($x,H(H(H({fullWidth:!0},e),y),{},{ref:m,sx:y.label?y.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},y.sx),value:x,slotProps:H(H({},v),{},{input:H(H({},i),{},{startAdornment:D(`start`,c,i.startAdornment),endAdornment:D(`end`,l,i.endAdornment)}),inputLabel:x||y.placeholder||g||v!=null&&v.inputLabel?H(H(H({shrink:!0},e==null||(n=e.slotProps)==null?void 0:n.inputLabel),g),v==null?void 0:v.inputLabel):void 0,htmlInput:H(H(H({},v==null?void 0:v.htmlInput),_),e==null||(r=e.slotProps)==null?void 0:r.htmlInput)}),onChange(e){let t=e.target.value;if(!(p&&t.includes(`
|
|
219
|
+
`))){if(d){let e=d(t);if(e===!1)return;t=e}S(t),(s||T.current||w.current===void 0)&&O(e,t)}},onKeyDown(e){var t;(t=y.onKeyDown)==null||t.call(y,e),T.current=e.code===void 0,e.key===`Enter`&&e.target.ariaExpanded!==`true`&&O(e)},onFocus(e){w.current=e.target.value},onBlur(e){var t;(t=y.onBlur)==null||t.call(y,e),w.current!==e.target.value&&O(e)}}))};return f?(0,u.createElement)(sh,{freeSolo:!0,options:f,renderInput:E,onChange(e,t){O(e,t)}}):E(null);function D(e,t,n){if(!t)return n;let r=(0,u.createElement)(Ev,{position:e},t);return e===`start`?(0,u.createElement)(u.Fragment,{},r,n):(0,u.createElement)(u.Fragment,{},n,r)}function O(e,r=x){r=r==null?void 0:r.trim(),r!==C.current&&(C.current=r,n(r,{was:t,event:e,cancel(){S(b)}}))}}U();var lE=[`defaultValue`,`value`,`onChange`,`setApi`,`options`,`sx`,`disabled`,`afterList`,`renderOption`],uE=[`renderOption`],dE=[`value`,`onChange`,`setApi`,`options`,`placeholder`,`helperText`,`label`,`valueSeparator`,`clearable`,`afterList`];function fE(e){let{defaultValue:t,value:n=t,onChange:r,setApi:i,options:a,sx:o,disabled:s,afterList:c,renderOption:l}=e,d=G(e,lE),f=(0,u.useMemo)(()=>hE(a),[a]),p=JSON.stringify(n),m=f==null?void 0:f.find(e=>JSON.stringify(e.value)===p);return l!=null||(l=e=>{var t;return(t=e.label)==null?String(e.value):t}),(0,u.createElement)($x,H(H(H({select:!0,hiddenLabel:!e.label,value:m?p:``,disabled:(f==null?void 0:f.length)===0||s,children:f?[...f.map((e,t)=>(0,u.createElement)(Lb,{key:t,value:JSON.stringify(e==null?void 0:e.value),disabled:e==null?void 0:e.disabled,children:(0,u.createElement)(u.Fragment,{key:t},l(e))})),(0,u.createElement)(`div`,{key:-1},c)]:(0,u.createElement)(Kv)},mE(e)),d),{},{onChange(e){try{let t=e.target.value;t=JSON.parse(t),r(t,{was:n,event:e})}catch(e){}}}))}function pE(e){let{renderOption:t}=e,n=G(e,uE),{value:r,onChange:i,setApi:a,options:o,placeholder:s,helperText:c,label:l,valueSeparator:d=`, `,clearable:f=!0,afterList:p}=n,m=G(n,dE),h=(0,u.useMemo)(()=>hE(o),[o]),g=(0,u.useMemo)(()=>Array.isArray(r)?r.map(e=>(h==null?void 0:h.find(t=>t.value===e))||{value:e,label:String(e)}):[],[r,h]),_=(0,u.useMemo)(()=>(r==null?void 0:r.map(e=>JSON.stringify(e)))||[],[r]),v=vw(),y=(0,u.useId)(),b=(0,u.useId)(),x=!g.length;return t!=null||(t=e=>{var t;return(t=e.label)==null?String(e.value):t}),(0,u.createElement)(L_,{fullWidth:!0,variant:`filled`,hiddenLabel:!l},(0,u.createElement)(Av,{id:y,sx:{"&.Mui-focused":{color:`inherit`}}},l),(0,u.createElement)(bx,H(H({},mE(n)),{},{multiple:!0,displayEmpty:!0,value:_,onChange:e=>{let{value:t}=e.target;Array.isArray(t)&&(t=t.map(e=>e&&JSON.parse(e)),i(t,{was:r,event:e}))},sx:{"& .MuiSelect-select":{maxHeight:`15em`,overflowY:`auto`}},input:(0,u.createElement)(M_,{hiddenLabel:!l,"aria-describedby":b}),renderValue:()=>(0,u.createElement)(`div`,{"aria-label":l+`: `+g.map(e=>{var t;return(t=e.label)==null?String(e.value):t}),style:{overflow:`hidden`,display:`flex`,flexWrap:`wrap`,gap:`.5em`},children:x?(0,u.createElement)(yh,{sx:{position:`relative`,top:`.3em`,fontSize:`small`,fontStyle:`italic`,color:`text.secondary`}},s):g.map((e,n)=>(0,u.createElement)(`span`,{key:n},t(e),n<g.length-1&&d))})},m),h?!h.length&&(0,u.createElement)(Ty,{sx:{fontStyle:`italic`,ml:1},onClickCapture(e){e.stopPropagation()}},`No options available`):(0,u.createElement)(Kv),!v&&(h==null?void 0:h.length)>20&&(0,u.createElement)(yh,{sx:{float:`right`,fontSize:`small`,width:`8em`,textAlign:`right`,marginRight:`.5em`}},`ⓘ You can type the name`),(0,u.createElement)(Mh,{size:`small`,sx:{ml:1,display:(h==null?void 0:h.length)>1?void 0:`none`},ref:(0,u.useCallback)(e=>e&&Object.assign(e,{role:void 0})&&setTimeout(()=>e.focus()),[]),onClickCapture(e){e.stopPropagation(),i(x?h.map(e=>e.value):[],{was:r,event:e})}},x?`Select all`:`Unselect all`),...(h==null?void 0:h.map(e=>(0,u.createElement)(Lb,{value:JSON.stringify(e==null?void 0:e.value)},(0,u.createElement)(fg,{checked:(r==null?void 0:r.includes(e.value))||!1}),(0,u.createElement)(Ty,{primary:t(e)}))))||[],p),(0,u.createElement)(Z_,{id:b,error:n.error},c))}function mE(e){return{fullWidth:!0,sx:Object.assign({"& .MuiInputBase-inputHiddenLabel":{py:1,"& .MuiInputAdornment-root":{ml:-1}}},e.sx)}}function hE(e){return e?Array.isArray(e)?e.map(e=>typeof e==`string`||typeof e==`number`?{value:e}:e):Object.entries(e).map(([e,t])=>({value:t,label:e})):void 0}var gE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z`}),`Cancel`);U();var _E=[`value`,`empty`],vE=[`value`,`onChange`,`setApi`,`required`,`min`,`max`,`step`,`unit`,`clearable`],yE=[`was`],bE=[`label`,`value`,`onChange`,`setApi`,`helperText`,`error`,`Control`,`type`];function xE(e){let{value:t,empty:n=`-`}=e,r=G(e,_E);return!r.toField&&n!==void 0&&t!==0&&!t&&(t=n),(0,u.createElement)(cE,H(H({},r),{},{value:t,disabled:!0,onChange(){}}))}function SE(e){let{value:t,onChange:n,setApi:r,required:i,min:a=0,max:o,step:s,unit:c,clearable:l}=e,d=G(e,vE);r==null||r({getError(){return t==null?i?`required`:!1:t<a?`too low`:t>o?`too high`:!1}});let f=xw();return(0,u.createElement)(cE,H(H({type:`number`,value:t==null?``:String(t),onChange(e,t){let{was:r}=t,i=G(t,yE);n(e?Number(e):null,H(H({},i),{},{was:r?Number(r):null}))},inputProps:{min:a,max:o,step:s},InputProps:$.default.merge({sx:{"& input":{appearance:`textfield`}},startAdornment:(l==null?d.placeholder:l)&&f.w>100&&(t||t===0)&&(0,u.createElement)(Ev,{position:`start`},(0,u.createElement)($u,{size:`small`,edge:`start`,sx:{ml:-1,opacity:.5},"aria-label":`clear`,onClick(e){n(null,{was:t,event:e})}},(0,u.createElement)(gE)))},c&&{sx:{pr:`6px`,"& input":{pl:`.2em`,textAlign:`right`}},endAdornment:(0,u.createElement)(Ev,{position:`end`,sx:{mt:`1.2em`,ml:`5px`,"& p":{fontSize:`80%`,".Mui-focused &":{color:`text.primary`}}}},c)})},d),{},{fieldRef:f.refToPass}))}function CE(e){let{label:t=``,value:n,onChange:r,setApi:i,helperText:a,error:o,Control:s=Hx,type:c}=e,l=G(e,bE),d=()=>n==null?!1:n,[f,p]=(0,u.useState)(d);(0,u.useEffect)(()=>p(d),[n]);let m=(0,u.createElement)(s,H(H({checked:f},l),{},{onChange(e){r(e.target.checked,{event:e,was:n})}}));return(0,u.createElement)(yh,{sx:H({ml:1},o&&{color:`error.main`,outlineOffset:6,outline:`1px solid`})},(0,u.createElement)(W_,{label:t,control:m,labelPlacement:`end`,sx:H({mr:0},l.size===`small`&&{"& .MuiFormControlLabel-label":{fontSize:`.9rem`}})}),a&&(0,u.createElement)(Z_,{sx:{mt:0},error:o},a))}function wE(e){return(0,u.createElement)(CE,H({Control:fg},e))}U();var TE=[`fields`,`values`,`set`,`get`,`defaults`,`save`,`stickyBar`,`addToBar`,`barSx`,`apiRef`,`formRef`,`onError`,`onValidation`,`saveOnEnter`,`gridProps`,`sx`,`onKeyDown`],EE=[`k`,`fromField`,`toField`,`getError`,`error`,`xs`,`sm`,`md`,`lg`,`xl`,`comp`,`before`,`after`,`parentProps`];function DE(...e){return e.filter(Boolean).flatMap(e=>$.default.castArray(e))}var OE=`field-container-with-error`;function kE(e){let{fields:t,values:n,set:r,get:i,defaults:a,save:o,stickyBar:s,addToBar:c=[],barSx:l,apiRef:d,formRef:f,onError:m,onValidation:h,saveOnEnter:g,gridProps:_,sx:v,onKeyDown:y}=e,b=G(e,TE),x=(0,u.useRef)(!1);(0,u.useEffect)(()=>(x.current=!0,()=>{x.current=!1}),[]);let[S,C]=(0,u.useState)({}),[w,T]=(0,u.useState)({}),E=typeof o==`function`?{onClick:o}:o,[D,O]=(0,u.useState)(0),k=(0,u.useRef)(!1),A=(0,u.useRef)(),ee=(0,u.useRef)(``);d&&(d.current={submit:N,validate:()=>new Promise(e=>{k.current=!1,A.current=e,P()||e(!1)})}),f||(f=(0,u.useRef)()),(0,u.useEffect)(()=>void F(),[D]);let j={},M={};return(0,u.createElement)(yh,H({component:`form`,sx:DE({display:`flex`,flexDirection:`column`,gap:3},v),ref:f,onSubmit(e){e.preventDefault()},onKeyDown(e){y==null||y(e),!e.defaultPrevented&&E&&!E.disabled&&(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&N()}},b),(0,u.createElement)(av,H({container:!0,rowSpacing:3,columnSpacing:1},_),t.map((e,t)=>{if(!e)return null;if((0,u.isValidElement)(e))return(0,u.createElement)(av,{key:t,size:12},e);a&&(e=H(H({},a==null?void 0:a(e)),e));let{k:n,fromField:i=$.default.identity,toField:o=$.default.identity,getError:s,error:c,xs:l=12,sm:d,md:f,lg:p,xl:m,comp:h=cE,before:_,after:v,parentProps:y}=e,b=G(e,EE),x=jE({xs:l,sm:d,md:f,lg:p,xl:m}),C=S[n]||c||w[n];C===!0&&(C=`Not valid`);let E=!!(C||c)||void 0;if(n){let t=e.hasOwnProperty(`value`)?e.value:te(n);Object.assign(b,{name:n,value:o(t),error:E,setApi(e){M[n]=e},onKeyDown(e){g&&e.key===`Enter`&&N()},onChange(e){try{var a;if(e=i(e,{originalValue:t}),T(e=>H(H({},e),{},{[n]:!1})),(((a=M[n])==null?void 0:a.isEqual)||$.default.isEqual)(e,t))return;r(e,n),P(n)}catch(e){T(t=>H(H({},t),{},{[n]:(e==null?void 0:e.message)||String(e)||!0}))}}}),Array.isArray(b.helperText)&&(b.helperText=(0,u.createElement)(u.Fragment,{},...b.helperText)),C&&(b.helperText=b.helperText?(0,u.createElement)(yh,{sx:{color:`text.primary`},component:`span`},(0,u.createElement)(yh,{sx:{color:`error.main`,display:`block`},style:{borderBottom:`1px solid`},component:`span`},C),b.helperText):C),b.label===void 0&&(b.label=AE(n))}let D=j[n]=(j[n]||0)+1;return(0,u.createElement)(av,H({key:n?n+D:t,size:x,className:E&&OE},y),_,(0,u.isValidElement)(h)?h:(0,u.createElement)(h,b),v)})),E&&(0,u.createElement)(yh,{sx:H(H({display:`flex`,alignItems:`center`},s&&{width:`fit-content`,zIndex:2,backgroundColor:`background.paper`,borderRadius:1,position:`sticky`,bottom:0,p:1,m:-1,boxShadow:`0px 0px 15px #000`}),l)},(0,u.createElement)(Nx,{title:`ctrl + enter`,children:(0,u.createElement)(Mh,H(H({variant:`contained`,startIcon:(0,u.createElement)(oE),children:`Save`,loading:sw(D!==0)},E),{},{className:`saveBtn ${(E==null?void 0:E.className)||``}`,onClick(){N()}}))}),...c));function N(){k.current=!0,P()}function P(e=``){return D===0?(ee.current=e,setTimeout(()=>O(e=>e===0?1:e)),!0):!1}function te(e){return i?i(e):n==null?void 0:n[e]}function F(){return ne.apply(this,arguments)}function ne(){return ne=p(function*(){var e;if(D===0)return;if(D===1)return O(2);let r={};for(let e of t){if(!e||(0,u.isValidElement)(e)||!e.k)continue;let{k:s}=e,c=te(s),l;try{var i,a,o;l=(yield(i=M[s])==null||(a=i.getError)==null?void 0:a.call(i,c,{values:n,fields:t}))||(yield(o=e.getError)==null?void 0:o.call(e,c,{values:n,fields:t}))||w[s]||!1}catch(e){l=String(e)}if(r[s]=l,!k.current&&s===ee.current)break;if(!x.current)return}C(r);let s=Object.values(r).some(Boolean);if(h==null||h(s&&r,k.current),(e=A.current)==null||e.call(A,!s),A.current=void 0,!k.current){x.current&&O(0);return}try{if(s)try{return yield m==null?void 0:m(`Please review errors`)}finally{setTimeout(()=>{var e;return f==null||(e=f.current)==null||(e=e.querySelector(`.field-container-with-error`))==null?void 0:e.scrollIntoView({block:`center`})},1)}let e=E&&E.onClick;e&&(yield e())}catch(e){yield m==null?void 0:m(e)}finally{k.current=!1,x.current&&O(0)}}),ne.apply(this,arguments)}}function AE(e){return $.default.upperFirst(e.indexOf(`_`)>0?e.replace(/_/g,` `):e.replace(/([a-z])([A-Z])/g,(e,t,n)=>t+` `+n.toLowerCase()))}function jE({xs:e,sm:t,md:n,lg:r,xl:i}){let a={xs:ME(e),sm:ME(t),md:ME(n),lg:ME(r),xl:ME(i)};return t===void 0&&n===void 0&&r===void 0&&i===void 0?a.xs:a}function ME(e){return e===!0?`grow`:e}var NE=Hc((0,K.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),PE=Hc((0,K.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),FE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`Error`),IE=Hc((0,K.jsx)(`path`,{d:`M12 8V4l8 8-8 8v-4H4V8z`}),`Forward`),LE=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z`}),`Info`),RE=Hc((0,K.jsx)(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`Warning`);function zE(e,t,n,r){let i=e[t];return Kw(e,()=>{let r=e[t];Object.is(i,r)||n(i=r)},r)}U();var BE=Symbol.for(`immer-nothing`),VE=Symbol.for(`immer-draftable`),HE=Symbol.for(`immer-state`);function UE(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var WE=Object.getPrototypeOf;function GE(e){return!!e&&!!e[HE]}function KE(e){var t;return e?JE(e)||Array.isArray(e)||!!e[VE]||!!((t=e.constructor)!=null&&t[VE])||eD(e)||tD(e):!1}var qE=Object.prototype.constructor.toString();function JE(e){if(!e||typeof e!=`object`)return!1;let t=WE(e);if(t===null)return!0;let n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object?!0:typeof n==`function`&&Function.toString.call(n)===qE}function YE(e,t){XE(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function XE(e){let t=e[HE];return t?t.type_:Array.isArray(e)?1:eD(e)?2:tD(e)?3:0}function ZE(e,t){return XE(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function QE(e,t,n){let r=XE(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function $E(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function eD(e){return e instanceof Map}function tD(e){return e instanceof Set}function nD(e){return e.copy_||e.base_}function rD(e,t){if(eD(e))return new Map(e);if(tD(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=JE(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[HE];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(WE(e),t)}else{let t=WE(e);return t!==null&&n?H({},e):Object.assign(Object.create(t),e)}}function iD(e,t=!1){return oD(e)||GE(e)||!KE(e)?e:(XE(e)>1&&Object.defineProperties(e,{set:{value:aD},add:{value:aD},clear:{value:aD},delete:{value:aD}}),Object.freeze(e),t&&Object.values(e).forEach(e=>iD(e,!0)),e)}function aD(){UE(2)}function oD(e){return Object.isFrozen(e)}var sD={};function cD(e){let t=sD[e];return t||UE(0,e),t}var lD;function uD(){return lD}function dD(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fD(e,t){t&&(cD(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pD(e){mD(e),e.drafts_.forEach(gD),e.drafts_=null}function mD(e){e===lD&&(lD=e.parent_)}function hD(e){return lD=dD(lD,e)}function gD(e){let t=e[HE];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _D(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[HE].modified_&&(pD(t),UE(4)),KE(e)&&(e=vD(t,e),t.parent_||bD(t,e)),t.patches_&&cD(`Patches`).generateReplacementPatches_(n[HE].base_,e,t.patches_,t.inversePatches_)):e=vD(t,n,[]),pD(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===BE?void 0:e}function vD(e,t,n){if(oD(t))return t;let r=t[HE];if(!r)return YE(t,(i,a)=>yD(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return bD(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;let t=r.copy_,i=t,a=!1;r.type_===3&&(i=new Set(t),t.clear(),a=!0),YE(i,(i,o)=>yD(e,r,t,i,o,n,a)),bD(e,t,!1),n&&e.patches_&&cD(`Patches`).generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function yD(e,t,n,r,i,a,o){if(GE(i)){let o=vD(e,i,a&&t&&t.type_!==3&&!ZE(t.assigned_,r)?a.concat(r):void 0);if(QE(n,r,o),GE(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(KE(i)&&!oD(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;vD(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(eD(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&bD(e,i)}}function bD(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iD(t,n)}function xD(e,t){let n=Array.isArray(e),r={type_:+!!n,scope_:t?t.scope_:uD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=SD;n&&(i=[r],a=CD);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var SD={get(e,t){if(t===HE)return e;let n=nD(e);if(!ZE(n,t))return TD(e,n,t);let r=n[t];return e.finalized_||!KE(r)?r:r===wD(e.base_,t)?(OD(e),e.copy_[t]=AD(r,e)):r},has(e,t){return t in nD(e)},ownKeys(e){return Reflect.ownKeys(nD(e))},set(e,t,n){let r=ED(nD(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=wD(nD(e),t),i=r==null?void 0:r[HE];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if($E(n,r)&&(n!==void 0||ZE(e.base_,t)))return!0;OD(e),DD(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty(e,t){return wD(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,OD(e),DD(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=nD(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){UE(11)},getPrototypeOf(e){return WE(e.base_)},setPrototypeOf(){UE(12)}},CD={};YE(SD,(e,t)=>{CD[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),CD.deleteProperty=function(e,t){return CD.set.call(this,e,t,void 0)},CD.set=function(e,t,n){return SD.set.call(this,e[0],t,n,e[0])};function wD(e,t){let n=e[HE];return(n?nD(n):e)[t]}function TD(e,t,n){var r;let i=ED(t,n);return i?`value`in i?i.value:(r=i.get)==null?void 0:r.call(e.draft_):void 0}function ED(e,t){if(!(t in e))return;let n=WE(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=WE(n)}}function DD(e){e.modified_||(e.modified_=!0,e.parent_&&DD(e.parent_))}function OD(e){e.copy_||(e.copy_=rD(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kD=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if(typeof e==`function`&&typeof t!=`function`){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}typeof t!=`function`&&UE(6),n!==void 0&&typeof n!=`function`&&UE(7);let r;if(KE(e)){let i=hD(this),a=AD(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?pD(i):mD(i)}return fD(i,n),_D(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===BE&&(r=void 0),this.autoFreeze_&&iD(r,!0),n){let t=[],i=[];cD(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else UE(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e==`function`)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},typeof(e==null?void 0:e.autoFreeze)==`boolean`&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)==`boolean`&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){KE(e)||UE(8),GE(e)&&(e=jD(e));let t=hD(this),n=AD(e,void 0);return n[HE].isManual_=!0,mD(t),n}finishDraft(e,t){let n=e&&e[HE];(!n||!n.isManual_)&&UE(9);let{scope_:r}=n;return fD(r,t),_D(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=cD(`Patches`).applyPatches_;return GE(e)?r(e,t):this.produce(e,e=>r(e,t))}};function AD(e,t){let n=eD(e)?cD(`MapSet`).proxyMap_(e,t):tD(e)?cD(`MapSet`).proxySet_(e,t):xD(e,t);return(t?t.scope_:uD()).drafts_.push(n),n}function jD(e){return GE(e)||UE(10,e),MD(e)}function MD(e){if(!KE(e)||oD(e))return e;let t=e[HE],n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rD(e,t.scope_.immer_.useStrictShallowCopy_)}else n=rD(e,!0);return YE(n,(e,t)=>{QE(n,e,MD(t))}),t&&(t.finalized_=!1),n}var ND=new kD().produce;U();var PD=[`parent`,`children`],FD=new Map,ID=`admin_state`,LD={title:``,config:{},selectedFiles:[],vfsShowDiskContentFor:``,accountsAsTree:!1,movingFiles:[],vfs:void 0,vfsUndo:void 0,vfsModified:!1,expanded:[],loginRequired:!1,username:``,monitorOnlyFiles:!0,monitorWithLog:!0,customHtmlSection:``,darkTheme:void 0,dataTablePersistence:{},hideRandomPlugin:!1,onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}};Object.assign(LD,JSON.parse(localStorage[ID]||null));var RD=Gw(LD);Object.assign(window,{state:RD});var zD=[`onlinePluginsColumns`,`monitorOnlyFiles`,`monitorWithLog`,`customHtmlSection`,`darkTheme`,`dataTablePersistence`,`accountsAsTree`,`hideRandomPlugin`],BD=$.default.debounce(()=>localStorage[ID]=JSON.stringify($.default.pick(RD,zD)),500,{maxWait:1e3});for(let e of zD)zE(RD,e,BD);function VD(){return Qw(RD)}function HD(){RD.vfs=H({},RD.vfs),RD.vfsModified=!0,UD()}function UD({node:e=RD.vfs,clearMap:t=!0,sortChildren:n=!1,select:r=RD.selectedFiles}={}){var i;if(!e)return;let a=new Map,o=new Map;t&&FD.clear(),s(e,((i=e.parent)==null?void 0:i.id)||`/`,e.parent);for(let e of[`movingFiles`,`expanded`])RD[e]=RD[e].map(e=>{var t;return(t=a.get(e))==null?e:t});RD.vfsShowDiskContentFor=``,r&&(RD.selectedFiles=hC(r.map(e=>FD.get(typeof e==`string`?e:e.id)||o.get(typeof e==`string`?e:e.originalId))));function s(e,t,r){let i=e.id;e.parent=r,e.inherited=WD(e);let c=e.isRoot?`/`:nC(t,KC(e.name),e.type===`folder`?`/`:``);if(i&&i!==c&&FD.delete(i),e.id=c,i&&a.set(i,c),e.originalId||(e.originalId=c),FD.set(c,e),o.set(e.originalId,e),e.children){n&&(e.children=$.default.sortBy(e.children,[`type`,e=>{var t;return(t=e.name)==null?void 0:t.toLocaleLowerCase()}]));for(let t of e.children)s(t,e.id,e)}}}function WD(e){let t=e==null?void 0:e.parent;if(!t)return;let n={};for(let i of XS){let a=r(t,i);a!==void 0&&e[i]==null&&(n[i]=a)}return $.default.isEmpty(n)?void 0:n;function r(e,t){for(;e;){let n=e[t];if(n!=null&&(!QS(n)||(n=n.children,n!==void 0)))return n;e=e.parent}}}function GD(e,t){return t.endsWith(`/`)&&e.startsWith(t)}function KD(){RD.vfs&&(RD.vfsUndo=JD())}function qD(){if(!RD.vfs||!RD.vfsUndo)return;let e=JD();Object.assign(RD,RD.vfsUndo),RD.vfsUndo=e,RD.vfsModified=!0,UD()}function JD(){return{vfs:XD(RD.vfs),movingFiles:[...RD.movingFiles],expanded:[...RD.expanded]}}function YD(e,t,n){e[t]=ND(e[t],n)}function XD(e){let{parent:t,children:n}=e,r=G(e,PD),i=$.default.cloneDeep(r);return n&&(i.children=n.map(XD)),i}var ZD=Hc((0,K.jsx)(`path`,{d:`M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6`}),`Brightness4`),QD=Hc((0,K.jsx)(`path`,{d:`M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4`}),`Brightness7`);U();function $D(){return eS(`(prefers-color-scheme: dark)`)}var eO={};function tO(){let{darkTheme:e}=VD(),t=$D(),n=(e==null?t:e)?null:eO;return(0,u.useMemo)(()=>_c({palette:n||{mode:`dark`,text:{primary:`#bbb`,secondary:`#fff6`},primary:{main:`#469`,light:`#68c`},secondary:{main:`#969`}},typography:{fontFamily:`Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif`},components:{MuiDataGrid:{styleOverrides:{panel:({theme:e})=>({color:e.palette.text.primary})}},MuiLink:{defaultProps:n||{color:`primary.light`}},MuiTextField:{defaultProps:{variant:`filled`},styleOverrides:n||{root:{"& label.Mui-focused":{color:`#ccc`}}}},MuiButton:{defaultProps:{variant:`outlined`},styleOverrides:n||{root({ownerState:e}){return e.color===`primary`&&{color:e.variant===`contained`?`#ddd`:`#68c`}}}}}}),[n])}function nO(e){let{darkTheme:t}=VD(),n=$D(),r=t==null?n:t;return(0,u.createElement)(BO,H({icon:r?QD:ZD,onClick:()=>{let e=!r;return RD.darkTheme=n===e?void 0:e}},e),r?`Light theme`:`Dark theme`)}U();var rO=[`sx`,`root`],iO=[`type`],aO=[`href`,`trueText`,`falseText`,`before`,`after`],oO=[`form`,`values`,`Wrapper`],sO=[`onChange`,`before`,`addToBar`],cO=[`value`,`field`,`save`,`addToBar`];tT.Container=function(e){let t=(0,u.useRef)(),n=vw();(0,u.useEffect)(()=>{let e=setTimeout(()=>{let e=t.current;e&&(n||VT(`[autofocus]`,e)||VT(nT,e))});return()=>clearTimeout(e)},[n,t.current]);let r=lO();e=H(H({},tT),e);let i=e.dialogProps||{},{sx:a,root:o}=i,s=G(i,rO);return e.noFrame?(0,u.createElement)(Bg,{open:!0,children:(0,u.createElement)(WO,{},(0,u.createElement)(e.Content))}):(0,u.createElement)(Xg,H(H(H({open:!0,maxWidth:!1,fullScreen:n},s),o),{},{className:e.className,onClose:()=>_T()}),e.title&&(0,u.createElement)(s_,{sx:H({position:`sticky`,top:0,p:1,zIndex:2,boxShadow:`0 0 8px #0004`,display:`flex`,alignItems:`center`},r)},e.icon&&hT(e.icon),(0,u.createElement)(yh,{sx:{flex:1,minWidth:40,ml:1}},hT(e.title)),e.closable&&(0,u.createElement)(zO,{icon:PE,title:`Close`,onClick:()=>_T()})),(0,u.createElement)(r_,{ref:t,sx:DE({p:e.padding?{xs:1,sm:void 0}:0,pt:`16px !important`,overflow:`initial`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`stretch`},a)},(0,u.createElement)(e.Content)))};function lO(){let{darkTheme:e}=VD(),t=$D();return(e==null?t:e)?{bgcolor:`#2d2d2d`}:{bgcolor:`#ccc`,color:`#444`}}var uO={error:FE,warning:RE,info:LE,success:NE};function dO(e,t){var n;let r=typeof t==`string`?{type:t}:t==null?{}:t,{type:i=`info`}=r,a=G(r,iO);e instanceof Error&&(e=eE(e.message||e.code),i=`error`);let o=SC(),s=gT(H(H({className:`dialog-alert dialog-alert-`+i,icon:(n=r.icon)==null?(0,u.createElement)(uO[i],{color:i}):n,onClose:o.resolve,title:$.default.upperFirst(i),dialogProps:{fullScreen:!1}},a),{},{Content(){return(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1}},(0,u.isValidElement)(e)?e:(0,u.createElement)(yh,{sx:{fontSize:`large`,lineHeight:`1.8em`,pb:1}},String(e)))}}));return Object.assign(o,s)}function fO(e,t={}){let{href:n,trueText:r=`Go`,falseText:i=`Don't`,before:a,after:o}=t,s=G(t,aO),c=SC(),l=gT(H(H({className:`dialog-confirm`,onClose:c.resolve,dialogProps:{sx:{alignItems:`center`}}},s),{},{Content:d}));return Object.assign(c,l);function d(){return(0,u.createElement)(u.Fragment,{},(0,u.createElement)(yh,{sx:{mb:2}},typeof e==`string`?CT(e):e),(0,u.createElement)(MO,{},a==null?void 0:a({onClick:e=>l.close(e)}),(0,u.createElement)(`a`,{href:n,onClick:()=>l.close(!0)},(0,u.createElement)(Mh,{variant:`contained`},r)),(0,u.createElement)(Mh,{onClick:()=>l.close(!1)},i),o==null?void 0:o({onClick:e=>l.close(e)})))}}function pO(e){return mO.apply(this,arguments)}function mO(){return mO=p(function*(e){let{form:t,values:n,Wrapper:r}=e,i=G(e,oO),a;return new Promise(e=>{let o=gT(H(H({className:`dialog-form`,onClose:t=>e(t||a)},i),{},{Content(){let[e,i]=(0,u.useState)(n||{}),s=(0,u.useRef)(),c=(0,u.useRef)(),l={values:e,dialog:o,submit:g},d=typeof t==`function`?t(e,l):t,{onChange:f,before:p,addToBar:m}=d,h=G(d,sO);return h.save===!1&&(a=e),(0,u.createElement)(r||u.Fragment,{},p,(0,u.createElement)(kE,H(H({},h),{},{values:e,set(e,t){i(n=>{let r=H(H({},n),{},{[t]:e});return f==null||f(r,{setValues:i}),r})},save:h.save!==!1&&H(H({},h.save),{},{onClick(){let{current:t}=c;return c.current=void 0,t?t(e,o):o.close(e)}}),onValidation(e,t){var n;e&&t&&(c.current=void 0),(n=h.onValidation)==null||n.call(h,e,t)},apiRef:s,addToBar:$.default.castArray(QC(m,l))})));function g(e){var t;c.current=e,(t=s.current)==null||t.submit()}}}))})}),mO.apply(this,arguments)}function hO(e){return gO.apply(this,arguments)}function gO(){return gO=p(function*(e,t={}){let{value:n=``,field:r,save:i,addToBar:a=[]}=t,o=G(t,cO);return pO(H(H({},o),{},{values:{text:n},form:H({fields:[H(H({k:`text`,label:null,autoFocus:!0},r),{},{before:(0,u.createElement)(yh,{sx:{mb:2}},e)})],save:H({children:`Continue`,startIcon:(0,u.createElement)(IE)},i),saveOnEnter:!0,barSx:{gap:2},addToBar:[(0,u.createElement)(Mh,{onClick:_T},`Cancel`),...a]},o.form)})).then(e=>e==null?void 0:e.text)}),gO.apply(this,arguments)}function _O(){return gT({Content:()=>(0,u.createElement)(Ku,{size:`20vw`}),noFrame:!0,closable:!1}).close}function vO(e,t=`info`,n){let r=3e3,i=gT(H(H({},n),{},{Content:a,dialogProps:{fullScreen:!1,slotProps:{paper:{sx:{transition:`opacity ${r}ms ease-in`},ref(e){e&&(e.style.opacity=`0`)}}}}}));return setTimeout(i.close,r),i;function a(){return(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1}},(0,u.isValidElement)(t)?t:(0,u.createElement)(uO[t],{color:t}),(0,u.isValidElement)(e)?e:(0,u.createElement)(`div`,{},String(e)))}}var yO=`🇦🇫|AF|Afghanistan
|
|
220
220
|
🇦🇽|AX|Åland Islands
|
|
221
221
|
🇦🇱|AL|Albania
|
|
222
222
|
🇩🇿|DZ|Algeria
|
|
@@ -473,5 +473,5 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
473
473
|
🇾🇪|YE|Yemen
|
|
474
474
|
🇿🇲|ZM|Zambia
|
|
475
475
|
🇿🇼|ZW|Zimbabwe`.split(`
|
|
476
|
-
`).map(e=>{let[t,n,r]=e.split(`|`);return{flag:t,code:n,name:r}}),
|
|
477
|
-
`)]),{ref:t}}function NO(e){return e?{sx:{outline:`2px solid`,animation:`.5s blink 2`}}:void 0}function PO(e){let t=(0,u.useRef)(null);return Object.assign(t,{pass(n){t.current=n,$.default.isFunction(e)?e(n):e&&(e.current=n)}})}var FO=(0,u.forwardRef)((e,t)=>(0,u.createElement)(IO,H({ref:t},e))),IO=(0,u.forwardRef)((e,t)=>{var n,r;let{icon:i,title:a,onClick:o,disabled:s,progress:c,link:l,tooltipProps:d,confirm:f,doneMessage:m,doneAnimation:h,labelIf:g,children:_,modified:v,loading:y}=e,b=G(e,bO),[x,S]=cw(!1);typeof s==`string`&&(a=s),s=c||s?!0:void 0,l&&(o=()=>window.open(l));let C=EO($.default.isString(g)?g:`xs`)&&($.default.isBoolean(g)?g:!0);!C&&_&&(a=_);let w=PO(t),T=$.default.merge(NO(v),{ref:w.pass,disabled:s,"aria-hidden":s,onClick(...e){var t=this;return p(function*(){if(x||f&&!(yield cO(f===!0?`Are you sure?`:f)))return;let n=o==null?void 0:o.apply(t,e);n instanceof Promise&&(S(!0),n.finally(()=>S(!1)));try{(yield n)!==!1&&LO(m,h&&w.current)}catch(e){sO(e)}})()}},b),E=(0,u.isValidElement)(i)?i:i&&(0,u.createElement)(i),D=_&&C?(0,u.createElement)(Mh,$.default.merge({variant:`contained`,startIcon:E,loading:!!(y||x||c),loadingPosition:i&&`start`,loadingIndicator:typeof c==`number`?(0,u.createElement)(Ku,{size:`1rem`,value:c*100,variant:`determinate`}):void 0,children:C&&_},T,(!C||!_)&&{sx:{minWidth:`auto`,px:1,py:`7px`,"& span":{mx:0}}})):(0,u.createElement)($u,$.default.merge(T,{sx:{height:`fit-content`},TouchRippleProps:{"aria-hidden":!0},"aria-label":!_||!C?(n=b[`aria-label`])==null?$.default.isString(a)?a:void 0:n:b[`aria-label`]}),(c||x)&&c!==!1&&(0,u.createElement)(Ku,H(H({},typeof c==`number`?{value:c*100,variant:`determinate`}:null),{},{style:{position:`absolute`,top:`10%`,left:`10%`,width:`80%`,height:`80%`}})),E),O=(r=b[`aria-label`])==null?gC($.default.isString(a)&&a,e=>e?`${nC(``,$.default.isString(_)&&_,` – `)}${e}`:void 0):r;return a&&(D=(0,u.createElement)(`span`,s?{role:`button`,"aria-label":O,"aria-disabled":!0}:void 0,D),D=JO(a,O,D,d)),D});function LO(e,t){t&&MT(t,`success .5s`),e&&mO(e===!0?`Operation completed`:e,`success`)}function RO(e,t,n,r){return JO(t,void 0,(0,u.createElement)(e,H({sx:n},r)))}function zO(e){let{to:t}=e,n=G(e,xO),r=Ce()[1];return n.onClickCapture=function(){var e=p(function*(e){var n;for(e.preventDefault();_T();)yield(n=mT())==null?void 0:n.closed;r(t)});return function(t){return e.apply(this,arguments)}}(),(0,u.createElement)(ey,H({component:ke,href:t},n))}var BO=(0,u.forwardRef)((e,t)=>{let{sx:n}=e,r=G(e,SO);return(0,u.createElement)(yh,H({ref:t,sx:wE({display:`flex`,height:`100%`,width:`100%`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`},n)},r))});function VO(e){let t=vO({},(_O(e),e));return(0,u.createElement)(ey,H(H({},t),{},{href:``,sx:wE({cursor:`pointer`},t.sx),role:`button`,onClick(e){var n;e.preventDefault(),(n=t.onClick)==null||n.call(t,e)}}))}function HO(e=``,t=!0,n){let[r,i]=UO(`Pause ${e}`,`Resume ${e}`,e=>H({icon:e?eE:tE,sx:{rotate:e?`180deg`:`0deg`}},n),t);return{pause:!r,pauseButton:i}}function UO(e,t,n,r=!1){let[i,a]=(0,u.useState)(r instanceof Promise||r instanceof Function?(()=>{let e=YC(r);return e instanceof Promise?(e.then(e=>a(e)),!1):e}):r),o=(0,u.useCallback)(()=>a(e=>!e),[]),s=n(i);return[i,(0,u.useMemo)(()=>(0,u.createElement)(FO,H(H({size:`small`,color:i?`primary`:void 0,title:i||t===void 0?e:t,"aria-label":e,"aria-pressed":i},s),{},{sx:wE({transition:`all .5s`},s.sx),onClick(e){var t;(t=s.onClick)==null||t.call(s,e),o()}})),[i]),a]}function WO(e){let{setApi:t,helperText:n}=e,r=G(e,CO),i=(0,u.useRef)(!1);return t==null||t({getError(){return r.value&&yS(`validate_net_mask`,{mask:r.value}).then(e=>!e.result&&`Invalid mask`)}}),(0,u.createElement)(aE,H(H({helperText:(0,u.createElement)(`span`,{},n,n&&` – `,kO(`Wildcards#network-masks`,`Wildcards supported`))},r),{},{onTyping(e){var t,n;return!i.current&&e!=null&&e.includes(`127.0.0.1`)&&!e.includes(`::1`)&&(i.current=!0,sO(`Hostname "localhost" is normally translated as ::1 instead of 127.0.0.1`,`warning`)),(t=(n=r.onTyping)==null?void 0:n.call(r,e))==null?e:t}}))}function GO({code:e,ip:t,def:n,long:r,short:i}){let a=t&&!BC(t)&&!VC(t),{data:o}=pw(e===void 0&&a&&KO,t,{delay:100});e||(e=o||``);let s=e&&$.default.find(hO,{code:e});return s?JO(r?void 0:s.name,void 0,(0,u.createElement)(`span`,{},(0,u.createElement)(yh,{className:`fflag fflag-${e.toUpperCase()}`,component:`span`,sx:{mr:`.5em`,verticalAlign:`text-bottom`}}),r?s.name+nC(` (`,i&&e,`)`):e)):(0,u.createElement)(u.Fragment,{},n)}function KO(e){return qO.apply(this,arguments)}function qO(){return qO=p(function*(e){return(yield yS(`ip_country`,{ips:e})).codes}),qO.apply(this,arguments)}function JO(e,t,n,r){return(0,u.createElement)(Nx,H(H({title:e,children:n},t===``?{"aria-hidden":!0}:{"aria-label":t||$.default.isString(e)&&e||void 0}),{},{slotProps:{popper:{sx:wE({whiteSpace:`pre-wrap`},r==null?void 0:r.sx)}}},r))}U(),vS({onResponse(e,t){return p(function*(){if(e.status===401)throw FD.loginRequired=(t==null?void 0:t.possible)!==!1||403,new bS(e.status,t)})()}});var YO={timeout:`Operation timeout`};function XO(...e){let t=xS(...e);return H(H({},t),{},{element:(0,u.useMemo)(()=>e[0]?t.error?(0,u.createElement)(fd,{severity:`error`},RC(String(t.error),YO),(0,u.createElement)(FO,{icon:nE,title:`Reload`,onClick:t.reload,sx:{m:`-10px 0 -8px 16px`}})):t.data===void 0?wO():null:null,Object.values(t))})}function ZO(e,t={},{map:n,invert:r,pause:i,limit:a}={}){let[o,s]=cw([]),[c,l]=cw(void 0),[d,f]=cw(void 0),[p,m]=cw(!0),[h,g]=cw(!1),[_,v]=cw(!0),[y,b]=(0,u.useState)(0),x=(0,u.useRef)(0),[S,C]=(0,u.useState)();(0,u.useEffect)(()=>C(i?o:void 0),[i]),(0,u.useEffect)(()=>{if(!e)return;let i=[],o=$.default.debounce(()=>{let e=i.splice(0,1/0);e.length&&(r&&e.reverse(),s(t=>{if(r){let n=[...e,...t];return n.splice(a==null?1/0:a,1/0),n}let n=[...t,...e];return n.splice(0,n.length-(a==null?1/0:a)),n}))},1e3,{maxWait:1e3});f(void 0),g(!0),m(!0),v(!0),s([]);let c=SS(e,$.default.mapValues(t,e=>e===!1?void 0:e),(e,t)=>{switch(e){case`connected`:return m(!1),setTimeout(()=>o.flush());case`error`:return f(`Connection error`),setTimeout(E,1e3),u();case`closed`:return u();case`msg`:if(c.readyState!==c.OPEN)return u();let e=[],r=[];vC(t).forEach(t=>{if(!Array.isArray(t))return console.debug(`illegal list packet`,t);console.debug(`LIST`,...t);let[a,s]=t;if(a===qS.ready){o.flush(),v(!1);return}if(a===qS.error){var c;s===401?FD.loginRequired=((c=t[2])==null?void 0:c.possible)!==!1||403:f($.default.isString(s)||$.default.isNumber(s)?ZT(s):s);return}if(a===qS.props)return l(s);if(a===qS.add){var u;let e=(u=n==null?void 0:n(s))==null?s:u;e.id!=null||(e.id=x.current=Math.max(x.current,Date.now())+.001),i.push(e),o();return}if(a===qS.remove){let t=$.default.matches(s);$.default.isEmpty($.default.remove(i,t))&&e.push(t);return}if(a===qS.update){var d;let e=(d=n==null?void 0:n(t[2]))==null?t[2]:d,a=$.default.find(i,s);if(a)return Object.assign(a,e);r.push([s,e]);return}console.debug(`unknown list api`,a)}),s(t=>{let n=t,i;if(e.length&&(i=t.filter(t=>!e.some(e=>e(t))),i.length<t.length&&(n=i)),r.length)for(let[e,o]of r){var a;let r=$.default.findIndex(n,e);r<0||(n===t&&(n=(a=i)==null?t.slice():a),n[r]=H(H({},n[r]),o))}return n})}});return()=>{o.cancel(),c.close()};function u(){v(!1),g(!1),o.flush()}},[y,e,JSON.stringify(t)]);let w=(0,u.useCallback)(e=>s(t=>AD(t,e)),[s]),T=(0,u.useCallback)((e,t)=>{w(n=>{let r=$.default.find(n,e);r&&Object.assign(r,t)})},[w]);return{list:S==null?o:S,props:c,loading:h,error:d,initializing:_,connecting:p,setList:s,updateList:w,updateEntry:T,reload:E,enabled:!!e,element:p||_||h?wO():d?(0,u.createElement)(fd,{severity:`error`,sx:{flex:1}},ZT(d)):null};function E(){b(e=>e+1)}}var QO=Hc((0,K.jsx)(`path`,{d:`M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3zm-7 2-5-5h4V3h2v7h4z`}),`BrowserUpdated`),$O=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),ek=Hc((0,K.jsx)(`path`,{d:`m20.71 5.63-2.34-2.34a.996.996 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42M6.92 19 5 17.08l8.06-8.06 1.92 1.92z`}),`Colorize`),tk=Hc((0,K.jsx)(`path`,{d:`M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z`}),`OpenInNew`),nk=Hc((0,K.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),rk=Hc((0,K.jsx)(`path`,{d:`M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z`}),`CardMembership`);function ik(e){return/certificate/.test(e)}function ak(e){return/private key/.test(e)}function ok(e){return sk.apply(this,arguments)}function sk(){return sk=p(function*(e){return new Promise(t=>{let{close:n}=pT({icon:rk,title:`Get a certificate`,onClose:t,Content:()=>(0,u.createElement)(yh,{sx:{p:1,lineHeight:1.5}},(0,u.createElement)(yh,{},`HTTPS needs a certificate to work.`),(0,u.createElement)(yh,{},`We suggest you to `,(0,u.createElement)(zO,{to:`/internet`},`get a free but proper certificate`),`.`),(0,u.createElement)(yh,{},`If you don't have a domain `,(0,u.createElement)(VO,{onClick:r},`make a self-signed certificate`),` but that `,kO(`HTTPS#certificate`,` won't be perfect`),`.`))});function r(){return i.apply(this,arguments)}function i(){return i=p(function*(){if(!window.crypto.subtle)return sO(`Retry this procedure on localhost`,`warning`);let t=yield yS(`make_self_signed_cert`,{fileName:`self`});Object.assign(FD.config,t),e==null||e(t),yield sO(`Certificate saved`,`success`),n()}),i.apply(this,arguments)}})}),sk.apply(this,arguments)}var ck=Hc((0,K.jsx)(`path`,{d:`M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91`}),`RestartAlt`);U();var lk=[`keys`,`form`,`saveOnChange`,`onSave`];function uk(e){let{keys:t,form:n,saveOnChange:r,onSave:i}=e,a=G(e,lk),[o,s]=(0,u.useState)(t),c=XO(o&&`get_config`,{only:o}),[l,d]=(0,u.useState)(c.data);(0,u.useEffect)(()=>d(e=>c.data||e),[c.data]);let f=l&&!$.default.isEqual(l,c.data);(0,u.useEffect)(()=>{f&&r&&m()},[f]);let p=$.default.isFunction(n)?n(l,{setValues:d}):n;if((0,u.useEffect)(()=>{t||s(pC(p.fields.map(e=>e==null?void 0:e.k)))},[t]),!l)return c.element;return(0,u.createElement)(EE,H(H(H({values:l,set(e,t){d(n=>H(H({},n),{},{[t]:e}))},save:r?!1:H({onClick:m},NO(f))},p),a),{},{barSx:H({gap:1},a.barSx),addToBar:[(0,u.createElement)(FO,{icon:ck,disabled:!f,title:`Reset`,onClick(){d(c.data)}}),...a.addToBar||[]]}));function m(){return yS(`set_config`,{values:l}).then(i).then(c.reload)}}var dk=kS.replace(/\/.+/,`/`),fk={ENOTFOUND:`Cannot reach github.com`,ECONNREFUSED:`Cannot reach github.com`};function pk({row:e,value:t}){let{repo:n}=e;return(0,u.createElement)(u.Fragment,{},e.downgrade&&r(`This version is older than the one you installed. It is possible that the author found a problem with your version and decided to retire it.`,!0),r(e.error||e.badApi,!e.error),n!=null&&n.includes(`//`)?(0,u.createElement)(ey,{href:n,target:`plugin`},t):gC(n==null?void 0:n.split(`/`),e=>(e==null?void 0:e.length)===2?(0,u.createElement)(u.Fragment,{},(0,u.createElement)(ey,{href:`https://github.com/`+n,target:`plugin`,onClick(e){e.stopPropagation()}},vk(e[1])),`\xA0by `,e[0]):t));function r(e,t=!1){return e&&JO(e,e,(0,u.createElement)(ME,{fontSize:`small`,color:t?`warning`:`error`,sx:{ml:-.5,mr:.5}}))}}function mk(e){return hk.apply(this,arguments)}function hk(){return hk=p(function*(e){try{return yield yS(`start_plugin`,{id:e}),mO(`Plugin started`,(0,u.createElement)(tE,{color:`success`})),!0}catch(t){sO(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,`error`)}}),hk.apply(this,arguments)}function gk(e){return _k.apply(this,arguments)}function _k(){return _k=p(function*(e){if(!e.id.startsWith(dk)&&!(yield cO((0,u.createElement)(OO,{vert:!0,alignItems:`center`},(0,u.createElement)(FE,{color:`warning`,fontSize:`large`}),`Proceed only if you trust this plugin`,(0,u.createElement)(yh,{sx:{fontSize:`60%`}},`A plugin has the same power of any other software`))))||e.missing&&!(yield cO(`This will also install: `+$.default.map(e.missing,`repo`).join(`, `))))return;let t=e.branch||e.default_branch;return yk(e.id,t).catch(e=>e.code===424?sO((0,u.createElement)(u.Fragment,{},`This plugin has some dependencies unmet:`,e.data.map(e=>(0,u.createElement)(`li`,{key:e.repo},e.repo+`: `+e.error))),`error`):sO(e))}),_k.apply(this,arguments)}function vk(e){return e.replace(/hfs-/,``)}function yk(e,t){return bk.apply(this,arguments)}function bk(){return bk=p(function*(e,t){try{let n=yield yS(`download_plugin`,{id:e,branch:t,stop:!0},{timeout:!1});(yield cO(`Plugin ${e} downloaded`,{trueText:`Start`}))&&(yield mk(n.id))}catch(n){let r=!1;if(n.code===424)for(let e of n.cause)e.error===`missing`&&(mO(`Installing dependency: `+e.repo),yield yk(e.repo),r=!0);if(r)return yk(e,t);throw n}}),bk.apply(this,arguments)}var xk=`onlinePluginsCache`;function Sk(){let{hideRandomPlugin:e}=RD(),t=localStorage.getItem(xk),n=(0,u.useMemo)(()=>{let e=xC(t||``);return(e==null?void 0:e.ts)&&Date.now()-e.ts<864e5&&$.default.shuffle(e.list)},[t]),{list:r,initializing:i}=ZO(!e&&!n&&`get_online_plugins`),[a,o]=(0,u.useState)(-1),s=n==null?void 0:n[a];if((0,u.useEffect)(()=>{!n&&!i&&r.length&&localStorage.setItem(xk,JSON.stringify({ts:Date.now(),list:r})),o(0)},[r,i]),(0,u.useEffect)(()=>{a>0&&!s&&mO(`No more plugins!`)},[a]),!(e||!s))return(0,u.createElement)(Lh,{sx:{display:{xs:`none`,md:`block`},float:`right`,width:`min(50%, 30em)`,ml:`1em`}},(0,u.createElement)(qh,{},(0,u.createElement)(yh,{sx:{fontWeight:`bold`,fontSize:`1.4em`}},(0,u.createElement)(yh,{sx:{color:`warning.main`,mr:1,display:`inline`}},`🎲`),`Random plugin:`),(0,u.createElement)(yh,{sx:{fontWeight:`bold`,fontSize:`1.8em`,my:1}},pk({row:s})),(0,u.createElement)(yh,{},s.description),s.preview&&(0,u.createElement)(`img`,{src:vC(s.preview)[0],style:{maxWidth:`100%`,maxHeight:`50vh`,marginTop:`1em`,border:`1px solid`,maskImage:`radial-gradient(circle at center, black 50%, transparent 100%)`}})),(0,u.createElement)(Hh,{},(0,u.createElement)(IO,{variant:`outlined`,onClick:()=>gk(s)},`Install`),(0,u.createElement)(IO,{variant:`outlined`,onClick:()=>o(e=>e+1)},`Another`),(0,u.createElement)(IO,{variant:`outlined`,onClick(){FD.hideRandomPlugin=!0}},`Hide this box`)))}U();function Ck(){var e,t,n,r,i;let a=` — `,{username:o}=RD(),{data:s,reload:c,element:l}=XO(`get_status`),{data:d}=XO(o&&`get_account`),f=XO(`get_config`,{only:[`https_port`,`cert`,`private_key`,`proxies`,`ignore_proxies`,`vfs`]}),{list:m}=ZO(`get_plugins`),[h,g]=(0,u.useState)(!1),{list:_}=ZO(h&&`get_plugin_updates`),[v,y]=(0,u.useState)(),[b,x]=(0,u.useState)();if(l||!s)return l;let{http:S,https:C}=s,w=!(S!=null&&S.listening)&&C!=null&&C.listening?`s`:``,T=w?C:(S==null?void 0:S.listening)&&S,E=T&&`http${w}://`+window.location.hostname+(T.port===(w?443:80)?``:`:`+T.port),D=$.default.mapValues({http:S,https:C},e=>e.busy?[`port ${e.configuredPort} already used by ${e.busy}${a}choose a `,Ak(`different port`),` or stop ${e.busy}`]:e.error),O=D&&pC(Object.entries(D).map(([e,t])=>t&&[bT(`Protocol <u>${e}</u>: `),t,(ik(t)||ak(t))&&[a,(0,u.createElement)(VO,{onClick(){ok().then(()=>iC(999)).then(f.reload).then(c)}},`make one`),` or `,a,Ak(`provide adequate files`)]])),k={onContextMenu(e){return p(function*(){if(e.preventDefault(),!s.updatePossible)return sO(`Automatic update is not supported for your installation`,`warning`);let t=yield dO(`Enter a link to the zip to install`);t&&(yield Ek(t))})()},title:s.updatePossible&&`Right-click if you want to install a zip`},A=(e=f.data)==null?void 0:e.vfs;return(0,u.createElement)(yh,{},(0,u.createElement)(Sk),(0,u.createElement)(yh,{sx:{display:`flex`,gap:2,flexDirection:`column`,alignItems:`flex-start`,height:`100%`}},dw(((t=s.alerts)==null?void 0:t.map(e=>Ok(`warning`,bT(e,{html:!1}))))||[]),O.length?dw(O.map(e=>Ok(`error`,dw(e)))):Ok(`success`,`Server is working`),A&&!((n=A.children)!=null&&n.length)&&!A.source?Ok(`warning`,`You have no shared files`,a,kk(`add some`)):null,d!=null&&d.adminActualAccess?Ok(``,`Welcome, `+o):Ok(``,bT(`You're accessing the Admin-panel without an account because you are on localhost`),...s.anyAccountCanLoginAdmin?[]:[a,`to access from another computer, you must `,(0,u.createElement)(zO,{to:`/accounts`},bT(`create an account with *admin* permission`))]),!E&&Ok(`warning`,`Frontend unreachable: `,$.default.map(D,(e,t)=>t+` `+(e?`is in error`:`is off`)).join(`, `),!O.length&&[a,Ak(`switch http or https on`)]),gC(s.acmeRenewError,e=>e&&Ok(`warning`,e)),gC(s.blacklistedInstalledPlugins,e=>(e==null?void 0:e.length)>0&&Ok(`warning`,`Found blacklisted plugin(s): `,e.join(`, `))),gC(m==null?void 0:m.filter(e=>e.error||e.badApi).length,e=>e>0&&Ok(`warning`,`${e} plugin(s) failing`,a,(0,u.createElement)(zO,{to:`/plugins`},`check now`))),!((r=f.data)!=null&&r.split_uploads)&&Date.now()-Number(s.cloudflareDetected||0)<864e5&&Ok(``,kO(`Reverse-proxy#cloudflare`,`Cloudflare detected, read our guide`)),gC(jk(f.data,s),e=>e&&Ok(`warning`,e,a,Ak(`set the number of proxies`),a,`unless you are sure and you can `,(0,u.createElement)(IO,{variant:`outlined`,size:`small`,sx:{lineHeight:`unset`},confirm:`Go on only if you know what you are doing`,onClick:()=>yS(`set_config`,{values:{ignore_proxies:!0}}).then(f.reload)},`ignore this warning`),a,kO(`Proxy-warning`,`Explanation`))),(((i=f.data)==null?void 0:i.proxies)>0||(s==null?void 0:s.proxyDetected))&&Ok(``,kO(`Reverse-proxy`,`Read our guide on proxies`)),s.frpDetected&&Ok(`warning`,`FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are`,(0,u.createElement)(`ol`,{},(0,u.createElement)(`li`,{},`configure FRP with type=http (best solution)`),(0,u.createElement)(`li`,{},bT(`configure FRP to connect to HFS <u>not</u> with localhost (safe, but you won't see users' IPs)`)),(0,u.createElement)(`li`,{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),Ok(``,bT(`This is the *Admin-panel*, where you manage your server. Access your files on the [Front-end](../..).`)),Ok(``,kO(``,`See the documentation`),` and `,(0,u.createElement)(ey,{target:`support`,href:BS+`discussions`},`get support`)),!v&&gC(s.autoCheckUpdateResult,e=>(e==null?void 0:e.isNewer)&&(0,u.createElement)(wk,{info:e,fromAuto:!0,bodyCollapsed:!0,title:`An update has been found`})),_.length>0&&Ok(`success`,`Updates available for plugin(s): `+_.map(e=>e.id).join(`, `)),(0,u.createElement)(uk,{gridProps:{sx:{mt:1,display:`flex`,columnGap:1,alignitems:`center`,"&>div.MuiGrid-root":{width:`auto`,px:.5,py:0},".MuiCheckbox-root":{pl:`2px`}}},saveOnChange:!0,form:{fields:[s.updatePossible===`local`?(0,u.createElement)(IO,{icon:QO,onClick:()=>Ek()},`Update from local file`):!v&&(0,u.createElement)(IO,H({icon:QO,onClick(){return yS(`wait_project_info`).then(c),g(!0),yS(`check_update`).then(e=>y(e.options),sO)}},k),`Check for updates`),{k:`auto_check_update`,comp:xE,label:`Auto check updates daily`},{k:`update_to_beta`,comp:xE,label:`Include beta versions`}]}}),v&&gC($.default.find(v,`isNewer`),e=>!v.length||!s.updatePossible&&!e?Ok(``,`No update available`):e&&!s.updatePossible?Ok(`success`,`Version ${e.name} available`):(0,u.createElement)(OO,{vert:!0},v.map(e=>(0,u.createElement)(wk,{info:e,key:e.name})))),(0,u.createElement)(OO,{flexWrap:`wrap`},!b&&s.updatePossible&&s.previousVersionAvailable&&(0,u.createElement)(IO,{icon:nk,onClick:()=>Ek(`previous`)},`Reinstall previous version`),s.updatePossible?b?(0,u.createElement)(OO,{vert:!0},b.map(e=>(0,u.createElement)(wk,{info:e,key:e.name,bodyCollapsed:!0}))):(0,u.createElement)(IO,H({icon:ek,onClick:ee},k),`Get another version`):Ok(``,(0,u.createElement)(ey,{href:BS+`releases/`,target:`repo`},`All releases`))),(0,u.createElement)(QD),Date.now()-Number(new Date(s.started))>36e5&&(0,u.createElement)(ey,{title:`Donate`,target:`donate`,style:{textDecoration:`none`,position:`fixed`,bottom:0,right:4,fontSize:`large`},href:`https://www.paypal.com/donate/?hosted_button_id=HC8MB4GRVU5T2`},`❤️`)));function ee(){return j.apply(this,arguments)}function j(){return j=p(function*(){return yS(`get_other_versions`).then(e=>x(e.options),sO)}),j.apply(this,arguments)}}function wk({info:e,title:t,bodyCollapsed:n,fromAuto:r}){let[i,a]=(0,u.useState)(n);return(0,u.createElement)(OO,{alignItems:`flex-start`,flexWrap:`wrap`},(0,u.createElement)(Lh,{className:`release`},(0,u.createElement)(qh,{},(0,u.createElement)(OO,{},t&&(0,u.createElement)(yh,{sx:{fontSize:`larger`,mb:1}},t),(0,u.createElement)(IO,H(H({icon:QO},!e.isNewer&&e.prerelease&&{color:`warning`,variant:`outlined`}),{},{onClick:()=>Ek(r?void 0:e.tag_name)}),nC(`Install `,e.name,e.isNewer?``:` (older)`)),(0,u.createElement)(ey,{href:BS+`releases/tag/`+e.tag_name,target:`repo`},(0,u.createElement)(tk))),i?(0,u.createElement)(VO,{sx:{display:`block`,mt:1},onClick(){a(!1)}},`See details`):(0,u.createElement)(yh,{sx:{mt:1}},Tk(e.body)))))}function Tk(e){return bT(e,{onText:e=>xT(e,RegExp(`(?<=^|\\W)#(\\d+)\\b|(https:.*\\S+)`,`g`),e=>e[1]?(0,u.createElement)(ey,{href:BS+`issues/`+e[1],target:`_blank`},(0,u.createElement)(tk,{fontSize:`small`})):(0,u.createElement)(ey,{href:e[2],target:`_blank`},e[2]))})}function Ek(e){return Dk.apply(this,arguments)}function Dk(){return Dk=p(function*(e){if(!(yield cO(`Installation may take less than a minute, depending on the speed of your server`)))return;mO(`Downloading`);let t=yield yS(`update`,{tag:e},{timeout:600}).then(()=>0,e=>e);if(t)return sO(t);mO(`Restarting`);let n=Date.now(),r;for(;yield yS(`NONE`).then(()=>0,e=>!e.code);)!r&&Date.now()-n>15e3&&(r=sO(`This is taking too long, please check your server`,`warning`)),yield iC(500);r==null||r.close(),IE(FD,`loginRequired`,()=>FD.loginRequired=!1),yield sO(`Procedure complete`,`success`),window.location.reload()}),Dk.apply(this,arguments)}function Ok(e,...t){return(0,u.createElement)(yh,{sx:{fontSize:`x-large`,color:t=>{var n;return e&&((n=t.palette[e])==null?void 0:n.main)}}},(0,u.createElement)({success:$O,info:PE,"":PE,warning:FE,error:ME}[e],{sx:{mr:1,color:e?void 0:`primary.main`}}),(0,u.createElement)(`span`,{style:[`warning`,`error`].includes(e)?{animation:`.5s blink 2`}:void 0},...t))}function kk(e=`File System page`){return(0,u.createElement)(zO,{to:`/fs`},e)}function Ak(e=`Options page`){return(0,u.createElement)(zO,{to:`/options`},e)}function jk(e,t){return t&&e&&!e.ignore_proxies&&(!e.proxies&&t.proxyDetected?`A proxy was detected but none is configured`:e.proxies&&!t.proxyDetected&&Date.now()-+new Date(t.started)>864e5?`Proxy count is set to ${e.proxies} but none was detected recently. Consider setting it to zero`:``)}var Mk=Hc((0,K.jsx)(`path`,{d:`M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83`}),`PowerSettingsNew`);function Nk(){let{element:e}=XO(`get_config`,{only:[]}),{username:t}=RD();return e||(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:2}},t?(0,u.createElement)(u.Fragment,{},`You are logged in as: `+t,(0,u.createElement)(IO,{icon:aS,size:`large`,onClick:()=>yS(`logout`).catch(e=>e.code!==401&&sO(e))},`I want to logout`)):(0,u.createElement)(fd,{severity:`info`},`You are not logged in, because authentication is not required on localhost`),(0,u.createElement)(IO,{icon:Mk,size:`large`,color:`warning`,confirm:`Stopping the server, this interface won't respond anymore`,onClick(){return p(function*(){yield yS(`quit`),yield sO(`Good-bye`,`success`),location.reload()})()}},`Quit HFS`))}var Pk=(0,u.lazy)(()=>_(()=>import(`./InternetPage-Bnqiyd6R.js`),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11]))),Fk=(0,u.lazy)(()=>_(()=>import(`./OptionsPage-C2tESF0q.js`),__vite__mapDeps([12,1,4,5,6,7,8,9,10,13,14,15,16,17,11,18]))),Ik=(0,u.lazy)(()=>_(()=>import(`./FileField-DvOcVuL3.js`).then(e=>e.n),__vite__mapDeps([13,1,14,8,15,16,10,17,11,6]))),Lk=(0,u.lazy)(()=>_(()=>import(`./AccountsPage-D18kfsM7.js`),__vite__mapDeps([19,1,9,10,7,14,8,6]))),Rk=(0,u.lazy)(()=>_(()=>import(`./MonitorPage-DHo-WAeK.js`),__vite__mapDeps([20,1,5,6,7,8,21,17,18]))),zk=(0,u.lazy)(()=>_(()=>import(`./LogsPage-DZrag-6q.js`),__vite__mapDeps([21,1,5,6,7,8,17,18]))),Bk=(0,u.lazy)(()=>_(()=>import(`./LangPage-UvLk_tcp.js`),__vite__mapDeps([22,1,5,6,7,8]))),Vk=(0,u.lazy)(()=>_(()=>import(`./PluginsPage-DsDE4gaI.js`),__vite__mapDeps([23,1,4,5,6,7,8,9,10,13,14,15,16,17,11,18]))),Hk=(0,u.lazy)(()=>_(()=>import(`./CustomHtmlPage-BuwxgXZb.js`),__vite__mapDeps([24,1,15,16]))),Uk=[{path:`/`,icon:iS,label:`Home`,comp:Ck},{path:`/fs`,icon:tS,label:`Shared files`,comp:Ik},{path:`/accounts`,icon:oS,comp:Lk},{path:`/options`,icon:lS,comp:Fk,subRoutes:!0},{path:`/internet`,icon:cS,comp:Pk},{path:`/monitoring`,icon:sS,comp:Rk,noPaddingOnMobile:!0},{path:`/logs`,icon:rS,comp:zk,noPaddingOnMobile:!0,subRoutes:!0},{path:`/language`,icon:uS,comp:Bk},{path:`/plugins`,icon:nS,comp:Vk,noPaddingOnMobile:!0,subRoutes:!0},{path:`/html`,icon:dS,label:`Custom HTML`,comp:Hk},{path:`/logout`,icon:aS,comp:Nk}];function Wk({onSelect:e,itemTitle:t}){let{VERSION:n}=FT(),r=`hfs-logo.svg`,i=ow().height<700,a=Ce()[0];return(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,bgcolor:`primary.main`,minHeight:`100%`}},(0,u.createElement)(oy,{sx:{pr:1,py:0,color:`primary.contrastText`,height:`100vh`,boxSizing:`border-box`,overflowY:`auto`,position:`sticky`,top:0,display:`flex`,flexDirection:`column`,"&>a":{flex:`0`}}},(0,u.createElement)(yh,{id:`hfs-name`,sx:{display:`flex`,px:2,py:.5,gap:2,alignItems:`center`}},(0,u.createElement)(yh,{sx:{color:`primary.contrastText`,fontSize:`min(3rem, max(5vw, 4vh))`,cursor:`pointer`},onClick(){return p(function*(){(yield cO(`Open HFS website?`))&&window.open(zS)})()}},`HFS`),(0,u.createElement)(yh,{sx:{fontSize:`small`},className:jS},xT(n||``,/-/,()=>(0,u.createElement)(`br`))),i&&(0,u.createElement)(`img`,{src:r,style:{height:`2.5em`}})),Uk.map((n,r)=>JO(t(r),Gk(n)+` `+t(r),(0,u.createElement)(py,{component:ke,href:n.path,onClick:e,selected:Kk(n,a),sx:{"&.Mui-selected":{"&,&:hover":{bgcolor:`primary.dark`,textDecoration:`underline`}}},children:void 0},n.icon&&(0,u.createElement)(yy,{sx:{color:`primary.contrastText`,minWidth:48}},(0,u.createElement)(n.icon)),(0,u.createElement)(Ty,{sx:{whiteSpace:`nowrap`},primary:Gk(n)})),{key:n.path,placement:`right`})),!i&&(0,u.createElement)(yh,{id:`hfs-logo`,sx:{flex:1,opacity:.7,background:`url(${r}) no-repeat bottom`,backgroundSize:`contain`,margin:2}})))}function Gk(e){var t;return e&&((t=e.label)==null?$.default.capitalize(e.path.slice(1)):t)}function Kk(e,t){return t===e.path||t.startsWith(e.path+`/`)}U();function qk(e,t,n,r,i){return Jk.apply(this,arguments)}function Jk(){return Jk=p(function*(e,t,n,r,i){let{pubKey:a,salt:o}=yield r(`loginSrp1`,{username:t});if(!o)throw Error(`salt`);let s=yield Yk(e,t,n,o,a),c=yield r(`loginSrp2`,H({pubKey:String(s.A),proof:String(s.M1)},i));return yield s.step3(BigInt(c.proof)).catch(()=>Promise.reject(`trust`)),c}),Jk.apply(this,arguments)}function Yk(e,t,n,r,i){return Xk.apply(this,arguments)}function Xk(){return Xk=p(function*(e,t,n,r,i){let a=new e.SRPRoutines(new e.SRPParameters);return yield(yield new e.SRPClientSession(a).step1(t,n)).step2(BigInt(r),BigInt(i))}),Xk.apply(this,arguments)}U();function Zk({children:e}){let{loginRequired:t}=RD();return t===403?(0,u.createElement)(BO,{},(0,u.createElement)(fd,{severity:`error`},`Admin-panel only for localhost`),(0,u.createElement)(yh,{sx:{mt:2,fontSize:`small`}},`because no admin account was configured`)):t?(0,u.createElement)(Qk):(0,u.createElement)(u.Fragment,{},e)}function Qk(){var e;let[t,n]=(0,u.useState)({username:``,password:``,[AS]:!1}),[r,i]=(0,u.useState)(``),a=(0,u.useRef)(),o=(e=a.current)==null?void 0:e.querySelector(`input[value=""]`);return(0,u.useEffect)(()=>{var e;return o==null||(e=o.focus)==null?void 0:e.call(o)},[o]),(0,u.createElement)(BO,{},(0,u.createElement)(EE,{formRef:a,values:t,sx:{m:2,maxWidth:`25em`},set(e,t){n(n=>H(H({},n),{},{[t]:e}))},fields:[{k:`username`,autoComplete:`username`,autoFocus:!0,required:!0},{k:`password`,type:`password`,autoComplete:`current-password`,required:!0},{k:AS,comp:bE,label:`Allow IP change during this session`}],addToBar:[r&&(0,u.createElement)(fd,{severity:`error`,sx:{flex:1}},r)],saveOnEnter:!0,save:{children:`Enter`,startIcon:null,onClick(){return p(function*(){try{i(``),yield $k(t.username,t.password,{[AS]:t[AS]})}catch(e){i(String(e))}})()}}}))}function $k(e,t,n){return eA.apply(this,arguments)}function eA(){return eA=p(function*(e,t,n){let r=yield qT(qk)(e,t,yS,n).catch(e=>{throw(e==null?void 0:e.code)===401?e.message||`Wrong username or password`:e===`trust`?`Login aborted: server identity cannot be trusted`:(e==null?void 0:e.name)===`AbortError`?`Server didn't respond`:(e==null?void 0:e.message)||`Unknown error`});if(!r.isAdmin)throw`This account has no Admin access`;FD.loginRequired=!1,tA(r)}),eA.apply(this,arguments)}var tA=LT(FD),nA=Hc((0,K.jsx)(`path`,{d:`M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z`}),`Menu`);function rA(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var iA=[`localeText`],aA=u.createContext(null),oA=function(e){var t;let{localeText:n}=e,r=ll(e,iA),{adapter:i,localeText:a}=(t=u.useContext(aA))==null?{adapter:void 0,localeText:void 0}:t,{children:o,dateAdapter:s,dateFormats:c,dateLibInstance:l,adapterLocale:d,localeText:f}=bc({props:r,name:`MuiLocalizationProvider`}),p=u.useMemo(()=>Je({},f,a,n),[f,a,n]),m=u.useMemo(()=>{if(!s)return i||null;let e=new s({locale:d,formats:c,instance:l});if(!e.isMUIAdapter)throw Error(rA(143));return e},[s,d,c,l,i]),h=u.useMemo(()=>m?{minDate:m.date(`1900-01-01T00:00:00.000`),maxDate:m.date(`2099-12-31T00:00:00.000`)}:null,[m]),g=u.useMemo(()=>({adapter:m,defaultDates:h,localeText:p}),[h,m,p]);return(0,K.jsx)(aA.Provider,{value:g,children:o})},sA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),cA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),lA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*e}],SS:[n,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s(`seconds`)],ss:[r,s(`seconds`)],m:[r,s(`minutes`)],mm:[r,s(`minutes`)],H:[r,s(`hours`)],h:[r,s(`hours`)],HH:[r,s(`hours`)],hh:[r,s(`hours`)],D:[r,s(`day`)],DD:[n,s(`day`)],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],M:[r,s(`month`)],MM:[n,s(`month`)],MMM:[i,function(e){var t=l(`months`),n=(l(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=l(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,s(`year`)],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s(`year`)],Z:c,ZZ:c};function f(n){for(var r=n,i=a&&a.formats,o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=d[l],f=u&&u[0],p=u&&u[1];o[c]=p?{regex:f,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if(typeof i==`string`)r+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if(typeof s==`string`){var c=!0===o[2],l=!0===o[3],u=c||l,d=o[2];l&&(d=o[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=o||(i||a?1:p.getDate()),h=i||p.getFullYear(),g=0;i&&!a||(g=a>0?a-1:p.getMonth());var _=s||0,v=c||0,y=l||0,b=u||0;return d?new Date(Date.UTC(h,g,m,_,v,y,b+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,_,v,y,b)):new Date(h,g,m,_,v,y,b)}catch(e){return new Date(``)}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),a={}}else if(s instanceof Array)for(var p=s.length,m=1;m<=p;m+=1){o[1]=s[m-1];var h=n.apply(this,o);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),uA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),dA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i=i||`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),fA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),pA=e(sA(),1),mA=e(cA(),1),hA=e(lA(),1),gA=e(uA(),1),_A=e(dA(),1),vA=e(fA(),1);de(),pA.default.extend(gA.default),pA.default.extend(mA.default),pA.default.extend(_A.default),pA.default.extend(vA.default);var yA={YY:`year`,YYYY:{sectionType:`year`,contentType:`digit`,maxLength:4},M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMM:{sectionType:`month`,contentType:`letter`},MMMM:{sectionType:`month`,contentType:`letter`},D:{sectionType:`day`,contentType:`digit`,maxLength:2},DD:`day`,Do:{sectionType:`day`,contentType:`digit-with-letter`},d:{sectionType:`weekDay`,contentType:`digit`,maxLength:2},dd:{sectionType:`weekDay`,contentType:`letter`},ddd:{sectionType:`weekDay`,contentType:`letter`},dddd:{sectionType:`weekDay`,contentType:`letter`},A:`meridiem`,a:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},bA={year:`YYYY`,month:`MMMM`,monthShort:`MMM`,dayOfMonth:`D`,dayOfMonthFull:`Do`,weekday:`dddd`,weekdayShort:`dd`,hours24h:`HH`,hours12h:`hh`,meridiem:`A`,minutes:`mm`,seconds:`ss`,fullDate:`ll`,keyboardDate:`L`,shortDate:`MMM D`,normalDate:`D MMMM`,normalDateWithWeekday:`ddd, MMM D`,fullTime12h:`hh:mm A`,fullTime24h:`HH:mm`,keyboardDateTime12h:`L hh:mm A`,keyboardDateTime24h:`L HH:mm`};function xA(){throw Error(rA(138))}function SA(){throw Error(rA(139))}var CA=class{constructor({locale:e,formats:t}={}){V(this,`isMUIAdapter`,!0),V(this,`isTimezoneCompatible`,!0),V(this,`lib`,`dayjs`),V(this,`escapedCharacters`,{start:`[`,end:`]`}),V(this,`formatTokenMap`,yA),V(this,`setLocaleToValue`,e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)}),V(this,`hasUTCPlugin`,()=>pA.default.utc!==void 0),V(this,`hasTimezonePlugin`,()=>pA.default.tz!==void 0),V(this,`isSame`,(e,t,n)=>{let r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)}),V(this,`cleanTimezone`,e=>{switch(e){case`default`:return;case`system`:return pA.default.tz.guess();default:return e}}),V(this,`createSystemDate`,e=>this.setLocaleToValue((0,pA.default)(e))),V(this,`createUTCDate`,e=>(this.hasUTCPlugin()||xA(),this.setLocaleToValue(pA.default.utc(e)))),V(this,`createTZDate`,(e,t)=>{this.hasUTCPlugin()||xA(),this.hasTimezonePlugin()||SA();let n=e!==void 0&&!e.endsWith(`Z`);return this.setLocaleToValue((0,pA.default)(e).tz(this.cleanTimezone(t),n))}),V(this,`getLocaleFormats`,()=>{let e=pA.default.Ls,t=e[this.locale||`en`];return t===void 0&&(t=e.en),t.formats}),V(this,`adjustOffset`,e=>{if(!this.hasTimezonePlugin())return e;let t=this.getTimezone(e);if(t!==`UTC`){var n;let r=e.tz(this.cleanTimezone(t),!0);if(r.$offset===((n=e.$offset)==null?0:n))return e;e.$offset=r.$offset}return e}),V(this,`date`,(e,t=`default`)=>e===null?null:t===`UTC`?this.createUTCDate(e):t===`system`||t==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t)),V(this,`getInvalidDate`,()=>(0,pA.default)(new Date(`Invalid date`))),V(this,`getTimezone`,e=>{if(this.hasTimezonePlugin()){var t;let n=(t=e.$x)==null?void 0:t.$timezone;if(n)return n}return this.hasUTCPlugin()&&e.isUTC()?`UTC`:`system`}),V(this,`setTimezone`,(e,t)=>{if(this.getTimezone(e)===t)return e;if(t===`UTC`)return this.hasUTCPlugin()||xA(),e.utc();if(t===`system`)return e.local();if(!this.hasTimezonePlugin()){if(t==="default")return e;SA()}return this.setLocaleToValue(pA.default.tz(e,this.cleanTimezone(t)))}),V(this,`toJsDate`,e=>e.toDate()),V(this,`parse`,(e,t)=>e===``?null:(0,pA.default)(e,t,this.locale,!0)),V(this,`getCurrentLocaleCode`,()=>this.locale||`en`),V(this,`is12HourCycleInCurrentLocale`,()=>/A|a/.test(this.getLocaleFormats().LT||``)),V(this,`expandFormat`,e=>{let t=this.getLocaleFormats(),n=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1));return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,i)=>{let a=i&&i.toUpperCase();return r||t[i]||n(t[a])})}),V(this,`isValid`,e=>e==null?!1:e.isValid()),V(this,`format`,(e,t)=>this.formatByString(e,this.formats[t])),V(this,`formatByString`,(e,t)=>this.setLocaleToValue(e).format(t)),V(this,`formatNumber`,e=>e),V(this,`isEqual`,(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:e.toDate().getTime()===t.toDate().getTime()),V(this,`isSameYear`,(e,t)=>this.isSame(e,t,`YYYY`)),V(this,`isSameMonth`,(e,t)=>this.isSame(e,t,`YYYY-MM`)),V(this,`isSameDay`,(e,t)=>this.isSame(e,t,`YYYY-MM-DD`)),V(this,`isSameHour`,(e,t)=>e.isSame(t,`hour`)),V(this,`isAfter`,(e,t)=>e>t),V(this,`isAfterYear`,(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,`year`)),V(this,`isAfterDay`,(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,`day`)),V(this,`isBefore`,(e,t)=>e<t),V(this,`isBeforeYear`,(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,`year`)),V(this,`isBeforeDay`,(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,`day`)),V(this,`isWithinRange`,(e,[t,n])=>e>=t&&e<=n),V(this,`startOfYear`,e=>this.adjustOffset(e.startOf(`year`))),V(this,`startOfMonth`,e=>this.adjustOffset(e.startOf(`month`))),V(this,`startOfWeek`,e=>this.adjustOffset(this.setLocaleToValue(e).startOf(`week`))),V(this,`startOfDay`,e=>this.adjustOffset(e.startOf(`day`))),V(this,`endOfYear`,e=>this.adjustOffset(e.endOf(`year`))),V(this,`endOfMonth`,e=>this.adjustOffset(e.endOf(`month`))),V(this,`endOfWeek`,e=>this.adjustOffset(this.setLocaleToValue(e).endOf(`week`))),V(this,`endOfDay`,e=>this.adjustOffset(e.endOf(`day`))),V(this,`addYears`,(e,t)=>this.adjustOffset(e.add(t,`year`))),V(this,`addMonths`,(e,t)=>this.adjustOffset(e.add(t,`month`))),V(this,`addWeeks`,(e,t)=>this.adjustOffset(e.add(t,`week`))),V(this,`addDays`,(e,t)=>this.adjustOffset(e.add(t,`day`))),V(this,`addHours`,(e,t)=>this.adjustOffset(e.add(t,`hour`))),V(this,`addMinutes`,(e,t)=>this.adjustOffset(e.add(t,`minute`))),V(this,`addSeconds`,(e,t)=>this.adjustOffset(e.add(t,`second`))),V(this,`getYear`,e=>e.year()),V(this,`getMonth`,e=>e.month()),V(this,`getDate`,e=>e.date()),V(this,`getHours`,e=>e.hour()),V(this,`getMinutes`,e=>e.minute()),V(this,`getSeconds`,e=>e.second()),V(this,`getMilliseconds`,e=>e.millisecond()),V(this,`setYear`,(e,t)=>this.adjustOffset(e.set(`year`,t))),V(this,`setMonth`,(e,t)=>this.adjustOffset(e.set(`month`,t))),V(this,`setDate`,(e,t)=>this.adjustOffset(e.set(`date`,t))),V(this,`setHours`,(e,t)=>this.adjustOffset(e.set(`hour`,t))),V(this,`setMinutes`,(e,t)=>this.adjustOffset(e.set(`minute`,t))),V(this,`setSeconds`,(e,t)=>this.adjustOffset(e.set(`second`,t))),V(this,`setMilliseconds`,(e,t)=>this.adjustOffset(e.set(`millisecond`,t))),V(this,`getDaysInMonth`,e=>e.daysInMonth()),V(this,`getWeekArray`,e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;i<n;){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a}),V(this,`getWeekNumber`,e=>e.week()),V(this,`getYearRange`,([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}),this.locale=e,this.formats=Je({},bA,t),pA.default.extend(hA.default)}getDayOfWeek(e){return e.day()+1}},wA=Object.assign({"../../node_modules/dayjs/esm/locale/af.js":()=>_(()=>import(`./af-B1Gi_bpo.js`),__vite__mapDeps([25,26,27,1])),"../../node_modules/dayjs/esm/locale/am.js":()=>_(()=>import(`./am-B-dZnhsM.js`),__vite__mapDeps([28,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-dz.js":()=>_(()=>import(`./ar-dz-CxlYiKtP.js`),__vite__mapDeps([29,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-iq.js":()=>_(()=>import(`./ar-iq-y4_Puo4B.js`),__vite__mapDeps([30,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-kw.js":()=>_(()=>import(`./ar-kw-DTOZ0VC7.js`),__vite__mapDeps([31,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-ly.js":()=>_(()=>import(`./ar-ly-lPV9gApv.js`),__vite__mapDeps([32,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-ma.js":()=>_(()=>import(`./ar-ma-DZqLSpeB.js`),__vite__mapDeps([33,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-sa.js":()=>_(()=>import(`./ar-sa-v-5vsIOR.js`),__vite__mapDeps([34,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-tn.js":()=>_(()=>import(`./ar-tn-a4q8lhXy.js`),__vite__mapDeps([35,26,27,1])),"../../node_modules/dayjs/esm/locale/ar.js":()=>_(()=>import(`./ar-DsQGp6kZ.js`),__vite__mapDeps([36,26,27,1])),"../../node_modules/dayjs/esm/locale/az.js":()=>_(()=>import(`./az-Cj4yq-j-.js`),__vite__mapDeps([37,26,27,1])),"../../node_modules/dayjs/esm/locale/be.js":()=>_(()=>import(`./be-B-3QlFM8.js`),__vite__mapDeps([38,26,27,1])),"../../node_modules/dayjs/esm/locale/bg.js":()=>_(()=>import(`./bg-A8-93xdK.js`),__vite__mapDeps([39,26,27,1])),"../../node_modules/dayjs/esm/locale/bi.js":()=>_(()=>import(`./bi-bwwEWGG2.js`),__vite__mapDeps([40,26,27,1])),"../../node_modules/dayjs/esm/locale/bm.js":()=>_(()=>import(`./bm-DpLmtYXC.js`),__vite__mapDeps([41,26,27,1])),"../../node_modules/dayjs/esm/locale/bn-bd.js":()=>_(()=>import(`./bn-bd-DukmY_R5.js`),__vite__mapDeps([42,26,27,1])),"../../node_modules/dayjs/esm/locale/bn.js":()=>_(()=>import(`./bn-DPL_BgLw.js`),__vite__mapDeps([43,26,27,1])),"../../node_modules/dayjs/esm/locale/bo.js":()=>_(()=>import(`./bo-68KDEKGI.js`),__vite__mapDeps([44,26,27,1])),"../../node_modules/dayjs/esm/locale/br.js":()=>_(()=>import(`./br-gA86uwqY.js`),__vite__mapDeps([45,26,27,1])),"../../node_modules/dayjs/esm/locale/bs.js":()=>_(()=>import(`./bs-SfthSp42.js`),__vite__mapDeps([46,26,27,1])),"../../node_modules/dayjs/esm/locale/ca.js":()=>_(()=>import(`./ca-8qUtZKFe.js`),__vite__mapDeps([47,26,27,1])),"../../node_modules/dayjs/esm/locale/cs.js":()=>_(()=>import(`./cs-CTHcqPCX.js`),__vite__mapDeps([48,26,27,1])),"../../node_modules/dayjs/esm/locale/cv.js":()=>_(()=>import(`./cv-BhBW7hcO.js`),__vite__mapDeps([49,26,27,1])),"../../node_modules/dayjs/esm/locale/cy.js":()=>_(()=>import(`./cy-BYTS4PNY.js`),__vite__mapDeps([50,26,27,1])),"../../node_modules/dayjs/esm/locale/da.js":()=>_(()=>import(`./da-BiwfOrRd.js`),__vite__mapDeps([51,26,27,1])),"../../node_modules/dayjs/esm/locale/de-at.js":()=>_(()=>import(`./de-at-C7zUXXVL.js`),__vite__mapDeps([52,26,27,1])),"../../node_modules/dayjs/esm/locale/de-ch.js":()=>_(()=>import(`./de-ch-BVHosAzt.js`),__vite__mapDeps([53,26,27,1])),"../../node_modules/dayjs/esm/locale/de.js":()=>_(()=>import(`./de-BFqyDxvo.js`),__vite__mapDeps([54,26,27,1])),"../../node_modules/dayjs/esm/locale/dv.js":()=>_(()=>import(`./dv-dvig99nB.js`),__vite__mapDeps([55,26,27,1])),"../../node_modules/dayjs/esm/locale/el.js":()=>_(()=>import(`./el-BtJcYjoT.js`),__vite__mapDeps([56,26,27,1])),"../../node_modules/dayjs/esm/locale/en-au.js":()=>_(()=>import(`./en-au-CWzJ565h.js`),__vite__mapDeps([57,26,27,1])),"../../node_modules/dayjs/esm/locale/en-ca.js":()=>_(()=>import(`./en-ca-nou5bZ6q.js`),__vite__mapDeps([58,26,27,1])),"../../node_modules/dayjs/esm/locale/en-gb.js":()=>_(()=>import(`./en-gb-kl3giCnh.js`),__vite__mapDeps([59,26,27,1])),"../../node_modules/dayjs/esm/locale/en-ie.js":()=>_(()=>import(`./en-ie-C55e3apX.js`),__vite__mapDeps([60,26,27,1])),"../../node_modules/dayjs/esm/locale/en-il.js":()=>_(()=>import(`./en-il-HYabE6j7.js`),__vite__mapDeps([61,26,27,1])),"../../node_modules/dayjs/esm/locale/en-in.js":()=>_(()=>import(`./en-in-Bri93cNM.js`),__vite__mapDeps([62,26,27,1])),"../../node_modules/dayjs/esm/locale/en-nz.js":()=>_(()=>import(`./en-nz-BqhpzeuX.js`),__vite__mapDeps([63,26,27,1])),"../../node_modules/dayjs/esm/locale/en-sg.js":()=>_(()=>import(`./en-sg-q8xv-C8V.js`),__vite__mapDeps([64,26,27,1])),"../../node_modules/dayjs/esm/locale/en-tt.js":()=>_(()=>import(`./en-tt-BqzQXPA5.js`),__vite__mapDeps([65,26,27,1])),"../../node_modules/dayjs/esm/locale/en.js":()=>_(()=>import(`./en-B26lXzkx.js`).then(e=>e.n),__vite__mapDeps([27,1])),"../../node_modules/dayjs/esm/locale/eo.js":()=>_(()=>import(`./eo-5Y962E4S.js`),__vite__mapDeps([66,26,27,1])),"../../node_modules/dayjs/esm/locale/es-do.js":()=>_(()=>import(`./es-do-Diob7juh.js`),__vite__mapDeps([67,26,27,1])),"../../node_modules/dayjs/esm/locale/es-mx.js":()=>_(()=>import(`./es-mx-miy7RFDh.js`),__vite__mapDeps([68,26,27,1])),"../../node_modules/dayjs/esm/locale/es-pr.js":()=>_(()=>import(`./es-pr-CZa5Iw2n.js`),__vite__mapDeps([69,26,27,1])),"../../node_modules/dayjs/esm/locale/es-us.js":()=>_(()=>import(`./es-us-BX03CBQf.js`),__vite__mapDeps([70,26,27,1])),"../../node_modules/dayjs/esm/locale/es.js":()=>_(()=>import(`./es-DOQ7swrW.js`),__vite__mapDeps([71,26,27,1])),"../../node_modules/dayjs/esm/locale/et.js":()=>_(()=>import(`./et-DGWOmMlC.js`),__vite__mapDeps([72,26,27,1])),"../../node_modules/dayjs/esm/locale/eu.js":()=>_(()=>import(`./eu-D1Qj8RMh.js`),__vite__mapDeps([73,26,27,1])),"../../node_modules/dayjs/esm/locale/fa.js":()=>_(()=>import(`./fa--TfwKnl9.js`),__vite__mapDeps([74,26,27,1])),"../../node_modules/dayjs/esm/locale/fi.js":()=>_(()=>import(`./fi-Dcbkv925.js`),__vite__mapDeps([75,26,27,1])),"../../node_modules/dayjs/esm/locale/fo.js":()=>_(()=>import(`./fo-BPGX_WF4.js`),__vite__mapDeps([76,26,27,1])),"../../node_modules/dayjs/esm/locale/fr-ca.js":()=>_(()=>import(`./fr-ca-BsNs3KIJ.js`),__vite__mapDeps([77,26,27,1])),"../../node_modules/dayjs/esm/locale/fr-ch.js":()=>_(()=>import(`./fr-ch-BBmdtvlB.js`),__vite__mapDeps([78,26,27,1])),"../../node_modules/dayjs/esm/locale/fr.js":()=>_(()=>import(`./fr-CNsDHzNh.js`),__vite__mapDeps([79,26,27,1])),"../../node_modules/dayjs/esm/locale/fy.js":()=>_(()=>import(`./fy-q3UE-mqp.js`),__vite__mapDeps([80,26,27,1])),"../../node_modules/dayjs/esm/locale/ga.js":()=>_(()=>import(`./ga-C-DOgnYh.js`),__vite__mapDeps([81,26,27,1])),"../../node_modules/dayjs/esm/locale/gd.js":()=>_(()=>import(`./gd-mLMfry_l.js`),__vite__mapDeps([82,26,27,1])),"../../node_modules/dayjs/esm/locale/gl.js":()=>_(()=>import(`./gl-CO8Bj9I_.js`),__vite__mapDeps([83,26,27,1])),"../../node_modules/dayjs/esm/locale/gom-latn.js":()=>_(()=>import(`./gom-latn-myglMmHV.js`),__vite__mapDeps([84,26,27,1])),"../../node_modules/dayjs/esm/locale/gu.js":()=>_(()=>import(`./gu-Bdz1OpMU.js`),__vite__mapDeps([85,26,27,1])),"../../node_modules/dayjs/esm/locale/he.js":()=>_(()=>import(`./he-C4lqk2AA.js`),__vite__mapDeps([86,26,27,1])),"../../node_modules/dayjs/esm/locale/hi.js":()=>_(()=>import(`./hi-h0Byc_UN.js`),__vite__mapDeps([87,26,27,1])),"../../node_modules/dayjs/esm/locale/hr.js":()=>_(()=>import(`./hr-CZV7Za1n.js`),__vite__mapDeps([88,26,27,1])),"../../node_modules/dayjs/esm/locale/ht.js":()=>_(()=>import(`./ht-Dg2blNvl.js`),__vite__mapDeps([89,26,27,1])),"../../node_modules/dayjs/esm/locale/hu.js":()=>_(()=>import(`./hu-DbOVhd9K.js`),__vite__mapDeps([90,26,27,1])),"../../node_modules/dayjs/esm/locale/hy-am.js":()=>_(()=>import(`./hy-am-E48Q7kWE.js`),__vite__mapDeps([91,26,27,1])),"../../node_modules/dayjs/esm/locale/id.js":()=>_(()=>import(`./id-Cd4yWevW.js`),__vite__mapDeps([92,26,27,1])),"../../node_modules/dayjs/esm/locale/is.js":()=>_(()=>import(`./is-BJZYSfrA.js`),__vite__mapDeps([93,26,27,1])),"../../node_modules/dayjs/esm/locale/it-ch.js":()=>_(()=>import(`./it-ch-BkLqxaff.js`),__vite__mapDeps([94,26,27,1])),"../../node_modules/dayjs/esm/locale/it.js":()=>_(()=>import(`./it-BRaqqFz4.js`),__vite__mapDeps([95,26,27,1])),"../../node_modules/dayjs/esm/locale/ja.js":()=>_(()=>import(`./ja-X_I-25cD.js`),__vite__mapDeps([96,26,27,1])),"../../node_modules/dayjs/esm/locale/jv.js":()=>_(()=>import(`./jv-BBBx3R3v.js`),__vite__mapDeps([97,26,27,1])),"../../node_modules/dayjs/esm/locale/ka.js":()=>_(()=>import(`./ka-D9Yrujqk.js`),__vite__mapDeps([98,26,27,1])),"../../node_modules/dayjs/esm/locale/kk.js":()=>_(()=>import(`./kk-Bz450_o8.js`),__vite__mapDeps([99,26,27,1])),"../../node_modules/dayjs/esm/locale/km.js":()=>_(()=>import(`./km-CKOAqvHM.js`),__vite__mapDeps([100,26,27,1])),"../../node_modules/dayjs/esm/locale/kn.js":()=>_(()=>import(`./kn-k2xTBR7a.js`),__vite__mapDeps([101,26,27,1])),"../../node_modules/dayjs/esm/locale/ko.js":()=>_(()=>import(`./ko-BCvoCYib.js`),__vite__mapDeps([102,26,27,1])),"../../node_modules/dayjs/esm/locale/ku.js":()=>_(()=>import(`./ku-D6Rloctr.js`),__vite__mapDeps([103,26,27,1])),"../../node_modules/dayjs/esm/locale/ky.js":()=>_(()=>import(`./ky-C54qnEzk.js`),__vite__mapDeps([104,26,27,1])),"../../node_modules/dayjs/esm/locale/lb.js":()=>_(()=>import(`./lb-y3rkrWB2.js`),__vite__mapDeps([105,26,27,1])),"../../node_modules/dayjs/esm/locale/lo.js":()=>_(()=>import(`./lo-nA_dPnOU.js`),__vite__mapDeps([106,26,27,1])),"../../node_modules/dayjs/esm/locale/lt.js":()=>_(()=>import(`./lt-hjPmCCML.js`),__vite__mapDeps([107,26,27,1])),"../../node_modules/dayjs/esm/locale/lv.js":()=>_(()=>import(`./lv-Bh4qmUa_.js`),__vite__mapDeps([108,26,27,1])),"../../node_modules/dayjs/esm/locale/me.js":()=>_(()=>import(`./me-e32suC_n.js`),__vite__mapDeps([109,26,27,1])),"../../node_modules/dayjs/esm/locale/mi.js":()=>_(()=>import(`./mi-Dwbsuyr9.js`),__vite__mapDeps([110,26,27,1])),"../../node_modules/dayjs/esm/locale/mk.js":()=>_(()=>import(`./mk-DjUXwKRn.js`),__vite__mapDeps([111,26,27,1])),"../../node_modules/dayjs/esm/locale/ml.js":()=>_(()=>import(`./ml-CWjFAViF.js`),__vite__mapDeps([112,26,27,1])),"../../node_modules/dayjs/esm/locale/mn.js":()=>_(()=>import(`./mn-BU4qTvEl.js`),__vite__mapDeps([113,26,27,1])),"../../node_modules/dayjs/esm/locale/mr.js":()=>_(()=>import(`./mr-Bvnduzfb.js`),__vite__mapDeps([114,26,27,1])),"../../node_modules/dayjs/esm/locale/ms-my.js":()=>_(()=>import(`./ms-my-CDbnYp0g.js`),__vite__mapDeps([115,26,27,1])),"../../node_modules/dayjs/esm/locale/ms.js":()=>_(()=>import(`./ms-XuKVAni7.js`),__vite__mapDeps([116,26,27,1])),"../../node_modules/dayjs/esm/locale/mt.js":()=>_(()=>import(`./mt-PDuxJf8J.js`),__vite__mapDeps([117,26,27,1])),"../../node_modules/dayjs/esm/locale/my.js":()=>_(()=>import(`./my-7N6SHnsD.js`),__vite__mapDeps([118,26,27,1])),"../../node_modules/dayjs/esm/locale/nb.js":()=>_(()=>import(`./nb-Cu3KUtTR.js`),__vite__mapDeps([119,26,27,1])),"../../node_modules/dayjs/esm/locale/ne.js":()=>_(()=>import(`./ne-CYW0uI2a.js`),__vite__mapDeps([120,26,27,1])),"../../node_modules/dayjs/esm/locale/nl-be.js":()=>_(()=>import(`./nl-be-B3NSF-2w.js`),__vite__mapDeps([121,26,27,1])),"../../node_modules/dayjs/esm/locale/nl.js":()=>_(()=>import(`./nl-DL7cw699.js`),__vite__mapDeps([122,26,27,1])),"../../node_modules/dayjs/esm/locale/nn.js":()=>_(()=>import(`./nn-BHITVkGB.js`),__vite__mapDeps([123,26,27,1])),"../../node_modules/dayjs/esm/locale/oc-lnc.js":()=>_(()=>import(`./oc-lnc-dp3c4Bty.js`),__vite__mapDeps([124,26,27,1])),"../../node_modules/dayjs/esm/locale/pa-in.js":()=>_(()=>import(`./pa-in-BxgIlP1T.js`),__vite__mapDeps([125,26,27,1])),"../../node_modules/dayjs/esm/locale/pl.js":()=>_(()=>import(`./pl-GrG6yjkB.js`),__vite__mapDeps([126,26,27,1])),"../../node_modules/dayjs/esm/locale/pt-br.js":()=>_(()=>import(`./pt-br-BxTgeF95.js`),__vite__mapDeps([127,26,27,1])),"../../node_modules/dayjs/esm/locale/pt.js":()=>_(()=>import(`./pt-cVbj6hL6.js`),__vite__mapDeps([128,26,27,1])),"../../node_modules/dayjs/esm/locale/rn.js":()=>_(()=>import(`./rn-DiVJ2_Jy.js`),__vite__mapDeps([129,26,27,1])),"../../node_modules/dayjs/esm/locale/ro.js":()=>_(()=>import(`./ro-D1WeRyXR.js`),__vite__mapDeps([130,26,27,1])),"../../node_modules/dayjs/esm/locale/ru.js":()=>_(()=>import(`./ru-DZCu4V9W.js`),__vite__mapDeps([131,26,27,1])),"../../node_modules/dayjs/esm/locale/rw.js":()=>_(()=>import(`./rw-DfFpVc_g.js`),__vite__mapDeps([132,26,27,1])),"../../node_modules/dayjs/esm/locale/sd.js":()=>_(()=>import(`./sd-yDyBYxtQ.js`),__vite__mapDeps([133,26,27,1])),"../../node_modules/dayjs/esm/locale/se.js":()=>_(()=>import(`./se-EJKibocp.js`),__vite__mapDeps([134,26,27,1])),"../../node_modules/dayjs/esm/locale/si.js":()=>_(()=>import(`./si-BCBV00rO.js`),__vite__mapDeps([135,26,27,1])),"../../node_modules/dayjs/esm/locale/sk.js":()=>_(()=>import(`./sk-B2VvG_mo.js`),__vite__mapDeps([136,26,27,1])),"../../node_modules/dayjs/esm/locale/sl.js":()=>_(()=>import(`./sl-BTYmt65M.js`),__vite__mapDeps([137,26,27,1])),"../../node_modules/dayjs/esm/locale/sq.js":()=>_(()=>import(`./sq-BaLGKAHu.js`),__vite__mapDeps([138,26,27,1])),"../../node_modules/dayjs/esm/locale/sr-cyrl.js":()=>_(()=>import(`./sr-cyrl-CrwXFtkw.js`),__vite__mapDeps([139,26,27,1])),"../../node_modules/dayjs/esm/locale/sr.js":()=>_(()=>import(`./sr-DarE-95b.js`),__vite__mapDeps([140,26,27,1])),"../../node_modules/dayjs/esm/locale/ss.js":()=>_(()=>import(`./ss-CbBe1RUs.js`),__vite__mapDeps([141,26,27,1])),"../../node_modules/dayjs/esm/locale/sv-fi.js":()=>_(()=>import(`./sv-fi-CVHORXkw.js`),__vite__mapDeps([142,26,27,1])),"../../node_modules/dayjs/esm/locale/sv.js":()=>_(()=>import(`./sv-Baw7Je9j.js`),__vite__mapDeps([143,26,27,1])),"../../node_modules/dayjs/esm/locale/sw.js":()=>_(()=>import(`./sw-k1H_OzIi.js`),__vite__mapDeps([144,26,27,1])),"../../node_modules/dayjs/esm/locale/ta.js":()=>_(()=>import(`./ta-Bc4ZaZT9.js`),__vite__mapDeps([145,26,27,1])),"../../node_modules/dayjs/esm/locale/te.js":()=>_(()=>import(`./te-ClciACZi.js`),__vite__mapDeps([146,26,27,1])),"../../node_modules/dayjs/esm/locale/tet.js":()=>_(()=>import(`./tet-B75w1oSG.js`),__vite__mapDeps([147,26,27,1])),"../../node_modules/dayjs/esm/locale/tg.js":()=>_(()=>import(`./tg-CuH2ARRk.js`),__vite__mapDeps([148,26,27,1])),"../../node_modules/dayjs/esm/locale/th.js":()=>_(()=>import(`./th-LvExAoJ6.js`),__vite__mapDeps([149,26,27,1])),"../../node_modules/dayjs/esm/locale/tk.js":()=>_(()=>import(`./tk-2CFwTMKo.js`),__vite__mapDeps([150,26,27,1])),"../../node_modules/dayjs/esm/locale/tl-ph.js":()=>_(()=>import(`./tl-ph-CNJ_lViV.js`),__vite__mapDeps([151,26,27,1])),"../../node_modules/dayjs/esm/locale/tlh.js":()=>_(()=>import(`./tlh-9UbKQkHo.js`),__vite__mapDeps([152,26,27,1])),"../../node_modules/dayjs/esm/locale/tr.js":()=>_(()=>import(`./tr-Cu4P4OMe.js`),__vite__mapDeps([153,26,27,1])),"../../node_modules/dayjs/esm/locale/tzl.js":()=>_(()=>import(`./tzl-D97WsZW-.js`),__vite__mapDeps([154,26,27,1])),"../../node_modules/dayjs/esm/locale/tzm-latn.js":()=>_(()=>import(`./tzm-latn-BRGsWK-9.js`),__vite__mapDeps([155,26,27,1])),"../../node_modules/dayjs/esm/locale/tzm.js":()=>_(()=>import(`./tzm-CURkYgMY.js`),__vite__mapDeps([156,26,27,1])),"../../node_modules/dayjs/esm/locale/ug-cn.js":()=>_(()=>import(`./ug-cn-Cd4exKOc.js`),__vite__mapDeps([157,26,27,1])),"../../node_modules/dayjs/esm/locale/uk.js":()=>_(()=>import(`./uk-DEXM3PIH.js`),__vite__mapDeps([158,26,27,1])),"../../node_modules/dayjs/esm/locale/ur.js":()=>_(()=>import(`./ur-DpUycj07.js`),__vite__mapDeps([159,26,27,1])),"../../node_modules/dayjs/esm/locale/uz-latn.js":()=>_(()=>import(`./uz-latn-Baga58FN.js`),__vite__mapDeps([160,26,27,1])),"../../node_modules/dayjs/esm/locale/uz.js":()=>_(()=>import(`./uz-CznjzufA.js`),__vite__mapDeps([161,26,27,1])),"../../node_modules/dayjs/esm/locale/vi.js":()=>_(()=>import(`./vi-BrZWcL2C.js`),__vite__mapDeps([162,26,27,1])),"../../node_modules/dayjs/esm/locale/x-pseudo.js":()=>_(()=>import(`./x-pseudo-BY6J4I7_.js`),__vite__mapDeps([163,26,27,1])),"../../node_modules/dayjs/esm/locale/yo.js":()=>_(()=>import(`./yo-Dkeaym0x.js`),__vite__mapDeps([164,26,27,1])),"../../node_modules/dayjs/esm/locale/zh-cn.js":()=>_(()=>import(`./zh-cn-CiA7hMZm.js`),__vite__mapDeps([165,26,27,1])),"../../node_modules/dayjs/esm/locale/zh-hk.js":()=>_(()=>import(`./zh-hk-EkoniWh0.js`),__vite__mapDeps([166,26,27,1])),"../../node_modules/dayjs/esm/locale/zh-tw.js":()=>_(()=>import(`./zh-tw-KDgos-kB.js`),__vite__mapDeps([167,26,27,1])),"../../node_modules/dayjs/esm/locale/zh.js":()=>_(()=>import(`./zh-C2fOZUKR.js`),__vite__mapDeps([168,26,27,1]))}),TA=new Map(Object.keys(wA).map(e=>[e.match(/([^/]+)\.js$/)[1],e])),EA={zn:`zh-cn`,no:`nb`};function DA(e){let t=e.toLowerCase();return TA.has(t)&&t||EA[t]||t.includes(`-`)&&DA(t.split(`-`)[0])||void 0}function OA(){return wC([navigator.language,...navigator.languages],DA)}function kA(){return AA.apply(this,arguments)}function AA(){return AA=p(function*(){var e;let t=OA();if(t)return yield(e=wA[TA.get(t)])==null?void 0:e.call(wA),t}),AA.apply(this,arguments)}U();var jA=(0,u.lazy)(()=>_(()=>import(`./ConfigFilePage-DK2WoVVT.js`),__vite__mapDeps([169,1,15,16,6])));function MA(){return(0,u.createElement)(jc,{theme:ZD()},(0,u.createElement)(PA,{},(0,u.createElement)(NA,{},(0,u.createElement)(Zk,{},(0,u.createElement)(Te,{hook:Le,children:(0,u.createElement)(uT,{style:{display:`flex`,flexDirection:`column`,minHeight:`100%`,flex:1,maxWidth:`100%`}},(0,u.createElement)(IA))})))))}function NA(e){let[t,n]=(0,u.useState)(``);return(0,u.useEffect)(()=>{let e=!1;return kA().then(t=>{e||n(t||``)}),()=>{e=!0}},[]),(0,u.createElement)(oA,H({dateAdapter:CA,adapterLocale:t},e))}function PA(e){return(0,u.createElement)(yh,H({sx:{bgcolor:`background.default`,color:`text.primary`,flex:1,transition:`background-color .4s`,maxWidth:`100%`}},e))}var FA;function IA(){let[e,t]=Ce(),n=Uk.find(t=>Kk(t,e)),{title:r}=RD();r=n&&(n.title||Gk(n))||r;let[i,a]=(0,u.useState)(!1),o=EO(`lg`),s=n!=null&&n.noPaddingOnMobile?0:1;tw(`keydown`,({key:e,ctrlKey:n,altKey:r})=>{var i;if(_T()||!(bw?n:r))return;let a=Number(RC(e,{0:10}));if(!a)return;let o=(i=Uk[a-1])==null?void 0:i.path;o!==void 0&&t(o)});let[c,l]=(0,u.useState)(),[d,f]=(0,u.useState)(!1);FA=null;let p=(0,u.useCallback)((e,t=!1)=>{FA=e,setTimeout(()=>{l(()=>e),f(()=>t)})},[]);return(0,u.useEffect)(()=>{FA||p(null)}),(0,u.createElement)(u.Fragment,{},(0,u.createElement)(yw,{},(0,u.createElement)(`h1`,{},`Admin-panel`)),!o&&(0,u.createElement)(RA,H({title:r,titleSide:c,openMenu:()=>a(!0)},d&&{props:{flex:1}})),!o&&(0,u.createElement)(D_,{anchor:`left`,open:i,onClose(){a(!1)}},(0,u.createElement)(Wk,{onSelect:()=>a(!1),itemTitle:LA})),(0,u.createElement)(yh,{sx:{display:`flex`,flex:1}},o&&(0,u.createElement)(Wk,{itemTitle:LA,onSelect(){}}),(0,u.createElement)(yh,{component:`main`,sx:H(H({background:`url(cup.svg) no-repeat right fixed`,backgroundSize:`contain`,px:{xs:s,md:2,lg:3},pb:{xs:s,md:2},boxSizing:`border-box`,position:`relative`},TO),{},{width:`100%`,overflowX:`clip`})},r&&o&&(0,u.createElement)(OO,{gap:4,"& .MuiAlert-root":{p:0,backgroundColor:`unset`}},(0,u.createElement)(yd,{variant:`h2`,sx:{mb:2,whiteSpace:`nowrap`}},r),(0,u.createElement)(OO,H({},d&&{width:`100%`}),c)),(0,u.createElement)(u.Suspense,{fallback:(0,u.createElement)(wO)},(0,u.createElement)(je,{children:[...Uk.flatMap((e,t)=>[(0,u.createElement)(Oe,{key:t,path:e.path},(0,u.createElement)(e.comp,{setTitleSide:p})),e.subRoutes&&(0,u.createElement)(Oe,{key:e.path+`/:tab`,path:`${e.path}/:tab`},(0,u.createElement)(e.comp,{setTitleSide:p}))]),(0,u.createElement)(Oe,{path:`/config`},(0,u.createElement)(jA))]})))))}function LA(e){return e<10?`${bw?`CTRL`:`ALT`} + ${(e+1)%10}`:``}function RA({title:e,titleSide:t,openMenu:n,props:r}){return(0,u.createElement)(Td,{ref:gw(),position:`sticky`,sx:{mb:1}},(0,u.createElement)(qx,{},(0,u.createElement)($u,{size:`large`,edge:`start`,color:`inherit`,sx:{mr:2},"aria-label":`menu`,onClick:n},(0,u.createElement)(nA)),(0,u.createElement)(OO,{gap:4,props:r,"& .MuiAlert-root":{p:0,backgroundColor:`unset`,"& .MuiAlert-icon":{py:0},"& .MuiAlert-message":{py:`1px`}}},(0,u.createElement)(yh,{component:`h2`,sx:{m:0,whiteSpace:`nowrap`}},e),t)))}(0,d.createRoot)(document.getElementById(`root`)).render((0,u.createElement)(u.StrictMode,{},(0,u.createElement)(MA)));export{UD as $,Q as $i,vC as $n,fg as $r,vw as $t,JO as A,p as Aa,Nl as Ai,JC as An,xy as Ar,HT as At,hO as B,rl as Bi,qC as Bn,bv as Br,xT as Bt,FO as C,G as Ca,Zl as Ci,MC as Cn,Ab as Cr,$T as Ct,AO as D,de as Da,zl as Di,QS as Dn,Ey as Dr,BT as Dt,WO as E,V as Ea,Vl as Ei,IC as En,jy as Er,JT as Et,EO as F,dl as Fi,pC as Fn,ty as Fr,PT as Ft,dO as G,Yc as Gi,uC as Gn,W_ as Gr,Hw as Gt,sO as H,el as Hi,mC as Hn,av as Hr,$w as Ht,MO as I,ll as Ii,WC as In,ey as Ir,MT as It,pO as J,Wc as Ji,ZC as Jn,c_ as Jr,xw as Jt,mO as K,Jc as Ki,dC as Kn,z_ as Kr,Uw as Kt,HO as L,ol as Li,UC as Ln,Kv as Lr,NT as Lt,NO as M,i as Ma,Cl as Mi,TC as Mn,py as Mr,VT as Mt,jO as N,xl as Ni,zC as Nn,cy as Nr,RT as Nt,LO as O,ue as Oa,Ll as Oi,FC as On,Dy as Or,WT as Ot,wO as P,ml as Pi,aC as Pn,oy as Pr,FT as Pt,zD as Q,Fc as Qi,iC as Qn,kg as Qr,gw as Qt,UO as R,al as Ri,nC as Rn,Av as Rr,ST as Rt,OO as S,Ce as Sa,nu as Si,VC as Sn,Lb as Sr,QT as St,VO as T,U as Ta,Wl as Ti,NC as Tn,My as Tr,OT as Tt,cO as U,$c as Ui,QC as Un,iv as Ur,pT as Ut,gO as V,tl as Vi,XC as Vn,dv as Vr,mT as Vt,lO as W,Zc as Wi,lC as Wn,Z_ as Wr,Yw as Wt,MD as X,Hc as Xi,hC as Xn,Xg as Xr,Sw as Xt,VD as Y,Uc as Yi,xC as Yn,r_ as Yr,uw as Yt,HD as Z,Ic as Zi,EC as Zn,Hg as Zr,pw as Zt,XO as _,nr as _a,$u as _i,AC as _n,$x as _r,aE as _t,jk as a,po as aa,sh as ai,GS as an,MS as ar,FE as at,BO as b,Je as ba,ju as bi,HC as bn,Nx as br,tE as bt,vk as c,Ta as ca,ym as ci,JS as cn,xS as cr,AE as ct,uk as d,ma as da,Yp as di,YS as dn,lS as dr,wE as dt,Z as ea,qh as ei,hw as en,gC as er,BD as et,ck as f,ca as fa,Pp as fi,sC as fn,cS as fr,bE as ft,rk as g,ir as ga,fd as gi,tC as gn,eS as gr,lE as gt,ok as h,Gr as ha,yd as hi,_C as hn,tS as hr,uE as ht,rA as i,Vo as ia,fh as ii,BS as in,IS as ir,RD as it,RO as j,c as ja,jl as ji,KC as jn,yy as jr,KT as jt,TO as k,le as ka,Fl as ki,rC as kn,Ty as kr,UT as kt,pk as l,wa as la,gm as li,yC as ln,CS as lr,EE as lt,ak as m,J as ma,Ed as mi,jC as mn,rS as mr,yE as mt,oA as n,yc as na,Mh as ni,iw as nn,PS as nr,WD as nt,fk as o,io as oa,Nm as oi,KS as on,hS as or,ME as ot,ik as p,sa as pa,Np as pi,eC as pn,iS as pr,vE as pt,aO as q,qc as qi,SC as qn,L_ as qr,mw as qt,aA as r,zs as ra,yh as ri,ew as rn,jS as rr,GD as rt,gk as s,Da as sa,wm as si,ZS as sn,yS as sr,jE as st,sA as t,bc as ta,Lh as ti,fw as tn,RC as tr,FD as tt,mk as u,Ca as ua,um as ui,YC as un,fS as ur,DE as ut,ZO as v,Vn as va,Ju as vi,kC as vn,qx as vr,rE as vt,DO as w,H as wa,Gl as wi,CC as wn,ub as wr,XT as wt,GO as x,ke as xa,Du as xi,PC as xn,bx as xr,ZT as xt,IO as y,Hn as ya,Ku as yi,oC as yn,Hx as yr,nE as yt,kO as z,il as zi,cC as zn,Ev as zr,bT as zt};
|
|
476
|
+
`).map(e=>{let[t,n,r]=e.split(`|`);return{flag:t,code:n,name:r}}),bO=`AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SI,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,`+`UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW`.split(`,`);function xO(e){if(e==null)throw TypeError(`Cannot destructure `+e)}function SO(){return SO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SO.apply(null,arguments)}U();var CO=[`vert`,`center`,`children`,`props`,`component`],wO=[`icon`,`title`,`onClick`,`disabled`,`progress`,`link`,`tooltipProps`,`confirm`,`doneMessage`,`doneAnimation`,`labelIf`,`children`,`modified`,`loading`],TO=[`to`],EO=[`sx`],DO=[`setApi`,`helperText`];function OO(){return(0,u.createElement)(Ku)}var kO={display:`flex`,flexDirection:`column`};function AO(e){return eS(t=>t.breakpoints.up(e),{noSsr:!0})}function jO({icon:e,progress:t,offset:n,title:r,sx:i}){return(0,u.createElement)(MO,{vert:!0,center:!0},(0,u.createElement)(e,{sx:{position:`absolute`,ml:`4px`}}),(0,u.createElement)(Ku,{value:t*100||0,variant:`determinate`,size:32,sx:{position:`absolute`}}),QO(r==null?$.default.isNumber(t)?yC(t):`Size unknown`:r,``,(0,u.createElement)(Ku,{color:`success`,value:(n||1e-7)*100,variant:`determinate`,size:32,sx:DE({display:`flex`},i)})))}var MO=(0,u.forwardRef)((e,t)=>{let{vert:n=!1,center:r=!1,children:i=null,props:a={},component:o}=e,s=G(e,CO);return(0,u.createElement)(yh,H({ref:t,sx:H(H({display:`flex`,gap:`.8em`,flexDirection:n?`column`:void 0,alignItems:n?void 0:`center`},r&&{justifyContent:`center`}),s),component:o},a),i)});function NO(e,t){return Array.isArray(t)&&(t=mw(t)),(0,u.createElement)(ey,{href:VS+e,target:`help`},t)}function PO(){return NO(`Wildcards`,`Wildcards supported`)}function FO(e,t){return(0,u.createElement)(zO,H({icon:aE,title:`Reload`,onClick:e},t))}function IO(e){let t=(0,u.useRef)(null);return(0,u.useEffect)(()=>PT(`keydown`,n=>{let r=(n.ctrlKey||Cw&&n.metaKey)&&n.key.toLowerCase(),i=t.current;!r||!i||!e.some(e=>e.toLowerCase()===r)||(n.preventDefault(),i.click())},{capture:!0}),[e.join(`
|
|
477
|
+
`)]),{ref:t}}function LO(e){return e?{sx:{outline:`2px solid`,animation:`.5s blink 2`}}:void 0}function RO(e){let t=(0,u.useRef)(null);return Object.assign(t,{pass(n){t.current=n,$.default.isFunction(e)?e(n):e&&(e.current=n)}})}var zO=(0,u.forwardRef)((e,t)=>(0,u.createElement)(BO,H({ref:t},e))),BO=(0,u.forwardRef)((e,t)=>{var n,r;let{icon:i,title:a,onClick:o,disabled:s,progress:c,link:l,tooltipProps:d,confirm:f,doneMessage:m,doneAnimation:h,labelIf:g,children:_,modified:v,loading:y}=e,b=G(e,wO),[x,S]=dw(!1);typeof s==`string`&&(a=s),s=c||s||y?!0:void 0,l&&(o=()=>window.open(l));let C=AO($.default.isString(g)?g:`xs`)&&($.default.isBoolean(g)?g:!0);!C&&_&&(a=_);let w=RO(t),T=$.default.merge(LO(v),{ref:w.pass,disabled:s,"aria-hidden":s,onClick(...e){var t=this;return p(function*(){if(!x&&!(f&&!(yield fO(f===!0?`Are you sure?`:f))))try{let n=o==null?void 0:o.apply(t,e);n instanceof Promise&&S(!0),(yield n)!==!1&&VO(m,h&&w.current)}catch(e){dO(e)}finally{S(!1)}})()}},b),E=(0,u.isValidElement)(i)?i:i&&(0,u.createElement)(i),D=_&&C?(0,u.createElement)(Mh,$.default.merge({variant:`contained`,startIcon:E,loading:!!(y||x||c),loadingPosition:i&&`start`,loadingIndicator:typeof c==`number`?(0,u.createElement)(Ku,{size:`1rem`,value:c*100,variant:`determinate`}):void 0,children:C&&_},T,(!C||!_)&&{sx:{minWidth:`auto`,px:1,py:`7px`,"& span":{mx:0}}})):(0,u.createElement)($u,$.default.merge(T,{sx:{height:`fit-content`},TouchRippleProps:{"aria-hidden":!0},"aria-label":!_||!C?(n=b[`aria-label`])==null?$.default.isString(a)?a:void 0:n:b[`aria-label`]}),(c||y||x)&&c!==!1&&(0,u.createElement)(Ku,H(H({},typeof c==`number`?{value:c*100,variant:`determinate`}:null),{},{style:{position:`absolute`,top:`10%`,left:`10%`,width:`80%`,height:`80%`}})),E),O=(r=b[`aria-label`])==null?vC($.default.isString(a)&&a,e=>e?`${nC(``,$.default.isString(_)&&_,` – `)}${e}`:void 0):r;return a&&(D=(0,u.createElement)(`span`,s?{role:`button`,"aria-label":O,"aria-disabled":!0}:void 0,D),D=QO(a,O,D,d)),D});function VO(e,t){t&&FT(t,`success .5s`),e&&vO(e===!0?`Operation completed`:e,`success`)}function HO(e,t,n,r){return QO(t,void 0,(0,u.createElement)(e,H({sx:n},r)))}function UO(e){let{to:t}=e,n=G(e,TO),r=Ce()[1];return n.onClickCapture=function(){var e=p(function*(e){var n;for(e.preventDefault();bT();)yield(n=_T())==null?void 0:n.closed;r(t)});return function(t){return e.apply(this,arguments)}}(),(0,u.createElement)(ey,H({component:ke,href:t},n))}var WO=(0,u.forwardRef)((e,t)=>{let{sx:n}=e,r=G(e,EO);return(0,u.createElement)(yh,H({ref:t,sx:DE({display:`flex`,height:`100%`,width:`100%`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`},n)},r))});function GO(e){let t=SO({},(xO(e),e));return(0,u.createElement)(ey,H(H({},t),{},{href:``,sx:DE({cursor:`pointer`},t.sx),role:`button`,onClick(e){var n;e.preventDefault(),(n=t.onClick)==null||n.call(t,e)}}))}function KO(e=``,t=!0,n){let[r,i]=qO(`Pause ${e}`,`Resume ${e}`,e=>H({icon:e?rE:iE,sx:{rotate:e?`180deg`:`0deg`}},n),t);return{pause:!r,pauseButton:i}}function qO(e,t,n,r=!1){let[i,a]=(0,u.useState)(r instanceof Promise||r instanceof Function?(()=>{let e=QC(r);return e instanceof Promise?(e.then(e=>a(e)),!1):e}):r),o=(0,u.useCallback)(()=>a(e=>!e),[]),s=n(i);return[i,(0,u.useMemo)(()=>(0,u.createElement)(zO,H(H({size:`small`,color:i?`primary`:void 0,title:i||t===void 0?e:t,"aria-label":e,"aria-pressed":i},s),{},{sx:DE({transition:`all .5s`},s.sx),onClick(e){var t;(t=s.onClick)==null||t.call(s,e),o()}})),[i]),a]}function JO(e){let{setApi:t,helperText:n}=e,r=G(e,DO),i=(0,u.useRef)(!1);return t==null||t({getError(){return r.value&&yS(`validate_net_mask`,{mask:r.value}).then(e=>!e.result&&`Invalid mask`)}}),(0,u.createElement)(cE,H(H({helperText:(0,u.createElement)(`span`,{},n,n&&` – `,NO(`Wildcards#network-masks`,`Wildcards supported`))},r),{},{onTyping(e){var t,n;return!i.current&&e!=null&&e.includes(`127.0.0.1`)&&!e.includes(`::1`)&&(i.current=!0,dO(`Hostname "localhost" is normally translated as ::1 instead of 127.0.0.1`,`warning`)),(t=(n=r.onTyping)==null?void 0:n.call(r,e))==null?e:t}}))}function YO({code:e,ip:t,def:n,long:r,short:i}){let a=t&&!HC(t)&&!UC(t),{data:o}=gw(e===void 0&&a&&XO,t,{delay:100});e||(e=o||``);let s=e&&$.default.find(yO,{code:e});return s?QO(r?void 0:s.name,void 0,(0,u.createElement)(`span`,{},(0,u.createElement)(yh,{className:`fflag fflag-${e.toUpperCase()}`,component:`span`,sx:{mr:`.5em`,verticalAlign:`text-bottom`}}),r?s.name+nC(` (`,i&&e,`)`):e)):(0,u.createElement)(u.Fragment,{},n)}function XO(e){return ZO.apply(this,arguments)}function ZO(){return ZO=p(function*(e){return(yield yS(`ip_country`,{ips:e})).codes}),ZO.apply(this,arguments)}function QO(e,t,n,r){return(0,u.createElement)(Nx,H(H({title:e,children:n},t===``?{"aria-hidden":!0}:{"aria-label":t||$.default.isString(e)&&e||void 0}),{},{slotProps:{popper:{sx:DE({whiteSpace:`pre-wrap`},r==null?void 0:r.sx)}}},r))}U(),vS({onResponse(e,t){return p(function*(){if(e.status===401)throw RD.loginRequired=(t==null?void 0:t.possible)!==!1||403,new bS(e.status,t)})()}});var $O={timeout:`Operation timeout`};function ek(...e){let t=xS(...e);return H(H({},t),{},{element:(0,u.useMemo)(()=>e[0]?t.error?(0,u.createElement)(fd,{severity:`error`},BC(String(t.error),$O),(0,u.createElement)(zO,{icon:aE,title:`Reload`,onClick:t.reload,sx:{m:`-10px 0 -8px 16px`}})):t.data===void 0?OO():null:null,Object.values(t))})}function tk(e,t={},{map:n,invert:r,pause:i,limit:a,keepListOnReconnect:o}={}){let[s,c]=dw([]),[l,d]=dw(void 0),[f,p]=dw(void 0),[m,h]=dw(!0),[g,_]=dw(!1),[v,y]=dw(!0),[b,x]=(0,u.useState)(0),S=(0,u.useRef)(0),[C,w]=(0,u.useState)();(0,u.useEffect)(()=>w(i?s:void 0),[i]),(0,u.useEffect)(()=>{if(!e)return;let i=e,s=[],l=$.default.debounce(()=>{let e=s.splice(0,1/0);e.length&&(r&&e.reverse(),c(t=>{if(r){let n=[...e,...t];return n.splice(a==null?1/0:a,1/0),n}let n=[...t,...e];return n.splice(0,n.length-(a==null?1/0:a)),n}))},1e3,{maxWait:1e3}),u,f;c([]),m();function m(){p(void 0),_(!0),h(!0),y(!0),o||c([]);let e=SS(i,$.default.mapValues(t,e=>e===!1?void 0:e),(t,r)=>{switch(t){case`connected`:return h(!1),setTimeout(()=>l.flush());case`error`:return p(`Connection error`),e.close(),u=setTimeout(m,1e3),g();case`closed`:return g();case`msg`:if(e.readyState!==e.OPEN)return g();let t=[],i=[];bC(r).forEach(e=>{if(!Array.isArray(e))return console.debug(`illegal list packet`,e);console.debug(`LIST`,...e);let[r,a]=e;if(r===qS.ready){l.flush(),y(!1);return}if(r===qS.error){var o;a===401?RD.loginRequired=((o=e[2])==null?void 0:o.possible)!==!1||403:p($.default.isString(a)||$.default.isNumber(a)?eE(a):a);return}if(r===qS.props)return d(a);if(r===qS.add){var c;let e=(c=n==null?void 0:n(a))==null?a:c;e.id!=null||(e.id=S.current=Math.max(S.current,Date.now())+.001),s.push(e),l();return}if(r===qS.remove){let e=$.default.matches(a);$.default.isEmpty($.default.remove(s,e))&&t.push(e);return}if(r===qS.update){var u;let t=(u=n==null?void 0:n(e[2]))==null?e[2]:u,r=$.default.find(s,a);if(r)return Object.assign(r,t);i.push([a,t]);return}console.debug(`unknown list api`,r)}),c(e=>{let n=e,r;if(t.length&&(r=e.filter(e=>!t.some(t=>t(e))),r.length<e.length&&(n=r)),i.length)for(let[t,o]of i){var a;let i=$.default.findIndex(n,t);i<0||(n===e&&(n=(a=r)==null?e.slice():a),n[i]=H(H({},n[i]),o))}return n})}});f=()=>e.close()}return()=>{l.cancel(),clearTimeout(u),f()};function g(){h(!1),y(!1),_(!1),l.flush()}},[b,e,JSON.stringify(t)]);let T=(0,u.useCallback)(e=>c(t=>ND(t,e)),[c]),E=(0,u.useCallback)((e,t)=>{T(n=>{let r=$.default.find(n,e);r&&Object.assign(r,t)})},[T]),D=(0,u.useMemo)(()=>m||v||g?OO():f?(0,u.createElement)(fd,{severity:`error`,sx:{flex:1}},eE(f)):null,[m,v,g,f]);return{list:C==null?s:C,props:l,loading:g,error:f,initializing:v,connecting:m,setList:c,updateList:T,updateEntry:E,reload:O,enabled:!!e,element:D};function O(){x(e=>e+1)}}var nk=Hc((0,K.jsx)(`path`,{d:`M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3zm-7 2-5-5h4V3h2v7h4z`}),`BrowserUpdated`),rk=Hc((0,K.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),ik=Hc((0,K.jsx)(`path`,{d:`m20.71 5.63-2.34-2.34a.996.996 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42M6.92 19 5 17.08l8.06-8.06 1.92 1.92z`}),`Colorize`),ak=Hc((0,K.jsx)(`path`,{d:`M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z`}),`OpenInNew`),ok=Hc((0,K.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),sk=Hc((0,K.jsx)(`path`,{d:`M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z`}),`CardMembership`);function ck(e){return/certificate/.test(e)}function lk(e){return/private key/.test(e)}function uk(e){return dk.apply(this,arguments)}function dk(){return dk=p(function*(e){return new Promise(t=>{let{close:n}=gT({icon:sk,title:`Get a certificate`,onClose:t,Content:()=>(0,u.createElement)(yh,{sx:{p:1,lineHeight:1.5}},(0,u.createElement)(yh,{},`HTTPS needs a certificate to work.`),(0,u.createElement)(yh,{},`We suggest you to `,(0,u.createElement)(UO,{to:`/internet`},`get a free but proper certificate`),`.`),(0,u.createElement)(yh,{},`If you don't have a domain `,(0,u.createElement)(GO,{onClick:r},`make a self-signed certificate`),` but that `,NO(`HTTPS#certificate`,` won't be perfect`),`.`))});function r(){return i.apply(this,arguments)}function i(){return i=p(function*(){if(!window.crypto.subtle)return dO(`Retry this procedure on localhost`,`warning`);try{let t=yield yS(`make_self_signed_cert`,{fileName:`self`});Object.assign(RD.config,t),e==null||e(t),yield dO(`Certificate saved`,`success`),n()}catch(e){yield dO(e)}}),i.apply(this,arguments)}})}),dk.apply(this,arguments)}var fk=Hc((0,K.jsx)(`path`,{d:`M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91`}),`RestartAlt`);U();var pk=[`keys`,`form`,`saveOnChange`,`onSave`];function mk(e){let{keys:t,form:n,saveOnChange:r,onSave:i}=e,a=G(e,pk),[o,s]=(0,u.useState)(!1),[c,l]=(0,u.useState)(t),d=ek(c&&`get_config`,{only:c}),[f,p]=(0,u.useState)(d.data);(0,u.useEffect)(()=>p(e=>d.data||e),[d.data]);let m=f&&!$.default.isEqual(f,d.data);(0,u.useEffect)(()=>{m&&r&&g()},[m]);let h=$.default.isFunction(n)?n(f,{setValues:p}):n;if((0,u.useEffect)(()=>{t||l(hC(h.fields.map(e=>e==null?void 0:e.k)))},[t]),!f)return d.element;return(0,u.createElement)(kE,H(H(H(H({values:f,set(e,t){p(n=>H(H({},n),{},{[t]:e}))},save:r?!1:H({onClick:g},LO(m))},h),a),{inert:o?``:void 0}),{},{barSx:H({gap:1},a.barSx),addToBar:[(0,u.createElement)(zO,{icon:fk,disabled:!m,title:`Reset`,onClick(){p(d.data)}}),...a.addToBar||[]]}));function g(){return s(!0),yS(`set_config`,{values:f}).then(i).then(d.reload).finally(()=>s(!1))}}var hk=kS.replace(/\/.+/,`/`),gk={ENOTFOUND:`Cannot reach github.com`,ECONNREFUSED:`Cannot reach github.com`};function _k({row:e,value:t}){let{repo:n}=e;return(0,u.createElement)(u.Fragment,{},e.downgrade&&r(`This version is older than the one you installed. It is possible that the author found a problem with your version and decided to retire it.`,!0),r(e.error||e.badApi,!e.error),n!=null&&n.includes(`//`)?(0,u.createElement)(ey,{href:n,target:`plugin`},t):vC(n==null?void 0:n.split(`/`),e=>(e==null?void 0:e.length)===2?(0,u.createElement)(u.Fragment,{},(0,u.createElement)(ey,{href:`https://github.com/`+n,target:`plugin`,onClick(e){e.stopPropagation()}},Sk(e[1])),`\xA0by `,e[0]):t));function r(e,t=!1){return e&&QO(e,e,(0,u.createElement)(FE,{fontSize:`small`,color:t?`warning`:`error`,sx:{ml:-.5,mr:.5}}))}}function vk(e){return yk.apply(this,arguments)}function yk(){return yk=p(function*(e){try{return yield yS(`start_plugin`,{id:e}),vO(`Plugin started`,(0,u.createElement)(iE,{color:`success`})),!0}catch(t){dO(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,`error`)}}),yk.apply(this,arguments)}function bk(e){return xk.apply(this,arguments)}function xk(){return xk=p(function*(e){if(!e.id.startsWith(hk)&&!(yield fO((0,u.createElement)(MO,{vert:!0,alignItems:`center`},(0,u.createElement)(RE,{color:`warning`,fontSize:`large`}),`Proceed only if you trust this plugin`,(0,u.createElement)(yh,{sx:{fontSize:`60%`}},`A plugin has the same power of any other software`))))||e.missing&&!(yield fO(`This will also install: `+$.default.map(e.missing,`repo`).join(`, `))))return;let t=e.branch||e.default_branch;return Ck(e.id,t).catch(e=>e.code===424?dO((0,u.createElement)(u.Fragment,{},`This plugin has some dependencies unmet:`,e.data.map(e=>(0,u.createElement)(`li`,{key:e.repo},e.repo+`: `+e.error))),`error`):dO(e))}),xk.apply(this,arguments)}function Sk(e){return e.replace(/hfs-/,``)}function Ck(e,t){return wk.apply(this,arguments)}function wk(){return wk=p(function*(e,t){try{let n=yield yS(`download_plugin`,{id:e,branch:t,stop:!0},{timeout:!1});(yield fO(`Plugin ${e} downloaded`,{trueText:`Start`}))&&(yield vk(n.id))}catch(n){let r=!1;if(n.code===424)for(let e of n.cause)e.error===`missing`&&(vO(`Installing dependency: `+e.repo),yield Ck(e.repo),r=!0);if(r)return Ck(e,t);throw n}}),wk.apply(this,arguments)}var Tk=`onlinePluginsCache`;function Ek(){let{hideRandomPlugin:e}=VD(),[t,n]=(0,u.useState)(()=>localStorage.getItem(Tk)),r=(0,u.useMemo)(()=>{let e=CC(t||``);return(e==null?void 0:e.ts)&&Date.now()-e.ts<864e5&&$.default.shuffle(e.list)},[t]),{list:i,initializing:a}=tk(!e&&!r&&`get_online_plugins`),[o,s]=(0,u.useState)(-1),c=r==null?void 0:r[o];if((0,u.useEffect)(()=>{if(!r&&!a&&i.length){let e=JSON.stringify({ts:Date.now(),list:i});localStorage.setItem(Tk,e),n(e)}s(0)},[i,a]),(0,u.useEffect)(()=>{o>0&&!c&&vO(`No more plugins!`)},[o]),!(e||!c))return(0,u.createElement)(Lh,{sx:{display:{xs:`none`,md:`block`},float:`right`,width:`min(50%, 30em)`,ml:`1em`}},(0,u.createElement)(qh,{},(0,u.createElement)(yh,{sx:{fontWeight:`bold`,fontSize:`1.4em`}},(0,u.createElement)(yh,{sx:{color:`warning.main`,mr:1,display:`inline`}},`🎲`),`Random plugin:`),(0,u.createElement)(yh,{sx:{fontWeight:`bold`,fontSize:`1.8em`,my:1}},_k({row:c})),(0,u.createElement)(yh,{},c.description),c.preview&&(0,u.createElement)(`img`,{src:bC(c.preview)[0],style:{maxWidth:`100%`,maxHeight:`50vh`,marginTop:`1em`,border:`1px solid`,maskImage:`radial-gradient(circle at center, black 50%, transparent 100%)`}})),(0,u.createElement)(Hh,{},(0,u.createElement)(BO,{variant:`outlined`,onClick:()=>bk(c)},`Install`),(0,u.createElement)(BO,{variant:`outlined`,onClick:()=>s(e=>e+1)},`Another`),(0,u.createElement)(BO,{variant:`outlined`,onClick(){RD.hideRandomPlugin=!0}},`Hide this box`)))}U();function Dk(){var e,t,n,r,i;let a=` — `,{username:o}=VD(),{data:s,reload:c,element:l}=ek(`get_status`),{data:d}=ek(o&&`get_account`),f=ek(`get_config`,{only:[`https_port`,`cert`,`private_key`,`proxies`,`ignore_proxies`,`vfs`,`split_uploads`]}),{list:m}=tk(`get_plugins`),[h,g]=(0,u.useState)(!1),{list:_}=tk(h&&`get_plugin_updates`),[v,y]=(0,u.useState)(),[b,x]=(0,u.useState)();if(l||!s)return l;let{http:S,https:C}=s,w=!(S!=null&&S.listening)&&C!=null&&C.listening?`s`:``,T=w?C:(S==null?void 0:S.listening)&&S,E=T&&`http${w}://`+window.location.hostname+(T.port===(w?443:80)?``:`:`+T.port),D=$.default.mapValues({http:S,https:C},e=>e.busy?[`port ${e.configuredPort} already used by ${e.busy}${a}choose a `,Pk(`different port`),` or stop ${e.busy}`]:e.error),O=D&&hC(Object.entries(D).map(([e,t])=>t&&[CT(`Protocol <u>${e}</u>: `),t,(ck(t)||lk(t))&&[a,(0,u.createElement)(GO,{onClick(){uk().then(()=>iC(999)).then(f.reload).then(c)}},`make one`),` or `,a,Pk(`provide adequate files`)]])),k={onContextMenu(e){return p(function*(){if(e.preventDefault(),!s.updatePossible)return dO(`Automatic update is not supported for your installation`,`warning`);let t=yield hO(`Enter a link to the zip to install`);t&&(yield Ak(t))})()},title:s.updatePossible&&`Right-click if you want to install a zip`},A=(e=f.data)==null?void 0:e.vfs;return(0,u.createElement)(yh,{},(0,u.createElement)(Ek),(0,u.createElement)(yh,{sx:{display:`flex`,gap:2,flexDirection:`column`,alignItems:`flex-start`,height:`100%`}},mw(((t=s.alerts)==null?void 0:t.map(e=>Mk(`warning`,CT(e,{html:!1}))))||[]),O.length?mw(O.map(e=>Mk(`error`,mw(e)))):Mk(`success`,`Server is working`),A&&!((n=A.children)!=null&&n.length)&&!A.source?Mk(`warning`,`You have no shared files`,a,Nk(`add some`)):null,d!=null&&d.adminActualAccess?Mk(``,`Welcome, `+o):Mk(``,CT(`You're accessing the Admin-panel without an account because you are on localhost`),...s.anyAccountCanLoginAdmin?[]:[a,`to access from another computer, you must `,(0,u.createElement)(UO,{to:`/accounts`},CT(`create an account with *admin* permission`))]),!E&&Mk(`warning`,`Frontend unreachable: `,$.default.map(D,(e,t)=>t+` `+(e?`is in error`:`is off`)).join(`, `),!O.length&&[a,Pk(`switch http or https on`)]),vC(s.acmeRenewError,e=>e&&Mk(`warning`,e)),vC(s.blacklistedInstalledPlugins,e=>(e==null?void 0:e.length)>0&&Mk(`warning`,`Found blacklisted plugin(s): `,e.join(`, `))),vC(m==null?void 0:m.filter(e=>e.error||e.badApi).length,e=>e>0&&Mk(`warning`,`${e} plugin(s) failing`,a,(0,u.createElement)(UO,{to:`/plugins`},`check now`))),!((r=f.data)!=null&&r.split_uploads)&&Date.now()-+new Date(s.cloudflareDetected||0)<864e5&&Mk(``,NO(`Reverse-proxy#cloudflare`,`Cloudflare detected, read our guide`)),vC(Fk(f.data,s),e=>e&&Mk(`warning`,e,a,Pk(`set the number of proxies`),a,`unless you are sure and you can `,(0,u.createElement)(BO,{variant:`outlined`,size:`small`,sx:{lineHeight:`unset`},confirm:`Go on only if you know what you are doing`,onClick:()=>yS(`set_config`,{values:{ignore_proxies:!0}}).then(f.reload)},`ignore this warning`),a,NO(`Proxy-warning`,`Explanation`))),(((i=f.data)==null?void 0:i.proxies)>0||(s==null?void 0:s.proxyDetected))&&Mk(``,NO(`Reverse-proxy`,`Read our guide on proxies`)),s.frpDetected&&Mk(`warning`,`FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are`,(0,u.createElement)(`ol`,{},(0,u.createElement)(`li`,{},`configure FRP with type=http (best solution)`),(0,u.createElement)(`li`,{},CT(`configure FRP to connect to HFS <u>not</u> with localhost (safe, but you won't see users' IPs)`)),(0,u.createElement)(`li`,{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),Mk(``,CT(`This is the *Admin-panel*, where you manage your server. Access your files on the [Front-end](../..).`)),Mk(``,NO(``,`See the documentation`),` and `,(0,u.createElement)(ey,{target:`support`,href:BS+`discussions`},`get support`)),!v&&vC(s.autoCheckUpdateResult,e=>(e==null?void 0:e.isNewer)&&(0,u.createElement)(Ok,{info:e,fromAuto:!0,disabled:!s.updatePossible,bodyCollapsed:!0,title:`An update has been found`})),_.length>0&&Mk(`success`,`Updates available for plugin(s): `+_.map(e=>e.id).join(`, `)),(0,u.createElement)(mk,{gridProps:{sx:{mt:1,display:`flex`,columnGap:1,alignitems:`center`,"&>div.MuiGrid-root":{width:`auto`,px:.5,py:0},".MuiCheckbox-root":{pl:`2px`}}},saveOnChange:!0,form:{fields:[s.updatePossible===`local`?(0,u.createElement)(BO,{icon:nk,onClick:()=>Ak()},`Update from local file`):!v&&(0,u.createElement)(BO,H({icon:nk,onClick(){return yS(`wait_project_info`).then(c),g(!0),yS(`check_update`).then(e=>y(e.options),dO)}},k),`Check for updates`),{k:`auto_check_update`,comp:wE,label:`Auto check updates daily`},{k:`update_to_beta`,comp:wE,label:`Include beta versions`}]}}),v&&vC($.default.find(v,`isNewer`),e=>!v.length||!s.updatePossible&&!e?Mk(``,`No update available`):e&&!s.updatePossible?Mk(`success`,`Version ${e.name} available`):(0,u.createElement)(MO,{vert:!0},v.map(e=>(0,u.createElement)(Ok,{info:e,key:e.name})))),(0,u.createElement)(MO,{flexWrap:`wrap`},!b&&s.updatePossible&&s.previousVersionAvailable&&(0,u.createElement)(BO,{icon:ok,onClick:()=>Ak(`previous`)},`Reinstall previous version`),s.updatePossible?b?(0,u.createElement)(MO,{vert:!0},b.map(e=>(0,u.createElement)(Ok,{info:e,key:e.name,bodyCollapsed:!0}))):(0,u.createElement)(BO,H({icon:ik,onClick:ee},k),`Get another version`):Mk(``,(0,u.createElement)(ey,{href:BS+`releases/`,target:`repo`},`All releases`))),(0,u.createElement)(nO),Date.now()-Number(new Date(s.started))>36e5&&(0,u.createElement)(ey,{title:`Donate`,target:`donate`,style:{textDecoration:`none`,position:`fixed`,bottom:0,right:4,fontSize:`large`},href:`https://www.paypal.com/donate/?hosted_button_id=HC8MB4GRVU5T2`},`❤️`)));function ee(){return j.apply(this,arguments)}function j(){return j=p(function*(){return yS(`get_other_versions`).then(e=>x(e.options),dO)}),j.apply(this,arguments)}}function Ok({info:e,title:t,bodyCollapsed:n,fromAuto:r,disabled:i}){let[a,o]=(0,u.useState)(n);return(0,u.createElement)(MO,{alignItems:`flex-start`,flexWrap:`wrap`},(0,u.createElement)(Lh,{className:`release`},(0,u.createElement)(qh,{},(0,u.createElement)(MO,{},t&&(0,u.createElement)(yh,{sx:{fontSize:`larger`,mb:1}},t),(0,u.createElement)(BO,H(H({icon:nk,disabled:i},!e.isNewer&&e.prerelease&&{color:`warning`,variant:`outlined`}),{},{onClick:()=>Ak(r?void 0:e.tag_name)}),nC(`Install `,e.name,e.isNewer?``:` (older)`)),(0,u.createElement)(ey,{href:BS+`releases/tag/`+e.tag_name,target:`repo`},(0,u.createElement)(ak))),a?(0,u.createElement)(GO,{sx:{display:`block`,mt:1},onClick(){o(!1)}},`See details`):(0,u.createElement)(yh,{sx:{mt:1}},kk(e.body)))))}function kk(e){return CT(e,{onText:e=>wT(e,RegExp(`(?<=^|\\W)#(\\d+)\\b|(https:.*\\S+)`,`g`),e=>e[1]?(0,u.createElement)(ey,{href:BS+`issues/`+e[1],target:`_blank`},(0,u.createElement)(ak,{fontSize:`small`})):(0,u.createElement)(ey,{href:e[2],target:`_blank`},e[2]))})}function Ak(e){return jk.apply(this,arguments)}function jk(){return jk=p(function*(e){if(!(yield fO(`Installation may take less than a minute, depending on the speed of your server`)))return;vO(`Downloading`);let t=yield yS(`update`,{tag:e},{timeout:600}).then(()=>0,e=>e);if(t)return dO(t);vO(`Restarting`);let n=Date.now(),r;for(;yield yS(`NONE`).then(()=>0,e=>!e.code);)!r&&Date.now()-n>15e3&&(r=dO(`This is taking too long, please check your server`,`warning`)),yield iC(500);r==null||r.close(),zE(RD,`loginRequired`,()=>RD.loginRequired=!1),yield dO(`Procedure complete`,`success`),window.location.reload()}),jk.apply(this,arguments)}function Mk(e,...t){return(0,u.createElement)(yh,{sx:{fontSize:`x-large`,color:t=>{var n;return e&&((n=t.palette[e])==null?void 0:n.main)}}},(0,u.createElement)({success:rk,info:LE,"":LE,warning:RE,error:FE}[e],{sx:{mr:1,color:e?void 0:`primary.main`}}),(0,u.createElement)(`span`,{style:[`warning`,`error`].includes(e)?{animation:`.5s blink 2`}:void 0},...t))}function Nk(e=`File System page`){return(0,u.createElement)(UO,{to:`/fs`},e)}function Pk(e=`Options page`){return(0,u.createElement)(UO,{to:`/options`},e)}function Fk(e,t){return t&&e&&!e.ignore_proxies&&(!e.proxies&&t.proxyDetected?`A proxy was detected but none is configured`:e.proxies&&!t.proxyDetected&&Date.now()-+new Date(t.started)>864e5?`Proxy count is set to ${e.proxies} but none was detected recently. Consider setting it to zero`:``)}var Ik=Hc((0,K.jsx)(`path`,{d:`M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83`}),`PowerSettingsNew`);function Lk(){let{element:e}=ek(`get_config`,{only:[]}),{username:t}=VD();return e||(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,alignItems:`flex-start`,gap:2}},t?(0,u.createElement)(u.Fragment,{},`You are logged in as: `+t,(0,u.createElement)(BO,{icon:aS,size:`large`,onClick:()=>yS(`logout`).catch(e=>e.code!==401&&dO(e))},`I want to logout`)):(0,u.createElement)(fd,{severity:`info`},`You are not logged in, because authentication is not required on localhost`),(0,u.createElement)(BO,{icon:Ik,size:`large`,color:`warning`,confirm:`Stopping the server, this interface won't respond anymore`,onClick(){return p(function*(){yield yS(`quit`),yield dO(`Good-bye`,`success`),location.reload()})()}},`Quit HFS`))}var Rk=(0,u.lazy)(()=>_(()=>import(`./InternetPage-BICQDG_K.js`),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11]))),zk=(0,u.lazy)(()=>_(()=>import(`./OptionsPage-BvXLA_R0.js`),__vite__mapDeps([12,1,4,5,6,7,8,9,10,13,14,15,16,17,11,18]))),Bk=(0,u.lazy)(()=>_(()=>import(`./FileField-B0WhrAuk.js`).then(e=>e.n),__vite__mapDeps([13,1,14,8,15,16,10,17,11,6]))),Vk=(0,u.lazy)(()=>_(()=>import(`./AccountsPage-Cvi9DSc1.js`),__vite__mapDeps([19,1,9,10,7,14,8,6]))),Hk=(0,u.lazy)(()=>_(()=>import(`./MonitorPage-CH06c8aW.js`),__vite__mapDeps([20,1,5,6,7,8,21,17,18]))),Uk=(0,u.lazy)(()=>_(()=>import(`./LogsPage-DQTrf5GE.js`),__vite__mapDeps([21,1,5,6,7,8,17,18]))),Wk=(0,u.lazy)(()=>_(()=>import(`./LangPage-D42UPSxC.js`),__vite__mapDeps([22,1,5,6,7,8]))),Gk=(0,u.lazy)(()=>_(()=>import(`./PluginsPage-CyaVJZkM.js`),__vite__mapDeps([23,1,4,5,6,7,8,9,10,13,14,15,16,17,11,18]))),Kk=(0,u.lazy)(()=>_(()=>import(`./CustomHtmlPage-DaEXsEcQ.js`),__vite__mapDeps([24,1,15,16]))),qk=[{path:`/`,icon:iS,label:`Home`,comp:Dk},{path:`/fs`,icon:tS,label:`Shared files`,comp:Bk},{path:`/accounts`,icon:oS,comp:Vk},{path:`/options`,icon:lS,comp:zk,subRoutes:!0},{path:`/internet`,icon:cS,comp:Rk},{path:`/monitoring`,icon:sS,comp:Hk,noPaddingOnMobile:!0},{path:`/logs`,icon:rS,comp:Uk,noPaddingOnMobile:!0,subRoutes:!0},{path:`/language`,icon:uS,comp:Wk},{path:`/plugins`,icon:nS,comp:Gk,noPaddingOnMobile:!0,subRoutes:!0},{path:`/html`,icon:dS,label:`Custom HTML`,comp:Kk},{path:`/logout`,icon:aS,comp:Lk}];function Jk({onSelect:e,itemTitle:t}){let{VERSION:n}=RT(),r=`hfs-logo.svg`,i=lw().height<700,a=Ce()[0];return(0,u.createElement)(yh,{sx:{display:`flex`,flexDirection:`column`,bgcolor:`primary.main`,minHeight:`100%`}},(0,u.createElement)(oy,{sx:{pr:1,py:0,color:`primary.contrastText`,height:`100vh`,boxSizing:`border-box`,overflowY:`auto`,position:`sticky`,top:0,display:`flex`,flexDirection:`column`,"&>a":{flex:`0`}}},(0,u.createElement)(yh,{id:`hfs-name`,sx:{display:`flex`,px:2,py:.5,gap:2,alignItems:`center`}},(0,u.createElement)(yh,{sx:{color:`primary.contrastText`,fontSize:`min(3rem, max(5vw, 4vh))`,cursor:`pointer`},onClick(){return p(function*(){(yield fO(`Open HFS website?`))&&window.open(zS)})()}},`HFS`),(0,u.createElement)(yh,{sx:{fontSize:`small`},className:jS},wT(n||``,/-/,()=>(0,u.createElement)(`br`))),i&&(0,u.createElement)(`img`,{src:r,style:{height:`2.5em`}})),qk.map((n,r)=>QO(t(r),Yk(n)+` `+t(r),(0,u.createElement)(py,{component:ke,href:n.path,onClick:e,selected:Xk(n,a),sx:{"&.Mui-selected":{"&,&:hover":{bgcolor:`primary.dark`,textDecoration:`underline`}}},children:void 0},n.icon&&(0,u.createElement)(yy,{sx:{color:`primary.contrastText`,minWidth:48}},(0,u.createElement)(n.icon)),(0,u.createElement)(Ty,{sx:{whiteSpace:`nowrap`},primary:Yk(n)})),{key:n.path,placement:`right`})),!i&&(0,u.createElement)(yh,{id:`hfs-logo`,sx:{flex:1,opacity:.7,background:`url(${r}) no-repeat bottom`,backgroundSize:`contain`,margin:2}})))}function Yk(e){var t;return e&&((t=e.label)==null?$.default.capitalize(e.path.slice(1)):t)}function Xk(e,t){return t===e.path||t.startsWith(e.path+`/`)}U();function Zk(e,t,n,r,i){return Qk.apply(this,arguments)}function Qk(){return Qk=p(function*(e,t,n,r,i){let{pubKey:a,salt:o}=yield r(`loginSrp1`,{username:t});if(!o)throw Error(`salt`);let s=yield $k(e,t,n,o,a),c=yield r(`loginSrp2`,H({pubKey:String(s.A),proof:String(s.M1)},i));return yield s.step3(BigInt(c.proof)).catch(()=>Promise.reject(`trust`)),c}),Qk.apply(this,arguments)}function $k(e,t,n,r,i){return eA.apply(this,arguments)}function eA(){return eA=p(function*(e,t,n,r,i){let a=new e.SRPRoutines(new e.SRPParameters);return yield(yield new e.SRPClientSession(a).step1(t,n)).step2(BigInt(r),BigInt(i))}),eA.apply(this,arguments)}U();function tA({children:e}){let{loginRequired:t}=VD();return t===403?(0,u.createElement)(WO,{},(0,u.createElement)(fd,{severity:`error`},`Admin-panel only for localhost`),(0,u.createElement)(yh,{sx:{mt:2,fontSize:`small`}},`because no admin account was configured`)):t?(0,u.createElement)(nA):(0,u.createElement)(u.Fragment,{},e)}function nA(){var e;let[t,n]=(0,u.useState)({username:``,password:``,[AS]:!1}),[r,i]=(0,u.useState)(``),a=(0,u.useRef)(),o=(e=a.current)==null?void 0:e.querySelector(`input[value=""]`);return(0,u.useEffect)(()=>{var e;return o==null||(e=o.focus)==null?void 0:e.call(o)},[o]),(0,u.createElement)(WO,{},(0,u.createElement)(kE,{formRef:a,values:t,sx:{m:2,maxWidth:`25em`},set(e,t){n(n=>H(H({},n),{},{[t]:e}))},fields:[{k:`username`,autoComplete:`username`,autoFocus:!0,required:!0},{k:`password`,type:`password`,autoComplete:`current-password`,required:!0},{k:AS,comp:CE,label:`Allow IP change during this session`}],addToBar:[r&&(0,u.createElement)(fd,{severity:`error`,sx:{flex:1}},r)],saveOnEnter:!0,save:{children:`Enter`,startIcon:null,onClick(){return p(function*(){try{i(``),yield rA(t.username,t.password,{[AS]:t[AS]})}catch(e){i(String(e))}})()}}}))}function rA(e,t,n){return iA.apply(this,arguments)}function iA(){return iA=p(function*(e,t,n){let r=yield XT(Zk)(e,t,yS,n).catch(e=>{throw(e==null?void 0:e.code)===401?e.message||`Wrong username or password`:e===`trust`?`Login aborted: server identity cannot be trusted`:(e==null?void 0:e.name)===`AbortError`?`Server didn't respond`:(e==null?void 0:e.message)||`Unknown error`});if(!r.isAdmin)throw`This account has no Admin access`;RD.loginRequired=!1,aA(r)}),iA.apply(this,arguments)}var aA=BT(RD),oA=Hc((0,K.jsx)(`path`,{d:`M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z`}),`Menu`);function sA(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var cA=[`localeText`],lA=u.createContext(null),uA=function(e){var t;let{localeText:n}=e,r=ll(e,cA),{adapter:i,localeText:a}=(t=u.useContext(lA))==null?{adapter:void 0,localeText:void 0}:t,{children:o,dateAdapter:s,dateFormats:c,dateLibInstance:l,adapterLocale:d,localeText:f}=bc({props:r,name:`MuiLocalizationProvider`}),p=u.useMemo(()=>Je({},f,a,n),[f,a,n]),m=u.useMemo(()=>{if(!s)return i||null;let e=new s({locale:d,formats:c,instance:l});if(!e.isMUIAdapter)throw Error(sA(143));return e},[s,d,c,l,i]),h=u.useMemo(()=>m?{minDate:m.date(`1900-01-01T00:00:00.000`),maxDate:m.date(`2099-12-31T00:00:00.000`)}:null,[m]),g=u.useMemo(()=>({adapter:m,defaultDates:h,localeText:p}),[h,m,p]);return(0,K.jsx)(lA.Provider,{value:g,children:o})},dA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),fA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),pA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*e}],SS:[n,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s(`seconds`)],ss:[r,s(`seconds`)],m:[r,s(`minutes`)],mm:[r,s(`minutes`)],H:[r,s(`hours`)],h:[r,s(`hours`)],HH:[r,s(`hours`)],hh:[r,s(`hours`)],D:[r,s(`day`)],DD:[n,s(`day`)],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],M:[r,s(`month`)],MM:[n,s(`month`)],MMM:[i,function(e){var t=l(`months`),n=(l(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[i,function(e){var t=l(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,s(`year`)],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s(`year`)],Z:c,ZZ:c};function f(n){for(var r=n,i=a&&a.formats,o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=d[l],f=u&&u[0],p=u&&u[1];o[c]=p?{regex:f,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if(typeof i==`string`)r+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if(typeof s==`string`){var c=!0===o[2],l=!0===o[3],u=c||l,d=o[2];l&&(d=o[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=o||(i||a?1:p.getDate()),h=i||p.getFullYear(),g=0;i&&!a||(g=a>0?a-1:p.getMonth());var _=s||0,v=c||0,y=l||0,b=u||0;return d?new Date(Date.UTC(h,g,m,_,v,y,b+60*d.offset*1e3)):n?new Date(Date.UTC(h,g,m,_,v,y,b)):new Date(h,g,m,_,v,y,b)}catch(e){return new Date(``)}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),a={}}else if(s instanceof Array)for(var p=s.length,m=1;m<=p;m+=1){o[1]=s[m-1];var h=n.apply(this,o);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),mA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),hA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i=i||`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),gA=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),_A=e(dA(),1),vA=e(fA(),1),yA=e(pA(),1),bA=e(mA(),1),xA=e(hA(),1),SA=e(gA(),1);de(),_A.default.extend(bA.default),_A.default.extend(vA.default),_A.default.extend(xA.default),_A.default.extend(SA.default);var CA={YY:`year`,YYYY:{sectionType:`year`,contentType:`digit`,maxLength:4},M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMM:{sectionType:`month`,contentType:`letter`},MMMM:{sectionType:`month`,contentType:`letter`},D:{sectionType:`day`,contentType:`digit`,maxLength:2},DD:`day`,Do:{sectionType:`day`,contentType:`digit-with-letter`},d:{sectionType:`weekDay`,contentType:`digit`,maxLength:2},dd:{sectionType:`weekDay`,contentType:`letter`},ddd:{sectionType:`weekDay`,contentType:`letter`},dddd:{sectionType:`weekDay`,contentType:`letter`},A:`meridiem`,a:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},wA={year:`YYYY`,month:`MMMM`,monthShort:`MMM`,dayOfMonth:`D`,dayOfMonthFull:`Do`,weekday:`dddd`,weekdayShort:`dd`,hours24h:`HH`,hours12h:`hh`,meridiem:`A`,minutes:`mm`,seconds:`ss`,fullDate:`ll`,keyboardDate:`L`,shortDate:`MMM D`,normalDate:`D MMMM`,normalDateWithWeekday:`ddd, MMM D`,fullTime12h:`hh:mm A`,fullTime24h:`HH:mm`,keyboardDateTime12h:`L hh:mm A`,keyboardDateTime24h:`L HH:mm`};function TA(){throw Error(sA(138))}function EA(){throw Error(sA(139))}var DA=class{constructor({locale:e,formats:t}={}){V(this,`isMUIAdapter`,!0),V(this,`isTimezoneCompatible`,!0),V(this,`lib`,`dayjs`),V(this,`escapedCharacters`,{start:`[`,end:`]`}),V(this,`formatTokenMap`,CA),V(this,`setLocaleToValue`,e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)}),V(this,`hasUTCPlugin`,()=>_A.default.utc!==void 0),V(this,`hasTimezonePlugin`,()=>_A.default.tz!==void 0),V(this,`isSame`,(e,t,n)=>{let r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)}),V(this,`cleanTimezone`,e=>{switch(e){case`default`:return;case`system`:return _A.default.tz.guess();default:return e}}),V(this,`createSystemDate`,e=>this.setLocaleToValue((0,_A.default)(e))),V(this,`createUTCDate`,e=>(this.hasUTCPlugin()||TA(),this.setLocaleToValue(_A.default.utc(e)))),V(this,`createTZDate`,(e,t)=>{this.hasUTCPlugin()||TA(),this.hasTimezonePlugin()||EA();let n=e!==void 0&&!e.endsWith(`Z`);return this.setLocaleToValue((0,_A.default)(e).tz(this.cleanTimezone(t),n))}),V(this,`getLocaleFormats`,()=>{let e=_A.default.Ls,t=e[this.locale||`en`];return t===void 0&&(t=e.en),t.formats}),V(this,`adjustOffset`,e=>{if(!this.hasTimezonePlugin())return e;let t=this.getTimezone(e);if(t!==`UTC`){var n;let r=e.tz(this.cleanTimezone(t),!0);if(r.$offset===((n=e.$offset)==null?0:n))return e;e.$offset=r.$offset}return e}),V(this,`date`,(e,t=`default`)=>e===null?null:t===`UTC`?this.createUTCDate(e):t===`system`||t==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t)),V(this,`getInvalidDate`,()=>(0,_A.default)(new Date(`Invalid date`))),V(this,`getTimezone`,e=>{if(this.hasTimezonePlugin()){var t;let n=(t=e.$x)==null?void 0:t.$timezone;if(n)return n}return this.hasUTCPlugin()&&e.isUTC()?`UTC`:`system`}),V(this,`setTimezone`,(e,t)=>{if(this.getTimezone(e)===t)return e;if(t===`UTC`)return this.hasUTCPlugin()||TA(),e.utc();if(t===`system`)return e.local();if(!this.hasTimezonePlugin()){if(t==="default")return e;EA()}return this.setLocaleToValue(_A.default.tz(e,this.cleanTimezone(t)))}),V(this,`toJsDate`,e=>e.toDate()),V(this,`parse`,(e,t)=>e===``?null:(0,_A.default)(e,t,this.locale,!0)),V(this,`getCurrentLocaleCode`,()=>this.locale||`en`),V(this,`is12HourCycleInCurrentLocale`,()=>/A|a/.test(this.getLocaleFormats().LT||``)),V(this,`expandFormat`,e=>{let t=this.getLocaleFormats(),n=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1));return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,i)=>{let a=i&&i.toUpperCase();return r||t[i]||n(t[a])})}),V(this,`isValid`,e=>e==null?!1:e.isValid()),V(this,`format`,(e,t)=>this.formatByString(e,this.formats[t])),V(this,`formatByString`,(e,t)=>this.setLocaleToValue(e).format(t)),V(this,`formatNumber`,e=>e),V(this,`isEqual`,(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:e.toDate().getTime()===t.toDate().getTime()),V(this,`isSameYear`,(e,t)=>this.isSame(e,t,`YYYY`)),V(this,`isSameMonth`,(e,t)=>this.isSame(e,t,`YYYY-MM`)),V(this,`isSameDay`,(e,t)=>this.isSame(e,t,`YYYY-MM-DD`)),V(this,`isSameHour`,(e,t)=>e.isSame(t,`hour`)),V(this,`isAfter`,(e,t)=>e>t),V(this,`isAfterYear`,(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,`year`)),V(this,`isAfterDay`,(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,`day`)),V(this,`isBefore`,(e,t)=>e<t),V(this,`isBeforeYear`,(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,`year`)),V(this,`isBeforeDay`,(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,`day`)),V(this,`isWithinRange`,(e,[t,n])=>e>=t&&e<=n),V(this,`startOfYear`,e=>this.adjustOffset(e.startOf(`year`))),V(this,`startOfMonth`,e=>this.adjustOffset(e.startOf(`month`))),V(this,`startOfWeek`,e=>this.adjustOffset(this.setLocaleToValue(e).startOf(`week`))),V(this,`startOfDay`,e=>this.adjustOffset(e.startOf(`day`))),V(this,`endOfYear`,e=>this.adjustOffset(e.endOf(`year`))),V(this,`endOfMonth`,e=>this.adjustOffset(e.endOf(`month`))),V(this,`endOfWeek`,e=>this.adjustOffset(this.setLocaleToValue(e).endOf(`week`))),V(this,`endOfDay`,e=>this.adjustOffset(e.endOf(`day`))),V(this,`addYears`,(e,t)=>this.adjustOffset(e.add(t,`year`))),V(this,`addMonths`,(e,t)=>this.adjustOffset(e.add(t,`month`))),V(this,`addWeeks`,(e,t)=>this.adjustOffset(e.add(t,`week`))),V(this,`addDays`,(e,t)=>this.adjustOffset(e.add(t,`day`))),V(this,`addHours`,(e,t)=>this.adjustOffset(e.add(t,`hour`))),V(this,`addMinutes`,(e,t)=>this.adjustOffset(e.add(t,`minute`))),V(this,`addSeconds`,(e,t)=>this.adjustOffset(e.add(t,`second`))),V(this,`getYear`,e=>e.year()),V(this,`getMonth`,e=>e.month()),V(this,`getDate`,e=>e.date()),V(this,`getHours`,e=>e.hour()),V(this,`getMinutes`,e=>e.minute()),V(this,`getSeconds`,e=>e.second()),V(this,`getMilliseconds`,e=>e.millisecond()),V(this,`setYear`,(e,t)=>this.adjustOffset(e.set(`year`,t))),V(this,`setMonth`,(e,t)=>this.adjustOffset(e.set(`month`,t))),V(this,`setDate`,(e,t)=>this.adjustOffset(e.set(`date`,t))),V(this,`setHours`,(e,t)=>this.adjustOffset(e.set(`hour`,t))),V(this,`setMinutes`,(e,t)=>this.adjustOffset(e.set(`minute`,t))),V(this,`setSeconds`,(e,t)=>this.adjustOffset(e.set(`second`,t))),V(this,`setMilliseconds`,(e,t)=>this.adjustOffset(e.set(`millisecond`,t))),V(this,`getDaysInMonth`,e=>e.daysInMonth()),V(this,`getWeekArray`,e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;i<n;){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a}),V(this,`getWeekNumber`,e=>e.week()),V(this,`getYearRange`,([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}),this.locale=e,this.formats=Je({},wA,t),_A.default.extend(yA.default)}getDayOfWeek(e){return e.day()+1}},OA=Object.assign({"../../node_modules/dayjs/esm/locale/af.js":()=>_(()=>import(`./af-B1Gi_bpo.js`),__vite__mapDeps([25,26,27,1])),"../../node_modules/dayjs/esm/locale/am.js":()=>_(()=>import(`./am-B-dZnhsM.js`),__vite__mapDeps([28,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-dz.js":()=>_(()=>import(`./ar-dz-CxlYiKtP.js`),__vite__mapDeps([29,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-iq.js":()=>_(()=>import(`./ar-iq-y4_Puo4B.js`),__vite__mapDeps([30,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-kw.js":()=>_(()=>import(`./ar-kw-DTOZ0VC7.js`),__vite__mapDeps([31,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-ly.js":()=>_(()=>import(`./ar-ly-lPV9gApv.js`),__vite__mapDeps([32,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-ma.js":()=>_(()=>import(`./ar-ma-DZqLSpeB.js`),__vite__mapDeps([33,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-sa.js":()=>_(()=>import(`./ar-sa-v-5vsIOR.js`),__vite__mapDeps([34,26,27,1])),"../../node_modules/dayjs/esm/locale/ar-tn.js":()=>_(()=>import(`./ar-tn-a4q8lhXy.js`),__vite__mapDeps([35,26,27,1])),"../../node_modules/dayjs/esm/locale/ar.js":()=>_(()=>import(`./ar-DsQGp6kZ.js`),__vite__mapDeps([36,26,27,1])),"../../node_modules/dayjs/esm/locale/az.js":()=>_(()=>import(`./az-Cj4yq-j-.js`),__vite__mapDeps([37,26,27,1])),"../../node_modules/dayjs/esm/locale/be.js":()=>_(()=>import(`./be-B-3QlFM8.js`),__vite__mapDeps([38,26,27,1])),"../../node_modules/dayjs/esm/locale/bg.js":()=>_(()=>import(`./bg-A8-93xdK.js`),__vite__mapDeps([39,26,27,1])),"../../node_modules/dayjs/esm/locale/bi.js":()=>_(()=>import(`./bi-bwwEWGG2.js`),__vite__mapDeps([40,26,27,1])),"../../node_modules/dayjs/esm/locale/bm.js":()=>_(()=>import(`./bm-DpLmtYXC.js`),__vite__mapDeps([41,26,27,1])),"../../node_modules/dayjs/esm/locale/bn-bd.js":()=>_(()=>import(`./bn-bd-DukmY_R5.js`),__vite__mapDeps([42,26,27,1])),"../../node_modules/dayjs/esm/locale/bn.js":()=>_(()=>import(`./bn-DPL_BgLw.js`),__vite__mapDeps([43,26,27,1])),"../../node_modules/dayjs/esm/locale/bo.js":()=>_(()=>import(`./bo-68KDEKGI.js`),__vite__mapDeps([44,26,27,1])),"../../node_modules/dayjs/esm/locale/br.js":()=>_(()=>import(`./br-gA86uwqY.js`),__vite__mapDeps([45,26,27,1])),"../../node_modules/dayjs/esm/locale/bs.js":()=>_(()=>import(`./bs-SfthSp42.js`),__vite__mapDeps([46,26,27,1])),"../../node_modules/dayjs/esm/locale/ca.js":()=>_(()=>import(`./ca-8qUtZKFe.js`),__vite__mapDeps([47,26,27,1])),"../../node_modules/dayjs/esm/locale/cs.js":()=>_(()=>import(`./cs-CTHcqPCX.js`),__vite__mapDeps([48,26,27,1])),"../../node_modules/dayjs/esm/locale/cv.js":()=>_(()=>import(`./cv-BhBW7hcO.js`),__vite__mapDeps([49,26,27,1])),"../../node_modules/dayjs/esm/locale/cy.js":()=>_(()=>import(`./cy-BYTS4PNY.js`),__vite__mapDeps([50,26,27,1])),"../../node_modules/dayjs/esm/locale/da.js":()=>_(()=>import(`./da-BiwfOrRd.js`),__vite__mapDeps([51,26,27,1])),"../../node_modules/dayjs/esm/locale/de-at.js":()=>_(()=>import(`./de-at-C7zUXXVL.js`),__vite__mapDeps([52,26,27,1])),"../../node_modules/dayjs/esm/locale/de-ch.js":()=>_(()=>import(`./de-ch-BVHosAzt.js`),__vite__mapDeps([53,26,27,1])),"../../node_modules/dayjs/esm/locale/de.js":()=>_(()=>import(`./de-BFqyDxvo.js`),__vite__mapDeps([54,26,27,1])),"../../node_modules/dayjs/esm/locale/dv.js":()=>_(()=>import(`./dv-dvig99nB.js`),__vite__mapDeps([55,26,27,1])),"../../node_modules/dayjs/esm/locale/el.js":()=>_(()=>import(`./el-BtJcYjoT.js`),__vite__mapDeps([56,26,27,1])),"../../node_modules/dayjs/esm/locale/en-au.js":()=>_(()=>import(`./en-au-CWzJ565h.js`),__vite__mapDeps([57,26,27,1])),"../../node_modules/dayjs/esm/locale/en-ca.js":()=>_(()=>import(`./en-ca-nou5bZ6q.js`),__vite__mapDeps([58,26,27,1])),"../../node_modules/dayjs/esm/locale/en-gb.js":()=>_(()=>import(`./en-gb-kl3giCnh.js`),__vite__mapDeps([59,26,27,1])),"../../node_modules/dayjs/esm/locale/en-ie.js":()=>_(()=>import(`./en-ie-C55e3apX.js`),__vite__mapDeps([60,26,27,1])),"../../node_modules/dayjs/esm/locale/en-il.js":()=>_(()=>import(`./en-il-HYabE6j7.js`),__vite__mapDeps([61,26,27,1])),"../../node_modules/dayjs/esm/locale/en-in.js":()=>_(()=>import(`./en-in-Bri93cNM.js`),__vite__mapDeps([62,26,27,1])),"../../node_modules/dayjs/esm/locale/en-nz.js":()=>_(()=>import(`./en-nz-BqhpzeuX.js`),__vite__mapDeps([63,26,27,1])),"../../node_modules/dayjs/esm/locale/en-sg.js":()=>_(()=>import(`./en-sg-q8xv-C8V.js`),__vite__mapDeps([64,26,27,1])),"../../node_modules/dayjs/esm/locale/en-tt.js":()=>_(()=>import(`./en-tt-BqzQXPA5.js`),__vite__mapDeps([65,26,27,1])),"../../node_modules/dayjs/esm/locale/en.js":()=>_(()=>import(`./en-B26lXzkx.js`).then(e=>e.n),__vite__mapDeps([27,1])),"../../node_modules/dayjs/esm/locale/eo.js":()=>_(()=>import(`./eo-5Y962E4S.js`),__vite__mapDeps([66,26,27,1])),"../../node_modules/dayjs/esm/locale/es-do.js":()=>_(()=>import(`./es-do-Diob7juh.js`),__vite__mapDeps([67,26,27,1])),"../../node_modules/dayjs/esm/locale/es-mx.js":()=>_(()=>import(`./es-mx-miy7RFDh.js`),__vite__mapDeps([68,26,27,1])),"../../node_modules/dayjs/esm/locale/es-pr.js":()=>_(()=>import(`./es-pr-CZa5Iw2n.js`),__vite__mapDeps([69,26,27,1])),"../../node_modules/dayjs/esm/locale/es-us.js":()=>_(()=>import(`./es-us-BX03CBQf.js`),__vite__mapDeps([70,26,27,1])),"../../node_modules/dayjs/esm/locale/es.js":()=>_(()=>import(`./es-DOQ7swrW.js`),__vite__mapDeps([71,26,27,1])),"../../node_modules/dayjs/esm/locale/et.js":()=>_(()=>import(`./et-DGWOmMlC.js`),__vite__mapDeps([72,26,27,1])),"../../node_modules/dayjs/esm/locale/eu.js":()=>_(()=>import(`./eu-D1Qj8RMh.js`),__vite__mapDeps([73,26,27,1])),"../../node_modules/dayjs/esm/locale/fa.js":()=>_(()=>import(`./fa--TfwKnl9.js`),__vite__mapDeps([74,26,27,1])),"../../node_modules/dayjs/esm/locale/fi.js":()=>_(()=>import(`./fi-Dcbkv925.js`),__vite__mapDeps([75,26,27,1])),"../../node_modules/dayjs/esm/locale/fo.js":()=>_(()=>import(`./fo-BPGX_WF4.js`),__vite__mapDeps([76,26,27,1])),"../../node_modules/dayjs/esm/locale/fr-ca.js":()=>_(()=>import(`./fr-ca-BsNs3KIJ.js`),__vite__mapDeps([77,26,27,1])),"../../node_modules/dayjs/esm/locale/fr-ch.js":()=>_(()=>import(`./fr-ch-BBmdtvlB.js`),__vite__mapDeps([78,26,27,1])),"../../node_modules/dayjs/esm/locale/fr.js":()=>_(()=>import(`./fr-CNsDHzNh.js`),__vite__mapDeps([79,26,27,1])),"../../node_modules/dayjs/esm/locale/fy.js":()=>_(()=>import(`./fy-q3UE-mqp.js`),__vite__mapDeps([80,26,27,1])),"../../node_modules/dayjs/esm/locale/ga.js":()=>_(()=>import(`./ga-C-DOgnYh.js`),__vite__mapDeps([81,26,27,1])),"../../node_modules/dayjs/esm/locale/gd.js":()=>_(()=>import(`./gd-mLMfry_l.js`),__vite__mapDeps([82,26,27,1])),"../../node_modules/dayjs/esm/locale/gl.js":()=>_(()=>import(`./gl-CO8Bj9I_.js`),__vite__mapDeps([83,26,27,1])),"../../node_modules/dayjs/esm/locale/gom-latn.js":()=>_(()=>import(`./gom-latn-myglMmHV.js`),__vite__mapDeps([84,26,27,1])),"../../node_modules/dayjs/esm/locale/gu.js":()=>_(()=>import(`./gu-Bdz1OpMU.js`),__vite__mapDeps([85,26,27,1])),"../../node_modules/dayjs/esm/locale/he.js":()=>_(()=>import(`./he-C4lqk2AA.js`),__vite__mapDeps([86,26,27,1])),"../../node_modules/dayjs/esm/locale/hi.js":()=>_(()=>import(`./hi-h0Byc_UN.js`),__vite__mapDeps([87,26,27,1])),"../../node_modules/dayjs/esm/locale/hr.js":()=>_(()=>import(`./hr-CZV7Za1n.js`),__vite__mapDeps([88,26,27,1])),"../../node_modules/dayjs/esm/locale/ht.js":()=>_(()=>import(`./ht-Dg2blNvl.js`),__vite__mapDeps([89,26,27,1])),"../../node_modules/dayjs/esm/locale/hu.js":()=>_(()=>import(`./hu-DbOVhd9K.js`),__vite__mapDeps([90,26,27,1])),"../../node_modules/dayjs/esm/locale/hy-am.js":()=>_(()=>import(`./hy-am-E48Q7kWE.js`),__vite__mapDeps([91,26,27,1])),"../../node_modules/dayjs/esm/locale/id.js":()=>_(()=>import(`./id-Cd4yWevW.js`),__vite__mapDeps([92,26,27,1])),"../../node_modules/dayjs/esm/locale/is.js":()=>_(()=>import(`./is-BJZYSfrA.js`),__vite__mapDeps([93,26,27,1])),"../../node_modules/dayjs/esm/locale/it-ch.js":()=>_(()=>import(`./it-ch-BkLqxaff.js`),__vite__mapDeps([94,26,27,1])),"../../node_modules/dayjs/esm/locale/it.js":()=>_(()=>import(`./it-BRaqqFz4.js`),__vite__mapDeps([95,26,27,1])),"../../node_modules/dayjs/esm/locale/ja.js":()=>_(()=>import(`./ja-X_I-25cD.js`),__vite__mapDeps([96,26,27,1])),"../../node_modules/dayjs/esm/locale/jv.js":()=>_(()=>import(`./jv-BBBx3R3v.js`),__vite__mapDeps([97,26,27,1])),"../../node_modules/dayjs/esm/locale/ka.js":()=>_(()=>import(`./ka-D9Yrujqk.js`),__vite__mapDeps([98,26,27,1])),"../../node_modules/dayjs/esm/locale/kk.js":()=>_(()=>import(`./kk-Bz450_o8.js`),__vite__mapDeps([99,26,27,1])),"../../node_modules/dayjs/esm/locale/km.js":()=>_(()=>import(`./km-CKOAqvHM.js`),__vite__mapDeps([100,26,27,1])),"../../node_modules/dayjs/esm/locale/kn.js":()=>_(()=>import(`./kn-k2xTBR7a.js`),__vite__mapDeps([101,26,27,1])),"../../node_modules/dayjs/esm/locale/ko.js":()=>_(()=>import(`./ko-BCvoCYib.js`),__vite__mapDeps([102,26,27,1])),"../../node_modules/dayjs/esm/locale/ku.js":()=>_(()=>import(`./ku-D6Rloctr.js`),__vite__mapDeps([103,26,27,1])),"../../node_modules/dayjs/esm/locale/ky.js":()=>_(()=>import(`./ky-C54qnEzk.js`),__vite__mapDeps([104,26,27,1])),"../../node_modules/dayjs/esm/locale/lb.js":()=>_(()=>import(`./lb-y3rkrWB2.js`),__vite__mapDeps([105,26,27,1])),"../../node_modules/dayjs/esm/locale/lo.js":()=>_(()=>import(`./lo-nA_dPnOU.js`),__vite__mapDeps([106,26,27,1])),"../../node_modules/dayjs/esm/locale/lt.js":()=>_(()=>import(`./lt-hjPmCCML.js`),__vite__mapDeps([107,26,27,1])),"../../node_modules/dayjs/esm/locale/lv.js":()=>_(()=>import(`./lv-Bh4qmUa_.js`),__vite__mapDeps([108,26,27,1])),"../../node_modules/dayjs/esm/locale/me.js":()=>_(()=>import(`./me-e32suC_n.js`),__vite__mapDeps([109,26,27,1])),"../../node_modules/dayjs/esm/locale/mi.js":()=>_(()=>import(`./mi-Dwbsuyr9.js`),__vite__mapDeps([110,26,27,1])),"../../node_modules/dayjs/esm/locale/mk.js":()=>_(()=>import(`./mk-DjUXwKRn.js`),__vite__mapDeps([111,26,27,1])),"../../node_modules/dayjs/esm/locale/ml.js":()=>_(()=>import(`./ml-CWjFAViF.js`),__vite__mapDeps([112,26,27,1])),"../../node_modules/dayjs/esm/locale/mn.js":()=>_(()=>import(`./mn-BU4qTvEl.js`),__vite__mapDeps([113,26,27,1])),"../../node_modules/dayjs/esm/locale/mr.js":()=>_(()=>import(`./mr-Bvnduzfb.js`),__vite__mapDeps([114,26,27,1])),"../../node_modules/dayjs/esm/locale/ms-my.js":()=>_(()=>import(`./ms-my-CDbnYp0g.js`),__vite__mapDeps([115,26,27,1])),"../../node_modules/dayjs/esm/locale/ms.js":()=>_(()=>import(`./ms-XuKVAni7.js`),__vite__mapDeps([116,26,27,1])),"../../node_modules/dayjs/esm/locale/mt.js":()=>_(()=>import(`./mt-PDuxJf8J.js`),__vite__mapDeps([117,26,27,1])),"../../node_modules/dayjs/esm/locale/my.js":()=>_(()=>import(`./my-7N6SHnsD.js`),__vite__mapDeps([118,26,27,1])),"../../node_modules/dayjs/esm/locale/nb.js":()=>_(()=>import(`./nb-Cu3KUtTR.js`),__vite__mapDeps([119,26,27,1])),"../../node_modules/dayjs/esm/locale/ne.js":()=>_(()=>import(`./ne-CYW0uI2a.js`),__vite__mapDeps([120,26,27,1])),"../../node_modules/dayjs/esm/locale/nl-be.js":()=>_(()=>import(`./nl-be-B3NSF-2w.js`),__vite__mapDeps([121,26,27,1])),"../../node_modules/dayjs/esm/locale/nl.js":()=>_(()=>import(`./nl-DL7cw699.js`),__vite__mapDeps([122,26,27,1])),"../../node_modules/dayjs/esm/locale/nn.js":()=>_(()=>import(`./nn-BHITVkGB.js`),__vite__mapDeps([123,26,27,1])),"../../node_modules/dayjs/esm/locale/oc-lnc.js":()=>_(()=>import(`./oc-lnc-dp3c4Bty.js`),__vite__mapDeps([124,26,27,1])),"../../node_modules/dayjs/esm/locale/pa-in.js":()=>_(()=>import(`./pa-in-BxgIlP1T.js`),__vite__mapDeps([125,26,27,1])),"../../node_modules/dayjs/esm/locale/pl.js":()=>_(()=>import(`./pl-GrG6yjkB.js`),__vite__mapDeps([126,26,27,1])),"../../node_modules/dayjs/esm/locale/pt-br.js":()=>_(()=>import(`./pt-br-BxTgeF95.js`),__vite__mapDeps([127,26,27,1])),"../../node_modules/dayjs/esm/locale/pt.js":()=>_(()=>import(`./pt-cVbj6hL6.js`),__vite__mapDeps([128,26,27,1])),"../../node_modules/dayjs/esm/locale/rn.js":()=>_(()=>import(`./rn-DiVJ2_Jy.js`),__vite__mapDeps([129,26,27,1])),"../../node_modules/dayjs/esm/locale/ro.js":()=>_(()=>import(`./ro-D1WeRyXR.js`),__vite__mapDeps([130,26,27,1])),"../../node_modules/dayjs/esm/locale/ru.js":()=>_(()=>import(`./ru-DZCu4V9W.js`),__vite__mapDeps([131,26,27,1])),"../../node_modules/dayjs/esm/locale/rw.js":()=>_(()=>import(`./rw-DfFpVc_g.js`),__vite__mapDeps([132,26,27,1])),"../../node_modules/dayjs/esm/locale/sd.js":()=>_(()=>import(`./sd-yDyBYxtQ.js`),__vite__mapDeps([133,26,27,1])),"../../node_modules/dayjs/esm/locale/se.js":()=>_(()=>import(`./se-EJKibocp.js`),__vite__mapDeps([134,26,27,1])),"../../node_modules/dayjs/esm/locale/si.js":()=>_(()=>import(`./si-BCBV00rO.js`),__vite__mapDeps([135,26,27,1])),"../../node_modules/dayjs/esm/locale/sk.js":()=>_(()=>import(`./sk-B2VvG_mo.js`),__vite__mapDeps([136,26,27,1])),"../../node_modules/dayjs/esm/locale/sl.js":()=>_(()=>import(`./sl-BTYmt65M.js`),__vite__mapDeps([137,26,27,1])),"../../node_modules/dayjs/esm/locale/sq.js":()=>_(()=>import(`./sq-BaLGKAHu.js`),__vite__mapDeps([138,26,27,1])),"../../node_modules/dayjs/esm/locale/sr-cyrl.js":()=>_(()=>import(`./sr-cyrl-CrwXFtkw.js`),__vite__mapDeps([139,26,27,1])),"../../node_modules/dayjs/esm/locale/sr.js":()=>_(()=>import(`./sr-DarE-95b.js`),__vite__mapDeps([140,26,27,1])),"../../node_modules/dayjs/esm/locale/ss.js":()=>_(()=>import(`./ss-CbBe1RUs.js`),__vite__mapDeps([141,26,27,1])),"../../node_modules/dayjs/esm/locale/sv-fi.js":()=>_(()=>import(`./sv-fi-CVHORXkw.js`),__vite__mapDeps([142,26,27,1])),"../../node_modules/dayjs/esm/locale/sv.js":()=>_(()=>import(`./sv-Baw7Je9j.js`),__vite__mapDeps([143,26,27,1])),"../../node_modules/dayjs/esm/locale/sw.js":()=>_(()=>import(`./sw-k1H_OzIi.js`),__vite__mapDeps([144,26,27,1])),"../../node_modules/dayjs/esm/locale/ta.js":()=>_(()=>import(`./ta-Bc4ZaZT9.js`),__vite__mapDeps([145,26,27,1])),"../../node_modules/dayjs/esm/locale/te.js":()=>_(()=>import(`./te-ClciACZi.js`),__vite__mapDeps([146,26,27,1])),"../../node_modules/dayjs/esm/locale/tet.js":()=>_(()=>import(`./tet-B75w1oSG.js`),__vite__mapDeps([147,26,27,1])),"../../node_modules/dayjs/esm/locale/tg.js":()=>_(()=>import(`./tg-CuH2ARRk.js`),__vite__mapDeps([148,26,27,1])),"../../node_modules/dayjs/esm/locale/th.js":()=>_(()=>import(`./th-LvExAoJ6.js`),__vite__mapDeps([149,26,27,1])),"../../node_modules/dayjs/esm/locale/tk.js":()=>_(()=>import(`./tk-2CFwTMKo.js`),__vite__mapDeps([150,26,27,1])),"../../node_modules/dayjs/esm/locale/tl-ph.js":()=>_(()=>import(`./tl-ph-CNJ_lViV.js`),__vite__mapDeps([151,26,27,1])),"../../node_modules/dayjs/esm/locale/tlh.js":()=>_(()=>import(`./tlh-9UbKQkHo.js`),__vite__mapDeps([152,26,27,1])),"../../node_modules/dayjs/esm/locale/tr.js":()=>_(()=>import(`./tr-Cu4P4OMe.js`),__vite__mapDeps([153,26,27,1])),"../../node_modules/dayjs/esm/locale/tzl.js":()=>_(()=>import(`./tzl-D97WsZW-.js`),__vite__mapDeps([154,26,27,1])),"../../node_modules/dayjs/esm/locale/tzm-latn.js":()=>_(()=>import(`./tzm-latn-BRGsWK-9.js`),__vite__mapDeps([155,26,27,1])),"../../node_modules/dayjs/esm/locale/tzm.js":()=>_(()=>import(`./tzm-CURkYgMY.js`),__vite__mapDeps([156,26,27,1])),"../../node_modules/dayjs/esm/locale/ug-cn.js":()=>_(()=>import(`./ug-cn-Cd4exKOc.js`),__vite__mapDeps([157,26,27,1])),"../../node_modules/dayjs/esm/locale/uk.js":()=>_(()=>import(`./uk-DEXM3PIH.js`),__vite__mapDeps([158,26,27,1])),"../../node_modules/dayjs/esm/locale/ur.js":()=>_(()=>import(`./ur-DpUycj07.js`),__vite__mapDeps([159,26,27,1])),"../../node_modules/dayjs/esm/locale/uz-latn.js":()=>_(()=>import(`./uz-latn-Baga58FN.js`),__vite__mapDeps([160,26,27,1])),"../../node_modules/dayjs/esm/locale/uz.js":()=>_(()=>import(`./uz-CznjzufA.js`),__vite__mapDeps([161,26,27,1])),"../../node_modules/dayjs/esm/locale/vi.js":()=>_(()=>import(`./vi-BrZWcL2C.js`),__vite__mapDeps([162,26,27,1])),"../../node_modules/dayjs/esm/locale/x-pseudo.js":()=>_(()=>import(`./x-pseudo-BY6J4I7_.js`),__vite__mapDeps([163,26,27,1])),"../../node_modules/dayjs/esm/locale/yo.js":()=>_(()=>import(`./yo-Dkeaym0x.js`),__vite__mapDeps([164,26,27,1])),"../../node_modules/dayjs/esm/locale/zh-cn.js":()=>_(()=>import(`./zh-cn-CiA7hMZm.js`),__vite__mapDeps([165,26,27,1])),"../../node_modules/dayjs/esm/locale/zh-hk.js":()=>_(()=>import(`./zh-hk-EkoniWh0.js`),__vite__mapDeps([166,26,27,1])),"../../node_modules/dayjs/esm/locale/zh-tw.js":()=>_(()=>import(`./zh-tw-KDgos-kB.js`),__vite__mapDeps([167,26,27,1])),"../../node_modules/dayjs/esm/locale/zh.js":()=>_(()=>import(`./zh-C2fOZUKR.js`),__vite__mapDeps([168,26,27,1]))}),kA=new Map(Object.keys(OA).map(e=>[e.match(/([^/]+)\.js$/)[1],e])),AA={zn:`zh-cn`,no:`nb`};function jA(e){let t=e.toLowerCase();return kA.has(t)&&t||AA[t]||t.includes(`-`)&&jA(t.split(`-`)[0])||void 0}function MA(){return EC([navigator.language,...navigator.languages],jA)}function NA(){return PA.apply(this,arguments)}function PA(){return PA=p(function*(){var e;let t=MA();if(!t)return;let n=yield(e=OA[kA.get(t)])==null?void 0:e.call(OA);return n&&!_A.default.Ls[t]&&_A.default.locale(n.default,void 0,!0),t}),PA.apply(this,arguments)}U();var FA=(0,u.lazy)(()=>_(()=>import(`./ConfigFilePage-6jCYVkbr.js`),__vite__mapDeps([169,1,15,16,6])));function IA(){return(0,u.createElement)(jc,{theme:tO()},(0,u.createElement)(RA,{},(0,u.createElement)(LA,{},(0,u.createElement)(tA,{},(0,u.createElement)(Te,{hook:Le,children:(0,u.createElement)(pT,{style:{display:`flex`,flexDirection:`column`,minHeight:`100%`,flex:1,maxWidth:`100%`}},(0,u.createElement)(BA))})))))}function LA(e){let[t,n]=(0,u.useState)(``);return(0,u.useEffect)(()=>{let e=!1;return NA().then(t=>{e||n(t||``)}),()=>{e=!0}},[]),(0,u.createElement)(uA,H({dateAdapter:DA,adapterLocale:t},e))}function RA(e){return(0,u.createElement)(yh,H({sx:{bgcolor:`background.default`,color:`text.primary`,flex:1,transition:`background-color .4s`,maxWidth:`100%`}},e))}var zA;function BA(){let[e,t]=Ce(),n=qk.find(t=>Xk(t,e)),{title:r}=VD();r=n&&(n.title||Yk(n))||r;let[i,a]=(0,u.useState)(!1),o=AO(`lg`),s=n!=null&&n.noPaddingOnMobile?0:1;iw(`keydown`,({key:e,ctrlKey:n,altKey:r})=>{var i;if(bT()||!(Cw?n:r))return;let a=Number(BC(e,{0:10}));if(!a)return;let o=(i=qk[a-1])==null?void 0:i.path;o!==void 0&&t(o)});let[c,l]=(0,u.useState)(),[d,f]=(0,u.useState)(!1);zA=null;let p=(0,u.useCallback)((e,t=!1)=>{zA=e,setTimeout(()=>{l(()=>e),f(()=>t)})},[]);return(0,u.useEffect)(()=>{zA===null&&p(null)}),(0,u.createElement)(u.Fragment,{},(0,u.createElement)(Sw,{},(0,u.createElement)(`h1`,{},`Admin-panel`)),!o&&(0,u.createElement)(HA,H({title:r,titleSide:c,openMenu:()=>a(!0)},d&&{props:{flex:1}})),!o&&(0,u.createElement)(D_,{anchor:`left`,open:i,onClose(){a(!1)}},(0,u.createElement)(Jk,{onSelect:()=>a(!1),itemTitle:VA})),(0,u.createElement)(yh,{sx:{display:`flex`,flex:1}},o&&(0,u.createElement)(Jk,{itemTitle:VA,onSelect(){}}),(0,u.createElement)(yh,{component:`main`,sx:H(H({background:`url(cup.svg) no-repeat right fixed`,backgroundSize:`contain`,px:{xs:s,md:2,lg:3},pb:{xs:s,md:2},boxSizing:`border-box`,position:`relative`},kO),{},{width:`100%`,overflowX:`clip`})},r&&o&&(0,u.createElement)(MO,{gap:4,"& .MuiAlert-root":{p:0,backgroundColor:`unset`}},(0,u.createElement)(yd,{variant:`h2`,sx:{mb:2,whiteSpace:`nowrap`}},r),(0,u.createElement)(MO,H({},d&&{width:`100%`}),c)),(0,u.createElement)(u.Suspense,{fallback:(0,u.createElement)(OO)},(0,u.createElement)(je,{children:[...qk.flatMap((e,t)=>[(0,u.createElement)(Oe,{key:t,path:e.path},(0,u.createElement)(e.comp,{setTitleSide:p})),e.subRoutes&&(0,u.createElement)(Oe,{key:e.path+`/:tab`,path:`${e.path}/:tab`},(0,u.createElement)(e.comp,{setTitleSide:p}))]),(0,u.createElement)(Oe,{path:`/config`},(0,u.createElement)(FA))]})))))}function VA(e){return e<10?`${Cw?`CTRL`:`ALT`} + ${(e+1)%10}`:``}function HA({title:e,titleSide:t,openMenu:n,props:r}){return(0,u.createElement)(Td,{ref:yw(),position:`sticky`,sx:{mb:1}},(0,u.createElement)(qx,{},(0,u.createElement)($u,{size:`large`,edge:`start`,color:`inherit`,sx:{mr:2},"aria-label":`menu`,onClick:n},(0,u.createElement)(oA)),(0,u.createElement)(MO,{gap:4,props:r,"& .MuiAlert-root":{p:0,backgroundColor:`unset`,"& .MuiAlert-icon":{py:0},"& .MuiAlert-message":{py:`1px`}}},(0,u.createElement)(yh,{component:`h2`,sx:{m:0,whiteSpace:`nowrap`}},e),t)))}(0,d.createRoot)(document.getElementById(`root`)).render((0,u.createElement)(u.StrictMode,{},(0,u.createElement)(IA)));export{KD as $,Ic as $i,OC as $n,Hg as $r,xw as $t,QO as A,ue as Aa,Ll as Ai,ZC as An,Dy as Ar,GT as At,yO as B,al as Bi,nC as Bn,Av as Br,wT as Bt,zO as C,ke as Ca,Du as Ci,PC as Cn,bx as Cr,nE as Ct,PO as D,U as Da,Wl as Di,QS as Dn,My as Dr,UT as Dt,JO as E,H as Ea,Gl as Ei,RC as En,ub as Er,ZT as Et,AO as F,xl as Fi,oC as Fn,cy as Fr,LT as Ft,hO as G,$c as Gi,tw as Gn,iv as Gr,Gw as Gt,dO as H,rl as Hi,XC as Hn,bv as Hr,nT as Ht,IO as I,ml as Ii,aC as In,oy as Ir,FT as It,_O as J,Jc as Ji,pC as Jn,z_ as Jr,ww as Jt,vO as K,Zc as Ki,dC as Kn,Z_ as Kr,Kw as Kt,KO as L,dl as Li,hC as Ln,ty as Lr,IT as Lt,LO as M,p as Ma,Nl as Mi,DC as Mn,xy as Mr,WT as Mt,FO as N,c as Na,jl as Ni,GC as Nn,yy as Nr,VT as Nt,VO as O,V as Oa,Vl as Oi,LC as On,jy as Or,qT as Ot,OO as P,i as Pa,Cl as Pi,VC as Pn,py as Pr,RT as Pt,HD as Q,Hc as Qi,_C as Qn,Xg as Qr,yw as Qt,qO as R,ll as Ri,qC as Rn,ey as Rr,TT as Rt,MO as S,Je as Sa,ju as Si,UC as Sn,Nx as Sr,tE as St,GO as T,G as Ta,Zl as Ti,FC as Tn,Ab as Tr,jT as Tt,fO as U,tl as Ui,$C as Un,dv as Ur,gT as Ut,bO as V,il as Vi,uC as Vn,Ev as Vr,_T as Vt,pO as W,el as Wi,gC as Wn,av as Wr,Qw as Wt,FD as X,Wc as Xi,ew as Xn,c_ as Xr,Tw as Xt,WD as Y,qc as Yi,wC as Yn,L_ as Yr,pw as Yt,GD as Z,Uc as Zi,CC as Zn,r_ as Zr,gw as Zt,ek as _,Gr as _a,yd as _i,MC as _n,tS as _r,cE as _t,Fk as a,zs as aa,yh as ai,GS as an,jS as ar,RE as at,WO as b,Vn as ba,Ju as bi,WC as bn,qx as br,iE as bt,Sk as c,io as ca,Nm as ci,JS as cn,hS as cr,NE as ct,mk as d,wa as da,gm as di,YS as dn,CS as dr,DE as dt,Fc as ea,kg as ei,vw as en,iC as er,UD as et,fk as f,Ca as fa,um as fi,cC as fn,fS as fr,CE as ft,sk as g,J as ga,Ed as gi,tC as gn,rS as gr,fE as gt,uk as h,sa as ha,Np as hi,yC as hn,iS as hr,pE as ht,sA as i,yc as ia,Mh as ii,BS as in,PS as ir,VD as it,HO as j,le as ja,Fl as ji,YC as jn,Ty as jr,YT as jt,kO as k,de as ka,zl as ki,rC as kn,Ey as kr,KT as kt,_k as l,Da as la,wm as li,xC as ln,yS as lr,kE as lt,lk as m,ca as ma,Pp as mi,NC as mn,cS as mr,SE as mt,uA as n,Z as na,qh as ni,sw as nn,vC as nr,qD as nt,gk as o,Vo as oa,fh as oi,KS as on,IS as or,FE as ot,ck as p,ma as pa,Yp as pi,eC as pn,lS as pr,xE as pt,lO as q,Yc as qi,fC as qn,W_ as qr,_w as qt,lA as r,bc as ra,Lh as ri,rw as rn,BC as rr,YD as rt,bk as s,po as sa,sh as si,ZS as sn,MS as sr,PE as st,dA as t,Q as ta,fg as ti,hw as tn,bC as tr,RD as tt,vk as u,Ta as ua,ym as ui,QC as un,xS as ur,AE as ut,tk as v,ir as va,fd as vi,jC as vn,eS as vr,oE as vt,jO as w,Ce as wa,nu as wi,TC as wn,Lb as wr,$T as wt,YO as x,Hn as xa,Ku as xi,IC as xn,Hx as xr,eE as xt,BO as y,nr as ya,$u as yi,sC as yn,$x as yr,aE as yt,NO as z,ol as zi,KC as zn,Kv as zr,CT as zt};
|