@canonical/maas-react-components 1.27.0 → 1.28.1

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.
Files changed (97) hide show
  1. package/dist/@canonical/maas-react-components.es.js +626 -620
  2. package/dist/@canonical/maas-react-components.umd.js +11 -11
  3. package/dist/src/lib/components/DynamicTable/DynamicTable.d.ts +17 -8
  4. package/dist/src/lib/components/DynamicTable/DynamicTable.stories.d.ts +3 -1
  5. package/dist/src/lib/components/DynamicTable/index.d.ts +1 -1
  6. package/dist/src/lib/components/FadeInDown/FadeInDown.d.ts +2 -2
  7. package/dist/src/lib/components/FadeInDown/index.d.ts +1 -1
  8. package/dist/src/lib/components/FileUpload/FileUpload.d.ts +3 -3
  9. package/dist/src/lib/components/FileUpload/FileUpload.stories.d.ts +2 -1
  10. package/dist/src/lib/components/FileUpload/hooks.d.ts +3 -2
  11. package/dist/src/lib/components/FileUpload/index.d.ts +1 -1
  12. package/dist/src/lib/components/MultiSelect/MultiSelect.d.ts +2 -2
  13. package/dist/src/lib/components/MultiSelect/MultiSelect.stories.d.ts +2 -1
  14. package/dist/src/lib/components/MultiSelect/index.d.ts +1 -1
  15. package/dist/src/lib/components/NestedFormGroup/NestedFormGroup.d.ts +2 -2
  16. package/dist/src/lib/components/NestedFormGroup/NestedFormGroup.stories.d.ts +3 -2
  17. package/dist/src/lib/components/NestedFormGroup/index.d.ts +1 -1
  18. package/dist/src/lib/components/Pagination/Pagination.d.ts +2 -2
  19. package/dist/src/lib/components/Pagination/Pagination.stories.d.ts +3 -2
  20. package/dist/src/lib/components/Pagination/index.d.ts +1 -1
  21. package/dist/src/lib/components/Stepper/Stepper.d.ts +1 -0
  22. package/dist/src/lib/components/Stepper/Stepper.stories.d.ts +2 -1
  23. package/dist/src/lib/components/Stepper/index.d.ts +1 -1
  24. package/dist/src/lib/components/TableCaption/TableCaption.d.ts +2 -1
  25. package/dist/src/lib/components/TableCaption/TableCaption.stories.d.ts +2 -1
  26. package/dist/src/lib/components/TableCaption/index.d.ts +1 -1
  27. package/dist/src/lib/components/index.d.ts +7 -7
  28. package/dist/src/lib/elements/ExternalLink/ExternalLink.d.ts +3 -2
  29. package/dist/src/lib/elements/ExternalLink/ExternalLink.stories.d.ts +3 -2
  30. package/dist/src/lib/elements/ExternalLink/index.d.ts +1 -1
  31. package/dist/src/lib/elements/Meter/Meter.d.ts +0 -1
  32. package/dist/src/lib/elements/Meter/Meter.stories.d.ts +3 -2
  33. package/dist/src/lib/elements/Meter/index.d.ts +1 -1
  34. package/dist/src/lib/elements/Placeholder/Placeholder.d.ts +2 -2
  35. package/dist/src/lib/elements/Placeholder/Placeholder.stories.d.ts +2 -1
  36. package/dist/src/lib/elements/Placeholder/index.d.ts +1 -1
  37. package/dist/src/lib/elements/ProgressIndicator/ProgressIndicator.d.ts +1 -2
  38. package/dist/src/lib/elements/ProgressIndicator/index.d.ts +1 -1
  39. package/dist/src/lib/elements/index.d.ts +4 -4
  40. package/dist/src/lib/index.d.ts +4 -4
  41. package/dist/src/lib/sections/ContentSection/ContentSection.d.ts +1 -2
  42. package/dist/src/lib/sections/ContentSection/ContentSection.stories.d.ts +2 -1
  43. package/dist/src/lib/sections/ContentSection/index.d.ts +1 -1
  44. package/dist/src/lib/sections/FormSection/FormSection.d.ts +0 -1
  45. package/dist/src/lib/sections/FormSection/FormSection.stories.d.ts +3 -2
  46. package/dist/src/lib/sections/FormSection/index.d.ts +1 -1
  47. package/dist/src/lib/sections/InputGroup/InputGroup.d.ts +1 -0
  48. package/dist/src/lib/sections/InputGroup/InputGroup.stories.d.ts +3 -2
  49. package/dist/src/lib/sections/InputGroup/index.d.ts +1 -1
  50. package/dist/src/lib/sections/MainToolbar/MainToolbar.d.ts +1 -2
  51. package/dist/src/lib/sections/MainToolbar/MainToolbar.stories.d.ts +2 -1
  52. package/dist/src/lib/sections/MainToolbar/index.d.ts +1 -1
  53. package/dist/src/lib/sections/Navigation/Banner/Banner.d.ts +2 -1
  54. package/dist/src/lib/sections/Navigation/Banner/Banner.stories.d.ts +2 -1
  55. package/dist/src/lib/sections/Navigation/CollapseToggle/CollapseToggle.stories.d.ts +2 -1
  56. package/dist/src/lib/sections/Navigation/Content/Content.d.ts +2 -1
  57. package/dist/src/lib/sections/Navigation/Content/Content.stories.d.ts +2 -1
  58. package/dist/src/lib/sections/Navigation/Controls/Controls.d.ts +2 -1
  59. package/dist/src/lib/sections/Navigation/Controls/Controls.stories.d.ts +2 -1
  60. package/dist/src/lib/sections/Navigation/Drawer/Drawer.d.ts +2 -1
  61. package/dist/src/lib/sections/Navigation/Drawer/Drawer.stories.d.ts +2 -1
  62. package/dist/src/lib/sections/Navigation/Footer/Footer.d.ts +2 -1
  63. package/dist/src/lib/sections/Navigation/Footer/Footer.stories.d.ts +2 -1
  64. package/dist/src/lib/sections/Navigation/Header/Header.d.ts +2 -1
  65. package/dist/src/lib/sections/Navigation/Header/Header.stories.d.ts +2 -1
  66. package/dist/src/lib/sections/Navigation/Icon/Icon.stories.d.ts +2 -1
  67. package/dist/src/lib/sections/Navigation/Item/Item.d.ts +2 -1
  68. package/dist/src/lib/sections/Navigation/Item/Item.stories.d.ts +2 -1
  69. package/dist/src/lib/sections/Navigation/Label/Label.d.ts +2 -1
  70. package/dist/src/lib/sections/Navigation/Label/Label.stories.d.ts +2 -1
  71. package/dist/src/lib/sections/Navigation/Link/Link.d.ts +2 -1
  72. package/dist/src/lib/sections/Navigation/Link/Link.stories.d.ts +3 -2
  73. package/dist/src/lib/sections/Navigation/List/List.d.ts +2 -1
  74. package/dist/src/lib/sections/Navigation/List/List.stories.d.ts +2 -1
  75. package/dist/src/lib/sections/Navigation/Logo/Logo.d.ts +2 -1
  76. package/dist/src/lib/sections/Navigation/Logo/Logo.stories.d.ts +2 -1
  77. package/dist/src/lib/sections/Navigation/LogoIcon/LogoIcon.d.ts +3 -2
  78. package/dist/src/lib/sections/Navigation/LogoIcon/LogoIcon.stories.d.ts +2 -1
  79. package/dist/src/lib/sections/Navigation/LogoName/LogoName.d.ts +2 -1
  80. package/dist/src/lib/sections/Navigation/LogoName/LogoName.stories.d.ts +2 -1
  81. package/dist/src/lib/sections/Navigation/LogoTag/LogoTag.d.ts +2 -1
  82. package/dist/src/lib/sections/Navigation/LogoTag/LogoTag.stories.d.ts +2 -1
  83. package/dist/src/lib/sections/Navigation/LogoText/LogoText.d.ts +2 -1
  84. package/dist/src/lib/sections/Navigation/MenuButton/MenuButton.d.ts +3 -2
  85. package/dist/src/lib/sections/Navigation/MenuButton/MenuButton.stories.d.ts +2 -1
  86. package/dist/src/lib/sections/Navigation/Navigation.d.ts +21 -21
  87. package/dist/src/lib/sections/Navigation/Navigation.stories.d.ts +3 -2
  88. package/dist/src/lib/sections/Navigation/Text/Text.d.ts +2 -1
  89. package/dist/src/lib/sections/Navigation/index.d.ts +1 -1
  90. package/dist/src/lib/sections/index.d.ts +5 -5
  91. package/dist/src/lib/utils/formatBytes/formatBytes.stories.d.ts +2 -1
  92. package/dist/src/lib/utils/formatBytes/index.d.ts +1 -1
  93. package/dist/src/lib/utils/index.d.ts +1 -1
  94. package/dist/src/types.d.ts +2 -1
  95. package/dist/style.css +1 -1
  96. package/dist/vitest-setup.d.ts +1 -0
  97. package/package.json +12 -12
@@ -1,11 +1,11 @@
1
1
  import { jsxs as U, jsx as s, Fragment as de } from "react/jsx-runtime";
2
2
  import * as oe from "react";
