@canonical/maas-react-components 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as se, jsx as u, Fragment as De } from "react/jsx-runtime";
2
2
  import * as ne from "react";
3
- import ut, { useRef as Ce, useState as be, useEffect as Oe, useCallback as ee, cloneElement as ft, createContext as pt, useId as rr, useContext as Mr, useMemo as oe, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as yt } from "react";
4
- import { useListener as gt, Link as bt, Tooltip as ht, Button as _e, Icon as ke, Row as _t, Col as Et, Input as wt, CheckboxInput as Tt, useClickOutside as St, useOnEscapePressed as Ct, SearchBox as Ot } from "@canonical/react-components";
3
+ import ut, { useRef as Ce, useState as ye, useEffect as he, useCallback as re, cloneElement as ft, createContext as pt, useId as rr, useContext as Mr, useMemo as ie, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as yt } from "react";
4
+ import { useListener as gt, Link as bt, Tooltip as ht, Button as Ee, Icon as ke, Row as _t, Col as Et, Input as wt, CheckboxInput as St, useClickOutside as Tt, useOnEscapePressed as xt, SearchBox as Ct } from "@canonical/react-components";
5
5
  function Lr(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var zr = { exports: {} };
8
+ var Br = { exports: {} };
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
@@ -40,9 +40,9 @@ var zr = { exports: {} };
40
40
  }
41
41
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
42
42
  })();
