@prozilla-os/settings 1.1.10 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,39 +1,40 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap";._SettingsContainer_13l5q_1{width:100%;height:100%;position:sticky;top:0;left:0}._Settings_13l5q_1{--tabs-width: 10rem;flex:1;display:flex;width:100%;height:100%;background-color:var(--background-color-2)}._Tabs_13l5q_37{display:flex;gap:.25rem;flex-direction:column;min-width:calc(var(--tabs-width) / 2);width:var(--tabs-width);height:100%;max-width:50%;padding:.5rem;margin:0;background-color:var(--background-color-2);resize:horizontal;overflow:hidden}._TabButton_13l5q_67{display:flex;gap:.5rem;align-items:center;width:100%;min-width:fit-content;padding:.75rem;border-radius:var(--border-radius-1);font-size:.875rem}._TabButton_13l5q_67._ActiveTab_13l5q_89{background-color:var(--background-color-0)}._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):hover,._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):focus-visible{background-color:color-mix(in srgb,var(--background-color-0) 50%,transparent)}._TabButton_13l5q_67>svg{height:1.35rem;aspect-ratio:1}._TabButton_13l5q_67>p{margin:0}._TabPanel_13l5q_125{flex:1;display:flex;flex-direction:column;align-content:flex-start;height:100%;padding:.5rem 1rem;background-color:var(--background-color-3);overflow:auto}._TabPanel_13l5q_125:not(._ActivePanel_13l5q_147){display:none}._Option_13l5q_155{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start;width:100%;padding-bottom:1rem}._OptionList_13l5q_175{gap:.5rem}._OptionList_13l5q_175 ._Option_13l5q_155{padding-bottom:0}._OptionHorizontal_13l5q_191{flex-direction:row;justify-content:space-between}._Option_13l5q_155>._Label_13l5q_201{color:var(--foreground-color-0)}._Input_13l5q_209{display:flex;gap:.5rem;flex-wrap:wrap}._Input_13l5q_209>label{flex:1;display:flex}._ImageSelectContainer_13l5q_231{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.5rem}._ImageSelect_13l5q_231{display:block;width:100%}._ImageSelect_13l5q_231>input{position:absolute;opacity:0;width:0;height:0}._ImageSelect_13l5q_231>input:hover+img,._ImageSelect_13l5q_231>input:focus-visible+img{filter:brightness(110%)}._ImageSelect_13l5q_231>input:checked+img{outline:.25em solid var(--foreground-color-0)}._ImageSelect_13l5q_231>img{width:100%;height:100%;border-radius:var(--border-radius-1);transition:filter .1s ease-in-out;cursor:pointer}._ButtonGroup_13l5q_301{display:flex;gap:1rem;flex-wrap:wrap;margin:.75rem 0}._ButtonGroup_13l5q_301 ._Button_13l5q_301{margin-bottom:0}._Button_13l5q_301{--normal-color: var(--background-color-0) !important;--hover-color: var(--background-color-1) !important;margin-bottom:.75rem!important;padding:.5rem 1rem;border-radius:var(--border-radius-1)}._ButtonDanger_13l5q_341{--text-color: var(--black-1) !important;--normal-color: var(--red-0) !important;--hover-color: var(--red-1) !important}._IconButton_13l5q_353{--color: var(--foreground-color-0);position:relative;height:1.25rem;width:auto;padding:0;background:none;border:none;outline:none;aspect-ratio:1;cursor:pointer}._IconButton_13l5q_353:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff0;border-radius:var(--border-radius-99);transform:scale(1);transform-origin:center;transition:all .2s ease-in-out}._IconButton_13l5q_353:hover:after,._IconButton_13l5q_353:focus-visible:after{background-color:#ffffff1a;transform:scale(1.5)}._IconButton_13l5q_353:disabled{--color: var(--foreground-color-2)}._IconButton_13l5q_353 svg{height:100%}._IconButton_13l5q_353 svg path{fill:var(--color);transition:fill .1s ease-in-out}._ProgressBarContainer_13l5q_445{width:100%;max-width:35rem}._ProgressBar_13l5q_445{width:100%!important}._ProgressBarLabels_13l5q_463{display:flex;justify-content:space-between;width:100%}._Option_13l5q_155>span._Label_13l5q_201{display:flex;gap:.5rem;align-items:center}._Icon_13l5q_353{display:inline-block;width:2rem;height:2rem}._Icon_13l5q_353 div{width:inherit;height:inherit}._Icon_13l5q_353 div>svg{width:inherit;height:inherit;object-fit:contain}._Dropdown_13l5q_521{width:auto;max-width:calc(60% - var(--gap));padding:.5rem 1rem;color:var(--text-color);background-color:var(--background-color-0);border:none;border-radius:var(--border-radius-1);outline:none;font-size:.875em}._Dropdown_13l5q_521>*{color:inherit;background-color:inherit;border:none;border-radius:var(--border-radius-1);outline:none;font-family:inherit;font-size:inherit}:root{--util-menu-height: 2rem;--taskbar-margin: .5rem;--body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}.ProzillaOS-Taskbar{--taskbar-opacity: .1;height:100%;pointer-events:none}.ProzillaOS-Taskbar:before,.ProzillaOS-Taskbar:after{display:none}.ProzillaOS-Taskbar__MenuIcons{display:none}.ProzillaOS-Taskbar__AppIcons{position:absolute;bottom:var(--taskbar-margin);left:50%;width:auto;height:auto;min-height:var(--taskbar-height);transform:translate(-50%);border-radius:var(--border-radius-1);transition:height .2s ease-out .1s;pointer-events:auto}.ProzillaOS-Taskbar__AppIcons:has(.ProzillaOS-Taskbar__AppIcon:hover){animation:expand .2s ease-out forwards}@keyframes expand{0%{height:var(--taskbar-height)}to{height:calc(var(--taskbar-height) * 150%)}}.ProzillaOS-Taskbar__AppIcons:after,.ProzillaOS-Taskbar__AppIcons:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none}.ProzillaOS-Taskbar__AppIcons:after{opacity:var(--taskbar-opacity);background-color:var(--foreground-color-0);z-index:-2}.ProzillaOS-Taskbar__AppIcons:before{-webkit-backdrop-filter:var(--taskbar-filter);backdrop-filter:var(--taskbar-filter);z-index:-3}.ProzillaOS-Taskbar__AppIcons>div{position:relative;width:auto;height:100%;align-items:flex-end}.ProzillaOS-Taskbar__AppIcon{--scale: var(--taskbar-height);width:var(--scale);height:var(--scale);padding:.5rem;transition:width .2s ease-out,height .2s ease-out,background-color .1s ease-in-out!important}.ProzillaOS-Taskbar__AppIcon svg{transform:none!important}.ProzillaOS-Taskbar__AppIcon:hover{--scale: calc(var(--taskbar-height) * 1.5)}.ProzillaOS-Taskbar__UtilIcons{position:absolute;top:0;left:0;right:0;height:var(--util-menu-height);background-color:var(--taskbar-color);box-shadow:.1rem .1rem .2rem .1rem color-mix(in srgb,var(--svg-drop-shadow-color) 50%,transparent);pointer-events:auto}.ProzillaOS-Taskbar__Indicator--Calendar{display:flex;flex-direction:row;gap:.5rem}.ProzillaOS-Taskbar__UtilIcons>div{position:relative}.ProzillaOS-Taskbar__UtilIcons>div>div{top:100%;bottom:unset}.ProzillaOS-Taskbar__Menu--Util{border-radius:var(--border-radius-1);border-top-right-radius:0}.ProzillaOS-Taskbar__UtilIcons>div>div>.ProzillaOS-Taskbar__Menu--Util:not(.ProzillaOS-Taskbar__Menu--Active){transform:translateY(-100px)}.ProzillaOS-Desktop .ProzillaOS-DirectoryList,.ProzillaOS-WindowsView{margin-top:var(--util-menu-height)}.ProzillaOS-WindowHeader{--window-icon-margin: .5rem;flex-direction:row-reverse;justify-content:flex-end;gap:.25rem}.ProzillaOS-WindowIcon{display:none}.ProzillaOS-WindowTitle{position:absolute;left:50%;transform:translate(calc(-50% - var(--window-icon-margin)))}.ProzillaOS-WindowHeader>button{--height: 1rem;--icon-opacity: 0;display:flex;justify-content:center;align-items:center;border-radius:9999px;margin:0;padding:.2rem;height:var(--height);color:var(--background-color-0);border:1px solid var(--header-button-hover-color)}.ProzillaOS-WindowHeader>button:hover,.ProzillaOS-WindowHeader>button:focus-visible{--icon-opacity: 1;background-color:var(--header-button-hover-color)!important}.ProzillaOS-WindowHeader>button#close-window{--header-button-hover-color: var(--red-1);background-color:var(--red-0)}.ProzillaOS-WindowHeader>button#maximize-window{--header-button-hover-color: var(--green-1);background-color:var(--green-0);order:-1}.ProzillaOS-WindowHeader>button#minimize-window{--header-button-hover-color: var(--yellow-1);background-color:var(--yellow-0)}.ProzillaOS-WindowHeader>button>svg{opacity:var(--icon-opacity);color:var(--background-color-0);transition:opacity .2s ease-in-out}.ProzillaOS-WindowHeader>button>svg *{color:inherit;fill:currentColor}:root{--border-radius-0: 0;--border-radius-1: 0}:root{--body-font-family: "Minecraftia", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}@font-face{font-family:Minecraftia;src:url(/assets/fonts/minecraftia/Minecraftia-Regular.ttf);font-display:swap}body{font-smooth:never;-webkit-font-smoothing:none}p,pre,input,a{position:relative;top:.25rem;line-height:1.6rem}p>a{top:unset}.ProzillaOS-Taskbar__Indicator--Calendar>p{font-size:.875rem;line-height:1.25rem}img{image-rendering:optimizeSpeed;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:pixelated;image-rendering:optimize-contrast;-ms-interpolation-mode:nearest-neighbor}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- import { App as gt, AppsConfig as ht, useVirtualRoot as Ne, useWindowsManager as He, useSystemManager as ge, useHistory as At, useAlert as Rt, useWindowedModal as vt, useContextMenu as qe, Actions as Ue, ClickAction as ie, Vector2 as be, Divider as $t, VirtualRoot as et, DialogBox as tt, ModalsConfig as nt, DirectoryList as Lt, CODE_EXTENSIONS as Bt, utilStyles as K, WindowedModal as Dt, ImagePreview as We, StorageManager as de, VirtualFile as Mt, useSettingsManager as Ke, SettingsManager as Ee, Button as Se, IMAGE_EXTENSIONS as jt, ProgressBar as zt } from "@prozilla-os/core";
3
- import { jsxs as T, jsx as i, Fragment as yt } from "react/jsx-runtime";
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('._SettingsContainer_13l5q_1{width:100%;height:100%;position:sticky;top:0;left:0}._Settings_13l5q_1{--tabs-width: 10rem;flex:1;display:flex;width:100%;height:100%;background-color:var(--background-color-2)}._Tabs_13l5q_37{display:flex;gap:.25rem;flex-direction:column;min-width:calc(var(--tabs-width) / 2);width:var(--tabs-width);height:100%;max-width:50%;padding:.5rem;margin:0;background-color:var(--background-color-2);resize:horizontal;overflow:hidden}._TabButton_13l5q_67{display:flex;gap:.5rem;align-items:center;width:100%;min-width:fit-content;padding:.75rem;border-radius:var(--border-radius-1);font-size:.875rem}._TabButton_13l5q_67._ActiveTab_13l5q_89{background-color:var(--background-color-0)}._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):hover,._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):focus-visible{background-color:color-mix(in srgb,var(--background-color-0) 50%,transparent)}._TabButton_13l5q_67>svg{height:1.35rem;aspect-ratio:1}._TabButton_13l5q_67>p{margin:0}._TabPanel_13l5q_125{flex:1;display:flex;flex-direction:column;align-content:flex-start;height:100%;padding:.5rem 1rem;background-color:var(--background-color-3);overflow:auto}._TabPanel_13l5q_125:not(._ActivePanel_13l5q_147){display:none}._Option_13l5q_155{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start;width:100%;padding-bottom:1rem}._OptionList_13l5q_175{gap:.5rem}._OptionList_13l5q_175 ._Option_13l5q_155{padding-bottom:0}._OptionHorizontal_13l5q_191{flex-direction:row;justify-content:space-between}._Option_13l5q_155>._Label_13l5q_201{color:var(--foreground-color-0)}._Input_13l5q_209{display:flex;gap:.5rem;flex-wrap:wrap}._Input_13l5q_209>label{flex:1;display:flex}._ImageSelectContainer_13l5q_231{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.5rem}._ImageSelect_13l5q_231{display:block;width:100%}._ImageSelect_13l5q_231>input{position:absolute;opacity:0;width:0;height:0}._ImageSelect_13l5q_231>input:hover+img,._ImageSelect_13l5q_231>input:focus-visible+img{filter:brightness(110%)}._ImageSelect_13l5q_231>input:checked+img{outline:.25em solid var(--foreground-color-0)}._ImageSelect_13l5q_231>img{width:100%;height:100%;border-radius:var(--border-radius-1);transition:filter .1s ease-in-out;cursor:pointer}._ButtonGroup_13l5q_301{display:flex;gap:1rem;flex-wrap:wrap;margin:.75rem 0}._ButtonGroup_13l5q_301 ._Button_13l5q_301{margin-bottom:0}._Button_13l5q_301{--normal-color: var(--background-color-0) !important;--hover-color: var(--background-color-1) !important;margin-bottom:.75rem!important;padding:.5rem 1rem;border-radius:var(--border-radius-1)}._ButtonDanger_13l5q_341{--text-color: var(--black-1) !important;--normal-color: var(--red-0) !important;--hover-color: var(--red-1) !important}._IconButton_13l5q_353{--color: var(--foreground-color-0);position:relative;height:1.25rem;width:auto;padding:0;background:none;border:none;outline:none;aspect-ratio:1;cursor:pointer}._IconButton_13l5q_353:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff0;border-radius:var(--border-radius-99);transform:scale(1);transform-origin:center;transition:all .2s ease-in-out}._IconButton_13l5q_353:hover:after,._IconButton_13l5q_353:focus-visible:after{background-color:#ffffff1a;transform:scale(1.5)}._IconButton_13l5q_353:disabled{--color: var(--foreground-color-2)}._IconButton_13l5q_353 svg{height:100%}._IconButton_13l5q_353 svg path{fill:var(--color);transition:fill .1s ease-in-out}._ProgressBarContainer_13l5q_445{width:100%;max-width:35rem}._ProgressBar_13l5q_445{width:100%!important}._ProgressBarLabels_13l5q_463{display:flex;justify-content:space-between;width:100%}._Option_13l5q_155>span._Label_13l5q_201{display:flex;gap:.5rem;align-items:center}._Icon_13l5q_353{display:inline-block;width:2rem;height:2rem}._Icon_13l5q_353 div{width:inherit;height:inherit}._Icon_13l5q_353 div>svg{width:inherit;height:inherit;object-fit:contain}._Dropdown_13l5q_521{width:auto;max-width:calc(60% - var(--gap));padding:.5rem 1rem;color:var(--text-color);background-color:var(--background-color-0);border:none;border-radius:var(--border-radius-1);outline:none;font-size:.875em}._Dropdown_13l5q_521>*{color:inherit;background-color:inherit;border:none;border-radius:var(--border-radius-1);outline:none;font-family:inherit;font-size:inherit}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
+ import { App as bt, AppsConfig as mt, useVirtualRoot as Pe, useWindowsManager as We, useSystemManager as me, useHistory as Ot, useAlert as At, useWindowedModal as ht, useContextMenu as je, Actions as Fe, ClickAction as ie, Vector2 as be, Divider as Rt, VirtualRoot as Je, DialogBox as Ze, ModalsConfig as Qe, DirectoryList as $t, CODE_EXTENSIONS as Bt, utilStyles as K, WindowedModal as Lt, ImagePreview as qe, StorageManager as ue, VirtualFile as kt, useSettingsManager as Ye, SettingsManager as we, Button as Se, IMAGE_EXTENSIONS as Dt, ProgressBar as Mt } from "@prozilla-os/core";
3
+ import { jsxs as E, jsx as s, Fragment as yt } from "react/jsx-runtime";
4
4
  import { FontAwesomeIcon as X } from "@fortawesome/react-fontawesome";
5
- import { faTrash as rt, faCircleInfo as wt, faCaretLeft as Ft, faCaretRight as qt, faArrowUp as Ut, faPlus as Wt, faSearch as Yt, faCog as Vt, faHouse as Ht, faDesktop as Kt, faImage as Gt, faFileLines as Xt, faDownload as Jt, faThumbTack as Zt, faEllipsisVertical as Qt, faShapes as en, faPalette as tn, faHardDrive as nn } from "@fortawesome/free-solid-svg-icons";
6
- import me, { Children as _t, cloneElement as _e, useRef as Te, useId as rn, useState as ne, useEffect as le, useCallback as sn } from "react";
7
- import { round as $e, removeFromArray as an } from "@prozilla-os/shared";
8
- const on = "_SettingsContainer_13l5q_1", ln = "_Settings_13l5q_1", cn = "_Tabs_13l5q_37", pn = "_TabButton_13l5q_67", dn = "_ActiveTab_13l5q_89", un = "_TabPanel_13l5q_125", fn = "_ActivePanel_13l5q_147", mn = "_Option_13l5q_155", bn = "_OptionList_13l5q_175", gn = "_OptionHorizontal_13l5q_191", hn = "_Label_13l5q_201", vn = "_Input_13l5q_209", yn = "_ImageSelectContainer_13l5q_231", wn = "_ImageSelect_13l5q_231", _n = "_ButtonGroup_13l5q_301", Tn = "_Button_13l5q_301", xn = "_ButtonDanger_13l5q_341", En = "_IconButton_13l5q_353", Sn = "_ProgressBarContainer_13l5q_445", In = "_ProgressBar_13l5q_445", Cn = "_ProgressBarLabels_13l5q_463", Pn = "_Icon_13l5q_353", Nn = "_Dropdown_13l5q_521", E = {
5
+ import { faTrash as et, faCircleInfo as vt, faCaretLeft as jt, faCaretRight as Ft, faArrowUp as qt, faPlus as Ut, faSearch as zt, faCog as Wt, faHouse as Yt, faDesktop as Vt, faImage as Ht, faFileLines as Kt, faDownload as Gt, faThumbTack as Xt, faEllipsisVertical as Jt, faShapes as Zt, faPalette as Qt, faHardDrive as en } from "@fortawesome/free-solid-svg-icons";
6
+ import pe, { Children as gt, cloneElement as _e, useRef as Te, useId as tn, useState as te, useEffect as se, useCallback as nn } from "react";
7
+ import { Theme as tt } from "@prozilla-os/skins";
8
+ import { round as Ae, removeFromArray as rn } from "@prozilla-os/shared";
9
+ const on = "_SettingsContainer_13l5q_1", an = "_Settings_13l5q_1", sn = "_Tabs_13l5q_37", ln = "_TabButton_13l5q_67", cn = "_ActiveTab_13l5q_89", un = "_TabPanel_13l5q_125", dn = "_ActivePanel_13l5q_147", fn = "_Option_13l5q_155", pn = "_OptionList_13l5q_175", bn = "_OptionHorizontal_13l5q_191", mn = "_Label_13l5q_201", hn = "_Input_13l5q_209", yn = "_ImageSelectContainer_13l5q_231", vn = "_ImageSelect_13l5q_231", gn = "_ButtonGroup_13l5q_301", _n = "_Button_13l5q_301", Tn = "_ButtonDanger_13l5q_341", En = "_IconButton_13l5q_353", wn = "_ProgressBarContainer_13l5q_445", Sn = "_ProgressBar_13l5q_445", xn = "_ProgressBarLabels_13l5q_463", Cn = "_Icon_13l5q_353", Pn = "_Dropdown_13l5q_521", S = {
9
10
  SettingsContainer: on,
10
- Settings: ln,
11
- Tabs: cn,
12
- TabButton: pn,
13
- ActiveTab: dn,
11
+ Settings: an,
12
+ Tabs: sn,
13
+ TabButton: ln,
14
+ ActiveTab: cn,
14
15
  TabPanel: un,
15
- ActivePanel: fn,
16
- Option: mn,
17
- OptionList: bn,
18
- OptionHorizontal: gn,
19
- Label: hn,
20
- Input: vn,
16
+ ActivePanel: dn,
17
+ Option: fn,
18
+ OptionList: pn,
19
+ OptionHorizontal: bn,
20
+ Label: mn,
21
+ Input: hn,
21
22
  ImageSelectContainer: yn,
22
- ImageSelect: wn,
23
- ButtonGroup: _n,
24
- Button: Tn,
25
- ButtonDanger: xn,
23
+ ImageSelect: vn,
24
+ ButtonGroup: gn,
25
+ Button: _n,
26
+ ButtonDanger: Tn,
26
27
  IconButton: En,
27
- ProgressBarContainer: Sn,
28
- ProgressBar: In,
29
- ProgressBarLabels: Cn,
30
- Icon: Pn,
31
- Dropdown: Nn
28
+ ProgressBarContainer: wn,
29
+ ProgressBar: Sn,
30
+ ProgressBarLabels: xn,
31
+ Icon: Cn,
32
+ Dropdown: Pn
32
33
  };
33
- function On(e) {
34
+ function Nn(e) {
34
35
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
35
36
  }
36
- var Ye = { exports: {} }, ye = { exports: {} }, D = {};
37
+ var Ue = { exports: {} }, ve = { exports: {} }, D = {};
37
38
  /** @license React v16.13.1
38
39
  * react-is.production.min.js
39
40
  *
@@ -42,32 +43,32 @@ var Ye = { exports: {} }, ye = { exports: {} }, D = {};
42
43
  * This source code is licensed under the MIT license found in the
43
44
  * LICENSE file in the root directory of this source tree.
44
45
  */
45
- var st;
46
- function kn() {
47
- if (st) return D;
48
- st = 1;
49
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, g = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, I = e ? Symbol.for("react.suspense") : 60113, B = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, P = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, z = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
50
- function q(p) {
51
- if (typeof p == "object" && p !== null) {
52
- var ee = p.$$typeof;
46
+ var nt;
47
+ function In() {
48
+ if (nt) return D;
49
+ nt = 1;
50
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, P = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
51
+ function U(u) {
52
+ if (typeof u == "object" && u !== null) {
53
+ var ee = u.$$typeof;
53
54
  switch (ee) {
54
55
  case n:
55
- switch (p = p.type, p) {
56
+ switch (u = u.type, u) {
56
57
  case v:
57
- case h:
58
+ case y:
58
59
  case r:
59
60
  case a:
60
61
  case l:
61
- case I:
62
- return p;
62
+ case C:
63
+ return u;
63
64
  default:
64
- switch (p = p && p.$$typeof, p) {
65
- case o:
65
+ switch (u = u && u.$$typeof, u) {
66
+ case i:
66
67
  case d:
68
+ case N:
67
69
  case P:
68
- case C:
69
- case g:
70
- return p;
70
+ case h:
71
+ return u;
71
72
  default:
72
73
  return ee;
73
74
  }
@@ -77,36 +78,36 @@ function kn() {
77
78
  }
78
79
  }
79
80
  }
80
- function F(p) {
81
- return q(p) === h;
81
+ function q(u) {
82
+ return U(u) === y;
82
83
  }
83
- return D.AsyncMode = v, D.ConcurrentMode = h, D.ContextConsumer = o, D.ContextProvider = g, D.Element = n, D.ForwardRef = d, D.Fragment = r, D.Lazy = P, D.Memo = C, D.Portal = t, D.Profiler = a, D.StrictMode = l, D.Suspense = I, D.isAsyncMode = function(p) {
84
- return F(p) || q(p) === v;
85
- }, D.isConcurrentMode = F, D.isContextConsumer = function(p) {
86
- return q(p) === o;
87
- }, D.isContextProvider = function(p) {
88
- return q(p) === g;
89
- }, D.isElement = function(p) {
90
- return typeof p == "object" && p !== null && p.$$typeof === n;
91
- }, D.isForwardRef = function(p) {
92
- return q(p) === d;
93
- }, D.isFragment = function(p) {
94
- return q(p) === r;
95
- }, D.isLazy = function(p) {
96
- return q(p) === P;
97
- }, D.isMemo = function(p) {
98
- return q(p) === C;
99
- }, D.isPortal = function(p) {
100
- return q(p) === t;
101
- }, D.isProfiler = function(p) {
102
- return q(p) === a;
103
- }, D.isStrictMode = function(p) {
104
- return q(p) === l;
105
- }, D.isSuspense = function(p) {
106
- return q(p) === I;
107
- }, D.isValidElementType = function(p) {
108
- return typeof p == "string" || typeof p == "function" || p === r || p === h || p === a || p === l || p === I || p === B || typeof p == "object" && p !== null && (p.$$typeof === P || p.$$typeof === C || p.$$typeof === g || p.$$typeof === o || p.$$typeof === d || p.$$typeof === z || p.$$typeof === Y || p.$$typeof === Q || p.$$typeof === S);
109
- }, D.typeOf = q, D;
84
+ return D.AsyncMode = v, D.ConcurrentMode = y, D.ContextConsumer = i, D.ContextProvider = h, D.Element = n, D.ForwardRef = d, D.Fragment = r, D.Lazy = N, D.Memo = P, D.Portal = t, D.Profiler = a, D.StrictMode = l, D.Suspense = C, D.isAsyncMode = function(u) {
85
+ return q(u) || U(u) === v;
86
+ }, D.isConcurrentMode = q, D.isContextConsumer = function(u) {
87
+ return U(u) === i;
88
+ }, D.isContextProvider = function(u) {
89
+ return U(u) === h;
90
+ }, D.isElement = function(u) {
91
+ return typeof u == "object" && u !== null && u.$$typeof === n;
92
+ }, D.isForwardRef = function(u) {
93
+ return U(u) === d;
94
+ }, D.isFragment = function(u) {
95
+ return U(u) === r;
96
+ }, D.isLazy = function(u) {
97
+ return U(u) === N;
98
+ }, D.isMemo = function(u) {
99
+ return U(u) === P;
100
+ }, D.isPortal = function(u) {
101
+ return U(u) === t;
102
+ }, D.isProfiler = function(u) {
103
+ return U(u) === a;
104
+ }, D.isStrictMode = function(u) {
105
+ return U(u) === l;
106
+ }, D.isSuspense = function(u) {
107
+ return U(u) === C;
108
+ }, D.isValidElementType = function(u) {
109
+ return typeof u == "string" || typeof u == "function" || u === r || u === y || u === a || u === l || u === C || u === k || typeof u == "object" && u !== null && (u.$$typeof === N || u.$$typeof === P || u.$$typeof === h || u.$$typeof === i || u.$$typeof === d || u.$$typeof === F || u.$$typeof === Y || u.$$typeof === Q || u.$$typeof === x);
110
+ }, D.typeOf = U, D;
110
111
  }
111
112
  var M = {};
112
113
  /** @license React v16.13.1
@@ -117,37 +118,37 @@ var M = {};
117
118
  * This source code is licensed under the MIT license found in the
118
119
  * LICENSE file in the root directory of this source tree.
119
120
  */
120
- var at;
121
- function An() {
122
- return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
123
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, g = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, I = e ? Symbol.for("react.suspense") : 60113, B = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, P = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, z = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
124
- function q(c) {
121
+ var rt;
122
+ function On() {
123
+ return rt || (rt = 1, process.env.NODE_ENV !== "production" && function() {
124
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, P = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
125
+ function U(c) {
125
126
  return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
126
- c === r || c === h || c === a || c === l || c === I || c === B || typeof c == "object" && c !== null && (c.$$typeof === P || c.$$typeof === C || c.$$typeof === g || c.$$typeof === o || c.$$typeof === d || c.$$typeof === z || c.$$typeof === Y || c.$$typeof === Q || c.$$typeof === S);
127
+ c === r || c === y || c === a || c === l || c === C || c === k || typeof c == "object" && c !== null && (c.$$typeof === N || c.$$typeof === P || c.$$typeof === h || c.$$typeof === i || c.$$typeof === d || c.$$typeof === F || c.$$typeof === Y || c.$$typeof === Q || c.$$typeof === x);
127
128
  }
128
- function F(c) {
129
+ function q(c) {
129
130
  if (typeof c == "object" && c !== null) {
130
131
  var Z = c.$$typeof;
131
132
  switch (Z) {
132
133
  case n:
133
- var ve = c.type;
134
- switch (ve) {
134
+ var ye = c.type;
135
+ switch (ye) {
135
136
  case v:
136
- case h:
137
+ case y:
137
138
  case r:
138
139
  case a:
139
140
  case l:
140
- case I:
141
- return ve;
141
+ case C:
142
+ return ye;
142
143
  default:
143
- var Qe = ve && ve.$$typeof;
144
- switch (Qe) {
145
- case o:
144
+ var Xe = ye && ye.$$typeof;
145
+ switch (Xe) {
146
+ case i:
146
147
  case d:
148
+ case N:
147
149
  case P:
148
- case C:
149
- case g:
150
- return Qe;
150
+ case h:
151
+ return Xe;
151
152
  default:
152
153
  return Z;
153
154
  }
@@ -157,62 +158,62 @@ function An() {
157
158
  }
158
159
  }
159
160
  }
160
- var p = v, ee = h, re = o, ce = g, pe = n, J = d, se = r, ae = P, b = C, f = t, y = a, x = l, j = I, V = !1;
161
+ var u = v, ee = y, ne = i, le = h, ce = n, J = d, re = r, oe = N, m = P, p = t, g = a, w = l, j = C, V = !1;
161
162
  function G(c) {
162
- return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), s(c) || F(c) === v;
163
+ return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(c) || q(c) === v;
163
164
  }
164
- function s(c) {
165
- return F(c) === h;
165
+ function o(c) {
166
+ return q(c) === y;
166
167
  }
167
- function u(c) {
168
- return F(c) === o;
168
+ function f(c) {
169
+ return q(c) === i;
169
170
  }
170
- function k(c) {
171
- return F(c) === g;
171
+ function A(c) {
172
+ return q(c) === h;
172
173
  }
173
174
  function O(c) {
174
175
  return typeof c == "object" && c !== null && c.$$typeof === n;
175
176
  }
176
- function w(c) {
177
- return F(c) === d;
177
+ function _(c) {
178
+ return q(c) === d;
178
179
  }
179
- function A(c) {
180
- return F(c) === r;
180
+ function R(c) {
181
+ return q(c) === r;
181
182
  }
182
- function _(c) {
183
- return F(c) === P;
183
+ function T(c) {
184
+ return q(c) === N;
184
185
  }
185
- function N(c) {
186
- return F(c) === C;
186
+ function I(c) {
187
+ return q(c) === P;
187
188
  }
188
- function $(c) {
189
- return F(c) === t;
189
+ function B(c) {
190
+ return q(c) === t;
190
191
  }
191
192
  function L(c) {
192
- return F(c) === a;
193
+ return q(c) === a;
193
194
  }
194
- function R(c) {
195
- return F(c) === l;
195
+ function $(c) {
196
+ return q(c) === l;
196
197
  }
197
198
  function W(c) {
198
- return F(c) === I;
199
+ return q(c) === C;
199
200
  }
200
- M.AsyncMode = p, M.ConcurrentMode = ee, M.ContextConsumer = re, M.ContextProvider = ce, M.Element = pe, M.ForwardRef = J, M.Fragment = se, M.Lazy = ae, M.Memo = b, M.Portal = f, M.Profiler = y, M.StrictMode = x, M.Suspense = j, M.isAsyncMode = G, M.isConcurrentMode = s, M.isContextConsumer = u, M.isContextProvider = k, M.isElement = O, M.isForwardRef = w, M.isFragment = A, M.isLazy = _, M.isMemo = N, M.isPortal = $, M.isProfiler = L, M.isStrictMode = R, M.isSuspense = W, M.isValidElementType = q, M.typeOf = F;
201
+ M.AsyncMode = u, M.ConcurrentMode = ee, M.ContextConsumer = ne, M.ContextProvider = le, M.Element = ce, M.ForwardRef = J, M.Fragment = re, M.Lazy = oe, M.Memo = m, M.Portal = p, M.Profiler = g, M.StrictMode = w, M.Suspense = j, M.isAsyncMode = G, M.isConcurrentMode = o, M.isContextConsumer = f, M.isContextProvider = A, M.isElement = O, M.isForwardRef = _, M.isFragment = R, M.isLazy = T, M.isMemo = I, M.isPortal = B, M.isProfiler = L, M.isStrictMode = $, M.isSuspense = W, M.isValidElementType = U, M.typeOf = q;
201
202
  }()), M;
202
203
  }
203
204
  var ot;
204
- function Tt() {
205
- return ot || (ot = 1, process.env.NODE_ENV === "production" ? ye.exports = kn() : ye.exports = An()), ye.exports;
205
+ function _t() {
206
+ return ot || (ot = 1, process.env.NODE_ENV === "production" ? ve.exports = In() : ve.exports = On()), ve.exports;
206
207
  }
207
208
  /*
208
209
  object-assign
209
210
  (c) Sindre Sorhus
210
211
  @license MIT
211
212
  */
212
- var Le, it;
213
- function Rn() {
214
- if (it) return Le;
215
- it = 1;
213
+ var Re, at;
214
+ function An() {
215
+ if (at) return Re;
216
+ at = 1;
216
217
  var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
217
218
  function r(a) {
218
219
  if (a == null)
@@ -226,86 +227,86 @@ function Rn() {
226
227
  var a = new String("abc");
227
228
  if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
228
229
  return !1;
229
- for (var g = {}, o = 0; o < 10; o++)
230
- g["_" + String.fromCharCode(o)] = o;
231
- var v = Object.getOwnPropertyNames(g).map(function(d) {
232
- return g[d];
230
+ for (var h = {}, i = 0; i < 10; i++)
231
+ h["_" + String.fromCharCode(i)] = i;
232
+ var v = Object.getOwnPropertyNames(h).map(function(d) {
233
+ return h[d];
233
234
  });
234
235
  if (v.join("") !== "0123456789")
235
236
  return !1;
236
- var h = {};
237
+ var y = {};
237
238
  return "abcdefghijklmnopqrst".split("").forEach(function(d) {
238
- h[d] = d;
239
- }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
239
+ y[d] = d;
240
+ }), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
240
241
  } catch {
241
242
  return !1;
242
243
  }
243
244
  }
244
- return Le = l() ? Object.assign : function(a, g) {
245
- for (var o, v = r(a), h, d = 1; d < arguments.length; d++) {
246
- o = Object(arguments[d]);
247
- for (var I in o)
248
- n.call(o, I) && (v[I] = o[I]);
245
+ return Re = l() ? Object.assign : function(a, h) {
246
+ for (var i, v = r(a), y, d = 1; d < arguments.length; d++) {
247
+ i = Object(arguments[d]);
248
+ for (var C in i)
249
+ n.call(i, C) && (v[C] = i[C]);
249
250
  if (e) {
250
- h = e(o);
251
- for (var B = 0; B < h.length; B++)
252
- t.call(o, h[B]) && (v[h[B]] = o[h[B]]);
251
+ y = e(i);
252
+ for (var k = 0; k < y.length; k++)
253
+ t.call(i, y[k]) && (v[y[k]] = i[y[k]]);
253
254
  }
254
255
  }
255
256
  return v;
256
- }, Le;
257
+ }, Re;
257
258
  }
258
- var Be, lt;
259
- function Ge() {
260
- if (lt) return Be;
261
- lt = 1;
259
+ var $e, it;
260
+ function Ve() {
261
+ if (it) return $e;
262
+ it = 1;
262
263
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
263
- return Be = e, Be;
264
+ return $e = e, $e;
264
265
  }
265
- var De, ct;
266
- function xt() {
267
- return ct || (ct = 1, De = Function.call.bind(Object.prototype.hasOwnProperty)), De;
266
+ var Be, st;
267
+ function Tt() {
268
+ return st || (st = 1, Be = Function.call.bind(Object.prototype.hasOwnProperty)), Be;
268
269
  }
269
- var Me, pt;
270
- function $n() {
271
- if (pt) return Me;
272
- pt = 1;
270
+ var Le, lt;
271
+ function Rn() {
272
+ if (lt) return Le;
273
+ lt = 1;
273
274
  var e = function() {
274
275
  };
275
276
  if (process.env.NODE_ENV !== "production") {
276
- var n = Ge(), t = {}, r = xt();
277
+ var n = Ve(), t = {}, r = Tt();
277
278
  e = function(a) {
278
- var g = "Warning: " + a;
279
- typeof console < "u" && console.error(g);
279
+ var h = "Warning: " + a;
280
+ typeof console < "u" && console.error(h);
280
281
  try {
281
- throw new Error(g);
282
+ throw new Error(h);
282
283
  } catch {
283
284
  }
284
285
  };
285
286
  }
286
- function l(a, g, o, v, h) {
287
+ function l(a, h, i, v, y) {
287
288
  if (process.env.NODE_ENV !== "production") {
288
289
  for (var d in a)
289
290
  if (r(a, d)) {
290
- var I;
291
+ var C;
291
292
  try {
292
293
  if (typeof a[d] != "function") {
293
- var B = Error(
294
- (v || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
294
+ var k = Error(
295
+ (v || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
295
296
  );
296
- throw B.name = "Invariant Violation", B;
297
+ throw k.name = "Invariant Violation", k;
297
298
  }
298
- I = a[d](g, d, v, o, null, n);
299
- } catch (P) {
300
- I = P;
299
+ C = a[d](h, d, v, i, null, n);
300
+ } catch (N) {
301
+ C = N;
301
302
  }
302
- if (I && !(I instanceof Error) && e(
303
- (v || "React class") + ": type specification of " + o + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof I + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
304
- ), I instanceof Error && !(I.message in t)) {
305
- t[I.message] = !0;
306
- var C = h ? h() : "";
303
+ if (C && !(C instanceof Error) && e(
304
+ (v || "React class") + ": type specification of " + i + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
305
+ ), C instanceof Error && !(C.message in t)) {
306
+ t[C.message] = !0;
307
+ var P = y ? y() : "";
307
308
  e(
308
- "Failed " + o + " type: " + I.message + (C ?? "")
309
+ "Failed " + i + " type: " + C.message + (P ?? "")
309
310
  );
310
311
  }
311
312
  }
@@ -313,33 +314,33 @@ function $n() {
313
314
  }
314
315
  return l.resetWarningCache = function() {
315
316
  process.env.NODE_ENV !== "production" && (t = {});
316
- }, Me = l, Me;
317
+ }, Le = l, Le;
317
318
  }
318
- var je, dt;
319
- function Ln() {
320
- if (dt) return je;
321
- dt = 1;
322
- var e = Tt(), n = Rn(), t = Ge(), r = xt(), l = $n(), a = function() {
319
+ var ke, ct;
320
+ function $n() {
321
+ if (ct) return ke;
322
+ ct = 1;
323
+ var e = _t(), n = An(), t = Ve(), r = Tt(), l = Rn(), a = function() {
323
324
  };
324
- process.env.NODE_ENV !== "production" && (a = function(o) {
325
- var v = "Warning: " + o;
325
+ process.env.NODE_ENV !== "production" && (a = function(i) {
326
+ var v = "Warning: " + i;
326
327
  typeof console < "u" && console.error(v);
327
328
  try {
328
329
  throw new Error(v);
329
330
  } catch {
330
331
  }
331
332
  });
332
- function g() {
333
+ function h() {
333
334
  return null;
334
335
  }
335
- return je = function(o, v) {
336
- var h = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
337
- function I(s) {
338
- var u = s && (h && s[h] || s[d]);
339
- if (typeof u == "function")
340
- return u;
336
+ return ke = function(i, v) {
337
+ var y = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
338
+ function C(o) {
339
+ var f = o && (y && o[y] || o[d]);
340
+ if (typeof f == "function")
341
+ return f;
341
342
  }
342
- var B = "<<anonymous>>", C = {
343
+ var k = "<<anonymous>>", P = {
343
344
  array: Y("array"),
344
345
  bigint: Y("bigint"),
345
346
  bool: Y("boolean"),
@@ -349,245 +350,245 @@ function Ln() {
349
350
  string: Y("string"),
350
351
  symbol: Y("symbol"),
351
352
  any: Q(),
352
- arrayOf: q,
353
- element: F(),
354
- elementType: p(),
353
+ arrayOf: U,
354
+ element: q(),
355
+ elementType: u(),
355
356
  instanceOf: ee,
356
357
  node: J(),
357
- objectOf: ce,
358
- oneOf: re,
359
- oneOfType: pe,
360
- shape: ae,
361
- exact: b
358
+ objectOf: le,
359
+ oneOf: ne,
360
+ oneOfType: ce,
361
+ shape: oe,
362
+ exact: m
362
363
  };
363
- function P(s, u) {
364
- return s === u ? s !== 0 || 1 / s === 1 / u : s !== s && u !== u;
364
+ function N(o, f) {
365
+ return o === f ? o !== 0 || 1 / o === 1 / f : o !== o && f !== f;
365
366
  }
366
- function S(s, u) {
367
- this.message = s, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
367
+ function x(o, f) {
368
+ this.message = o, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
368
369
  }
369
- S.prototype = Error.prototype;
370
- function z(s) {
370
+ x.prototype = Error.prototype;
371
+ function F(o) {
371
372
  if (process.env.NODE_ENV !== "production")
372
- var u = {}, k = 0;
373
- function O(A, _, N, $, L, R, W) {
374
- if ($ = $ || B, R = R || N, W !== t) {
373
+ var f = {}, A = 0;
374
+ function O(R, T, I, B, L, $, W) {
375
+ if (B = B || k, $ = $ || I, W !== t) {
375
376
  if (v) {
376
377
  var c = new Error(
377
378
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
378
379
  );
379
380
  throw c.name = "Invariant Violation", c;
380
381
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
381
- var Z = $ + ":" + N;
382
- !u[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
383
- k < 3 && (a(
384
- "You are manually calling a React.PropTypes validation function for the `" + R + "` prop on `" + $ + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
385
- ), u[Z] = !0, k++);
382
+ var Z = B + ":" + I;
383
+ !f[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
384
+ A < 3 && (a(
385
+ "You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
386
+ ), f[Z] = !0, A++);
386
387
  }
387
388
  }
388
- return _[N] == null ? A ? _[N] === null ? new S("The " + L + " `" + R + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new S("The " + L + " `" + R + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : s(_, N, $, L, R);
389
+ return T[I] == null ? R ? T[I] === null ? new x("The " + L + " `" + $ + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new x("The " + L + " `" + $ + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : o(T, I, B, L, $);
389
390
  }
390
- var w = O.bind(null, !1);
391
- return w.isRequired = O.bind(null, !0), w;
391
+ var _ = O.bind(null, !1);
392
+ return _.isRequired = O.bind(null, !0), _;
392
393
  }
393
- function Y(s) {
394
- function u(k, O, w, A, _, N) {
395
- var $ = k[O], L = x($);
396
- if (L !== s) {
397
- var R = j($);
398
- return new S(
399
- "Invalid " + A + " `" + _ + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected ") + ("`" + s + "`."),
400
- { expectedType: s }
394
+ function Y(o) {
395
+ function f(A, O, _, R, T, I) {
396
+ var B = A[O], L = w(B);
397
+ if (L !== o) {
398
+ var $ = j(B);
399
+ return new x(
400
+ "Invalid " + R + " `" + T + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" + o + "`."),
401
+ { expectedType: o }
401
402
  );
402
403
  }
403
404
  return null;
404
405
  }
405
- return z(u);
406
+ return F(f);
406
407
  }
407
408
  function Q() {
408
- return z(g);
409
+ return F(h);
409
410
  }
410
- function q(s) {
411
- function u(k, O, w, A, _) {
412
- if (typeof s != "function")
413
- return new S("Property `" + _ + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
414
- var N = k[O];
415
- if (!Array.isArray(N)) {
416
- var $ = x(N);
417
- return new S("Invalid " + A + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + w + "`, expected an array."));
411
+ function U(o) {
412
+ function f(A, O, _, R, T) {
413
+ if (typeof o != "function")
414
+ return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
415
+ var I = A[O];
416
+ if (!Array.isArray(I)) {
417
+ var B = w(I);
418
+ return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an array."));
418
419
  }
419
- for (var L = 0; L < N.length; L++) {
420
- var R = s(N, L, w, A, _ + "[" + L + "]", t);
421
- if (R instanceof Error)
422
- return R;
420
+ for (var L = 0; L < I.length; L++) {
421
+ var $ = o(I, L, _, R, T + "[" + L + "]", t);
422
+ if ($ instanceof Error)
423
+ return $;
423
424
  }
424
425
  return null;
425
426
  }
426
- return z(u);
427
+ return F(f);
427
428
  }
428
- function F() {
429
- function s(u, k, O, w, A) {
430
- var _ = u[k];
431
- if (!o(_)) {
432
- var N = x(_);
433
- return new S("Invalid " + w + " `" + A + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected a single ReactElement."));
429
+ function q() {
430
+ function o(f, A, O, _, R) {
431
+ var T = f[A];
432
+ if (!i(T)) {
433
+ var I = w(T);
434
+ return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement."));
434
435
  }
435
436
  return null;
436
437
  }
437
- return z(s);
438
+ return F(o);
438
439
  }
439
- function p() {
440
- function s(u, k, O, w, A) {
441
- var _ = u[k];
442
- if (!e.isValidElementType(_)) {
443
- var N = x(_);
444
- return new S("Invalid " + w + " `" + A + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected a single ReactElement type."));
440
+ function u() {
441
+ function o(f, A, O, _, R) {
442
+ var T = f[A];
443
+ if (!e.isValidElementType(T)) {
444
+ var I = w(T);
445
+ return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement type."));
445
446
  }
446
447
  return null;
447
448
  }
448
- return z(s);
449
+ return F(o);
449
450
  }
450
- function ee(s) {
451
- function u(k, O, w, A, _) {
452
- if (!(k[O] instanceof s)) {
453
- var N = s.name || B, $ = G(k[O]);
454
- return new S("Invalid " + A + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + w + "`, expected ") + ("instance of `" + N + "`."));
451
+ function ee(o) {
452
+ function f(A, O, _, R, T) {
453
+ if (!(A[O] instanceof o)) {
454
+ var I = o.name || k, B = G(A[O]);
455
+ return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected ") + ("instance of `" + I + "`."));
455
456
  }
456
457
  return null;
457
458
  }
458
- return z(u);
459
+ return F(f);
459
460
  }
460
- function re(s) {
461
- if (!Array.isArray(s))
461
+ function ne(o) {
462
+ if (!Array.isArray(o))
462
463
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
463
464
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
464
- ) : a("Invalid argument supplied to oneOf, expected an array.")), g;
465
- function u(k, O, w, A, _) {
466
- for (var N = k[O], $ = 0; $ < s.length; $++)
467
- if (P(N, s[$]))
465
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), h;
466
+ function f(A, O, _, R, T) {
467
+ for (var I = A[O], B = 0; B < o.length; B++)
468
+ if (N(I, o[B]))
468
469
  return null;
469
- var L = JSON.stringify(s, function(W, c) {
470
+ var L = JSON.stringify(o, function(W, c) {
470
471
  var Z = j(c);
471
472
  return Z === "symbol" ? String(c) : c;
472
473
  });
473
- return new S("Invalid " + A + " `" + _ + "` of value `" + String(N) + "` " + ("supplied to `" + w + "`, expected one of " + L + "."));
474
+ return new x("Invalid " + R + " `" + T + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + L + "."));
474
475
  }
475
- return z(u);
476
+ return F(f);
476
477
  }
477
- function ce(s) {
478
- function u(k, O, w, A, _) {
479
- if (typeof s != "function")
480
- return new S("Property `" + _ + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
481
- var N = k[O], $ = x(N);
482
- if ($ !== "object")
483
- return new S("Invalid " + A + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + w + "`, expected an object."));
484
- for (var L in N)
485
- if (r(N, L)) {
486
- var R = s(N, L, w, A, _ + "." + L, t);
487
- if (R instanceof Error)
488
- return R;
478
+ function le(o) {
479
+ function f(A, O, _, R, T) {
480
+ if (typeof o != "function")
481
+ return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
482
+ var I = A[O], B = w(I);
483
+ if (B !== "object")
484
+ return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an object."));
485
+ for (var L in I)
486
+ if (r(I, L)) {
487
+ var $ = o(I, L, _, R, T + "." + L, t);
488
+ if ($ instanceof Error)
489
+ return $;
489
490
  }
490
491
  return null;
491
492
  }
492
- return z(u);
493
+ return F(f);
493
494
  }
494
- function pe(s) {
495
- if (!Array.isArray(s))
496
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), g;
497
- for (var u = 0; u < s.length; u++) {
498
- var k = s[u];
499
- if (typeof k != "function")
495
+ function ce(o) {
496
+ if (!Array.isArray(o))
497
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), h;
498
+ for (var f = 0; f < o.length; f++) {
499
+ var A = o[f];
500
+ if (typeof A != "function")
500
501
  return a(
501
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(k) + " at index " + u + "."
502
- ), g;
502
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(A) + " at index " + f + "."
503
+ ), h;
503
504
  }
504
- function O(w, A, _, N, $) {
505
- for (var L = [], R = 0; R < s.length; R++) {
506
- var W = s[R], c = W(w, A, _, N, $, t);
505
+ function O(_, R, T, I, B) {
506
+ for (var L = [], $ = 0; $ < o.length; $++) {
507
+ var W = o[$], c = W(_, R, T, I, B, t);
507
508
  if (c == null)
508
509
  return null;
509
510
  c.data && r(c.data, "expectedType") && L.push(c.data.expectedType);
510
511
  }
511
512
  var Z = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
512
- return new S("Invalid " + N + " `" + $ + "` supplied to " + ("`" + _ + "`" + Z + "."));
513
+ return new x("Invalid " + I + " `" + B + "` supplied to " + ("`" + T + "`" + Z + "."));
513
514
  }
514
- return z(O);
515
+ return F(O);
515
516
  }
516
517
  function J() {
517
- function s(u, k, O, w, A) {
518
- return f(u[k]) ? null : new S("Invalid " + w + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
518
+ function o(f, A, O, _, R) {
519
+ return p(f[A]) ? null : new x("Invalid " + _ + " `" + R + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
519
520
  }
520
- return z(s);
521
+ return F(o);
521
522
  }
522
- function se(s, u, k, O, w) {
523
- return new S(
524
- (s || "React class") + ": " + u + " type `" + k + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
523
+ function re(o, f, A, O, _) {
524
+ return new x(
525
+ (o || "React class") + ": " + f + " type `" + A + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
525
526
  );
526
527
  }
527
- function ae(s) {
528
- function u(k, O, w, A, _) {
529
- var N = k[O], $ = x(N);
530
- if ($ !== "object")
531
- return new S("Invalid " + A + " `" + _ + "` of type `" + $ + "` " + ("supplied to `" + w + "`, expected `object`."));
532
- for (var L in s) {
533
- var R = s[L];
534
- if (typeof R != "function")
535
- return se(w, A, _, L, j(R));
536
- var W = R(N, L, w, A, _ + "." + L, t);
528
+ function oe(o) {
529
+ function f(A, O, _, R, T) {
530
+ var I = A[O], B = w(I);
531
+ if (B !== "object")
532
+ return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
533
+ for (var L in o) {
534
+ var $ = o[L];
535
+ if (typeof $ != "function")
536
+ return re(_, R, T, L, j($));
537
+ var W = $(I, L, _, R, T + "." + L, t);
537
538
  if (W)
538
539
  return W;
539
540
  }
540
541
  return null;
541
542
  }
542
- return z(u);
543
+ return F(f);
543
544
  }
544
- function b(s) {
545
- function u(k, O, w, A, _) {
546
- var N = k[O], $ = x(N);
547
- if ($ !== "object")
548
- return new S("Invalid " + A + " `" + _ + "` of type `" + $ + "` " + ("supplied to `" + w + "`, expected `object`."));
549
- var L = n({}, k[O], s);
550
- for (var R in L) {
551
- var W = s[R];
552
- if (r(s, R) && typeof W != "function")
553
- return se(w, A, _, R, j(W));
545
+ function m(o) {
546
+ function f(A, O, _, R, T) {
547
+ var I = A[O], B = w(I);
548
+ if (B !== "object")
549
+ return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
550
+ var L = n({}, A[O], o);
551
+ for (var $ in L) {
552
+ var W = o[$];
553
+ if (r(o, $) && typeof W != "function")
554
+ return re(_, R, T, $, j(W));
554
555
  if (!W)
555
- return new S(
556
- "Invalid " + A + " `" + _ + "` key `" + R + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(k[O], null, " ") + `
557
- Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
556
+ return new x(
557
+ "Invalid " + R + " `" + T + "` key `" + $ + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(A[O], null, " ") + `
558
+ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
558
559
  );
559
- var c = W(N, R, w, A, _ + "." + R, t);
560
+ var c = W(I, $, _, R, T + "." + $, t);
560
561
  if (c)
561
562
  return c;
562
563
  }
563
564
  return null;
564
565
  }
565
- return z(u);
566
+ return F(f);
566
567
  }
567
- function f(s) {
568
- switch (typeof s) {
568
+ function p(o) {
569
+ switch (typeof o) {
569
570
  case "number":
570
571
  case "string":
571
572
  case "undefined":
572
573
  return !0;
573
574
  case "boolean":
574
- return !s;
575
+ return !o;
575
576
  case "object":
576
- if (Array.isArray(s))
577
- return s.every(f);
578
- if (s === null || o(s))
577
+ if (Array.isArray(o))
578
+ return o.every(p);
579
+ if (o === null || i(o))
579
580
  return !0;
580
- var u = I(s);
581
- if (u) {
582
- var k = u.call(s), O;
583
- if (u !== s.entries) {
584
- for (; !(O = k.next()).done; )
585
- if (!f(O.value))
581
+ var f = C(o);
582
+ if (f) {
583
+ var A = f.call(o), O;
584
+ if (f !== o.entries) {
585
+ for (; !(O = A.next()).done; )
586
+ if (!p(O.value))
586
587
  return !1;
587
588
  } else
588
- for (; !(O = k.next()).done; ) {
589
- var w = O.value;
590
- if (w && !f(w[1]))
589
+ for (; !(O = A.next()).done; ) {
590
+ var _ = O.value;
591
+ if (_ && !p(_[1]))
591
592
  return !1;
592
593
  }
593
594
  } else
@@ -597,61 +598,61 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
597
598
  return !1;
598
599
  }
599
600
  }
600
- function y(s, u) {
601
- return s === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
601
+ function g(o, f) {
602
+ return o === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
602
603
  }
603
- function x(s) {
604
- var u = typeof s;
605
- return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : y(u, s) ? "symbol" : u;
604
+ function w(o) {
605
+ var f = typeof o;
606
+ return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : g(f, o) ? "symbol" : f;
606
607
  }
607
- function j(s) {
608
- if (typeof s > "u" || s === null)
609
- return "" + s;
610
- var u = x(s);
611
- if (u === "object") {
612
- if (s instanceof Date)
608
+ function j(o) {
609
+ if (typeof o > "u" || o === null)
610
+ return "" + o;
611
+ var f = w(o);
612
+ if (f === "object") {
613
+ if (o instanceof Date)
613
614
  return "date";
614
- if (s instanceof RegExp)
615
+ if (o instanceof RegExp)
615
616
  return "regexp";
616
617
  }
617
- return u;
618
+ return f;
618
619
  }
619
- function V(s) {
620
- var u = j(s);
621
- switch (u) {
620
+ function V(o) {
621
+ var f = j(o);
622
+ switch (f) {
622
623
  case "array":
623
624
  case "object":
624
- return "an " + u;
625
+ return "an " + f;
625
626
  case "boolean":
626
627
  case "date":
627
628
  case "regexp":
628
- return "a " + u;
629
+ return "a " + f;
629
630
  default:
630
- return u;
631
+ return f;
631
632
  }
632
633
  }
633
- function G(s) {
634
- return !s.constructor || !s.constructor.name ? B : s.constructor.name;
634
+ function G(o) {
635
+ return !o.constructor || !o.constructor.name ? k : o.constructor.name;
635
636
  }
636
- return C.checkPropTypes = l, C.resetWarningCache = l.resetWarningCache, C.PropTypes = C, C;
637
- }, je;
637
+ return P.checkPropTypes = l, P.resetWarningCache = l.resetWarningCache, P.PropTypes = P, P;
638
+ }, ke;
638
639
  }
639
- var ze, ut;
640
+ var De, ut;
640
641
  function Bn() {
641
- if (ut) return ze;
642
+ if (ut) return De;
642
643
  ut = 1;
643
- var e = Ge();
644
+ var e = Ve();
644
645
  function n() {
645
646
  }
646
647
  function t() {
647
648
  }
648
- return t.resetWarningCache = n, ze = function() {
649
- function r(g, o, v, h, d, I) {
650
- if (I !== e) {
651
- var B = new Error(
649
+ return t.resetWarningCache = n, De = function() {
650
+ function r(h, i, v, y, d, C) {
651
+ if (C !== e) {
652
+ var k = new Error(
652
653
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
653
654
  );
654
- throw B.name = "Invariant Violation", B;
655
+ throw k.name = "Invariant Violation", k;
655
656
  }
656
657
  }
657
658
  r.isRequired = r;
@@ -682,84 +683,84 @@ function Bn() {
682
683
  resetWarningCache: n
683
684
  };
684
685
  return a.PropTypes = a, a;
685
- }, ze;
686
+ }, De;
686
687
  }
687
688
  if (process.env.NODE_ENV !== "production") {
688
- var Dn = Tt(), Mn = !0;
689
- Ye.exports = Ln()(Dn.isElement, Mn);
689
+ var Ln = _t(), kn = !0;
690
+ Ue.exports = $n()(Ln.isElement, kn);
690
691
  } else
691
- Ye.exports = Bn()();
692
- var jn = Ye.exports;
693
- const m = /* @__PURE__ */ On(jn);
694
- function Xe(e) {
692
+ Ue.exports = Bn()();
693
+ var Dn = Ue.exports;
694
+ const b = /* @__PURE__ */ Nn(Dn);
695
+ function He(e) {
695
696
  return (n) => !!n.type && n.type.tabsRole === e;
696
697
  }
697
- const he = Xe("Tab"), Oe = Xe("TabList"), ke = Xe("TabPanel");
698
- function zn(e) {
699
- return he(e) || Oe(e) || ke(e);
698
+ const he = He("Tab"), Ne = He("TabList"), Ie = He("TabPanel");
699
+ function Mn(e) {
700
+ return he(e) || Ne(e) || Ie(e);
700
701
  }
701
- function Ve(e, n) {
702
- return _t.map(e, (t) => t === null ? null : zn(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" ? _e(t, { ...t.props, children: Ve(t.props.children, n) }) : t);
702
+ function ze(e, n) {
703
+ return gt.map(e, (t) => t === null ? null : Mn(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" ? _e(t, { ...t.props, children: ze(t.props.children, n) }) : t);
703
704
  }
704
- function Ie(e, n) {
705
- return _t.forEach(e, (t) => {
706
- t !== null && (he(t) || ke(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" && (Oe(t) && n(t), Ie(t.props.children, n)));
705
+ function xe(e, n) {
706
+ return gt.forEach(e, (t) => {
707
+ t !== null && (he(t) || Ie(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" && (Ne(t) && n(t), xe(t.props.children, n)));
707
708
  });
708
709
  }
709
710
  function Et(e, n, t) {
710
- let r, l = 0, a = 0, g = !1;
711
- const o = [], v = e[n];
712
- return Ie(v, (h) => {
713
- Oe(h) && (h.props && h.props.children && typeof h.props.children == "object" && Ie(h.props.children, (d) => o.push(d)), g && (r = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")), g = !0), he(h) ? ((!g || o.indexOf(h) === -1) && (r = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")), l++) : ke(h) && a++;
711
+ let r, l = 0, a = 0, h = !1;
712
+ const i = [], v = e[n];
713
+ return xe(v, (y) => {
714
+ Ne(y) && (y.props && y.props.children && typeof y.props.children == "object" && xe(y.props.children, (d) => i.push(d)), h && (r = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")), h = !0), he(y) ? ((!h || i.indexOf(y) === -1) && (r = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")), l++) : Ie(y) && a++;
714
715
  }), !r && l !== a && (r = new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${t}\`. Received ${l} 'Tab' and ${a} 'TabPanel'.`)), r;
715
716
  }
716
- function Fn(e, n, t, r, l) {
717
- const a = e[n], g = l || n;
718
- let o = null;
719
- return a && typeof a != "function" ? o = new Error(`Invalid ${r} \`${g}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`function\`.`) : e.selectedIndex != null && a == null && (o = new Error(`The ${r} \`${g}\` is marked as required in \`${t}\`, but its value is \`undefined\` or \`null\`.
717
+ function jn(e, n, t, r, l) {
718
+ const a = e[n], h = l || n;
719
+ let i = null;
720
+ return a && typeof a != "function" ? i = new Error(`Invalid ${r} \`${h}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`function\`.`) : e.selectedIndex != null && a == null && (i = new Error(`The ${r} \`${h}\` is marked as required in \`${t}\`, but its value is \`undefined\` or \`null\`.
720
721
  \`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.
721
- If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)), o;
722
+ If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)), i;
722
723
  }
723
- function qn(e, n, t, r, l) {
724
- const a = e[n], g = l || n;
725
- let o = null;
724
+ function Fn(e, n, t, r, l) {
725
+ const a = e[n], h = l || n;
726
+ let i = null;
726
727
  if (a != null && typeof a != "number")
727
- o = new Error(`Invalid ${r} \`${g}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`number\`.`);
728
+ i = new Error(`Invalid ${r} \`${h}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`number\`.`);
728
729
  else if (e.defaultIndex != null && a != null)
729
- return new Error(`The ${r} \`${g}\` cannot be used together with \`defaultIndex\` in \`${t}\`.
730
- Either remove \`${g}\` to let \`${t}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);
731
- return o;
730
+ return new Error(`The ${r} \`${h}\` cannot be used together with \`defaultIndex\` in \`${t}\`.
731
+ Either remove \`${h}\` to let \`${t}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);
732
+ return i;
732
733
  }
733
- function St(e) {
734
+ function wt(e) {
734
735
  var n, t, r = "";
735
736
  if (typeof e == "string" || typeof e == "number") r += e;
736
737
  else if (typeof e == "object") if (Array.isArray(e)) {
737
738
  var l = e.length;
738
- for (n = 0; n < l; n++) e[n] && (t = St(e[n])) && (r && (r += " "), r += t);
739
+ for (n = 0; n < l; n++) e[n] && (t = wt(e[n])) && (r && (r += " "), r += t);
739
740
  } else for (t in e) e[t] && (r && (r += " "), r += t);
740
741
  return r;
741
742
  }
742
- function Ae() {
743
- for (var e, n, t = 0, r = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (n = St(e)) && (r && (r += " "), r += n);
743
+ function Oe() {
744
+ for (var e, n, t = 0, r = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (n = wt(e)) && (r && (r += " "), r += n);
744
745
  return r;
745
746
  }
746
- function It(e) {
747
+ function St(e) {
747
748
  let n = 0;
748
- return Ie(e, (t) => {
749
+ return xe(e, (t) => {
749
750
  he(t) && n++;
750
751
  }), n;
751
752
  }
752
- function Ct(e) {
753
+ function xt(e) {
753
754
  return e && "getAttribute" in e;
754
755
  }
755
- function ft(e) {
756
- return Ct(e) && e.getAttribute("data-rttab");
756
+ function dt(e) {
757
+ return xt(e) && e.getAttribute("data-rttab");
757
758
  }
758
- function oe(e) {
759
- return Ct(e) && e.getAttribute("aria-disabled") === "true";
759
+ function ae(e) {
760
+ return xt(e) && e.getAttribute("aria-disabled") === "true";
760
761
  }
761
762
  let Ce;
762
- function Un(e) {
763
+ function qn(e) {
763
764
  const n = e || (typeof window < "u" ? window : void 0);
764
765
  try {
765
766
  Ce = !!(typeof n < "u" && n.document && n.document.activeElement);
@@ -767,166 +768,166 @@ function Un(e) {
767
768
  Ce = !1;
768
769
  }
769
770
  }
770
- const Wn = { className: "react-tabs", focus: !1 }, Yn = process.env.NODE_ENV !== "production" ? { children: Et, direction: m.oneOf(["rtl", "ltr"]), className: m.oneOfType([m.string, m.array, m.object]), disabledTabClassName: m.string, disableUpDownKeys: m.bool, disableLeftRightKeys: m.bool, domRef: m.func, focus: m.bool, forceRenderTabPanel: m.bool, onSelect: m.func.isRequired, selectedIndex: m.number.isRequired, selectedTabClassName: m.string, selectedTabPanelClassName: m.string, environment: m.object } : {}, Pt = (e) => {
771
+ const Un = { className: "react-tabs", focus: !1 }, zn = process.env.NODE_ENV !== "production" ? { children: Et, direction: b.oneOf(["rtl", "ltr"]), className: b.oneOfType([b.string, b.array, b.object]), disabledTabClassName: b.string, disableUpDownKeys: b.bool, disableLeftRightKeys: b.bool, domRef: b.func, focus: b.bool, forceRenderTabPanel: b.bool, onSelect: b.func.isRequired, selectedIndex: b.number.isRequired, selectedTabClassName: b.string, selectedTabPanelClassName: b.string, environment: b.object } : {}, Ct = (e) => {
771
772
  let n = Te([]), t = Te([]);
772
773
  const r = Te();
773
- function l(b, f) {
774
- if (b < 0 || b >= h()) return;
775
- const { onSelect: y, selectedIndex: x } = e;
776
- y(b, x, f);
774
+ function l(m, p) {
775
+ if (m < 0 || m >= y()) return;
776
+ const { onSelect: g, selectedIndex: w } = e;
777
+ g(m, w, p);
777
778
  }
778
- function a(b) {
779
- const f = h();
780
- for (let y = b + 1; y < f; y++)
781
- if (!oe(d(y)))
782
- return y;
783
- for (let y = 0; y < b; y++)
784
- if (!oe(d(y)))
785
- return y;
786
- return b;
779
+ function a(m) {
780
+ const p = y();
781
+ for (let g = m + 1; g < p; g++)
782
+ if (!ae(d(g)))
783
+ return g;
784
+ for (let g = 0; g < m; g++)
785
+ if (!ae(d(g)))
786
+ return g;
787
+ return m;
787
788
  }
788
- function g(b) {
789
- let f = b;
790
- for (; f--; )
791
- if (!oe(d(f)))
792
- return f;
793
- for (f = h(); f-- > b; )
794
- if (!oe(d(f)))
795
- return f;
796
- return b;
789
+ function h(m) {
790
+ let p = m;
791
+ for (; p--; )
792
+ if (!ae(d(p)))
793
+ return p;
794
+ for (p = y(); p-- > m; )
795
+ if (!ae(d(p)))
796
+ return p;
797
+ return m;
797
798
  }
798
- function o() {
799
- const b = h();
800
- for (let f = 0; f < b; f++)
801
- if (!oe(d(f)))
802
- return f;
799
+ function i() {
800
+ const m = y();
801
+ for (let p = 0; p < m; p++)
802
+ if (!ae(d(p)))
803
+ return p;
803
804
  return null;
804
805
  }
805
806
  function v() {
806
- let b = h();
807
- for (; b--; )
808
- if (!oe(d(b)))
809
- return b;
807
+ let m = y();
808
+ for (; m--; )
809
+ if (!ae(d(m)))
810
+ return m;
810
811
  return null;
811
812
  }
812
- function h() {
813
- const { children: b } = e;
814
- return It(b);
813
+ function y() {
814
+ const { children: m } = e;
815
+ return St(m);
815
816
  }
816
- function d(b) {
817
- return n.current[`tabs-${b}`];
817
+ function d(m) {
818
+ return n.current[`tabs-${m}`];
818
819
  }
819
- function I() {
820
- let b = 0;
821
- const { children: f, disabledTabClassName: y, focus: x, forceRenderTabPanel: j, selectedIndex: V, selectedTabClassName: G, selectedTabPanelClassName: s, environment: u } = e;
820
+ function C() {
821
+ let m = 0;
822
+ const { children: p, disabledTabClassName: g, focus: w, forceRenderTabPanel: j, selectedIndex: V, selectedTabClassName: G, selectedTabPanelClassName: o, environment: f } = e;
822
823
  t.current = t.current || [];
823
- let k = t.current.length - h();
824
- const O = rn();
825
- for (; k++ < 0; )
824
+ let A = t.current.length - y();
825
+ const O = tn();
826
+ for (; A++ < 0; )
826
827
  t.current.push(`${O}${t.current.length}`);
827
- return Ve(f, (w) => {
828
- let A = w;
829
- if (Oe(w)) {
830
- let _ = 0, N = !1;
831
- Ce == null && Un(u);
832
- const $ = u || (typeof window < "u" ? window : void 0);
833
- Ce && $ && (N = me.Children.toArray(w.props.children).filter(he).some((L, R) => $.document.activeElement === d(R))), A = _e(w, { children: Ve(w.props.children, (L) => {
834
- const R = `tabs-${_}`, W = V === _, c = { tabRef: (Z) => {
835
- n.current[R] = Z;
836
- }, id: t.current[_], selected: W, focus: W && (x || N) };
837
- return G && (c.selectedClassName = G), y && (c.disabledClassName = y), _++, _e(L, c);
828
+ return ze(p, (_) => {
829
+ let R = _;
830
+ if (Ne(_)) {
831
+ let T = 0, I = !1;
832
+ Ce == null && qn(f);
833
+ const B = f || (typeof window < "u" ? window : void 0);
834
+ Ce && B && (I = pe.Children.toArray(_.props.children).filter(he).some((L, $) => B.document.activeElement === d($))), R = _e(_, { children: ze(_.props.children, (L) => {
835
+ const $ = `tabs-${T}`, W = V === T, c = { tabRef: (Z) => {
836
+ n.current[$] = Z;
837
+ }, id: t.current[T], selected: W, focus: W && (w || I) };
838
+ return G && (c.selectedClassName = G), g && (c.disabledClassName = g), T++, _e(L, c);
838
839
  }) });
839
- } else if (ke(w)) {
840
- const _ = { id: t.current[b], selected: V === b };
841
- j && (_.forceRender = j), s && (_.selectedClassName = s), b++, A = _e(w, _);
840
+ } else if (Ie(_)) {
841
+ const T = { id: t.current[m], selected: V === m };
842
+ j && (T.forceRender = j), o && (T.selectedClassName = o), m++, R = _e(_, T);
842
843
  }
843
- return A;
844
+ return R;
844
845
  });
845
846
  }
846
- function B(b) {
847
- const { direction: f, disableUpDownKeys: y, disableLeftRightKeys: x } = e;
848
- if (P(b.target)) {
847
+ function k(m) {
848
+ const { direction: p, disableUpDownKeys: g, disableLeftRightKeys: w } = e;
849
+ if (N(m.target)) {
849
850
  let { selectedIndex: j } = e, V = !1, G = !1;
850
- (b.code === "Space" || b.keyCode === 32 || b.code === "Enter" || b.keyCode === 13) && (V = !0, G = !1, C(b)), !x && (b.keyCode === 37 || b.code === "ArrowLeft") || !y && (b.keyCode === 38 || b.code === "ArrowUp") ? (f === "rtl" ? j = a(j) : j = g(j), V = !0, G = !0) : !x && (b.keyCode === 39 || b.code === "ArrowRight") || !y && (b.keyCode === 40 || b.code === "ArrowDown") ? (f === "rtl" ? j = g(j) : j = a(j), V = !0, G = !0) : b.keyCode === 35 || b.code === "End" ? (j = v(), V = !0, G = !0) : (b.keyCode === 36 || b.code === "Home") && (j = o(), V = !0, G = !0), V && b.preventDefault(), G && l(j, b);
851
+ (m.code === "Space" || m.keyCode === 32 || m.code === "Enter" || m.keyCode === 13) && (V = !0, G = !1, P(m)), !w && (m.keyCode === 37 || m.code === "ArrowLeft") || !g && (m.keyCode === 38 || m.code === "ArrowUp") ? (p === "rtl" ? j = a(j) : j = h(j), V = !0, G = !0) : !w && (m.keyCode === 39 || m.code === "ArrowRight") || !g && (m.keyCode === 40 || m.code === "ArrowDown") ? (p === "rtl" ? j = h(j) : j = a(j), V = !0, G = !0) : m.keyCode === 35 || m.code === "End" ? (j = v(), V = !0, G = !0) : (m.keyCode === 36 || m.code === "Home") && (j = i(), V = !0, G = !0), V && m.preventDefault(), G && l(j, m);
851
852
  }
852
853
  }
853
- function C(b) {
854
- let f = b.target;
854
+ function P(m) {
855
+ let p = m.target;
855
856
  do
856
- if (P(f)) {
857
- if (oe(f))
857
+ if (N(p)) {
858
+ if (ae(p))
858
859
  return;
859
- const y = [].slice.call(f.parentNode.children).filter(ft).indexOf(f);
860
- l(y, b);
860
+ const g = [].slice.call(p.parentNode.children).filter(dt).indexOf(p);
861
+ l(g, m);
861
862
  return;
862
863
  }
863
- while ((f = f.parentNode) != null);
864
+ while ((p = p.parentNode) != null);
864
865
  }
865
- function P(b) {
866
- if (!ft(b))
866
+ function N(m) {
867
+ if (!dt(m))
867
868
  return !1;
868
- let f = b.parentElement;
869
+ let p = m.parentElement;
869
870
  do {
870
- if (f === r.current) return !0;
871
- if (f.getAttribute("data-rttabs")) break;
872
- f = f.parentElement;
873
- } while (f);
871
+ if (p === r.current) return !0;
872
+ if (p.getAttribute("data-rttabs")) break;
873
+ p = p.parentElement;
874
+ } while (p);
874
875
  return !1;
875
876
  }
876
- const { children: S, className: z, disabledTabClassName: Y, domRef: Q, focus: q, forceRenderTabPanel: F, onSelect: p, selectedIndex: ee, selectedTabClassName: re, selectedTabPanelClassName: ce, environment: pe, disableUpDownKeys: J, disableLeftRightKeys: se, ...ae } = { ...Wn, ...e };
877
- return me.createElement("div", Object.assign({}, ae, { className: Ae(z), onClick: C, onKeyDown: B, ref: (b) => {
878
- r.current = b, Q && Q(b);
879
- }, "data-rttabs": !0 }), I());
877
+ const { children: x, className: F, disabledTabClassName: Y, domRef: Q, focus: U, forceRenderTabPanel: q, onSelect: u, selectedIndex: ee, selectedTabClassName: ne, selectedTabPanelClassName: le, environment: ce, disableUpDownKeys: J, disableLeftRightKeys: re, ...oe } = { ...Un, ...e };
878
+ return pe.createElement("div", Object.assign({}, oe, { className: Oe(F), onClick: P, onKeyDown: k, ref: (m) => {
879
+ r.current = m, Q && Q(m);
880
+ }, "data-rttabs": !0 }), C());
880
881
  };
881
- Pt.propTypes = process.env.NODE_ENV !== "production" ? Yn : {};
882
- const Vn = 0, xe = 1, Hn = process.env.NODE_ENV !== "production" ? { children: Et, className: m.oneOfType([m.string, m.array, m.object]), defaultFocus: m.bool, defaultIndex: m.number, direction: m.oneOf(["rtl", "ltr"]), disabledTabClassName: m.string, disableUpDownKeys: m.bool, disableLeftRightKeys: m.bool, domRef: m.func, environment: m.object, focusTabOnClick: m.bool, forceRenderTabPanel: m.bool, onSelect: Fn, selectedIndex: qn, selectedTabClassName: m.string, selectedTabPanelClassName: m.string } : {}, Kn = { defaultFocus: !1, focusTabOnClick: !0, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null, environment: null, disableUpDownKeys: !1, disableLeftRightKeys: !1 }, Nt = (e) => e.selectedIndex === null ? xe : Vn, Gn = (e, n) => {
883
- if (process.env.NODE_ENV !== "production" && n != null && n !== Nt(e))
882
+ Ct.propTypes = process.env.NODE_ENV !== "production" ? zn : {};
883
+ const Wn = 0, Ee = 1, Yn = process.env.NODE_ENV !== "production" ? { children: Et, className: b.oneOfType([b.string, b.array, b.object]), defaultFocus: b.bool, defaultIndex: b.number, direction: b.oneOf(["rtl", "ltr"]), disabledTabClassName: b.string, disableUpDownKeys: b.bool, disableLeftRightKeys: b.bool, domRef: b.func, environment: b.object, focusTabOnClick: b.bool, forceRenderTabPanel: b.bool, onSelect: jn, selectedIndex: Fn, selectedTabClassName: b.string, selectedTabPanelClassName: b.string } : {}, Vn = { defaultFocus: !1, focusTabOnClick: !0, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null, environment: null, disableUpDownKeys: !1, disableLeftRightKeys: !1 }, Pt = (e) => e.selectedIndex === null ? Ee : Wn, Hn = (e, n) => {
884
+ if (process.env.NODE_ENV !== "production" && n != null && n !== Pt(e))
884
885
  throw new Error("Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\nFor more information about controlled and uncontrolled mode of react-tabs see https://github.com/reactjs/react-tabs#controlled-vs-uncontrolled-mode.");
885
- }, Je = (e) => {
886
- const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...g } = { ...Kn, ...e }, [o, v] = ne(t), [h] = ne(Nt(g)), [d, I] = ne(h === xe ? r || 0 : null);
887
- if (le(() => {
886
+ }, Ke = (e) => {
887
+ const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...h } = { ...Vn, ...e }, [i, v] = te(t), [y] = te(Pt(h)), [d, C] = te(y === Ee ? r || 0 : null);
888
+ if (se(() => {
888
889
  v(!1);
889
- }, []), h === xe) {
890
- const P = It(n);
891
- le(() => {
890
+ }, []), y === Ee) {
891
+ const N = St(n);
892
+ se(() => {
892
893
  if (d != null) {
893
- const S = Math.max(0, P - 1);
894
- I(Math.min(d, S));
894
+ const x = Math.max(0, N - 1);
895
+ C(Math.min(d, x));
895
896
  }
896
- }, [P]);
897
+ }, [N]);
897
898
  }
898
- Gn(g, h);
899
- const B = (P, S, z) => {
900
- typeof a == "function" && a(P, S, z) === !1 || (l && v(!0), h === xe && I(P));
899
+ Hn(h, y);
900
+ const k = (N, x, F) => {
901
+ typeof a == "function" && a(N, x, F) === !1 || (l && v(!0), y === Ee && C(N));
901
902
  };
902
- let C = { ...e, ...g };
903
- return C.focus = o, C.onSelect = B, d != null && (C.selectedIndex = d), delete C.defaultFocus, delete C.defaultIndex, delete C.focusTabOnClick, me.createElement(Pt, C, n);
903
+ let P = { ...e, ...h };
904
+ return P.focus = i, P.onSelect = k, d != null && (P.selectedIndex = d), delete P.defaultFocus, delete P.defaultIndex, delete P.focusTabOnClick, pe.createElement(Ct, P, n);
904
905
  };
905
- Je.propTypes = process.env.NODE_ENV !== "production" ? Hn : {};
906
- Je.tabsRole = "Tabs";
907
- const Xn = { className: "react-tabs__tab-list" }, Jn = process.env.NODE_ENV !== "production" ? { children: m.oneOfType([m.object, m.array]), className: m.oneOfType([m.string, m.array, m.object]) } : {}, Ze = (e) => {
908
- const { children: n, className: t, ...r } = { ...Xn, ...e };
909
- return me.createElement("ul", Object.assign({}, r, { className: Ae(t), role: "tablist" }), n);
906
+ Ke.propTypes = process.env.NODE_ENV !== "production" ? Yn : {};
907
+ Ke.tabsRole = "Tabs";
908
+ const Kn = { className: "react-tabs__tab-list" }, Gn = process.env.NODE_ENV !== "production" ? { children: b.oneOfType([b.object, b.array]), className: b.oneOfType([b.string, b.array, b.object]) } : {}, Ge = (e) => {
909
+ const { children: n, className: t, ...r } = { ...Kn, ...e };
910
+ return pe.createElement("ul", Object.assign({}, r, { className: Oe(t), role: "tablist" }), n);
910
911
  };
911
- Ze.tabsRole = "TabList";
912
- Ze.propTypes = process.env.NODE_ENV !== "production" ? Jn : {};
913
- const Fe = "react-tabs__tab", Zn = { className: Fe, disabledClassName: `${Fe}--disabled`, focus: !1, id: null, selected: !1, selectedClassName: `${Fe}--selected` }, Qn = process.env.NODE_ENV !== "production" ? { children: m.oneOfType([m.array, m.object, m.string]), className: m.oneOfType([m.string, m.array, m.object]), disabled: m.bool, disabledClassName: m.string, focus: m.bool, id: m.string, selected: m.bool, selectedClassName: m.string, tabIndex: m.string, tabRef: m.func } : {}, ue = (e) => {
912
+ Ge.tabsRole = "TabList";
913
+ Ge.propTypes = process.env.NODE_ENV !== "production" ? Gn : {};
914
+ const Me = "react-tabs__tab", Xn = { className: Me, disabledClassName: `${Me}--disabled`, focus: !1, id: null, selected: !1, selectedClassName: `${Me}--selected` }, Jn = process.env.NODE_ENV !== "production" ? { children: b.oneOfType([b.array, b.object, b.string]), className: b.oneOfType([b.string, b.array, b.object]), disabled: b.bool, disabledClassName: b.string, focus: b.bool, id: b.string, selected: b.bool, selectedClassName: b.string, tabIndex: b.string, tabRef: b.func } : {}, de = (e) => {
914
915
  let n = Te();
915
- const { children: t, className: r, disabled: l, disabledClassName: a, focus: g, id: o, selected: v, selectedClassName: h, tabIndex: d, tabRef: I, ...B } = { ...Zn, ...e };
916
- return le(() => {
917
- v && g && n.current.focus();
918
- }, [v, g]), me.createElement("li", Object.assign({}, B, { className: Ae(r, { [h]: v, [a]: l }), ref: (C) => {
919
- n.current = C, I && I(C);
920
- }, role: "tab", id: `tab${o}`, "aria-selected": v ? "true" : "false", "aria-disabled": l ? "true" : "false", "aria-controls": `panel${o}`, tabIndex: d || (v ? "0" : null), "data-rttab": !0 }), t);
916
+ const { children: t, className: r, disabled: l, disabledClassName: a, focus: h, id: i, selected: v, selectedClassName: y, tabIndex: d, tabRef: C, ...k } = { ...Xn, ...e };
917
+ return se(() => {
918
+ v && h && n.current.focus();
919
+ }, [v, h]), pe.createElement("li", Object.assign({}, k, { className: Oe(r, { [y]: v, [a]: l }), ref: (P) => {
920
+ n.current = P, C && C(P);
921
+ }, role: "tab", id: `tab${i}`, "aria-selected": v ? "true" : "false", "aria-disabled": l ? "true" : "false", "aria-controls": `panel${i}`, tabIndex: d || (v ? "0" : null), "data-rttab": !0 }), t);
921
922
  };
922
- ue.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
923
- ue.tabsRole = "Tab";
924
- const mt = "react-tabs__tab-panel", er = { className: mt, forceRender: !1, selectedClassName: `${mt}--selected` }, tr = process.env.NODE_ENV !== "production" ? { children: m.node, className: m.oneOfType([m.string, m.array, m.object]), forceRender: m.bool, id: m.string, selected: m.bool, selectedClassName: m.string } : {}, fe = (e) => {
925
- const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: g, ...o } = { ...er, ...e };
926
- return me.createElement("div", Object.assign({}, o, { className: Ae(t, { [g]: a }), role: "tabpanel", id: `panel${l}`, "aria-labelledby": `tab${l}` }), r || a ? n : null);
923
+ de.propTypes = process.env.NODE_ENV !== "production" ? Jn : {};
924
+ de.tabsRole = "Tab";
925
+ const ft = "react-tabs__tab-panel", Zn = { className: ft, forceRender: !1, selectedClassName: `${ft}--selected` }, Qn = process.env.NODE_ENV !== "production" ? { children: b.node, className: b.oneOfType([b.string, b.array, b.object]), forceRender: b.bool, id: b.string, selected: b.bool, selectedClassName: b.string } : {}, fe = (e) => {
926
+ const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: h, ...i } = { ...Zn, ...e };
927
+ return pe.createElement("div", Object.assign({}, i, { className: Oe(t, { [h]: a }), role: "tabpanel", id: `panel${l}`, "aria-labelledby": `tab${l}` }), r || a ? n : null);
927
928
  };
928
929
  fe.tabsRole = "TabPanel";
929
- fe.propTypes = process.env.NODE_ENV !== "production" ? tr : {};
930
+ fe.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
930
931
  (function() {
931
932
  try {
932
933
  if (typeof document < "u") {
@@ -937,27 +938,27 @@ fe.propTypes = process.env.NODE_ENV !== "production" ? tr : {};
937
938
  console.error("vite-plugin-css-injected-by-js", n);
938
939
  }
939
940
  })();
940
- const nr = "_FileExplorer_10w0u_1", rr = "_Header_10w0u_25", sr = "_IconButton_10w0u_45", ar = "_PathInput_10w0u_137", or = "_Body_10w0u_159", ir = "_Sidebar_10w0u_175", lr = "_NavButton_10w0u_203", cr = "_Main_10w0u_249", pr = "_Footer_10w0u_277", dr = "_Selector_10w0u_315", U = {
941
- FileExplorer: nr,
942
- Header: rr,
943
- IconButton: sr,
944
- PathInput: ar,
941
+ const er = "_FileExplorer_10w0u_1", tr = "_Header_10w0u_25", nr = "_IconButton_10w0u_45", rr = "_PathInput_10w0u_137", or = "_Body_10w0u_159", ar = "_Sidebar_10w0u_175", ir = "_NavButton_10w0u_203", sr = "_Main_10w0u_249", lr = "_Footer_10w0u_277", cr = "_Selector_10w0u_315", z = {
942
+ FileExplorer: er,
943
+ Header: tr,
944
+ IconButton: nr,
945
+ PathInput: rr,
945
946
  Body: or,
946
- Sidebar: ir,
947
- NavButton: lr,
948
- Main: cr,
949
- Footer: pr,
950
- Selector: dr
947
+ Sidebar: ar,
948
+ NavButton: ir,
949
+ Main: sr,
950
+ Footer: lr,
951
+ Selector: cr
951
952
  };
952
- function we({ onClick: e, icon: n, name: t }) {
953
- return /* @__PURE__ */ T(
953
+ function ge({ onClick: e, icon: n, name: t }) {
954
+ return /* @__PURE__ */ E(
954
955
  "button",
955
956
  {
956
957
  tabIndex: 0,
957
- className: `${U.NavButton} ${K.TextSemibold}`,
958
+ className: `${z.NavButton} ${K.TextSemibold}`,
958
959
  onClick: e,
959
960
  children: [
960
- /* @__PURE__ */ i(X, { icon: n }),
961
+ /* @__PURE__ */ s(X, { icon: n }),
961
962
  t
962
963
  ]
963
964
  }
@@ -967,17 +968,17 @@ function ur({ directory: e }) {
967
968
  const n = (t) => {
968
969
  const r = t.target.files;
969
970
  r != null && Array.from(r).forEach((l) => {
970
- const { name: a, extension: g } = Mt.splitId(l.name), o = new FileReader();
971
- o.onload = (v) => {
972
- const { result: h } = v.target;
973
- e.createFile(a, g, (d) => {
974
- d.setSource(h);
971
+ const { name: a, extension: h } = kt.splitId(l.name), i = new FileReader();
972
+ i.onload = (v) => {
973
+ const { result: y } = v.target;
974
+ e.createFile(a, h, (d) => {
975
+ d.setSource(y);
975
976
  });
976
- }, o.readAsDataURL(l);
977
+ }, i.readAsDataURL(l);
977
978
  });
978
979
  };
979
- return /* @__PURE__ */ T("label", { title: "Import", tabIndex: 0, className: U.IconButton, children: [
980
- /* @__PURE__ */ i(
980
+ return /* @__PURE__ */ E("label", { title: "Import", tabIndex: 0, className: z.IconButton, children: [
981
+ /* @__PURE__ */ s(
981
982
  "input",
982
983
  {
983
984
  type: "file",
@@ -987,473 +988,308 @@ function ur({ directory: e }) {
987
988
  onChange: n
988
989
  }
989
990
  ),
990
- /* @__PURE__ */ i(X, { icon: Jt })
991
+ /* @__PURE__ */ s(X, { icon: Gt })
991
992
  ] });
992
993
  }
993
- const bt = {
994
+ const pt = {
994
995
  NONE: 0,
995
996
  SINGLE: 1,
996
997
  MULTIPLE: 2
997
- }, fr = "_FileProperties_s5har_1", mr = "_Icon_s5har_17", br = "_Section_s5har_49", gr = "_Line_s5har_91", hr = "_AppIcon_s5har_135", H = {
998
- FileProperties: fr,
999
- Icon: mr,
1000
- Section: br,
1001
- Line: gr,
1002
- AppIcon: hr
998
+ }, dr = "_FileProperties_s5har_1", fr = "_Icon_s5har_17", pr = "_Section_s5har_49", br = "_Line_s5har_91", mr = "_AppIcon_s5har_135", H = {
999
+ FileProperties: dr,
1000
+ Icon: fr,
1001
+ Section: pr,
1002
+ Line: br,
1003
+ AppIcon: mr
1003
1004
  };
1004
- function vr({ modal: e, params: n, file: t, ...r }) {
1005
- const { appsConfig: l } = ge(), a = t.extension != null ? l.getAppByFileExtension(t.extension) : null;
1006
- return /* @__PURE__ */ T(Dt, { className: H.FileProperties, modal: e, params: n, ...r, children: [
1007
- /* @__PURE__ */ T("span", { className: H.Section, children: [
1008
- /* @__PURE__ */ i(We, { className: H.Icon, source: t.getIconUrl() }),
1009
- /* @__PURE__ */ i("p", { className: `${H.Line} ${K.TextBold}`, children: t.id })
1005
+ function hr({ modal: e, params: n, file: t, ...r }) {
1006
+ const { appsConfig: l } = me(), a = t.extension != null ? l.getAppByFileExtension(t.extension) : null;
1007
+ return /* @__PURE__ */ E(Lt, { className: H.FileProperties, modal: e, params: n, ...r, children: [
1008
+ /* @__PURE__ */ E("span", { className: H.Section, children: [
1009
+ /* @__PURE__ */ s(qe, { className: H.Icon, source: t.getIconUrl() }),
1010
+ /* @__PURE__ */ s("p", { className: `${H.Line} ${K.TextBold}`, children: t.id })
1010
1011
  ] }),
1011
- /* @__PURE__ */ T("span", { className: H.Section, children: [
1012
- /* @__PURE__ */ T("p", { className: H.Line, children: [
1012
+ /* @__PURE__ */ E("span", { className: H.Section, children: [
1013
+ /* @__PURE__ */ E("p", { className: H.Line, children: [
1013
1014
  "Type: ",
1014
1015
  t.getType()
1015
1016
  ] }),
1016
- a != null && /* @__PURE__ */ T("span", { className: H.Line, children: [
1017
+ a != null && /* @__PURE__ */ E("span", { className: H.Line, children: [
1017
1018
  "Opens with:",
1018
- /* @__PURE__ */ i(We, { className: H.AppIcon, source: a.iconUrl ?? "" }),
1019
+ /* @__PURE__ */ s(qe, { className: H.AppIcon, source: a.iconUrl ?? "" }),
1019
1020
  a.name
1020
1021
  ] })
1021
1022
  ] }),
1022
- /* @__PURE__ */ T("span", { className: H.Section, children: [
1023
- /* @__PURE__ */ T("p", { className: H.Line, children: [
1023
+ /* @__PURE__ */ E("span", { className: H.Section, children: [
1024
+ /* @__PURE__ */ E("p", { className: H.Line, children: [
1024
1025
  "Location: ",
1025
1026
  t.path
1026
1027
  ] }),
1027
- /* @__PURE__ */ T("p", { className: H.Line, children: [
1028
+ /* @__PURE__ */ E("p", { className: H.Line, children: [
1028
1029
  "Size: ",
1029
- de.getByteSize(t.source ?? t.content),
1030
+ ue.getByteSize(t.source ?? t.content),
1030
1031
  " bytes"
1031
1032
  ] }),
1032
- /* @__PURE__ */ T("p", { className: H.Line, children: [
1033
+ /* @__PURE__ */ E("p", { className: H.Line, children: [
1033
1034
  "Size on drive: ",
1034
- de.getByteSize(t.toString()),
1035
+ ue.getByteSize(t.toString()),
1035
1036
  " bytes"
1036
1037
  ] })
1037
1038
  ] }),
1038
- /* @__PURE__ */ i("span", { className: H.Section, children: /* @__PURE__ */ T("p", { className: H.Line, children: [
1039
+ /* @__PURE__ */ s("span", { className: H.Section, children: /* @__PURE__ */ E("p", { className: H.Line, children: [
1039
1040
  "Attributes: ",
1040
1041
  t.isProtected ? "Protected" : "N/A"
1041
1042
  ] }) })
1042
1043
  ] });
1043
1044
  }
1044
1045
  function yr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l, onSelectionFinish: a }) {
1045
- const g = r != null && t != null && t !== bt.NONE, o = Ne(), v = He(), { windowsConfig: h } = ge(), [d, I] = ne(o == null ? void 0 : o.navigate(n ?? "~")), [B, C] = ne((d == null ? void 0 : d.path) ?? ""), [P] = ne(!0), { history: S, stateIndex: z, pushState: Y, undo: Q, redo: q, undoAvailable: F, redoAvailable: p } = At(d.path), { alert: ee } = Rt(), { openWindowedModal: re } = vt(), { onContextMenu: ce } = qe({
1046
- Actions: (f) => /* @__PURE__ */ T(Ue, { ...f, children: [
1047
- /* @__PURE__ */ i(ie, { label: g ? "Select" : "Open", onTrigger: (y, x) => {
1048
- if (g) {
1049
- l == null || l({ files: [x.id], directory: d }), a == null || a();
1046
+ const h = r != null && t != null && t !== pt.NONE, i = Pe(), v = We(), { windowsConfig: y } = me(), [d, C] = te(i == null ? void 0 : i.navigate(n ?? "~")), [k, P] = te((d == null ? void 0 : d.path) ?? ""), [N] = te(!0), { history: x, stateIndex: F, pushState: Y, undo: Q, redo: U, undoAvailable: q, redoAvailable: u } = Ot(d.path), { alert: ee } = At(), { openWindowedModal: ne } = ht(), { onContextMenu: le } = je({
1047
+ Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
1048
+ /* @__PURE__ */ s(ie, { label: h ? "Select" : "Open", onTrigger: (g, w) => {
1049
+ if (h) {
1050
+ l == null || l({ files: [w.id], directory: d }), a == null || a();
1050
1051
  return;
1051
1052
  }
1052
- v != null && x.open(v);
1053
+ v != null && w.open(v);
1053
1054
  } }),
1054
- /* @__PURE__ */ i(ie, { label: "Delete", icon: rt, onTrigger: (y, x) => {
1055
- x.delete();
1055
+ /* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
1056
+ w.delete();
1056
1057
  } }),
1057
- /* @__PURE__ */ i(ie, { label: "Properties", icon: wt, onTrigger: (y, x) => {
1058
- re({
1059
- title: `${x.id} ${h.titleSeparator} Properties`,
1060
- iconUrl: x.getIconUrl(),
1058
+ /* @__PURE__ */ s(ie, { label: "Properties", icon: vt, onTrigger: (g, w) => {
1059
+ ne({
1060
+ title: `${w.id} ${y.titleSeparator} Properties`,
1061
+ iconUrl: w.getIconUrl(),
1061
1062
  size: new be(400, 500),
1062
- Modal: (j) => /* @__PURE__ */ i(vr, { file: x, ...j })
1063
+ Modal: (j) => /* @__PURE__ */ s(hr, { file: w, ...j })
1063
1064
  });
1064
1065
  } })
1065
1066
  ] })
1066
- }), { onContextMenu: pe } = qe({
1067
- Actions: (f) => /* @__PURE__ */ T(Ue, { ...f, children: [
1068
- /* @__PURE__ */ i(ie, { label: "Open", onTrigger: (y, x) => {
1069
- J(x.linkedPath ?? x.name);
1067
+ }), { onContextMenu: ce } = je({
1068
+ Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
1069
+ /* @__PURE__ */ s(ie, { label: "Open", onTrigger: (g, w) => {
1070
+ J(w.linkedPath ?? w.name);
1070
1071
  } }),
1071
- /* @__PURE__ */ i($t, {}),
1072
- /* @__PURE__ */ i(ie, { label: "Delete", icon: rt, onTrigger: (y, x) => {
1073
- x.delete();
1072
+ /* @__PURE__ */ s(Rt, {}),
1073
+ /* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
1074
+ w.delete();
1074
1075
  } })
1075
1076
  ] })
1076
- }), J = sn((f, y = !1) => {
1077
- if (f == null)
1077
+ }), J = nn((p, g = !1) => {
1078
+ if (p == null)
1078
1079
  return;
1079
- d == null && (y = !0);
1080
- const x = y ? o == null ? void 0 : o.navigate(f) : d.navigate(f);
1081
- x != null && (I(x), C(x.root ? "/" : x.path), Y(x.path));
1082
- }, [d, Y, o]);
1083
- le(() => {
1084
- if (S.length === 0)
1080
+ d == null && (g = !0);
1081
+ const w = g ? i == null ? void 0 : i.navigate(p) : d.navigate(p);
1082
+ w != null && (C(w), P(w.root ? "/" : w.path), Y(w.path));
1083
+ }, [d, Y, i]);
1084
+ se(() => {
1085
+ if (x.length === 0)
1085
1086
  return;
1086
- const f = S[z], y = o == null ? void 0 : o.navigate(f);
1087
- y != null && (I(y), C(y.root ? "/" : y.path));
1088
- }, [S, z, o]), le(() => {
1089
- const f = (y) => {
1087
+ const p = x[F], g = i == null ? void 0 : i.navigate(p);
1088
+ g != null && (C(g), P(g.root ? "/" : g.path));
1089
+ }, [x, F, i]), se(() => {
1090
+ const p = (g) => {
1090
1091
  ee({
1091
- title: y.message,
1092
+ title: g.message,
1092
1093
  text: "You have exceeded the virtual drive capacity. Files and folders will not be saved until more storage is freed.",
1093
1094
  iconUrl: e == null ? void 0 : e.iconUrl,
1094
1095
  size: new be(300, 200),
1095
1096
  single: !0
1096
1097
  });
1097
1098
  };
1098
- return o == null || o.on(et.EVENT_NAMES.error, f), () => {
1099
- o == null || o.off(et.EVENT_NAMES.error, f);
1099
+ return i == null || i.on(Je.EVENT_NAMES.error, p), () => {
1100
+ i == null || i.off(Je.EVENT_NAMES.error, p);
1100
1101
  };
1101
1102
  }, []);
1102
- const se = (f) => {
1103
- C(f.target.value);
1104
- }, ae = (f) => {
1105
- let y = f.target.value;
1106
- if (f.key === "Enter") {
1107
- y === "" && (y = "~");
1108
- const x = o == null ? void 0 : o.navigate(y);
1109
- if (x == null) {
1110
- re({
1103
+ const re = (p) => {
1104
+ P(p.target.value);
1105
+ }, oe = (p) => {
1106
+ let g = p.target.value;
1107
+ if (p.key === "Enter") {
1108
+ g === "" && (g = "~");
1109
+ const w = i == null ? void 0 : i.navigate(g);
1110
+ if (w == null) {
1111
+ ne({
1111
1112
  title: "Error",
1112
1113
  iconUrl: e == null ? void 0 : e.iconUrl,
1113
1114
  size: new be(300, 150),
1114
- Modal: (j) => /* @__PURE__ */ T(tt, { ...j, children: [
1115
- /* @__PURE__ */ T("p", { children: [
1115
+ Modal: (j) => /* @__PURE__ */ E(Ze, { ...j, children: [
1116
+ /* @__PURE__ */ E("p", { children: [
1116
1117
  'Invalid path: "',
1117
- y,
1118
+ g,
1118
1119
  '"'
1119
1120
  ] }),
1120
- /* @__PURE__ */ i("button", { "data-type": nt.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1121
+ /* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1121
1122
  ] })
1122
1123
  });
1123
1124
  return;
1124
1125
  }
1125
- I(x), C(x.root ? "/" : x.path);
1126
+ C(w), P(w.root ? "/" : w.path);
1126
1127
  }
1127
- }, b = d.getItemCount(P);
1128
- return /* @__PURE__ */ T("div", { className: g ? `${U.FileExplorer} ${U.Selector}` : U.FileExplorer, children: [
1129
- /* @__PURE__ */ T("div", { className: U.Header, children: [
1130
- /* @__PURE__ */ i(
1128
+ }, m = d.getItemCount(N);
1129
+ return /* @__PURE__ */ E("div", { className: h ? `${z.FileExplorer} ${z.Selector}` : z.FileExplorer, children: [
1130
+ /* @__PURE__ */ E("div", { className: z.Header, children: [
1131
+ /* @__PURE__ */ s(
1131
1132
  "button",
1132
1133
  {
1133
1134
  title: "Back",
1134
1135
  tabIndex: 0,
1135
- className: U.IconButton,
1136
+ className: z.IconButton,
1136
1137
  onClick: () => {
1137
1138
  Q();
1138
1139
  },
1139
- disabled: !F,
1140
- children: /* @__PURE__ */ i(X, { icon: Ft })
1140
+ disabled: !q,
1141
+ children: /* @__PURE__ */ s(X, { icon: jt })
1141
1142
  }
1142
1143
  ),
1143
- /* @__PURE__ */ i(
1144
+ /* @__PURE__ */ s(
1144
1145
  "button",
1145
1146
  {
1146
1147
  title: "Forward",
1147
1148
  tabIndex: 0,
1148
- className: U.IconButton,
1149
+ className: z.IconButton,
1149
1150
  onClick: () => {
1150
- q();
1151
+ U();
1151
1152
  },
1152
- disabled: !p,
1153
- children: /* @__PURE__ */ i(X, { icon: qt })
1153
+ disabled: !u,
1154
+ children: /* @__PURE__ */ s(X, { icon: Ft })
1154
1155
  }
1155
1156
  ),
1156
- /* @__PURE__ */ i(
1157
+ /* @__PURE__ */ s(
1157
1158
  "button",
1158
1159
  {
1159
1160
  title: "Up",
1160
1161
  tabIndex: 0,
1161
- className: U.IconButton,
1162
+ className: z.IconButton,
1162
1163
  onClick: () => {
1163
1164
  J("..");
1164
1165
  },
1165
1166
  disabled: d.isRoot != null && d.isRoot,
1166
- children: /* @__PURE__ */ i(X, { icon: Ut })
1167
+ children: /* @__PURE__ */ s(X, { icon: qt })
1167
1168
  }
1168
1169
  ),
1169
- /* @__PURE__ */ i(
1170
+ /* @__PURE__ */ s(
1170
1171
  "button",
1171
1172
  {
1172
1173
  title: "New",
1173
1174
  tabIndex: 0,
1174
- className: U.IconButton,
1175
+ className: z.IconButton,
1175
1176
  onClick: () => {
1176
- re({
1177
+ ne({
1177
1178
  title: "Error",
1178
1179
  iconUrl: e == null ? void 0 : e.iconUrl,
1179
1180
  size: new be(300, 150),
1180
- Modal: (f) => /* @__PURE__ */ T(tt, { ...f, children: [
1181
- /* @__PURE__ */ i("p", { children: "This folder is protected." }),
1182
- /* @__PURE__ */ i("button", { "data-type": nt.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1181
+ Modal: (p) => /* @__PURE__ */ E(Ze, { ...p, children: [
1182
+ /* @__PURE__ */ s("p", { children: "This folder is protected." }),
1183
+ /* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
1183
1184
  ] })
1184
1185
  });
1185
1186
  },
1186
1187
  disabled: !d.canBeEdited,
1187
- children: /* @__PURE__ */ i(X, { icon: Wt })
1188
+ children: /* @__PURE__ */ s(X, { icon: Ut })
1188
1189
  }
1189
1190
  ),
1190
- /* @__PURE__ */ i(
1191
+ /* @__PURE__ */ s(
1191
1192
  "input",
1192
1193
  {
1193
- value: B,
1194
+ value: k,
1194
1195
  type: "text",
1195
1196
  "aria-label": "Path",
1196
- className: U.PathInput,
1197
+ className: z.PathInput,
1197
1198
  tabIndex: 0,
1198
- onChange: se,
1199
- onKeyDown: ae,
1199
+ onChange: re,
1200
+ onKeyDown: oe,
1200
1201
  placeholder: "Enter a path..."
1201
1202
  }
1202
1203
  ),
1203
- /* @__PURE__ */ i(ur, { directory: d }),
1204
- /* @__PURE__ */ i("button", { title: "Search", tabIndex: 0, className: U.IconButton, children: /* @__PURE__ */ i(X, { icon: Yt }) }),
1205
- /* @__PURE__ */ i("button", { title: "Settings", tabIndex: 0, className: U.IconButton, children: /* @__PURE__ */ i(X, { icon: Vt }) })
1204
+ /* @__PURE__ */ s(ur, { directory: d }),
1205
+ /* @__PURE__ */ s("button", { title: "Search", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: zt }) }),
1206
+ /* @__PURE__ */ s("button", { title: "Settings", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: Wt }) })
1206
1207
  ] }),
1207
- /* @__PURE__ */ T("div", { className: U.Body, children: [
1208
- /* @__PURE__ */ T("div", { className: U.Sidebar, children: [
1209
- /* @__PURE__ */ i(we, { name: "Home", onClick: () => {
1208
+ /* @__PURE__ */ E("div", { className: z.Body, children: [
1209
+ /* @__PURE__ */ E("div", { className: z.Sidebar, children: [
1210
+ /* @__PURE__ */ s(ge, { name: "Home", onClick: () => {
1210
1211
  J("~");
1211
- }, icon: Ht }),
1212
- /* @__PURE__ */ i(we, { name: "Desktop", onClick: () => {
1212
+ }, icon: Yt }),
1213
+ /* @__PURE__ */ s(ge, { name: "Desktop", onClick: () => {
1213
1214
  J("~/Desktop");
1214
- }, icon: Kt }),
1215
- /* @__PURE__ */ i(we, { name: "Images", onClick: () => {
1215
+ }, icon: Vt }),
1216
+ /* @__PURE__ */ s(ge, { name: "Images", onClick: () => {
1216
1217
  J("~/Pictures");
1217
- }, icon: Gt }),
1218
- /* @__PURE__ */ i(we, { name: "Documents", onClick: () => {
1218
+ }, icon: Ht }),
1219
+ /* @__PURE__ */ s(ge, { name: "Documents", onClick: () => {
1219
1220
  J("~/Documents");
1220
- }, icon: Xt })
1221
+ }, icon: Kt })
1221
1222
  ] }),
1222
- /* @__PURE__ */ i(
1223
- Lt,
1223
+ /* @__PURE__ */ s(
1224
+ $t,
1224
1225
  {
1225
1226
  directory: d,
1226
1227
  id: "main",
1227
- className: U.Main,
1228
- showHidden: P,
1229
- onOpenFile: (f, y) => {
1230
- if (f.preventDefault(), g)
1228
+ className: z.Main,
1229
+ showHidden: N,
1230
+ onOpenFile: (p, g) => {
1231
+ if (p.preventDefault(), h)
1231
1232
  return void (a == null ? void 0 : a());
1232
- const x = {};
1233
- (y.extension === "md" || y.extension != null && Bt.includes(y.extension)) && (x.mode = "view"), v == null || v.openFile(y, x);
1233
+ const w = {};
1234
+ (g.extension === "md" || g.extension != null && Bt.includes(g.extension)) && (w.mode = "view"), v == null || v.openFile(g, w);
1234
1235
  },
1235
- onOpenFolder: (f, y) => {
1236
- J(y.linkedPath ?? y.name);
1236
+ onOpenFolder: (p, g) => {
1237
+ J(g.linkedPath ?? g.name);
1237
1238
  },
1238
- onContextMenuFile: ce,
1239
- onContextMenuFolder: pe,
1240
- allowMultiSelect: t !== bt.SINGLE,
1239
+ onContextMenuFile: le,
1240
+ onContextMenuFolder: ce,
1241
+ allowMultiSelect: t !== pt.SINGLE,
1241
1242
  onSelectionChange: l
1242
1243
  }
1243
1244
  )
1244
1245
  ] }),
1245
- g ? /* @__PURE__ */ i("div", { className: U.Footer, children: /* @__PURE__ */ i(r, {}) }) : /* @__PURE__ */ i("span", { className: U.Footer, children: /* @__PURE__ */ i("p", { className: K.TextLight, children: b === 1 ? b + " item" : b + " items" }) })
1246
+ h ? /* @__PURE__ */ s("div", { className: z.Footer, children: /* @__PURE__ */ s(r, {}) }) : /* @__PURE__ */ s("span", { className: z.Footer, children: /* @__PURE__ */ s("p", { className: K.TextLight, children: m === 1 ? m + " item" : m + " items" }) })
1246
1247
  ] });
1247
1248
  }
1248
- var Ot = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Ot || {});
1249
- const kt = new gt("File Explorer", "file-explorer", yr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(ht.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
1250
- kt.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.8", author: "Prozilla" });
1251
- const wr = "~/Pictures/Wallpapers";
1252
- var _r = Object.defineProperty, Tr = (e, n, t) => n in e ? _r(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, te = (e, n, t) => Tr(e, typeof n != "symbol" ? n + "" : n, t);
1253
- class Re {
1254
- constructor(n = {}) {
1255
- te(this, "systemIcon"), te(this, "appIcons"), te(this, "appNames"), te(this, "wallpapers"), te(this, "defaultWallpaper"), te(this, "fileIcons"), te(this, "folderIcons"), te(this, "loadStyleSheet"), te(this, "defaultTheme"), this.systemIcon = n.systemIcon ?? "https://os.prozilla.dev/icon.svg", this.appIcons = n.appIcons, this.appNames = n.appNames, this.wallpapers = n.wallpapers ?? [
1256
- "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-blue-purple-red.png",
1257
- "https://os.prozilla.dev/assets/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
1258
- "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-purple-yellow.png",
1259
- "https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
1260
- "https://os.prozilla.dev/assets/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
1261
- "https://os.prozilla.dev/assets/wallpapers/mesh-gradient-wallpaper-red-purple.png",
1262
- "https://os.prozilla.dev/assets/wallpapers/colorful-mesh-gradient-red-green.png",
1263
- "https://os.prozilla.dev/assets/wallpapers/flame-abstract-wallpaper-orange.png",
1264
- "https://os.prozilla.dev/assets/wallpapers/wave-abstract-wallpaper-teal.png",
1265
- "https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-gradient-blue-dark.png",
1266
- "https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-gradient-red.png"
1267
- ], this.defaultWallpaper = n.defaultWallpaper ?? "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-blue-purple-red.png", this.fileIcons = n.fileIcons ?? {
1268
- generic: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file.svg",
1269
- text: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-text.svg",
1270
- info: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-info.svg",
1271
- code: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-code.svg",
1272
- external: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-external.svg"
1273
- }, this.folderIcons = n.folderIcons ?? {
1274
- generic: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder.svg",
1275
- images: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-images.svg",
1276
- text: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-text.svg",
1277
- link: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-link.svg"
1278
- }, this.loadStyleSheet = n.loadStyleSheet, this.defaultTheme = n.defaultTheme;
1279
- }
1280
- }
1281
- new Re({
1282
- appIcons: {
1283
- "ball-maze": "/assets/skins/mac/apps/icons/ball-maze.svg",
1284
- browser: "/assets/skins/mac/apps/icons/browser.svg",
1285
- calculator: "/assets/skins/mac/apps/icons/calculator.svg",
1286
- "file-explorer": "/assets/skins/mac/apps/icons/file-explorer.svg",
1287
- "media-viewer": "/assets/skins/mac/apps/icons/media-viewer.svg",
1288
- minesweeper: "/assets/skins/mac/apps/icons/minesweeper.svg",
1289
- settings: "/assets/skins/mac/apps/icons/settings.svg",
1290
- terminal: "/assets/skins/mac/apps/icons/terminal.svg",
1291
- "text-editor": "/assets/skins/mac/apps/icons/text-editor.svg",
1292
- wordle: "/assets/skins/mac/apps/icons/wordle.svg"
1293
- },
1294
- appNames: {
1295
- browser: "Safari",
1296
- calculator: "Calculator",
1297
- "file-explorer": "Finder",
1298
- "media-viewer": "Photos",
1299
- terminal: "Terminal",
1300
- "text-editor": "Notes"
1301
- },
1302
- wallpapers: [
1303
- "/assets/skins/mac/wallpapers/macos-monterey.jpg"
1304
- ],
1305
- defaultWallpaper: "/assets/skins/mac/wallpapers/macos-monterey.jpg",
1306
- fileIcons: {
1307
- generic: "/assets/skins/mac/apps/file-explorer/file.svg"
1308
- },
1309
- folderIcons: {
1310
- generic: "/assets/skins/mac/apps/file-explorer/folder.svg"
1311
- },
1312
- loadStyleSheet: () => {
1313
- Promise.resolve({ });
1314
- }
1315
- });
1316
- new Re({
1317
- appIcons: {
1318
- browser: "/assets/skins/minimal/apps/icons/browser.svg",
1319
- calculator: "/assets/skins/minimal/apps/icons/calculator.svg",
1320
- "file-explorer": "/assets/skins/minimal/apps/icons/file-explorer.svg",
1321
- "media-viewer": "/assets/skins/minimal/apps/icons/media-viewer.svg",
1322
- settings: "/assets/skins/minimal/apps/icons/settings.svg",
1323
- terminal: "/assets/skins/minimal/apps/icons/terminal.svg",
1324
- "text-editor": "/assets/skins/minimal/apps/icons/text-editor.svg",
1325
- "ball-maze": "/assets/skins/minimal/apps/icons/ball-maze.svg",
1326
- minesweeper: "/assets/skins/minimal/apps/icons/minesweeper.svg",
1327
- wordle: "/assets/skins/minimal/apps/icons/wordle.svg",
1328
- "logic-sim": "/assets/skins/minimal/apps/icons/logic-sim.svg"
1329
- },
1330
- defaultWallpaper: "/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
1331
- fileIcons: {
1332
- generic: "/assets/skins/minimal/apps/file-explorer/file.svg"
1333
- },
1334
- folderIcons: {
1335
- generic: "/assets/skins/minimal/apps/file-explorer/folder.svg"
1336
- },
1337
- loadStyleSheet: () => {
1338
- import(
1339
- /*'./chunks/minimal-Be8X8qbA.js'*/
1340
- "./chunks/minimal-l0sNRNKZ.js"
1341
- );
1342
- }
1343
- });
1344
- new Re({
1345
- appIcons: {
1346
- "ball-maze": "/assets/skins/pixel/apps/icons/ball-maze.png",
1347
- browser: "/assets/skins/pixel/apps/icons/browser.png",
1348
- calculator: "/assets/skins/pixel/apps/icons/calculator.png",
1349
- "file-explorer": "/assets/skins/pixel/apps/icons/file-explorer.png",
1350
- "logic-sim": "/assets/skins/pixel/apps/icons/logic-sim.png",
1351
- "media-viewer": "/assets/skins/pixel/apps/icons/media-viewer.png",
1352
- minesweeper: "/assets/skins/pixel/apps/icons/minesweeper.png",
1353
- settings: "/assets/skins/pixel/apps/icons/settings.png",
1354
- terminal: "/assets/skins/pixel/apps/icons/terminal.png",
1355
- "text-editor": "/assets/skins/pixel/apps/icons/text-editor.png",
1356
- wordle: "/assets/skins/pixel/apps/icons/wordle.png"
1357
- },
1358
- wallpapers: [
1359
- "/assets/skins/pixel/wallpapers/vibrant-wallpaper-blue-purple-red.png",
1360
- "/assets/skins/pixel/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
1361
- "/assets/skins/pixel/wallpapers/vibrant-wallpaper-purple-yellow.png",
1362
- "/assets/skins/pixel/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
1363
- "/assets/skins/pixel/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
1364
- "/assets/skins/pixel/wallpapers/mesh-gradient-wallpaper-red-purple.png",
1365
- "/assets/skins/pixel/wallpapers/colorful-mesh-gradient-red-green.png",
1366
- "/assets/skins/pixel/wallpapers/flame-abstract-wallpaper-orange.png",
1367
- "/assets/skins/pixel/wallpapers/wave-abstract-wallpaper-teal.png"
1368
- ],
1369
- defaultWallpaper: "/assets/skins/pixel/wallpapers/vibrant-wallpaper-blue-purple-red.png",
1370
- fileIcons: {
1371
- generic: "/assets/skins/pixel/apps/file-explorer/file.png"
1372
- },
1373
- folderIcons: {
1374
- generic: "/assets/skins/pixel/apps/file-explorer/folder.png"
1375
- },
1376
- loadStyleSheet: () => {
1377
- Promise.resolve({ });
1378
- }
1379
- });
1380
- var Pe = /* @__PURE__ */ ((e) => (e[e.Dark = 0] = "Dark", e[e.Light = 1] = "Light", e[e.Cherry = 2] = "Cherry", e[e.Mango = 3] = "Mango", e[e.Aqua = 4] = "Aqua", e[e.Grape = 5] = "Grape", e))(Pe || {});
1381
- new Re({
1382
- systemIcon: "/assets/skins/windows95/system-icon.png",
1383
- appIcons: {
1384
- browser: "/assets/skins/windows95/apps/icons/browser.svg",
1385
- calculator: "/assets/skins/windows95/apps/icons/calculator.svg",
1386
- "file-explorer": "/assets/skins/windows95/apps/icons/file-explorer.svg",
1387
- "media-viewer": "/assets/skins/windows95/apps/icons/media-viewer.svg",
1388
- minesweeper: "/assets/skins/windows95/apps/icons/minesweeper.svg",
1389
- settings: "/assets/skins/windows95/apps/icons/settings.svg",
1390
- terminal: "/assets/skins/windows95/apps/icons/terminal.svg",
1391
- "text-editor": "/assets/skins/windows95/apps/icons/text-editor.svg"
1392
- },
1393
- appNames: {
1394
- browser: "Internet Explorer",
1395
- calculator: "Calculator",
1396
- "file-explorer": "Windows Explorer",
1397
- "media-viewer": "Imaging",
1398
- terminal: "MS-DOS Prompt",
1399
- "text-editor": "Notepad"
1400
- },
1401
- wallpapers: [
1402
- "/assets/skins/windows95/wallpapers/default.png",
1403
- "/assets/skins/windows95/wallpapers/clouds.png"
1404
- ],
1405
- defaultWallpaper: "/assets/skins/windows95/wallpapers/default.png",
1406
- fileIcons: {
1407
- generic: "/assets/skins/windows95/apps/file-explorer/file.svg"
1408
- },
1409
- folderIcons: {
1410
- generic: "/assets/skins/windows95/apps/file-explorer/folder.svg"
1411
- },
1412
- defaultTheme: Pe.Light,
1413
- loadStyleSheet: () => {
1414
- Promise.resolve({});
1415
- }
1416
- });
1417
- function xr() {
1418
- var B, C;
1419
- const { modalsConfig: e } = ge(), n = Ne(), t = Ke(), [r, l] = ne(Pe.Dark), [a, g] = ne(null), o = t == null ? void 0 : t.getSettings(Ee.VIRTUAL_PATHS.desktop), v = t == null ? void 0 : t.getSettings(Ee.VIRTUAL_PATHS.theme), { openWindowedModal: h } = vt();
1420
- le(() => {
1421
- o == null || o.get("wallpaper", g), v == null || v.get("theme", (P) => {
1422
- l(parseInt(P));
1249
+ var Nt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Nt || {});
1250
+ const It = new bt("File Explorer", "file-explorer", yr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(mt.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
1251
+ It.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.11", author: "Prozilla" });
1252
+ const vr = "~/Pictures/Wallpapers";
1253
+ function gr() {
1254
+ var k, P;
1255
+ const { modalsConfig: e } = me(), n = Pe(), t = Ye(), [r, l] = te(tt.Dark), [a, h] = te(null), i = t == null ? void 0 : t.getSettings(we.VIRTUAL_PATHS.desktop), v = t == null ? void 0 : t.getSettings(we.VIRTUAL_PATHS.theme), { openWindowedModal: y } = ht();
1256
+ se(() => {
1257
+ i == null || i.get("wallpaper", h), v == null || v.get("theme", (N) => {
1258
+ l(parseInt(N));
1423
1259
  });
1424
- }, [o, v]);
1425
- const d = (P) => {
1426
- const S = P.target.value;
1427
- o == null || o.set("wallpaper", S);
1428
- }, I = (P) => {
1429
- const S = P.target.value;
1430
- v == null || v.set("theme", S);
1260
+ }, [i, v]);
1261
+ const d = (N) => {
1262
+ const x = N.target.value;
1263
+ i == null || i.set("wallpaper", x);
1264
+ }, C = (N) => {
1265
+ const x = N.target.value;
1266
+ v == null || v.set("theme", x);
1431
1267
  };
1432
- return /* @__PURE__ */ T(yt, { children: [
1433
- /* @__PURE__ */ T("div", { className: E.Option, children: [
1434
- /* @__PURE__ */ i("p", { className: E.Label, children: "Theme" }),
1435
- /* @__PURE__ */ i("div", { className: E.Input, children: /* @__PURE__ */ i("select", { className: E.Dropdown, "aria-label": "theme", value: r, onChange: I, children: Object.entries(Pe).map(
1436
- ([P, S]) => /* @__PURE__ */ i("option", { value: P, children: S }, P)
1268
+ return /* @__PURE__ */ E(yt, { children: [
1269
+ /* @__PURE__ */ E("div", { className: S.Option, children: [
1270
+ /* @__PURE__ */ s("p", { className: S.Label, children: "Theme" }),
1271
+ /* @__PURE__ */ s("div", { className: S.Input, children: /* @__PURE__ */ s("select", { className: S.Dropdown, "aria-label": "theme", value: r, onChange: C, children: Object.entries(tt).map(
1272
+ ([N, x]) => /* @__PURE__ */ s("option", { value: N, children: x }, N)
1437
1273
  ) }) })
1438
1274
  ] }),
1439
- /* @__PURE__ */ T("div", { className: E.Option, children: [
1440
- /* @__PURE__ */ i("p", { className: E.Label, children: "Wallpaper" }),
1441
- /* @__PURE__ */ i(
1275
+ /* @__PURE__ */ E("div", { className: S.Option, children: [
1276
+ /* @__PURE__ */ s("p", { className: S.Label, children: "Wallpaper" }),
1277
+ /* @__PURE__ */ s(
1442
1278
  Se,
1443
1279
  {
1444
- className: `${E.Button} ${K.TextBold}`,
1280
+ className: `${S.Button} ${K.TextBold}`,
1445
1281
  onClick: () => {
1446
- h({
1282
+ y({
1447
1283
  size: e.defaultFileSelectorSize,
1448
- Modal: (P) => /* @__PURE__ */ i(
1449
- kt.WindowContent,
1284
+ Modal: (N) => /* @__PURE__ */ s(
1285
+ It.WindowContent,
1450
1286
  {
1451
- type: Ot.Single,
1452
- allowedFormats: jt,
1453
- onFinish: (S) => {
1454
- S.source != null && (o == null || o.set("wallpaper", S.source));
1287
+ type: Nt.Single,
1288
+ allowedFormats: Dt,
1289
+ onFinish: (x) => {
1290
+ x.source != null && (i == null || i.set("wallpaper", x.source));
1455
1291
  },
1456
- ...P
1292
+ ...N
1457
1293
  }
1458
1294
  )
1459
1295
  });
@@ -1461,41 +1297,41 @@ function xr() {
1461
1297
  children: "Browse"
1462
1298
  }
1463
1299
  ),
1464
- /* @__PURE__ */ i("div", { className: `${E.Input} ${E.ImageSelectContainer}`, children: (C = (B = n == null ? void 0 : n.navigate(wr)) == null ? void 0 : B.getFiles()) == null ? void 0 : C.map(
1465
- ({ id: P, source: S }) => /* @__PURE__ */ T("label", { className: E.ImageSelect, children: [
1466
- /* @__PURE__ */ i(
1300
+ /* @__PURE__ */ s("div", { className: `${S.Input} ${S.ImageSelectContainer}`, children: (P = (k = n == null ? void 0 : n.navigate(vr)) == null ? void 0 : k.getFiles()) == null ? void 0 : P.map(
1301
+ ({ id: N, source: x }) => /* @__PURE__ */ E("label", { className: S.ImageSelect, children: [
1302
+ /* @__PURE__ */ s(
1467
1303
  "input",
1468
1304
  {
1469
1305
  type: "radio",
1470
- value: S ?? "",
1306
+ value: x ?? "",
1471
1307
  "aria-label": "Wallpaper image",
1472
- checked: S === a,
1308
+ checked: x === a,
1473
1309
  onChange: d,
1474
1310
  tabIndex: 0
1475
1311
  }
1476
1312
  ),
1477
- /* @__PURE__ */ i("img", { src: S ?? "", alt: P, draggable: "false" })
1478
- ] }, P)
1313
+ /* @__PURE__ */ s("img", { src: x ?? "", alt: N, draggable: "false" })
1314
+ ] }, N)
1479
1315
  ) })
1480
1316
  ] })
1481
1317
  ] });
1482
1318
  }
1483
- function Er() {
1484
- const { systemName: e } = ge(), n = He(), t = Ne();
1485
- return /* @__PURE__ */ T("div", { className: E.Option, children: [
1486
- /* @__PURE__ */ T("p", { className: E.Label, children: [
1319
+ function _r() {
1320
+ const { systemName: e } = me(), n = We(), t = Pe();
1321
+ return /* @__PURE__ */ E("div", { className: S.Option, children: [
1322
+ /* @__PURE__ */ E("p", { className: S.Label, children: [
1487
1323
  "About ",
1488
1324
  e
1489
1325
  ] }),
1490
- /* @__PURE__ */ T("p", { className: K.TextLight, children: [
1326
+ /* @__PURE__ */ E("p", { className: K.TextLight, children: [
1491
1327
  e,
1492
1328
  " is a web-based operating system inspired by Ubuntu Linux and Windows made with React.js by Prozilla."
1493
1329
  ] }),
1494
- /* @__PURE__ */ T("div", { className: E.ButtonGroup, children: [
1495
- /* @__PURE__ */ i(
1330
+ /* @__PURE__ */ E("div", { className: S.ButtonGroup, children: [
1331
+ /* @__PURE__ */ s(
1496
1332
  Se,
1497
1333
  {
1498
- className: `${E.Button} ${K.TextBold}`,
1334
+ className: `${S.Button} ${K.TextBold}`,
1499
1335
  onClick: (r) => {
1500
1336
  r.preventDefault(), n == null || n.open("text-editor", {
1501
1337
  mode: "view",
@@ -1506,10 +1342,10 @@ function Er() {
1506
1342
  children: "Open Info.md"
1507
1343
  }
1508
1344
  ),
1509
- /* @__PURE__ */ i(
1345
+ /* @__PURE__ */ s(
1510
1346
  Se,
1511
1347
  {
1512
- className: `${E.Button} ${K.TextBold}`,
1348
+ className: `${S.Button} ${K.TextBold}`,
1513
1349
  href: "https://github.com/prozilla-os/ProzillaOS",
1514
1350
  children: "View source"
1515
1351
  }
@@ -1517,33 +1353,33 @@ function Er() {
1517
1353
  ] })
1518
1354
  ] });
1519
1355
  }
1520
- function Sr() {
1521
- const e = Ne(), n = de.MAX_BYTES, t = de.getByteSize((e == null ? void 0 : e.toString()) ?? ""), r = de.byteToKilobyte(n), l = de.byteToKilobyte(t), a = r - l;
1522
- return /* @__PURE__ */ T(yt, { children: [
1523
- /* @__PURE__ */ T("div", { className: `${E.Option} ${E.ProgressBarContainer}`, children: [
1524
- /* @__PURE__ */ T("p", { className: E.Label, children: [
1356
+ function Tr() {
1357
+ const e = Pe(), n = ue.MAX_BYTES, t = ue.getByteSize((e == null ? void 0 : e.toString()) ?? ""), r = ue.byteToKilobyte(n), l = ue.byteToKilobyte(t), a = r - l;
1358
+ return /* @__PURE__ */ E(yt, { children: [
1359
+ /* @__PURE__ */ E("div", { className: `${S.Option} ${S.ProgressBarContainer}`, children: [
1360
+ /* @__PURE__ */ E("p", { className: S.Label, children: [
1525
1361
  "Virtual Drive (",
1526
- $e(r, 1),
1362
+ Ae(r, 1),
1527
1363
  " KB)"
1528
1364
  ] }),
1529
- /* @__PURE__ */ i(zt, { fillPercentage: l / r * 100, className: E.ProgressBar }),
1530
- /* @__PURE__ */ T("span", { className: E.ProgressBarLabels, children: [
1531
- /* @__PURE__ */ T("p", { className: K.TextLight, children: [
1532
- $e(l, 1),
1365
+ /* @__PURE__ */ s(Mt, { fillPercentage: l / r * 100, className: S.ProgressBar }),
1366
+ /* @__PURE__ */ E("span", { className: S.ProgressBarLabels, children: [
1367
+ /* @__PURE__ */ E("p", { className: K.TextLight, children: [
1368
+ Ae(l, 1),
1533
1369
  " KB used"
1534
1370
  ] }),
1535
- /* @__PURE__ */ T("p", { className: K.TextLight, children: [
1536
- $e(a, 1),
1371
+ /* @__PURE__ */ E("p", { className: K.TextLight, children: [
1372
+ Ae(a, 1),
1537
1373
  " KB free"
1538
1374
  ] })
1539
1375
  ] })
1540
1376
  ] }),
1541
- /* @__PURE__ */ T("div", { className: E.Option, children: [
1542
- /* @__PURE__ */ i("p", { className: E.Label, children: "Manage data" }),
1543
- /* @__PURE__ */ i(
1377
+ /* @__PURE__ */ E("div", { className: S.Option, children: [
1378
+ /* @__PURE__ */ s("p", { className: S.Label, children: "Manage data" }),
1379
+ /* @__PURE__ */ s(
1544
1380
  Se,
1545
1381
  {
1546
- className: `${E.Button} ${E.ButtonDanger} ${K.TextBold}`,
1382
+ className: `${S.Button} ${S.ButtonDanger} ${K.TextBold}`,
1547
1383
  onClick: () => {
1548
1384
  e == null || e.reset();
1549
1385
  },
@@ -1553,80 +1389,80 @@ function Sr() {
1553
1389
  ] })
1554
1390
  ] });
1555
1391
  }
1556
- function Ir({ app: e, pins: n, setPins: t }) {
1557
- const r = n.includes(e.id), l = Ke(), a = He(), { onContextMenu: g } = qe({
1558
- Actions: (o) => /* @__PURE__ */ T(Ue, { ...o, children: [
1559
- /* @__PURE__ */ i(ie, { label: "Launch", icon: e.iconUrl, onTrigger: () => a == null ? void 0 : a.open(e.id) }),
1560
- /* @__PURE__ */ i(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon: Zt, onTrigger: () => {
1392
+ function Er({ app: e, pins: n, setPins: t }) {
1393
+ const r = n.includes(e.id), l = Ye(), a = We(), { onContextMenu: h } = je({
1394
+ Actions: (i) => /* @__PURE__ */ E(Fe, { ...i, children: [
1395
+ /* @__PURE__ */ s(ie, { label: "Launch", icon: e.iconUrl, onTrigger: () => a == null ? void 0 : a.open(e.id) }),
1396
+ /* @__PURE__ */ s(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon: Xt, onTrigger: () => {
1561
1397
  const v = [...n];
1562
- r ? an(e.id, n) : v.push(e.id);
1563
- const h = l == null ? void 0 : l.getSettings(Ee.VIRTUAL_PATHS.taskbar);
1564
- h == null || h.set("pins", v.join(","));
1398
+ r ? rn(e.id, n) : v.push(e.id);
1399
+ const y = l == null ? void 0 : l.getSettings(we.VIRTUAL_PATHS.taskbar);
1400
+ y == null || y.set("pins", v.join(","));
1565
1401
  } })
1566
1402
  ] })
1567
1403
  });
1568
- return /* @__PURE__ */ T("div", { className: `${E.Option} ${E.OptionHorizontal}`, children: [
1569
- /* @__PURE__ */ T("span", { className: E.Label, children: [
1570
- /* @__PURE__ */ i(We, { className: E.Icon, source: e.iconUrl }),
1404
+ return /* @__PURE__ */ E("div", { className: `${S.Option} ${S.OptionHorizontal}`, children: [
1405
+ /* @__PURE__ */ E("span", { className: S.Label, children: [
1406
+ /* @__PURE__ */ s(qe, { className: S.Icon, source: e.iconUrl }),
1571
1407
  e.name
1572
1408
  ] }),
1573
- /* @__PURE__ */ i("button", { className: E.IconButton, onClick: g, children: /* @__PURE__ */ i(X, { icon: Qt }) })
1409
+ /* @__PURE__ */ s("button", { className: S.IconButton, onClick: h, children: /* @__PURE__ */ s(X, { icon: Jt }) })
1574
1410
  ] });
1575
1411
  }
1576
- function Cr() {
1577
- const { appsConfig: e } = ge(), n = Ke(), [t, r] = ne([]);
1578
- return le(() => {
1579
- const l = n == null ? void 0 : n.getSettings(Ee.VIRTUAL_PATHS.taskbar);
1412
+ function wr() {
1413
+ const { appsConfig: e } = me(), n = Ye(), [t, r] = te([]);
1414
+ return se(() => {
1415
+ const l = n == null ? void 0 : n.getSettings(we.VIRTUAL_PATHS.taskbar);
1580
1416
  l == null || l.get("pins", (a) => {
1581
1417
  r(a.split(","));
1582
1418
  });
1583
- }, [n]), /* @__PURE__ */ T("div", { className: `${E.Option} ${E.OptionList}`, children: [
1584
- /* @__PURE__ */ i("p", { className: E.Label, children: "Apps" }),
1419
+ }, [n]), /* @__PURE__ */ E("div", { className: `${S.Option} ${S.OptionList}`, children: [
1420
+ /* @__PURE__ */ s("p", { className: S.Label, children: "Apps" }),
1585
1421
  e.apps.sort(
1586
1422
  (l, a) => l.name.toLowerCase().localeCompare(a.name.toLowerCase())
1587
1423
  ).map(
1588
- (l) => /* @__PURE__ */ i(Ir, { app: l, pins: t, setPins: r }, l.id)
1424
+ (l) => /* @__PURE__ */ s(Er, { app: l, pins: t, setPins: r }, l.id)
1589
1425
  )
1590
1426
  ] });
1591
1427
  }
1592
- function Pr({ tab: e }) {
1593
- return /* @__PURE__ */ i("div", { className: E.SettingsContainer, children: /* @__PURE__ */ T(
1594
- Je,
1428
+ function Sr({ tab: e }) {
1429
+ return /* @__PURE__ */ s("div", { className: S.SettingsContainer, children: /* @__PURE__ */ E(
1430
+ Ke,
1595
1431
  {
1596
1432
  defaultIndex: e ?? 0,
1597
- className: E.Settings,
1598
- selectedTabClassName: E.ActiveTab,
1599
- selectedTabPanelClassName: E.ActivePanel,
1433
+ className: S.Settings,
1434
+ selectedTabClassName: S.ActiveTab,
1435
+ selectedTabPanelClassName: S.ActivePanel,
1600
1436
  children: [
1601
- /* @__PURE__ */ T(Ze, { className: E.Tabs, children: [
1602
- /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1603
- /* @__PURE__ */ i(X, { icon: en }),
1604
- /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "Apps" })
1437
+ /* @__PURE__ */ E(Ge, { className: S.Tabs, children: [
1438
+ /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1439
+ /* @__PURE__ */ s(X, { icon: Zt }),
1440
+ /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Apps" })
1605
1441
  ] }),
1606
- /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1607
- /* @__PURE__ */ i(X, { icon: tn }),
1608
- /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "Appearance" })
1442
+ /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1443
+ /* @__PURE__ */ s(X, { icon: Qt }),
1444
+ /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Appearance" })
1609
1445
  ] }),
1610
- /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1611
- /* @__PURE__ */ i(X, { icon: nn }),
1612
- /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "Storage" })
1446
+ /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1447
+ /* @__PURE__ */ s(X, { icon: en }),
1448
+ /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Storage" })
1613
1449
  ] }),
1614
- /* @__PURE__ */ T(ue, { className: E.TabButton, tabIndex: "0", children: [
1615
- /* @__PURE__ */ i(X, { icon: wt }),
1616
- /* @__PURE__ */ i("p", { className: K.TextSemibold, children: "About" })
1450
+ /* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
1451
+ /* @__PURE__ */ s(X, { icon: vt }),
1452
+ /* @__PURE__ */ s("p", { className: K.TextSemibold, children: "About" })
1617
1453
  ] })
1618
1454
  ] }),
1619
- /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(Cr, {}) }),
1620
- /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(xr, {}) }),
1621
- /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(Sr, {}) }),
1622
- /* @__PURE__ */ i(fe, { className: E.TabPanel, children: /* @__PURE__ */ i(Er, {}) })
1455
+ /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(wr, {}) }),
1456
+ /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(gr, {}) }),
1457
+ /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(Tr, {}) }),
1458
+ /* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(_r, {}) })
1623
1459
  ]
1624
1460
  }
1625
1461
  ) });
1626
1462
  }
1627
- const Nr = new gt("Settings", "settings", Pr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(ht.APP_ROLES.settings).setCategory("Personalization");
1628
- Nr.setMetadata({ name: "@prozilla-os/settings", version: "1.1.8", author: "Prozilla" });
1463
+ const xr = new bt("Settings", "settings", Sr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(mt.APP_ROLES.settings).setCategory("Personalization");
1464
+ xr.setMetadata({ name: "@prozilla-os/settings", version: "1.1.11", author: "Prozilla" });
1629
1465
  export {
1630
- Nr as settings
1466
+ xr as settings
1631
1467
  };
1632
1468
  //# sourceMappingURL=main.js.map