3
- import vt, { useRef as Ee, useState as fe, useEffect as he, useCallback as Z, cloneElement as yt, createContext as gt, useId as ke, useContext as Mr, useMemo as se, useReducer as Lr, forwardRef as bt, useImperativeHandle as ht, Fragment as _t, useLayoutEffect as wt } from "react";
4
- import { useListener as Et, Link as xt, Spinner as Tt, Tooltip as St, Button as pe, Icon as Te, Row as Ct, Col as Ot, Input as Dt, Label as At, CheckboxInput as Pt, useClickOutside as Rt, useOnEscapePressed as Ft, SearchBox as It } from "@canonical/react-components";
5
- function Br(e) {
3
+ import gt, { useRef as we, useState as fe, useEffect as be, useCallback as Z, cloneElement as ht, createContext as Lr, useId as ke, useContext as lr, useMemo as ae, useReducer as Br, forwardRef as bt, useImperativeHandle as _t, Fragment as Et, useLayoutEffect as wt } from "react";
4
+ import { useListener as xt, Link as Tt, Spinner as Ct, Tooltip as St, Button as pe, Icon as Te, Row as Ot, Col as Dt, Input as At, Label as Pt, CheckboxInput as Rt, useClickOutside as Ft, useOnEscapePressed as It, SearchBox as jt } from "@canonical/react-components";
5
+ function zr(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var zr = { exports: {} };
8
+ var Wr = { exports: {} };
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
@@ -40,10 +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 jt = zr.exports;
45
- const L = /* @__PURE__ */ Br(jt);
46
- const be = {
43
+ })(Wr);
44
+ var Nt = Wr.exports;
45
+ const L = /* @__PURE__ */ zr(Nt), he = {
47
46
  caution: "#F99B11",
48
47
  light: "#F7F7F7",
49
48
  linkFaded: "#D3E4ED",
@@ -52,15 +51,15 @@ const be = {
52
51
  positiveFaded: "#B7CCB9",
53
52
  positiveMid: "#4DAB4D",
54
53
  positive: "#0E8420"
55
- }, Mo = [
56
- be.link,
57
- be.positive,
58
- be.negative,
59
- be.caution
60
- ], Nt = be.linkFaded, Wr = be.caution, tr = be.light, mr = 2, vr = 1, yr = (e, r) => {
54
+ }, Lo = [
55
+ he.link,
56
+ he.positive,
57
+ he.negative,
58
+ he.caution
59
+ ], kt = he.linkFaded, Yr = he.caution, tr = he.light, vr = 2, yr = 1, gr = (e, r) => {
61
60
  var a, o;
62
61
  const t = ((o = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : o.width) || 0;
63
- return t > r * mr ? t / r : mr;
62
+ return t > r * vr ? t / r : vr;
64
63
  }, xe = {
65
64
  bar: "meter-bar",
66
65
  container: "meter-container",
@@ -68,7 +67,7 @@ const be = {
68
67
  label: "meter-label",
69
68
  meteroverflow: "meter-overflow",
70
69
  segments: "meter-segments"
71
- }, kt = ({
70
+ }, Mt = ({
72
71
  className: e,
73
72
  children: r,
74
73
  data: t,
@@ -77,14 +76,14 @@ const be = {
77
76
  size: o = "regular",
78
77
  ...c
79
78
  }) => {
80
- const i = Ee(null), f = t == null ? void 0 : t.reduce((T, x) => T + x.value, 0), l = n || f, v = t.map((T) => T.value / l * 100), [g, h] = fe(0);
81
- he(() => {
82
- h(a === "segmented" ? yr(i, l) : 0);
79
+ const i = we(null), f = t == null ? void 0 : t.reduce((T, x) => T + x.value, 0), l = n || f, m = t.map((T) => T.value / l * 100), [g, b] = fe(0);
80
+ be(() => {
81
+ b(a === "segmented" ? gr(i, l) : 0);
83
82
  }, [l, a]);
84
- const b = Z(() => {
85
- h(yr(i, l));
86
- }, [i, l, h]);
87
- return Et(window, b, "resize", !0, a === "segmented"), /* @__PURE__ */ U(
83
+ const h = Z(() => {
84
+ b(gr(i, l));
85
+ }, [i, l, b]);
86
+ return xt(window, h, "resize", !0, a === "segmented"), /* @__PURE__ */ U(
88
87
  "div",
89
88
  {
90
89
  className: L("p-meter", e, {
@@ -95,12 +94,12 @@ const be = {
95
94
  ref: i,
96
95
  children: [
97
96
  /* @__PURE__ */ s($t, { children: /* @__PURE__ */ s(
98
- Mt,
97
+ Lt,
99
98
  {
100
99
  data: t,
101
- datumWidths: v,
100
+ datumWidths: m,
102
101
  maximum: l,
103
- overColor: Wr,
102
+ overColor: Yr,
104
103
  segmentWidth: g,
105
104
  separatorColor: tr
106
105
  }
@@ -114,10 +113,10 @@ const be = {
114
113
  {
115
114
  className: "p-meter__bar",
116
115
  "data-testid": xe.bar,
117
- style: { backgroundColor: Nt },
116
+ style: { backgroundColor: kt },
118
117
  children: e
119
118
  }
120
- ), Mt = ({
119
+ ), Lt = ({
121
120
  data: e,
122
121
  datumWidths: r,
123
122
  maximum: t,
@@ -126,7 +125,7 @@ const be = {
126
125
  const a = () => (e == null ? void 0 : e.reduce((i, f) => i + f.value, 0)) > t, o = (i, f) => ({
127
126
  backgroundColor: i.color,
128
127
  left: `${r == null ? void 0 : r.reduce(
129
- (l, v, g) => f > g ? l + v : l,
128
+ (l, m, g) => f > g ? l + m : l,
130
129
  0
131
130
  )}%`,
132
131
  width: `${r[f]}%`
@@ -134,8 +133,8 @@ const be = {
134
133
  background: `repeating-linear-gradient(
135
134
  to right,
136
135
  transparent 0,
137
- transparent ${n - vr}px,
138
- ${tr} ${n - vr}px,
136
+ transparent ${n - yr}px,
137
+ ${tr} ${n - yr}px,
139
138
  ${tr} ${n}px
140
139
  )`
141
140
  });
@@ -145,7 +144,7 @@ const be = {
145
144
  {
146
145
  className: "p-meter__filled",
147
146
  "data-testid": xe.meteroverflow,
148
- style: { backgroundColor: Wr, width: "100%" }
147
+ style: { backgroundColor: Yr, width: "100%" }
149
148
  }
150
149
  ) : e == null ? void 0 : e.map((i, f) => /* @__PURE__ */ s(
151
150
  "div",
@@ -165,7 +164,7 @@ const be = {
165
164
  }
166
165
  )
167
166
  ] });
168
- }, Lt = ({
167
+ }, Bt = ({
169
168
  className: e,
170
169
  children: r
171
170
  }) => /* @__PURE__ */ s(
@@ -176,16 +175,14 @@ const be = {
176
175
  children: r
177
176
  }
178
177
  );
179
- kt.Label = Lt;
180
- const Lo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ s(xt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e });
181
- const Bt = ({
178
+ Mt.Label = Bt;
179
+ const Bo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ s(Tt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e }), zt = ({
182
180
  percentComplete: e
183
181
  }) => /* @__PURE__ */ U("small", { className: "progress-indicator", children: [
184
182
  e,
185
183
  "% ",
186
- /* @__PURE__ */ s(Tt, { className: "progress-indicator__spinner" })
187
- ] });
188
- const zt = ({
184
+ /* @__PURE__ */ s(Ct, { className: "progress-indicator__spinner" })
185
+ ] }), Wt = ({
189
186
  text: e,
190
187
  children: r,
191
188
  className: t,
@@ -202,7 +199,7 @@ const zt = ({
202
199
  children: /* @__PURE__ */ s("span", { "aria-hidden": "true", children: e || r || "Loading" })
203
200
  }
204
201
  ) : /* @__PURE__ */ s(de, { children: r });
205
- }, Wt = ({ children: e }) => /* @__PURE__ */ s(de, { children: e }), Yt = ({
202
+ }, Yt = ({ children: e }) => /* @__PURE__ */ s(de, { children: e }), qt = ({
206
203
  isCollapsed: e,
207
204
  setIsCollapsed: r,
208
205
  className: t
@@ -234,7 +231,7 @@ const zt = ({
234
231
  }
235
232
  )
236
233
  }
237
- ), qt = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__content", children: /* @__PURE__ */ s("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ut = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__controls u-no-margin--top", children: e }), Kt = ({ children: e }) => /* @__PURE__ */ s("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ s("div", { className: "p-panel is-dark", children: e }) }), Ht = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__footer", children: e }), Gt = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__header", children: e }), Vt = ({ light: e = !0, name: r }) => /* @__PURE__ */ s(Te, { className: "p-side-navigation__icon", light: e, name: r }), Xt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ s("li", { className: L("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Jt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ s("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Zt = ({
234
+ ), Ut = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__content", children: /* @__PURE__ */ s("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Kt = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__controls u-no-margin--top", children: e }), Ht = ({ children: e }) => /* @__PURE__ */ s("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ s("div", { className: "p-panel is-dark", children: e }) }), Gt = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__footer", children: e }), Vt = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-panel__header", children: e }), Xt = ({ light: e = !0, name: r }) => /* @__PURE__ */ s(Te, { className: "p-side-navigation__icon", light: e, name: r }), Jt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ s("li", { className: L("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Zt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ s("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Qt = ({
238
235
  as: e,
239
236
  ...r
240
237
  }) => /* @__PURE__ */ s(
@@ -243,12 +240,12 @@ const zt = ({
243
240
  className: L("p-side-navigation__link", r.className),
244
241
  ...r
245
242
  }
246
- ), Qt = ({ children: e, className: r }) => /* @__PURE__ */ s("ul", { className: L("p-side-navigation__list", r), children: e }), en = ({
243
+ ), en = ({ children: e, className: r }) => /* @__PURE__ */ s("ul", { className: L("p-side-navigation__list", r), children: e }), rn = ({
247
244
  as: e,
248
245
  children: r,
249
246
  className: t,
250
247
  ...n
251
- }) => /* @__PURE__ */ s(e || "a", { className: L("p-panel__logo", t), ...n, children: /* @__PURE__ */ s("div", { className: "p-navigation__tagged-logo", children: r }) }), rn = ({ children: e }) => yt(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), tn = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ s(
248
+ }) => /* @__PURE__ */ s(e || "a", { className: L("p-panel__logo", t), ...n, children: /* @__PURE__ */ s("div", { className: "p-navigation__tagged-logo", children: r }) }), tn = ({ children: e }) => ht(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), nn = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ s(
252
249
  "div",
253
250
  {
254
251
  className: L("p-panel__logo-name is-fading-when-collapsed", {
@@ -256,7 +253,7 @@ const zt = ({
256
253
  }),
257
254
  children: e
258
255
  }
259
- ), nn = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-navigation__logo-tag", children: e }), on = ({ children: e }) => /* @__PURE__ */ s("span", { className: "p-panel__logo-text", children: e }), an = ({
256
+ ), on = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-navigation__logo-tag", children: e }), an = ({ children: e }) => /* @__PURE__ */ s("span", { className: "p-panel__logo-text", children: e }), sn = ({
260
257
  children: e,
261
258
  className: r,
262
259
  onClick: t
@@ -273,30 +270,29 @@ const zt = ({
273
270
  },
274
271
  children: e
275
272
  }
276
- ), sn = ({ children: e }) => /* @__PURE__ */ s("span", { className: "p-side-navigation__text", children: e });
277
- const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ s("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), cn = ({ children: e, className: r }) => /* @__PURE__ */ s("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ s("div", { className: L("p-panel is-dark", r), children: e }) });
278
- H.Header = Gt;
279
- H.Banner = Wt;
280
- H.Drawer = Kt;
281
- H.Controls = Ut;
282
- H.CollapseToggle = Yt;
283
- H.Content = qt;
284
- H.Footer = Ht;
285
- H.List = Qt;
286
- H.Item = Xt;
287
- H.Link = Zt;
288
- H.Text = sn;
289
- H.Icon = Vt;
290
- H.Label = Jt;
291
- H.Logo = en;
292
- H.LogoTag = nn;
293
- H.LogoIcon = rn;
294
- H.LogoName = tn;
295
- H.LogoText = on;
296
- cn.MenuButton = an;
297
- const lr = gt(null), Yr = ({ children: e }) => {
273
+ ), cn = ({ children: e }) => /* @__PURE__ */ s("span", { className: "p-side-navigation__text", children: e }), H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ s("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), ln = ({ children: e, className: r }) => /* @__PURE__ */ s("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ s("div", { className: L("p-panel is-dark", r), children: e }) });
274
+ H.Header = Vt;
275
+ H.Banner = Yt;
276
+ H.Drawer = Ht;
277
+ H.Controls = Kt;
278
+ H.CollapseToggle = qt;
279
+ H.Content = Ut;
280
+ H.Footer = Gt;
281
+ H.List = en;
282
+ H.Item = Jt;
283
+ H.Link = Qt;
284
+ H.Text = cn;
285
+ H.Icon = Xt;
286
+ H.Label = Zt;
287
+ H.Logo = rn;
288
+ H.LogoTag = on;
289
+ H.LogoIcon = tn;
290
+ H.LogoName = nn;
291
+ H.LogoText = an;
292
+ ln.MenuButton = sn;
293
+ const ur = Lr(null), qr = ({ children: e }) => {
298
294
  const r = ke();
299
- return /* @__PURE__ */ s(lr.Provider, { value: r, children: /* @__PURE__ */ s(
295
+ return /* @__PURE__ */ s(ur.Provider, { value: r, children: /* @__PURE__ */ s(
300
296
  "div",
301
297
  {
302
298
  role: "group",
@@ -306,20 +302,20 @@ const lr = gt(null), Yr = ({ children: e }) => {
306
302
  children: e
307
303
  }
308
304
  ) });
309
- }, ln = ({ children: e }) => {
310
- const r = Mr(lr);
311
- return /* @__PURE__ */ s("label", { id: `${r}_label`, children: e });
312
305
  }, un = ({ children: e }) => {
313
- const r = Mr(lr);
306
+ const r = lr(ur);
307
+ return /* @__PURE__ */ s("label", { id: `${r}_label`, children: e });
308
+ }, fn = ({ children: e }) => {
309
+ const r = lr(ur);
314
310
  return /* @__PURE__ */ s("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
315
311
  };
316
- Yr.Label = ln;
317
- Yr.Description = un;
318
- const ur = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-form-section", children: e }), fn = ({ children: e }) => /* @__PURE__ */ s("h5", { className: "p-form-section__title u-no-padding--top", children: e }), pn = ({ children: e }) => /* @__PURE__ */ s("p", { className: "p-form-help-text", children: e }), dn = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-form-section__content", children: e });
319
- ur.Title = fn;
320
- ur.Description = pn;
321
- ur.Content = dn;
322
- function mn(e) {
312
+ qr.Label = un;
313
+ qr.Description = fn;
314
+ const fr = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-form-section", children: e }), pn = ({ children: e }) => /* @__PURE__ */ s("h5", { className: "p-form-section__title u-no-padding--top", children: e }), dn = ({ children: e }) => /* @__PURE__ */ s("p", { className: "p-form-help-text", children: e }), mn = ({ children: e }) => /* @__PURE__ */ s("div", { className: "p-form-section__content", children: e });
315
+ fr.Title = pn;
316
+ fr.Description = dn;
317
+ fr.Content = mn;
318
+ function vn(e) {
323
319
  const [r, t] = oe.useState(null), n = oe.useRef(null), a = oe.useCallback(() => {
324
320
  if (e.current) {
325
321
  const o = e.current.getBoundingClientRect();
@@ -335,9 +331,9 @@ function mn(e) {
335
331
  };
336
332
  }, [e, a]), r;
337
333
  }
338
- const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
339
- }]), Kr = ({ children: e }) => {
340
- const r = oe.useRef(null), t = mn(r), [n, a] = oe.useState(!1);
334
+ const Ur = oe.createContext(null), Kr = oe.createContext([!1, () => {
335
+ }]), Hr = ({ children: e }) => {
336
+ const r = oe.useRef(null), t = vn(r), [n, a] = oe.useState(!1);
341
337
  return /* @__PURE__ */ s(
342
338
  "header",
343
339
  {
@@ -345,10 +341,10 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
345
341
  "main-toolbar--stacked": n
346
342
  }),
347
343
  ref: r,
348
- children: /* @__PURE__ */ s(qr.Provider, { value: t, children: /* @__PURE__ */ s(Ur.Provider, { value: [n, a], children: e }) })
344
+ children: /* @__PURE__ */ s(Ur.Provider, { value: t, children: /* @__PURE__ */ s(Kr.Provider, { value: [n, a], children: e }) })
349
345
  }
350
346
  );
351
- }, vn = ({
347
+ }, yn = ({
352
348
  as: e,
353
349
  children: r,
354
350
  className: t,
@@ -361,8 +357,8 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
361
357
  ...n,
362
358
  children: r
363
359
  }
364
- ), yn = ({ children: e }) => {
365
- const r = oe.useContext(qr), [t, n] = oe.useContext(Ur), a = oe.useRef(null);
360
+ ), gn = ({ children: e }) => {
361
+ const r = oe.useContext(Ur), [t, n] = oe.useContext(Kr), a = oe.useRef(null);
366
362
  return oe.useEffect(() => {
367
363
  !a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
368
364
  }, [n, r, a]), /* @__PURE__ */ U(de, { children: [
@@ -387,8 +383,8 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
387
383
  )
388
384
  ] });
389
385
  };
390
- Kr.Title = vn;
391
- Kr.Controls = yn;
386
+ Hr.Title = yn;
387
+ Hr.Controls = gn;
392
388
  const Be = ({
393
389
  children: e,
394
390
  className: r,
@@ -397,20 +393,20 @@ const Be = ({
397
393
  ...a
398
394
  }) => {
399
395
  const o = t || "section", c = L("content-section", r);
400
- return /* @__PURE__ */ s(o, { ...a, className: c, children: /* @__PURE__ */ s(Ct, { children: /* @__PURE__ */ s(Ot, { size: n === "narrow" ? 6 : 12, children: e }) }) });
401
- }, gn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ s(
396
+ return /* @__PURE__ */ s(o, { ...a, className: c, children: /* @__PURE__ */ s(Ot, { children: /* @__PURE__ */ s(Dt, { size: n === "narrow" ? 6 : 12, children: e }) }) });
397
+ }, hn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ s(
402
398
  t || "h1",
403
399
  {
404
400
  ...n,
405
401
  className: L("content-section__title p-heading--4", r),
406
402
  children: e
407
403
  }
408
- ), bn = ({ children: e, className: r }) => /* @__PURE__ */ s("header", { className: L("content-section__header", r), children: e }), hn = ({ children: e, className: r }) => /* @__PURE__ */ s("div", { className: L("content-section__body", r), children: e }), _n = ({ children: e, className: r }) => /* @__PURE__ */ s("footer", { className: L("content-section__footer", r), children: e });
409
- Be.Title = gn;
404
+ ), bn = ({ children: e, className: r }) => /* @__PURE__ */ s("header", { className: L("content-section__header", r), children: e }), _n = ({ children: e, className: r }) => /* @__PURE__ */ s("div", { className: L("content-section__body", r), children: e }), En = ({ children: e, className: r }) => /* @__PURE__ */ s("footer", { className: L("content-section__footer", r), children: e });
405
+ Be.Title = hn;
410
406
  Be.Header = bn;
411
- Be.Content = hn;
412
- Be.Footer = _n;
413
- const Hr = ({
407
+ Be.Content = _n;
408
+ Be.Footer = En;
409
+ const Gr = ({
414
410
  children: e,
415
411
  className: r,
416
412
  isVisible: t
@@ -422,11 +418,10 @@ const Hr = ({
422
418
  style: { visibility: t ? "visible" : "hidden" },
423
419
  children: e
424
420
  }
425
- ), Bo = ({
421
+ ), zo = ({
426
422
  children: e,
427
423
  ...r
428
- }) => /* @__PURE__ */ s(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ s("div", { className: "p-form__nested-group", ...r, children: e }) });
429
- const wn = ({
424
+ }) => /* @__PURE__ */ s(Gr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ s("div", { className: "p-form__nested-group", ...r, children: e }) }), wn = ({
430
425
  className: e,
431
426
  currentPage: r,
432
427
  error: t,
@@ -457,7 +452,7 @@ const wn = ({
457
452
  /* @__PURE__ */ s("strong", { children: "Page " }),
458
453
  " ",
459
454
  /* @__PURE__ */ s(
460
- Dt,
455
+ At,
461
456
  {
462
457
  "aria-label": "page number",
463
458
  className: "p-pagination__input",
@@ -489,7 +484,7 @@ const wn = ({
489
484
  )
490
485
  ] })
491
486
  }
492
- ), zo = ({
487
+ ), Wo = ({
493
488
  currentPage: e,
494
489
  disabled: r,
495
490
  paginate: t,
@@ -505,21 +500,20 @@ const wn = ({
505
500
  onInputBlur: () => {
506
501
  o(e), i("");
507
502
  },
508
- onInputChange: (h) => {
509
- const { value: b, valueAsNumber: T } = h.target;
510
- b ? (o(T), T > n || T < 1 ? i(`${T} is not a valid page number.`) : (i(""), t(T))) : i("Enter a page number.");
503
+ onInputChange: (b) => {
504
+ const { value: h, valueAsNumber: T } = b.target;
505
+ h ? (o(T), T > n || T < 1 ? i(`${T} is not a valid page number.`) : (i(""), t(T))) : i("Enter a page number.");
511
506
  },
512
507
  onNextClick: () => {
513
- o((h) => Number(h) + 1), t(Number(e) + 1);
508
+ o((b) => Number(b) + 1), t(Number(e) + 1);
514
509
  },
515
510
  onPreviousClick: () => {
516
- o((h) => Number(h) - 1), t(Number(e) - 1);
511
+ o((b) => Number(b) - 1), t(Number(e) - 1);
517
512
  },
518
513
  totalPages: n
519
514
  }
520
515
  );
521
- };
522
- const Wo = ({ activeStep: e, items: r }) => /* @__PURE__ */ s("ol", { className: "stepper", children: r.map((t, n) => {
516
+ }, Yo = ({ activeStep: e, items: r }) => /* @__PURE__ */ s("ol", { className: "stepper", children: r.map((t, n) => {
523
517
  const a = n === e, o = n < e;
524
518
  return /* @__PURE__ */ s("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ s(
525
519
  "p",
@@ -542,12 +536,12 @@ var nr = { exports: {} }, je = { exports: {} }, I = {};
542
536
  * This source code is licensed under the MIT license found in the
543
537
  * LICENSE file in the root directory of this source tree.
544
538
  */
545
- var gr;
546
- function En() {
547
- if (gr)
539
+ var hr;
540
+ function xn() {
541
+ if (hr)
548
542
  return I;
549
- gr = 1;
550
- 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, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = 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, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
543
+ hr = 1;
544
+ 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, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
551
545
  function A(p) {
552
546
  if (typeof p == "object" && p !== null) {
553
547
  var Q = p.$$typeof;
@@ -564,9 +558,9 @@ function En() {
564
558
  default:
565
559
  switch (p = p && p.$$typeof, p) {
566
560
  case i:
567
- case v:
561
+ case m:
568
562
  case T:
569
- case b:
563
+ case h:
570
564
  case c:
571
565
  return p;
572
566
  default:
@@ -581,7 +575,7 @@ function En() {
581
575
  function k(p) {
582
576
  return A(p) === l;
583
577
  }
584
- return I.AsyncMode = f, I.ConcurrentMode = l, I.ContextConsumer = i, I.ContextProvider = c, I.Element = r, I.ForwardRef = v, I.Fragment = n, I.Lazy = T, I.Memo = b, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
578
+ return I.AsyncMode = f, I.ConcurrentMode = l, I.ContextConsumer = i, I.ContextProvider = c, I.Element = r, I.ForwardRef = m, I.Fragment = n, I.Lazy = T, I.Memo = h, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
585
579
  return k(p) || A(p) === f;
586
580
  }, I.isConcurrentMode = k, I.isContextConsumer = function(p) {
587
581
  return A(p) === i;
@@ -590,13 +584,13 @@ function En() {
590
584
  }, I.isElement = function(p) {
591
585
  return typeof p == "object" && p !== null && p.$$typeof === r;
592
586
  }, I.isForwardRef = function(p) {
593
- return A(p) === v;
587
+ return A(p) === m;
594
588
  }, I.isFragment = function(p) {
595
589
  return A(p) === n;
596
590
  }, I.isLazy = function(p) {
597
591
  return A(p) === T;
598
592
  }, I.isMemo = function(p) {
599
- return A(p) === b;
593
+ return A(p) === h;
600
594
  }, I.isPortal = function(p) {
601
595
  return A(p) === t;
602
596
  }, I.isProfiler = function(p) {
@@ -606,7 +600,7 @@ function En() {
606
600
  }, I.isSuspense = function(p) {
607
601
  return A(p) === g;
608
602
  }, I.isValidElementType = function(p) {
609
- return typeof p == "string" || typeof p == "function" || p === n || p === l || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === b || p.$$typeof === c || p.$$typeof === i || p.$$typeof === v || p.$$typeof === B || p.$$typeof === N || p.$$typeof === K || p.$$typeof === x);
603
+ return typeof p == "string" || typeof p == "function" || p === n || p === l || p === o || p === a || p === g || p === b || typeof p == "object" && p !== null && (p.$$typeof === T || p.$$typeof === h || p.$$typeof === c || p.$$typeof === i || p.$$typeof === m || p.$$typeof === B || p.$$typeof === N || p.$$typeof === K || p.$$typeof === x);
610
604
  }, I.typeOf = A, I;
611
605
  }
612
606
  var j = {};
@@ -619,12 +613,12 @@ var j = {};
619
613
  * LICENSE file in the root directory of this source tree.
620
614
  */
621
615
  var br;
622
- function xn() {
616
+ function Tn() {
623
617
  return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
624
- 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, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = 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, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
618
+ 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, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
625
619
  function A(d) {
626
620
  return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
627
- d === n || d === l || d === o || d === a || d === g || d === h || typeof d == "object" && d !== null && (d.$$typeof === T || d.$$typeof === b || d.$$typeof === c || d.$$typeof === i || d.$$typeof === v || d.$$typeof === B || d.$$typeof === N || d.$$typeof === K || d.$$typeof === x);
621
+ d === n || d === l || d === o || d === a || d === g || d === b || typeof d == "object" && d !== null && (d.$$typeof === T || d.$$typeof === h || d.$$typeof === c || d.$$typeof === i || d.$$typeof === m || d.$$typeof === B || d.$$typeof === N || d.$$typeof === K || d.$$typeof === x);
628
622
  }
629
623
  function k(d) {
630
624
  if (typeof d == "object" && d !== null) {
@@ -644,9 +638,9 @@ function xn() {
644
638
  var Oe = ye && ye.$$typeof;
645
639
  switch (Oe) {
646
640
  case i:
647
- case v:
641
+ case m:
648
642
  case T:
649
- case b:
643
+ case h:
650
644
  case c:
651
645
  return Oe;
652
646
  default:
@@ -658,7 +652,7 @@ function xn() {
658
652
  }
659
653
  }
660
654
  }
661
- var p = f, Q = l, $ = i, X = c, ee = r, ce = v, me = n, ve = T, le = b, W = t, J = o, ne = a, ae = g, ue = !1;
655
+ var p = f, Q = l, M = i, X = c, ee = r, ce = m, me = n, ve = T, le = h, W = t, J = o, ne = a, ie = g, ue = !1;
662
656
  function G(d) {
663
657
  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.")), u(d) || k(d) === f;
664
658
  }
@@ -668,23 +662,23 @@ function xn() {
668
662
  function y(d) {
669
663
  return k(d) === i;
670
664
  }
671
- function S(d) {
665
+ function C(d) {
672
666
  return k(d) === c;
673
667
  }
674
- function C(d) {
668
+ function S(d) {
675
669
  return typeof d == "object" && d !== null && d.$$typeof === r;
676
670
  }
677
- function w(d) {
678
- return k(d) === v;
671
+ function E(d) {
672
+ return k(d) === m;
679
673
  }
680
674
  function P(d) {
681
675
  return k(d) === n;
682
676
  }
683
- function E(d) {
677
+ function w(d) {
684
678
  return k(d) === T;
685
679
  }
686
680
  function O(d) {
687
- return k(d) === b;
681
+ return k(d) === h;
688
682
  }
689
683
  function R(d) {
690
684
  return k(d) === t;
@@ -698,23 +692,23 @@ function xn() {
698
692
  function q(d) {
699
693
  return k(d) === g;
700
694
  }
701
- j.AsyncMode = p, j.ConcurrentMode = Q, j.ContextConsumer = $, j.ContextProvider = X, j.Element = ee, j.ForwardRef = ce, j.Fragment = me, j.Lazy = ve, j.Memo = le, j.Portal = W, j.Profiler = J, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode = G, j.isConcurrentMode = u, j.isContextConsumer = y, j.isContextProvider = S, j.isElement = C, j.isForwardRef = w, j.isFragment = P, j.isLazy = E, j.isMemo = O, j.isPortal = R, j.isProfiler = F, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
695
+ j.AsyncMode = p, j.ConcurrentMode = Q, j.ContextConsumer = M, j.ContextProvider = X, j.Element = ee, j.ForwardRef = ce, j.Fragment = me, j.Lazy = ve, j.Memo = le, j.Portal = W, j.Profiler = J, j.StrictMode = ne, j.Suspense = ie, j.isAsyncMode = G, j.isConcurrentMode = u, j.isContextConsumer = y, j.isContextProvider = C, j.isElement = S, j.isForwardRef = E, j.isFragment = P, j.isLazy = w, j.isMemo = O, j.isPortal = R, j.isProfiler = F, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
702
696
  }()), j;
703
697
  }
704
- var hr;
705
- function Gr() {
706
- return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports = En() : je.exports = xn()), je.exports;
698
+ var _r;
699
+ function Vr() {
700
+ return _r || (_r = 1, process.env.NODE_ENV === "production" ? je.exports = xn() : je.exports = Tn()), je.exports;
707
701
  }
708
702
  /*
709
703
  object-assign
710
704
  (c) Sindre Sorhus
711
705
  @license MIT
712
706
  */
713
- var Ve, _r;
714
- function Tn() {
715
- if (_r)
707
+ var Ve, Er;
708
+ function Cn() {
709
+ if (Er)
716
710
  return Ve;
717
- _r = 1;
711
+ Er = 1;
718
712
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
719
713
  function n(o) {
720
714
  if (o == null)
@@ -730,54 +724,54 @@ function Tn() {
730
724
  return !1;
731
725
  for (var c = {}, i = 0; i < 10; i++)
732
726
  c["_" + String.fromCharCode(i)] = i;
733
- var f = Object.getOwnPropertyNames(c).map(function(v) {
734
- return c[v];
727
+ var f = Object.getOwnPropertyNames(c).map(function(m) {
728
+ return c[m];
735
729
  });
736
730
  if (f.join("") !== "0123456789")
737
731
  return !1;
738
732
  var l = {};
739
- return "abcdefghijklmnopqrst".split("").forEach(function(v) {
740
- l[v] = v;
733
+ return "abcdefghijklmnopqrst".split("").forEach(function(m) {
734
+ l[m] = m;
741
735
  }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
742
736
  } catch {
743
737
  return !1;
744
738
  }
745
739
  }
746
740
  return Ve = a() ? Object.assign : function(o, c) {
747
- for (var i, f = n(o), l, v = 1; v < arguments.length; v++) {
748
- i = Object(arguments[v]);
741
+ for (var i, f = n(o), l, m = 1; m < arguments.length; m++) {
742
+ i = Object(arguments[m]);
749
743
  for (var g in i)
750
744
  r.call(i, g) && (f[g] = i[g]);
751
745
  if (e) {
752
746
  l = e(i);
753
- for (var h = 0; h < l.length; h++)
754
- t.call(i, l[h]) && (f[l[h]] = i[l[h]]);
747
+ for (var b = 0; b < l.length; b++)
748
+ t.call(i, l[b]) && (f[l[b]] = i[l[b]]);
755
749
  }
756
750
  }
757
751
  return f;
758
752
  }, Ve;
759
753
  }
760
754
  var Xe, wr;
761
- function fr() {
755
+ function pr() {
762
756
  if (wr)
763
757
  return Xe;
764
758
  wr = 1;
765
759
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
766
760
  return Xe = e, Xe;
767
761
  }
768
- var Je, Er;
769
- function Vr() {
770
- return Er || (Er = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
762
+ var Je, xr;
763
+ function Xr() {
764
+ return xr || (xr = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
771
765
  }
772
- var Ze, xr;
766
+ var Ze, Tr;
773
767
  function Sn() {
774
- if (xr)
768
+ if (Tr)
775
769
  return Ze;
776
- xr = 1;
770
+ Tr = 1;
777
771
  var e = function() {
778
772
  };
779
773
  if (process.env.NODE_ENV !== "production") {
780
- var r = fr(), t = {}, n = Vr();
774
+ var r = pr(), t = {}, n = Xr();
781
775
  e = function(o) {
782
776
  var c = "Warning: " + o;
783
777
  typeof console < "u" && console.error(c);
@@ -789,27 +783,27 @@ function Sn() {
789
783
  }
790
784
  function a(o, c, i, f, l) {
791
785
  if (process.env.NODE_ENV !== "production") {
792
- for (var v in o)
793
- if (n(o, v)) {
786
+ for (var m in o)
787
+ if (n(o, m)) {
794
788
  var g;
795
789
  try {
796
- if (typeof o[v] != "function") {
797
- var h = Error(
798
- (f || "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`."
790
+ if (typeof o[m] != "function") {
791
+ var b = Error(
792
+ (f || "React class") + ": " + i + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
799
793
  );
800
- throw h.name = "Invariant Violation", h;
794
+ throw b.name = "Invariant Violation", b;
801
795
  }
802
- g = o[v](c, v, f, i, null, r);
796
+ g = o[m](c, m, f, i, null, r);
803
797
  } catch (T) {
804
798
  g = T;
805
799
  }
806
800
  if (g && !(g instanceof Error) && e(
807
- (f || "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)."
801
+ (f || "React class") + ": type specification of " + i + " `" + m + "` 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)."
808
802
  ), g instanceof Error && !(g.message in t)) {
809
803
  t[g.message] = !0;
810
- var b = l ? l() : "";
804
+ var h = l ? l() : "";
811
805
  e(
812
- "Failed " + i + " type: " + g.message + (b ?? "")
806
+ "Failed " + i + " type: " + g.message + (h ?? "")
813
807
  );
814
808
  }
815
809
  }
@@ -819,12 +813,12 @@ function Sn() {
819
813
  process.env.NODE_ENV !== "production" && (t = {});
820
814
  }, Ze = a, Ze;
821
815
  }
822
- var Qe, Tr;
823
- function Cn() {
824
- if (Tr)
816
+ var Qe, Cr;
817
+ function On() {
818
+ if (Cr)
825
819
  return Qe;
826
- Tr = 1;
827
- var e = Gr(), r = Tn(), t = fr(), n = Vr(), a = Sn(), o = function() {
820
+ Cr = 1;
821
+ var e = Vr(), r = Cn(), t = pr(), n = Xr(), a = Sn(), o = function() {
828
822
  };
829
823
  process.env.NODE_ENV !== "production" && (o = function(i) {
830
824
  var f = "Warning: " + i;
@@ -838,13 +832,13 @@ function Cn() {
838
832
  return null;
839
833
  }
840
834
  return Qe = function(i, f) {
841
- var l = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
835
+ var l = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
842
836
  function g(u) {
843
- var y = u && (l && u[l] || u[v]);
837
+ var y = u && (l && u[l] || u[m]);
844
838
  if (typeof y == "function")
845
839
  return y;
846
840
  }
847
- var h = "<<anonymous>>", b = {
841
+ var b = "<<anonymous>>", h = {
848
842
  array: N("array"),
849
843
  bigint: N("bigint"),
850
844
  bool: N("boolean"),
@@ -860,7 +854,7 @@ function Cn() {
860
854
  instanceOf: Q,
861
855
  node: ce(),
862
856
  objectOf: X,
863
- oneOf: $,
857
+ oneOf: M,
864
858
  oneOfType: ee,
865
859
  shape: ve,
866
860
  exact: le
@@ -874,9 +868,9 @@ function Cn() {
874
868
  x.prototype = Error.prototype;
875
869
  function B(u) {
876
870
  if (process.env.NODE_ENV !== "production")
877
- var y = {}, S = 0;
878
- function C(P, E, O, R, F, D, q) {
879
- if (R = R || h, D = D || O, q !== t) {
871
+ var y = {}, C = 0;
872
+ function S(P, w, O, R, F, D, q) {
873
+ if (R = R || b, D = D || O, q !== t) {
880
874
  if (f) {
881
875
  var d = new Error(
882
876
  "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"
@@ -885,23 +879,23 @@ function Cn() {
885
879
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
886
880
  var re = R + ":" + O;
887
881
  !y[re] && // Avoid spamming the console because they are often not actionable except for lib authors
888
- S < 3 && (o(
882
+ C < 3 && (o(
889
883
  "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + R + "`. 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."
890
- ), y[re] = !0, S++);
884
+ ), y[re] = !0, C++);
891
885
  }
892
886
  }
893
- return E[O] == null ? P ? E[O] === null ? new x("The " + F + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new x("The " + F + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(E, O, R, F, D);
887
+ return w[O] == null ? P ? w[O] === null ? new x("The " + F + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new x("The " + F + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(w, O, R, F, D);
894
888
  }
895
- var w = C.bind(null, !1);
896
- return w.isRequired = C.bind(null, !0), w;
889
+ var E = S.bind(null, !1);
890
+ return E.isRequired = S.bind(null, !0), E;
897
891
  }
898
892
  function N(u) {
899
- function y(S, C, w, P, E, O) {
900
- var R = S[C], F = ne(R);
893
+ function y(C, S, E, P, w, O) {
894
+ var R = C[S], F = ne(R);
901
895
  if (F !== u) {
902
- var D = ae(R);
896
+ var D = ie(R);
903
897
  return new x(
904
- "Invalid " + P + " `" + E + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected ") + ("`" + u + "`."),
898
+ "Invalid " + P + " `" + w + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + u + "`."),
905
899
  { expectedType: u }
906
900
  );
907
901
  }
@@ -913,16 +907,16 @@ function Cn() {
913
907
  return B(c);
914
908
  }
915
909
  function A(u) {
916
- function y(S, C, w, P, E) {
910
+ function y(C, S, E, P, w) {
917
911
  if (typeof u != "function")
918
- return new x("Property `" + E + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
919
- var O = S[C];
912
+ return new x("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
913
+ var O = C[S];
920
914
  if (!Array.isArray(O)) {
921
915
  var R = ne(O);
922
- return new x("Invalid " + P + " `" + E + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an array."));
916
+ return new x("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an array."));
923
917
  }
924
918
  for (var F = 0; F < O.length; F++) {
925
- var D = u(O, F, w, P, E + "[" + F + "]", t);
919
+ var D = u(O, F, E, P, w + "[" + F + "]", t);
926
920
  if (D instanceof Error)
927
921
  return D;
928
922
  }
@@ -931,64 +925,64 @@ function Cn() {
931
925
  return B(y);
932
926
  }
933
927
  function k() {
934
- function u(y, S, C, w, P) {
935
- var E = y[S];
936
- if (!i(E)) {
937
- var O = ne(E);
938
- return new x("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement."));
928
+ function u(y, C, S, E, P) {
929
+ var w = y[C];
930
+ if (!i(w)) {
931
+ var O = ne(w);
932
+ return new x("Invalid " + E + " `" + P + "` of type " + ("`" + O + "` supplied to `" + S + "`, expected a single ReactElement."));
939
933
  }
940
934
  return null;
941
935
  }
942
936
  return B(u);
943
937
  }
944
938
  function p() {
945
- function u(y, S, C, w, P) {
946
- var E = y[S];
947
- if (!e.isValidElementType(E)) {
948
- var O = ne(E);
949
- return new x("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement type."));
939
+ function u(y, C, S, E, P) {
940
+ var w = y[C];
941
+ if (!e.isValidElementType(w)) {
942
+ var O = ne(w);
943
+ return new x("Invalid " + E + " `" + P + "` of type " + ("`" + O + "` supplied to `" + S + "`, expected a single ReactElement type."));
950
944
  }
951
945
  return null;
952
946
  }
953
947
  return B(u);
954
948
  }
955
949
  function Q(u) {
956
- function y(S, C, w, P, E) {
957
- if (!(S[C] instanceof u)) {
958
- var O = u.name || h, R = G(S[C]);
959
- return new x("Invalid " + P + " `" + E + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
950
+ function y(C, S, E, P, w) {
951
+ if (!(C[S] instanceof u)) {
952
+ var O = u.name || b, R = G(C[S]);
953
+ return new x("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected ") + ("instance of `" + O + "`."));
960
954
  }
961
955
  return null;
962
956
  }
963
957
  return B(y);
964
958
  }
965
- function $(u) {
959
+ function M(u) {
966
960
  if (!Array.isArray(u))
967
961
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
968
962
  "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])."
969
963
  ) : o("Invalid argument supplied to oneOf, expected an array.")), c;
970
- function y(S, C, w, P, E) {
971
- for (var O = S[C], R = 0; R < u.length; R++)
964
+ function y(C, S, E, P, w) {
965
+ for (var O = C[S], R = 0; R < u.length; R++)
972
966
  if (T(O, u[R]))
973
967
  return null;
974
968
  var F = JSON.stringify(u, function(q, d) {
975
- var re = ae(d);
969
+ var re = ie(d);
976
970
  return re === "symbol" ? String(d) : d;
977
971
  });
978
- return new x("Invalid " + P + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + F + "."));
972
+ return new x("Invalid " + P + " `" + w + "` of value `" + String(O) + "` " + ("supplied to `" + E + "`, expected one of " + F + "."));
979
973
  }
980
974
  return B(y);
981
975
  }
982
976
  function X(u) {
983
- function y(S, C, w, P, E) {
977
+ function y(C, S, E, P, w) {
984
978
  if (typeof u != "function")
985
- return new x("Property `" + E + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
986
- var O = S[C], R = ne(O);
979
+ return new x("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
980
+ var O = C[S], R = ne(O);
987
981
  if (R !== "object")
988
- return new x("Invalid " + P + " `" + E + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an object."));
982
+ return new x("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an object."));
989
983
  for (var F in O)
990
984
  if (n(O, F)) {
991
- var D = u(O, F, w, P, E + "." + F, t);
985
+ var D = u(O, F, E, P, w + "." + F, t);
992
986
  if (D instanceof Error)
993
987
  return D;
994
988
  }
@@ -1000,45 +994,45 @@ function Cn() {
1000
994
  if (!Array.isArray(u))
1001
995
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), c;
1002
996
  for (var y = 0; y < u.length; y++) {
1003
- var S = u[y];
1004
- if (typeof S != "function")
997
+ var C = u[y];
998
+ if (typeof C != "function")
1005
999
  return o(
1006
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(S) + " at index " + y + "."
1000
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(C) + " at index " + y + "."
1007
1001
  ), c;
1008
1002
  }
1009
- function C(w, P, E, O, R) {
1003
+ function S(E, P, w, O, R) {
1010
1004
  for (var F = [], D = 0; D < u.length; D++) {
1011
- var q = u[D], d = q(w, P, E, O, R, t);
1005
+ var q = u[D], d = q(E, P, w, O, R, t);
1012
1006
  if (d == null)
1013
1007
  return null;
1014
1008
  d.data && n(d.data, "expectedType") && F.push(d.data.expectedType);
1015
1009
  }
1016
1010
  var re = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
1017
- return new x("Invalid " + O + " `" + R + "` supplied to " + ("`" + E + "`" + re + "."));
1011
+ return new x("Invalid " + O + " `" + R + "` supplied to " + ("`" + w + "`" + re + "."));
1018
1012
  }
1019
- return B(C);
1013
+ return B(S);
1020
1014
  }
1021
1015
  function ce() {
1022
- function u(y, S, C, w, P) {
1023
- return W(y[S]) ? null : new x("Invalid " + w + " `" + P + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
1016
+ function u(y, C, S, E, P) {
1017
+ return W(y[C]) ? null : new x("Invalid " + E + " `" + P + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
1024
1018
  }
1025
1019
  return B(u);
1026
1020
  }
1027
- function me(u, y, S, C, w) {
1021
+ function me(u, y, C, S, E) {
1028
1022
  return new x(
1029
- (u || "React class") + ": " + y + " type `" + S + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
1023
+ (u || "React class") + ": " + y + " type `" + C + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
1030
1024
  );
1031
1025
  }
1032
1026
  function ve(u) {
1033
- function y(S, C, w, P, E) {
1034
- var O = S[C], R = ne(O);
1027
+ function y(C, S, E, P, w) {
1028
+ var O = C[S], R = ne(O);
1035
1029
  if (R !== "object")
1036
- return new x("Invalid " + P + " `" + E + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
1030
+ return new x("Invalid " + P + " `" + w + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
1037
1031
  for (var F in u) {
1038
1032
  var D = u[F];
1039
1033
  if (typeof D != "function")
1040
- return me(w, P, E, F, ae(D));
1041
- var q = D(O, F, w, P, E + "." + F, t);
1034
+ return me(E, P, w, F, ie(D));
1035
+ var q = D(O, F, E, P, w + "." + F, t);
1042
1036
  if (q)
1043
1037
  return q;
1044
1038
  }
@@ -1047,21 +1041,21 @@ function Cn() {
1047
1041
  return B(y);
1048
1042
  }
1049
1043
  function le(u) {
1050
- function y(S, C, w, P, E) {
1051
- var O = S[C], R = ne(O);
1044
+ function y(C, S, E, P, w) {
1045
+ var O = C[S], R = ne(O);
1052
1046
  if (R !== "object")
1053
- return new x("Invalid " + P + " `" + E + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
1054
- var F = r({}, S[C], u);
1047
+ return new x("Invalid " + P + " `" + w + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
1048
+ var F = r({}, C[S], u);
1055
1049
  for (var D in F) {
1056
1050
  var q = u[D];
1057
1051
  if (n(u, D) && typeof q != "function")
1058
- return me(w, P, E, D, ae(q));
1052
+ return me(E, P, w, D, ie(q));
1059
1053
  if (!q)
1060
1054
  return new x(
1061
- "Invalid " + P + " `" + E + "` key `" + D + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(S[C], null, " ") + `
1055
+ "Invalid " + P + " `" + w + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(C[S], null, " ") + `
1062
1056
  Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1063
1057
  );
1064
- var d = q(O, D, w, P, E + "." + D, t);
1058
+ var d = q(O, D, E, P, w + "." + D, t);
1065
1059
  if (d)
1066
1060
  return d;
1067
1061
  }
@@ -1084,15 +1078,15 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1084
1078
  return !0;
1085
1079
  var y = g(u);
1086
1080
  if (y) {
1087
- var S = y.call(u), C;
1081
+ var C = y.call(u), S;
1088
1082
  if (y !== u.entries) {
1089
- for (; !(C = S.next()).done; )
1090
- if (!W(C.value))
1083
+ for (; !(S = C.next()).done; )
1084
+ if (!W(S.value))
1091
1085
  return !1;
1092
1086
  } else
1093
- for (; !(C = S.next()).done; ) {
1094
- var w = C.value;
1095
- if (w && !W(w[1]))
1087
+ for (; !(S = C.next()).done; ) {
1088
+ var E = S.value;
1089
+ if (E && !W(E[1]))
1096
1090
  return !1;
1097
1091
  }
1098
1092
  } else
@@ -1109,7 +1103,7 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1109
1103
  var y = typeof u;
1110
1104
  return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : J(y, u) ? "symbol" : y;
1111
1105
  }
1112
- function ae(u) {
1106
+ function ie(u) {
1113
1107
  if (typeof u > "u" || u === null)
1114
1108
  return "" + u;
1115
1109
  var y = ne(u);
@@ -1122,7 +1116,7 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1122
1116
  return y;
1123
1117
  }
1124
1118
  function ue(u) {
1125
- var y = ae(u);
1119
+ var y = ie(u);
1126
1120
  switch (y) {
1127
1121
  case "array":
1128
1122
  case "object":
@@ -1136,28 +1130,28 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1136
1130
  }
1137
1131
  }
1138
1132
  function G(u) {
1139
- return !u.constructor || !u.constructor.name ? h : u.constructor.name;
1133
+ return !u.constructor || !u.constructor.name ? b : u.constructor.name;
1140
1134
  }
1141
- return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
1135
+ return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
1142
1136
  }, Qe;
1143
1137
  }
1144
1138
  var er, Sr;
1145
- function On() {
1139
+ function Dn() {
1146
1140
  if (Sr)
1147
1141
  return er;
1148
1142
  Sr = 1;
1149
- var e = fr();
1143
+ var e = pr();
1150
1144
  function r() {
1151
1145
  }
1152
1146
  function t() {
1153
1147
  }
1154
1148
  return t.resetWarningCache = r, er = function() {
1155
- function n(c, i, f, l, v, g) {
1149
+ function n(c, i, f, l, m, g) {
1156
1150
  if (g !== e) {
1157
- var h = new Error(
1151
+ var b = new Error(
1158
1152
  "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"
1159
1153
  );
1160
- throw h.name = "Invariant Violation", h;
1154
+ throw b.name = "Invariant Violation", b;
1161
1155
  }
1162
1156
  }
1163
1157
  n.isRequired = n;
@@ -1191,40 +1185,40 @@ function On() {
1191
1185
  }, er;
1192
1186
  }
1193
1187
  if (process.env.NODE_ENV !== "production") {
1194
- var Dn = Gr(), An = !0;
1195
- nr.exports = Cn()(Dn.isElement, An);
1188
+ var An = Vr(), Pn = !0;
1189
+ nr.exports = On()(An.isElement, Pn);
1196
1190
  } else
1197
- nr.exports = On()();
1198
- var Pn = nr.exports;
1199
- const M = /* @__PURE__ */ Br(Pn);
1200
- function Se(e, r, t, n) {
1191
+ nr.exports = Dn()();
1192
+ var Rn = nr.exports;
1193
+ const $ = /* @__PURE__ */ zr(Rn);
1194
+ function Ce(e, r, t, n) {
1201
1195
  function a(o) {
1202
1196
  return o instanceof t ? o : new t(function(c) {
1203
1197
  c(o);
1204
1198
  });
1205
1199
  }
1206
1200
  return new (t || (t = Promise))(function(o, c) {
1207
- function i(v) {
1201
+ function i(m) {
1208
1202
  try {
1209
- l(n.next(v));
1203
+ l(n.next(m));
1210
1204
  } catch (g) {
1211
1205
  c(g);
1212
1206
  }
1213
1207
  }
1214
- function f(v) {
1208
+ function f(m) {
1215
1209
  try {
1216
- l(n.throw(v));
1210
+ l(n.throw(m));
1217
1211
  } catch (g) {
1218
1212
  c(g);
1219
1213
  }
1220
1214
  }
1221
- function l(v) {
1222
- v.done ? o(v.value) : a(v.value).then(i, f);
1215
+ function l(m) {
1216
+ m.done ? o(m.value) : a(m.value).then(i, f);
1223
1217
  }
1224
1218
  l((n = n.apply(e, r || [])).next());
1225
1219
  });
1226
1220
  }
1227
- function Ce(e, r) {
1221
+ function Se(e, r) {
1228
1222
  var t = { label: 0, sent: function() {
1229
1223
  if (o[0] & 1)
1230
1224
  throw o[1];
@@ -1234,8 +1228,8 @@ function Ce(e, r) {
1234
1228
  return this;
1235
1229
  }), c;
1236
1230
  function i(l) {
1237
- return function(v) {
1238
- return f([l, v]);
1231
+ return function(m) {
1232
+ return f([l, m]);
1239
1233
  };
1240
1234
  }
1241
1235
  function f(l) {
@@ -1279,8 +1273,8 @@ function Ce(e, r) {
1279
1273
  continue;
1280
1274
  }
1281
1275
  l = r.call(e, t);
1282
- } catch (v) {
1283
- l = [6, v], a = 0;
1276
+ } catch (m) {
1277
+ l = [6, m], a = 0;
1284
1278
  } finally {
1285
1279
  n = o = 0;
1286
1280
  }
@@ -1289,7 +1283,7 @@ function Ce(e, r) {
1289
1283
  return { value: l[0] ? l[1] : void 0, done: !0 };
1290
1284
  }
1291
1285
  }
1292
- function Cr(e, r) {
1286
+ function Or(e, r) {
1293
1287
  var t = typeof Symbol == "function" && e[Symbol.iterator];
1294
1288
  if (!t)
1295
1289
  return e;
@@ -1309,13 +1303,13 @@ function Cr(e, r) {
1309
1303
  }
1310
1304
  return o;
1311
1305
  }
1312
- function Or(e, r, t) {
1306
+ function Dr(e, r, t) {
1313
1307
  if (t || arguments.length === 2)
1314
1308
  for (var n = 0, a = r.length, o; n < a; n++)
1315
1309
  (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
1316
1310
  return e.concat(o || Array.prototype.slice.call(r));
1317
1311
  }
1318
- var Rn = /* @__PURE__ */ new Map([
1312
+ var Fn = /* @__PURE__ */ new Map([
1319
1313
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
1320
1314
  ["aac", "audio/aac"],
1321
1315
  ["abw", "application/x-abiword"],
@@ -1400,7 +1394,7 @@ var Rn = /* @__PURE__ */ new Map([
1400
1394
  ["msg", "application/vnd.ms-outlook"]
1401
1395
  ]);
1402
1396
  function Pe(e, r) {
1403
- var t = Fn(e);
1397
+ var t = In(e);
1404
1398
  if (typeof t.path != "string") {
1405
1399
  var n = e.webkitRelativePath;
1406
1400
  Object.defineProperty(t, "path", {
@@ -1412,10 +1406,10 @@ function Pe(e, r) {
1412
1406
  }
1413
1407
  return t;
1414
1408
  }
1415
- function Fn(e) {
1409
+ function In(e) {
1416
1410
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
1417
1411
  if (t && !e.type) {
1418
- var n = r.split(".").pop().toLowerCase(), a = Rn.get(n);
1412
+ var n = r.split(".").pop().toLowerCase(), a = Fn.get(n);
1419
1413
  a && Object.defineProperty(e, "type", {
1420
1414
  value: a,
1421
1415
  writable: !1,
@@ -1425,28 +1419,28 @@ function Fn(e) {
1425
1419
  }
1426
1420
  return e;
1427
1421
  }
1428
- var In = [
1422
+ var jn = [
1429
1423
  // Thumbnail cache files for macOS and Windows
1430
1424
  ".DS_Store",
1431
1425
  "Thumbs.db"
1432
1426
  // Windows
1433
1427
  ];
1434
- function jn(e) {
1435
- return Se(this, void 0, void 0, function() {
1436
- return Ce(this, function(r) {
1437
- return $e(e) && Nn(e.dataTransfer) ? [2, Ln(e.dataTransfer, e.type)] : kn(e) ? [2, $n(e)] : Array.isArray(e) && e.every(function(t) {
1428
+ function Nn(e) {
1429
+ return Ce(this, void 0, void 0, function() {
1430
+ return Se(this, function(r) {
1431
+ return Me(e) && kn(e.dataTransfer) ? [2, Bn(e.dataTransfer, e.type)] : Mn(e) ? [2, $n(e)] : Array.isArray(e) && e.every(function(t) {
1438
1432
  return "getFile" in t && typeof t.getFile == "function";
1439
- }) ? [2, Mn(e)] : [2, []];
1433
+ }) ? [2, Ln(e)] : [2, []];
1440
1434
  });
1441
1435
  });
1442
1436
  }
1443
- function Nn(e) {
1444
- return $e(e);
1445
- }
1446
1437
  function kn(e) {
1447
- return $e(e) && $e(e.target);
1438
+ return Me(e);
1448
1439
  }
1449
- function $e(e) {
1440
+ function Mn(e) {
1441
+ return Me(e) && Me(e.target);
1442
+ }
1443
+ function Me(e) {
1450
1444
  return typeof e == "object" && e !== null;
1451
1445
  }
1452
1446
  function $n(e) {
@@ -1454,10 +1448,10 @@ function $n(e) {
1454
1448
  return Pe(r);
1455
1449
  });
1456
1450
  }
1457
- function Mn(e) {
1458
- return Se(this, void 0, void 0, function() {
1451
+ function Ln(e) {
1452
+ return Ce(this, void 0, void 0, function() {
1459
1453
  var r;
1460
- return Ce(this, function(t) {
1454
+ return Se(this, function(t) {
1461
1455
  switch (t.label) {
1462
1456
  case 0:
1463
1457
  return [4, Promise.all(e.map(function(n) {
@@ -1471,28 +1465,28 @@ function Mn(e) {
1471
1465
  });
1472
1466
  });
1473
1467
  }
1474
- function Ln(e, r) {
1475
- return Se(this, void 0, void 0, function() {
1468
+ function Bn(e, r) {
1469
+ return Ce(this, void 0, void 0, function() {
1476
1470
  var t, n;
1477
- return Ce(this, function(a) {
1471
+ return Se(this, function(a) {
1478
1472
  switch (a.label) {
1479
1473
  case 0:
1480
1474
  return e.items ? (t = or(e.items).filter(function(o) {
1481
1475
  return o.kind === "file";
1482
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Bn))]) : [3, 2];
1476
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(zn))]) : [3, 2];
1483
1477
  case 1:
1484
- return n = a.sent(), [2, Dr(Xr(n))];
1478
+ return n = a.sent(), [2, Ar(Jr(n))];
1485
1479
  case 2:
1486
- return [2, Dr(or(e.files).map(function(o) {
1480
+ return [2, Ar(or(e.files).map(function(o) {
1487
1481
  return Pe(o);
1488
1482
  }))];
1489
1483
  }
1490
1484
  });
1491
1485
  });
1492
1486
  }
1493
- function Dr(e) {
1487
+ function Ar(e) {
1494
1488
  return e.filter(function(r) {
1495
- return In.indexOf(r.name) === -1;
1489
+ return jn.indexOf(r.name) === -1;
1496
1490
  });
1497
1491
  }
1498
1492
  function or(e) {
@@ -1504,41 +1498,41 @@ function or(e) {
1504
1498
  }
1505
1499
  return r;
1506
1500
  }
1507
- function Bn(e) {
1501
+ function zn(e) {
1508
1502
  if (typeof e.webkitGetAsEntry != "function")
1509
- return Ar(e);
1503
+ return Pr(e);
1510
1504
  var r = e.webkitGetAsEntry();
1511
- return r && r.isDirectory ? Jr(r) : Ar(e);
1505
+ return r && r.isDirectory ? Zr(r) : Pr(e);
1512
1506
  }
1513
- function Xr(e) {
1507
+ function Jr(e) {
1514
1508
  return e.reduce(function(r, t) {
1515
- return Or(Or([], Cr(r), !1), Cr(Array.isArray(t) ? Xr(t) : [t]), !1);
1509
+ return Dr(Dr([], Or(r), !1), Or(Array.isArray(t) ? Jr(t) : [t]), !1);
1516
1510
  }, []);
1517
1511
  }
1518
- function Ar(e) {
1512
+ function Pr(e) {
1519
1513
  var r = e.getAsFile();
1520
1514
  if (!r)
1521
1515
  return Promise.reject("".concat(e, " is not a File"));
1522
1516
  var t = Pe(r);
1523
1517
  return Promise.resolve(t);
1524
1518
  }
1525
- function zn(e) {
1526
- return Se(this, void 0, void 0, function() {
1527
- return Ce(this, function(r) {
1528
- return [2, e.isDirectory ? Jr(e) : Wn(e)];
1519
+ function Wn(e) {
1520
+ return Ce(this, void 0, void 0, function() {
1521
+ return Se(this, function(r) {
1522
+ return [2, e.isDirectory ? Zr(e) : Yn(e)];
1529
1523
  });
1530
1524
  });
1531
1525
  }
1532
- function Jr(e) {
1526
+ function Zr(e) {
1533
1527
  var r = e.createReader();
1534
1528
  return new Promise(function(t, n) {
1535
1529
  var a = [];
1536
1530
  function o() {
1537
1531
  var c = this;
1538
1532
  r.readEntries(function(i) {
1539
- return Se(c, void 0, void 0, function() {
1540
- var f, l, v;
1541
- return Ce(this, function(g) {
1533
+ return Ce(c, void 0, void 0, function() {
1534
+ var f, l, m;
1535
+ return Se(this, function(g) {
1542
1536
  switch (g.label) {
1543
1537
  case 0:
1544
1538
  if (i.length)
@@ -1553,7 +1547,7 @@ function Jr(e) {
1553
1547
  case 4:
1554
1548
  return [3, 6];
1555
1549
  case 5:
1556
- v = Promise.all(i.map(zn)), a.push(v), o(), g.label = 6;
1550
+ m = Promise.all(i.map(Wn)), a.push(m), o(), g.label = 6;
1557
1551
  case 6:
1558
1552
  return [
1559
1553
  2
@@ -1569,9 +1563,9 @@ function Jr(e) {
1569
1563
  o();
1570
1564
  });
1571
1565
  }
1572
- function Wn(e) {
1573
- return Se(this, void 0, void 0, function() {
1574
- return Ce(this, function(r) {
1566
+ function Yn(e) {
1567
+ return Ce(this, void 0, void 0, function() {
1568
+ return Se(this, function(r) {
1575
1569
  return [2, new Promise(function(t, n) {
1576
1570
  e.file(function(a) {
1577
1571
  var o = Pe(a, e.fullPath);
@@ -1583,7 +1577,7 @@ function Wn(e) {
1583
1577
  });
1584
1578
  });
1585
1579
  }
1586
- var Yn = function(e, r) {
1580
+ var qn = function(e, r) {
1587
1581
  if (e && r) {
1588
1582
  var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", a = (e.type || "").toLowerCase(), o = a.replace(/\/.*$/, "");
1589
1583
  return t.some(function(c) {
@@ -1593,22 +1587,22 @@ var Yn = function(e, r) {
1593
1587
  }
1594
1588
  return !0;
1595
1589
  };
1596
- function Pr(e) {
1597
- return Kn(e) || Un(e) || Qr(e) || qn();
1590
+ function Rr(e) {
1591
+ return Hn(e) || Kn(e) || et(e) || Un();
1598
1592
  }
1599
- function qn() {
1593
+ function Un() {
1600
1594
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1601
1595
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1602
1596
  }
1603
- function Un(e) {
1597
+ function Kn(e) {
1604
1598
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
1605
1599
  return Array.from(e);
1606
1600
  }
1607
- function Kn(e) {
1601
+ function Hn(e) {
1608
1602
  if (Array.isArray(e))
1609
1603
  return ar(e);
1610
1604
  }
1611
- function Rr(e, r) {
1605
+ function Fr(e, r) {
1612
1606
  var t = Object.keys(e);
1613
1607
  if (Object.getOwnPropertySymbols) {
1614
1608
  var n = Object.getOwnPropertySymbols(e);
@@ -1618,28 +1612,28 @@ function Rr(e, r) {
1618
1612
  }
1619
1613
  return t;
1620
1614
  }
1621
- function Fr(e) {
1615
+ function Ir(e) {
1622
1616
  for (var r = 1; r < arguments.length; r++) {
1623
1617
  var t = arguments[r] != null ? arguments[r] : {};
1624
- r % 2 ? Rr(Object(t), !0).forEach(function(n) {
1625
- Zr(e, n, t[n]);
1626
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
1618
+ r % 2 ? Fr(Object(t), !0).forEach(function(n) {
1619
+ Qr(e, n, t[n]);
1620
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Fr(Object(t)).forEach(function(n) {
1627
1621
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1628
1622
  });
1629
1623
  }
1630
1624
  return e;
1631
1625
  }
1632
- function Zr(e, r, t) {
1626
+ function Qr(e, r, t) {
1633
1627
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1634
1628
  }
1635
1629
  function Ae(e, r) {
1636
- return Vn(e) || Gn(e, r) || Qr(e, r) || Hn();
1630
+ return Xn(e) || Vn(e, r) || et(e, r) || Gn();
1637
1631
  }
1638
- function Hn() {
1632
+ function Gn() {
1639
1633
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1640
1634
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1641
1635
  }
1642
- function Qr(e, r) {
1636
+ function et(e, r) {
1643
1637
  if (e) {
1644
1638
  if (typeof e == "string")
1645
1639
  return ar(e, r);
@@ -1656,7 +1650,7 @@ function ar(e, r) {
1656
1650
  n[t] = e[t];
1657
1651
  return n;
1658
1652
  }
1659
- function Gn(e, r) {
1653
+ function Vn(e, r) {
1660
1654
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1661
1655
  if (t != null) {
1662
1656
  var n = [], a = !0, o = !1, c, i;
@@ -1676,61 +1670,61 @@ function Gn(e, r) {
1676
1670
  return n;
1677
1671
  }
1678
1672
  }
1679
- function Vn(e) {
1673
+ function Xn(e) {
1680
1674
  if (Array.isArray(e))
1681
1675
  return e;
1682
1676
  }
1683
- var Xn = "file-invalid-type", Jn = "file-too-large", Zn = "file-too-small", Qn = "too-many-files", eo = function(r) {
1677
+ var Jn = "file-invalid-type", Zn = "file-too-large", Qn = "file-too-small", eo = "too-many-files", ro = function(r) {
1684
1678
  r = Array.isArray(r) && r.length === 1 ? r[0] : r;
1685
1679
  var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
1686
1680
  return {
1687
- code: Xn,
1681
+ code: Jn,
1688
1682
  message: "File type must be ".concat(t)
1689
1683
  };
1690
- }, Ir = function(r) {
1684
+ }, jr = function(r) {
1691
1685
  return {
1692
- code: Jn,
1686
+ code: Zn,
1693
1687
  message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1694
1688
  };
1695
- }, jr = function(r) {
1689
+ }, Nr = function(r) {
1696
1690
  return {
1697
- code: Zn,
1691
+ code: Qn,
1698
1692
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1699
1693
  };
1700
- }, ro = {
1701
- code: Qn,
1694
+ }, to = {
1695
+ code: eo,
1702
1696
  message: "Too many files"
1703
1697
  };
1704
- function et(e, r) {
1705
- var t = e.type === "application/x-moz-file" || Yn(e, r);
1706
- return [t, t ? null : eo(r)];
1698
+ function rt(e, r) {
1699
+ var t = e.type === "application/x-moz-file" || qn(e, r);
1700
+ return [t, t ? null : ro(r)];
1707
1701
  }
1708
- function rt(e, r, t) {
1702
+ function tt(e, r, t) {
1709
1703
  if (ge(e.size))
1710
1704
  if (ge(r) && ge(t)) {
1711
1705
  if (e.size > t)
1712
- return [!1, Ir(t)];
1706
+ return [!1, jr(t)];
1713
1707
  if (e.size < r)
1714
- return [!1, jr(r)];
1708
+ return [!1, Nr(r)];
1715
1709
  } else {
1716
1710
  if (ge(r) && e.size < r)
1717
- return [!1, jr(r)];
1711
+ return [!1, Nr(r)];
1718
1712
  if (ge(t) && e.size > t)
1719
- return [!1, Ir(t)];
1713
+ return [!1, jr(t)];
1720
1714
  }
1721
1715
  return [!0, null];
1722
1716
  }
1723
1717
  function ge(e) {
1724
1718
  return e != null;
1725
1719
  }
1726
- function to(e) {
1720
+ function no(e) {
1727
1721
  var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, c = e.maxFiles, i = e.validator;
1728
1722
  return !o && r.length > 1 || o && c >= 1 && r.length > c ? !1 : r.every(function(f) {
1729
- var l = et(f, t), v = Ae(l, 1), g = v[0], h = rt(f, n, a), b = Ae(h, 1), T = b[0], x = i ? i(f) : null;
1723
+ var l = rt(f, t), m = Ae(l, 1), g = m[0], b = tt(f, n, a), h = Ae(b, 1), T = h[0], x = i ? i(f) : null;
1730
1724
  return g && T && !x;
1731
1725
  });
1732
1726
  }
1733
- function Me(e) {
1727
+ function $e(e) {
1734
1728
  return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
1735
1729
  }
1736
1730
  function Ne(e) {
@@ -1738,41 +1732,41 @@ function Ne(e) {
1738
1732
  return r === "Files" || r === "application/x-moz-file";
1739
1733
  }) : !!e.target && !!e.target.files;
1740
1734
  }
1741
- function Nr(e) {
1735
+ function kr(e) {
1742
1736
  e.preventDefault();
1743
1737
  }
1744
- function no(e) {
1738
+ function oo(e) {
1745
1739
  return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
1746
1740
  }
1747
- function oo(e) {
1741
+ function ao(e) {
1748
1742
  return e.indexOf("Edge/") !== -1;
1749
1743
  }
1750
- function ao() {
1744
+ function io() {
1751
1745
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1752
- return no(e) || oo(e);
1746
+ return oo(e) || ao(e);
1753
1747
  }
1754
- function ie() {
1748
+ function se() {
1755
1749
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1756
1750
  r[t] = arguments[t];
1757
1751
  return function(n) {
1758
1752
  for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), c = 1; c < a; c++)
1759
1753
  o[c - 1] = arguments[c];
1760
1754
  return r.some(function(i) {
1761
- return !Me(n) && i && i.apply(void 0, [n].concat(o)), Me(n);
1755
+ return !$e(n) && i && i.apply(void 0, [n].concat(o)), $e(n);
1762
1756
  });
1763
1757
  };
1764
1758
  }
1765
- function io() {
1759
+ function so() {
1766
1760
  return "showOpenFilePicker" in window;
1767
1761
  }
1768
- function so(e) {
1762
+ function co(e) {
1769
1763
  if (ge(e)) {
1770
1764
  var r = Object.entries(e).filter(function(t) {
1771
1765
  var n = Ae(t, 2), a = n[0], o = n[1], c = !0;
1772
- return tt(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.')), c = !1), (!Array.isArray(o) || !o.every(nt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), c = !1), c;
1766
+ return nt(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.')), c = !1), (!Array.isArray(o) || !o.every(ot)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), c = !1), c;
1773
1767
  }).reduce(function(t, n) {
1774
1768
  var a = Ae(n, 2), o = a[0], c = a[1];
1775
- return Fr(Fr({}, t), {}, Zr({}, o, c));
1769
+ return Ir(Ir({}, t), {}, Qr({}, o, c));
1776
1770
  }, {});
1777
1771
  return [{
1778
1772
  // description is required due to https://crbug.com/1264708
@@ -1782,32 +1776,32 @@ function so(e) {
1782
1776
  }
1783
1777
  return e;
1784
1778
  }
1785
- function co(e) {
1779
+ function lo(e) {
1786
1780
  if (ge(e))
1787
1781
  return Object.entries(e).reduce(function(r, t) {
1788
1782
  var n = Ae(t, 2), a = n[0], o = n[1];
1789
- return [].concat(Pr(r), [a], Pr(o));
1783
+ return [].concat(Rr(r), [a], Rr(o));
1790
1784
  }, []).filter(function(r) {
1791
- return tt(r) || nt(r);
1785
+ return nt(r) || ot(r);
1792
1786
  }).join(",");
1793
1787
  }
1794
- function lo(e) {
1788
+ function uo(e) {
1795
1789
  return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
1796
1790
  }
1797
- function uo(e) {
1791
+ function fo(e) {
1798
1792
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
1799
1793
  }
1800
- function tt(e) {
1794
+ function nt(e) {
1801
1795
  return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || /\w+\/[-+.\w]+/g.test(e);
1802
1796
  }
1803
- function nt(e) {
1797
+ function ot(e) {
1804
1798
  return /^.*\.[\w]+$/.test(e);
1805
1799
  }
1806
- var fo = ["children"], po = ["open"], mo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], vo = ["refKey", "onChange", "onClick"];
1807
- function yo(e) {
1808
- return ho(e) || bo(e) || ot(e) || go();
1800
+ var po = ["children"], mo = ["open"], vo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], yo = ["refKey", "onChange", "onClick"];
1801
+ function go(e) {
1802
+ return _o(e) || bo(e) || at(e) || ho();
1809
1803
  }
1810
- function go() {
1804
+ function ho() {
1811
1805
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1812
1806
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1813
1807
  }
@@ -1815,18 +1809,18 @@ function bo(e) {
1815
1809
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
1816
1810
  return Array.from(e);
1817
1811
  }
1818
- function ho(e) {
1812
+ function _o(e) {
1819
1813
  if (Array.isArray(e))
1820
1814
  return ir(e);
1821
1815
  }
1822
1816
  function rr(e, r) {
1823
- return Eo(e) || wo(e, r) || ot(e, r) || _o();
1817
+ return xo(e) || wo(e, r) || at(e, r) || Eo();
1824
1818
  }
1825
- function _o() {
1819
+ function Eo() {
1826
1820
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1827
1821
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1828
1822
  }
1829
- function ot(e, r) {
1823
+ function at(e, r) {
1830
1824
  if (e) {
1831
1825
  if (typeof e == "string")
1832
1826
  return ir(e, r);
@@ -1863,11 +1857,11 @@ function wo(e, r) {
1863
1857
  return n;
1864
1858
  }
1865
1859
  }
1866
- function Eo(e) {
1860
+ function xo(e) {
1867
1861
  if (Array.isArray(e))
1868
1862
  return e;
1869
1863
  }
1870
- function kr(e, r) {
1864
+ function Mr(e, r) {
1871
1865
  var t = Object.keys(e);
1872
1866
  if (Object.getOwnPropertySymbols) {
1873
1867
  var n = Object.getOwnPropertySymbols(e);
@@ -1880,9 +1874,9 @@ function kr(e, r) {
1880
1874
  function z(e) {
1881
1875
  for (var r = 1; r < arguments.length; r++) {
1882
1876
  var t = arguments[r] != null ? arguments[r] : {};
1883
- r % 2 ? kr(Object(t), !0).forEach(function(n) {
1877
+ r % 2 ? Mr(Object(t), !0).forEach(function(n) {
1884
1878
  sr(e, n, t[n]);
1885
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : kr(Object(t)).forEach(function(n) {
1879
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Mr(Object(t)).forEach(function(n) {
1886
1880
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1887
1881
  });
1888
1882
  }
@@ -1894,7 +1888,7 @@ function sr(e, r, t) {
1894
1888
  function Le(e, r) {
1895
1889
  if (e == null)
1896
1890
  return {};
1897
- var t = xo(e, r), n, a;
1891
+ var t = To(e, r), n, a;
1898
1892
  if (Object.getOwnPropertySymbols) {
1899
1893
  var o = Object.getOwnPropertySymbols(e);
1900
1894
  for (a = 0; a < o.length; a++)
@@ -1902,7 +1896,7 @@ function Le(e, r) {
1902
1896
  }
1903
1897
  return t;
1904
1898
  }
1905
- function xo(e, r) {
1899
+ function To(e, r) {
1906
1900
  if (e == null)
1907
1901
  return {};
1908
1902
  var t = {}, n = Object.keys(e), a, o;
@@ -1910,20 +1904,20 @@ function xo(e, r) {
1910
1904
  a = n[o], !(r.indexOf(a) >= 0) && (t[a] = e[a]);
1911
1905
  return t;
1912
1906
  }
1913
- var pr = /* @__PURE__ */ bt(function(e, r) {
1914
- var t = e.children, n = Le(e, fo), a = it(n), o = a.open, c = Le(a, po);
1915
- return ht(r, function() {
1907
+ var dr = /* @__PURE__ */ bt(function(e, r) {
1908
+ var t = e.children, n = Le(e, po), a = st(n), o = a.open, c = Le(a, mo);
1909
+ return _t(r, function() {
1916
1910
  return {
1917
1911
  open: o
1918
1912
  };
1919
- }, [o]), /* @__PURE__ */ vt.createElement(_t, null, t(z(z({}, c), {}, {
1913
+ }, [o]), /* @__PURE__ */ gt.createElement(Et, null, t(z(z({}, c), {}, {
1920
1914
  open: o
1921
1915
  })));
1922
1916
  });
1923
- pr.displayName = "Dropzone";
1924
- var at = {
1917
+ dr.displayName = "Dropzone";
1918
+ var it = {
1925
1919
  disabled: !1,
1926
- getFilesFromEvent: jn,
1920
+ getFilesFromEvent: Nn,
1927
1921
  maxSize: 1 / 0,
1928
1922
  minSize: 0,
1929
1923
  multiple: !0,
@@ -1937,8 +1931,8 @@ var at = {
1937
1931
  useFsAccessApi: !0,
1938
1932
  autoFocus: !1
1939
1933
  };
1940
- pr.defaultProps = at;
1941
- pr.propTypes = {
1934
+ dr.defaultProps = it;
1935
+ dr.propTypes = {
1942
1936
  /**
1943
1937
  * Render function that exposes the dropzone state and prop getter fns
1944
1938
  *
@@ -1954,7 +1948,7 @@ pr.propTypes = {
1954
1948
  * @param {File[]} params.acceptedFiles Accepted files
1955
1949
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
1956
1950
  */
1957
- children: M.func,
1951
+ children: $.func,
1958
1952
  /**
1959
1953
  * Set accepted file types.
1960
1954
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -1962,90 +1956,90 @@ pr.propTypes = {
1962
1956
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
1963
1957
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
1964
1958
  */
1965
- accept: M.objectOf(M.arrayOf(M.string)),
1959
+ accept: $.objectOf($.arrayOf($.string)),
1966
1960
  /**
1967
1961
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
1968
1962
  */
1969
- multiple: M.bool,
1963
+ multiple: $.bool,
1970
1964
  /**
1971
1965
  * If false, allow dropped items to take over the current browser window
1972
1966
  */
1973
- preventDropOnDocument: M.bool,
1967
+ preventDropOnDocument: $.bool,
1974
1968
  /**
1975
1969
  * If true, disables click to open the native file selection dialog
1976
1970
  */
1977
- noClick: M.bool,
1971
+ noClick: $.bool,
1978
1972
  /**
1979
1973
  * If true, disables SPACE/ENTER to open the native file selection dialog.
1980
1974
  * Note that it also stops tracking the focus state.
1981
1975
  */
1982
- noKeyboard: M.bool,
1976
+ noKeyboard: $.bool,
1983
1977
  /**
1984
1978
  * If true, disables drag 'n' drop
1985
1979
  */
1986
- noDrag: M.bool,
1980
+ noDrag: $.bool,
1987
1981
  /**
1988
1982
  * If true, stops drag event propagation to parents
1989
1983
  */
1990
- noDragEventsBubbling: M.bool,
1984
+ noDragEventsBubbling: $.bool,
1991
1985
  /**
1992
1986
  * Minimum file size (in bytes)
1993
1987
  */
1994
- minSize: M.number,
1988
+ minSize: $.number,
1995
1989
  /**
1996
1990
  * Maximum file size (in bytes)
1997
1991
  */
1998
- maxSize: M.number,
1992
+ maxSize: $.number,
1999
1993
  /**
2000
1994
  * Maximum accepted number of files
2001
1995
  * The default value is 0 which means there is no limitation to how many files are accepted.
2002
1996
  */
2003
- maxFiles: M.number,
1997
+ maxFiles: $.number,
2004
1998
  /**
2005
1999
  * Enable/disable the dropzone
2006
2000
  */
2007
- disabled: M.bool,
2001
+ disabled: $.bool,
2008
2002
  /**
2009
2003
  * Use this to provide a custom file aggregator
2010
2004
  *
2011
2005
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
2012
2006
  */
2013
- getFilesFromEvent: M.func,
2007
+ getFilesFromEvent: $.func,
2014
2008
  /**
2015
2009
  * Cb for when closing the file dialog with no selection
2016
2010
  */
2017
- onFileDialogCancel: M.func,
2011
+ onFileDialogCancel: $.func,
2018
2012
  /**
2019
2013
  * Cb for when opening the file dialog
2020
2014
  */
2021
- onFileDialogOpen: M.func,
2015
+ onFileDialogOpen: $.func,
2022
2016
  /**
2023
2017
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
2024
2018
  * to open the file picker instead of using an `<input type="file">` click event.
2025
2019
  */
2026
- useFsAccessApi: M.bool,
2020
+ useFsAccessApi: $.bool,
2027
2021
  /**
2028
2022
  * Set to true to focus the root element on render
2029
2023
  */
2030
- autoFocus: M.bool,
2024
+ autoFocus: $.bool,
2031
2025
  /**
2032
2026
  * Cb for when the `dragenter` event occurs.
2033
2027
  *
2034
2028
  * @param {DragEvent} event
2035
2029
  */
2036
- onDragEnter: M.func,
2030
+ onDragEnter: $.func,
2037
2031
  /**
2038
2032
  * Cb for when the `dragleave` event occurs
2039
2033
  *
2040
2034
  * @param {DragEvent} event
2041
2035
  */
2042
- onDragLeave: M.func,
2036
+ onDragLeave: $.func,
2043
2037
  /**
2044
2038
  * Cb for when the `dragover` event occurs
2045
2039
  *
2046
2040
  * @param {DragEvent} event
2047
2041
  */
2048
- onDragOver: M.func,
2042
+ onDragOver: $.func,
2049
2043
  /**
2050
2044
  * Cb for when the `drop` event occurs.
2051
2045
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -2076,7 +2070,7 @@ pr.propTypes = {
2076
2070
  * @param {FileRejection[]} fileRejections
2077
2071
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
2078
2072
  */
2079
- onDrop: M.func,
2073
+ onDrop: $.func,
2080
2074
  /**
2081
2075
  * Cb for when the `drop` event occurs.
2082
2076
  * Note that if no files are accepted, this callback is not invoked.
@@ -2084,7 +2078,7 @@ pr.propTypes = {
2084
2078
  * @param {File[]} files
2085
2079
  * @param {(DragEvent|Event)} event
2086
2080
  */
2087
- onDropAccepted: M.func,
2081
+ onDropAccepted: $.func,
2088
2082
  /**
2089
2083
  * Cb for when the `drop` event occurs.
2090
2084
  * Note that if no files are rejected, this callback is not invoked.
@@ -2092,19 +2086,19 @@ pr.propTypes = {
2092
2086
  * @param {FileRejection[]} fileRejections
2093
2087
  * @param {(DragEvent|Event)} event
2094
2088
  */
2095
- onDropRejected: M.func,
2089
+ onDropRejected: $.func,
2096
2090
  /**
2097
2091
  * Cb for when there's some error from any of the promises.
2098
2092
  *
2099
2093
  * @param {Error} error
2100
2094
  */
2101
- onError: M.func,
2095
+ onError: $.func,
2102
2096
  /**
2103
2097
  * Custom validation function. It must return null if there's no errors.
2104
2098
  * @param {File} file
2105
2099
  * @returns {FileError|FileError[]|null}
2106
2100
  */
2107
- validator: M.func
2101
+ validator: $.func
2108
2102
  };
2109
2103
  var cr = {
2110
2104
  isFocused: !1,
@@ -2115,17 +2109,17 @@ var cr = {
2115
2109
  acceptedFiles: [],
2116
2110
  fileRejections: []
2117
2111
  };
2118
- function it() {
2119
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, at), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, c = r.minSize, i = r.multiple, f = r.maxFiles, l = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, h = r.onDrop, b = r.onDropAccepted, T = r.onDropRejected, x = r.onFileDialogCancel, B = r.onFileDialogOpen, N = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, Q = r.noDrag, $ = r.noDragEventsBubbling, X = r.onError, ee = r.validator, ce = se(function() {
2112
+ function st() {
2113
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, it), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, c = r.minSize, i = r.multiple, f = r.maxFiles, l = r.onDragEnter, m = r.onDragLeave, g = r.onDragOver, b = r.onDrop, h = r.onDropAccepted, T = r.onDropRejected, x = r.onFileDialogCancel, B = r.onFileDialogOpen, N = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, Q = r.noDrag, M = r.noDragEventsBubbling, X = r.onError, ee = r.validator, ce = ae(function() {
2114
+ return lo(t);
2115
+ }, [t]), me = ae(function() {
2120
2116
  return co(t);
2121
- }, [t]), me = se(function() {
2122
- return so(t);
2123
- }, [t]), ve = se(function() {
2117
+ }, [t]), ve = ae(function() {
2124
2118
  return typeof B == "function" ? B : $r;
2125
- }, [B]), le = se(function() {
2119
+ }, [B]), le = ae(function() {
2126
2120
  return typeof x == "function" ? x : $r;
2127
- }, [x]), W = Ee(null), J = Ee(null), ne = Lr(To, cr), ae = rr(ne, 2), ue = ae[0], G = ae[1], u = ue.isFocused, y = ue.isFileDialogActive, S = Ee(typeof window < "u" && window.isSecureContext && N && io()), C = function() {
2128
- !S.current && y && setTimeout(function() {
2121
+ }, [x]), W = we(null), J = we(null), ne = Br(Co, cr), ie = rr(ne, 2), ue = ie[0], G = ie[1], u = ue.isFocused, y = ue.isFileDialogActive, C = we(typeof window < "u" && window.isSecureContext && N && so()), S = function() {
2122
+ !C.current && y && setTimeout(function() {
2129
2123
  if (J.current) {
2130
2124
  var _ = J.current.files;
2131
2125
  _.length || (G({
@@ -2134,28 +2128,28 @@ function it() {
2134
2128
  }
2135
2129
  }, 300);
2136
2130
  };
2137
- he(function() {
2138
- return window.addEventListener("focus", C, !1), function() {
2139
- window.removeEventListener("focus", C, !1);
2131
+ be(function() {
2132
+ return window.addEventListener("focus", S, !1), function() {
2133
+ window.removeEventListener("focus", S, !1);
2140
2134
  };
2141
- }, [J, y, le, S]);
2142
- var w = Ee([]), P = function(_) {
2143
- W.current && W.current.contains(_.target) || (_.preventDefault(), w.current = []);
2135
+ }, [J, y, le, C]);
2136
+ var E = we([]), P = function(_) {
2137
+ W.current && W.current.contains(_.target) || (_.preventDefault(), E.current = []);
2144
2138
  };
2145
- he(function() {
2146
- return A && (document.addEventListener("dragover", Nr, !1), document.addEventListener("drop", P, !1)), function() {
2147
- A && (document.removeEventListener("dragover", Nr), document.removeEventListener("drop", P));
2139
+ be(function() {
2140
+ return A && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", P, !1)), function() {
2141
+ A && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", P));
2148
2142
  };
2149
- }, [W, A]), he(function() {
2143
+ }, [W, A]), be(function() {
2150
2144
  return !n && K && W.current && W.current.focus(), function() {
2151
2145
  };
2152
2146
  }, [W, K, n]);
2153
- var E = Z(function(m) {
2154
- X ? X(m) : console.error(m);
2155
- }, [X]), O = Z(function(m) {
2156
- m.preventDefault(), m.persist(), Fe(m), w.current = [].concat(yo(w.current), [m.target]), Ne(m) && Promise.resolve(a(m)).then(function(_) {
2157
- if (!(Me(m) && !$)) {
2158
- var Y = _.length, V = Y > 0 && to({
2147
+ var w = Z(function(v) {
2148
+ X ? X(v) : console.error(v);
2149
+ }, [X]), O = Z(function(v) {
2150
+ v.preventDefault(), v.persist(), Fe(v), E.current = [].concat(go(E.current), [v.target]), Ne(v) && Promise.resolve(a(v)).then(function(_) {
2151
+ if (!($e(v) && !M)) {
2152
+ var Y = _.length, V = Y > 0 && no({
2159
2153
  files: _,
2160
2154
  accept: ce,
2161
2155
  minSize: c,
@@ -2169,91 +2163,91 @@ function it() {
2169
2163
  isDragReject: te,
2170
2164
  isDragActive: !0,
2171
2165
  type: "setDraggedFiles"
2172
- }), l && l(m);
2166
+ }), l && l(v);
2173
2167
  }
2174
2168
  }).catch(function(_) {
2175
- return E(_);
2169
+ return w(_);
2176
2170
  });
2177
- }, [a, l, E, $, ce, c, o, i, f, ee]), R = Z(function(m) {
2178
- m.preventDefault(), m.persist(), Fe(m);
2179
- var _ = Ne(m);
2180
- if (_ && m.dataTransfer)
2171
+ }, [a, l, w, M, ce, c, o, i, f, ee]), R = Z(function(v) {
2172
+ v.preventDefault(), v.persist(), Fe(v);
2173
+ var _ = Ne(v);
2174
+ if (_ && v.dataTransfer)
2181
2175
  try {
2182
- m.dataTransfer.dropEffect = "copy";
2176
+ v.dataTransfer.dropEffect = "copy";
2183
2177
  } catch {
2184
2178
  }
2185
- return _ && g && g(m), !1;
2186
- }, [g, $]), F = Z(function(m) {
2187
- m.preventDefault(), m.persist(), Fe(m);
2188
- var _ = w.current.filter(function(V) {
2179
+ return _ && g && g(v), !1;
2180
+ }, [g, M]), F = Z(function(v) {
2181
+ v.preventDefault(), v.persist(), Fe(v);
2182
+ var _ = E.current.filter(function(V) {
2189
2183
  return W.current && W.current.contains(V);
2190
- }), Y = _.indexOf(m.target);
2191
- Y !== -1 && _.splice(Y, 1), w.current = _, !(_.length > 0) && (G({
2184
+ }), Y = _.indexOf(v.target);
2185
+ Y !== -1 && _.splice(Y, 1), E.current = _, !(_.length > 0) && (G({
2192
2186
  type: "setDraggedFiles",
2193
2187
  isDragActive: !1,
2194
2188
  isDragAccept: !1,
2195
2189
  isDragReject: !1
2196
- }), Ne(m) && v && v(m));
2197
- }, [W, v, $]), D = Z(function(m, _) {
2190
+ }), Ne(v) && m && m(v));
2191
+ }, [W, m, M]), D = Z(function(v, _) {
2198
2192
  var Y = [], V = [];
2199
- m.forEach(function(te) {
2200
- var De = et(te, ce), we = rr(De, 2), We = we[0], Ye = we[1], qe = rt(te, c, o), Ie = rr(qe, 2), Ue = Ie[0], Ke = Ie[1], He = ee ? ee(te) : null;
2193
+ v.forEach(function(te) {
2194
+ var De = rt(te, ce), Ee = rr(De, 2), We = Ee[0], Ye = Ee[1], qe = tt(te, c, o), Ie = rr(qe, 2), Ue = Ie[0], Ke = Ie[1], He = ee ? ee(te) : null;
2201
2195
  if (We && Ue && !He)
2202
2196
  Y.push(te);
2203
2197
  else {
2204
2198
  var Ge = [Ye, Ke];
2205
2199
  He && (Ge = Ge.concat(He)), V.push({
2206
2200
  file: te,
2207
- errors: Ge.filter(function(mt) {
2208
- return mt;
2201
+ errors: Ge.filter(function(yt) {
2202
+ return yt;
2209
2203
  })
2210
2204
  });
2211
2205
  }
2212
2206
  }), (!i && Y.length > 1 || i && f >= 1 && Y.length > f) && (Y.forEach(function(te) {
2213
2207
  V.push({
2214
2208
  file: te,
2215
- errors: [ro]
2209
+ errors: [to]
2216
2210
  });
2217
2211
  }), Y.splice(0)), G({
2218
2212
  acceptedFiles: Y,
2219
2213
  fileRejections: V,
2220
2214
  type: "setFiles"
2221
- }), h && h(Y, V, _), V.length > 0 && T && T(V, _), Y.length > 0 && b && b(Y, _);
2222
- }, [G, i, ce, c, o, f, h, b, T, ee]), q = Z(function(m) {
2223
- m.preventDefault(), m.persist(), Fe(m), w.current = [], Ne(m) && Promise.resolve(a(m)).then(function(_) {
2224
- Me(m) && !$ || D(_, m);
2215
+ }), b && b(Y, V, _), V.length > 0 && T && T(V, _), Y.length > 0 && h && h(Y, _);
2216
+ }, [G, i, ce, c, o, f, b, h, T, ee]), q = Z(function(v) {
2217
+ v.preventDefault(), v.persist(), Fe(v), E.current = [], Ne(v) && Promise.resolve(a(v)).then(function(_) {
2218
+ $e(v) && !M || D(_, v);
2225
2219
  }).catch(function(_) {
2226
- return E(_);
2220
+ return w(_);
2227
2221
  }), G({
2228
2222
  type: "reset"
2229
2223
  });
2230
- }, [a, D, E, $]), d = Z(function() {
2231
- if (S.current) {
2224
+ }, [a, D, w, M]), d = Z(function() {
2225
+ if (C.current) {
2232
2226
  G({
2233
2227
  type: "openDialog"
2234
2228
  }), ve();
2235
- var m = {
2229
+ var v = {
2236
2230
  multiple: i,
2237
2231
  types: me
2238
2232
  };
2239
- window.showOpenFilePicker(m).then(function(_) {
2233
+ window.showOpenFilePicker(v).then(function(_) {
2240
2234
  return a(_);
2241
2235
  }).then(function(_) {
2242
2236
  D(_, null), G({
2243
2237
  type: "closeDialog"
2244
2238
  });
2245
2239
  }).catch(function(_) {
2246
- lo(_) ? (le(_), G({
2240
+ uo(_) ? (le(_), G({
2247
2241
  type: "closeDialog"
2248
- })) : uo(_) ? (S.current = !1, J.current ? (J.current.value = null, J.current.click()) : E(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : E(_);
2242
+ })) : fo(_) ? (C.current = !1, J.current ? (J.current.value = null, J.current.click()) : w(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : w(_);
2249
2243
  });
2250
2244
  return;
2251
2245
  }
2252
2246
  J.current && (G({
2253
2247
  type: "openDialog"
2254
2248
  }), ve(), J.current.value = null, J.current.click());
2255
- }, [G, ve, le, N, D, E, me, i]), re = Z(function(m) {
2256
- !W.current || !W.current.isEqualNode(m.target) || (m.key === " " || m.key === "Enter" || m.keyCode === 32 || m.keyCode === 13) && (m.preventDefault(), d());
2249
+ }, [G, ve, le, N, D, w, me, i]), re = Z(function(v) {
2250
+ !W.current || !W.current.isEqualNode(v.target) || (v.key === " " || v.key === "Enter" || v.keyCode === 32 || v.keyCode === 13) && (v.preventDefault(), d());
2257
2251
  }, [W, d]), ye = Z(function() {
2258
2252
  G({
2259
2253
  type: "focus"
@@ -2262,8 +2256,8 @@ function it() {
2262
2256
  G({
2263
2257
  type: "blur"
2264
2258
  });
2265
- }, []), dr = Z(function() {
2266
- k || (ao() ? setTimeout(d, 0) : d());
2259
+ }, []), mr = Z(function() {
2260
+ k || (io() ? setTimeout(d, 0) : d());
2267
2261
  }, [k, d]), _e = function(_) {
2268
2262
  return n ? null : _;
2269
2263
  }, ze = function(_) {
@@ -2271,52 +2265,52 @@ function it() {
2271
2265
  }, Re = function(_) {
2272
2266
  return Q ? null : _e(_);
2273
2267
  }, Fe = function(_) {
2274
- $ && _.stopPropagation();
2275
- }, ft = se(function() {
2268
+ M && _.stopPropagation();
2269
+ }, dt = ae(function() {
2276
2270
  return function() {
2277
- var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.role, te = m.onKeyDown, De = m.onFocus, we = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Ie = m.onDragLeave, Ue = m.onDrop, Ke = Le(m, mo);
2271
+ var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = v.refKey, Y = _ === void 0 ? "ref" : _, V = v.role, te = v.onKeyDown, De = v.onFocus, Ee = v.onBlur, We = v.onClick, Ye = v.onDragEnter, qe = v.onDragOver, Ie = v.onDragLeave, Ue = v.onDrop, Ke = Le(v, vo);
2278
2272
  return z(z(sr({
2279
- onKeyDown: ze(ie(te, re)),
2280
- onFocus: ze(ie(De, ye)),
2281
- onBlur: ze(ie(we, Oe)),
2282
- onClick: _e(ie(We, dr)),
2283
- onDragEnter: Re(ie(Ye, O)),
2284
- onDragOver: Re(ie(qe, R)),
2285
- onDragLeave: Re(ie(Ie, F)),
2286
- onDrop: Re(ie(Ue, q)),
2273
+ onKeyDown: ze(se(te, re)),
2274
+ onFocus: ze(se(De, ye)),
2275
+ onBlur: ze(se(Ee, Oe)),
2276
+ onClick: _e(se(We, mr)),
2277
+ onDragEnter: Re(se(Ye, O)),
2278
+ onDragOver: Re(se(qe, R)),
2279
+ onDragLeave: Re(se(Ie, F)),
2280
+ onDrop: Re(se(Ue, q)),
2287
2281
  role: typeof V == "string" && V !== "" ? V : "presentation"
2288
2282
  }, Y, W), !n && !p ? {
2289
2283
  tabIndex: 0
2290
2284
  } : {}), Ke);
2291
2285
  };
2292
- }, [W, re, ye, Oe, dr, O, R, F, q, p, Q, n]), pt = Z(function(m) {
2293
- m.stopPropagation();
2294
- }, []), dt = se(function() {
2286
+ }, [W, re, ye, Oe, mr, O, R, F, q, p, Q, n]), mt = Z(function(v) {
2287
+ v.stopPropagation();
2288
+ }, []), vt = ae(function() {
2295
2289
  return function() {
2296
- var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.onChange, te = m.onClick, De = Le(m, vo), we = sr({
2290
+ var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = v.refKey, Y = _ === void 0 ? "ref" : _, V = v.onChange, te = v.onClick, De = Le(v, yo), Ee = sr({
2297
2291
  accept: ce,
2298
2292
  multiple: i,
2299
2293
  type: "file",
2300
2294
  style: {
2301
2295
  display: "none"
2302
2296
  },
2303
- onChange: _e(ie(V, q)),
2304
- onClick: _e(ie(te, pt)),
2297
+ onChange: _e(se(V, q)),
2298
+ onClick: _e(se(te, mt)),
2305
2299
  tabIndex: -1
2306
2300
  }, Y, J);
2307
- return z(z({}, we), De);
2301
+ return z(z({}, Ee), De);
2308
2302
  };
2309
2303
  }, [J, t, i, q, n]);
2310
2304
  return z(z({}, ue), {}, {
2311
2305
  isFocused: u && !n,
2312
- getRootProps: ft,
2313
- getInputProps: dt,
2306
+ getRootProps: dt,
2307
+ getInputProps: vt,
2314
2308
  rootRef: W,
2315
2309
  inputRef: J,
2316
2310
  open: _e(d)
2317
2311
  });
2318
2312
  }
2319
- function To(e, r) {
2313
+ function Co(e, r) {
2320
2314
  switch (r.type) {
2321
2315
  case "focus":
2322
2316
  return z(z({}, e), {}, {
@@ -2382,7 +2376,7 @@ const So = () => {
2382
2376
  )
2383
2377
  };
2384
2378
  }
2385
- }, [{ acceptedFiles: r, fileRejections: t }, n] = Lr(
2379
+ }, [{ acceptedFiles: r, fileRejections: t }, n] = Br(
2386
2380
  e,
2387
2381
  {
2388
2382
  acceptedFiles: [],
@@ -2396,7 +2390,7 @@ const So = () => {
2396
2390
  [n]
2397
2391
  );
2398
2392
  return { acceptedFiles: r, fileRejections: t, onFileUpload: a, removeFile: (i) => n({ type: "remove-accepted", payload: i }), removeRejectedFile: (i) => n({ type: "remove-rejected", payload: i }) };
2399
- }, Co = ({
2393
+ }, Oo = ({
2400
2394
  accept: e,
2401
2395
  error: r,
2402
2396
  files: t,
@@ -2407,14 +2401,14 @@ const So = () => {
2407
2401
  onFileUpload: i,
2408
2402
  rejectedFiles: f,
2409
2403
  removeFile: l,
2410
- removeRejectedFile: v
2404
+ removeRejectedFile: m
2411
2405
  }) => {
2412
- const { getRootProps: g } = it({
2406
+ const { getRootProps: g } = st({
2413
2407
  accept: e,
2414
2408
  maxFiles: o,
2415
2409
  maxSize: c,
2416
2410
  onDrop: i
2417
- }), h = ke();
2411
+ }), b = ke();
2418
2412
  return /* @__PURE__ */ U(
2419
2413
  "div",
2420
2414
  {
@@ -2422,14 +2416,14 @@ const So = () => {
2422
2416
  "is-error": !!r
2423
2417
  }),
2424
2418
  children: [
2425
- a && /* @__PURE__ */ s(At, { id: h, children: a }),
2419
+ a && /* @__PURE__ */ s(Pt, { id: b, children: a }),
2426
2420
  n && /* @__PURE__ */ s("p", { className: "p-form-help-text", children: n }),
2427
2421
  /* @__PURE__ */ U("div", { className: "p-form__control", children: [
2428
2422
  !o || t.length < o ? /* @__PURE__ */ s("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ s(
2429
2423
  "div",
2430
2424
  {
2431
2425
  ...g(),
2432
- "aria-labelledby": a ? h : void 0,
2426
+ "aria-labelledby": a ? b : void 0,
2433
2427
  className: "file-upload",
2434
2428
  "data-testid": "file-upload",
2435
2429
  children: /* @__PURE__ */ s("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
@@ -2440,48 +2434,48 @@ const So = () => {
2440
2434
  r
2441
2435
  ] }) : null,
2442
2436
  /* @__PURE__ */ U("div", { className: "file-upload__files-list", children: [
2443
- f && f.map((b) => /* @__PURE__ */ U("span", { className: "is-error", children: [
2437
+ f && f.map((h) => /* @__PURE__ */ U("span", { className: "is-error", children: [
2444
2438
  /* @__PURE__ */ U("div", { className: "file-upload__file is-rejected", children: [
2445
- b.file.name,
2439
+ h.file.name,
2446
2440
  /* @__PURE__ */ s(
2447
2441
  pe,
2448
2442
  {
2449
2443
  appearance: "base",
2450
2444
  className: "file-upload__file-remove-button",
2451
- onClick: () => v(b),
2445
+ onClick: () => m(h),
2452
2446
  type: "button",
2453
2447
  children: /* @__PURE__ */ s(Te, { name: "close", children: "Remove file" })
2454
2448
  }
2455
2449
  )
2456
2450
  ] }),
2457
- b.errors.map((T) => /* @__PURE__ */ s(
2451
+ h.errors.map((T) => /* @__PURE__ */ s(
2458
2452
  "p",
2459
2453
  {
2460
2454
  className: "p-form-validation__message",
2461
2455
  children: T.message
2462
2456
  },
2463
- `${b.file.name}-${T.code}`
2457
+ `${h.file.name}-${T.code}`
2464
2458
  ))
2465
- ] }, b.file.name)),
2466
- t && t.map((b) => /* @__PURE__ */ U("div", { className: "file-upload__file", children: [
2467
- b.name,
2468
- b.percentUploaded !== void 0 ? /* @__PURE__ */ s(Bt, { percentComplete: b.percentUploaded }) : /* @__PURE__ */ s(
2459
+ ] }, h.file.name)),
2460
+ t && t.map((h) => /* @__PURE__ */ U("div", { className: "file-upload__file", children: [
2461
+ h.name,
2462
+ h.percentUploaded !== void 0 ? /* @__PURE__ */ s(zt, { percentComplete: h.percentUploaded }) : /* @__PURE__ */ s(
2469
2463
  pe,
2470
2464
  {
2471
2465
  appearance: "base",
2472
2466
  className: "file-upload__file-remove-button",
2473
- onClick: () => l(b),
2467
+ onClick: () => l(h),
2474
2468
  type: "button",
2475
2469
  children: /* @__PURE__ */ s(Te, { name: "close", children: "Remove file" })
2476
2470
  }
2477
2471
  )
2478
- ] }, b.name))
2472
+ ] }, h.name))
2479
2473
  ] })
2480
2474
  ] })
2481
2475
  ]
2482
2476
  }
2483
2477
  );
2484
- }, Yo = ({
2478
+ }, qo = ({
2485
2479
  accept: e,
2486
2480
  error: r,
2487
2481
  help: t,
@@ -2494,10 +2488,10 @@ const So = () => {
2494
2488
  fileRejections: i,
2495
2489
  onFileUpload: f,
2496
2490
  removeFile: l,
2497
- removeRejectedFile: v
2491
+ removeRejectedFile: m
2498
2492
  } = So();
2499
2493
  return /* @__PURE__ */ s(
2500
- Co,
2494
+ Oo,
2501
2495
  {
2502
2496
  accept: e,
2503
2497
  error: r,
@@ -2509,11 +2503,10 @@ const So = () => {
2509
2503
  maxSize: o,
2510
2504
  onFileUpload: f,
2511
2505
  removeFile: l,
2512
- removeRejectedFile: v
2506
+ removeRejectedFile: m
2513
2507
  }
2514
2508
  );
2515
- };
2516
- const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo = (e) => (r, t) => {
2509
+ }, ct = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Do = (e) => (r, t) => {
2517
2510
  if (e) {
2518
2511
  const n = e.has(r.value), a = e.has(t.value);
2519
2512
  if (n && !a)
@@ -2522,13 +2515,13 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2522
2515
  return 1;
2523
2516
  }
2524
2517
  return 0;
2525
- }, Do = (e) => {
2518
+ }, Ao = (e) => {
2526
2519
  const r = /* @__PURE__ */ new Map();
2527
2520
  return e.forEach((t) => {
2528
2521
  const n = t.group || "Ungrouped", a = r.get(n) || [];
2529
2522
  a.push(t), r.set(n, a);
2530
2523
  }), Array.from(r, ([t, n]) => ({ group: t, items: n }));
2531
- }, Ao = ({
2524
+ }, Po = ({
2532
2525
  items: e,
2533
2526
  selectedItems: r,
2534
2527
  disabledItems: t,
@@ -2536,21 +2529,21 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2536
2529
  updateItems: a,
2537
2530
  isOpen: o,
2538
2531
  footer: c,
2539
- sortFn: i = st,
2540
- groupFn: f = Do,
2532
+ sortFn: i = ct,
2533
+ groupFn: f = Ao,
2541
2534
  ...l
2542
2535
  }) => {
2543
- const v = se(
2536
+ const m = ae(
2544
2537
  () => new Set(r.map((N) => N.value)),
2545
2538
  [r]
2546
- ), g = se(
2539
+ ), g = ae(
2547
2540
  () => new Set(t.map((N) => N.value)),
2548
2541
  [t]
2549
- ), [h, b] = fe(new Set(v));
2550
- he(() => {
2551
- o && b(new Set(v));
2542
+ ), [b, h] = fe(new Set(m));
2543
+ be(() => {
2544
+ o && h(new Set(m));
2552
2545
  }, [o]);
2553
- const T = se(() => e.some((N) => N.group), [e]), x = se(
2546
+ const T = ae(() => e.some((N) => N.group), [e]), x = ae(
2554
2547
  () => T ? f(e) : [{ group: "Ungrouped", items: e }],
2555
2548
  [e, f]
2556
2549
  ), B = (N) => {
@@ -2560,16 +2553,16 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2560
2553
  a(p);
2561
2554
  }
2562
2555
  };
2563
- return /* @__PURE__ */ s(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...l, children: [
2556
+ return /* @__PURE__ */ s(Gr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...l, children: [
2564
2557
  n || null,
2565
2558
  x.map(({ group: N, items: K }) => /* @__PURE__ */ U("div", { className: "multi-select__group", children: [
2566
2559
  T ? /* @__PURE__ */ s("h5", { className: "multi-select__dropdown-header", children: N }) : null,
2567
- /* @__PURE__ */ s("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: K.sort(i).sort(Oo(h)).map((A) => /* @__PURE__ */ s("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ s(
2568
- Pt,
2560
+ /* @__PURE__ */ s("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: K.sort(i).sort(Do(b)).map((A) => /* @__PURE__ */ s("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ s(
2561
+ Rt,
2569
2562
  {
2570
2563
  disabled: g.has(A.value),
2571
2564
  label: A.label,
2572
- checked: v.has(A.value),
2565
+ checked: m.has(A.value),
2573
2566
  value: A.value,
2574
2567
  onChange: B
2575
2568
  },
@@ -2578,7 +2571,7 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2578
2571
  ] }, N)),
2579
2572
  c ? /* @__PURE__ */ s("div", { className: "multi-select__footer", children: c }) : null
2580
2573
  ] }) });
2581
- }, qo = ({
2574
+ }, Uo = ({
2582
2575
  disabled: e,
2583
2576
  selectedItems: r = [],
2584
2577
  label: t,
@@ -2589,40 +2582,40 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2589
2582
  disabledItems: i = [],
2590
2583
  dropdownHeader: f,
2591
2584
  dropdownFooter: l,
2592
- variant: v = "search"
2585
+ variant: m = "search"
2593
2586
  }) => {
2594
- const g = Rt(() => {
2595
- b(!1), x("");
2587
+ const g = Ft(() => {
2588
+ h(!1), x("");
2596
2589
  });
2597
- Ft(() => {
2598
- b(!1), x("");
2590
+ It(() => {
2591
+ h(!1), x("");
2599
2592
  });
2600
- const [h, b] = fe(!1), [T, x] = fe("");
2601
- he(() => {
2602
- h || x("");
2603
- }, [h]);
2604
- const [B, N] = fe([]), K = r || B, A = ($) => {
2605
- const X = Array.from(new Set($));
2593
+ const [b, h] = fe(!1), [T, x] = fe("");
2594
+ be(() => {
2595
+ b || x("");
2596
+ }, [b]);
2597
+ const [B, N] = fe([]), K = r || B, A = (M) => {
2598
+ const X = Array.from(new Set(M));
2606
2599
  N(X), n && n(X);
2607
2600
  }, k = ke(), p = ke(), Q = K.filter(
2608
- ($) => c.some((X) => X.value === $.value)
2609
- ).sort(st).map(($) => $.label).join(", ");
2601
+ (M) => c.some((X) => X.value === M.value)
2602
+ ).sort(ct).map((M) => M.label).join(", ");
2610
2603
  return /* @__PURE__ */ s("div", { ref: g, children: /* @__PURE__ */ U("div", { className: "multi-select", children: [
2611
- v === "search" ? /* @__PURE__ */ s(
2612
- It,
2604
+ m === "search" ? /* @__PURE__ */ s(
2605
+ jt,
2613
2606
  {
2614
2607
  externallyControlled: !0,
2615
2608
  "aria-controls": k,
2616
- "aria-expanded": h,
2609
+ "aria-expanded": b,
2617
2610
  id: p,
2618
2611
  role: "combobox",
2619
2612
  "aria-label": t || a || "Search",
2620
2613
  disabled: e,
2621
2614
  autoComplete: "off",
2622
- onChange: ($) => {
2623
- x($), b(!0);
2615
+ onChange: (M) => {
2616
+ x(M), h(!0);
2624
2617
  },
2625
- onFocus: () => b(!0),
2618
+ onFocus: () => h(!0),
2626
2619
  placeholder: a ?? "Search",
2627
2620
  required: o,
2628
2621
  type: "text",
@@ -2636,21 +2629,21 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2636
2629
  type: "button",
2637
2630
  "aria-label": t || a || "Select items",
2638
2631
  "aria-controls": k,
2639
- "aria-expanded": h,
2632
+ "aria-expanded": b,
2640
2633
  className: "multi-select__select-button",
2641
2634
  onClick: () => {
2642
- b(($) => !$);
2635
+ h((M) => !M);
2643
2636
  },
2644
2637
  children: /* @__PURE__ */ s("span", { className: "multi-select__condensed-text", children: K.length > 0 ? Q : a ?? "Select items" })
2645
2638
  }
2646
2639
  ),
2647
2640
  /* @__PURE__ */ s(
2648
- Ao,
2641
+ Po,
2649
2642
  {
2650
2643
  id: k,
2651
- isOpen: h,
2644
+ isOpen: b,
2652
2645
  items: T.length > 0 ? c.filter(
2653
- ($) => $.label.toLowerCase().includes(T.toLowerCase())
2646
+ (M) => M.label.toLowerCase().includes(T.toLowerCase())
2654
2647
  ) : c,
2655
2648
  selectedItems: K,
2656
2649
  disabledItems: i,
@@ -2662,12 +2655,12 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2662
2655
  {
2663
2656
  appearance: "link",
2664
2657
  onClick: () => {
2665
- const $ = c.filter(
2658
+ const M = c.filter(
2666
2659
  (X) => !i.some(
2667
2660
  (ee) => ee.value === X.value
2668
2661
  )
2669
2662
  );
2670
- A([...K, ...$]);
2663
+ A([...K, ...M]);
2671
2664
  },
2672
2665
  type: "button",
2673
2666
  children: "Select all"
@@ -2678,12 +2671,12 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2678
2671
  {
2679
2672
  appearance: "link",
2680
2673
  onClick: () => {
2681
- const $ = K.filter(
2674
+ const M = K.filter(
2682
2675
  (X) => i.some(
2683
2676
  (ee) => ee.value === X.value
2684
2677
  )
2685
2678
  );
2686
- A($);
2679
+ A(M);
2687
2680
  },
2688
2681
  type: "button",
2689
2682
  children: "Clear"
@@ -2693,7 +2686,7 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2693
2686
  }
2694
2687
  )
2695
2688
  ] }) });
2696
- }, Po = {
2689
+ }, Ro = {
2697
2690
  // Mobile (portrait)
2698
2691
  xSmall: 460,
2699
2692
  // Mobile or tablet
@@ -2702,62 +2695,75 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Oo =
2702
2695
  large: 1036,
2703
2696
  // Large desktop
2704
2697
  xLarge: 1681
2705
- };
2706
- const ct = ({
2698
+ }, lt = Lr({ variant: "regular" }), ut = ({
2707
2699
  className: e,
2708
2700
  children: r,
2709
- ...t
2710
- }) => /* @__PURE__ */ s("table", { ...t, className: L("p-table-dynamic", e), children: r }), Ro = ({ columns: e }) => /* @__PURE__ */ s(de, { children: Array.from({ length: 10 }, (r, t) => /* @__PURE__ */ s("tr", { "aria-hidden": "true", children: e.map((n, a) => /* @__PURE__ */ s(
2701
+ variant: t,
2702
+ ...n
2703
+ }) => /* @__PURE__ */ s(lt.Provider, { value: { variant: t }, children: /* @__PURE__ */ s(
2704
+ "table",
2705
+ {
2706
+ ...n,
2707
+ className: L("p-table-dynamic", e, {
2708
+ "is-full-height": t === "full-height"
2709
+ }),
2710
+ children: r
2711
+ }
2712
+ ) }), Fo = ({ columns: e }) => /* @__PURE__ */ s(de, { children: Array.from({ length: 10 }, (r, t) => /* @__PURE__ */ s("tr", { "aria-hidden": "true", children: e.map((n, a) => /* @__PURE__ */ s(
2711
2713
  "td",
2712
2714
  {
2713
2715
  className: L(n.id, "u-text-overflow-clip"),
2714
- children: /* @__PURE__ */ s(zt, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
2716
+ children: /* @__PURE__ */ s(Wt, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
2715
2717
  },
2716
2718
  a
2717
- )) }, t)) }), Fo = ({
2719
+ )) }, t)) }), Io = ({
2718
2720
  className: e,
2719
2721
  table: r
2720
2722
  }) => {
2721
2723
  const t = r ? r.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
2722
2724
  return /* @__PURE__ */ U(de, { children: [
2723
2725
  /* @__PURE__ */ s("caption", { className: "u-visually-hidden", children: "Loading..." }),
2724
- /* @__PURE__ */ s(lt, { "aria-busy": "true", className: e, children: /* @__PURE__ */ s(Ro, { columns: t }) })
2726
+ /* @__PURE__ */ s(ft, { "aria-busy": "true", className: e, children: /* @__PURE__ */ s(Fo, { columns: t }) })
2725
2727
  ] });
2726
- }, lt = ({
2728
+ }, ft = ({
2727
2729
  className: e,
2728
2730
  children: r,
2729
- ...t
2731
+ style: t,
2732
+ ...n
2730
2733
  }) => {
2731
- const n = Ee(null), [a, o] = fe(null), c = Z(() => {
2732
- var i, f;
2733
- if (window.innerWidth > Po.small) {
2734
- const l = (f = (i = n.current) == null ? void 0 : i.getBoundingClientRect) == null ? void 0 : f.call(i).top;
2735
- l && o(l + 1);
2734
+ const { variant: a } = lr(lt), o = we(null), [c, i] = fe(null), f = Z(() => {
2735
+ var m, g;
2736
+ if (window.innerWidth > Ro.small) {
2737
+ const b = (g = (m = o.current) == null ? void 0 : m.getBoundingClientRect) == null ? void 0 : g.call(m).top;
2738
+ b && i(b + 1);
2736
2739
  } else
2737
- o(null);
2740
+ i(null);
2738
2741
  }, []);
2739
- return wt(() => {
2740
- c();
2741
- }, [c]), he(() => (window.addEventListener("resize", c), () => window.removeEventListener("resize", c)), [c]), /* @__PURE__ */ s(
2742
+ wt(() => {
2743
+ f();
2744
+ }, [f]), be(() => (window.addEventListener("resize", f), () => window.removeEventListener("resize", f)), [f]);
2745
+ const l = ae(() => a === "full-height" && c ? {
2746
+ height: `calc(100vh - ${c}px)`,
2747
+ minHeight: `calc(100vh - ${c}px)`,
2748
+ ...t
2749
+ } : t, [a, c, t]);
2750
+ return /* @__PURE__ */ s(
2742
2751
  "tbody",
2743
2752
  {
2744
2753
  className: e,
2745
- ref: n,
2746
- style: a ? {
2747
- height: `calc(100vh - ${a}px)`,
2748
- minHeight: `calc(100vh - ${a}px)`
2749
- } : void 0,
2750
- ...t,
2754
+ ref: o,
2755
+ style: l,
2756
+ ...n,
2751
2757
  children: r
2752
2758
  }
2753
2759
  );
2754
2760
  };
2755
- ct.Body = lt;
2756
- ct.Loading = Fo;
2757
- const ut = ({ children: e }) => /* @__PURE__ */ s("caption", { children: /* @__PURE__ */ s("div", { className: "p-strip", children: e }) }), Io = ({ children: e }) => /* @__PURE__ */ s("div", { className: "row", children: /* @__PURE__ */ s("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ s("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), jo = ({ children: e }) => /* @__PURE__ */ s("div", { className: "row", children: /* @__PURE__ */ s("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ s("p", { children: e }) }) });
2758
- ut.Title = Io;
2759
- ut.Description = jo;
2760
- const Uo = ({ value: e, unit: r }, {
2761
+ ut.Body = ft;
2762
+ ut.Loading = Io;
2763
+ const pt = ({ children: e }) => /* @__PURE__ */ s("caption", { children: /* @__PURE__ */ s("div", { className: "p-strip", children: e }) }), jo = ({ children: e }) => /* @__PURE__ */ s("div", { className: "row", children: /* @__PURE__ */ s("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ s("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), No = ({ children: e }) => /* @__PURE__ */ s("div", { className: "row", children: /* @__PURE__ */ s("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ s("p", { children: e }) }) });
2764
+ pt.Title = jo;
2765
+ pt.Description = No;
2766
+ const Ko = ({ value: e, unit: r }, {
2761
2767
  binary: t = !1,
2762
2768
  convertTo: n,
2763
2769
  decimals: a = 2,
@@ -2766,40 +2772,40 @@ const Uo = ({ value: e, unit: r }, {
2766
2772
  const c = e < 0, i = Math.abs(e);
2767
2773
  if (i === 0)
2768
2774
  return { value: 0, unit: n || "B" };
2769
- const f = t ? 1024 : 1e3, l = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], v = l.findIndex((x) => x === r) || 0, g = i * Math.pow(f, v), h = n ? l.findIndex((x) => x === n) : Math.floor(Math.log(g) / Math.log(f));
2770
- let b = g / Math.pow(f, h);
2771
- if (b % 1 !== 0) {
2775
+ const f = t ? 1024 : 1e3, l = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], m = l.findIndex((x) => x === r) || 0, g = i * Math.pow(f, m), b = n ? l.findIndex((x) => x === n) : Math.floor(Math.log(g) / Math.log(f));
2776
+ let h = g / Math.pow(f, b);
2777
+ if (h % 1 !== 0) {
2772
2778
  const x = Math.pow(10, a);
2773
- b = Math[o](b * x) / x;
2779
+ h = Math[o](h * x) / x;
2774
2780
  }
2775
2781
  return {
2776
- value: c ? -b : b,
2777
- unit: l[h]
2782
+ value: c ? -h : h,
2783
+ unit: l[b]
2778
2784
  };
2779
2785
  };
2780
2786
  export {
2781
2787
  Be as ContentSection,
2782
- ct as DynamicTable,
2783
- Lo as ExternalLink,
2784
- Co as FileUpload,
2785
- Yo as FileUploadContainer,
2786
- ur as FormSection,
2787
- Yr as InputGroup,
2788
- Kr as MainToolbar,
2789
- kt as Meter,
2790
- qo as MultiSelect,
2791
- Ao as MultiSelectDropdown,
2788
+ ut as DynamicTable,
2789
+ Bo as ExternalLink,
2790
+ Oo as FileUpload,
2791
+ qo as FileUploadContainer,
2792
+ fr as FormSection,
2793
+ qr as InputGroup,
2794
+ Hr as MainToolbar,
2795
+ Mt as Meter,
2796
+ Uo as MultiSelect,
2797
+ Po as MultiSelectDropdown,
2792
2798
  H as Navigation,
2793
- cn as NavigationBar,
2794
- Bo as NestedFormGroup,
2799
+ ln as NavigationBar,
2800
+ zo as NestedFormGroup,
2795
2801
  wn as Pagination,
2796
- zo as PaginationContainer,
2797
- zt as Placeholder,
2798
- Bt as ProgressIndicator,
2799
- Wo as Stepper,
2800
- ut as TableCaption,
2801
- Mo as defaultFilledColors,
2802
- Uo as formatBytes,
2803
- be as meterColor,
2802
+ Wo as PaginationContainer,
2803
+ Wt as Placeholder,
2804
+ zt as ProgressIndicator,
2805
+ Yo as Stepper,
2806
+ pt as TableCaption,
2807
+ Lo as defaultFilledColors,
2808
+ Ko as formatBytes,
2809
+ he as meterColor,
2804
2810
  xe as testIds
2805
2811
  };