43
- })(zr);
44
- var xt = zr.exports;
45
- const W = /* @__PURE__ */ Lr(xt);
43
+ })(Br);
44
+ var Ot = Br.exports;
45
+ const W = /* @__PURE__ */ Lr(Ot);
46
46
  const ve = {
47
47
  caution: "#F99B11",
48
48
  light: "#F7F7F7",
@@ -52,16 +52,16 @@ const ve = {
52
52
  positiveFaded: "#B7CCB9",
53
53
  positiveMid: "#4DAB4D",
54
54
  positive: "#0E8420"
55
- }, wo = [
55
+ }, So = [
56
56
  ve.link,
57
57
  ve.positive,
58
58
  ve.negative,
59
59
  ve.caution
60
- ], Dt = ve.linkFaded, Br = ve.caution, tr = ve.light, mr = 2, vr = 1, yr = (e, r) => {
60
+ ], Dt = ve.linkFaded, zr = ve.caution, tr = ve.light, mr = 2, vr = 1, yr = (e, r) => {
61
61
  var a, o;
62
62
  const t = ((o = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : o.width) || 0;
63
63
  return t > r * mr ? t / r : mr;
64
- }, he = {
64
+ }, _e = {
65
65
  bar: "meter-bar",
66
66
  container: "meter-container",
67
67
  filled: "meter-filled",
@@ -77,30 +77,30 @@ const ve = {
77
77
  size: o = "regular",
78
78
  ...s
79
79
  }) => {
80
- const i = Ce(null), y = t == null ? void 0 : t.reduce((D, _) => D + _.value, 0), l = n || y, v = t.map((D) => D.value / l * 100), [g, w] = be(0);
81
- Oe(() => {
82
- w(a === "segmented" ? yr(i, l) : 0);
83
- }, [l, a]);
84
- const O = ee(() => {
85
- w(yr(i, l));
86
- }, [i, l, w]);
87
- return gt(window, O, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
80
+ const i = Ce(null), v = t == null ? void 0 : t.reduce((O, w) => O + w.value, 0), c = n || v, y = t.map((O) => O.value / c * 100), [g, h] = ye(0);
81
+ he(() => {
82
+ h(a === "segmented" ? yr(i, c) : 0);
83
+ }, [c, a]);
84
+ const S = re(() => {
85
+ h(yr(i, c));
86
+ }, [i, c, h]);
87
+ return gt(window, S, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
88
88
  "div",
89
89
  {
90
90
  className: W("p-meter", e, {
91
91
  "p-meter--small": o === "small"
92
92
  }),
93
93
  "aria-label": s == null ? void 0 : s["aria-label"],
94
- "data-testid": he.container,
94
+ "data-testid": _e.container,
95
95
  ref: i,
96
96
  children: [
97
97
  /* @__PURE__ */ u(Pt, { children: /* @__PURE__ */ u(
98
- Rt,
98
+ It,
99
99
  {
100
100
  data: t,
101
- datumWidths: v,
102
- maximum: l,
103
- overColor: Br,
101
+ datumWidths: y,
102
+ maximum: c,
103
+ overColor: zr,
104
104
  segmentWidth: g,
105
105
  separatorColor: tr
106
106
  }
@@ -113,23 +113,23 @@ const ve = {
113
113
  "div",
114
114
  {
115
115
  className: "p-meter__bar",
116
- "data-testid": he.bar,
116
+ "data-testid": _e.bar,
117
117
  style: { backgroundColor: Dt },
118
118
  children: e
119
119
  }
120
- ), Rt = ({
120
+ ), It = ({
121
121
  data: e,
122
122
  datumWidths: r,
123
123
  maximum: t,
124
124
  segmentWidth: n
125
125
  }) => {
126
- const a = () => (e == null ? void 0 : e.reduce((i, y) => i + y.value, 0)) > t, o = (i, y) => ({
126
+ const a = () => (e == null ? void 0 : e.reduce((i, v) => i + v.value, 0)) > t, o = (i, v) => ({
127
127
  backgroundColor: i.color,
128
128
  left: `${r == null ? void 0 : r.reduce(
129
- (l, v, g) => y > g ? l + v : l,
129
+ (c, y, g) => v > g ? c + y : c,
130
130
  0
131
131
  )}%`,
132
- width: `${r[y]}%`
132
+ width: `${r[v]}%`
133
133
  }), s = () => ({
134
134
  background: `repeating-linear-gradient(
135
135
  to right,
@@ -144,39 +144,39 @@ const ve = {
144
144
  "div",
145
145
  {
146
146
  className: "p-meter__filled",
147
- "data-testid": he.meteroverflow,
148
- style: { backgroundColor: Br, width: "100%" }
147
+ "data-testid": _e.meteroverflow,
148
+ style: { backgroundColor: zr, width: "100%" }
149
149
  }
150
- ) : e == null ? void 0 : e.map((i, y) => /* @__PURE__ */ u(
150
+ ) : e == null ? void 0 : e.map((i, v) => /* @__PURE__ */ u(
151
151
  "div",
152
152
  {
153
153
  className: "p-meter__filled",
154
- "data-testid": he.filled,
155
- style: o(i, y)
154
+ "data-testid": _e.filled,
155
+ style: o(i, v)
156
156
  },
157
- `meter-${y}`
157
+ `meter-${v}`
158
158
  )),
159
159
  n > 0 && /* @__PURE__ */ u(
160
160
  "div",
161
161
  {
162
162
  className: "p-meter__separators",
163
- "data-testid": he.segments,
163
+ "data-testid": _e.segments,
164
164
  style: s()
165
165
  }
166
166
  )
167
167
  ] });
168
- }, It = ({
168
+ }, Rt = ({
169
169
  className: e,
170
170
  children: r
171
171
  }) => /* @__PURE__ */ u(
172
172
  "div",
173
173
  {
174
174
  className: W("p-meter__label", e),
175
- "data-testid": he.label,
175
+ "data-testid": _e.label,
176
176
  children: r
177
177
  }
178
178
  );
179
- At.Label = It;
179
+ At.Label = Rt;
180
180
  const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e }), Ft = ({ children: e }) => /* @__PURE__ */ u(De, { children: e }), jt = ({
181
181
  isCollapsed: e,
182
182
  setIsCollapsed: r,
@@ -194,7 +194,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
194
194
  position: "right",
195
195
  tooltipClassName: "p-side-navigation__tooltip",
196
196
  children: /* @__PURE__ */ u(
197
- _e,
197
+ Ee,
198
198
  {
199
199
  appearance: "base",
200
200
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
@@ -209,7 +209,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
209
209
  }
210
210
  )
211
211
  }
212
- ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), zt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), Bt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: W("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: W("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
212
+ ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Bt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), zt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: W("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: W("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
213
213
  as: e,
214
214
  ...r
215
215
  }) => /* @__PURE__ */ u(
@@ -218,12 +218,12 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
218
218
  className: W("p-side-navigation__link", r.className),
219
219
  ...r
220
220
  }
221
- ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: W("p-side-navigation__list", r), children: e }), Ht = ({
221
+ ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: W("p-side-navigation__list", r), children: e }), Kt = ({
222
222
  as: e,
223
223
  children: r,
224
224
  className: t,
225
225
  ...n
226
- }) => /* @__PURE__ */ u(e || "a", { className: W("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Kt = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
226
+ }) => /* @__PURE__ */ u(e || "a", { className: W("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
227
227
  "div",
228
228
  {
229
229
  className: W("p-panel__logo-name is-fading-when-collapsed", {
@@ -236,7 +236,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
236
236
  className: r,
237
237
  onClick: t
238
238
  }) => /* @__PURE__ */ u(
239
- _e,
239
+ Ee,
240
240
  {
241
241
  appearance: "base",
242
242
  className: W(
@@ -248,8 +248,8 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
248
248
  },
249
249
  children: e
250
250
  }
251
- ), Xt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e });
252
- const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: W("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Zt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: W("p-panel is-dark", r), children: e }) });
251
+ ), Zt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e });
252
+ const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: W("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Xt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: W("p-panel is-dark", r), children: e }) });
253
253
  H.Header = Lt;
254
254
  H.Banner = Ft;
255
255
  H.Drawer = $t;
@@ -258,17 +258,17 @@ H.CollapseToggle = jt;
258
258
  H.Content = kt;
259
259
  H.Footer = Mt;
260
260
  H.List = qt;
261
- H.Item = Bt;
261
+ H.Item = zt;
262
262
  H.Link = Yt;
263
- H.Text = Xt;
264
- H.Icon = zt;
263
+ H.Text = Zt;
264
+ H.Icon = Bt;
265
265
  H.Label = Wt;
266
- H.Logo = Ht;
266
+ H.Logo = Kt;
267
267
  H.LogoTag = Gt;
268
- H.LogoIcon = Kt;
268
+ H.LogoIcon = Ht;
269
269
  H.LogoName = Ut;
270
270
  H.LogoText = Vt;
271
- Zt.MenuButton = Jt;
271
+ Xt.MenuButton = Jt;
272
272
  const lr = pt(null), Wr = ({ children: e }) => {
273
273
  const r = rr();
274
274
  return /* @__PURE__ */ u(lr.Provider, { value: r, children: /* @__PURE__ */ u(
@@ -311,7 +311,7 @@ function on(e) {
311
311
  }, [e, a]), r;
312
312
  }
313
313
  const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
314
- }]), Hr = ({ children: e }) => {
314
+ }]), Kr = ({ children: e }) => {
315
315
  const r = ne.useRef(null), t = on(r), [n, a] = ne.useState(!1);
316
316
  return /* @__PURE__ */ u(
317
317
  "header",
@@ -362,8 +362,8 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
362
362
  )
363
363
  ] });
364
364
  };
365
- Hr.Title = an;
366
- Hr.Controls = sn;
365
+ Kr.Title = an;
366
+ Kr.Controls = sn;
367
367
  const Le = ({
368
368
  children: e,
369
369
  className: r,
@@ -385,7 +385,7 @@ Le.Title = cn;
385
385
  Le.Header = ln;
386
386
  Le.Content = un;
387
387
  Le.Footer = fn;
388
- const Kr = ({
388
+ const Hr = ({
389
389
  children: e,
390
390
  className: r,
391
391
  isVisible: t
@@ -397,10 +397,10 @@ const Kr = ({
397
397
  style: { visibility: t ? "visible" : "hidden" },
398
398
  children: e
399
399
  }
400
- ), So = ({
400
+ ), xo = ({
401
401
  children: e,
402
402
  ...r
403
- }) => /* @__PURE__ */ u(Kr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
403
+ }) => /* @__PURE__ */ u(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
404
404
  const pn = ({
405
405
  currentPage: e,
406
406
  error: r,
@@ -412,7 +412,7 @@ const pn = ({
412
412
  totalPages: i
413
413
  }) => /* @__PURE__ */ u("nav", { "aria-label": "pagination", className: "p-pagination", children: /* @__PURE__ */ se("span", { className: "p-pagination--items", children: [
414
414
  /* @__PURE__ */ u(
415
- _e,
415
+ Ee,
416
416
  {
417
417
  "aria-label": "Previous page",
418
418
  className: "p-pagination__link--previous",
@@ -445,7 +445,7 @@ const pn = ({
445
445
  i
446
446
  ] }),
447
447
  /* @__PURE__ */ u(
448
- _e,
448
+ Ee,
449
449
  {
450
450
  "aria-label": "Next page",
451
451
  className: "p-pagination__link--next",
@@ -461,7 +461,7 @@ const pn = ({
461
461
  paginate: t,
462
462
  totalPages: n
463
463
  }) => {
464
- const [a, o] = be(e), [s, i] = be("");
464
+ const [a, o] = ye(e), [s, i] = ye("");
465
465
  return /* @__PURE__ */ u(
466
466
  pn,
467
467
  {
@@ -471,15 +471,15 @@ const pn = ({
471
471
  onInputBlur: () => {
472
472
  o(e), i("");
473
473
  },
474
- onInputChange: (w) => {
475
- const { value: O, valueAsNumber: D } = w.target;
476
- O ? (o(D), D > n || D < 1 ? i(`${D} is not a valid page number.`) : (i(""), t(D))) : i("Enter a page number.");
474
+ onInputChange: (h) => {
475
+ const { value: S, valueAsNumber: O } = h.target;
476
+ S ? (o(O), O > n || O < 1 ? i(`${O} is not a valid page number.`) : (i(""), t(O))) : i("Enter a page number.");
477
477
  },
478
478
  onNextClick: () => {
479
- o((w) => Number(w) + 1), t(Number(e) + 1);
479
+ o((h) => Number(h) + 1), t(Number(e) + 1);
480
480
  },
481
481
  onPreviousClick: () => {
482
- o((w) => Number(w) - 1), t(Number(e) - 1);
482
+ o((h) => Number(h) - 1), t(Number(e) - 1);
483
483
  },
484
484
  totalPages: n
485
485
  }
@@ -499,7 +499,7 @@ const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className:
499
499
  }
500
500
  ) }, n);
501
501
  }) });
502
- var nr = { exports: {} }, Fe = { exports: {} }, I = {};
502
+ var nr = { exports: {} }, Fe = { exports: {} }, F = {};
503
503
  /** @license React v16.13.1
504
504
  * react-is.production.min.js
505
505
  *
@@ -511,71 +511,71 @@ var nr = { exports: {} }, Fe = { exports: {} }, I = {};
511
511
  var gr;
512
512
  function dn() {
513
513
  if (gr)
514
- return I;
514
+ return F;
515
515
  gr = 1;
516
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, O = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
517
- function j(p) {
518
- if (typeof p == "object" && p !== null) {
519
- var re = p.$$typeof;
520
- switch (re) {
516
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
517
+ function A(f) {
518
+ if (typeof f == "object" && f !== null) {
519
+ var Z = f.$$typeof;
520
+ switch (Z) {
521
521
  case r:
522
- switch (p = p.type, p) {
523
- case y:
524
- case l:
522
+ switch (f = f.type, f) {
523
+ case v:
524
+ case c:
525
525
  case n:
526
526
  case o:
527
527
  case a:
528
528
  case g:
529
- return p;
529
+ return f;
530
530
  default:
531
- switch (p = p && p.$$typeof, p) {
531
+ switch (f = f && f.$$typeof, f) {
532
532
  case i:
533
- case v:
534
- case D:
533
+ case y:
535
534
  case O:
535
+ case S:
536
536
  case s:
537
- return p;
537
+ return f;
538
538
  default:
539
- return re;
539
+ return Z;
540
540
  }
541
541
  }
542
542
  case t:
543
- return re;
543
+ return Z;
544
544
  }
545
545
  }
546
546
  }
547
- function k(p) {
548
- return j(p) === l;
547
+ function N(f) {
548
+ return A(f) === c;
549
549
  }
550
- return I.AsyncMode = y, I.ConcurrentMode = l, I.ContextConsumer = i, I.ContextProvider = s, I.Element = r, I.ForwardRef = v, I.Fragment = n, I.Lazy = D, I.Memo = O, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
551
- return k(p) || j(p) === y;
552
- }, I.isConcurrentMode = k, I.isContextConsumer = function(p) {
553
- return j(p) === i;
554
- }, I.isContextProvider = function(p) {
555
- return j(p) === s;
556
- }, I.isElement = function(p) {
557
- return typeof p == "object" && p !== null && p.$$typeof === r;
558
- }, I.isForwardRef = function(p) {
559
- return j(p) === v;
560
- }, I.isFragment = function(p) {
561
- return j(p) === n;
562
- }, I.isLazy = function(p) {
563
- return j(p) === D;
564
- }, I.isMemo = function(p) {
565
- return j(p) === O;
566
- }, I.isPortal = function(p) {
567
- return j(p) === t;
568
- }, I.isProfiler = function(p) {
569
- return j(p) === o;
570
- }, I.isStrictMode = function(p) {
571
- return j(p) === a;
572
- }, I.isSuspense = function(p) {
573
- return j(p) === g;
574
- }, I.isValidElementType = function(p) {
575
- return typeof p == "string" || typeof p == "function" || p === n || p === l || p === o || p === a || p === g || p === w || typeof p == "object" && p !== null && (p.$$typeof === D || p.$$typeof === O || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === M || p.$$typeof === L || p.$$typeof === K || p.$$typeof === _);
576
- }, I.typeOf = j, I;
577
- }
578
- var F = {};
550
+ return F.AsyncMode = v, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = y, F.Fragment = n, F.Lazy = O, F.Memo = S, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(f) {
551
+ return N(f) || A(f) === v;
552
+ }, F.isConcurrentMode = N, F.isContextConsumer = function(f) {
553
+ return A(f) === i;
554
+ }, F.isContextProvider = function(f) {
555
+ return A(f) === s;
556
+ }, F.isElement = function(f) {
557
+ return typeof f == "object" && f !== null && f.$$typeof === r;
558
+ }, F.isForwardRef = function(f) {
559
+ return A(f) === y;
560
+ }, F.isFragment = function(f) {
561
+ return A(f) === n;
562
+ }, F.isLazy = function(f) {
563
+ return A(f) === O;
564
+ }, F.isMemo = function(f) {
565
+ return A(f) === S;
566
+ }, F.isPortal = function(f) {
567
+ return A(f) === t;
568
+ }, F.isProfiler = function(f) {
569
+ return A(f) === o;
570
+ }, F.isStrictMode = function(f) {
571
+ return A(f) === a;
572
+ }, F.isSuspense = function(f) {
573
+ return A(f) === g;
574
+ }, F.isValidElementType = function(f) {
575
+ return typeof f == "string" || typeof f == "function" || f === n || f === c || f === o || f === a || f === g || f === h || typeof f == "object" && f !== null && (f.$$typeof === O || f.$$typeof === S || f.$$typeof === s || f.$$typeof === i || f.$$typeof === y || f.$$typeof === L || f.$$typeof === k || f.$$typeof === K || f.$$typeof === w);
576
+ }, F.typeOf = A, F;
577
+ }
578
+ var j = {};
579
579
  /** @license React v16.13.1
580
580
  * react-is.development.js
581
581
  *
@@ -587,20 +587,20 @@ var F = {};
587
587
  var br;
588
588
  function mn() {
589
589
  return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
590
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, O = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
591
- function j(f) {
592
- return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
593
- f === n || f === l || f === o || f === a || f === g || f === w || typeof f == "object" && f !== null && (f.$$typeof === D || f.$$typeof === O || f.$$typeof === s || f.$$typeof === i || f.$$typeof === v || f.$$typeof === M || f.$$typeof === L || f.$$typeof === K || f.$$typeof === _);
594
- }
595
- function k(f) {
596
- if (typeof f == "object" && f !== null) {
597
- var Z = f.$$typeof;
598
- switch (Z) {
590
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
591
+ function A(p) {
592
+ return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
593
+ p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === O || p.$$typeof === S || p.$$typeof === s || p.$$typeof === i || p.$$typeof === y || p.$$typeof === L || p.$$typeof === k || p.$$typeof === K || p.$$typeof === w);
594
+ }
595
+ function N(p) {
596
+ if (typeof p == "object" && p !== null) {
597
+ var Q = p.$$typeof;
598
+ switch (Q) {
599
599
  case r:
600
- var de = f.type;
600
+ var de = p.type;
601
601
  switch (de) {
602
- case y:
603
- case l:
602
+ case v:
603
+ case c:
604
604
  case n:
605
605
  case o:
606
606
  case a:
@@ -610,62 +610,62 @@ function mn() {
610
610
  var Te = de && de.$$typeof;
611
611
  switch (Te) {
612
612
  case i:
613
- case v:
614
- case D:
613
+ case y:
615
614
  case O:
615
+ case S:
616
616
  case s:
617
617
  return Te;
618
618
  default:
619
- return Z;
619
+ return Q;
620
620
  }
621
621
  }
622
622
  case t:
623
- return Z;
623
+ return Q;
624
624
  }
625
625
  }
626
626
  }
627
- var p = y, re = l, $ = i, V = s, X = r, ce = v, fe = n, pe = D, le = O, B = t, J = o, te = a, ae = g, ue = !1;
628
- function U(f) {
629
- return ue || (ue = !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.")), c(f) || k(f) === y;
627
+ var f = v, Z = c, $ = i, V = s, X = r, ce = y, fe = n, pe = O, le = S, z = t, J = o, te = a, oe = g, ue = !1;
628
+ function U(p) {
629
+ return ue || (ue = !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.")), l(p) || N(p) === v;
630
630
  }
631
- function c(f) {
632
- return k(f) === l;
631
+ function l(p) {
632
+ return N(p) === c;
633
633
  }
634
- function m(f) {
635
- return k(f) === i;
634
+ function m(p) {
635
+ return N(p) === i;
636
636
  }
637
- function T(f) {
638
- return k(f) === s;
637
+ function T(p) {
638
+ return N(p) === s;
639
639
  }
640
- function S(f) {
641
- return typeof f == "object" && f !== null && f.$$typeof === r;
640
+ function x(p) {
641
+ return typeof p == "object" && p !== null && p.$$typeof === r;
642
642
  }
643
- function h(f) {
644
- return k(f) === v;
643
+ function _(p) {
644
+ return N(p) === y;
645
645
  }
646
- function A(f) {
647
- return k(f) === n;
646
+ function P(p) {
647
+ return N(p) === n;
648
648
  }
649
- function E(f) {
650
- return k(f) === D;
649
+ function E(p) {
650
+ return N(p) === O;
651
651
  }
652
- function C(f) {
653
- return k(f) === O;
652
+ function C(p) {
653
+ return N(p) === S;
654
654
  }
655
- function P(f) {
656
- return k(f) === t;
655
+ function I(p) {
656
+ return N(p) === t;
657
657
  }
658
- function R(f) {
659
- return k(f) === o;
658
+ function R(p) {
659
+ return N(p) === o;
660
660
  }
661
- function x(f) {
662
- return k(f) === a;
661
+ function D(p) {
662
+ return N(p) === a;
663
663
  }
664
- function q(f) {
665
- return k(f) === g;
664
+ function q(p) {
665
+ return N(p) === g;
666
666
  }
667
- F.AsyncMode = p, F.ConcurrentMode = re, F.ContextConsumer = $, F.ContextProvider = V, F.Element = X, F.ForwardRef = ce, F.Fragment = fe, F.Lazy = pe, F.Memo = le, F.Portal = B, F.Profiler = J, F.StrictMode = te, F.Suspense = ae, F.isAsyncMode = U, F.isConcurrentMode = c, F.isContextConsumer = m, F.isContextProvider = T, F.isElement = S, F.isForwardRef = h, F.isFragment = A, F.isLazy = E, F.isMemo = C, F.isPortal = P, F.isProfiler = R, F.isStrictMode = x, F.isSuspense = q, F.isValidElementType = j, F.typeOf = k;
668
- }()), F;
667
+ j.AsyncMode = f, j.ConcurrentMode = Z, j.ContextConsumer = $, j.ContextProvider = V, j.Element = X, j.ForwardRef = ce, j.Fragment = fe, j.Lazy = pe, j.Memo = le, j.Portal = z, j.Profiler = J, j.StrictMode = te, j.Suspense = oe, j.isAsyncMode = U, j.isConcurrentMode = l, j.isContextConsumer = m, j.isContextProvider = T, j.isElement = x, j.isForwardRef = _, j.isFragment = P, j.isLazy = E, j.isMemo = C, j.isPortal = I, j.isProfiler = R, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = N;
668
+ }()), j;
669
669
  }
670
670
  var hr;
671
671
  function Ur() {
@@ -696,31 +696,31 @@ function vn() {
696
696
  return !1;
697
697
  for (var s = {}, i = 0; i < 10; i++)
698
698
  s["_" + String.fromCharCode(i)] = i;
699
- var y = Object.getOwnPropertyNames(s).map(function(v) {
700
- return s[v];
699
+ var v = Object.getOwnPropertyNames(s).map(function(y) {
700
+ return s[y];
701
701
  });
702
- if (y.join("") !== "0123456789")
702
+ if (v.join("") !== "0123456789")
703
703
  return !1;
704
- var l = {};
705
- return "abcdefghijklmnopqrst".split("").forEach(function(v) {
706
- l[v] = v;
707
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
704
+ var c = {};
705
+ return "abcdefghijklmnopqrst".split("").forEach(function(y) {
706
+ c[y] = y;
707
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
708
708
  } catch {
709
709
  return !1;
710
710
  }
711
711
  }
712
712
  return Ge = a() ? Object.assign : function(o, s) {
713
- for (var i, y = n(o), l, v = 1; v < arguments.length; v++) {
714
- i = Object(arguments[v]);
713
+ for (var i, v = n(o), c, y = 1; y < arguments.length; y++) {
714
+ i = Object(arguments[y]);
715
715
  for (var g in i)
716
- r.call(i, g) && (y[g] = i[g]);
716
+ r.call(i, g) && (v[g] = i[g]);
717
717
  if (e) {
718
- l = e(i);
719
- for (var w = 0; w < l.length; w++)
720
- t.call(i, l[w]) && (y[l[w]] = i[l[w]]);
718
+ c = e(i);
719
+ for (var h = 0; h < c.length; h++)
720
+ t.call(i, c[h]) && (v[c[h]] = i[c[h]]);
721
721
  }
722
722
  }
723
- return y;
723
+ return v;
724
724
  }, Ge;
725
725
  }
726
726
  var Ve, Er;
@@ -735,11 +735,11 @@ var Je, wr;
735
735
  function Gr() {
736
736
  return wr || (wr = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
737
737
  }
738
- var Xe, Tr;
738
+ var Ze, Sr;
739
739
  function yn() {
740
- if (Tr)
741
- return Xe;
742
- Tr = 1;
740
+ if (Sr)
741
+ return Ze;
742
+ Sr = 1;
743
743
  var e = function() {
744
744
  };
745
745
  if (process.env.NODE_ENV !== "production") {
@@ -753,29 +753,29 @@ function yn() {
753
753
  }
754
754
  };
755
755
  }
756
- function a(o, s, i, y, l) {
756
+ function a(o, s, i, v, c) {
757
757
  if (process.env.NODE_ENV !== "production") {
758
- for (var v in o)
759
- if (n(o, v)) {
758
+ for (var y in o)
759
+ if (n(o, y)) {
760
760
  var g;
761
761
  try {
762
- if (typeof o[v] != "function") {
763
- var w = Error(
764
- (y || "React class") + ": " + i + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
762
+ if (typeof o[y] != "function") {
763
+ var h = Error(
764
+ (v || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
765
765
  );
766
- throw w.name = "Invariant Violation", w;
766
+ throw h.name = "Invariant Violation", h;
767
767
  }
768
- g = o[v](s, v, y, i, null, r);
769
- } catch (D) {
770
- g = D;
768
+ g = o[y](s, y, v, i, null, r);
769
+ } catch (O) {
770
+ g = O;
771
771
  }
772
772
  if (g && !(g instanceof Error) && e(
773
- (y || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
773
+ (v || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
774
774
  ), g instanceof Error && !(g.message in t)) {
775
775
  t[g.message] = !0;
776
- var O = l ? l() : "";
776
+ var S = c ? c() : "";
777
777
  e(
778
- "Failed " + i + " type: " + g.message + (O ?? "")
778
+ "Failed " + i + " type: " + g.message + (S ?? "")
779
779
  );
780
780
  }
781
781
  }
@@ -783,47 +783,47 @@ function yn() {
783
783
  }
784
784
  return a.resetWarningCache = function() {
785
785
  process.env.NODE_ENV !== "production" && (t = {});
786
- }, Xe = a, Xe;
786
+ }, Ze = a, Ze;
787
787
  }
788
- var Ze, Sr;
788
+ var Xe, Tr;
789
789
  function gn() {
790
- if (Sr)
791
- return Ze;
792
- Sr = 1;
790
+ if (Tr)
791
+ return Xe;
792
+ Tr = 1;
793
793
  var e = Ur(), r = vn(), t = fr(), n = Gr(), a = yn(), o = function() {
794
794
  };
795
795
  process.env.NODE_ENV !== "production" && (o = function(i) {
796
- var y = "Warning: " + i;
797
- typeof console < "u" && console.error(y);
796
+ var v = "Warning: " + i;
797
+ typeof console < "u" && console.error(v);
798
798
  try {
799
- throw new Error(y);
799
+ throw new Error(v);
800
800
  } catch {
801
801
  }
802
802
  });
803
803
  function s() {
804
804
  return null;
805
805
  }
806
- return Ze = function(i, y) {
807
- var l = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
808
- function g(c) {
809
- var m = c && (l && c[l] || c[v]);
806
+ return Xe = function(i, v) {
807
+ var c = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
808
+ function g(l) {
809
+ var m = l && (c && l[c] || l[y]);
810
810
  if (typeof m == "function")
811
811
  return m;
812
812
  }
813
- var w = "<<anonymous>>", O = {
814
- array: L("array"),
815
- bigint: L("bigint"),
816
- bool: L("boolean"),
817
- func: L("function"),
818
- number: L("number"),
819
- object: L("object"),
820
- string: L("string"),
821
- symbol: L("symbol"),
813
+ var h = "<<anonymous>>", S = {
814
+ array: k("array"),
815
+ bigint: k("bigint"),
816
+ bool: k("boolean"),
817
+ func: k("function"),
818
+ number: k("number"),
819
+ object: k("object"),
820
+ string: k("string"),
821
+ symbol: k("symbol"),
822
822
  any: K(),
823
- arrayOf: j,
824
- element: k(),
825
- elementType: p(),
826
- instanceOf: re,
823
+ arrayOf: A,
824
+ element: N(),
825
+ elementType: f(),
826
+ instanceOf: Z,
827
827
  node: ce(),
828
828
  objectOf: V,
829
829
  oneOf: $,
@@ -831,234 +831,234 @@ function gn() {
831
831
  shape: pe,
832
832
  exact: le
833
833
  };
834
- function D(c, m) {
835
- return c === m ? c !== 0 || 1 / c === 1 / m : c !== c && m !== m;
834
+ function O(l, m) {
835
+ return l === m ? l !== 0 || 1 / l === 1 / m : l !== l && m !== m;
836
836
  }
837
- function _(c, m) {
838
- this.message = c, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
837
+ function w(l, m) {
838
+ this.message = l, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
839
839
  }
840
- _.prototype = Error.prototype;
841
- function M(c) {
840
+ w.prototype = Error.prototype;
841
+ function L(l) {
842
842
  if (process.env.NODE_ENV !== "production")
843
843
  var m = {}, T = 0;
844
- function S(A, E, C, P, R, x, q) {
845
- if (P = P || w, x = x || C, q !== t) {
846
- if (y) {
847
- var f = new Error(
844
+ function x(P, E, C, I, R, D, q) {
845
+ if (I = I || h, D = D || C, q !== t) {
846
+ if (v) {
847
+ var p = new Error(
848
848
  "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"
849
849
  );
850
- throw f.name = "Invariant Violation", f;
850
+ throw p.name = "Invariant Violation", p;
851
851
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
852
- var Z = P + ":" + C;
853
- !m[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
852
+ var Q = I + ":" + C;
853
+ !m[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
854
854
  T < 3 && (o(
855
- "You are manually calling a React.PropTypes validation function for the `" + x + "` prop on `" + P + "`. 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."
856
- ), m[Z] = !0, T++);
855
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. 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."
856
+ ), m[Q] = !0, T++);
857
857
  }
858
858
  }
859
- return E[C] == null ? A ? E[C] === null ? new _("The " + R + " `" + x + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new _("The " + R + " `" + x + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : c(E, C, P, R, x);
859
+ return E[C] == null ? P ? E[C] === null ? new w("The " + R + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new w("The " + R + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : l(E, C, I, R, D);
860
860
  }
861
- var h = S.bind(null, !1);
862
- return h.isRequired = S.bind(null, !0), h;
863
- }
864
- function L(c) {
865
- function m(T, S, h, A, E, C) {
866
- var P = T[S], R = te(P);
867
- if (R !== c) {
868
- var x = ae(P);
869
- return new _(
870
- "Invalid " + A + " `" + E + "` of type " + ("`" + x + "` supplied to `" + h + "`, expected ") + ("`" + c + "`."),
871
- { expectedType: c }
861
+ var _ = x.bind(null, !1);
862
+ return _.isRequired = x.bind(null, !0), _;
863
+ }
864
+ function k(l) {
865
+ function m(T, x, _, P, E, C) {
866
+ var I = T[x], R = te(I);
867
+ if (R !== l) {
868
+ var D = oe(I);
869
+ return new w(
870
+ "Invalid " + P + " `" + E + "` of type " + ("`" + D + "` supplied to `" + _ + "`, expected ") + ("`" + l + "`."),
871
+ { expectedType: l }
872
872
  );
873
873
  }
874
874
  return null;
875
875
  }
876
- return M(m);
876
+ return L(m);
877
877
  }
878
878
  function K() {
879
- return M(s);
879
+ return L(s);
880
880
  }
881
- function j(c) {
882
- function m(T, S, h, A, E) {
883
- if (typeof c != "function")
884
- return new _("Property `" + E + "` of component `" + h + "` has invalid PropType notation inside arrayOf.");
885
- var C = T[S];
881
+ function A(l) {
882
+ function m(T, x, _, P, E) {
883
+ if (typeof l != "function")
884
+ return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
885
+ var C = T[x];
886
886
  if (!Array.isArray(C)) {
887
- var P = te(C);
888
- return new _("Invalid " + A + " `" + E + "` of type " + ("`" + P + "` supplied to `" + h + "`, expected an array."));
887
+ var I = te(C);
888
+ return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected an array."));
889
889
  }
890
890
  for (var R = 0; R < C.length; R++) {
891
- var x = c(C, R, h, A, E + "[" + R + "]", t);
892
- if (x instanceof Error)
893
- return x;
891
+ var D = l(C, R, _, P, E + "[" + R + "]", t);
892
+ if (D instanceof Error)
893
+ return D;
894
894
  }
895
895
  return null;
896
896
  }
897
- return M(m);
897
+ return L(m);
898
898
  }
899
- function k() {
900
- function c(m, T, S, h, A) {
899
+ function N() {
900
+ function l(m, T, x, _, P) {
901
901
  var E = m[T];
902
902
  if (!i(E)) {
903
903
  var C = te(E);
904
- return new _("Invalid " + h + " `" + A + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement."));
904
+ return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement."));
905
905
  }
906
906
  return null;
907
907
  }
908
- return M(c);
908
+ return L(l);
909
909
  }
910
- function p() {
911
- function c(m, T, S, h, A) {
910
+ function f() {
911
+ function l(m, T, x, _, P) {
912
912
  var E = m[T];
913
913
  if (!e.isValidElementType(E)) {
914
914
  var C = te(E);
915
- return new _("Invalid " + h + " `" + A + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement type."));
915
+ return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement type."));
916
916
  }
917
917
  return null;
918
918
  }
919
- return M(c);
919
+ return L(l);
920
920
  }
921
- function re(c) {
922
- function m(T, S, h, A, E) {
923
- if (!(T[S] instanceof c)) {
924
- var C = c.name || w, P = U(T[S]);
925
- return new _("Invalid " + A + " `" + E + "` of type " + ("`" + P + "` supplied to `" + h + "`, expected ") + ("instance of `" + C + "`."));
921
+ function Z(l) {
922
+ function m(T, x, _, P, E) {
923
+ if (!(T[x] instanceof l)) {
924
+ var C = l.name || h, I = U(T[x]);
925
+ return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected ") + ("instance of `" + C + "`."));
926
926
  }
927
927
  return null;
928
928
  }
929
- return M(m);
929
+ return L(m);
930
930
  }
931
- function $(c) {
932
- if (!Array.isArray(c))
931
+ function $(l) {
932
+ if (!Array.isArray(l))
933
933
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
934
934
  "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])."
935
935
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
936
- function m(T, S, h, A, E) {
937
- for (var C = T[S], P = 0; P < c.length; P++)
938
- if (D(C, c[P]))
936
+ function m(T, x, _, P, E) {
937
+ for (var C = T[x], I = 0; I < l.length; I++)
938
+ if (O(C, l[I]))
939
939
  return null;
940
- var R = JSON.stringify(c, function(q, f) {
941
- var Z = ae(f);
942
- return Z === "symbol" ? String(f) : f;
940
+ var R = JSON.stringify(l, function(q, p) {
941
+ var Q = oe(p);
942
+ return Q === "symbol" ? String(p) : p;
943
943
  });
944
- return new _("Invalid " + A + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + h + "`, expected one of " + R + "."));
944
+ return new w("Invalid " + P + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + _ + "`, expected one of " + R + "."));
945
945
  }
946
- return M(m);
947
- }
948
- function V(c) {
949
- function m(T, S, h, A, E) {
950
- if (typeof c != "function")
951
- return new _("Property `" + E + "` of component `" + h + "` has invalid PropType notation inside objectOf.");
952
- var C = T[S], P = te(C);
953
- if (P !== "object")
954
- return new _("Invalid " + A + " `" + E + "` of type " + ("`" + P + "` supplied to `" + h + "`, expected an object."));
946
+ return L(m);
947
+ }
948
+ function V(l) {
949
+ function m(T, x, _, P, E) {
950
+ if (typeof l != "function")
951
+ return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
952
+ var C = T[x], I = te(C);
953
+ if (I !== "object")
954
+ return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected an object."));
955
955
  for (var R in C)
956
956
  if (n(C, R)) {
957
- var x = c(C, R, h, A, E + "." + R, t);
958
- if (x instanceof Error)
959
- return x;
957
+ var D = l(C, R, _, P, E + "." + R, t);
958
+ if (D instanceof Error)
959
+ return D;
960
960
  }
961
961
  return null;
962
962
  }
963
- return M(m);
963
+ return L(m);
964
964
  }
965
- function X(c) {
966
- if (!Array.isArray(c))
965
+ function X(l) {
966
+ if (!Array.isArray(l))
967
967
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
968
- for (var m = 0; m < c.length; m++) {
969
- var T = c[m];
968
+ for (var m = 0; m < l.length; m++) {
969
+ var T = l[m];
970
970
  if (typeof T != "function")
971
971
  return o(
972
972
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + m + "."
973
973
  ), s;
974
974
  }
975
- function S(h, A, E, C, P) {
976
- for (var R = [], x = 0; x < c.length; x++) {
977
- var q = c[x], f = q(h, A, E, C, P, t);
978
- if (f == null)
975
+ function x(_, P, E, C, I) {
976
+ for (var R = [], D = 0; D < l.length; D++) {
977
+ var q = l[D], p = q(_, P, E, C, I, t);
978
+ if (p == null)
979
979
  return null;
980
- f.data && n(f.data, "expectedType") && R.push(f.data.expectedType);
980
+ p.data && n(p.data, "expectedType") && R.push(p.data.expectedType);
981
981
  }
982
- var Z = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
983
- return new _("Invalid " + C + " `" + P + "` supplied to " + ("`" + E + "`" + Z + "."));
982
+ var Q = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
983
+ return new w("Invalid " + C + " `" + I + "` supplied to " + ("`" + E + "`" + Q + "."));
984
984
  }
985
- return M(S);
985
+ return L(x);
986
986
  }
987
987
  function ce() {
988
- function c(m, T, S, h, A) {
989
- return B(m[T]) ? null : new _("Invalid " + h + " `" + A + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
988
+ function l(m, T, x, _, P) {
989
+ return z(m[T]) ? null : new w("Invalid " + _ + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
990
990
  }
991
- return M(c);
991
+ return L(l);
992
992
  }
993
- function fe(c, m, T, S, h) {
994
- return new _(
995
- (c || "React class") + ": " + m + " type `" + T + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + h + "`."
993
+ function fe(l, m, T, x, _) {
994
+ return new w(
995
+ (l || "React class") + ": " + m + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
996
996
  );
997
997
  }
998
- function pe(c) {
999
- function m(T, S, h, A, E) {
1000
- var C = T[S], P = te(C);
1001
- if (P !== "object")
1002
- return new _("Invalid " + A + " `" + E + "` of type `" + P + "` " + ("supplied to `" + h + "`, expected `object`."));
1003
- for (var R in c) {
1004
- var x = c[R];
1005
- if (typeof x != "function")
1006
- return fe(h, A, E, R, ae(x));
1007
- var q = x(C, R, h, A, E + "." + R, t);
998
+ function pe(l) {
999
+ function m(T, x, _, P, E) {
1000
+ var C = T[x], I = te(C);
1001
+ if (I !== "object")
1002
+ return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
1003
+ for (var R in l) {
1004
+ var D = l[R];
1005
+ if (typeof D != "function")
1006
+ return fe(_, P, E, R, oe(D));
1007
+ var q = D(C, R, _, P, E + "." + R, t);
1008
1008
  if (q)
1009
1009
  return q;
1010
1010
  }
1011
1011
  return null;
1012
1012
  }
1013
- return M(m);
1014
- }
1015
- function le(c) {
1016
- function m(T, S, h, A, E) {
1017
- var C = T[S], P = te(C);
1018
- if (P !== "object")
1019
- return new _("Invalid " + A + " `" + E + "` of type `" + P + "` " + ("supplied to `" + h + "`, expected `object`."));
1020
- var R = r({}, T[S], c);
1021
- for (var x in R) {
1022
- var q = c[x];
1023
- if (n(c, x) && typeof q != "function")
1024
- return fe(h, A, E, x, ae(q));
1013
+ return L(m);
1014
+ }
1015
+ function le(l) {
1016
+ function m(T, x, _, P, E) {
1017
+ var C = T[x], I = te(C);
1018
+ if (I !== "object")
1019
+ return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
1020
+ var R = r({}, T[x], l);
1021
+ for (var D in R) {
1022
+ var q = l[D];
1023
+ if (n(l, D) && typeof q != "function")
1024
+ return fe(_, P, E, D, oe(q));
1025
1025
  if (!q)
1026
- return new _(
1027
- "Invalid " + A + " `" + E + "` key `" + x + "` supplied to `" + h + "`.\nBad object: " + JSON.stringify(T[S], null, " ") + `
1028
- Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1026
+ return new w(
1027
+ "Invalid " + P + " `" + E + "` key `" + D + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(T[x], null, " ") + `
1028
+ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1029
1029
  );
1030
- var f = q(C, x, h, A, E + "." + x, t);
1031
- if (f)
1032
- return f;
1030
+ var p = q(C, D, _, P, E + "." + D, t);
1031
+ if (p)
1032
+ return p;
1033
1033
  }
1034
1034
  return null;
1035
1035
  }
1036
- return M(m);
1036
+ return L(m);
1037
1037
  }
1038
- function B(c) {
1039
- switch (typeof c) {
1038
+ function z(l) {
1039
+ switch (typeof l) {
1040
1040
  case "number":
1041
1041
  case "string":
1042
1042
  case "undefined":
1043
1043
  return !0;
1044
1044
  case "boolean":
1045
- return !c;
1045
+ return !l;
1046
1046
  case "object":
1047
- if (Array.isArray(c))
1048
- return c.every(B);
1049
- if (c === null || i(c))
1047
+ if (Array.isArray(l))
1048
+ return l.every(z);
1049
+ if (l === null || i(l))
1050
1050
  return !0;
1051
- var m = g(c);
1051
+ var m = g(l);
1052
1052
  if (m) {
1053
- var T = m.call(c), S;
1054
- if (m !== c.entries) {
1055
- for (; !(S = T.next()).done; )
1056
- if (!B(S.value))
1053
+ var T = m.call(l), x;
1054
+ if (m !== l.entries) {
1055
+ for (; !(x = T.next()).done; )
1056
+ if (!z(x.value))
1057
1057
  return !1;
1058
1058
  } else
1059
- for (; !(S = T.next()).done; ) {
1060
- var h = S.value;
1061
- if (h && !B(h[1]))
1059
+ for (; !(x = T.next()).done; ) {
1060
+ var _ = x.value;
1061
+ if (_ && !z(_[1]))
1062
1062
  return !1;
1063
1063
  }
1064
1064
  } else
@@ -1068,27 +1068,27 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1068
1068
  return !1;
1069
1069
  }
1070
1070
  }
1071
- function J(c, m) {
1072
- return c === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
1071
+ function J(l, m) {
1072
+ return l === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
1073
1073
  }
1074
- function te(c) {
1075
- var m = typeof c;
1076
- return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : J(m, c) ? "symbol" : m;
1074
+ function te(l) {
1075
+ var m = typeof l;
1076
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : J(m, l) ? "symbol" : m;
1077
1077
  }
1078
- function ae(c) {
1079
- if (typeof c > "u" || c === null)
1080
- return "" + c;
1081
- var m = te(c);
1078
+ function oe(l) {
1079
+ if (typeof l > "u" || l === null)
1080
+ return "" + l;
1081
+ var m = te(l);
1082
1082
  if (m === "object") {
1083
- if (c instanceof Date)
1083
+ if (l instanceof Date)
1084
1084
  return "date";
1085
- if (c instanceof RegExp)
1085
+ if (l instanceof RegExp)
1086
1086
  return "regexp";
1087
1087
  }
1088
1088
  return m;
1089
1089
  }
1090
- function ue(c) {
1091
- var m = ae(c);
1090
+ function ue(l) {
1091
+ var m = oe(l);
1092
1092
  switch (m) {
1093
1093
  case "array":
1094
1094
  case "object":
@@ -1101,29 +1101,29 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1101
1101
  return m;
1102
1102
  }
1103
1103
  }
1104
- function U(c) {
1105
- return !c.constructor || !c.constructor.name ? w : c.constructor.name;
1104
+ function U(l) {
1105
+ return !l.constructor || !l.constructor.name ? h : l.constructor.name;
1106
1106
  }
1107
- return O.checkPropTypes = a, O.resetWarningCache = a.resetWarningCache, O.PropTypes = O, O;
1108
- }, Ze;
1107
+ return S.checkPropTypes = a, S.resetWarningCache = a.resetWarningCache, S.PropTypes = S, S;
1108
+ }, Xe;
1109
1109
  }
1110
- var Qe, Cr;
1110
+ var Qe, xr;
1111
1111
  function bn() {
1112
- if (Cr)
1112
+ if (xr)
1113
1113
  return Qe;
1114
- Cr = 1;
1114
+ xr = 1;
1115
1115
  var e = fr();
1116
1116
  function r() {
1117
1117
  }
1118
1118
  function t() {
1119
1119
  }
1120
1120
  return t.resetWarningCache = r, Qe = function() {
1121
- function n(s, i, y, l, v, g) {
1121
+ function n(s, i, v, c, y, g) {
1122
1122
  if (g !== e) {
1123
- var w = new Error(
1123
+ var h = new Error(
1124
1124
  "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"
1125
1125
  );
1126
- throw w.name = "Invariant Violation", w;
1126
+ throw h.name = "Invariant Violation", h;
1127
1127
  }
1128
1128
  }
1129
1129
  n.isRequired = n;
@@ -1162,35 +1162,35 @@ if (process.env.NODE_ENV !== "production") {
1162
1162
  } else
1163
1163
  nr.exports = bn()();
1164
1164
  var En = nr.exports;
1165
- const N = /* @__PURE__ */ Lr(En);
1166
- function Ee(e, r, t, n) {
1165
+ const M = /* @__PURE__ */ Lr(En);
1166
+ function we(e, r, t, n) {
1167
1167
  function a(o) {
1168
1168
  return o instanceof t ? o : new t(function(s) {
1169
1169
  s(o);
1170
1170
  });
1171
1171
  }
1172
1172
  return new (t || (t = Promise))(function(o, s) {
1173
- function i(v) {
1173
+ function i(y) {
1174
1174
  try {
1175
- l(n.next(v));
1175
+ c(n.next(y));
1176
1176
  } catch (g) {
1177
1177
  s(g);
1178
1178
  }
1179
1179
  }
1180
- function y(v) {
1180
+ function v(y) {
1181
1181
  try {
1182
- l(n.throw(v));
1182
+ c(n.throw(y));
1183
1183
  } catch (g) {
1184
1184
  s(g);
1185
1185
  }
1186
1186
  }
1187
- function l(v) {
1188
- v.done ? o(v.value) : a(v.value).then(i, y);
1187
+ function c(y) {
1188
+ y.done ? o(y.value) : a(y.value).then(i, v);
1189
1189
  }
1190
- l((n = n.apply(e, r || [])).next());
1190
+ c((n = n.apply(e, r || [])).next());
1191
1191
  });
1192
1192
  }
1193
- function we(e, r) {
1193
+ function Se(e, r) {
1194
1194
  var t = { label: 0, sent: function() {
1195
1195
  if (o[0] & 1)
1196
1196
  throw o[1];
@@ -1199,63 +1199,63 @@ function we(e, r) {
1199
1199
  return s = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1200
1200
  return this;
1201
1201
  }), s;
1202
- function i(l) {
1203
- return function(v) {
1204
- return y([l, v]);
1202
+ function i(c) {
1203
+ return function(y) {
1204
+ return v([c, y]);
1205
1205
  };
1206
1206
  }
1207
- function y(l) {
1207
+ function v(c) {
1208
1208
  if (n)
1209
1209
  throw new TypeError("Generator is already executing.");
1210
- for (; s && (s = 0, l[0] && (t = 0)), t; )
1210
+ for (; s && (s = 0, c[0] && (t = 0)), t; )
1211
1211
  try {
1212
- if (n = 1, a && (o = l[0] & 2 ? a.return : l[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, l[1])).done)
1212
+ if (n = 1, a && (o = c[0] & 2 ? a.return : c[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, c[1])).done)
1213
1213
  return o;
1214
- switch (a = 0, o && (l = [l[0] & 2, o.value]), l[0]) {
1214
+ switch (a = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
1215
1215
  case 0:
1216
1216
  case 1:
1217
- o = l;
1217
+ o = c;
1218
1218
  break;
1219
1219
  case 4:
1220
- return t.label++, { value: l[1], done: !1 };
1220
+ return t.label++, { value: c[1], done: !1 };
1221
1221
  case 5:
1222
- t.label++, a = l[1], l = [0];
1222
+ t.label++, a = c[1], c = [0];
1223
1223
  continue;
1224
1224
  case 7:
1225
- l = t.ops.pop(), t.trys.pop();
1225
+ c = t.ops.pop(), t.trys.pop();
1226
1226
  continue;
1227
1227
  default:
1228
- if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (l[0] === 6 || l[0] === 2)) {
1228
+ if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
1229
1229
  t = 0;
1230
1230
  continue;
1231
1231
  }
1232
- if (l[0] === 3 && (!o || l[1] > o[0] && l[1] < o[3])) {
1233
- t.label = l[1];
1232
+ if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
1233
+ t.label = c[1];
1234
1234
  break;
1235
1235
  }
1236
- if (l[0] === 6 && t.label < o[1]) {
1237
- t.label = o[1], o = l;
1236
+ if (c[0] === 6 && t.label < o[1]) {
1237
+ t.label = o[1], o = c;
1238
1238
  break;
1239
1239
  }
1240
1240
  if (o && t.label < o[2]) {
1241
- t.label = o[2], t.ops.push(l);
1241
+ t.label = o[2], t.ops.push(c);
1242
1242
  break;
1243
1243
  }
1244
1244
  o[2] && t.ops.pop(), t.trys.pop();
1245
1245
  continue;
1246
1246
  }
1247
- l = r.call(e, t);
1248
- } catch (v) {
1249
- l = [6, v], a = 0;
1247
+ c = r.call(e, t);
1248
+ } catch (y) {
1249
+ c = [6, y], a = 0;
1250
1250
  } finally {
1251
1251
  n = o = 0;
1252
1252
  }
1253
- if (l[0] & 5)
1254
- throw l[1];
1255
- return { value: l[0] ? l[1] : void 0, done: !0 };
1253
+ if (c[0] & 5)
1254
+ throw c[1];
1255
+ return { value: c[0] ? c[1] : void 0, done: !0 };
1256
1256
  }
1257
1257
  }
1258
- function Or(e, r) {
1258
+ function Cr(e, r) {
1259
1259
  var t = typeof Symbol == "function" && e[Symbol.iterator];
1260
1260
  if (!t)
1261
1261
  return e;
@@ -1275,7 +1275,7 @@ function Or(e, r) {
1275
1275
  }
1276
1276
  return o;
1277
1277
  }
1278
- function xr(e, r, t) {
1278
+ function Or(e, r, t) {
1279
1279
  if (t || arguments.length === 2)
1280
1280
  for (var n = 0, a = r.length, o; n < a; n++)
1281
1281
  (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
@@ -1366,7 +1366,7 @@ var wn = /* @__PURE__ */ new Map([
1366
1366
  ["msg", "application/vnd.ms-outlook"]
1367
1367
  ]);
1368
1368
  function Ae(e, r) {
1369
- var t = Tn(e);
1369
+ var t = Sn(e);
1370
1370
  if (typeof t.path != "string") {
1371
1371
  var n = e.webkitRelativePath;
1372
1372
  Object.defineProperty(t, "path", {
@@ -1378,7 +1378,7 @@ function Ae(e, r) {
1378
1378
  }
1379
1379
  return t;
1380
1380
  }
1381
- function Tn(e) {
1381
+ function Sn(e) {
1382
1382
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
1383
1383
  if (t && !e.type) {
1384
1384
  var n = r.split(".").pop().toLowerCase(), a = wn.get(n);
@@ -1391,25 +1391,25 @@ function Tn(e) {
1391
1391
  }
1392
1392
  return e;
1393
1393
  }
1394
- var Sn = [
1394
+ var Tn = [
1395
1395
  // Thumbnail cache files for macOS and Windows
1396
1396
  ".DS_Store",
1397
1397
  "Thumbs.db"
1398
1398
  // Windows
1399
1399
  ];
1400
- function Cn(e) {
1401
- return Ee(this, void 0, void 0, function() {
1402
- return we(this, function(r) {
1403
- return Ne(e) && On(e.dataTransfer) ? [2, Pn(e.dataTransfer, e.type)] : xn(e) ? [2, Dn(e)] : Array.isArray(e) && e.every(function(t) {
1400
+ function xn(e) {
1401
+ return we(this, void 0, void 0, function() {
1402
+ return Se(this, function(r) {
1403
+ return Ne(e) && Cn(e.dataTransfer) ? [2, Pn(e.dataTransfer, e.type)] : On(e) ? [2, Dn(e)] : Array.isArray(e) && e.every(function(t) {
1404
1404
  return "getFile" in t && typeof t.getFile == "function";
1405
1405
  }) ? [2, An(e)] : [2, []];
1406
1406
  });
1407
1407
  });
1408
1408
  }
1409
- function On(e) {
1409
+ function Cn(e) {
1410
1410
  return Ne(e);
1411
1411
  }
1412
- function xn(e) {
1412
+ function On(e) {
1413
1413
  return Ne(e) && Ne(e.target);
1414
1414
  }
1415
1415
  function Ne(e) {
@@ -1421,9 +1421,9 @@ function Dn(e) {
1421
1421
  });
1422
1422
  }
1423
1423
  function An(e) {
1424
- return Ee(this, void 0, void 0, function() {
1424
+ return we(this, void 0, void 0, function() {
1425
1425
  var r;
1426
- return we(this, function(t) {
1426
+ return Se(this, function(t) {
1427
1427
  switch (t.label) {
1428
1428
  case 0:
1429
1429
  return [4, Promise.all(e.map(function(n) {
@@ -1438,14 +1438,14 @@ function An(e) {
1438
1438
  });
1439
1439
  }
1440
1440
  function Pn(e, r) {
1441
- return Ee(this, void 0, void 0, function() {
1441
+ return we(this, void 0, void 0, function() {
1442
1442
  var t, n;
1443
- return we(this, function(a) {
1443
+ return Se(this, function(a) {
1444
1444
  switch (a.label) {
1445
1445
  case 0:
1446
1446
  return e.items ? (t = or(e.items).filter(function(o) {
1447
1447
  return o.kind === "file";
1448
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Rn))]) : [3, 2];
1448
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(In))]) : [3, 2];
1449
1449
  case 1:
1450
1450
  return n = a.sent(), [2, Dr(Vr(n))];
1451
1451
  case 2:
@@ -1458,7 +1458,7 @@ function Pn(e, r) {
1458
1458
  }
1459
1459
  function Dr(e) {
1460
1460
  return e.filter(function(r) {
1461
- return Sn.indexOf(r.name) === -1;
1461
+ return Tn.indexOf(r.name) === -1;
1462
1462
  });
1463
1463
  }
1464
1464
  function or(e) {
@@ -1470,7 +1470,7 @@ function or(e) {
1470
1470
  }
1471
1471
  return r;
1472
1472
  }
1473
- function Rn(e) {
1473
+ function In(e) {
1474
1474
  if (typeof e.webkitGetAsEntry != "function")
1475
1475
  return Ar(e);
1476
1476
  var r = e.webkitGetAsEntry();
@@ -1478,7 +1478,7 @@ function Rn(e) {
1478
1478
  }
1479
1479
  function Vr(e) {
1480
1480
  return e.reduce(function(r, t) {
1481
- return xr(xr([], Or(r), !1), Or(Array.isArray(t) ? Vr(t) : [t]), !1);
1481
+ return Or(Or([], Cr(r), !1), Cr(Array.isArray(t) ? Vr(t) : [t]), !1);
1482
1482
  }, []);
1483
1483
  }
1484
1484
  function Ar(e) {
@@ -1488,9 +1488,9 @@ function Ar(e) {
1488
1488
  var t = Ae(r);
1489
1489
  return Promise.resolve(t);
1490
1490
  }
1491
- function In(e) {
1492
- return Ee(this, void 0, void 0, function() {
1493
- return we(this, function(r) {
1491
+ function Rn(e) {
1492
+ return we(this, void 0, void 0, function() {
1493
+ return Se(this, function(r) {
1494
1494
  return [2, e.isDirectory ? Jr(e) : Fn(e)];
1495
1495
  });
1496
1496
  });
@@ -1502,9 +1502,9 @@ function Jr(e) {
1502
1502
  function o() {
1503
1503
  var s = this;
1504
1504
  r.readEntries(function(i) {
1505
- return Ee(s, void 0, void 0, function() {
1506
- var y, l, v;
1507
- return we(this, function(g) {
1505
+ return we(s, void 0, void 0, function() {
1506
+ var v, c, y;
1507
+ return Se(this, function(g) {
1508
1508
  switch (g.label) {
1509
1509
  case 0:
1510
1510
  if (i.length)
@@ -1513,13 +1513,13 @@ function Jr(e) {
1513
1513
  case 1:
1514
1514
  return g.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1515
1515
  case 2:
1516
- return y = g.sent(), t(y), [3, 4];
1516
+ return v = g.sent(), t(v), [3, 4];
1517
1517
  case 3:
1518
- return l = g.sent(), n(l), [3, 4];
1518
+ return c = g.sent(), n(c), [3, 4];
1519
1519
  case 4:
1520
1520
  return [3, 6];
1521
1521
  case 5:
1522
- v = Promise.all(i.map(In)), a.push(v), o(), g.label = 6;
1522
+ y = Promise.all(i.map(Rn)), a.push(y), o(), g.label = 6;
1523
1523
  case 6:
1524
1524
  return [
1525
1525
  2
@@ -1536,8 +1536,8 @@ function Jr(e) {
1536
1536
  });
1537
1537
  }
1538
1538
  function Fn(e) {
1539
- return Ee(this, void 0, void 0, function() {
1540
- return we(this, function(r) {
1539
+ return we(this, void 0, void 0, function() {
1540
+ return Se(this, function(r) {
1541
1541
  return [2, new Promise(function(t, n) {
1542
1542
  e.file(function(a) {
1543
1543
  var o = Ae(a, e.fullPath);
@@ -1560,7 +1560,7 @@ var jn = function(e, r) {
1560
1560
  return !0;
1561
1561
  };
1562
1562
  function Pr(e) {
1563
- return $n(e) || Nn(e) || Zr(e) || kn();
1563
+ return $n(e) || Nn(e) || Xr(e) || kn();
1564
1564
  }
1565
1565
  function kn() {
1566
1566
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -1574,7 +1574,7 @@ function $n(e) {
1574
1574
  if (Array.isArray(e))
1575
1575
  return ar(e);
1576
1576
  }
1577
- function Rr(e, r) {
1577
+ function Ir(e, r) {
1578
1578
  var t = Object.keys(e);
1579
1579
  if (Object.getOwnPropertySymbols) {
1580
1580
  var n = Object.getOwnPropertySymbols(e);
@@ -1584,28 +1584,28 @@ function Rr(e, r) {
1584
1584
  }
1585
1585
  return t;
1586
1586
  }
1587
- function Ir(e) {
1587
+ function Rr(e) {
1588
1588
  for (var r = 1; r < arguments.length; r++) {
1589
1589
  var t = arguments[r] != null ? arguments[r] : {};
1590
- r % 2 ? Rr(Object(t), !0).forEach(function(n) {
1591
- Xr(e, n, t[n]);
1592
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
1590
+ r % 2 ? Ir(Object(t), !0).forEach(function(n) {
1591
+ Zr(e, n, t[n]);
1592
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ir(Object(t)).forEach(function(n) {
1593
1593
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1594
1594
  });
1595
1595
  }
1596
1596
  return e;
1597
1597
  }
1598
- function Xr(e, r, t) {
1598
+ function Zr(e, r, t) {
1599
1599
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1600
1600
  }
1601
- function xe(e, r) {
1602
- return zn(e) || Ln(e, r) || Zr(e, r) || Mn();
1601
+ function Oe(e, r) {
1602
+ return Bn(e) || Ln(e, r) || Xr(e, r) || Mn();
1603
1603
  }
1604
1604
  function Mn() {
1605
1605
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1606
1606
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1607
1607
  }
1608
- function Zr(e, r) {
1608
+ function Xr(e, r) {
1609
1609
  if (e) {
1610
1610
  if (typeof e == "string")
1611
1611
  return ar(e, r);
@@ -1629,8 +1629,8 @@ function Ln(e, r) {
1629
1629
  try {
1630
1630
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1631
1631
  ;
1632
- } catch (y) {
1633
- o = !0, i = y;
1632
+ } catch (v) {
1633
+ o = !0, i = v;
1634
1634
  } finally {
1635
1635
  try {
1636
1636
  !a && t.return != null && t.return();
@@ -1642,15 +1642,15 @@ function Ln(e, r) {
1642
1642
  return n;
1643
1643
  }
1644
1644
  }
1645
- function zn(e) {
1645
+ function Bn(e) {
1646
1646
  if (Array.isArray(e))
1647
1647
  return e;
1648
1648
  }
1649
- var Bn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn = "too-many-files", Hn = function(r) {
1649
+ var zn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn = "too-many-files", Kn = function(r) {
1650
1650
  r = Array.isArray(r) && r.length === 1 ? r[0] : r;
1651
1651
  var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
1652
1652
  return {
1653
- code: Bn,
1653
+ code: zn,
1654
1654
  message: "File type must be ".concat(t)
1655
1655
  };
1656
1656
  }, Fr = function(r) {
@@ -1663,13 +1663,13 @@ var Bn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn =
1663
1663
  code: Yn,
1664
1664
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1665
1665
  };
1666
- }, Kn = {
1666
+ }, Hn = {
1667
1667
  code: qn,
1668
1668
  message: "Too many files"
1669
1669
  };
1670
1670
  function Qr(e, r) {
1671
1671
  var t = e.type === "application/x-moz-file" || jn(e, r);
1672
- return [t, t ? null : Hn(r)];
1672
+ return [t, t ? null : Kn(r)];
1673
1673
  }
1674
1674
  function et(e, r, t) {
1675
1675
  if (me(e.size))
@@ -1691,9 +1691,9 @@ function me(e) {
1691
1691
  }
1692
1692
  function Un(e) {
1693
1693
  var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
1694
- return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(y) {
1695
- var l = Qr(y, t), v = xe(l, 1), g = v[0], w = et(y, n, a), O = xe(w, 1), D = O[0], _ = i ? i(y) : null;
1696
- return g && D && !_;
1694
+ return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(v) {
1695
+ var c = Qr(v, t), y = Oe(c, 1), g = y[0], h = et(v, n, a), S = Oe(h, 1), O = S[0], w = i ? i(v) : null;
1696
+ return g && O && !w;
1697
1697
  });
1698
1698
  }
1699
1699
  function $e(e) {
@@ -1717,7 +1717,7 @@ function Jn() {
1717
1717
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1718
1718
  return Gn(e) || Vn(e);
1719
1719
  }
1720
- function ie() {
1720
+ function ae() {
1721
1721
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1722
1722
  r[t] = arguments[t];
1723
1723
  return function(n) {
@@ -1728,17 +1728,17 @@ function ie() {
1728
1728
  });
1729
1729
  };
1730
1730
  }
1731
- function Xn() {
1731
+ function Zn() {
1732
1732
  return "showOpenFilePicker" in window;
1733
1733
  }
1734
- function Zn(e) {
1734
+ function Xn(e) {
1735
1735
  if (me(e)) {
1736
1736
  var r = Object.entries(e).filter(function(t) {
1737
- var n = xe(t, 2), a = n[0], o = n[1], s = !0;
1737
+ var n = Oe(t, 2), a = n[0], o = n[1], s = !0;
1738
1738
  return rt(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(tt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), s = !1), s;
1739
1739
  }).reduce(function(t, n) {
1740
- var a = xe(n, 2), o = a[0], s = a[1];
1741
- return Ir(Ir({}, t), {}, Xr({}, o, s));
1740
+ var a = Oe(n, 2), o = a[0], s = a[1];
1741
+ return Rr(Rr({}, t), {}, Zr({}, o, s));
1742
1742
  }, {});
1743
1743
  return [{
1744
1744
  // description is required due to https://crbug.com/1264708
@@ -1751,7 +1751,7 @@ function Zn(e) {
1751
1751
  function Qn(e) {
1752
1752
  if (me(e))
1753
1753
  return Object.entries(e).reduce(function(r, t) {
1754
- var n = xe(t, 2), a = n[0], o = n[1];
1754
+ var n = Oe(t, 2), a = n[0], o = n[1];
1755
1755
  return [].concat(Pr(r), [a], Pr(o));
1756
1756
  }, []).filter(function(r) {
1757
1757
  return rt(r) || tt(r);
@@ -1816,8 +1816,8 @@ function fo(e, r) {
1816
1816
  try {
1817
1817
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1818
1818
  ;
1819
- } catch (y) {
1820
- o = !0, i = y;
1819
+ } catch (v) {
1820
+ o = !0, i = v;
1821
1821
  } finally {
1822
1822
  try {
1823
1823
  !a && t.return != null && t.return();
@@ -1843,7 +1843,7 @@ function Nr(e, r) {
1843
1843
  }
1844
1844
  return t;
1845
1845
  }
1846
- function z(e) {
1846
+ function B(e) {
1847
1847
  for (var r = 1; r < arguments.length; r++) {
1848
1848
  var t = arguments[r] != null ? arguments[r] : {};
1849
1849
  r % 2 ? Nr(Object(t), !0).forEach(function(n) {
@@ -1882,14 +1882,14 @@ var pr = /* @__PURE__ */ mt(function(e, r) {
1882
1882
  return {
1883
1883
  open: o
1884
1884
  };
1885
- }, [o]), /* @__PURE__ */ ut.createElement(yt, null, t(z(z({}, s), {}, {
1885
+ }, [o]), /* @__PURE__ */ ut.createElement(yt, null, t(B(B({}, s), {}, {
1886
1886
  open: o
1887
1887
  })));
1888
1888
  });
1889
1889
  pr.displayName = "Dropzone";
1890
1890
  var ot = {
1891
1891
  disabled: !1,
1892
- getFilesFromEvent: Cn,
1892
+ getFilesFromEvent: xn,
1893
1893
  maxSize: 1 / 0,
1894
1894
  minSize: 0,
1895
1895
  multiple: !0,
@@ -1920,7 +1920,7 @@ pr.propTypes = {
1920
1920
  * @param {File[]} params.acceptedFiles Accepted files
1921
1921
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1922
1922
  */
1923
- children: N.func,
1923
+ children: M.func,
1924
1924
  /**
1925
1925
  * Set accepted file types.
1926
1926
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -1928,90 +1928,90 @@ pr.propTypes = {
1928
1928
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1929
1929
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1930
1930
  */
1931
- accept: N.objectOf(N.arrayOf(N.string)),
1931
+ accept: M.objectOf(M.arrayOf(M.string)),
1932
1932
  /**
1933
1933
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1934
1934
  */
1935
- multiple: N.bool,
1935
+ multiple: M.bool,
1936
1936
  /**
1937
1937
  * If false, allow dropped items to take over the current browser window
1938
1938
  */
1939
- preventDropOnDocument: N.bool,
1939
+ preventDropOnDocument: M.bool,
1940
1940
  /**
1941
1941
  * If true, disables click to open the native file selection dialog
1942
1942
  */
1943
- noClick: N.bool,
1943
+ noClick: M.bool,
1944
1944
  /**
1945
1945
  * If true, disables SPACE/ENTER to open the native file selection dialog.
1946
1946
  * Note that it also stops tracking the focus state.
1947
1947
  */
1948
- noKeyboard: N.bool,
1948
+ noKeyboard: M.bool,
1949
1949
  /**
1950
1950
  * If true, disables drag 'n' drop
1951
1951
  */
1952
- noDrag: N.bool,
1952
+ noDrag: M.bool,
1953
1953
  /**
1954
1954
  * If true, stops drag event propagation to parents
1955
1955
  */
1956
- noDragEventsBubbling: N.bool,
1956
+ noDragEventsBubbling: M.bool,
1957
1957
  /**
1958
1958
  * Minimum file size (in bytes)
1959
1959
  */
1960
- minSize: N.number,
1960
+ minSize: M.number,
1961
1961
  /**
1962
1962
  * Maximum file size (in bytes)
1963
1963
  */
1964
- maxSize: N.number,
1964
+ maxSize: M.number,
1965
1965
  /**
1966
1966
  * Maximum accepted number of files
1967
1967
  * The default value is 0 which means there is no limitation to how many files are accepted.
1968
1968
  */
1969
- maxFiles: N.number,
1969
+ maxFiles: M.number,
1970
1970
  /**
1971
1971
  * Enable/disable the dropzone
1972
1972
  */
1973
- disabled: N.bool,
1973
+ disabled: M.bool,
1974
1974
  /**
1975
1975
  * Use this to provide a custom file aggregator
1976
1976
  *
1977
1977
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
1978
1978
  */
1979
- getFilesFromEvent: N.func,
1979
+ getFilesFromEvent: M.func,
1980
1980
  /**
1981
1981
  * Cb for when closing the file dialog with no selection
1982
1982
  */
1983
- onFileDialogCancel: N.func,
1983
+ onFileDialogCancel: M.func,
1984
1984
  /**
1985
1985
  * Cb for when opening the file dialog
1986
1986
  */
1987
- onFileDialogOpen: N.func,
1987
+ onFileDialogOpen: M.func,
1988
1988
  /**
1989
1989
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
1990
1990
  * to open the file picker instead of using an `<input type="file">` click event.
1991
1991
  */
1992
- useFsAccessApi: N.bool,
1992
+ useFsAccessApi: M.bool,
1993
1993
  /**
1994
1994
  * Set to true to focus the root element on render
1995
1995
  */
1996
- autoFocus: N.bool,
1996
+ autoFocus: M.bool,
1997
1997
  /**
1998
1998
  * Cb for when the `dragenter` event occurs.
1999
1999
  *
2000
2000
  * @param {DragEvent} event
2001
2001
  */
2002
- onDragEnter: N.func,
2002
+ onDragEnter: M.func,
2003
2003
  /**
2004
2004
  * Cb for when the `dragleave` event occurs
2005
2005
  *
2006
2006
  * @param {DragEvent} event
2007
2007
  */
2008
- onDragLeave: N.func,
2008
+ onDragLeave: M.func,
2009
2009
  /**
2010
2010
  * Cb for when the `dragover` event occurs
2011
2011
  *
2012
2012
  * @param {DragEvent} event
2013
2013
  */
2014
- onDragOver: N.func,
2014
+ onDragOver: M.func,
2015
2015
  /**
2016
2016
  * Cb for when the `drop` event occurs.
2017
2017
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -2042,7 +2042,7 @@ pr.propTypes = {
2042
2042
  * @param {FileRejection[]} fileRejections
2043
2043
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
2044
2044
  */
2045
- onDrop: N.func,
2045
+ onDrop: M.func,
2046
2046
  /**
2047
2047
  * Cb for when the `drop` event occurs.
2048
2048
  * Note that if no files are accepted, this callback is not invoked.
@@ -2050,7 +2050,7 @@ pr.propTypes = {
2050
2050
  * @param {File[]} files
2051
2051
  * @param {(DragEvent|Event)} event
2052
2052
  */
2053
- onDropAccepted: N.func,
2053
+ onDropAccepted: M.func,
2054
2054
  /**
2055
2055
  * Cb for when the `drop` event occurs.
2056
2056
  * Note that if no files are rejected, this callback is not invoked.
@@ -2058,19 +2058,19 @@ pr.propTypes = {
2058
2058
  * @param {FileRejection[]} fileRejections
2059
2059
  * @param {(DragEvent|Event)} event
2060
2060
  */
2061
- onDropRejected: N.func,
2061
+ onDropRejected: M.func,
2062
2062
  /**
2063
2063
  * Cb for when there's some error from any of the promises.
2064
2064
  *
2065
2065
  * @param {Error} error
2066
2066
  */
2067
- onError: N.func,
2067
+ onError: M.func,
2068
2068
  /**
2069
2069
  * Custom validation function. It must return null if there's no errors.
2070
2070
  * @param {File} file
2071
2071
  * @returns {FileError|FileError[]|null}
2072
2072
  */
2073
- validator: N.func
2073
+ validator: M.func
2074
2074
  };
2075
2075
  var cr = {
2076
2076
  isFocused: !1,
@@ -2082,15 +2082,15 @@ var cr = {
2082
2082
  fileRejections: []
2083
2083
  };
2084
2084
  function at() {
2085
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, y = r.maxFiles, l = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, w = r.onDrop, O = r.onDropAccepted, D = r.onDropRejected, _ = r.onFileDialogCancel, M = r.onFileDialogOpen, L = r.useFsAccessApi, K = r.autoFocus, j = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, re = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = oe(function() {
2085
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = B(B({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, v = r.maxFiles, c = r.onDragEnter, y = r.onDragLeave, g = r.onDragOver, h = r.onDrop, S = r.onDropAccepted, O = r.onDropRejected, w = r.onFileDialogCancel, L = r.onFileDialogOpen, k = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, N = r.noClick, f = r.noKeyboard, Z = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = ie(function() {
2086
2086
  return Qn(t);
2087
- }, [t]), fe = oe(function() {
2088
- return Zn(t);
2089
- }, [t]), pe = oe(function() {
2090
- return typeof M == "function" ? M : $r;
2091
- }, [M]), le = oe(function() {
2092
- return typeof _ == "function" ? _ : $r;
2093
- }, [_]), B = Ce(null), J = Ce(null), te = dt(vo, cr), ae = er(te, 2), ue = ae[0], U = ae[1], c = ue.isFocused, m = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && L && Xn()), S = function() {
2087
+ }, [t]), fe = ie(function() {
2088
+ return Xn(t);
2089
+ }, [t]), pe = ie(function() {
2090
+ return typeof L == "function" ? L : $r;
2091
+ }, [L]), le = ie(function() {
2092
+ return typeof w == "function" ? w : $r;
2093
+ }, [w]), z = Ce(null), J = Ce(null), te = dt(vo, cr), oe = er(te, 2), ue = oe[0], U = oe[1], l = ue.isFocused, m = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && k && Zn()), x = function() {
2094
2094
  !T.current && m && setTimeout(function() {
2095
2095
  if (J.current) {
2096
2096
  var b = J.current.files;
@@ -2100,26 +2100,26 @@ function at() {
2100
2100
  }
2101
2101
  }, 300);
2102
2102
  };
2103
- Oe(function() {
2104
- return window.addEventListener("focus", S, !1), function() {
2105
- window.removeEventListener("focus", S, !1);
2103
+ he(function() {
2104
+ return window.addEventListener("focus", x, !1), function() {
2105
+ window.removeEventListener("focus", x, !1);
2106
2106
  };
2107
2107
  }, [J, m, le, T]);
2108
- var h = Ce([]), A = function(b) {
2109
- B.current && B.current.contains(b.target) || (b.preventDefault(), h.current = []);
2108
+ var _ = Ce([]), P = function(b) {
2109
+ z.current && z.current.contains(b.target) || (b.preventDefault(), _.current = []);
2110
2110
  };
2111
- Oe(function() {
2112
- return j && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", A, !1)), function() {
2113
- j && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", A));
2111
+ he(function() {
2112
+ return A && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", P, !1)), function() {
2113
+ A && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", P));
2114
2114
  };
2115
- }, [B, j]), Oe(function() {
2116
- return !n && K && B.current && B.current.focus(), function() {
2115
+ }, [z, A]), he(function() {
2116
+ return !n && K && z.current && z.current.focus(), function() {
2117
2117
  };
2118
- }, [B, K, n]);
2119
- var E = ee(function(d) {
2118
+ }, [z, K, n]);
2119
+ var E = re(function(d) {
2120
2120
  V ? V(d) : console.error(d);
2121
- }, [V]), C = ee(function(d) {
2122
- d.preventDefault(), d.persist(), Re(d), h.current = [].concat(io(h.current), [d.target]), je(d) && Promise.resolve(a(d)).then(function(b) {
2121
+ }, [V]), C = re(function(d) {
2122
+ d.preventDefault(), d.persist(), Ie(d), _.current = [].concat(io(_.current), [d.target]), je(d) && Promise.resolve(a(d)).then(function(b) {
2123
2123
  if (!($e(d) && !$)) {
2124
2124
  var Y = b.length, G = Y > 0 && Un({
2125
2125
  files: b,
@@ -2127,21 +2127,21 @@ function at() {
2127
2127
  minSize: s,
2128
2128
  maxSize: o,
2129
2129
  multiple: i,
2130
- maxFiles: y,
2130
+ maxFiles: v,
2131
2131
  validator: X
2132
- }), Q = Y > 0 && !G;
2132
+ }), ee = Y > 0 && !G;
2133
2133
  U({
2134
2134
  isDragAccept: G,
2135
- isDragReject: Q,
2135
+ isDragReject: ee,
2136
2136
  isDragActive: !0,
2137
2137
  type: "setDraggedFiles"
2138
- }), l && l(d);
2138
+ }), c && c(d);
2139
2139
  }
2140
2140
  }).catch(function(b) {
2141
2141
  return E(b);
2142
2142
  });
2143
- }, [a, l, E, $, ce, s, o, i, y, X]), P = ee(function(d) {
2144
- d.preventDefault(), d.persist(), Re(d);
2143
+ }, [a, c, E, $, ce, s, o, i, v, X]), I = re(function(d) {
2144
+ d.preventDefault(), d.persist(), Ie(d);
2145
2145
  var b = je(d);
2146
2146
  if (b && d.dataTransfer)
2147
2147
  try {
@@ -2149,51 +2149,51 @@ function at() {
2149
2149
  } catch {
2150
2150
  }
2151
2151
  return b && g && g(d), !1;
2152
- }, [g, $]), R = ee(function(d) {
2153
- d.preventDefault(), d.persist(), Re(d);
2154
- var b = h.current.filter(function(G) {
2155
- return B.current && B.current.contains(G);
2152
+ }, [g, $]), R = re(function(d) {
2153
+ d.preventDefault(), d.persist(), Ie(d);
2154
+ var b = _.current.filter(function(G) {
2155
+ return z.current && z.current.contains(G);
2156
2156
  }), Y = b.indexOf(d.target);
2157
- Y !== -1 && b.splice(Y, 1), h.current = b, !(b.length > 0) && (U({
2157
+ Y !== -1 && b.splice(Y, 1), _.current = b, !(b.length > 0) && (U({
2158
2158
  type: "setDraggedFiles",
2159
2159
  isDragActive: !1,
2160
2160
  isDragAccept: !1,
2161
2161
  isDragReject: !1
2162
- }), je(d) && v && v(d));
2163
- }, [B, v, $]), x = ee(function(d, b) {
2162
+ }), je(d) && y && y(d));
2163
+ }, [z, y, $]), D = re(function(d, b) {
2164
2164
  var Y = [], G = [];
2165
- d.forEach(function(Q) {
2166
- var Se = Qr(Q, ce), ge = er(Se, 2), Be = ge[0], We = ge[1], Ye = et(Q, s, o), Ie = er(Ye, 2), qe = Ie[0], He = Ie[1], Ke = X ? X(Q) : null;
2167
- if (Be && qe && !Ke)
2168
- Y.push(Q);
2165
+ d.forEach(function(ee) {
2166
+ var xe = Qr(ee, ce), be = er(xe, 2), ze = be[0], We = be[1], Ye = et(ee, s, o), Re = er(Ye, 2), qe = Re[0], Ke = Re[1], He = X ? X(ee) : null;
2167
+ if (ze && qe && !He)
2168
+ Y.push(ee);
2169
2169
  else {
2170
- var Ue = [We, He];
2171
- Ke && (Ue = Ue.concat(Ke)), G.push({
2172
- file: Q,
2170
+ var Ue = [We, Ke];
2171
+ He && (Ue = Ue.concat(He)), G.push({
2172
+ file: ee,
2173
2173
  errors: Ue.filter(function(lt) {
2174
2174
  return lt;
2175
2175
  })
2176
2176
  });
2177
2177
  }
2178
- }), (!i && Y.length > 1 || i && y >= 1 && Y.length > y) && (Y.forEach(function(Q) {
2178
+ }), (!i && Y.length > 1 || i && v >= 1 && Y.length > v) && (Y.forEach(function(ee) {
2179
2179
  G.push({
2180
- file: Q,
2181
- errors: [Kn]
2180
+ file: ee,
2181
+ errors: [Hn]
2182
2182
  });
2183
2183
  }), Y.splice(0)), U({
2184
2184
  acceptedFiles: Y,
2185
2185
  fileRejections: G,
2186
2186
  type: "setFiles"
2187
- }), w && w(Y, G, b), G.length > 0 && D && D(G, b), Y.length > 0 && O && O(Y, b);
2188
- }, [U, i, ce, s, o, y, w, O, D, X]), q = ee(function(d) {
2189
- d.preventDefault(), d.persist(), Re(d), h.current = [], je(d) && Promise.resolve(a(d)).then(function(b) {
2190
- $e(d) && !$ || x(b, d);
2187
+ }), h && h(Y, G, b), G.length > 0 && O && O(G, b), Y.length > 0 && S && S(Y, b);
2188
+ }, [U, i, ce, s, o, v, h, S, O, X]), q = re(function(d) {
2189
+ d.preventDefault(), d.persist(), Ie(d), _.current = [], je(d) && Promise.resolve(a(d)).then(function(b) {
2190
+ $e(d) && !$ || D(b, d);
2191
2191
  }).catch(function(b) {
2192
2192
  return E(b);
2193
2193
  }), U({
2194
2194
  type: "reset"
2195
2195
  });
2196
- }, [a, x, E, $]), f = ee(function() {
2196
+ }, [a, D, E, $]), p = re(function() {
2197
2197
  if (T.current) {
2198
2198
  U({
2199
2199
  type: "openDialog"
@@ -2205,7 +2205,7 @@ function at() {
2205
2205
  window.showOpenFilePicker(d).then(function(b) {
2206
2206
  return a(b);
2207
2207
  }).then(function(b) {
2208
- x(b, null), U({
2208
+ D(b, null), U({
2209
2209
  type: "closeDialog"
2210
2210
  });
2211
2211
  }).catch(function(b) {
@@ -2218,108 +2218,108 @@ function at() {
2218
2218
  J.current && (U({
2219
2219
  type: "openDialog"
2220
2220
  }), pe(), J.current.value = null, J.current.click());
2221
- }, [U, pe, le, L, x, E, fe, i]), Z = ee(function(d) {
2222
- !B.current || !B.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), f());
2223
- }, [B, f]), de = ee(function() {
2221
+ }, [U, pe, le, k, D, E, fe, i]), Q = re(function(d) {
2222
+ !z.current || !z.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), p());
2223
+ }, [z, p]), de = re(function() {
2224
2224
  U({
2225
2225
  type: "focus"
2226
2226
  });
2227
- }, []), Te = ee(function() {
2227
+ }, []), Te = re(function() {
2228
2228
  U({
2229
2229
  type: "blur"
2230
2230
  });
2231
- }, []), dr = ee(function() {
2232
- k || (Jn() ? setTimeout(f, 0) : f());
2233
- }, [k, f]), ye = function(b) {
2231
+ }, []), dr = re(function() {
2232
+ N || (Jn() ? setTimeout(p, 0) : p());
2233
+ }, [N, p]), ge = function(b) {
2234
2234
  return n ? null : b;
2235
- }, ze = function(b) {
2236
- return p ? null : ye(b);
2235
+ }, Be = function(b) {
2236
+ return f ? null : ge(b);
2237
2237
  }, Pe = function(b) {
2238
- return re ? null : ye(b);
2239
- }, Re = function(b) {
2238
+ return Z ? null : ge(b);
2239
+ }, Ie = function(b) {
2240
2240
  $ && b.stopPropagation();
2241
- }, it = oe(function() {
2241
+ }, it = ie(function() {
2242
2242
  return function() {
2243
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.role, Q = d.onKeyDown, Se = d.onFocus, ge = d.onBlur, Be = d.onClick, We = d.onDragEnter, Ye = d.onDragOver, Ie = d.onDragLeave, qe = d.onDrop, He = Me(d, oo);
2244
- return z(z(sr({
2245
- onKeyDown: ze(ie(Q, Z)),
2246
- onFocus: ze(ie(Se, de)),
2247
- onBlur: ze(ie(ge, Te)),
2248
- onClick: ye(ie(Be, dr)),
2249
- onDragEnter: Pe(ie(We, C)),
2250
- onDragOver: Pe(ie(Ye, P)),
2251
- onDragLeave: Pe(ie(Ie, R)),
2252
- onDrop: Pe(ie(qe, q)),
2243
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.role, ee = d.onKeyDown, xe = d.onFocus, be = d.onBlur, ze = d.onClick, We = d.onDragEnter, Ye = d.onDragOver, Re = d.onDragLeave, qe = d.onDrop, Ke = Me(d, oo);
2244
+ return B(B(sr({
2245
+ onKeyDown: Be(ae(ee, Q)),
2246
+ onFocus: Be(ae(xe, de)),
2247
+ onBlur: Be(ae(be, Te)),
2248
+ onClick: ge(ae(ze, dr)),
2249
+ onDragEnter: Pe(ae(We, C)),
2250
+ onDragOver: Pe(ae(Ye, I)),
2251
+ onDragLeave: Pe(ae(Re, R)),
2252
+ onDrop: Pe(ae(qe, q)),
2253
2253
  role: typeof G == "string" && G !== "" ? G : "presentation"
2254
- }, Y, B), !n && !p ? {
2254
+ }, Y, z), !n && !f ? {
2255
2255
  tabIndex: 0
2256
- } : {}), He);
2256
+ } : {}), Ke);
2257
2257
  };
2258
- }, [B, Z, de, Te, dr, C, P, R, q, p, re, n]), st = ee(function(d) {
2258
+ }, [z, Q, de, Te, dr, C, I, R, q, f, Z, n]), st = re(function(d) {
2259
2259
  d.stopPropagation();
2260
- }, []), ct = oe(function() {
2260
+ }, []), ct = ie(function() {
2261
2261
  return function() {
2262
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.onChange, Q = d.onClick, Se = Me(d, ao), ge = sr({
2262
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.onChange, ee = d.onClick, xe = Me(d, ao), be = sr({
2263
2263
  accept: ce,
2264
2264
  multiple: i,
2265
2265
  type: "file",
2266
2266
  style: {
2267
2267
  display: "none"
2268
2268
  },
2269
- onChange: ye(ie(G, q)),
2270
- onClick: ye(ie(Q, st)),
2269
+ onChange: ge(ae(G, q)),
2270
+ onClick: ge(ae(ee, st)),
2271
2271
  tabIndex: -1
2272
2272
  }, Y, J);
2273
- return z(z({}, ge), Se);
2273
+ return B(B({}, be), xe);
2274
2274
  };
2275
2275
  }, [J, t, i, q, n]);
2276
- return z(z({}, ue), {}, {
2277
- isFocused: c && !n,
2276
+ return B(B({}, ue), {}, {
2277
+ isFocused: l && !n,
2278
2278
  getRootProps: it,
2279
2279
  getInputProps: ct,
2280
- rootRef: B,
2280
+ rootRef: z,
2281
2281
  inputRef: J,
2282
- open: ye(f)
2282
+ open: ge(p)
2283
2283
  });
2284
2284
  }
2285
2285
  function vo(e, r) {
2286
2286
  switch (r.type) {
2287
2287
  case "focus":
2288
- return z(z({}, e), {}, {
2288
+ return B(B({}, e), {}, {
2289
2289
  isFocused: !0
2290
2290
  });
2291
2291
  case "blur":
2292
- return z(z({}, e), {}, {
2292
+ return B(B({}, e), {}, {
2293
2293
  isFocused: !1
2294
2294
  });
2295
2295
  case "openDialog":
2296
- return z(z({}, cr), {}, {
2296
+ return B(B({}, cr), {}, {
2297
2297
  isFileDialogActive: !0
2298
2298
  });
2299
2299
  case "closeDialog":
2300
- return z(z({}, e), {}, {
2300
+ return B(B({}, e), {}, {
2301
2301
  isFileDialogActive: !1
2302
2302
  });
2303
2303
  case "setDraggedFiles":
2304
- return z(z({}, e), {}, {
2304
+ return B(B({}, e), {}, {
2305
2305
  isDragActive: r.isDragActive,
2306
2306
  isDragAccept: r.isDragAccept,
2307
2307
  isDragReject: r.isDragReject
2308
2308
  });
2309
2309
  case "setFiles":
2310
- return z(z({}, e), {}, {
2310
+ return B(B({}, e), {}, {
2311
2311
  acceptedFiles: r.acceptedFiles,
2312
2312
  fileRejections: r.fileRejections
2313
2313
  });
2314
2314
  case "reset":
2315
- return z({}, cr);
2315
+ return B({}, cr);
2316
2316
  default:
2317
2317
  return e;
2318
2318
  }
2319
2319
  }
2320
2320
  function $r() {
2321
2321
  }
2322
- const xo = ({
2322
+ const Do = ({
2323
2323
  onFileUpload: e
2324
2324
  }) => {
2325
2325
  const { getRootProps: r } = at({
@@ -2327,15 +2327,22 @@ const xo = ({
2327
2327
  });
2328
2328
  return /* @__PURE__ */ u("div", { ...r(), className: "file-upload", "data-testid": "file-upload", children: /* @__PURE__ */ u("button", { className: "file-upload__button", children: "Drag and drop files here or click to upload" }) });
2329
2329
  };
2330
- const yo = (e) => [...e].sort(
2331
- (r, t) => r.label.localeCompare(t.label, "en", { numeric: !0 })
2332
- ), go = (e) => e.reduce(
2333
- (r, t) => {
2334
- const n = t.group || "Ungrouped";
2335
- return r[n] = r[n] || [], r[n].push(t), r;
2336
- },
2337
- {}
2338
- ), bo = ({
2330
+ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go = (e) => (r, t) => {
2331
+ if (e) {
2332
+ const n = e.has(r.value), a = e.has(t.value);
2333
+ if (n && !a)
2334
+ return -1;
2335
+ if (!n && a)
2336
+ return 1;
2337
+ }
2338
+ return 0;
2339
+ }, bo = (e) => {
2340
+ const r = /* @__PURE__ */ new Map();
2341
+ return e.forEach((t) => {
2342
+ const n = t.group || "Ungrouped", a = r.get(n) || [];
2343
+ a.push(t), r.set(n, a);
2344
+ }), Array.from(r, ([t, n]) => ({ group: t, items: n }));
2345
+ }, ho = ({
2339
2346
  items: e,
2340
2347
  selectedItems: r,
2341
2348
  disabledItems: t,
@@ -2344,43 +2351,48 @@ const yo = (e) => [...e].sort(
2344
2351
  isOpen: o,
2345
2352
  footer: s,
2346
2353
  sortFn: i = yo,
2347
- groupFn: y = go,
2348
- ...l
2354
+ groupFn: v = bo,
2355
+ ...c
2349
2356
  }) => {
2350
- const v = oe(() => e.some((_) => _.group), [e]), g = oe(() => i(e), [e, i]), w = oe(
2351
- () => v ? y(g) : { Ungrouped: g },
2352
- [e, y]
2353
- ), O = oe(
2354
- () => new Set(r.map((_) => _.value)),
2357
+ const y = ie(
2358
+ () => new Set(r.map((k) => k.value)),
2355
2359
  [r]
2356
- ), D = oe(
2357
- () => new Set(t.map((_) => _.value)),
2360
+ ), g = ie(
2361
+ () => new Set(t.map((k) => k.value)),
2358
2362
  [t]
2359
- );
2360
- return /* @__PURE__ */ u(Kr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ se("div", { className: "multi-select__dropdown", role: "listbox", ...l, children: [
2363
+ ), [h, S] = ye(new Set(y));
2364
+ he(() => {
2365
+ o && S(new Set(y));
2366
+ }, [o]);
2367
+ const O = ie(() => e.some((k) => k.group), [e]), w = ie(
2368
+ () => O ? v(e) : [{ group: "Ungrouped", items: e }],
2369
+ [e, v]
2370
+ ), L = (k) => {
2371
+ const { checked: K, value: A } = k.target, N = e.find((f) => `${f.value}` === A);
2372
+ if (N) {
2373
+ const f = K ? [...r, N] : r.filter((Z) => `${Z.value}` !== A) ?? [];
2374
+ a(f);
2375
+ }
2376
+ };
2377
+ return /* @__PURE__ */ u(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ se("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
2361
2378
  n || null,
2362
- Object.entries(w).map(([_, M]) => /* @__PURE__ */ se("div", { className: "multi-select__group", children: [
2363
- v ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: _ }) : null,
2364
- /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": _, children: M.map((L) => {
2365
- const K = O.has(L.value), j = D.has(L.value);
2366
- return /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
2367
- Tt,
2368
- {
2369
- disabled: j,
2370
- label: L.label,
2371
- checked: K,
2372
- onChange: () => a(
2373
- K ? r.filter(
2374
- (k) => k.value !== L.value
2375
- ) : [...r, L]
2376
- )
2377
- }
2378
- ) }, L.value);
2379
- }) })
2380
- ] }, _)),
2379
+ w.map(({ group: k, items: K }) => /* @__PURE__ */ se("div", { className: "multi-select__group", children: [
2380
+ O ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: k }) : null,
2381
+ /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": k, children: K.sort(i).sort(go(h)).map((A) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
2382
+ St,
2383
+ {
2384
+ disabled: g.has(A.value),
2385
+ label: A.label,
2386
+ checked: y.has(A.value),
2387
+ value: A.value,
2388
+ onChange: L
2389
+ },
2390
+ A.value
2391
+ ) }, A.value)) })
2392
+ ] }, k)),
2381
2393
  s ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: s }) : null
2382
2394
  ] }) });
2383
- }, Do = ({
2395
+ }, Ao = ({
2384
2396
  disabled: e,
2385
2397
  selectedItems: r = [],
2386
2398
  label: t,
@@ -2389,46 +2401,46 @@ const yo = (e) => [...e].sort(
2389
2401
  required: o = !1,
2390
2402
  items: s = [],
2391
2403
  disabledItems: i = [],
2392
- dropdownHeader: y,
2393
- dropdownFooter: l,
2394
- variant: v = "search"
2404
+ dropdownHeader: v,
2405
+ dropdownFooter: c,
2406
+ variant: y = "search"
2395
2407
  }) => {
2396
- const g = St(() => {
2397
- O(!1), _("");
2408
+ const g = Tt(() => {
2409
+ S(!1), w("");
2398
2410
  });
2399
- Ct(() => {
2400
- O(!1), _("");
2411
+ xt(() => {
2412
+ S(!1), w("");
2401
2413
  });
2402
- const [w, O] = be(!1), [D, _] = be("");
2403
- Oe(() => {
2404
- w || _("");
2405
- }, [w]);
2406
- const [M, L] = be([]), K = r || M, j = ($) => {
2414
+ const [h, S] = ye(!1), [O, w] = ye("");
2415
+ he(() => {
2416
+ h || w("");
2417
+ }, [h]);
2418
+ const [L, k] = ye([]), K = r || L, A = ($) => {
2407
2419
  const V = Array.from(new Set($));
2408
- L(V), n && n(V);
2409
- }, k = rr(), p = rr(), re = K.filter(
2420
+ k(V), n && n(V);
2421
+ }, N = rr(), f = rr(), Z = K.filter(
2410
2422
  ($) => s.some((V) => V.value === $.value)
2411
2423
  ).map(($) => $.label).join(", ");
2412
2424
  return /* @__PURE__ */ u("div", { ref: g, children: /* @__PURE__ */ se("div", { className: "multi-select", children: [
2413
- v === "search" ? /* @__PURE__ */ u(
2414
- Ot,
2425
+ y === "search" ? /* @__PURE__ */ u(
2426
+ Ct,
2415
2427
  {
2416
2428
  externallyControlled: !0,
2417
- "aria-controls": k,
2418
- "aria-expanded": w,
2419
- id: p,
2429
+ "aria-controls": N,
2430
+ "aria-expanded": h,
2431
+ id: f,
2420
2432
  role: "combobox",
2421
2433
  "aria-label": t || a || "Search",
2422
2434
  disabled: e,
2423
2435
  autoComplete: "off",
2424
2436
  onChange: ($) => {
2425
- _($), O(!0);
2437
+ w($), S(!0);
2426
2438
  },
2427
- onFocus: () => O(!0),
2439
+ onFocus: () => S(!0),
2428
2440
  placeholder: a ?? "Search",
2429
2441
  required: o,
2430
2442
  type: "text",
2431
- value: D,
2443
+ value: O,
2432
2444
  className: "multi-select__input"
2433
2445
  }
2434
2446
  ) : /* @__PURE__ */ u(
@@ -2437,29 +2449,30 @@ const yo = (e) => [...e].sort(
2437
2449
  role: "combobox",
2438
2450
  type: "button",
2439
2451
  "aria-label": t || a || "Select items",
2440
- "aria-controls": k,
2441
- "aria-expanded": w,
2452
+ "aria-controls": N,
2453
+ "aria-expanded": h,
2442
2454
  className: "multi-select__select-button",
2443
- onFocus: () => O(!0),
2444
- onClick: () => O(!0),
2445
- children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: K.length > 0 ? re : a ?? "Select items" })
2455
+ onClick: () => {
2456
+ S(($) => !$);
2457
+ },
2458
+ children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: K.length > 0 ? Z : a ?? "Select items" })
2446
2459
  }
2447
2460
  ),
2448
2461
  /* @__PURE__ */ u(
2449
- bo,
2462
+ ho,
2450
2463
  {
2451
- id: k,
2452
- isOpen: w,
2453
- items: D.length > 0 ? s.filter(
2454
- ($) => $.label.toLowerCase().includes(D.toLowerCase())
2464
+ id: N,
2465
+ isOpen: h,
2466
+ items: O.length > 0 ? s.filter(
2467
+ ($) => $.label.toLowerCase().includes(O.toLowerCase())
2455
2468
  ) : s,
2456
2469
  selectedItems: K,
2457
2470
  disabledItems: i,
2458
- header: y,
2459
- updateItems: j,
2460
- footer: l || /* @__PURE__ */ se(De, { children: [
2471
+ header: v,
2472
+ updateItems: A,
2473
+ footer: c || /* @__PURE__ */ se(De, { children: [
2461
2474
  /* @__PURE__ */ u(
2462
- _e,
2475
+ Ee,
2463
2476
  {
2464
2477
  appearance: "link",
2465
2478
  onClick: () => {
@@ -2468,14 +2481,14 @@ const yo = (e) => [...e].sort(
2468
2481
  (X) => X.value === V.value
2469
2482
  )
2470
2483
  );
2471
- j([...K, ...$]);
2484
+ A([...K, ...$]);
2472
2485
  },
2473
2486
  type: "button",
2474
2487
  children: "Select all"
2475
2488
  }
2476
2489
  ),
2477
2490
  /* @__PURE__ */ u(
2478
- _e,
2491
+ Ee,
2479
2492
  {
2480
2493
  appearance: "link",
2481
2494
  onClick: () => {
@@ -2484,7 +2497,7 @@ const yo = (e) => [...e].sort(
2484
2497
  (X) => X.value === V.value
2485
2498
  )
2486
2499
  );
2487
- j($);
2500
+ A($);
2488
2501
  },
2489
2502
  type: "button",
2490
2503
  children: "Clear"
@@ -2494,24 +2507,44 @@ const yo = (e) => [...e].sort(
2494
2507
  }
2495
2508
  )
2496
2509
  ] }) });
2510
+ }, Po = ({ value: e, unit: r }, {
2511
+ binary: t = !1,
2512
+ convertTo: n,
2513
+ decimals: a = 2,
2514
+ roundFunc: o = "round"
2515
+ } = {}) => {
2516
+ const s = e < 0, i = Math.abs(e);
2517
+ if (i === 0)
2518
+ return { value: 0, unit: n || "B" };
2519
+ const v = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], y = c.findIndex((w) => w === r) || 0, g = i * Math.pow(v, y), h = n ? c.findIndex((w) => w === n) : Math.floor(Math.log(g) / Math.log(v));
2520
+ let S = g / Math.pow(v, h);
2521
+ if (S % 1 !== 0) {
2522
+ const w = Math.pow(10, a);
2523
+ S = Math[o](S * w) / w;
2524
+ }
2525
+ return {
2526
+ value: s ? -S : S,
2527
+ unit: c[h]
2528
+ };
2497
2529
  };
2498
2530
  export {
2499
2531
  Le as ContentSection,
2500
2532
  To as ExternalLink,
2501
- xo as FileUpload,
2533
+ Do as FileUpload,
2502
2534
  ur as FormSection,
2503
2535
  Wr as InputGroup,
2504
- Hr as MainToolbar,
2536
+ Kr as MainToolbar,
2505
2537
  At as Meter,
2506
- Do as MultiSelect,
2507
- bo as MultiSelectDropdown,
2538
+ Ao as MultiSelect,
2539
+ ho as MultiSelectDropdown,
2508
2540
  H as Navigation,
2509
- Zt as NavigationBar,
2510
- So as NestedFormGroup,
2541
+ Xt as NavigationBar,
2542
+ xo as NestedFormGroup,
2511
2543
  pn as Pagination,
2512
2544
  Co as PaginationContainer,
2513
2545
  Oo as Stepper,
2514
- wo as defaultFilledColors,
2546
+ So as defaultFilledColors,
2547
+ Po as formatBytes,
2515
2548
  ve as meterColor,
2516
- he as testIds
2549
+ _e as testIds
2517
2550
  };