@canonical/maas-react-components 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { jsxs as G, jsx as d, Fragment as be } from "react/jsx-runtime";
2
- import * as pe from "react";
3
- import _i, { useRef as ge, useState as fe, useEffect as ue, useCallback as U, cloneElement as Ri, createContext as $n, useId as et, useContext as Nt, useMemo as le, useReducer as Mn, forwardRef as Ei, useImperativeHandle as ki, Fragment as On, useLayoutEffect as Ht } from "react";
4
- import { useListener as Fi, Link as Pi, Spinner as qt, Tooltip as Gt, Button as _e, Icon as Re, Row as Ii, Col as Di, Input as Ai, Label as $i, CheckboxInput as Mi, useClickOutside as Oi, useOnEscapePressed as ji, SearchBox as jn, Select as Ti, ICONS as en } from "@canonical/react-components";
5
- function Bt(e) {
1
+ import { jsxs as G, jsx as u, Fragment as be } from "react/jsx-runtime";
2
+ import * as ue from "react";
3
+ import _i, { useRef as fe, useState as de, useEffect as ge, useCallback as U, cloneElement as Ri, createContext as $n, useId as et, useContext as Ht, useMemo as re, useReducer as Mn, forwardRef as ki, useImperativeHandle as Ei, Fragment as On, useLayoutEffect as qt } from "react";
4
+ import { useListener as Fi, Link as Pi, Spinner as Gt, Tooltip as Bt, Button as Re, Icon as Ce, Row as Ii, Col as Di, Input as Ai, Label as $i, CheckboxInput as Mi, useClickOutside as Oi, useOnEscapePressed as ji, SearchBox as jn, Select as Ti, ICONS as It } from "@canonical/react-components";
5
+ function Ut(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
8
  var ft = { exports: {} };
@@ -45,7 +45,7 @@ function zi() {
45
45
  }(ft)), ft.exports;
46
46
  }
47
47
  var Vi = zi();
48
- const L = /* @__PURE__ */ Bt(Vi), Ie = {
48
+ const L = /* @__PURE__ */ Ut(Vi), De = {
49
49
  caution: "#F99B11",
50
50
  light: "#F7F7F7",
51
51
  linkFaded: "#D3E4ED",
@@ -54,12 +54,12 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
54
54
  positiveFaded: "#B7CCB9",
55
55
  positiveMid: "#4DAB4D",
56
56
  positive: "#0E8420"
57
- }, Xr = [
58
- Ie.link,
59
- Ie.positive,
60
- Ie.negative,
61
- Ie.caution
62
- ], Li = Ie.linkFaded, Tn = Ie.caution, It = Ie.light, nn = 2, on = 1, an = (e, n) => {
57
+ }, Jr = [
58
+ De.link,
59
+ De.positive,
60
+ De.negative,
61
+ De.caution
62
+ ], Li = De.linkFaded, Tn = De.caution, Dt = De.light, nn = 2, on = 1, an = (e, n) => {
63
63
  var o, a;
64
64
  const t = ((a = (o = e == null ? void 0 : e.current) == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : a.width) || 0;
65
65
  return t > n * nn ? t / n : nn;
@@ -79,14 +79,14 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
79
79
  size: a = "regular",
80
80
  ...l
81
81
  }) => {
82
- const r = ge(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, p = t.map((m) => m.value / c * 100), [f, g] = fe(0);
83
- ue(() => {
82
+ const r = fe(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = de(0);
83
+ ge(() => {
84
84
  g(o === "segmented" ? an(r, c) : 0);
85
85
  }, [c, o]);
86
- const u = U(() => {
86
+ const p = U(() => {
87
87
  g(an(r, c));
88
88
  }, [r, c, g]);
89
- return Fi(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ G(
89
+ return Fi(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ G(
90
90
  "div",
91
91
  {
92
92
  className: L("p-meter", e, {
@@ -96,22 +96,22 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
96
96
  "data-testid": Oe.container,
97
97
  ref: r,
98
98
  children: [
99
- /* @__PURE__ */ d(Hi, { children: /* @__PURE__ */ d(
99
+ /* @__PURE__ */ u(Hi, { children: /* @__PURE__ */ u(
100
100
  qi,
101
101
  {
102
102
  data: t,
103
- datumWidths: p,
103
+ datumWidths: d,
104
104
  maximum: c,
105
105
  overColor: Tn,
106
106
  segmentWidth: f,
107
- separatorColor: It
107
+ separatorColor: Dt
108
108
  }
109
109
  ) }),
110
110
  n
111
111
  ]
112
112
  }
113
113
  );
114
- }, Hi = ({ children: e }) => /* @__PURE__ */ d(
114
+ }, Hi = ({ children: e }) => /* @__PURE__ */ u(
115
115
  "div",
116
116
  {
117
117
  className: "p-meter__bar",
@@ -128,7 +128,7 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
128
128
  const o = () => (e == null ? void 0 : e.reduce((r, s) => r + s.value, 0)) > t, a = (r, s) => ({
129
129
  backgroundColor: r.color,
130
130
  left: `${n == null ? void 0 : n.reduce(
131
- (c, p, f) => s > f ? c + p : c,
131
+ (c, d, f) => s > f ? c + d : c,
132
132
  0
133
133
  )}%`,
134
134
  width: `${n[s]}%`
@@ -137,19 +137,19 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
137
137
  to right,
138
138
  transparent 0,
139
139
  transparent ${i - on}px,
140
- ${It} ${i - on}px,
141
- ${It} ${i}px
140
+ ${Dt} ${i - on}px,
141
+ ${Dt} ${i}px
142
142
  )`
143
143
  });
144
144
  return /* @__PURE__ */ G(be, { children: [
145
- o() ? /* @__PURE__ */ d(
145
+ o() ? /* @__PURE__ */ u(
146
146
  "div",
147
147
  {
148
148
  className: "p-meter__filled",
149
149
  "data-testid": Oe.meteroverflow,
150
150
  style: { backgroundColor: Tn, width: "100%" }
151
151
  }
152
- ) : e == null ? void 0 : e.map((r, s) => /* @__PURE__ */ d(
152
+ ) : e == null ? void 0 : e.map((r, s) => /* @__PURE__ */ u(
153
153
  "div",
154
154
  {
155
155
  className: "p-meter__filled",
@@ -158,7 +158,7 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
158
158
  },
159
159
  `meter-${s}`
160
160
  )),
161
- i > 0 && /* @__PURE__ */ d(
161
+ i > 0 && /* @__PURE__ */ u(
162
162
  "div",
163
163
  {
164
164
  className: "p-meter__separators",
@@ -170,7 +170,7 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
170
170
  }, Gi = ({
171
171
  className: e,
172
172
  children: n
173
- }) => /* @__PURE__ */ d(
173
+ }) => /* @__PURE__ */ u(
174
174
  "div",
175
175
  {
176
176
  className: L("p-meter__label", e),
@@ -179,12 +179,12 @@ const L = /* @__PURE__ */ Bt(Vi), Ie = {
179
179
  }
180
180
  );
181
181
  Ni.Label = Gi;
182
- const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Pi, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Bi = ({
182
+ const Zr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(Pi, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Bi = ({
183
183
  percentComplete: e
184
184
  }) => /* @__PURE__ */ G("small", { className: "progress-indicator", children: [
185
185
  e,
186
186
  "% ",
187
- /* @__PURE__ */ d(qt, { className: "progress-indicator__spinner" })
187
+ /* @__PURE__ */ u(Gt, { className: "progress-indicator__spinner" })
188
188
  ] }), zn = ({
189
189
  className: e,
190
190
  width: n,
@@ -196,36 +196,36 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Pi, { ...t, href:
196
196
  style: r,
197
197
  ...s
198
198
  }) => {
199
- if (ue(() => {
199
+ if (ge(() => {
200
200
  i !== void 0 && console.warn(
201
201
  "[Placeholder] The `isPending` prop is deprecated and will be removed in a future major version. Control skeleton visibility with conditional rendering at the call-site instead."
202
202
  );
203
- }, [i]), ue(() => {
203
+ }, [i]), ge(() => {
204
204
  o !== void 0 && console.warn(
205
205
  "[Placeholder] The `text` prop is deprecated and will be removed in a future major version. Use the `width` prop to set the skeleton width."
206
206
  );
207
- }, [o]), ue(() => {
207
+ }, [o]), ge(() => {
208
208
  a !== void 0 && console.warn(
209
209
  "[Placeholder] Passing `children` to Placeholder is deprecated and will be removed in a future major version. Render children outside the Placeholder and control visibility at the call-site."
210
210
  );
211
211
  }, [a]), l === "text") {
212
212
  if (!i)
213
- return /* @__PURE__ */ d(be, { children: a });
214
- const p = Math.floor(Math.random() * 750), f = n ?? "fit-content";
215
- return /* @__PURE__ */ d(
213
+ return /* @__PURE__ */ u(be, { children: a });
214
+ const d = Math.floor(Math.random() * 750), f = n ?? "fit-content";
215
+ return /* @__PURE__ */ u(
216
216
  "div",
217
217
  {
218
218
  "aria-label": "loading",
219
219
  className: L("p-placeholder", e),
220
220
  role: "progressbar",
221
- style: { animationDelay: `${p}ms`, width: f, height: t, ...r },
221
+ style: { animationDelay: `${d}ms`, width: f, height: t, ...r },
222
222
  ...s,
223
- children: /* @__PURE__ */ d("span", { "aria-hidden": "true", className: "p-placeholder__sizer", children: o || a || "Loading" })
223
+ children: /* @__PURE__ */ u("span", { "aria-hidden": "true", className: "p-placeholder__sizer", children: o || a || "Loading" })
224
224
  }
225
225
  );
226
226
  }
227
227
  const c = o && !n ? "fit-content" : n;
228
- return /* @__PURE__ */ d(
228
+ return /* @__PURE__ */ u(
229
229
  "div",
230
230
  {
231
231
  "aria-label": "loading",
@@ -235,24 +235,24 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Pi, { ...t, href:
235
235
  ...s
236
236
  }
237
237
  );
238
- }, Ui = ({ children: e }) => /* @__PURE__ */ d(be, { children: e }), Ki = ({
238
+ }, Ui = ({ children: e }) => /* @__PURE__ */ u(be, { children: e }), Ki = ({
239
239
  isCollapsed: e,
240
240
  setIsCollapsed: n,
241
241
  className: t
242
- }) => /* @__PURE__ */ d(
243
- Gt,
242
+ }) => /* @__PURE__ */ u(
243
+ Bt,
244
244
  {
245
245
  className: "p-side-navigation__tooltip-wrapper",
246
246
  message: /* @__PURE__ */ G(be, { children: [
247
247
  e ? "expand" : "collapse",
248
248
  "( ",
249
- /* @__PURE__ */ d("code", { children: "[" }),
249
+ /* @__PURE__ */ u("code", { children: "[" }),
250
250
  " )"
251
251
  ] }),
252
252
  position: "right",
253
253
  tooltipClassName: "p-side-navigation__tooltip",
254
- children: /* @__PURE__ */ d(
255
- _e,
254
+ children: /* @__PURE__ */ u(
255
+ Re,
256
256
  {
257
257
  appearance: "base",
258
258
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
@@ -263,25 +263,25 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Pi, { ...t, href:
263
263
  onClick: (i) => {
264
264
  n(!e), i.stopPropagation(), i.currentTarget.blur();
265
265
  },
266
- children: /* @__PURE__ */ d(Re, { light: !0, name: "sidebar-toggle" })
266
+ children: /* @__PURE__ */ u(Ce, { light: !0, name: "sidebar-toggle" })
267
267
  }
268
268
  )
269
269
  }
270
- ), Wi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__content", children: /* @__PURE__ */ d("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__controls u-no-margin--top", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ d("div", { className: "p-panel is-dark", children: e }) }), Qi = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__footer", children: e }), Ji = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-panel__header", children: e }), Zi = ({ light: e = !0, name: n }) => /* @__PURE__ */ d(Re, { className: "p-side-navigation__icon", light: e, name: n }), eo = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ d("li", { className: L("p-side-navigation__item", n, { "has-active-child": t }), children: e }), to = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ d("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), no = ({
270
+ ), Wi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Ji = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Zi = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(Ce, { className: "p-side-navigation__icon", light: e, name: n }), eo = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: L("p-side-navigation__item", n, { "has-active-child": t }), children: e }), to = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), no = ({
271
271
  as: e,
272
272
  ...n
273
- }) => /* @__PURE__ */ d(
273
+ }) => /* @__PURE__ */ u(
274
274
  e || "a",
275
275
  {
276
276
  className: L("p-side-navigation__link", n.className),
277
277
  ...n
278
278
  }
279
- ), io = ({ children: e, className: n }) => /* @__PURE__ */ d("ul", { className: L("p-side-navigation__list", n), children: e }), oo = ({
279
+ ), io = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: L("p-side-navigation__list", n), children: e }), oo = ({
280
280
  as: e,
281
281
  children: n,
282
282
  className: t,
283
283
  ...i
284
- }) => /* @__PURE__ */ d(e || "a", { className: L("p-panel__logo", t), ...i, children: /* @__PURE__ */ d("div", { className: "p-navigation__tagged-logo", children: n }) }), ao = ({ children: e }) => Ri(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ro = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ d(
284
+ }) => /* @__PURE__ */ u(e || "a", { className: L("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), ao = ({ children: e }) => Ri(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ro = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
285
285
  "div",
286
286
  {
287
287
  className: L("p-panel__logo-name is-fading-when-collapsed", {
@@ -289,12 +289,12 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Pi, { ...t, href:
289
289
  }),
290
290
  children: e
291
291
  }
292
- ), lo = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-navigation__logo-tag", children: e }), so = ({ children: e }) => /* @__PURE__ */ d("span", { className: "p-panel__logo-text", children: e }), co = ({
292
+ ), lo = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-navigation__logo-tag", children: e }), so = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-panel__logo-text", children: e }), co = ({
293
293
  children: e,
294
294
  className: n,
295
295
  onClick: t
296
- }) => /* @__PURE__ */ d(
297
- _e,
296
+ }) => /* @__PURE__ */ u(
297
+ Re,
298
298
  {
299
299
  appearance: "base",
300
300
  className: L(
@@ -304,31 +304,31 @@ const Qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ d(Pi, { ...t, href:
304
304
  onClick: (i) => {
305
305
  t && t(i), i.stopPropagation(), i.currentTarget.blur();
306
306
  },
307
- children: /* @__PURE__ */ d(be, { children: e })
307
+ children: /* @__PURE__ */ u(be, { children: e })
308
308
  }
309
- ), po = ({ children: e }) => /* @__PURE__ */ d("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ d("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), uo = ({ children: e, className: n }) => /* @__PURE__ */ d("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ d("div", { className: L("p-panel is-dark", n), children: e }) });
310
- re.Header = Ji;
311
- re.Banner = Ui;
312
- re.Drawer = Xi;
313
- re.Controls = Yi;
314
- re.CollapseToggle = Ki;
315
- re.Content = Wi;
316
- re.Footer = Qi;
317
- re.List = io;
318
- re.Item = eo;
319
- re.Link = no;
320
- re.Text = po;
321
- re.Icon = Zi;
322
- re.Label = to;
323
- re.Logo = oo;
324
- re.LogoTag = lo;
325
- re.LogoIcon = ao;
326
- re.LogoName = ro;
327
- re.LogoText = so;
309
+ ), po = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), uo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: L("p-panel is-dark", n), children: e }) });
310
+ ae.Header = Ji;
311
+ ae.Banner = Ui;
312
+ ae.Drawer = Xi;
313
+ ae.Controls = Yi;
314
+ ae.CollapseToggle = Ki;
315
+ ae.Content = Wi;
316
+ ae.Footer = Qi;
317
+ ae.List = io;
318
+ ae.Item = eo;
319
+ ae.Link = no;
320
+ ae.Text = po;
321
+ ae.Icon = Zi;
322
+ ae.Label = to;
323
+ ae.Logo = oo;
324
+ ae.LogoTag = lo;
325
+ ae.LogoIcon = ao;
326
+ ae.LogoName = ro;
327
+ ae.LogoText = so;
328
328
  uo.MenuButton = co;
329
- const Ut = $n(null), Vn = ({ children: e }) => {
329
+ const Kt = $n(null), Vn = ({ children: e }) => {
330
330
  const n = et();
331
- return /* @__PURE__ */ d(Ut.Provider, { value: n, children: /* @__PURE__ */ d(
331
+ return /* @__PURE__ */ u(Kt.Provider, { value: n, children: /* @__PURE__ */ u(
332
332
  "div",
333
333
  {
334
334
  role: "group",
@@ -339,26 +339,26 @@ const Ut = $n(null), Vn = ({ children: e }) => {
339
339
  }
340
340
  ) });
341
341
  }, go = ({ children: e }) => {
342
- const n = Nt(Ut);
343
- return /* @__PURE__ */ d("label", { id: `${n}_label`, children: e });
342
+ const n = Ht(Kt);
343
+ return /* @__PURE__ */ u("label", { id: `${n}_label`, children: e });
344
344
  }, fo = ({ children: e }) => {
345
- const n = Nt(Ut);
346
- return /* @__PURE__ */ d("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
345
+ const n = Ht(Kt);
346
+ return /* @__PURE__ */ u("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
347
347
  };
348
348
  Vn.Label = go;
349
349
  Vn.Description = fo;
350
- const Kt = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-form-section", children: e }), mo = ({ children: e }) => /* @__PURE__ */ d("h5", { className: "p-form-section__title u-no-padding--top", children: e }), vo = ({ children: e }) => /* @__PURE__ */ d("p", { className: "p-form-help-text", children: e }), xo = ({ children: e }) => /* @__PURE__ */ d("div", { className: "p-form-section__content", children: e });
351
- Kt.Title = mo;
352
- Kt.Description = vo;
353
- Kt.Content = xo;
350
+ const Wt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section", children: e }), mo = ({ children: e }) => /* @__PURE__ */ u("h5", { className: "p-form-section__title u-no-padding--top", children: e }), vo = ({ children: e }) => /* @__PURE__ */ u("p", { className: "p-form-help-text", children: e }), xo = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section__content", children: e });
351
+ Wt.Title = mo;
352
+ Wt.Description = vo;
353
+ Wt.Content = xo;
354
354
  function ho(e) {
355
- const [n, t] = pe.useState(null), i = pe.useRef(null), o = pe.useCallback(() => {
355
+ const [n, t] = ue.useState(null), i = ue.useRef(null), o = ue.useCallback(() => {
356
356
  if (e.current) {
357
357
  const a = e.current.getBoundingClientRect();
358
358
  t(a);
359
359
  }
360
360
  }, [e]);
361
- return pe.useEffect(() => {
361
+ return ue.useEffect(() => {
362
362
  const a = new ResizeObserver(() => {
363
363
  i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(o);
364
364
  });
@@ -367,17 +367,17 @@ function ho(e) {
367
367
  };
368
368
  }, [e, o]), n;
369
369
  }
370
- const Ln = pe.createContext(null), Nn = pe.createContext([!1, () => {
370
+ const Ln = ue.createContext(null), Nn = ue.createContext([!1, () => {
371
371
  }]), Hn = ({ children: e }) => {
372
- const n = pe.useRef(null), t = ho(n), [i, o] = pe.useState(!1);
373
- return /* @__PURE__ */ d(
372
+ const n = ue.useRef(null), t = ho(n), [i, o] = ue.useState(!1);
373
+ return /* @__PURE__ */ u(
374
374
  "header",
375
375
  {
376
376
  className: L("main-toolbar", {
377
377
  "main-toolbar--stacked": i
378
378
  }),
379
379
  ref: n,
380
- children: /* @__PURE__ */ d(Ln.Provider, { value: t, children: /* @__PURE__ */ d(Nn.Provider, { value: [i, o], children: e }) })
380
+ children: /* @__PURE__ */ u(Ln.Provider, { value: t, children: /* @__PURE__ */ u(Nn.Provider, { value: [i, o], children: e }) })
381
381
  }
382
382
  );
383
383
  }, wo = ({
@@ -385,7 +385,7 @@ const Ln = pe.createContext(null), Nn = pe.createContext([!1, () => {
385
385
  children: n,
386
386
  className: t,
387
387
  ...i
388
- }) => /* @__PURE__ */ d(
388
+ }) => /* @__PURE__ */ u(
389
389
  e || "h1",
390
390
  {
391
391
  className: L("main-toolbar__title p-heading--4", t),
@@ -394,11 +394,11 @@ const Ln = pe.createContext(null), Nn = pe.createContext([!1, () => {
394
394
  children: n
395
395
  }
396
396
  ), yo = ({ children: e }) => {
397
- const n = pe.useContext(Ln), [t, i] = pe.useContext(Nn), o = pe.useRef(null);
398
- return pe.useEffect(() => {
397
+ const n = ue.useContext(Ln), [t, i] = ue.useContext(Nn), o = ue.useRef(null);
398
+ return ue.useEffect(() => {
399
399
  !o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
400
400
  }, [i, n, o]), /* @__PURE__ */ G(be, { children: [
401
- /* @__PURE__ */ d(
401
+ /* @__PURE__ */ u(
402
402
  "div",
403
403
  {
404
404
  "aria-hidden": "true",
@@ -408,7 +408,7 @@ const Ln = pe.createContext(null), Nn = pe.createContext([!1, () => {
408
408
  children: e
409
409
  }
410
410
  ),
411
- /* @__PURE__ */ d(
411
+ /* @__PURE__ */ u(
412
412
  "div",
413
413
  {
414
414
  className: L("main-toolbar__controls", {
@@ -429,15 +429,15 @@ const ot = ({
429
429
  ...o
430
430
  }) => {
431
431
  const a = t || "section", l = L("content-section", n);
432
- return /* @__PURE__ */ d(a, { ...o, className: l, children: /* @__PURE__ */ d(Ii, { children: /* @__PURE__ */ d(Di, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ d(be, { children: e }) }) }) });
433
- }, bo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ d(
432
+ return /* @__PURE__ */ u(a, { ...o, className: l, children: /* @__PURE__ */ u(Ii, { children: /* @__PURE__ */ u(Di, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ u(be, { children: e }) }) }) });
433
+ }, bo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ u(
434
434
  t || "h1",
435
435
  {
436
436
  ...i,
437
437
  className: L("content-section__title p-heading--4", n),
438
438
  children: e
439
439
  }
440
- ), So = ({ children: e, className: n }) => /* @__PURE__ */ d("header", { className: L("content-section__header", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ d("div", { className: L("content-section__body", n), children: e }), _o = ({ children: e, className: n }) => /* @__PURE__ */ d("footer", { className: L("content-section__footer", n), children: e });
440
+ ), So = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: L("content-section__header", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: L("content-section__body", n), children: e }), _o = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: L("content-section__footer", n), children: e });
441
441
  ot.Title = bo;
442
442
  ot.Header = So;
443
443
  ot.Content = Co;
@@ -446,7 +446,7 @@ const qn = ({
446
446
  children: e,
447
447
  className: n,
448
448
  isVisible: t
449
- }) => /* @__PURE__ */ d(
449
+ }) => /* @__PURE__ */ u(
450
450
  "div",
451
451
  {
452
452
  className: L("fade-in--down", n),
@@ -454,10 +454,10 @@ const qn = ({
454
454
  style: { visibility: t ? "visible" : "hidden" },
455
455
  children: e
456
456
  }
457
- ), Jr = ({
457
+ ), el = ({
458
458
  children: e,
459
459
  ...n
460
- }) => /* @__PURE__ */ d(qn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ d("div", { className: "p-form__nested-group", ...n, children: e }) }), Ro = ({
460
+ }) => /* @__PURE__ */ u(qn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...n, children: e }) }), Ro = ({
461
461
  className: e,
462
462
  currentPage: n,
463
463
  error: t,
@@ -468,26 +468,26 @@ const qn = ({
468
468
  onPreviousClick: r,
469
469
  totalPages: s,
470
470
  ...c
471
- }) => /* @__PURE__ */ d(
471
+ }) => /* @__PURE__ */ u(
472
472
  "nav",
473
473
  {
474
474
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
475
475
  className: L("p-pagination", e),
476
476
  children: /* @__PURE__ */ G("span", { className: "p-pagination--items", children: [
477
- /* @__PURE__ */ d(
478
- _e,
477
+ /* @__PURE__ */ u(
478
+ Re,
479
479
  {
480
480
  "aria-label": "Previous page",
481
481
  className: "p-pagination__link--previous",
482
482
  disabled: n === 1 || i,
483
483
  onClick: r,
484
484
  type: "button",
485
- children: /* @__PURE__ */ d(Re, { name: "chevron-left" })
485
+ children: /* @__PURE__ */ u(Ce, { name: "chevron-left" })
486
486
  }
487
487
  ),
488
- /* @__PURE__ */ d("strong", { children: "Page " }),
488
+ /* @__PURE__ */ u("strong", { children: "Page " }),
489
489
  " ",
490
- /* @__PURE__ */ d(
490
+ /* @__PURE__ */ u(
491
491
  Ai,
492
492
  {
493
493
  "aria-label": "page number",
@@ -508,27 +508,27 @@ const qn = ({
508
508
  " of ",
509
509
  s
510
510
  ] }),
511
- /* @__PURE__ */ d(
512
- _e,
511
+ /* @__PURE__ */ u(
512
+ Re,
513
513
  {
514
514
  "aria-label": "Next page",
515
515
  className: "p-pagination__link--next",
516
516
  disabled: n === s || i,
517
517
  onClick: l,
518
518
  type: "button",
519
- children: /* @__PURE__ */ d(Re, { name: "chevron-right" })
519
+ children: /* @__PURE__ */ u(Ce, { name: "chevron-right" })
520
520
  }
521
521
  )
522
522
  ] })
523
523
  }
524
- ), Eo = ({
524
+ ), ko = ({
525
525
  currentPage: e,
526
526
  disabled: n,
527
527
  paginate: t,
528
528
  totalPages: i
529
529
  }) => {
530
- const [o, a] = fe(e), [l, r] = fe("");
531
- return /* @__PURE__ */ d(
530
+ const [o, a] = de(e), [l, r] = de("");
531
+ return /* @__PURE__ */ u(
532
532
  Ro,
533
533
  {
534
534
  currentPage: o,
@@ -538,8 +538,8 @@ const qn = ({
538
538
  a(e), r("");
539
539
  },
540
540
  onInputChange: (g) => {
541
- const { value: u, valueAsNumber: m } = g.target;
542
- u ? (a(m), m > i || m < 1 ? r(`${m} is not a valid page number.`) : (r(""), t(m))) : r("Enter a page number.");
541
+ const { value: p, valueAsNumber: m } = g.target;
542
+ p ? (a(m), m > i || m < 1 ? r(`${m} is not a valid page number.`) : (r(""), t(m))) : r("Enter a page number.");
543
543
  },
544
544
  onNextClick: () => {
545
545
  a((g) => Number(g) + 1), t(Number(e) + 1);
@@ -550,9 +550,9 @@ const qn = ({
550
550
  totalPages: i
551
551
  }
552
552
  );
553
- }, Zr = ({ activeStep: e, items: n }) => /* @__PURE__ */ d("ol", { className: "stepper", children: n.map((t, i) => {
553
+ }, tl = ({ activeStep: e, items: n }) => /* @__PURE__ */ u("ol", { className: "stepper", children: n.map((t, i) => {
554
554
  const o = i === e, a = i < e;
555
- return /* @__PURE__ */ d("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ d(
555
+ return /* @__PURE__ */ u("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ u(
556
556
  "p",
557
557
  {
558
558
  "aria-label": a ? `${t} (completed)` : t,
@@ -564,7 +564,7 @@ const qn = ({
564
564
  }
565
565
  ) }, i);
566
566
  }) });
567
- var Ue = { exports: {} }, Ke = { exports: {} }, W = {};
567
+ var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
568
568
  /** @license React v16.13.1
569
569
  * react-is.production.min.js
570
570
  *
@@ -574,10 +574,10 @@ var Ue = { exports: {} }, Ke = { exports: {} }, W = {};
574
574
  * LICENSE file in the root directory of this source tree.
575
575
  */
576
576
  var rn;
577
- function ko() {
578
- if (rn) return W;
577
+ function Eo() {
578
+ if (rn) return K;
579
579
  rn = 1;
580
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
580
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
581
581
  function w(h) {
582
582
  if (typeof h == "object" && h !== null) {
583
583
  var P = h.$$typeof;
@@ -594,9 +594,9 @@ function ko() {
594
594
  default:
595
595
  switch (h = h && h.$$typeof, h) {
596
596
  case r:
597
- case p:
597
+ case d:
598
598
  case m:
599
- case u:
599
+ case p:
600
600
  case l:
601
601
  return h;
602
602
  default:
@@ -608,38 +608,38 @@ function ko() {
608
608
  }
609
609
  }
610
610
  }
611
- function F(h) {
611
+ function E(h) {
612
612
  return w(h) === c;
613
613
  }
614
- return W.AsyncMode = s, W.ConcurrentMode = c, W.ContextConsumer = r, W.ContextProvider = l, W.Element = n, W.ForwardRef = p, W.Fragment = i, W.Lazy = m, W.Memo = u, W.Portal = t, W.Profiler = a, W.StrictMode = o, W.Suspense = f, W.isAsyncMode = function(h) {
615
- return F(h) || w(h) === s;
616
- }, W.isConcurrentMode = F, W.isContextConsumer = function(h) {
614
+ return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = r, K.ContextProvider = l, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = p, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(h) {
615
+ return E(h) || w(h) === s;
616
+ }, K.isConcurrentMode = E, K.isContextConsumer = function(h) {
617
617
  return w(h) === r;
618
- }, W.isContextProvider = function(h) {
618
+ }, K.isContextProvider = function(h) {
619
619
  return w(h) === l;
620
- }, W.isElement = function(h) {
620
+ }, K.isElement = function(h) {
621
621
  return typeof h == "object" && h !== null && h.$$typeof === n;
622
- }, W.isForwardRef = function(h) {
623
- return w(h) === p;
624
- }, W.isFragment = function(h) {
622
+ }, K.isForwardRef = function(h) {
623
+ return w(h) === d;
624
+ }, K.isFragment = function(h) {
625
625
  return w(h) === i;
626
- }, W.isLazy = function(h) {
626
+ }, K.isLazy = function(h) {
627
627
  return w(h) === m;
628
- }, W.isMemo = function(h) {
629
- return w(h) === u;
630
- }, W.isPortal = function(h) {
628
+ }, K.isMemo = function(h) {
629
+ return w(h) === p;
630
+ }, K.isPortal = function(h) {
631
631
  return w(h) === t;
632
- }, W.isProfiler = function(h) {
632
+ }, K.isProfiler = function(h) {
633
633
  return w(h) === a;
634
- }, W.isStrictMode = function(h) {
634
+ }, K.isStrictMode = function(h) {
635
635
  return w(h) === o;
636
- }, W.isSuspense = function(h) {
636
+ }, K.isSuspense = function(h) {
637
637
  return w(h) === f;
638
- }, W.isValidElementType = function(h) {
639
- return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === f || h === g || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === u || h.$$typeof === l || h.$$typeof === r || h.$$typeof === p || h.$$typeof === b || h.$$typeof === x || h.$$typeof === E || h.$$typeof === v);
640
- }, W.typeOf = w, W;
638
+ }, K.isValidElementType = function(h) {
639
+ return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === f || h === g || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === p || h.$$typeof === l || h.$$typeof === r || h.$$typeof === d || h.$$typeof === S || h.$$typeof === x || h.$$typeof === b || h.$$typeof === v);
640
+ }, K.typeOf = w, K;
641
641
  }
642
- var Y = {};
642
+ var W = {};
643
643
  /** @license React v16.13.1
644
644
  * react-is.development.js
645
645
  *
@@ -651,32 +651,32 @@ var Y = {};
651
651
  var ln;
652
652
  function Fo() {
653
653
  return ln || (ln = 1, process.env.NODE_ENV !== "production" && function() {
654
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
655
- function w(S) {
656
- return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
657
- S === i || S === c || S === a || S === o || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === u || S.$$typeof === l || S.$$typeof === r || S.$$typeof === p || S.$$typeof === b || S.$$typeof === x || S.$$typeof === E || S.$$typeof === v);
654
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, S = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
655
+ function w(C) {
656
+ return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
657
+ C === i || C === c || C === a || C === o || C === f || C === g || typeof C == "object" && C !== null && (C.$$typeof === m || C.$$typeof === p || C.$$typeof === l || C.$$typeof === r || C.$$typeof === d || C.$$typeof === S || C.$$typeof === x || C.$$typeof === b || C.$$typeof === v);
658
658
  }
659
- function F(S) {
660
- if (typeof S == "object" && S !== null) {
661
- var me = S.$$typeof;
659
+ function E(C) {
660
+ if (typeof C == "object" && C !== null) {
661
+ var me = C.$$typeof;
662
662
  switch (me) {
663
663
  case n:
664
- var Fe = S.type;
665
- switch (Fe) {
664
+ var Pe = C.type;
665
+ switch (Pe) {
666
666
  case s:
667
667
  case c:
668
668
  case i:
669
669
  case a:
670
670
  case o:
671
671
  case f:
672
- return Fe;
672
+ return Pe;
673
673
  default:
674
- var Te = Fe && Fe.$$typeof;
674
+ var Te = Pe && Pe.$$typeof;
675
675
  switch (Te) {
676
676
  case r:
677
- case p:
677
+ case d:
678
678
  case m:
679
- case u:
679
+ case p:
680
680
  case l:
681
681
  return Te;
682
682
  default:
@@ -688,52 +688,52 @@ function Fo() {
688
688
  }
689
689
  }
690
690
  }
691
- var h = s, P = c, z = r, X = l, ee = n, ce = p, de = i, he = m, k = u, _ = t, q = a, K = o, J = f, ie = !1;
692
- function te(S) {
693
- return ie || (ie = !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.")), y(S) || F(S) === s;
691
+ var h = s, P = c, N = r, Y = l, Z = n, ce = d, pe = i, he = m, F = p, R = t, B = a, Q = o, ee = f, le = !1;
692
+ function ne(C) {
693
+ return le || (le = !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.")), y(C) || E(C) === s;
694
694
  }
695
- function y(S) {
696
- return F(S) === c;
695
+ function y(C) {
696
+ return E(C) === c;
697
697
  }
698
- function R(S) {
699
- return F(S) === r;
698
+ function k(C) {
699
+ return E(C) === r;
700
700
  }
701
- function M(S) {
702
- return F(S) === l;
701
+ function j(C) {
702
+ return E(C) === l;
703
703
  }
704
- function j(S) {
705
- return typeof S == "object" && S !== null && S.$$typeof === n;
704
+ function O(C) {
705
+ return typeof C == "object" && C !== null && C.$$typeof === n;
706
706
  }
707
- function I(S) {
708
- return F(S) === p;
707
+ function I(C) {
708
+ return E(C) === d;
709
709
  }
710
- function N(S) {
711
- return F(S) === i;
710
+ function z(C) {
711
+ return E(C) === i;
712
712
  }
713
- function O(S) {
714
- return F(S) === m;
713
+ function M(C) {
714
+ return E(C) === m;
715
715
  }
716
- function T(S) {
717
- return F(S) === u;
716
+ function T(C) {
717
+ return E(C) === p;
718
718
  }
719
- function H(S) {
720
- return F(S) === t;
719
+ function H(C) {
720
+ return E(C) === t;
721
721
  }
722
- function B(S) {
723
- return F(S) === a;
722
+ function q(C) {
723
+ return E(C) === a;
724
724
  }
725
- function V(S) {
726
- return F(S) === o;
725
+ function V(C) {
726
+ return E(C) === o;
727
727
  }
728
- function oe(S) {
729
- return F(S) === f;
728
+ function te(C) {
729
+ return E(C) === f;
730
730
  }
731
- Y.AsyncMode = h, Y.ConcurrentMode = P, Y.ContextConsumer = z, Y.ContextProvider = X, Y.Element = ee, Y.ForwardRef = ce, Y.Fragment = de, Y.Lazy = he, Y.Memo = k, Y.Portal = _, Y.Profiler = q, Y.StrictMode = K, Y.Suspense = J, Y.isAsyncMode = te, Y.isConcurrentMode = y, Y.isContextConsumer = R, Y.isContextProvider = M, Y.isElement = j, Y.isForwardRef = I, Y.isFragment = N, Y.isLazy = O, Y.isMemo = T, Y.isPortal = H, Y.isProfiler = B, Y.isStrictMode = V, Y.isSuspense = oe, Y.isValidElementType = w, Y.typeOf = F;
732
- }()), Y;
731
+ W.AsyncMode = h, W.ConcurrentMode = P, W.ContextConsumer = N, W.ContextProvider = Y, W.Element = Z, W.ForwardRef = ce, W.Fragment = pe, W.Lazy = he, W.Memo = F, W.Portal = R, W.Profiler = B, W.StrictMode = Q, W.Suspense = ee, W.isAsyncMode = ne, W.isConcurrentMode = y, W.isContextConsumer = k, W.isContextProvider = j, W.isElement = O, W.isForwardRef = I, W.isFragment = z, W.isLazy = M, W.isMemo = T, W.isPortal = H, W.isProfiler = q, W.isStrictMode = V, W.isSuspense = te, W.isValidElementType = w, W.typeOf = E;
732
+ }()), W;
733
733
  }
734
734
  var sn;
735
735
  function Gn() {
736
- return sn || (sn = 1, process.env.NODE_ENV === "production" ? Ke.exports = ko() : Ke.exports = Fo()), Ke.exports;
736
+ return sn || (sn = 1, process.env.NODE_ENV === "production" ? Ke.exports = Eo() : Ke.exports = Fo()), Ke.exports;
737
737
  }
738
738
  /*
739
739
  object-assign
@@ -759,22 +759,22 @@ function Po() {
759
759
  return !1;
760
760
  for (var l = {}, r = 0; r < 10; r++)
761
761
  l["_" + String.fromCharCode(r)] = r;
762
- var s = Object.getOwnPropertyNames(l).map(function(p) {
763
- return l[p];
762
+ var s = Object.getOwnPropertyNames(l).map(function(d) {
763
+ return l[d];
764
764
  });
765
765
  if (s.join("") !== "0123456789")
766
766
  return !1;
767
767
  var c = {};
768
- return "abcdefghijklmnopqrst".split("").forEach(function(p) {
769
- c[p] = p;
768
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
769
+ c[d] = d;
770
770
  }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
771
771
  } catch {
772
772
  return !1;
773
773
  }
774
774
  }
775
775
  return mt = o() ? Object.assign : function(a, l) {
776
- for (var r, s = i(a), c, p = 1; p < arguments.length; p++) {
777
- r = Object(arguments[p]);
776
+ for (var r, s = i(a), c, d = 1; d < arguments.length; d++) {
777
+ r = Object(arguments[d]);
778
778
  for (var f in r)
779
779
  n.call(r, f) && (s[f] = r[f]);
780
780
  if (e) {
@@ -787,7 +787,7 @@ function Po() {
787
787
  }, mt;
788
788
  }
789
789
  var vt, pn;
790
- function Wt() {
790
+ function Yt() {
791
791
  if (pn) return vt;
792
792
  pn = 1;
793
793
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -804,7 +804,7 @@ function Io() {
804
804
  var e = function() {
805
805
  };
806
806
  if (process.env.NODE_ENV !== "production") {
807
- var n = /* @__PURE__ */ Wt(), t = {}, i = /* @__PURE__ */ Bn();
807
+ var n = /* @__PURE__ */ Yt(), t = {}, i = /* @__PURE__ */ Bn();
808
808
  e = function(a) {
809
809
  var l = "Warning: " + a;
810
810
  typeof console < "u" && console.error(l);
@@ -816,27 +816,27 @@ function Io() {
816
816
  }
817
817
  function o(a, l, r, s, c) {
818
818
  if (process.env.NODE_ENV !== "production") {
819
- for (var p in a)
820
- if (i(a, p)) {
819
+ for (var d in a)
820
+ if (i(a, d)) {
821
821
  var f;
822
822
  try {
823
- if (typeof a[p] != "function") {
823
+ if (typeof a[d] != "function") {
824
824
  var g = Error(
825
- (s || "React class") + ": " + r + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
825
+ (s || "React class") + ": " + r + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
826
826
  );
827
827
  throw g.name = "Invariant Violation", g;
828
828
  }
829
- f = a[p](l, p, s, r, null, n);
829
+ f = a[d](l, d, s, r, null, n);
830
830
  } catch (m) {
831
831
  f = m;
832
832
  }
833
833
  if (f && !(f instanceof Error) && e(
834
- (s || "React class") + ": type specification of " + r + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
834
+ (s || "React class") + ": type specification of " + r + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
835
835
  ), f instanceof Error && !(f.message in t)) {
836
836
  t[f.message] = !0;
837
- var u = c ? c() : "";
837
+ var p = c ? c() : "";
838
838
  e(
839
- "Failed " + r + " type: " + f.message + (u ?? "")
839
+ "Failed " + r + " type: " + f.message + (p ?? "")
840
840
  );
841
841
  }
842
842
  }
@@ -850,7 +850,7 @@ var wt, gn;
850
850
  function Do() {
851
851
  if (gn) return wt;
852
852
  gn = 1;
853
- var e = Gn(), n = Po(), t = /* @__PURE__ */ Wt(), i = /* @__PURE__ */ Bn(), o = /* @__PURE__ */ Io(), a = function() {
853
+ var e = Gn(), n = Po(), t = /* @__PURE__ */ Yt(), i = /* @__PURE__ */ Bn(), o = /* @__PURE__ */ Io(), a = function() {
854
854
  };
855
855
  process.env.NODE_ENV !== "production" && (a = function(r) {
856
856
  var s = "Warning: " + r;
@@ -864,13 +864,13 @@ function Do() {
864
864
  return null;
865
865
  }
866
866
  return wt = function(r, s) {
867
- var c = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
867
+ var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
868
868
  function f(y) {
869
- var R = y && (c && y[c] || y[p]);
870
- if (typeof R == "function")
871
- return R;
869
+ var k = y && (c && y[c] || y[d]);
870
+ if (typeof k == "function")
871
+ return k;
872
872
  }
873
- var g = "<<anonymous>>", u = {
873
+ var g = "<<anonymous>>", p = {
874
874
  array: x("array"),
875
875
  bigint: x("bigint"),
876
876
  bool: x("boolean"),
@@ -879,223 +879,223 @@ function Do() {
879
879
  object: x("object"),
880
880
  string: x("string"),
881
881
  symbol: x("symbol"),
882
- any: E(),
882
+ any: b(),
883
883
  arrayOf: w,
884
- element: F(),
884
+ element: E(),
885
885
  elementType: h(),
886
886
  instanceOf: P,
887
887
  node: ce(),
888
- objectOf: X,
889
- oneOf: z,
890
- oneOfType: ee,
888
+ objectOf: Y,
889
+ oneOf: N,
890
+ oneOfType: Z,
891
891
  shape: he,
892
- exact: k
892
+ exact: F
893
893
  };
894
- function m(y, R) {
895
- return y === R ? y !== 0 || 1 / y === 1 / R : y !== y && R !== R;
894
+ function m(y, k) {
895
+ return y === k ? y !== 0 || 1 / y === 1 / k : y !== y && k !== k;
896
896
  }
897
- function v(y, R) {
898
- this.message = y, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
897
+ function v(y, k) {
898
+ this.message = y, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
899
899
  }
900
900
  v.prototype = Error.prototype;
901
- function b(y) {
901
+ function S(y) {
902
902
  if (process.env.NODE_ENV !== "production")
903
- var R = {}, M = 0;
904
- function j(N, O, T, H, B, V, oe) {
905
- if (H = H || g, V = V || T, oe !== t) {
903
+ var k = {}, j = 0;
904
+ function O(z, M, T, H, q, V, te) {
905
+ if (H = H || g, V = V || T, te !== t) {
906
906
  if (s) {
907
- var S = new Error(
907
+ var C = new Error(
908
908
  "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"
909
909
  );
910
- throw S.name = "Invariant Violation", S;
910
+ throw C.name = "Invariant Violation", C;
911
911
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
912
912
  var me = H + ":" + T;
913
- !R[me] && // Avoid spamming the console because they are often not actionable except for lib authors
914
- M < 3 && (a(
913
+ !k[me] && // Avoid spamming the console because they are often not actionable except for lib authors
914
+ j < 3 && (a(
915
915
  "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + H + "`. 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."
916
- ), R[me] = !0, M++);
916
+ ), k[me] = !0, j++);
917
917
  }
918
918
  }
919
- return O[T] == null ? N ? O[T] === null ? new v("The " + B + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + B + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : y(O, T, H, B, V);
919
+ return M[T] == null ? z ? M[T] === null ? new v("The " + q + " `" + V + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + q + " `" + V + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : y(M, T, H, q, V);
920
920
  }
921
- var I = j.bind(null, !1);
922
- return I.isRequired = j.bind(null, !0), I;
921
+ var I = O.bind(null, !1);
922
+ return I.isRequired = O.bind(null, !0), I;
923
923
  }
924
924
  function x(y) {
925
- function R(M, j, I, N, O, T) {
926
- var H = M[j], B = K(H);
927
- if (B !== y) {
928
- var V = J(H);
925
+ function k(j, O, I, z, M, T) {
926
+ var H = j[O], q = Q(H);
927
+ if (q !== y) {
928
+ var V = ee(H);
929
929
  return new v(
930
- "Invalid " + N + " `" + O + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("`" + y + "`."),
930
+ "Invalid " + z + " `" + M + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("`" + y + "`."),
931
931
  { expectedType: y }
932
932
  );
933
933
  }
934
934
  return null;
935
935
  }
936
- return b(R);
936
+ return S(k);
937
937
  }
938
- function E() {
939
- return b(l);
938
+ function b() {
939
+ return S(l);
940
940
  }
941
941
  function w(y) {
942
- function R(M, j, I, N, O) {
942
+ function k(j, O, I, z, M) {
943
943
  if (typeof y != "function")
944
- return new v("Property `" + O + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
945
- var T = M[j];
944
+ return new v("Property `" + M + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
945
+ var T = j[O];
946
946
  if (!Array.isArray(T)) {
947
- var H = K(T);
948
- return new v("Invalid " + N + " `" + O + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an array."));
947
+ var H = Q(T);
948
+ return new v("Invalid " + z + " `" + M + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an array."));
949
949
  }
950
- for (var B = 0; B < T.length; B++) {
951
- var V = y(T, B, I, N, O + "[" + B + "]", t);
950
+ for (var q = 0; q < T.length; q++) {
951
+ var V = y(T, q, I, z, M + "[" + q + "]", t);
952
952
  if (V instanceof Error)
953
953
  return V;
954
954
  }
955
955
  return null;
956
956
  }
957
- return b(R);
957
+ return S(k);
958
958
  }
959
- function F() {
960
- function y(R, M, j, I, N) {
961
- var O = R[M];
962
- if (!r(O)) {
963
- var T = K(O);
964
- return new v("Invalid " + I + " `" + N + "` of type " + ("`" + T + "` supplied to `" + j + "`, expected a single ReactElement."));
959
+ function E() {
960
+ function y(k, j, O, I, z) {
961
+ var M = k[j];
962
+ if (!r(M)) {
963
+ var T = Q(M);
964
+ return new v("Invalid " + I + " `" + z + "` of type " + ("`" + T + "` supplied to `" + O + "`, expected a single ReactElement."));
965
965
  }
966
966
  return null;
967
967
  }
968
- return b(y);
968
+ return S(y);
969
969
  }
970
970
  function h() {
971
- function y(R, M, j, I, N) {
972
- var O = R[M];
973
- if (!e.isValidElementType(O)) {
974
- var T = K(O);
975
- return new v("Invalid " + I + " `" + N + "` of type " + ("`" + T + "` supplied to `" + j + "`, expected a single ReactElement type."));
971
+ function y(k, j, O, I, z) {
972
+ var M = k[j];
973
+ if (!e.isValidElementType(M)) {
974
+ var T = Q(M);
975
+ return new v("Invalid " + I + " `" + z + "` of type " + ("`" + T + "` supplied to `" + O + "`, expected a single ReactElement type."));
976
976
  }
977
977
  return null;
978
978
  }
979
- return b(y);
979
+ return S(y);
980
980
  }
981
981
  function P(y) {
982
- function R(M, j, I, N, O) {
983
- if (!(M[j] instanceof y)) {
984
- var T = y.name || g, H = te(M[j]);
985
- return new v("Invalid " + N + " `" + O + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected ") + ("instance of `" + T + "`."));
982
+ function k(j, O, I, z, M) {
983
+ if (!(j[O] instanceof y)) {
984
+ var T = y.name || g, H = ne(j[O]);
985
+ return new v("Invalid " + z + " `" + M + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected ") + ("instance of `" + T + "`."));
986
986
  }
987
987
  return null;
988
988
  }
989
- return b(R);
989
+ return S(k);
990
990
  }
991
- function z(y) {
991
+ function N(y) {
992
992
  if (!Array.isArray(y))
993
993
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
994
994
  "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])."
995
995
  ) : a("Invalid argument supplied to oneOf, expected an array.")), l;
996
- function R(M, j, I, N, O) {
997
- for (var T = M[j], H = 0; H < y.length; H++)
996
+ function k(j, O, I, z, M) {
997
+ for (var T = j[O], H = 0; H < y.length; H++)
998
998
  if (m(T, y[H]))
999
999
  return null;
1000
- var B = JSON.stringify(y, function(oe, S) {
1001
- var me = J(S);
1002
- return me === "symbol" ? String(S) : S;
1000
+ var q = JSON.stringify(y, function(te, C) {
1001
+ var me = ee(C);
1002
+ return me === "symbol" ? String(C) : C;
1003
1003
  });
1004
- return new v("Invalid " + N + " `" + O + "` of value `" + String(T) + "` " + ("supplied to `" + I + "`, expected one of " + B + "."));
1004
+ return new v("Invalid " + z + " `" + M + "` of value `" + String(T) + "` " + ("supplied to `" + I + "`, expected one of " + q + "."));
1005
1005
  }
1006
- return b(R);
1006
+ return S(k);
1007
1007
  }
1008
- function X(y) {
1009
- function R(M, j, I, N, O) {
1008
+ function Y(y) {
1009
+ function k(j, O, I, z, M) {
1010
1010
  if (typeof y != "function")
1011
- return new v("Property `" + O + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
1012
- var T = M[j], H = K(T);
1011
+ return new v("Property `" + M + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
1012
+ var T = j[O], H = Q(T);
1013
1013
  if (H !== "object")
1014
- return new v("Invalid " + N + " `" + O + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an object."));
1015
- for (var B in T)
1016
- if (i(T, B)) {
1017
- var V = y(T, B, I, N, O + "." + B, t);
1014
+ return new v("Invalid " + z + " `" + M + "` of type " + ("`" + H + "` supplied to `" + I + "`, expected an object."));
1015
+ for (var q in T)
1016
+ if (i(T, q)) {
1017
+ var V = y(T, q, I, z, M + "." + q, t);
1018
1018
  if (V instanceof Error)
1019
1019
  return V;
1020
1020
  }
1021
1021
  return null;
1022
1022
  }
1023
- return b(R);
1023
+ return S(k);
1024
1024
  }
1025
- function ee(y) {
1025
+ function Z(y) {
1026
1026
  if (!Array.isArray(y))
1027
1027
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), l;
1028
- for (var R = 0; R < y.length; R++) {
1029
- var M = y[R];
1030
- if (typeof M != "function")
1028
+ for (var k = 0; k < y.length; k++) {
1029
+ var j = y[k];
1030
+ if (typeof j != "function")
1031
1031
  return a(
1032
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(M) + " at index " + R + "."
1032
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + le(j) + " at index " + k + "."
1033
1033
  ), l;
1034
1034
  }
1035
- function j(I, N, O, T, H) {
1036
- for (var B = [], V = 0; V < y.length; V++) {
1037
- var oe = y[V], S = oe(I, N, O, T, H, t);
1038
- if (S == null)
1035
+ function O(I, z, M, T, H) {
1036
+ for (var q = [], V = 0; V < y.length; V++) {
1037
+ var te = y[V], C = te(I, z, M, T, H, t);
1038
+ if (C == null)
1039
1039
  return null;
1040
- S.data && i(S.data, "expectedType") && B.push(S.data.expectedType);
1040
+ C.data && i(C.data, "expectedType") && q.push(C.data.expectedType);
1041
1041
  }
1042
- var me = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
1043
- return new v("Invalid " + T + " `" + H + "` supplied to " + ("`" + O + "`" + me + "."));
1042
+ var me = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1043
+ return new v("Invalid " + T + " `" + H + "` supplied to " + ("`" + M + "`" + me + "."));
1044
1044
  }
1045
- return b(j);
1045
+ return S(O);
1046
1046
  }
1047
1047
  function ce() {
1048
- function y(R, M, j, I, N) {
1049
- return _(R[M]) ? null : new v("Invalid " + I + " `" + N + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
1048
+ function y(k, j, O, I, z) {
1049
+ return R(k[j]) ? null : new v("Invalid " + I + " `" + z + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
1050
1050
  }
1051
- return b(y);
1051
+ return S(y);
1052
1052
  }
1053
- function de(y, R, M, j, I) {
1053
+ function pe(y, k, j, O, I) {
1054
1054
  return new v(
1055
- (y || "React class") + ": " + R + " type `" + M + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1055
+ (y || "React class") + ": " + k + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
1056
1056
  );
1057
1057
  }
1058
1058
  function he(y) {
1059
- function R(M, j, I, N, O) {
1060
- var T = M[j], H = K(T);
1059
+ function k(j, O, I, z, M) {
1060
+ var T = j[O], H = Q(T);
1061
1061
  if (H !== "object")
1062
- return new v("Invalid " + N + " `" + O + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1063
- for (var B in y) {
1064
- var V = y[B];
1062
+ return new v("Invalid " + z + " `" + M + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1063
+ for (var q in y) {
1064
+ var V = y[q];
1065
1065
  if (typeof V != "function")
1066
- return de(I, N, O, B, J(V));
1067
- var oe = V(T, B, I, N, O + "." + B, t);
1068
- if (oe)
1069
- return oe;
1066
+ return pe(I, z, M, q, ee(V));
1067
+ var te = V(T, q, I, z, M + "." + q, t);
1068
+ if (te)
1069
+ return te;
1070
1070
  }
1071
1071
  return null;
1072
1072
  }
1073
- return b(R);
1073
+ return S(k);
1074
1074
  }
1075
- function k(y) {
1076
- function R(M, j, I, N, O) {
1077
- var T = M[j], H = K(T);
1075
+ function F(y) {
1076
+ function k(j, O, I, z, M) {
1077
+ var T = j[O], H = Q(T);
1078
1078
  if (H !== "object")
1079
- return new v("Invalid " + N + " `" + O + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1080
- var B = n({}, M[j], y);
1081
- for (var V in B) {
1082
- var oe = y[V];
1083
- if (i(y, V) && typeof oe != "function")
1084
- return de(I, N, O, V, J(oe));
1085
- if (!oe)
1079
+ return new v("Invalid " + z + " `" + M + "` of type `" + H + "` " + ("supplied to `" + I + "`, expected `object`."));
1080
+ var q = n({}, j[O], y);
1081
+ for (var V in q) {
1082
+ var te = y[V];
1083
+ if (i(y, V) && typeof te != "function")
1084
+ return pe(I, z, M, V, ee(te));
1085
+ if (!te)
1086
1086
  return new v(
1087
- "Invalid " + N + " `" + O + "` key `" + V + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(M[j], null, " ") + `
1087
+ "Invalid " + z + " `" + M + "` key `" + V + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
1088
1088
  Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1089
1089
  );
1090
- var S = oe(T, V, I, N, O + "." + V, t);
1091
- if (S)
1092
- return S;
1090
+ var C = te(T, V, I, z, M + "." + V, t);
1091
+ if (C)
1092
+ return C;
1093
1093
  }
1094
1094
  return null;
1095
1095
  }
1096
- return b(R);
1096
+ return S(k);
1097
1097
  }
1098
- function _(y) {
1098
+ function R(y) {
1099
1099
  switch (typeof y) {
1100
1100
  case "number":
1101
1101
  case "string":
@@ -1105,20 +1105,20 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1105
1105
  return !y;
1106
1106
  case "object":
1107
1107
  if (Array.isArray(y))
1108
- return y.every(_);
1108
+ return y.every(R);
1109
1109
  if (y === null || r(y))
1110
1110
  return !0;
1111
- var R = f(y);
1112
- if (R) {
1113
- var M = R.call(y), j;
1114
- if (R !== y.entries) {
1115
- for (; !(j = M.next()).done; )
1116
- if (!_(j.value))
1111
+ var k = f(y);
1112
+ if (k) {
1113
+ var j = k.call(y), O;
1114
+ if (k !== y.entries) {
1115
+ for (; !(O = j.next()).done; )
1116
+ if (!R(O.value))
1117
1117
  return !1;
1118
1118
  } else
1119
- for (; !(j = M.next()).done; ) {
1120
- var I = j.value;
1121
- if (I && !_(I[1]))
1119
+ for (; !(O = j.next()).done; ) {
1120
+ var I = O.value;
1121
+ if (I && !R(I[1]))
1122
1122
  return !1;
1123
1123
  }
1124
1124
  } else
@@ -1128,56 +1128,56 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
1128
1128
  return !1;
1129
1129
  }
1130
1130
  }
1131
- function q(y, R) {
1132
- return y === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
1131
+ function B(y, k) {
1132
+ return y === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
1133
1133
  }
1134
- function K(y) {
1135
- var R = typeof y;
1136
- return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : q(R, y) ? "symbol" : R;
1134
+ function Q(y) {
1135
+ var k = typeof y;
1136
+ return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : B(k, y) ? "symbol" : k;
1137
1137
  }
1138
- function J(y) {
1138
+ function ee(y) {
1139
1139
  if (typeof y > "u" || y === null)
1140
1140
  return "" + y;
1141
- var R = K(y);
1142
- if (R === "object") {
1141
+ var k = Q(y);
1142
+ if (k === "object") {
1143
1143
  if (y instanceof Date)
1144
1144
  return "date";
1145
1145
  if (y instanceof RegExp)
1146
1146
  return "regexp";
1147
1147
  }
1148
- return R;
1148
+ return k;
1149
1149
  }
1150
- function ie(y) {
1151
- var R = J(y);
1152
- switch (R) {
1150
+ function le(y) {
1151
+ var k = ee(y);
1152
+ switch (k) {
1153
1153
  case "array":
1154
1154
  case "object":
1155
- return "an " + R;
1155
+ return "an " + k;
1156
1156
  case "boolean":
1157
1157
  case "date":
1158
1158
  case "regexp":
1159
- return "a " + R;
1159
+ return "a " + k;
1160
1160
  default:
1161
- return R;
1161
+ return k;
1162
1162
  }
1163
1163
  }
1164
- function te(y) {
1164
+ function ne(y) {
1165
1165
  return !y.constructor || !y.constructor.name ? g : y.constructor.name;
1166
1166
  }
1167
- return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
1167
+ return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
1168
1168
  }, wt;
1169
1169
  }
1170
1170
  var yt, fn;
1171
1171
  function Ao() {
1172
1172
  if (fn) return yt;
1173
1173
  fn = 1;
1174
- var e = /* @__PURE__ */ Wt();
1174
+ var e = /* @__PURE__ */ Yt();
1175
1175
  function n() {
1176
1176
  }
1177
1177
  function t() {
1178
1178
  }
1179
1179
  return t.resetWarningCache = n, yt = function() {
1180
- function i(l, r, s, c, p, f) {
1180
+ function i(l, r, s, c, d, f) {
1181
1181
  if (f !== e) {
1182
1182
  var g = new Error(
1183
1183
  "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"
@@ -1226,30 +1226,30 @@ function $o() {
1226
1226
  return Ue.exports;
1227
1227
  }
1228
1228
  var Mo = /* @__PURE__ */ $o();
1229
- const Q = /* @__PURE__ */ Bt(Mo);
1230
- function De(e, n, t, i) {
1229
+ const X = /* @__PURE__ */ Ut(Mo);
1230
+ function Ae(e, n, t, i) {
1231
1231
  function o(a) {
1232
1232
  return a instanceof t ? a : new t(function(l) {
1233
1233
  l(a);
1234
1234
  });
1235
1235
  }
1236
1236
  return new (t || (t = Promise))(function(a, l) {
1237
- function r(p) {
1237
+ function r(d) {
1238
1238
  try {
1239
- c(i.next(p));
1239
+ c(i.next(d));
1240
1240
  } catch (f) {
1241
1241
  l(f);
1242
1242
  }
1243
1243
  }
1244
- function s(p) {
1244
+ function s(d) {
1245
1245
  try {
1246
- c(i.throw(p));
1246
+ c(i.throw(d));
1247
1247
  } catch (f) {
1248
1248
  l(f);
1249
1249
  }
1250
1250
  }
1251
- function c(p) {
1252
- p.done ? a(p.value) : o(p.value).then(r, s);
1251
+ function c(d) {
1252
+ d.done ? a(d.value) : o(d.value).then(r, s);
1253
1253
  }
1254
1254
  c((i = i.apply(e, n || [])).next());
1255
1255
  });
@@ -2490,7 +2490,7 @@ const To = [
2490
2490
  // Windows
2491
2491
  ];
2492
2492
  function zo(e) {
2493
- return De(this, void 0, void 0, function* () {
2493
+ return Ae(this, void 0, void 0, function* () {
2494
2494
  return tt(e) && Vo(e.dataTransfer) ? qo(e.dataTransfer, e.type) : Lo(e) ? No(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? Ho(e) : [];
2495
2495
  });
2496
2496
  }
@@ -2504,29 +2504,29 @@ function tt(e) {
2504
2504
  return typeof e == "object" && e !== null;
2505
2505
  }
2506
2506
  function No(e) {
2507
- return Dt(e.target.files).map((n) => je(n));
2507
+ return At(e.target.files).map((n) => je(n));
2508
2508
  }
2509
2509
  function Ho(e) {
2510
- return De(this, void 0, void 0, function* () {
2510
+ return Ae(this, void 0, void 0, function* () {
2511
2511
  return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => je(t));
2512
2512
  });
2513
2513
  }
2514
2514
  function qo(e, n) {
2515
- return De(this, void 0, void 0, function* () {
2515
+ return Ae(this, void 0, void 0, function* () {
2516
2516
  if (e.items) {
2517
- const t = Dt(e.items).filter((o) => o.kind === "file");
2517
+ const t = At(e.items).filter((o) => o.kind === "file");
2518
2518
  if (n !== "drop")
2519
2519
  return t;
2520
2520
  const i = yield Promise.all(t.map(Go));
2521
2521
  return xn(Un(i));
2522
2522
  }
2523
- return xn(Dt(e.files).map((t) => je(t)));
2523
+ return xn(At(e.files).map((t) => je(t)));
2524
2524
  });
2525
2525
  }
2526
2526
  function xn(e) {
2527
2527
  return e.filter((n) => To.indexOf(n.name) === -1);
2528
2528
  }
2529
- function Dt(e) {
2529
+ function At(e) {
2530
2530
  if (e === null)
2531
2531
  return [];
2532
2532
  const n = [];
@@ -2549,7 +2549,7 @@ function Un(e) {
2549
2549
  ], []);
2550
2550
  }
2551
2551
  function hn(e, n) {
2552
- return De(this, void 0, void 0, function* () {
2552
+ return Ae(this, void 0, void 0, function* () {
2553
2553
  var t;
2554
2554
  if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
2555
2555
  const a = yield e.getAsFileSystemHandle();
@@ -2567,7 +2567,7 @@ function hn(e, n) {
2567
2567
  });
2568
2568
  }
2569
2569
  function Bo(e) {
2570
- return De(this, void 0, void 0, function* () {
2570
+ return Ae(this, void 0, void 0, function* () {
2571
2571
  return e.isDirectory ? Kn(e) : Uo(e);
2572
2572
  });
2573
2573
  }
@@ -2576,7 +2576,7 @@ function Kn(e) {
2576
2576
  return new Promise((t, i) => {
2577
2577
  const o = [];
2578
2578
  function a() {
2579
- n.readEntries((l) => De(this, void 0, void 0, function* () {
2579
+ n.readEntries((l) => Ae(this, void 0, void 0, function* () {
2580
2580
  if (l.length) {
2581
2581
  const r = Promise.all(l.map(Bo));
2582
2582
  o.push(r), a();
@@ -2595,7 +2595,7 @@ function Kn(e) {
2595
2595
  });
2596
2596
  }
2597
2597
  function Uo(e) {
2598
- return De(this, void 0, void 0, function* () {
2598
+ return Ae(this, void 0, void 0, function* () {
2599
2599
  return new Promise((n, t) => {
2600
2600
  e.file((i) => {
2601
2601
  const o = je(i, e.fullPath);
@@ -2623,7 +2623,7 @@ function Ko() {
2623
2623
  }), We;
2624
2624
  }
2625
2625
  var Wo = Ko();
2626
- const bt = /* @__PURE__ */ Bt(Wo);
2626
+ const bt = /* @__PURE__ */ Ut(Wo);
2627
2627
  function yn(e) {
2628
2628
  return Qo(e) || Xo(e) || Yn(e) || Yo();
2629
2629
  }
@@ -2635,7 +2635,7 @@ function Xo(e) {
2635
2635
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2636
2636
  }
2637
2637
  function Qo(e) {
2638
- if (Array.isArray(e)) return At(e);
2638
+ if (Array.isArray(e)) return $t(e);
2639
2639
  }
2640
2640
  function bn(e, n) {
2641
2641
  var t = Object.keys(e);
@@ -2670,13 +2670,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2670
2670
  }
2671
2671
  function Yn(e, n) {
2672
2672
  if (e) {
2673
- if (typeof e == "string") return At(e, n);
2673
+ if (typeof e == "string") return $t(e, n);
2674
2674
  var t = Object.prototype.toString.call(e).slice(8, -1);
2675
2675
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2676
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return At(e, n);
2676
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return $t(e, n);
2677
2677
  }
2678
2678
  }
2679
- function At(e, n) {
2679
+ function $t(e, n) {
2680
2680
  (n == null || n > e.length) && (n = e.length);
2681
2681
  for (var t = 0, i = new Array(n); t < n; t++)
2682
2682
  i[t] = e[t];
@@ -2729,23 +2729,23 @@ function Xn(e, n) {
2729
2729
  return [t, t ? null : ra(n)];
2730
2730
  }
2731
2731
  function Qn(e, n, t) {
2732
- if (Pe(e.size))
2733
- if (Pe(n) && Pe(t)) {
2732
+ if (Ie(e.size))
2733
+ if (Ie(n) && Ie(t)) {
2734
2734
  if (e.size > t) return [!1, Cn(t)];
2735
2735
  if (e.size < n) return [!1, _n(n)];
2736
2736
  } else {
2737
- if (Pe(n) && e.size < n) return [!1, _n(n)];
2738
- if (Pe(t) && e.size > t) return [!1, Cn(t)];
2737
+ if (Ie(n) && e.size < n) return [!1, _n(n)];
2738
+ if (Ie(t) && e.size > t) return [!1, Cn(t)];
2739
2739
  }
2740
2740
  return [!0, null];
2741
2741
  }
2742
- function Pe(e) {
2742
+ function Ie(e) {
2743
2743
  return e != null;
2744
2744
  }
2745
2745
  function sa(e) {
2746
2746
  var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, l = e.maxFiles, r = e.validator;
2747
2747
  return !a && n.length > 1 || a && l >= 1 && n.length > l ? !1 : n.every(function(s) {
2748
- var c = Xn(s, t), p = He(c, 1), f = p[0], g = Qn(s, i, o), u = He(g, 1), m = u[0], v = r ? r(s) : null;
2748
+ var c = Xn(s, t), d = He(c, 1), f = d[0], g = Qn(s, i, o), p = He(g, 1), m = p[0], v = r ? r(s) : null;
2749
2749
  return f && m && !v;
2750
2750
  });
2751
2751
  }
@@ -2785,7 +2785,7 @@ function da() {
2785
2785
  return "showOpenFilePicker" in window;
2786
2786
  }
2787
2787
  function ga(e) {
2788
- if (Pe(e)) {
2788
+ if (Ie(e)) {
2789
2789
  var n = Object.entries(e).filter(function(t) {
2790
2790
  var i = He(t, 2), o = i[0], a = i[1], l = !0;
2791
2791
  return Jn(o) || (console.warn('Skipped "'.concat(o, '" 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.')), l = !1), (!Array.isArray(a) || !a.every(Zn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), l = !1), l;
@@ -2802,7 +2802,7 @@ function ga(e) {
2802
2802
  return e;
2803
2803
  }
2804
2804
  function fa(e) {
2805
- if (Pe(e))
2805
+ if (Ie(e))
2806
2806
  return Object.entries(e).reduce(function(n, t) {
2807
2807
  var i = He(t, 2), o = i[0], a = i[1];
2808
2808
  return [].concat(yn(n), [o], yn(a));
@@ -2834,10 +2834,10 @@ function Ca(e) {
2834
2834
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2835
2835
  }
2836
2836
  function _a(e) {
2837
- if (Array.isArray(e)) return $t(e);
2837
+ if (Array.isArray(e)) return Mt(e);
2838
2838
  }
2839
2839
  function St(e, n) {
2840
- return ka(e) || Ea(e, n) || ei(e, n) || Ra();
2840
+ return Ea(e) || ka(e, n) || ei(e, n) || Ra();
2841
2841
  }
2842
2842
  function Ra() {
2843
2843
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -2845,19 +2845,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2845
2845
  }
2846
2846
  function ei(e, n) {
2847
2847
  if (e) {
2848
- if (typeof e == "string") return $t(e, n);
2848
+ if (typeof e == "string") return Mt(e, n);
2849
2849
  var t = Object.prototype.toString.call(e).slice(8, -1);
2850
2850
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
2851
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return $t(e, n);
2851
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Mt(e, n);
2852
2852
  }
2853
2853
  }
2854
- function $t(e, n) {
2854
+ function Mt(e, n) {
2855
2855
  (n == null || n > e.length) && (n = e.length);
2856
2856
  for (var t = 0, i = new Array(n); t < n; t++)
2857
2857
  i[t] = e[t];
2858
2858
  return i;
2859
2859
  }
2860
- function Ea(e, n) {
2860
+ function ka(e, n) {
2861
2861
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2862
2862
  if (t != null) {
2863
2863
  var i = [], o = !0, a = !1, l, r;
@@ -2876,10 +2876,10 @@ function Ea(e, n) {
2876
2876
  return i;
2877
2877
  }
2878
2878
  }
2879
- function ka(e) {
2879
+ function Ea(e) {
2880
2880
  if (Array.isArray(e)) return e;
2881
2881
  }
2882
- function En(e, n) {
2882
+ function kn(e, n) {
2883
2883
  var t = Object.keys(e);
2884
2884
  if (Object.getOwnPropertySymbols) {
2885
2885
  var i = Object.getOwnPropertySymbols(e);
@@ -2889,18 +2889,18 @@ function En(e, n) {
2889
2889
  }
2890
2890
  return t;
2891
2891
  }
2892
- function Z(e) {
2892
+ function J(e) {
2893
2893
  for (var n = 1; n < arguments.length; n++) {
2894
2894
  var t = arguments[n] != null ? arguments[n] : {};
2895
- n % 2 ? En(Object(t), !0).forEach(function(i) {
2896
- Mt(e, i, t[i]);
2897
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : En(Object(t)).forEach(function(i) {
2895
+ n % 2 ? kn(Object(t), !0).forEach(function(i) {
2896
+ Ot(e, i, t[i]);
2897
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : kn(Object(t)).forEach(function(i) {
2898
2898
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
2899
2899
  });
2900
2900
  }
2901
2901
  return e;
2902
2902
  }
2903
- function Mt(e, n, t) {
2903
+ function Ot(e, n, t) {
2904
2904
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
2905
2905
  }
2906
2906
  function it(e, n) {
@@ -2920,17 +2920,17 @@ function Fa(e, n) {
2920
2920
  o = i[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
2921
2921
  return t;
2922
2922
  }
2923
- var Yt = /* @__PURE__ */ Ei(function(e, n) {
2923
+ var Xt = /* @__PURE__ */ ki(function(e, n) {
2924
2924
  var t = e.children, i = it(e, xa), o = ni(i), a = o.open, l = it(o, ha);
2925
- return ki(n, function() {
2925
+ return Ei(n, function() {
2926
2926
  return {
2927
2927
  open: a
2928
2928
  };
2929
- }, [a]), /* @__PURE__ */ _i.createElement(On, null, t(Z(Z({}, l), {}, {
2929
+ }, [a]), /* @__PURE__ */ _i.createElement(On, null, t(J(J({}, l), {}, {
2930
2930
  open: a
2931
2931
  })));
2932
2932
  });
2933
- Yt.displayName = "Dropzone";
2933
+ Xt.displayName = "Dropzone";
2934
2934
  var ti = {
2935
2935
  disabled: !1,
2936
2936
  getFilesFromEvent: zo,
@@ -2947,8 +2947,8 @@ var ti = {
2947
2947
  useFsAccessApi: !1,
2948
2948
  autoFocus: !1
2949
2949
  };
2950
- Yt.defaultProps = ti;
2951
- Yt.propTypes = {
2950
+ Xt.defaultProps = ti;
2951
+ Xt.propTypes = {
2952
2952
  /**
2953
2953
  * Render function that exposes the dropzone state and prop getter fns
2954
2954
  *
@@ -2964,7 +2964,7 @@ Yt.propTypes = {
2964
2964
  * @param {File[]} params.acceptedFiles Accepted files
2965
2965
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
2966
2966
  */
2967
- children: Q.func,
2967
+ children: X.func,
2968
2968
  /**
2969
2969
  * Set accepted file types.
2970
2970
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -2972,90 +2972,90 @@ Yt.propTypes = {
2972
2972
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
2973
2973
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
2974
2974
  */
2975
- accept: Q.objectOf(Q.arrayOf(Q.string)),
2975
+ accept: X.objectOf(X.arrayOf(X.string)),
2976
2976
  /**
2977
2977
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2978
2978
  */
2979
- multiple: Q.bool,
2979
+ multiple: X.bool,
2980
2980
  /**
2981
2981
  * If false, allow dropped items to take over the current browser window
2982
2982
  */
2983
- preventDropOnDocument: Q.bool,
2983
+ preventDropOnDocument: X.bool,
2984
2984
  /**
2985
2985
  * If true, disables click to open the native file selection dialog
2986
2986
  */
2987
- noClick: Q.bool,
2987
+ noClick: X.bool,
2988
2988
  /**
2989
2989
  * If true, disables SPACE/ENTER to open the native file selection dialog.
2990
2990
  * Note that it also stops tracking the focus state.
2991
2991
  */
2992
- noKeyboard: Q.bool,
2992
+ noKeyboard: X.bool,
2993
2993
  /**
2994
2994
  * If true, disables drag 'n' drop
2995
2995
  */
2996
- noDrag: Q.bool,
2996
+ noDrag: X.bool,
2997
2997
  /**
2998
2998
  * If true, stops drag event propagation to parents
2999
2999
  */
3000
- noDragEventsBubbling: Q.bool,
3000
+ noDragEventsBubbling: X.bool,
3001
3001
  /**
3002
3002
  * Minimum file size (in bytes)
3003
3003
  */
3004
- minSize: Q.number,
3004
+ minSize: X.number,
3005
3005
  /**
3006
3006
  * Maximum file size (in bytes)
3007
3007
  */
3008
- maxSize: Q.number,
3008
+ maxSize: X.number,
3009
3009
  /**
3010
3010
  * Maximum accepted number of files
3011
3011
  * The default value is 0 which means there is no limitation to how many files are accepted.
3012
3012
  */
3013
- maxFiles: Q.number,
3013
+ maxFiles: X.number,
3014
3014
  /**
3015
3015
  * Enable/disable the dropzone
3016
3016
  */
3017
- disabled: Q.bool,
3017
+ disabled: X.bool,
3018
3018
  /**
3019
3019
  * Use this to provide a custom file aggregator
3020
3020
  *
3021
3021
  * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
3022
3022
  */
3023
- getFilesFromEvent: Q.func,
3023
+ getFilesFromEvent: X.func,
3024
3024
  /**
3025
3025
  * Cb for when closing the file dialog with no selection
3026
3026
  */
3027
- onFileDialogCancel: Q.func,
3027
+ onFileDialogCancel: X.func,
3028
3028
  /**
3029
3029
  * Cb for when opening the file dialog
3030
3030
  */
3031
- onFileDialogOpen: Q.func,
3031
+ onFileDialogOpen: X.func,
3032
3032
  /**
3033
3033
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
3034
3034
  * to open the file picker instead of using an `<input type="file">` click event.
3035
3035
  */
3036
- useFsAccessApi: Q.bool,
3036
+ useFsAccessApi: X.bool,
3037
3037
  /**
3038
3038
  * Set to true to focus the root element on render
3039
3039
  */
3040
- autoFocus: Q.bool,
3040
+ autoFocus: X.bool,
3041
3041
  /**
3042
3042
  * Cb for when the `dragenter` event occurs.
3043
3043
  *
3044
3044
  * @param {DragEvent} event
3045
3045
  */
3046
- onDragEnter: Q.func,
3046
+ onDragEnter: X.func,
3047
3047
  /**
3048
3048
  * Cb for when the `dragleave` event occurs
3049
3049
  *
3050
3050
  * @param {DragEvent} event
3051
3051
  */
3052
- onDragLeave: Q.func,
3052
+ onDragLeave: X.func,
3053
3053
  /**
3054
3054
  * Cb for when the `dragover` event occurs
3055
3055
  *
3056
3056
  * @param {DragEvent} event
3057
3057
  */
3058
- onDragOver: Q.func,
3058
+ onDragOver: X.func,
3059
3059
  /**
3060
3060
  * Cb for when the `drop` event occurs.
3061
3061
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -3086,7 +3086,7 @@ Yt.propTypes = {
3086
3086
  * @param {FileRejection[]} fileRejections
3087
3087
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
3088
3088
  */
3089
- onDrop: Q.func,
3089
+ onDrop: X.func,
3090
3090
  /**
3091
3091
  * Cb for when the `drop` event occurs.
3092
3092
  * Note that if no files are accepted, this callback is not invoked.
@@ -3094,7 +3094,7 @@ Yt.propTypes = {
3094
3094
  * @param {File[]} files
3095
3095
  * @param {(DragEvent|Event)} event
3096
3096
  */
3097
- onDropAccepted: Q.func,
3097
+ onDropAccepted: X.func,
3098
3098
  /**
3099
3099
  * Cb for when the `drop` event occurs.
3100
3100
  * Note that if no files are rejected, this callback is not invoked.
@@ -3102,21 +3102,21 @@ Yt.propTypes = {
3102
3102
  * @param {FileRejection[]} fileRejections
3103
3103
  * @param {(DragEvent|Event)} event
3104
3104
  */
3105
- onDropRejected: Q.func,
3105
+ onDropRejected: X.func,
3106
3106
  /**
3107
3107
  * Cb for when there's some error from any of the promises.
3108
3108
  *
3109
3109
  * @param {Error} error
3110
3110
  */
3111
- onError: Q.func,
3111
+ onError: X.func,
3112
3112
  /**
3113
3113
  * Custom validation function. It must return null if there's no errors.
3114
3114
  * @param {File} file
3115
3115
  * @returns {FileError|FileError[]|null}
3116
3116
  */
3117
- validator: Q.func
3117
+ validator: X.func
3118
3118
  };
3119
- var Ot = {
3119
+ var jt = {
3120
3120
  isFocused: !1,
3121
3121
  isFileDialogActive: !1,
3122
3122
  isDragActive: !1,
@@ -3126,185 +3126,185 @@ var Ot = {
3126
3126
  fileRejections: []
3127
3127
  };
3128
3128
  function ni() {
3129
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Z(Z({}, ti), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, l = n.minSize, r = n.multiple, s = n.maxFiles, c = n.onDragEnter, p = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, b = n.onFileDialogOpen, x = n.useFsAccessApi, E = n.autoFocus, w = n.preventDropOnDocument, F = n.noClick, h = n.noKeyboard, P = n.noDrag, z = n.noDragEventsBubbling, X = n.onError, ee = n.validator, ce = le(function() {
3129
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, ti), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, l = n.minSize, r = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, p = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, S = n.onFileDialogOpen, x = n.useFsAccessApi, b = n.autoFocus, w = n.preventDropOnDocument, E = n.noClick, h = n.noKeyboard, P = n.noDrag, N = n.noDragEventsBubbling, Y = n.onError, Z = n.validator, ce = re(function() {
3130
3130
  return fa(t);
3131
- }, [t]), de = le(function() {
3131
+ }, [t]), pe = re(function() {
3132
3132
  return ga(t);
3133
- }, [t]), he = le(function() {
3134
- return typeof b == "function" ? b : kn;
3135
- }, [b]), k = le(function() {
3136
- return typeof v == "function" ? v : kn;
3137
- }, [v]), _ = ge(null), q = ge(null), K = Mn(Pa, Ot), J = St(K, 2), ie = J[0], te = J[1], y = ie.isFocused, R = ie.isFileDialogActive, M = ge(typeof window < "u" && window.isSecureContext && x && da()), j = function() {
3138
- !M.current && R && setTimeout(function() {
3139
- if (q.current) {
3140
- var $ = q.current.files;
3141
- $.length || (te({
3133
+ }, [t]), he = re(function() {
3134
+ return typeof S == "function" ? S : En;
3135
+ }, [S]), F = re(function() {
3136
+ return typeof v == "function" ? v : En;
3137
+ }, [v]), R = fe(null), B = fe(null), Q = Mn(Pa, jt), ee = St(Q, 2), le = ee[0], ne = ee[1], y = le.isFocused, k = le.isFileDialogActive, j = fe(typeof window < "u" && window.isSecureContext && x && da()), O = function() {
3138
+ !j.current && k && setTimeout(function() {
3139
+ if (B.current) {
3140
+ var $ = B.current.files;
3141
+ $.length || (ne({
3142
3142
  type: "closeDialog"
3143
- }), k());
3143
+ }), F());
3144
3144
  }
3145
3145
  }, 300);
3146
3146
  };
3147
- ue(function() {
3148
- return window.addEventListener("focus", j, !1), function() {
3149
- window.removeEventListener("focus", j, !1);
3147
+ ge(function() {
3148
+ return window.addEventListener("focus", O, !1), function() {
3149
+ window.removeEventListener("focus", O, !1);
3150
3150
  };
3151
- }, [q, R, k, M]);
3152
- var I = ge([]), N = function($) {
3153
- _.current && _.current.contains($.target) || ($.preventDefault(), I.current = []);
3151
+ }, [B, k, F, j]);
3152
+ var I = fe([]), z = function($) {
3153
+ R.current && R.current.contains($.target) || ($.preventDefault(), I.current = []);
3154
3154
  };
3155
- ue(function() {
3156
- return w && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", N, !1)), function() {
3157
- w && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", N));
3155
+ ge(function() {
3156
+ return w && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", z, !1)), function() {
3157
+ w && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", z));
3158
3158
  };
3159
- }, [_, w]), ue(function() {
3160
- return !i && E && _.current && _.current.focus(), function() {
3159
+ }, [R, w]), ge(function() {
3160
+ return !i && b && R.current && R.current.focus(), function() {
3161
3161
  };
3162
- }, [_, E, i]);
3163
- var O = U(function(C) {
3164
- X ? X(C) : console.error(C);
3165
- }, [X]), T = U(function(C) {
3166
- C.preventDefault(), C.persist(), Ge(C), I.current = [].concat(ba(I.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function($) {
3167
- if (!(nt(C) && !z)) {
3168
- var ne = $.length, ae = ne > 0 && sa({
3162
+ }, [R, b, i]);
3163
+ var M = U(function(_) {
3164
+ Y ? Y(_) : console.error(_);
3165
+ }, [Y]), T = U(function(_) {
3166
+ _.preventDefault(), _.persist(), Ge(_), I.current = [].concat(ba(I.current), [_.target]), Ye(_) && Promise.resolve(o(_)).then(function($) {
3167
+ if (!(nt(_) && !N)) {
3168
+ var ie = $.length, oe = ie > 0 && sa({
3169
3169
  files: $,
3170
3170
  accept: ce,
3171
3171
  minSize: l,
3172
3172
  maxSize: a,
3173
3173
  multiple: r,
3174
3174
  maxFiles: s,
3175
- validator: ee
3176
- }), ve = ne > 0 && !ae;
3177
- te({
3178
- isDragAccept: ae,
3175
+ validator: Z
3176
+ }), ve = ie > 0 && !oe;
3177
+ ne({
3178
+ isDragAccept: oe,
3179
3179
  isDragReject: ve,
3180
3180
  isDragActive: !0,
3181
3181
  type: "setDraggedFiles"
3182
- }), c && c(C);
3182
+ }), c && c(_);
3183
3183
  }
3184
3184
  }).catch(function($) {
3185
- return O($);
3185
+ return M($);
3186
3186
  });
3187
- }, [o, c, O, z, ce, l, a, r, s, ee]), H = U(function(C) {
3188
- C.preventDefault(), C.persist(), Ge(C);
3189
- var $ = Ye(C);
3190
- if ($ && C.dataTransfer)
3187
+ }, [o, c, M, N, ce, l, a, r, s, Z]), H = U(function(_) {
3188
+ _.preventDefault(), _.persist(), Ge(_);
3189
+ var $ = Ye(_);
3190
+ if ($ && _.dataTransfer)
3191
3191
  try {
3192
- C.dataTransfer.dropEffect = "copy";
3192
+ _.dataTransfer.dropEffect = "copy";
3193
3193
  } catch {
3194
3194
  }
3195
- return $ && f && f(C), !1;
3196
- }, [f, z]), B = U(function(C) {
3197
- C.preventDefault(), C.persist(), Ge(C);
3198
- var $ = I.current.filter(function(ae) {
3199
- return _.current && _.current.contains(ae);
3200
- }), ne = $.indexOf(C.target);
3201
- ne !== -1 && $.splice(ne, 1), I.current = $, !($.length > 0) && (te({
3195
+ return $ && f && f(_), !1;
3196
+ }, [f, N]), q = U(function(_) {
3197
+ _.preventDefault(), _.persist(), Ge(_);
3198
+ var $ = I.current.filter(function(oe) {
3199
+ return R.current && R.current.contains(oe);
3200
+ }), ie = $.indexOf(_.target);
3201
+ ie !== -1 && $.splice(ie, 1), I.current = $, !($.length > 0) && (ne({
3202
3202
  type: "setDraggedFiles",
3203
3203
  isDragActive: !1,
3204
3204
  isDragAccept: !1,
3205
3205
  isDragReject: !1
3206
- }), Ye(C) && p && p(C));
3207
- }, [_, p, z]), V = U(function(C, $) {
3208
- var ne = [], ae = [];
3209
- C.forEach(function(ve) {
3210
- var ze = Xn(ve, ce), $e = St(ze, 2), lt = $e[0], st = $e[1], ct = Qn(ve, l, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = ee ? ee(ve) : null;
3206
+ }), Ye(_) && d && d(_));
3207
+ }, [R, d, N]), V = U(function(_, $) {
3208
+ var ie = [], oe = [];
3209
+ _.forEach(function(ve) {
3210
+ var ze = Xn(ve, ce), Me = St(ze, 2), lt = Me[0], st = Me[1], ct = Qn(ve, l, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = Z ? Z(ve) : null;
3211
3211
  if (lt && pt && !dt)
3212
- ne.push(ve);
3212
+ ie.push(ve);
3213
3213
  else {
3214
3214
  var gt = [st, ut];
3215
- dt && (gt = gt.concat(dt)), ae.push({
3215
+ dt && (gt = gt.concat(dt)), oe.push({
3216
3216
  file: ve,
3217
3217
  errors: gt.filter(function(Ci) {
3218
3218
  return Ci;
3219
3219
  })
3220
3220
  });
3221
3221
  }
3222
- }), (!r && ne.length > 1 || r && s >= 1 && ne.length > s) && (ne.forEach(function(ve) {
3223
- ae.push({
3222
+ }), (!r && ie.length > 1 || r && s >= 1 && ie.length > s) && (ie.forEach(function(ve) {
3223
+ oe.push({
3224
3224
  file: ve,
3225
3225
  errors: [la]
3226
3226
  });
3227
- }), ne.splice(0)), te({
3228
- acceptedFiles: ne,
3229
- fileRejections: ae,
3230
- isDragReject: ae.length > 0,
3227
+ }), ie.splice(0)), ne({
3228
+ acceptedFiles: ie,
3229
+ fileRejections: oe,
3230
+ isDragReject: oe.length > 0,
3231
3231
  type: "setFiles"
3232
- }), g && g(ne, ae, $), ae.length > 0 && m && m(ae, $), ne.length > 0 && u && u(ne, $);
3233
- }, [te, r, ce, l, a, s, g, u, m, ee]), oe = U(function(C) {
3234
- C.preventDefault(), C.persist(), Ge(C), I.current = [], Ye(C) && Promise.resolve(o(C)).then(function($) {
3235
- nt(C) && !z || V($, C);
3232
+ }), g && g(ie, oe, $), oe.length > 0 && m && m(oe, $), ie.length > 0 && p && p(ie, $);
3233
+ }, [ne, r, ce, l, a, s, g, p, m, Z]), te = U(function(_) {
3234
+ _.preventDefault(), _.persist(), Ge(_), I.current = [], Ye(_) && Promise.resolve(o(_)).then(function($) {
3235
+ nt(_) && !N || V($, _);
3236
3236
  }).catch(function($) {
3237
- return O($);
3238
- }), te({
3237
+ return M($);
3238
+ }), ne({
3239
3239
  type: "reset"
3240
3240
  });
3241
- }, [o, V, O, z]), S = U(function() {
3242
- if (M.current) {
3243
- te({
3241
+ }, [o, V, M, N]), C = U(function() {
3242
+ if (j.current) {
3243
+ ne({
3244
3244
  type: "openDialog"
3245
3245
  }), he();
3246
- var C = {
3246
+ var _ = {
3247
3247
  multiple: r,
3248
- types: de
3248
+ types: pe
3249
3249
  };
3250
- window.showOpenFilePicker(C).then(function($) {
3250
+ window.showOpenFilePicker(_).then(function($) {
3251
3251
  return o($);
3252
3252
  }).then(function($) {
3253
- V($, null), te({
3253
+ V($, null), ne({
3254
3254
  type: "closeDialog"
3255
3255
  });
3256
3256
  }).catch(function($) {
3257
- ma($) ? (k($), te({
3257
+ ma($) ? (F($), ne({
3258
3258
  type: "closeDialog"
3259
- })) : va($) ? (M.current = !1, q.current ? (q.current.value = null, q.current.click()) : O(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."))) : O($);
3259
+ })) : va($) ? (j.current = !1, B.current ? (B.current.value = null, B.current.click()) : M(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."))) : M($);
3260
3260
  });
3261
3261
  return;
3262
3262
  }
3263
- q.current && (te({
3263
+ B.current && (ne({
3264
3264
  type: "openDialog"
3265
- }), he(), q.current.value = null, q.current.click());
3266
- }, [te, he, k, x, V, O, de, r]), me = U(function(C) {
3267
- !_.current || !_.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), S());
3268
- }, [_, S]), Fe = U(function() {
3269
- te({
3265
+ }), he(), B.current.value = null, B.current.click());
3266
+ }, [ne, he, F, x, V, M, pe, r]), me = U(function(_) {
3267
+ !R.current || !R.current.isEqualNode(_.target) || (_.key === " " || _.key === "Enter" || _.keyCode === 32 || _.keyCode === 13) && (_.preventDefault(), C());
3268
+ }, [R, C]), Pe = U(function() {
3269
+ ne({
3270
3270
  type: "focus"
3271
3271
  });
3272
3272
  }, []), Te = U(function() {
3273
- te({
3273
+ ne({
3274
3274
  type: "blur"
3275
3275
  });
3276
- }, []), Zt = U(function() {
3277
- F || (ua() ? setTimeout(S, 0) : S());
3278
- }, [F, S]), Ae = function($) {
3276
+ }, []), en = U(function() {
3277
+ E || (ua() ? setTimeout(C, 0) : C());
3278
+ }, [E, C]), $e = function($) {
3279
3279
  return i ? null : $;
3280
3280
  }, rt = function($) {
3281
- return h ? null : Ae($);
3281
+ return h ? null : $e($);
3282
3282
  }, qe = function($) {
3283
- return P ? null : Ae($);
3283
+ return P ? null : $e($);
3284
3284
  }, Ge = function($) {
3285
- z && $.stopPropagation();
3286
- }, yi = le(function() {
3285
+ N && $.stopPropagation();
3286
+ }, yi = re(function() {
3287
3287
  return function() {
3288
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = C.refKey, ne = $ === void 0 ? "ref" : $, ae = C.role, ve = C.onKeyDown, ze = C.onFocus, $e = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, wa);
3289
- return Z(Z(Mt({
3288
+ var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.role, ve = _.onKeyDown, ze = _.onFocus, Me = _.onBlur, lt = _.onClick, st = _.onDragEnter, ct = _.onDragOver, Be = _.onDragLeave, pt = _.onDrop, ut = it(_, wa);
3289
+ return J(J(Ot({
3290
3290
  onKeyDown: rt(Se(ve, me)),
3291
- onFocus: rt(Se(ze, Fe)),
3292
- onBlur: rt(Se($e, Te)),
3293
- onClick: Ae(Se(lt, Zt)),
3291
+ onFocus: rt(Se(ze, Pe)),
3292
+ onBlur: rt(Se(Me, Te)),
3293
+ onClick: $e(Se(lt, en)),
3294
3294
  onDragEnter: qe(Se(st, T)),
3295
3295
  onDragOver: qe(Se(ct, H)),
3296
- onDragLeave: qe(Se(Be, B)),
3297
- onDrop: qe(Se(pt, oe)),
3298
- role: typeof ae == "string" && ae !== "" ? ae : "presentation"
3299
- }, ne, _), !i && !h ? {
3296
+ onDragLeave: qe(Se(Be, q)),
3297
+ onDrop: qe(Se(pt, te)),
3298
+ role: typeof oe == "string" && oe !== "" ? oe : "presentation"
3299
+ }, ie, R), !i && !h ? {
3300
3300
  tabIndex: 0
3301
3301
  } : {}), ut);
3302
3302
  };
3303
- }, [_, me, Fe, Te, Zt, T, H, B, oe, h, P, i]), bi = U(function(C) {
3304
- C.stopPropagation();
3305
- }, []), Si = le(function() {
3303
+ }, [R, me, Pe, Te, en, T, H, q, te, h, P, i]), bi = U(function(_) {
3304
+ _.stopPropagation();
3305
+ }, []), Si = re(function() {
3306
3306
  return function() {
3307
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = C.refKey, ne = $ === void 0 ? "ref" : $, ae = C.onChange, ve = C.onClick, ze = it(C, ya), $e = Mt({
3307
+ var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.onChange, ve = _.onClick, ze = it(_, ya), Me = Ot({
3308
3308
  accept: ce,
3309
3309
  multiple: r,
3310
3310
  type: "file",
@@ -3320,59 +3320,59 @@ function ni() {
3320
3320
  width: "1px",
3321
3321
  whiteSpace: "nowrap"
3322
3322
  },
3323
- onChange: Ae(Se(ae, oe)),
3324
- onClick: Ae(Se(ve, bi)),
3323
+ onChange: $e(Se(oe, te)),
3324
+ onClick: $e(Se(ve, bi)),
3325
3325
  tabIndex: -1
3326
- }, ne, q);
3327
- return Z(Z({}, $e), ze);
3326
+ }, ie, B);
3327
+ return J(J({}, Me), ze);
3328
3328
  };
3329
- }, [q, t, r, oe, i]);
3330
- return Z(Z({}, ie), {}, {
3329
+ }, [B, t, r, te, i]);
3330
+ return J(J({}, le), {}, {
3331
3331
  isFocused: y && !i,
3332
3332
  getRootProps: yi,
3333
3333
  getInputProps: Si,
3334
- rootRef: _,
3335
- inputRef: q,
3336
- open: Ae(S)
3334
+ rootRef: R,
3335
+ inputRef: B,
3336
+ open: $e(C)
3337
3337
  });
3338
3338
  }
3339
3339
  function Pa(e, n) {
3340
3340
  switch (n.type) {
3341
3341
  case "focus":
3342
- return Z(Z({}, e), {}, {
3342
+ return J(J({}, e), {}, {
3343
3343
  isFocused: !0
3344
3344
  });
3345
3345
  case "blur":
3346
- return Z(Z({}, e), {}, {
3346
+ return J(J({}, e), {}, {
3347
3347
  isFocused: !1
3348
3348
  });
3349
3349
  case "openDialog":
3350
- return Z(Z({}, Ot), {}, {
3350
+ return J(J({}, jt), {}, {
3351
3351
  isFileDialogActive: !0
3352
3352
  });
3353
3353
  case "closeDialog":
3354
- return Z(Z({}, e), {}, {
3354
+ return J(J({}, e), {}, {
3355
3355
  isFileDialogActive: !1
3356
3356
  });
3357
3357
  case "setDraggedFiles":
3358
- return Z(Z({}, e), {}, {
3358
+ return J(J({}, e), {}, {
3359
3359
  isDragActive: n.isDragActive,
3360
3360
  isDragAccept: n.isDragAccept,
3361
3361
  isDragReject: n.isDragReject
3362
3362
  });
3363
3363
  case "setFiles":
3364
- return Z(Z({}, e), {}, {
3364
+ return J(J({}, e), {}, {
3365
3365
  acceptedFiles: n.acceptedFiles,
3366
3366
  fileRejections: n.fileRejections,
3367
3367
  isDragReject: n.isDragReject
3368
3368
  });
3369
3369
  case "reset":
3370
- return Z({}, Ot);
3370
+ return J({}, jt);
3371
3371
  default:
3372
3372
  return e;
3373
3373
  }
3374
3374
  }
3375
- function kn() {
3375
+ function En() {
3376
3376
  }
3377
3377
  const Ia = () => {
3378
3378
  const e = (r, s) => {
@@ -3417,7 +3417,7 @@ const Ia = () => {
3417
3417
  [i]
3418
3418
  );
3419
3419
  return { acceptedFiles: n, fileRejections: t, onFileUpload: o, removeFile: (r) => i({ type: "remove-accepted", payload: r }), removeRejectedFile: (r) => i({ type: "remove-rejected", payload: r }) };
3420
- }, el = ({
3420
+ }, nl = ({
3421
3421
  accept: e,
3422
3422
  error: n,
3423
3423
  files: t,
@@ -3428,17 +3428,17 @@ const Ia = () => {
3428
3428
  minSize: r,
3429
3429
  onFileUpload: s,
3430
3430
  onRemoveFile: c,
3431
- rejectedFiles: p
3431
+ rejectedFiles: d
3432
3432
  }) => {
3433
- const f = Ia(), g = t ?? f.acceptedFiles, u = p ?? f.fileRejections, m = s ?? f.onFileUpload, v = (w) => {
3433
+ const f = Ia(), g = t ?? f.acceptedFiles, p = d ?? f.fileRejections, m = s ?? f.onFileUpload, v = (w) => {
3434
3434
  c ? c(w) : "file" in w && "errors" in w ? f.removeRejectedFile(w) : f.removeFile(w);
3435
- }, { getRootProps: b, getInputProps: x } = ni({
3435
+ }, { getRootProps: S, getInputProps: x } = ni({
3436
3436
  accept: e,
3437
3437
  maxFiles: a,
3438
3438
  maxSize: l,
3439
3439
  minSize: r,
3440
3440
  onDrop: m
3441
- }), E = et();
3441
+ }), b = et();
3442
3442
  return /* @__PURE__ */ G(
3443
3443
  "div",
3444
3444
  {
@@ -3446,52 +3446,52 @@ const Ia = () => {
3446
3446
  "is-error": !!n
3447
3447
  }),
3448
3448
  children: [
3449
- o && /* @__PURE__ */ d($i, { id: E, children: o }),
3450
- i && /* @__PURE__ */ d("p", { className: "p-form-help-text", children: i }),
3449
+ o && /* @__PURE__ */ u($i, { id: b, children: o }),
3450
+ i && /* @__PURE__ */ u("p", { className: "p-form-help-text", children: i }),
3451
3451
  /* @__PURE__ */ G("div", { className: "p-form__control", children: [
3452
- !a || g.length + u.length < a ? /* @__PURE__ */ d("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ G(
3452
+ !a || g.length + p.length < a ? /* @__PURE__ */ u("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ G(
3453
3453
  "div",
3454
3454
  {
3455
- ...b(),
3456
- "aria-labelledby": o ? E : void 0,
3455
+ ...S(),
3456
+ "aria-labelledby": o ? b : void 0,
3457
3457
  className: "file-upload",
3458
3458
  "data-testid": "file-upload",
3459
3459
  children: [
3460
- /* @__PURE__ */ d("input", { ...x() }),
3461
- /* @__PURE__ */ d("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
3460
+ /* @__PURE__ */ u("input", { ...x() }),
3461
+ /* @__PURE__ */ u("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
3462
3462
  ]
3463
3463
  }
3464
3464
  ) }) : null,
3465
3465
  /* @__PURE__ */ G("div", { className: "file-upload__files-list", children: [
3466
- u && u.map((w) => /* @__PURE__ */ d("span", { className: "is-error", children: /* @__PURE__ */ G("div", { className: "file-upload__file is-rejected", children: [
3466
+ p && p.map((w) => /* @__PURE__ */ u("span", { className: "is-error", children: /* @__PURE__ */ G("div", { className: "file-upload__file is-rejected", children: [
3467
3467
  w.file.name,
3468
- /* @__PURE__ */ d(
3469
- _e,
3468
+ /* @__PURE__ */ u(
3469
+ Re,
3470
3470
  {
3471
3471
  appearance: "base",
3472
3472
  className: "file-upload__file-remove-button",
3473
3473
  onClick: () => v(w),
3474
3474
  type: "button",
3475
- children: /* @__PURE__ */ d(Re, { name: "close", children: "Remove file" })
3475
+ children: /* @__PURE__ */ u(Ce, { name: "close", children: "Remove file" })
3476
3476
  }
3477
3477
  )
3478
3478
  ] }) }, w.file.name)),
3479
3479
  g && g.map((w) => /* @__PURE__ */ G("div", { className: "file-upload__file", children: [
3480
3480
  w.name,
3481
- w.percentUploaded !== void 0 ? /* @__PURE__ */ d(Bi, { percentComplete: w.percentUploaded }) : /* @__PURE__ */ d(
3482
- _e,
3481
+ w.percentUploaded !== void 0 ? /* @__PURE__ */ u(Bi, { percentComplete: w.percentUploaded }) : /* @__PURE__ */ u(
3482
+ Re,
3483
3483
  {
3484
3484
  appearance: "base",
3485
3485
  className: "file-upload__file-remove-button",
3486
3486
  onClick: () => v(w),
3487
3487
  type: "button",
3488
- children: /* @__PURE__ */ d(Re, { name: "close", children: "Remove file" })
3488
+ children: /* @__PURE__ */ u(Ce, { name: "close", children: "Remove file" })
3489
3489
  }
3490
3490
  )
3491
3491
  ] }, w.name))
3492
3492
  ] }),
3493
3493
  n ? /* @__PURE__ */ G("p", { className: "p-form-validation__message", children: [
3494
- /* @__PURE__ */ d("strong", { children: "Error: " }),
3494
+ /* @__PURE__ */ u("strong", { children: "Error: " }),
3495
3495
  n
3496
3496
  ] }) : null
3497
3497
  ] })
@@ -3523,45 +3523,45 @@ const Ia = () => {
3523
3523
  groupFn: s = Aa,
3524
3524
  ...c
3525
3525
  }) => {
3526
- const p = le(
3526
+ const d = re(
3527
3527
  () => new Set(n.map((x) => x.value)),
3528
3528
  [n]
3529
- ), f = le(
3529
+ ), f = re(
3530
3530
  () => new Set(t.map((x) => x.value)),
3531
3531
  [t]
3532
- ), [g, u] = fe(new Set(p));
3533
- ue(() => {
3534
- a && u(new Set(p));
3532
+ ), [g, p] = de(new Set(d));
3533
+ ge(() => {
3534
+ a && p(new Set(d));
3535
3535
  }, [a]);
3536
- const m = le(() => e.some((x) => x.group), [e]), v = le(
3536
+ const m = re(() => e.some((x) => x.group), [e]), v = re(
3537
3537
  () => m ? s(e) : [{ group: "Ungrouped", items: e }],
3538
3538
  [e, s]
3539
- ), b = (x) => {
3540
- const { checked: E, value: w } = x.target, F = e.find((h) => `${h.value}` === w);
3541
- if (F) {
3542
- const h = E ? [...n, F] : n.filter((P) => `${P.value}` !== w) ?? [];
3539
+ ), S = (x) => {
3540
+ const { checked: b, value: w } = x.target, E = e.find((h) => `${h.value}` === w);
3541
+ if (E) {
3542
+ const h = b ? [...n, E] : n.filter((P) => `${P.value}` !== w) ?? [];
3543
3543
  o(h);
3544
3544
  }
3545
3545
  };
3546
- return /* @__PURE__ */ d(qn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ G("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3546
+ return /* @__PURE__ */ u(qn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ G("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3547
3547
  i || null,
3548
- v.map(({ group: x, items: E }) => /* @__PURE__ */ G("div", { className: "multi-select__group", children: [
3549
- m ? /* @__PURE__ */ d("h5", { className: "multi-select__dropdown-header", children: x }) : null,
3550
- /* @__PURE__ */ d("ul", { className: "multi-select__dropdown-list", "aria-label": x, children: E.sort(r).sort(Da(g)).map((w) => /* @__PURE__ */ d("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ d(
3548
+ v.map(({ group: x, items: b }) => /* @__PURE__ */ G("div", { className: "multi-select__group", children: [
3549
+ m ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: x }) : null,
3550
+ /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": x, children: b.sort(r).sort(Da(g)).map((w) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
3551
3551
  Mi,
3552
3552
  {
3553
3553
  disabled: f.has(w.value),
3554
3554
  label: w.label,
3555
- checked: p.has(w.value),
3555
+ checked: d.has(w.value),
3556
3556
  value: w.value,
3557
- onChange: b
3557
+ onChange: S
3558
3558
  },
3559
3559
  w.value
3560
3560
  ) }, w.value)) })
3561
3561
  ] }, x)),
3562
- l ? /* @__PURE__ */ d("div", { className: "multi-select__footer", children: l }) : null
3562
+ l ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: l }) : null
3563
3563
  ] }) });
3564
- }, tl = ({
3564
+ }, il = ({
3565
3565
  disabled: e,
3566
3566
  selectedItems: n = [],
3567
3567
  label: t,
@@ -3572,101 +3572,101 @@ const Ia = () => {
3572
3572
  disabledItems: r = [],
3573
3573
  dropdownHeader: s,
3574
3574
  dropdownFooter: c,
3575
- variant: p = "search"
3575
+ variant: d = "search"
3576
3576
  }) => {
3577
3577
  const f = Oi(() => {
3578
- u(!1), v("");
3578
+ p(!1), v("");
3579
3579
  });
3580
3580
  ji(() => {
3581
- u(!1), v("");
3581
+ p(!1), v("");
3582
3582
  });
3583
- const [g, u] = fe(!1), [m, v] = fe("");
3584
- ue(() => {
3583
+ const [g, p] = de(!1), [m, v] = de("");
3584
+ ge(() => {
3585
3585
  g || v("");
3586
3586
  }, [g]);
3587
- const [b, x] = fe([]), E = n || b, w = (z) => {
3588
- const X = Array.from(new Set(z));
3589
- x(X), i && i(X);
3590
- }, F = et(), h = et(), P = E.filter(
3591
- (z) => l.some((X) => X.value === z.value)
3592
- ).sort(ii).map((z) => z.label).join(", ");
3593
- return /* @__PURE__ */ d("div", { ref: f, children: /* @__PURE__ */ G("div", { className: "multi-select", children: [
3594
- p === "search" ? /* @__PURE__ */ d(
3587
+ const [S, x] = de([]), b = n || S, w = (N) => {
3588
+ const Y = Array.from(new Set(N));
3589
+ x(Y), i && i(Y);
3590
+ }, E = et(), h = et(), P = b.filter(
3591
+ (N) => l.some((Y) => Y.value === N.value)
3592
+ ).sort(ii).map((N) => N.label).join(", ");
3593
+ return /* @__PURE__ */ u("div", { ref: f, children: /* @__PURE__ */ G("div", { className: "multi-select", children: [
3594
+ d === "search" ? /* @__PURE__ */ u(
3595
3595
  jn,
3596
3596
  {
3597
3597
  externallyControlled: !0,
3598
- "aria-controls": F,
3598
+ "aria-controls": E,
3599
3599
  "aria-expanded": g,
3600
3600
  id: h,
3601
3601
  role: "combobox",
3602
3602
  "aria-label": t || o || "Search",
3603
3603
  disabled: e,
3604
3604
  autoComplete: "off",
3605
- onChange: (z) => {
3606
- v(z), u(!0);
3605
+ onChange: (N) => {
3606
+ v(N), p(!0);
3607
3607
  },
3608
- onFocus: () => u(!0),
3608
+ onFocus: () => p(!0),
3609
3609
  placeholder: o ?? "Search",
3610
3610
  required: a,
3611
3611
  type: "text",
3612
3612
  value: m,
3613
3613
  className: "multi-select__input"
3614
3614
  }
3615
- ) : /* @__PURE__ */ d(
3615
+ ) : /* @__PURE__ */ u(
3616
3616
  "button",
3617
3617
  {
3618
3618
  role: "combobox",
3619
3619
  type: "button",
3620
3620
  "aria-label": t || o || "Select items",
3621
- "aria-controls": F,
3621
+ "aria-controls": E,
3622
3622
  "aria-expanded": g,
3623
3623
  className: "multi-select__select-button",
3624
3624
  onClick: () => {
3625
- u((z) => !z);
3625
+ p((N) => !N);
3626
3626
  },
3627
- children: /* @__PURE__ */ d("span", { className: "multi-select__condensed-text", children: E.length > 0 ? P : o ?? "Select items" })
3627
+ children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: b.length > 0 ? P : o ?? "Select items" })
3628
3628
  }
3629
3629
  ),
3630
- /* @__PURE__ */ d(
3630
+ /* @__PURE__ */ u(
3631
3631
  $a,
3632
3632
  {
3633
- id: F,
3633
+ id: E,
3634
3634
  isOpen: g,
3635
3635
  items: m.length > 0 ? l.filter(
3636
- (z) => z.label.toLowerCase().includes(m.toLowerCase())
3636
+ (N) => N.label.toLowerCase().includes(m.toLowerCase())
3637
3637
  ) : l,
3638
- selectedItems: E,
3638
+ selectedItems: b,
3639
3639
  disabledItems: r,
3640
3640
  header: s,
3641
3641
  updateItems: w,
3642
3642
  footer: c || /* @__PURE__ */ G(be, { children: [
3643
- /* @__PURE__ */ d(
3644
- _e,
3643
+ /* @__PURE__ */ u(
3644
+ Re,
3645
3645
  {
3646
3646
  appearance: "link",
3647
3647
  onClick: () => {
3648
- const z = l.filter(
3649
- (X) => !r.some(
3650
- (ee) => ee.value === X.value
3648
+ const N = l.filter(
3649
+ (Y) => !r.some(
3650
+ (Z) => Z.value === Y.value
3651
3651
  )
3652
3652
  );
3653
- w([...E, ...z]);
3653
+ w([...b, ...N]);
3654
3654
  },
3655
3655
  type: "button",
3656
3656
  children: "Select all"
3657
3657
  }
3658
3658
  ),
3659
- /* @__PURE__ */ d(
3660
- _e,
3659
+ /* @__PURE__ */ u(
3660
+ Re,
3661
3661
  {
3662
3662
  appearance: "link",
3663
3663
  onClick: () => {
3664
- const z = E.filter(
3665
- (X) => r.some(
3666
- (ee) => ee.value === X.value
3664
+ const N = b.filter(
3665
+ (Y) => r.some(
3666
+ (Z) => Z.value === Y.value
3667
3667
  )
3668
3668
  );
3669
- w(z);
3669
+ w(N);
3670
3670
  },
3671
3671
  type: "button",
3672
3672
  children: "Clear"
@@ -3684,7 +3684,7 @@ const Ia = () => {
3684
3684
  children: n,
3685
3685
  variant: t,
3686
3686
  ...i
3687
- }) => /* @__PURE__ */ d(oi.Provider, { value: { variant: t }, children: /* @__PURE__ */ d(
3687
+ }) => /* @__PURE__ */ u(oi.Provider, { value: { variant: t }, children: /* @__PURE__ */ u(
3688
3688
  "table",
3689
3689
  {
3690
3690
  ...i,
@@ -3693,11 +3693,11 @@ const Ia = () => {
3693
3693
  }),
3694
3694
  children: n
3695
3695
  }
3696
- ) }), Oa = ({ columns: e }) => /* @__PURE__ */ d(be, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ d("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ d(
3696
+ ) }), Oa = ({ columns: e }) => /* @__PURE__ */ u(be, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ u("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ u(
3697
3697
  "td",
3698
3698
  {
3699
3699
  className: L(i.id, "u-text-overflow-clip"),
3700
- children: /* @__PURE__ */ d(zn, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3700
+ children: /* @__PURE__ */ u(zn, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3701
3701
  },
3702
3702
  o
3703
3703
  )) }, t)) }), ja = ({
@@ -3706,8 +3706,8 @@ const Ia = () => {
3706
3706
  }) => {
3707
3707
  const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
3708
3708
  return /* @__PURE__ */ G(be, { children: [
3709
- /* @__PURE__ */ d("caption", { className: "u-visually-hidden", children: "Loading..." }),
3710
- /* @__PURE__ */ d(ri, { "aria-busy": "true", className: e, children: /* @__PURE__ */ d(Oa, { columns: t }) })
3709
+ /* @__PURE__ */ u("caption", { className: "u-visually-hidden", children: "Loading..." }),
3710
+ /* @__PURE__ */ u(ri, { "aria-busy": "true", className: e, children: /* @__PURE__ */ u(Oa, { columns: t }) })
3711
3711
  ] });
3712
3712
  }, ri = ({
3713
3713
  className: e,
@@ -3715,23 +3715,23 @@ const Ia = () => {
3715
3715
  style: t,
3716
3716
  ...i
3717
3717
  }) => {
3718
- const { variant: o } = Nt(oi), a = ge(null), [l, r] = fe(null), s = U(() => {
3719
- var p, f;
3718
+ const { variant: o } = Ht(oi), a = fe(null), [l, r] = de(null), s = U(() => {
3719
+ var d, f;
3720
3720
  if (window.innerWidth > Ma.small) {
3721
- const g = (f = (p = a.current) == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : f.call(p).top;
3721
+ const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
3722
3722
  g && r(g + 1);
3723
3723
  } else
3724
3724
  r(null);
3725
3725
  }, []);
3726
- Ht(() => {
3726
+ qt(() => {
3727
3727
  s();
3728
- }, [s]), ue(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3729
- const c = le(() => o === "full-height" && l ? {
3728
+ }, [s]), ge(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3729
+ const c = re(() => o === "full-height" && l ? {
3730
3730
  height: `calc(100vh - ${l}px)`,
3731
3731
  minHeight: `calc(100vh - ${l}px)`,
3732
3732
  ...t
3733
3733
  } : t, [o, l, t]);
3734
- return /* @__PURE__ */ d(
3734
+ return /* @__PURE__ */ u(
3735
3735
  "tbody",
3736
3736
  {
3737
3737
  className: e,
@@ -3744,7 +3744,7 @@ const Ia = () => {
3744
3744
  };
3745
3745
  ai.Body = ri;
3746
3746
  ai.Loading = ja;
3747
- const li = ({ children: e }) => /* @__PURE__ */ d("caption", { children: /* @__PURE__ */ d("div", { className: "p-strip", children: e }) }), Ta = ({ children: e }) => /* @__PURE__ */ d("div", { className: "row", children: /* @__PURE__ */ d("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ d("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), za = ({ children: e }) => /* @__PURE__ */ d("div", { className: "row", children: /* @__PURE__ */ d("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ d("p", { children: e }) }) });
3747
+ const li = ({ children: e }) => /* @__PURE__ */ u("caption", { children: /* @__PURE__ */ u("div", { className: "p-strip", children: e }) }), Ta = ({ children: e }) => /* @__PURE__ */ u("div", { className: "row", children: /* @__PURE__ */ u("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ u("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), za = ({ children: e }) => /* @__PURE__ */ u("div", { className: "row", children: /* @__PURE__ */ u("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ u("p", { children: e }) }) });
3748
3748
  li.Title = Ta;
3749
3749
  li.Description = za;
3750
3750
  /**
@@ -3757,14 +3757,14 @@ li.Description = za;
3757
3757
  *
3758
3758
  * @license MIT
3759
3759
  */
3760
- function Ee(e, n) {
3760
+ function ke(e, n) {
3761
3761
  return typeof e == "function" ? e(n) : e;
3762
3762
  }
3763
3763
  function xe(e, n) {
3764
3764
  return (t) => {
3765
3765
  n.setState((i) => ({
3766
3766
  ...i,
3767
- [e]: Ee(t, i[e])
3767
+ [e]: ke(t, i[e])
3768
3768
  }));
3769
3769
  };
3770
3770
  }
@@ -3790,17 +3790,17 @@ function D(e, n, t) {
3790
3790
  let l;
3791
3791
  t.key && t.debug && (l = Date.now());
3792
3792
  const r = e(a);
3793
- if (!(r.length !== i.length || r.some((p, f) => i[f] !== p)))
3793
+ if (!(r.length !== i.length || r.some((d, f) => i[f] !== d)))
3794
3794
  return o;
3795
3795
  i = r;
3796
3796
  let c;
3797
3797
  if (t.key && t.debug && (c = Date.now()), o = n(...r), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
3798
- const p = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16, u = (m, v) => {
3798
+ const d = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16, p = (m, v) => {
3799
3799
  for (m = String(m); m.length < v; )
3800
3800
  m = " " + m;
3801
3801
  return m;
3802
3802
  };
3803
- console.info(`%c⏱ ${u(f, 5)} /${u(p, 5)} ms`, `
3803
+ console.info(`%c⏱ ${p(f, 5)} /${p(d, 5)} ms`, `
3804
3804
  font-size: .6rem;
3805
3805
  font-weight: bold;
3806
3806
  color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
@@ -3847,30 +3847,30 @@ function Na(e, n, t, i) {
3847
3847
  ...e._getDefaultColumnDef(),
3848
3848
  ...n
3849
3849
  }, s = r.accessorKey;
3850
- let c = (o = (a = r.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof r.header == "string" ? r.header : void 0, p;
3851
- if (r.accessorFn ? p = r.accessorFn : s && (s.includes(".") ? p = (g) => {
3852
- let u = g;
3850
+ let c = (o = (a = r.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof r.header == "string" ? r.header : void 0, d;
3851
+ if (r.accessorFn ? d = r.accessorFn : s && (s.includes(".") ? d = (g) => {
3852
+ let p = g;
3853
3853
  for (const v of s.split(".")) {
3854
3854
  var m;
3855
- u = (m = u) == null ? void 0 : m[v], process.env.NODE_ENV !== "production" && u === void 0 && console.warn(`"${v}" in deeply nested key "${s}" returned undefined.`);
3855
+ p = (m = p) == null ? void 0 : m[v], process.env.NODE_ENV !== "production" && p === void 0 && console.warn(`"${v}" in deeply nested key "${s}" returned undefined.`);
3856
3856
  }
3857
- return u;
3858
- } : p = (g) => g[r.accessorKey]), !c)
3857
+ return p;
3858
+ } : d = (g) => g[r.accessorKey]), !c)
3859
3859
  throw process.env.NODE_ENV !== "production" ? new Error(r.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
3860
3860
  let f = {
3861
3861
  id: `${String(c)}`,
3862
- accessorFn: p,
3862
+ accessorFn: d,
3863
3863
  parent: i,
3864
3864
  depth: t,
3865
3865
  columnDef: r,
3866
3866
  columns: [],
3867
3867
  getFlatColumns: D(() => [!0], () => {
3868
3868
  var g;
3869
- return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((u) => u.getFlatColumns())];
3869
+ return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((p) => p.getFlatColumns())];
3870
3870
  }, A(e.options, "debugColumns", "column.getFlatColumns")),
3871
3871
  getLeafColumns: D(() => [e._getOrderColumnsFn()], (g) => {
3872
- var u;
3873
- if ((u = f.columns) != null && u.length) {
3872
+ var p;
3873
+ if ((p = f.columns) != null && p.length) {
3874
3874
  let m = f.columns.flatMap((v) => v.getLeafColumns());
3875
3875
  return g(m);
3876
3876
  }
@@ -3936,62 +3936,62 @@ const Ha = {
3936
3936
  return !((i = t.subHeaders) != null && i.length);
3937
3937
  }), A(e.options, se, "getRightLeafHeaders")), e.getLeafHeaders = D(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3938
3938
  var o, a, l, r, s, c;
3939
- return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(l = (r = t[0]) == null ? void 0 : r.headers) != null ? l : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((p) => p.getLeafHeaders()).flat();
3939
+ return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(l = (r = t[0]) == null ? void 0 : r.headers) != null ? l : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
3940
3940
  }, A(e.options, se, "getLeafHeaders"));
3941
3941
  }
3942
3942
  };
3943
3943
  function Xe(e, n, t, i) {
3944
3944
  var o, a;
3945
3945
  let l = 0;
3946
- const r = function(g, u) {
3947
- u === void 0 && (u = 1), l = Math.max(l, u), g.filter((m) => m.getIsVisible()).forEach((m) => {
3946
+ const r = function(g, p) {
3947
+ p === void 0 && (p = 1), l = Math.max(l, p), g.filter((m) => m.getIsVisible()).forEach((m) => {
3948
3948
  var v;
3949
- (v = m.columns) != null && v.length && r(m.columns, u + 1);
3949
+ (v = m.columns) != null && v.length && r(m.columns, p + 1);
3950
3950
  }, 0);
3951
3951
  };
3952
3952
  r(e);
3953
3953
  let s = [];
3954
- const c = (g, u) => {
3954
+ const c = (g, p) => {
3955
3955
  const m = {
3956
- depth: u,
3957
- id: [i, `${u}`].filter(Boolean).join("_"),
3956
+ depth: p,
3957
+ id: [i, `${p}`].filter(Boolean).join("_"),
3958
3958
  headers: []
3959
3959
  }, v = [];
3960
- g.forEach((b) => {
3961
- const x = [...v].reverse()[0], E = b.column.depth === m.depth;
3962
- let w, F = !1;
3963
- if (E && b.column.parent ? w = b.column.parent : (w = b.column, F = !0), x && (x == null ? void 0 : x.column) === w)
3964
- x.subHeaders.push(b);
3960
+ g.forEach((S) => {
3961
+ const x = [...v].reverse()[0], b = S.column.depth === m.depth;
3962
+ let w, E = !1;
3963
+ if (b && S.column.parent ? w = S.column.parent : (w = S.column, E = !0), x && (x == null ? void 0 : x.column) === w)
3964
+ x.subHeaders.push(S);
3965
3965
  else {
3966
3966
  const h = Fn(t, w, {
3967
- id: [i, u, w.id, b == null ? void 0 : b.id].filter(Boolean).join("_"),
3968
- isPlaceholder: F,
3969
- placeholderId: F ? `${v.filter((P) => P.column === w).length}` : void 0,
3970
- depth: u,
3967
+ id: [i, p, w.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
3968
+ isPlaceholder: E,
3969
+ placeholderId: E ? `${v.filter((P) => P.column === w).length}` : void 0,
3970
+ depth: p,
3971
3971
  index: v.length
3972
3972
  });
3973
- h.subHeaders.push(b), v.push(h);
3973
+ h.subHeaders.push(S), v.push(h);
3974
3974
  }
3975
- m.headers.push(b), b.headerGroup = m;
3976
- }), s.push(m), u > 0 && c(v, u - 1);
3977
- }, p = n.map((g, u) => Fn(t, g, {
3975
+ m.headers.push(S), S.headerGroup = m;
3976
+ }), s.push(m), p > 0 && c(v, p - 1);
3977
+ }, d = n.map((g, p) => Fn(t, g, {
3978
3978
  depth: l,
3979
- index: u
3979
+ index: p
3980
3980
  }));
3981
- c(p, l - 1), s.reverse();
3981
+ c(d, l - 1), s.reverse();
3982
3982
  const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
3983
- let v = 0, b = 0, x = [0];
3983
+ let v = 0, S = 0, x = [0];
3984
3984
  m.subHeaders && m.subHeaders.length ? (x = [], f(m.subHeaders).forEach((w) => {
3985
3985
  let {
3986
- colSpan: F,
3986
+ colSpan: E,
3987
3987
  rowSpan: h
3988
3988
  } = w;
3989
- v += F, x.push(h);
3989
+ v += E, x.push(h);
3990
3990
  })) : v = 1;
3991
- const E = Math.min(...x);
3992
- return b = b + E, m.colSpan = v, m.rowSpan = b, {
3991
+ const b = Math.min(...x);
3992
+ return S = S + b, m.colSpan = v, m.rowSpan = S, {
3993
3993
  colSpan: v,
3994
- rowSpan: b
3994
+ rowSpan: S
3995
3995
  };
3996
3996
  });
3997
3997
  return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
@@ -4029,14 +4029,14 @@ const ci = (e, n, t, i, o, a, l) => {
4029
4029
  getParentRows: () => {
4030
4030
  let s = [], c = r;
4031
4031
  for (; ; ) {
4032
- const p = c.getParentRow();
4033
- if (!p) break;
4034
- s.push(p), c = p;
4032
+ const d = c.getParentRow();
4033
+ if (!d) break;
4034
+ s.push(d), c = d;
4035
4035
  }
4036
4036
  return s.reverse();
4037
4037
  },
4038
4038
  getAllCells: D(() => [e.getAllLeafColumns()], (s) => s.map((c) => La(e, r, c, c.id)), A(e.options, "debugRows", "getAllCells")),
4039
- _getAllCellsByColumnId: D(() => [r.getAllCells()], (s) => s.reduce((c, p) => (c[p.column.id] = p, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
4039
+ _getAllCellsByColumnId: D(() => [r.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
4040
4040
  };
4041
4041
  for (let s = 0; s < e._features.length; s++) {
4042
4042
  const c = e._features[s];
@@ -4085,12 +4085,12 @@ const vi = (e, n, t) => e.getValue(n) === t;
4085
4085
  vi.autoRemove = (e) => ye(e);
4086
4086
  const xi = (e, n, t) => e.getValue(n) == t;
4087
4087
  xi.autoRemove = (e) => ye(e);
4088
- const Xt = (e, n, t) => {
4088
+ const Qt = (e, n, t) => {
4089
4089
  let [i, o] = t;
4090
4090
  const a = e.getValue(n);
4091
4091
  return a >= i && a <= o;
4092
4092
  };
4093
- Xt.resolveFilterValue = (e) => {
4093
+ Qt.resolveFilterValue = (e) => {
4094
4094
  let [n, t] = e, i = typeof n != "number" ? parseFloat(n) : n, o = typeof t != "number" ? parseFloat(t) : t, a = n === null || Number.isNaN(i) ? -1 / 0 : i, l = t === null || Number.isNaN(o) ? 1 / 0 : o;
4095
4095
  if (a > l) {
4096
4096
  const r = a;
@@ -4098,8 +4098,8 @@ Xt.resolveFilterValue = (e) => {
4098
4098
  }
4099
4099
  return [a, l];
4100
4100
  };
4101
- Xt.autoRemove = (e) => ye(e) || ye(e[0]) && ye(e[1]);
4102
- const Ce = {
4101
+ Qt.autoRemove = (e) => ye(e) || ye(e[0]) && ye(e[1]);
4102
+ const _e = {
4103
4103
  includesString: pi,
4104
4104
  includesStringSensitive: ui,
4105
4105
  equalsString: di,
@@ -4108,7 +4108,7 @@ const Ce = {
4108
4108
  arrIncludesSome: mi,
4109
4109
  equals: vi,
4110
4110
  weakEquals: xi,
4111
- inNumberRange: Xt
4111
+ inNumberRange: Qt
4112
4112
  };
4113
4113
  function ye(e) {
4114
4114
  return e == null || e === "";
@@ -4129,12 +4129,12 @@ const Ga = {
4129
4129
  createColumn: (e, n) => {
4130
4130
  e.getAutoFilterFn = () => {
4131
4131
  const t = n.getCoreRowModel().flatRows[0], i = t == null ? void 0 : t.getValue(e.id);
4132
- return typeof i == "string" ? Ce.includesString : typeof i == "number" ? Ce.inNumberRange : typeof i == "boolean" || i !== null && typeof i == "object" ? Ce.equals : Array.isArray(i) ? Ce.arrIncludes : Ce.weakEquals;
4132
+ return typeof i == "string" ? _e.includesString : typeof i == "number" ? _e.inNumberRange : typeof i == "boolean" || i !== null && typeof i == "object" ? _e.equals : Array.isArray(i) ? _e.arrIncludes : _e.weakEquals;
4133
4133
  }, e.getFilterFn = () => {
4134
4134
  var t, i;
4135
4135
  return at(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
4136
4136
  // @ts-ignore
4137
- (t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t : Ce[e.columnDef.filterFn]
4137
+ (t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t : _e[e.columnDef.filterFn]
4138
4138
  );
4139
4139
  }, e.getCanFilter = () => {
4140
4140
  var t, i, o;
@@ -4147,10 +4147,10 @@ const Ga = {
4147
4147
  return (t = (i = n.getState().columnFilters) == null ? void 0 : i.findIndex((o) => o.id === e.id)) != null ? t : -1;
4148
4148
  }, e.setFilterValue = (t) => {
4149
4149
  n.setColumnFilters((i) => {
4150
- const o = e.getFilterFn(), a = i == null ? void 0 : i.find((p) => p.id === e.id), l = Ee(t, a ? a.value : void 0);
4150
+ const o = e.getFilterFn(), a = i == null ? void 0 : i.find((d) => d.id === e.id), l = ke(t, a ? a.value : void 0);
4151
4151
  if (Pn(o, l, e)) {
4152
4152
  var r;
4153
- return (r = i == null ? void 0 : i.filter((p) => p.id !== e.id)) != null ? r : [];
4153
+ return (r = i == null ? void 0 : i.filter((d) => d.id !== e.id)) != null ? r : [];
4154
4154
  }
4155
4155
  const s = {
4156
4156
  id: e.id,
@@ -4158,7 +4158,7 @@ const Ga = {
4158
4158
  };
4159
4159
  if (a) {
4160
4160
  var c;
4161
- return (c = i == null ? void 0 : i.map((p) => p.id === e.id ? s : p)) != null ? c : [];
4161
+ return (c = i == null ? void 0 : i.map((d) => d.id === e.id ? s : d)) != null ? c : [];
4162
4162
  }
4163
4163
  return i != null && i.length ? [...i, s] : [s];
4164
4164
  });
@@ -4171,7 +4171,7 @@ const Ga = {
4171
4171
  e.setColumnFilters = (n) => {
4172
4172
  const t = e.getAllLeafColumns(), i = (o) => {
4173
4173
  var a;
4174
- return (a = Ee(n, o)) == null ? void 0 : a.filter((l) => {
4174
+ return (a = ke(n, o)) == null ? void 0 : a.filter((l) => {
4175
4175
  const r = t.find((s) => s.id === l.id);
4176
4176
  if (r) {
4177
4177
  const s = r.getFilterFn();
@@ -4340,7 +4340,7 @@ const nr = {
4340
4340
  else {
4341
4341
  const l = [...n], r = [...o];
4342
4342
  for (; r.length && l.length; ) {
4343
- const s = l.shift(), c = r.findIndex((p) => p.id === s);
4343
+ const s = l.shift(), c = r.findIndex((d) => d.id === s);
4344
4344
  c > -1 && a.push(r.splice(c, 1)[0]);
4345
4345
  }
4346
4346
  a = [...a, ...r];
@@ -4372,10 +4372,10 @@ const nr = {
4372
4372
  };
4373
4373
  }
4374
4374
  if (t === "left") {
4375
- var c, p;
4375
+ var c, d;
4376
4376
  return {
4377
4377
  left: [...((c = o == null ? void 0 : o.left) != null ? c : []).filter((f) => !(i != null && i.includes(f))), ...i],
4378
- right: ((p = o == null ? void 0 : o.right) != null ? p : []).filter((f) => !(i != null && i.includes(f)))
4378
+ right: ((d = o == null ? void 0 : o.right) != null ? d : []).filter((f) => !(i != null && i.includes(f)))
4379
4379
  };
4380
4380
  }
4381
4381
  return {
@@ -4490,27 +4490,27 @@ const nr = {
4490
4490
  }, e.getResizeHandler = (t) => {
4491
4491
  const i = n.getColumn(e.column.id), o = i == null ? void 0 : i.getCanResize();
4492
4492
  return (a) => {
4493
- if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
4493
+ if (!i || !o || (a.persist == null || a.persist(), kt(a) && a.touches && a.touches.length > 1))
4494
4494
  return;
4495
- const l = e.getSize(), r = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, p = (x, E) => {
4496
- typeof E == "number" && (n.setColumnSizingInfo((w) => {
4497
- var F, h;
4498
- const P = n.options.columnResizeDirection === "rtl" ? -1 : 1, z = (E - ((F = w == null ? void 0 : w.startOffset) != null ? F : 0)) * P, X = Math.max(z / ((h = w == null ? void 0 : w.startSize) != null ? h : 0), -0.999999);
4499
- return w.columnSizingStart.forEach((ee) => {
4500
- let [ce, de] = ee;
4501
- c[ce] = Math.round(Math.max(de + de * X, 0) * 100) / 100;
4495
+ const l = e.getSize(), r = e ? e.getLeafHeaders().map((x) => [x.column.id, x.column.getSize()]) : [[i.id, i.getSize()]], s = kt(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (x, b) => {
4496
+ typeof b == "number" && (n.setColumnSizingInfo((w) => {
4497
+ var E, h;
4498
+ const P = n.options.columnResizeDirection === "rtl" ? -1 : 1, N = (b - ((E = w == null ? void 0 : w.startOffset) != null ? E : 0)) * P, Y = Math.max(N / ((h = w == null ? void 0 : w.startSize) != null ? h : 0), -0.999999);
4499
+ return w.columnSizingStart.forEach((Z) => {
4500
+ let [ce, pe] = Z;
4501
+ c[ce] = Math.round(Math.max(pe + pe * Y, 0) * 100) / 100;
4502
4502
  }), {
4503
4503
  ...w,
4504
- deltaOffset: z,
4505
- deltaPercentage: X
4504
+ deltaOffset: N,
4505
+ deltaPercentage: Y
4506
4506
  };
4507
4507
  }), (n.options.columnResizeMode === "onChange" || x === "end") && n.setColumnSizing((w) => ({
4508
4508
  ...w,
4509
4509
  ...c
4510
4510
  })));
4511
- }, f = (x) => p("move", x), g = (x) => {
4512
- p("end", x), n.setColumnSizingInfo((E) => ({
4513
- ...E,
4511
+ }, f = (x) => d("move", x), g = (x) => {
4512
+ d("end", x), n.setColumnSizingInfo((b) => ({
4513
+ ...b,
4514
4514
  isResizingColumn: !1,
4515
4515
  startOffset: null,
4516
4516
  startSize: null,
@@ -4518,21 +4518,21 @@ const nr = {
4518
4518
  deltaPercentage: null,
4519
4519
  columnSizingStart: []
4520
4520
  }));
4521
- }, u = t || typeof document < "u" ? document : null, m = {
4521
+ }, p = t || typeof document < "u" ? document : null, m = {
4522
4522
  moveHandler: (x) => f(x.clientX),
4523
4523
  upHandler: (x) => {
4524
- u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(x.clientX);
4524
+ p == null || p.removeEventListener("mousemove", m.moveHandler), p == null || p.removeEventListener("mouseup", m.upHandler), g(x.clientX);
4525
4525
  }
4526
4526
  }, v = {
4527
4527
  moveHandler: (x) => (x.cancelable && (x.preventDefault(), x.stopPropagation()), f(x.touches[0].clientX), !1),
4528
4528
  upHandler: (x) => {
4529
- var E;
4530
- u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), x.cancelable && (x.preventDefault(), x.stopPropagation()), g((E = x.touches[0]) == null ? void 0 : E.clientX);
4529
+ var b;
4530
+ p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), x.cancelable && (x.preventDefault(), x.stopPropagation()), g((b = x.touches[0]) == null ? void 0 : b.clientX);
4531
4531
  }
4532
- }, b = ar() ? {
4532
+ }, S = ar() ? {
4533
4533
  passive: !1
4534
4534
  } : !1;
4535
- Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, b), u == null || u.addEventListener("touchend", v.upHandler, b)) : (u == null || u.addEventListener("mousemove", m.moveHandler, b), u == null || u.addEventListener("mouseup", m.upHandler, b)), n.setColumnSizingInfo((x) => ({
4535
+ kt(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, S), p == null || p.addEventListener("touchend", v.upHandler, S)) : (p == null || p.addEventListener("mousemove", m.moveHandler, S), p == null || p.addEventListener("mouseup", m.upHandler, S)), n.setColumnSizingInfo((x) => ({
4536
4536
  ...x,
4537
4537
  startOffset: s,
4538
4538
  startSize: l,
@@ -4583,7 +4583,7 @@ function ar() {
4583
4583
  }
4584
4584
  return Je = e, Je;
4585
4585
  }
4586
- function Et(e) {
4586
+ function kt(e) {
4587
4587
  return e.type === "touchstart";
4588
4588
  }
4589
4589
  const rr = {
@@ -4662,12 +4662,12 @@ const lr = {
4662
4662
  };
4663
4663
  },
4664
4664
  createTable: (e) => {
4665
- e.getGlobalAutoFilterFn = () => Ce.includesString, e.getGlobalFilterFn = () => {
4665
+ e.getGlobalAutoFilterFn = () => _e.includesString, e.getGlobalFilterFn = () => {
4666
4666
  var n, t;
4667
4667
  const {
4668
4668
  globalFilterFn: i
4669
4669
  } = e.options;
4670
- return at(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n : Ce[i];
4670
+ return at(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n : _e[i];
4671
4671
  }, e.setGlobalFilter = (n) => {
4672
4672
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
4673
4673
  }, e.resetGlobalFilter = (n) => {
@@ -4761,14 +4761,14 @@ const lr = {
4761
4761
  };
4762
4762
  };
4763
4763
  }
4764
- }, jt = 0, Tt = 10, kt = () => ({
4765
- pageIndex: jt,
4766
- pageSize: Tt
4764
+ }, Tt = 0, zt = 10, Et = () => ({
4765
+ pageIndex: Tt,
4766
+ pageSize: zt
4767
4767
  }), pr = {
4768
4768
  getInitialState: (e) => ({
4769
4769
  ...e,
4770
4770
  pagination: {
4771
- ...kt(),
4771
+ ...Et(),
4772
4772
  ...e == null ? void 0 : e.pagination
4773
4773
  }
4774
4774
  }),
@@ -4792,14 +4792,14 @@ const lr = {
4792
4792
  });
4793
4793
  }
4794
4794
  }, e.setPagination = (i) => {
4795
- const o = (a) => Ee(i, a);
4795
+ const o = (a) => ke(i, a);
4796
4796
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
4797
4797
  }, e.resetPagination = (i) => {
4798
4798
  var o;
4799
- e.setPagination(i ? kt() : (o = e.initialState.pagination) != null ? o : kt());
4799
+ e.setPagination(i ? Et() : (o = e.initialState.pagination) != null ? o : Et());
4800
4800
  }, e.setPageIndex = (i) => {
4801
4801
  e.setPagination((o) => {
4802
- let a = Ee(i, o.pageIndex);
4802
+ let a = ke(i, o.pageIndex);
4803
4803
  const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
4804
4804
  return a = Math.max(0, Math.min(a, l)), {
4805
4805
  ...o,
@@ -4808,13 +4808,13 @@ const lr = {
4808
4808
  });
4809
4809
  }, e.resetPageIndex = (i) => {
4810
4810
  var o, a;
4811
- e.setPageIndex(i ? jt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageIndex) != null ? o : jt);
4811
+ e.setPageIndex(i ? Tt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageIndex) != null ? o : Tt);
4812
4812
  }, e.resetPageSize = (i) => {
4813
4813
  var o, a;
4814
- e.setPageSize(i ? Tt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : Tt);
4814
+ e.setPageSize(i ? zt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : zt);
4815
4815
  }, e.setPageSize = (i) => {
4816
4816
  e.setPagination((o) => {
4817
- const a = Math.max(1, Ee(i, o.pageSize)), l = o.pageSize * o.pageIndex, r = Math.floor(l / a);
4817
+ const a = Math.max(1, ke(i, o.pageSize)), l = o.pageSize * o.pageIndex, r = Math.floor(l / a);
4818
4818
  return {
4819
4819
  ...o,
4820
4820
  pageIndex: r,
@@ -4823,7 +4823,7 @@ const lr = {
4823
4823
  });
4824
4824
  }, e.setPageCount = (i) => e.setPagination((o) => {
4825
4825
  var a;
4826
- let l = Ee(i, (a = e.options.pageCount) != null ? a : -1);
4826
+ let l = ke(i, (a = e.options.pageCount) != null ? a : -1);
4827
4827
  return typeof l == "number" && (l = Math.max(-1, l)), {
4828
4828
  ...o,
4829
4829
  pageCount: l
@@ -4869,7 +4869,7 @@ const lr = {
4869
4869
  return c;
4870
4870
  }) : [], r = /* @__PURE__ */ new Set([...l, e.id, ...a]);
4871
4871
  n.setRowPinning((s) => {
4872
- var c, p;
4872
+ var c, d;
4873
4873
  if (t === "bottom") {
4874
4874
  var f, g;
4875
4875
  return {
@@ -4878,15 +4878,15 @@ const lr = {
4878
4878
  };
4879
4879
  }
4880
4880
  if (t === "top") {
4881
- var u, m;
4881
+ var p, m;
4882
4882
  return {
4883
- top: [...((u = s == null ? void 0 : s.top) != null ? u : []).filter((v) => !(r != null && r.has(v))), ...Array.from(r)],
4883
+ top: [...((p = s == null ? void 0 : s.top) != null ? p : []).filter((v) => !(r != null && r.has(v))), ...Array.from(r)],
4884
4884
  bottom: ((m = s == null ? void 0 : s.bottom) != null ? m : []).filter((v) => !(r != null && r.has(v)))
4885
4885
  };
4886
4886
  }
4887
4887
  return {
4888
4888
  top: ((c = s == null ? void 0 : s.top) != null ? c : []).filter((v) => !(r != null && r.has(v))),
4889
- bottom: ((p = s == null ? void 0 : s.bottom) != null ? p : []).filter((v) => !(r != null && r.has(v)))
4889
+ bottom: ((d = s == null ? void 0 : s.bottom) != null ? d : []).filter((v) => !(r != null && r.has(v)))
4890
4890
  };
4891
4891
  });
4892
4892
  }, e.getCanPin = () => {
@@ -4983,7 +4983,7 @@ const lr = {
4983
4983
  ...t
4984
4984
  };
4985
4985
  return e.getRowModel().rows.forEach((a) => {
4986
- zt(o, a.id, i, !0, e);
4986
+ Vt(o, a.id, i, !0, e);
4987
4987
  }), o;
4988
4988
  }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = D(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4989
4989
  rows: [],
@@ -5032,23 +5032,23 @@ const lr = {
5032
5032
  const r = {
5033
5033
  ...a
5034
5034
  };
5035
- return zt(r, e.id, t, (l = i == null ? void 0 : i.selectChildren) != null ? l : !0, n), r;
5035
+ return Vt(r, e.id, t, (l = i == null ? void 0 : i.selectChildren) != null ? l : !0, n), r;
5036
5036
  });
5037
5037
  }, e.getIsSelected = () => {
5038
5038
  const {
5039
5039
  rowSelection: t
5040
5040
  } = n.getState();
5041
- return Qt(e, t);
5041
+ return Jt(e, t);
5042
5042
  }, e.getIsSomeSelected = () => {
5043
5043
  const {
5044
5044
  rowSelection: t
5045
5045
  } = n.getState();
5046
- return Vt(e, t) === "some";
5046
+ return Lt(e, t) === "some";
5047
5047
  }, e.getIsAllSubRowsSelected = () => {
5048
5048
  const {
5049
5049
  rowSelection: t
5050
5050
  } = n.getState();
5051
- return Vt(e, t) === "all";
5051
+ return Lt(e, t) === "all";
5052
5052
  }, e.getCanSelect = () => {
5053
5053
  var t;
5054
5054
  return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
@@ -5066,20 +5066,20 @@ const lr = {
5066
5066
  };
5067
5067
  };
5068
5068
  }
5069
- }, zt = (e, n, t, i, o) => {
5069
+ }, Vt = (e, n, t, i, o) => {
5070
5070
  var a;
5071
5071
  const l = o.getRow(n, !0);
5072
- t ? (l.getCanMultiSelect() || Object.keys(e).forEach((r) => delete e[r]), l.getCanSelect() && (e[n] = !0)) : delete e[n], i && (a = l.subRows) != null && a.length && l.getCanSelectSubRows() && l.subRows.forEach((r) => zt(e, r.id, t, i, o));
5072
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((r) => delete e[r]), l.getCanSelect() && (e[n] = !0)) : delete e[n], i && (a = l.subRows) != null && a.length && l.getCanSelectSubRows() && l.subRows.forEach((r) => Vt(e, r.id, t, i, o));
5073
5073
  };
5074
5074
  function Pt(e, n) {
5075
5075
  const t = e.getState().rowSelection, i = [], o = {}, a = function(l, r) {
5076
5076
  return l.map((s) => {
5077
5077
  var c;
5078
- const p = Qt(s, t);
5079
- if (p && (i.push(s), o[s.id] = s), (c = s.subRows) != null && c.length && (s = {
5078
+ const d = Jt(s, t);
5079
+ if (d && (i.push(s), o[s.id] = s), (c = s.subRows) != null && c.length && (s = {
5080
5080
  ...s,
5081
5081
  subRows: a(s.subRows)
5082
- }), p)
5082
+ }), d)
5083
5083
  return s;
5084
5084
  }).filter(Boolean);
5085
5085
  };
@@ -5089,33 +5089,33 @@ function Pt(e, n) {
5089
5089
  rowsById: o
5090
5090
  };
5091
5091
  }
5092
- function Qt(e, n) {
5092
+ function Jt(e, n) {
5093
5093
  var t;
5094
5094
  return (t = n[e.id]) != null ? t : !1;
5095
5095
  }
5096
- function Vt(e, n, t) {
5096
+ function Lt(e, n, t) {
5097
5097
  var i;
5098
5098
  if (!((i = e.subRows) != null && i.length)) return !1;
5099
5099
  let o = !0, a = !1;
5100
5100
  return e.subRows.forEach((l) => {
5101
- if (!(a && !o) && (l.getCanSelect() && (Qt(l, n) ? a = !0 : o = !1), l.subRows && l.subRows.length)) {
5102
- const r = Vt(l, n);
5101
+ if (!(a && !o) && (l.getCanSelect() && (Jt(l, n) ? a = !0 : o = !1), l.subRows && l.subRows.length)) {
5102
+ const r = Lt(l, n);
5103
5103
  r === "all" ? a = !0 : (r === "some" && (a = !0), o = !1);
5104
5104
  }
5105
5105
  }), o ? "all" : a ? "some" : !1;
5106
5106
  }
5107
- const Lt = /([0-9]+)/gm, gr = (e, n, t) => hi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), fr = (e, n, t) => hi(ke(e.getValue(t)), ke(n.getValue(t))), mr = (e, n, t) => Jt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), vr = (e, n, t) => Jt(ke(e.getValue(t)), ke(n.getValue(t))), xr = (e, n, t) => {
5107
+ const Nt = /([0-9]+)/gm, gr = (e, n, t) => hi(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), fr = (e, n, t) => hi(Fe(e.getValue(t)), Fe(n.getValue(t))), mr = (e, n, t) => Zt(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), vr = (e, n, t) => Zt(Fe(e.getValue(t)), Fe(n.getValue(t))), xr = (e, n, t) => {
5108
5108
  const i = e.getValue(t), o = n.getValue(t);
5109
5109
  return i > o ? 1 : i < o ? -1 : 0;
5110
- }, hr = (e, n, t) => Jt(e.getValue(t), n.getValue(t));
5111
- function Jt(e, n) {
5110
+ }, hr = (e, n, t) => Zt(e.getValue(t), n.getValue(t));
5111
+ function Zt(e, n) {
5112
5112
  return e === n ? 0 : e > n ? 1 : -1;
5113
5113
  }
5114
- function ke(e) {
5114
+ function Fe(e) {
5115
5115
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
5116
5116
  }
5117
5117
  function hi(e, n) {
5118
- const t = e.split(Lt).filter(Boolean), i = n.split(Lt).filter(Boolean);
5118
+ const t = e.split(Nt).filter(Boolean), i = n.split(Nt).filter(Boolean);
5119
5119
  for (; t.length && i.length; ) {
5120
5120
  const o = t.shift(), a = i.shift(), l = parseInt(o, 10), r = parseInt(a, 10), s = [l, r].sort();
5121
5121
  if (isNaN(s[0])) {
@@ -5162,7 +5162,7 @@ const Ve = {
5162
5162
  const a = o == null ? void 0 : o.getValue(e.id);
5163
5163
  if (Object.prototype.toString.call(a) === "[object Date]")
5164
5164
  return Ve.datetime;
5165
- if (typeof a == "string" && (i = !0, a.split(Lt).length > 1))
5165
+ if (typeof a == "string" && (i = !0, a.split(Nt).length > 1))
5166
5166
  return Ve.alphanumeric;
5167
5167
  }
5168
5168
  return i ? Ve.text : Ve.basic;
@@ -5177,18 +5177,18 @@ const Ve = {
5177
5177
  }, e.toggleSorting = (t, i) => {
5178
5178
  const o = e.getNextSortingOrder(), a = typeof t < "u" && t !== null;
5179
5179
  n.setSorting((l) => {
5180
- const r = l == null ? void 0 : l.find((u) => u.id === e.id), s = l == null ? void 0 : l.findIndex((u) => u.id === e.id);
5181
- let c = [], p, f = a ? t : o === "desc";
5182
- if (l != null && l.length && e.getCanMultiSort() && i ? r ? p = "toggle" : p = "add" : l != null && l.length && s !== l.length - 1 ? p = "replace" : r ? p = "toggle" : p = "replace", p === "toggle" && (a || o || (p = "remove")), p === "add") {
5180
+ const r = l == null ? void 0 : l.find((p) => p.id === e.id), s = l == null ? void 0 : l.findIndex((p) => p.id === e.id);
5181
+ let c = [], d, f = a ? t : o === "desc";
5182
+ if (l != null && l.length && e.getCanMultiSort() && i ? r ? d = "toggle" : d = "add" : l != null && l.length && s !== l.length - 1 ? d = "replace" : r ? d = "toggle" : d = "replace", d === "toggle" && (a || o || (d = "remove")), d === "add") {
5183
5183
  var g;
5184
5184
  c = [...l, {
5185
5185
  id: e.id,
5186
5186
  desc: f
5187
5187
  }], c.splice(0, c.length - ((g = n.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
5188
- } else p === "toggle" ? c = l.map((u) => u.id === e.id ? {
5189
- ...u,
5188
+ } else d === "toggle" ? c = l.map((p) => p.id === e.id ? {
5189
+ ...p,
5190
5190
  desc: f
5191
- } : u) : p === "remove" ? c = l.filter((u) => u.id !== e.id) : c = [{
5191
+ } : p) : d === "remove" ? c = l.filter((p) => p.id !== e.id) : c = [{
5192
5192
  id: e.id,
5193
5193
  desc: f
5194
5194
  }];
@@ -5257,7 +5257,7 @@ function br(e) {
5257
5257
  let o = {
5258
5258
  _features: i
5259
5259
  };
5260
- const a = o._features.reduce((g, u) => Object.assign(g, u.getDefaultOptions == null ? void 0 : u.getDefaultOptions(o)), {}), l = (g) => o.options.mergeOptions ? o.options.mergeOptions(a, g) : {
5260
+ const a = o._features.reduce((g, p) => Object.assign(g, p.getDefaultOptions == null ? void 0 : p.getDefaultOptions(o)), {}), l = (g) => o.options.mergeOptions ? o.options.mergeOptions(a, g) : {
5261
5261
  ...a,
5262
5262
  ...g
5263
5263
  };
@@ -5266,11 +5266,11 @@ function br(e) {
5266
5266
  ...(t = e.initialState) != null ? t : {}
5267
5267
  };
5268
5268
  o._features.forEach((g) => {
5269
- var u;
5270
- s = (u = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? u : s;
5269
+ var p;
5270
+ s = (p = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? p : s;
5271
5271
  });
5272
5272
  const c = [];
5273
- let p = !1;
5273
+ let d = !1;
5274
5274
  const f = {
5275
5275
  _features: i,
5276
5276
  options: {
@@ -5279,51 +5279,51 @@ function br(e) {
5279
5279
  },
5280
5280
  initialState: s,
5281
5281
  _queue: (g) => {
5282
- c.push(g), p || (p = !0, Promise.resolve().then(() => {
5282
+ c.push(g), d || (d = !0, Promise.resolve().then(() => {
5283
5283
  for (; c.length; )
5284
5284
  c.shift()();
5285
- p = !1;
5286
- }).catch((u) => setTimeout(() => {
5287
- throw u;
5285
+ d = !1;
5286
+ }).catch((p) => setTimeout(() => {
5287
+ throw p;
5288
5288
  })));
5289
5289
  },
5290
5290
  reset: () => {
5291
5291
  o.setState(o.initialState);
5292
5292
  },
5293
5293
  setOptions: (g) => {
5294
- const u = Ee(g, o.options);
5295
- o.options = l(u);
5294
+ const p = ke(g, o.options);
5295
+ o.options = l(p);
5296
5296
  },
5297
5297
  getState: () => o.options.state,
5298
5298
  setState: (g) => {
5299
5299
  o.options.onStateChange == null || o.options.onStateChange(g);
5300
5300
  },
5301
- _getRowId: (g, u, m) => {
5301
+ _getRowId: (g, p, m) => {
5302
5302
  var v;
5303
- return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g, u, m)) != null ? v : `${m ? [m.id, u].join(".") : u}`;
5303
+ return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g, p, m)) != null ? v : `${m ? [m.id, p].join(".") : p}`;
5304
5304
  },
5305
5305
  getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
5306
5306
  // The final calls start at the bottom of the model,
5307
5307
  // expanded rows, which then work their way up
5308
5308
  getRowModel: () => o.getPaginationRowModel(),
5309
5309
  //in next version, we should just pass in the row model as the optional 2nd arg
5310
- getRow: (g, u) => {
5311
- let m = (u ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[g];
5310
+ getRow: (g, p) => {
5311
+ let m = (p ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[g];
5312
5312
  if (!m && (m = o.getCoreRowModel().rowsById[g], !m))
5313
5313
  throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
5314
5314
  return m;
5315
5315
  },
5316
5316
  _getDefaultColumnDef: D(() => [o.options.defaultColumn], (g) => {
5317
- var u;
5318
- return g = (u = g) != null ? u : {}, {
5317
+ var p;
5318
+ return g = (p = g) != null ? p : {}, {
5319
5319
  header: (m) => {
5320
5320
  const v = m.header.column.columnDef;
5321
5321
  return v.accessorKey ? v.accessorKey : v.accessorFn ? v.id : null;
5322
5322
  },
5323
5323
  // footer: props => props.header.column.id,
5324
5324
  cell: (m) => {
5325
- var v, b;
5326
- return (v = (b = m.renderValue()) == null || b.toString == null ? void 0 : b.toString()) != null ? v : null;
5325
+ var v, S;
5326
+ return (v = (S = m.renderValue()) == null || S.toString == null ? void 0 : S.toString()) != null ? v : null;
5327
5327
  },
5328
5328
  ...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
5329
5329
  ...g
@@ -5331,29 +5331,29 @@ function br(e) {
5331
5331
  }, A(e, "debugColumns", "_getDefaultColumnDef")),
5332
5332
  _getColumnDefs: () => o.options.columns,
5333
5333
  getAllColumns: D(() => [o._getColumnDefs()], (g) => {
5334
- const u = function(m, v, b) {
5335
- return b === void 0 && (b = 0), m.map((x) => {
5336
- const E = Na(o, x, b, v), w = x;
5337
- return E.columns = w.columns ? u(w.columns, E, b + 1) : [], E;
5334
+ const p = function(m, v, S) {
5335
+ return S === void 0 && (S = 0), m.map((x) => {
5336
+ const b = Na(o, x, S, v), w = x;
5337
+ return b.columns = w.columns ? p(w.columns, b, S + 1) : [], b;
5338
5338
  });
5339
5339
  };
5340
- return u(g);
5340
+ return p(g);
5341
5341
  }, A(e, "debugColumns", "getAllColumns")),
5342
- getAllFlatColumns: D(() => [o.getAllColumns()], (g) => g.flatMap((u) => u.getFlatColumns()), A(e, "debugColumns", "getAllFlatColumns")),
5343
- _getAllFlatColumnsById: D(() => [o.getAllFlatColumns()], (g) => g.reduce((u, m) => (u[m.id] = m, u), {}), A(e, "debugColumns", "getAllFlatColumnsById")),
5344
- getAllLeafColumns: D(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, u) => {
5342
+ getAllFlatColumns: D(() => [o.getAllColumns()], (g) => g.flatMap((p) => p.getFlatColumns()), A(e, "debugColumns", "getAllFlatColumns")),
5343
+ _getAllFlatColumnsById: D(() => [o.getAllFlatColumns()], (g) => g.reduce((p, m) => (p[m.id] = m, p), {}), A(e, "debugColumns", "getAllFlatColumnsById")),
5344
+ getAllLeafColumns: D(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, p) => {
5345
5345
  let m = g.flatMap((v) => v.getLeafColumns());
5346
- return u(m);
5346
+ return p(m);
5347
5347
  }, A(e, "debugColumns", "getAllLeafColumns")),
5348
5348
  getColumn: (g) => {
5349
- const u = o._getAllFlatColumnsById()[g];
5350
- return process.env.NODE_ENV !== "production" && !u && console.error(`[Table] Column with id '${g}' does not exist.`), u;
5349
+ const p = o._getAllFlatColumnsById()[g];
5350
+ return process.env.NODE_ENV !== "production" && !p && console.error(`[Table] Column with id '${g}' does not exist.`), p;
5351
5351
  }
5352
5352
  };
5353
5353
  Object.assign(o, f);
5354
5354
  for (let g = 0; g < o._features.length; g++) {
5355
- const u = o._features[g];
5356
- u == null || u.createTable == null || u.createTable(o);
5355
+ const p = o._features[g];
5356
+ p == null || p.createTable == null || p.createTable(o);
5357
5357
  }
5358
5358
  return o;
5359
5359
  }
@@ -5367,10 +5367,10 @@ function Sr() {
5367
5367
  a === void 0 && (a = 0);
5368
5368
  const r = [];
5369
5369
  for (let c = 0; c < o.length; c++) {
5370
- const p = ci(e, e._getRowId(o[c], c, l), o[c], c, a, void 0, l == null ? void 0 : l.id);
5371
- if (t.flatRows.push(p), t.rowsById[p.id] = p, r.push(p), e.options.getSubRows) {
5370
+ const d = ci(e, e._getRowId(o[c], c, l), o[c], c, a, void 0, l == null ? void 0 : l.id);
5371
+ if (t.flatRows.push(d), t.rowsById[d.id] = d, r.push(d), e.options.getSubRows) {
5372
5372
  var s;
5373
- p.originalSubRows = e.options.getSubRows(o[c], c), (s = p.originalSubRows) != null && s.length && (p.subRows = i(p.originalSubRows, a + 1, p));
5373
+ d.originalSubRows = e.options.getSubRows(o[c], c), (s = d.originalSubRows) != null && s.length && (d.subRows = i(d.originalSubRows, a + 1, d));
5374
5374
  }
5375
5375
  }
5376
5376
  return r;
@@ -5398,38 +5398,38 @@ function Rr() {
5398
5398
  return t.rows.forEach((s) => {
5399
5399
  s.depth = 0, s.parentId = void 0;
5400
5400
  }), t;
5401
- const i = n.filter((s) => e.getColumn(s)), o = [], a = {}, l = function(s, c, p) {
5401
+ const i = n.filter((s) => e.getColumn(s)), o = [], a = {}, l = function(s, c, d) {
5402
5402
  if (c === void 0 && (c = 0), c >= i.length)
5403
5403
  return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = l(m.subRows, c + 1, m.id)), m));
5404
- const f = i[c], g = Er(s, f);
5404
+ const f = i[c], g = kr(s, f);
5405
5405
  return Array.from(g.entries()).map((m, v) => {
5406
- let [b, x] = m, E = `${f}:${b}`;
5407
- E = p ? `${p}>${E}` : E;
5408
- const w = l(x, c + 1, E);
5406
+ let [S, x] = m, b = `${f}:${S}`;
5407
+ b = d ? `${d}>${b}` : b;
5408
+ const w = l(x, c + 1, b);
5409
5409
  w.forEach((P) => {
5410
- P.parentId = E;
5410
+ P.parentId = b;
5411
5411
  });
5412
- const F = c ? si(x, (P) => P.subRows) : x, h = ci(e, E, F[0].original, v, c, void 0, p);
5412
+ const E = c ? si(x, (P) => P.subRows) : x, h = ci(e, b, E[0].original, v, c, void 0, d);
5413
5413
  return Object.assign(h, {
5414
5414
  groupingColumnId: f,
5415
- groupingValue: b,
5415
+ groupingValue: S,
5416
5416
  subRows: w,
5417
- leafRows: F,
5417
+ leafRows: E,
5418
5418
  getValue: (P) => {
5419
5419
  if (i.includes(P)) {
5420
5420
  if (h._valuesCache.hasOwnProperty(P))
5421
5421
  return h._valuesCache[P];
5422
5422
  if (x[0]) {
5423
- var z;
5424
- h._valuesCache[P] = (z = x[0].getValue(P)) != null ? z : void 0;
5423
+ var N;
5424
+ h._valuesCache[P] = (N = x[0].getValue(P)) != null ? N : void 0;
5425
5425
  }
5426
5426
  return h._valuesCache[P];
5427
5427
  }
5428
5428
  if (h._groupingValuesCache.hasOwnProperty(P))
5429
5429
  return h._groupingValuesCache[P];
5430
- const X = e.getColumn(P), ee = X == null ? void 0 : X.getAggregationFn();
5431
- if (ee)
5432
- return h._groupingValuesCache[P] = ee(P, F, x), h._groupingValuesCache[P];
5430
+ const Y = e.getColumn(P), Z = Y == null ? void 0 : Y.getAggregationFn();
5431
+ if (Z)
5432
+ return h._groupingValuesCache[P] = Z(P, E, x), h._groupingValuesCache[P];
5433
5433
  }
5434
5434
  }), w.forEach((P) => {
5435
5435
  o.push(P), a[P.id] = P;
@@ -5449,7 +5449,7 @@ function Rr() {
5449
5449
  });
5450
5450
  }));
5451
5451
  }
5452
- function Er(e, n) {
5452
+ function kr(e, n) {
5453
5453
  const t = /* @__PURE__ */ new Map();
5454
5454
  return e.reduce((i, o) => {
5455
5455
  const a = `${o.getGroupingValue(n)}`, l = i.get(a);
@@ -5467,9 +5467,9 @@ function Er(e, n) {
5467
5467
  * @license MIT
5468
5468
  */
5469
5469
  function wi(e, n) {
5470
- return e ? kr(e) ? /* @__PURE__ */ pe.createElement(e, n) : e : null;
5470
+ return e ? Er(e) ? /* @__PURE__ */ ue.createElement(e, n) : e : null;
5471
5471
  }
5472
- function kr(e) {
5472
+ function Er(e) {
5473
5473
  return Fr(e) || typeof e == "function" || Pr(e);
5474
5474
  }
5475
5475
  function Fr(e) {
@@ -5490,9 +5490,9 @@ function Ir(e) {
5490
5490
  // noop
5491
5491
  renderFallbackValue: null,
5492
5492
  ...e
5493
- }, [t] = pe.useState(() => ({
5493
+ }, [t] = ue.useState(() => ({
5494
5494
  current: br(n)
5495
- })), [i, o] = pe.useState(() => t.current.initialState);
5495
+ })), [i, o] = ue.useState(() => t.current.initialState);
5496
5496
  return t.current.setOptions((a) => ({
5497
5497
  ...a,
5498
5498
  ...e,
@@ -5512,19 +5512,19 @@ const In = ({
5512
5512
  }) => {
5513
5513
  var n;
5514
5514
  return {
5515
- asc: /* @__PURE__ */ d(Re, { name: "chevron-up", children: "ascending" }),
5516
- desc: /* @__PURE__ */ d(Re, { name: "chevron-down", children: "descending" })
5515
+ asc: /* @__PURE__ */ u(Ce, { name: "chevron-up", children: "ascending" }),
5516
+ desc: /* @__PURE__ */ u(Ce, { name: "chevron-down", children: "descending" })
5517
5517
  }[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
5518
5518
  }, Dr = ({ header: e }) => {
5519
5519
  const n = e.column.getCanSort(), t = e.column.columnDef.meta, i = t == null ? void 0 : t.isInteractiveHeader, o = wi(e.column.columnDef.header, e.getContext());
5520
- return /* @__PURE__ */ d(
5520
+ return /* @__PURE__ */ u(
5521
5521
  "th",
5522
5522
  {
5523
5523
  "aria-hidden": (t == null ? void 0 : t.headerAriaHidden) || void 0,
5524
5524
  "aria-label": t == null ? void 0 : t.headerAriaLabel,
5525
5525
  className: L("p-column-header", e.column.id),
5526
- children: n && !i ? /* @__PURE__ */ d(
5527
- _e,
5526
+ children: n && !i ? /* @__PURE__ */ u(
5527
+ Re,
5528
5528
  {
5529
5529
  appearance: "link",
5530
5530
  className: "p-button--column-header",
@@ -5532,12 +5532,12 @@ const In = ({
5532
5532
  type: "button",
5533
5533
  children: /* @__PURE__ */ G(be, { children: [
5534
5534
  o,
5535
- /* @__PURE__ */ d(In, { header: e })
5535
+ /* @__PURE__ */ u(In, { header: e })
5536
5536
  ] })
5537
5537
  }
5538
5538
  ) : /* @__PURE__ */ G("span", { className: "p-container--column-header", children: [
5539
5539
  o,
5540
- n && !i && /* @__PURE__ */ d(In, { header: e })
5540
+ n && !i && /* @__PURE__ */ u(In, { header: e })
5541
5541
  ] })
5542
5542
  },
5543
5543
  e.id
@@ -5545,14 +5545,14 @@ const In = ({
5545
5545
  }, Ne = ({
5546
5546
  children: e,
5547
5547
  "aria-label": n = "Table controls"
5548
- }) => /* @__PURE__ */ d(
5548
+ }) => /* @__PURE__ */ u(
5549
5549
  "section",
5550
5550
  {
5551
5551
  "aria-label": n,
5552
5552
  className: "controls-bar u-flex u-flex--justify-between u-flex--wrap",
5553
- children: /* @__PURE__ */ d("div", { className: "p-form p-form--inline", children: e })
5553
+ children: /* @__PURE__ */ u("div", { className: "p-form p-form--inline", children: e })
5554
5554
  }
5555
- ), Ar = ({ children: e }) => /* @__PURE__ */ d("strong", { className: "controls-bar__description", children: e }), $r = ({ children: e }) => /* @__PURE__ */ d("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
5555
+ ), Ar = ({ children: e }) => /* @__PURE__ */ u("strong", { className: "controls-bar__description", children: e }), $r = ({ children: e }) => /* @__PURE__ */ u("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
5556
5556
  Ne.Left = Ar;
5557
5557
  Ne.Right = $r;
5558
5558
  const Mr = ({
@@ -5565,16 +5565,16 @@ const Mr = ({
5565
5565
  isPending: l,
5566
5566
  pageSizes: r = [20, 30, 50, 100]
5567
5567
  }) => {
5568
- const s = le(() => r, []), c = le(
5569
- () => s.map((u) => ({
5570
- label: `${u}/page`,
5571
- value: u
5568
+ const s = re(() => r, []), c = re(
5569
+ () => s.map((p) => ({
5570
+ label: `${p}/page`,
5571
+ value: p
5572
5572
  })),
5573
5573
  [s]
5574
- ), p = Math.ceil(t / n), f = (u) => {
5575
- const { value: m } = u.target;
5574
+ ), d = Math.ceil(t / n), f = (p) => {
5575
+ const { value: m } = p.target;
5576
5576
  i(Number(m));
5577
- }, g = () => e === p ? n - (p * n - t) : e < p ? n : 0;
5577
+ }, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
5578
5578
  return /* @__PURE__ */ G(Ne, { children: [
5579
5579
  /* @__PURE__ */ G(Ne.Left, { children: [
5580
5580
  "Showing ",
@@ -5585,16 +5585,16 @@ const Mr = ({
5585
5585
  o
5586
5586
  ] }),
5587
5587
  /* @__PURE__ */ G(Ne.Right, { children: [
5588
- /* @__PURE__ */ d(
5589
- Eo,
5588
+ /* @__PURE__ */ u(
5589
+ ko,
5590
5590
  {
5591
5591
  currentPage: e,
5592
5592
  disabled: l,
5593
5593
  paginate: a,
5594
- totalPages: p
5594
+ totalPages: d
5595
5595
  }
5596
5596
  ),
5597
- /* @__PURE__ */ d(
5597
+ /* @__PURE__ */ u(
5598
5598
  Ti,
5599
5599
  {
5600
5600
  "aria-label": "Items per page",
@@ -5611,7 +5611,7 @@ const Mr = ({
5611
5611
  grouping: e,
5612
5612
  initialData: n
5613
5613
  }) => {
5614
- const [t, i] = fe(!0), o = U(
5614
+ const [t, i] = de(!0), o = U(
5615
5615
  (a) => {
5616
5616
  i((l) => {
5617
5617
  const r = typeof a == "function" ? a(l) : a;
@@ -5625,11 +5625,11 @@ const Mr = ({
5625
5625
  },
5626
5626
  []
5627
5627
  );
5628
- return ue(() => {
5628
+ return ge(() => {
5629
5629
  e.length && o((a) => {
5630
5630
  const r = { ...a === !0 ? {} : { ...a } };
5631
5631
  for (const s of n) {
5632
- const c = e.map((p) => `${p}:${s[p]}`).join(">");
5632
+ const c = e.map((d) => `${d}:${s[d]}`).join(">");
5633
5633
  c in r || (r[c] = !0);
5634
5634
  }
5635
5635
  return r;
@@ -5639,7 +5639,7 @@ const Mr = ({
5639
5639
  groupBy: e,
5640
5640
  initialData: n
5641
5641
  }) => {
5642
- const [t, i] = fe(e ?? []), o = le(() => t.length ? [...n].sort((a, l) => {
5642
+ const [t, i] = de(e ?? []), o = re(() => t.length ? [...n].sort((a, l) => {
5643
5643
  for (const r of t) {
5644
5644
  const s = a[r] ?? null, c = l[r] ?? null;
5645
5645
  if (s === null) return 1;
@@ -5652,8 +5652,8 @@ const Mr = ({
5652
5652
  }, Tr = ({
5653
5653
  isLoading: e
5654
5654
  }) => {
5655
- const n = ge(null), t = ge(null);
5656
- ue(() => {
5655
+ const n = fe(null), t = fe(null);
5656
+ ge(() => {
5657
5657
  const a = n.current;
5658
5658
  if (!a || e) return;
5659
5659
  const l = [
@@ -5666,7 +5666,7 @@ const Mr = ({
5666
5666
  a.querySelectorAll(l).forEach((r) => {
5667
5667
  r.getAttribute("tabindex") !== "-1" && (r.tabIndex = 0);
5668
5668
  });
5669
- }), Ht(() => {
5669
+ }), qt(() => {
5670
5670
  const a = n.current;
5671
5671
  if (!a || e) {
5672
5672
  t.current = null;
@@ -5685,7 +5685,7 @@ const Mr = ({
5685
5685
  s && (t.current && t.current !== s && (t.current.tabIndex = -1), s.tabIndex = 0, t.current = s);
5686
5686
  }, []), o = U(
5687
5687
  (a) => {
5688
- var b, x, E, w, F;
5688
+ var S, x, b, w, E;
5689
5689
  if (a.key !== "ArrowUp" && a.key !== "ArrowDown" && a.key !== "ArrowLeft" && a.key !== "ArrowRight" && a.key !== "Home" && a.key !== "End")
5690
5690
  return;
5691
5691
  const l = n.current;
@@ -5695,23 +5695,23 @@ const Mr = ({
5695
5695
  const s = r.matches('tr[role="row"]'), c = r.matches('td[role="gridcell"][tabindex="-1"]');
5696
5696
  if (!s && !c) return;
5697
5697
  a.preventDefault();
5698
- const p = Array.from(
5698
+ const d = Array.from(
5699
5699
  l.querySelectorAll('tbody tr[role="row"]')
5700
5700
  ), f = s ? r : r.closest("tr");
5701
5701
  if (!f) return;
5702
- const g = p.indexOf(f);
5702
+ const g = d.indexOf(f);
5703
5703
  if (g === -1) return;
5704
- const u = (h) => Array.from(
5704
+ const p = (h) => Array.from(
5705
5705
  h.querySelectorAll(
5706
5706
  'td[role="gridcell"][tabindex="-1"]:not(.p-generic-table__group-chevron)'
5707
5707
  )
5708
- ), m = u(f), v = c ? m.indexOf(r) : -1;
5708
+ ), m = p(f), v = c ? m.indexOf(r) : -1;
5709
5709
  switch (a.key) {
5710
5710
  case "ArrowUp": {
5711
5711
  if (g <= 0) break;
5712
- const h = p[g - 1];
5712
+ const h = d[g - 1];
5713
5713
  if (c && v >= 0) {
5714
- const P = u(h);
5714
+ const P = p(h);
5715
5715
  if (P.length > 0) {
5716
5716
  P[Math.min(v, P.length - 1)].focus();
5717
5717
  break;
@@ -5721,10 +5721,10 @@ const Mr = ({
5721
5721
  break;
5722
5722
  }
5723
5723
  case "ArrowDown": {
5724
- if (g >= p.length - 1) break;
5725
- const h = p[g + 1];
5724
+ if (g >= d.length - 1) break;
5725
+ const h = d[g + 1];
5726
5726
  if (c && v >= 0) {
5727
- const P = u(h);
5727
+ const P = p(h);
5728
5728
  if (P.length > 0) {
5729
5729
  P[Math.min(v, P.length - 1)].focus();
5730
5730
  break;
@@ -5734,17 +5734,17 @@ const Mr = ({
5734
5734
  break;
5735
5735
  }
5736
5736
  case "ArrowRight":
5737
- s ? (b = m[0]) == null || b.focus() : v < m.length - 1 && m[v + 1].focus();
5737
+ s ? (S = m[0]) == null || S.focus() : v < m.length - 1 && m[v + 1].focus();
5738
5738
  break;
5739
5739
  case "ArrowLeft":
5740
5740
  if (s) break;
5741
5741
  v > 0 ? m[v - 1].focus() : f.focus();
5742
5742
  break;
5743
5743
  case "Home":
5744
- c ? (x = m[0]) == null || x.focus() : a.ctrlKey && ((E = p[0]) == null || E.focus());
5744
+ c ? (x = m[0]) == null || x.focus() : a.ctrlKey && ((b = d[0]) == null || b.focus());
5745
5745
  break;
5746
5746
  case "End":
5747
- c ? (w = m[m.length - 1]) == null || w.focus() : a.ctrlKey && ((F = p[p.length - 1]) == null || F.focus());
5747
+ c ? (w = m[m.length - 1]) == null || w.focus() : a.ctrlKey && ((E = d[d.length - 1]) == null || E.focus());
5748
5748
  break;
5749
5749
  }
5750
5750
  },
@@ -5757,22 +5757,22 @@ const Mr = ({
5757
5757
  length: t,
5758
5758
  isLoading: i
5759
5759
  }) => {
5760
- const o = ge(null), [a, l] = fe("auto"), [r, s] = fe(!1);
5761
- return Ht(() => {
5762
- const p = () => {
5763
- const u = o.current;
5764
- if (!u) return;
5760
+ const o = fe(null), [a, l] = de("auto"), [r, s] = de(!1);
5761
+ return qt(() => {
5762
+ const d = () => {
5763
+ const p = o.current;
5764
+ if (!p) return;
5765
5765
  const m = (e == null ? void 0 : e.current) || document.querySelector("main");
5766
5766
  if (!m) return;
5767
- const v = m.getBoundingClientRect(), b = u.getBoundingClientRect(), x = v.bottom - b.top, w = u.scrollHeight > x;
5767
+ const v = m.getBoundingClientRect(), S = p.getBoundingClientRect(), x = v.bottom - S.top, w = p.scrollHeight > x;
5768
5768
  s(w), l(
5769
5769
  n === "full-height" && w ? `${x}px` : "auto"
5770
5770
  );
5771
5771
  };
5772
- p();
5773
- const f = new ResizeObserver(p), g = o.current;
5774
- return g && f.observe(g), window.addEventListener("resize", p), () => {
5775
- window.removeEventListener("resize", p), g && f.unobserve(g);
5772
+ d();
5773
+ const f = new ResizeObserver(d), g = o.current;
5774
+ return g && f.observe(g), window.addEventListener("resize", d), () => {
5775
+ window.removeEventListener("resize", d), g && f.unobserve(g);
5776
5776
  };
5777
5777
  }, [e, t, i]), { tableBodyRef: o, maxHeight: a, effectiveVariant: n === "full-height" && r ? "full-height" : "regular" };
5778
5778
  }, Vr = ({
@@ -5782,36 +5782,36 @@ const Mr = ({
5782
5782
  groupedData: i,
5783
5783
  pinGroup: o
5784
5784
  }) => {
5785
- const [a, l] = fe(e ?? []), r = U(
5785
+ const [a, l] = de(e ?? []), r = U(
5786
5786
  (c) => {
5787
5787
  l(c), n && n(c);
5788
5788
  },
5789
5789
  [n]
5790
- ), s = le(() => i.length ? [...i].sort((c, p) => {
5790
+ ), s = re(() => i.length ? [...i].sort((c, d) => {
5791
5791
  if (o != null && o.length && t.length)
5792
5792
  for (const { value: f, isTop: g } of o) {
5793
- const u = t[0], m = c[u] ?? null, v = p[u] ?? null;
5793
+ const p = t[0], m = c[p] ?? null, v = d[p] ?? null;
5794
5794
  if (m === f && v !== f)
5795
5795
  return g ? -1 : 1;
5796
5796
  if (v === f && m !== f)
5797
5797
  return g ? 1 : -1;
5798
5798
  }
5799
5799
  for (const { id: f, desc: g } of a) {
5800
- const u = c[f] ?? null, m = p[f] ?? null;
5801
- if (u === null && m === null) return 0;
5802
- if (u === null) return g ? -1 : 1;
5803
- if (m === null || u < m) return g ? 1 : -1;
5804
- if (u > m) return g ? -1 : 1;
5800
+ const p = c[f] ?? null, m = d[f] ?? null;
5801
+ if (p === null && m === null) return 0;
5802
+ if (p === null) return g ? -1 : 1;
5803
+ if (m === null || p < m) return g ? 1 : -1;
5804
+ if (p > m) return g ? -1 : 1;
5805
5805
  }
5806
5806
  return 0;
5807
5807
  }) : [], [i, a, o, t]);
5808
5808
  return { sorting: a, setSorting: r, sortedData: s };
5809
5809
  }, Lr = ({ table: e, ...n }) => {
5810
- const t = ge(null);
5810
+ const t = fe(null);
5811
5811
  if (!e)
5812
5812
  return null;
5813
5813
  const i = e.getCoreRowModel().rows.filter((r) => r.getCanSelect()), o = e.getSelectedRowModel().rows.filter((r) => r.getCanSelect()), a = i.length > 0 && o.length === i.length, l = o.length > 0 && !a;
5814
- return ue(() => {
5814
+ return ge(() => {
5815
5815
  t.current && (t.current.indeterminate = l);
5816
5816
  }, [l]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5817
5817
  /* @__PURE__ */ G(
@@ -5821,7 +5821,7 @@ const Mr = ({
5821
5821
  onClick: (r) => r.stopPropagation(),
5822
5822
  onKeyDown: (r) => r.stopPropagation(),
5823
5823
  children: [
5824
- /* @__PURE__ */ d(
5824
+ /* @__PURE__ */ u(
5825
5825
  "input",
5826
5826
  {
5827
5827
  ref: t,
@@ -5837,20 +5837,42 @@ const Mr = ({
5837
5837
  ...n
5838
5838
  }
5839
5839
  ),
5840
- /* @__PURE__ */ d("span", { className: "p-checkbox__label" })
5840
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5841
5841
  ]
5842
5842
  }
5843
5843
  );
5844
5844
  }, Nr = ({ row: e, ...n }) => {
5845
- const t = ge(null);
5845
+ const t = fe(null);
5846
5846
  if (!e)
5847
- return null;
5847
+ return (
5848
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5849
+ /* @__PURE__ */ G(
5850
+ "label",
5851
+ {
5852
+ className: "p-checkbox--inline p-table-checkbox--group",
5853
+ onClick: (r) => r.stopPropagation(),
5854
+ onKeyDown: (r) => r.stopPropagation(),
5855
+ children: [
5856
+ /* @__PURE__ */ u(
5857
+ "input",
5858
+ {
5859
+ className: "p-checkbox__input",
5860
+ disabled: !0,
5861
+ type: "checkbox",
5862
+ ...n
5863
+ }
5864
+ ),
5865
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5866
+ ]
5867
+ }
5868
+ )
5869
+ );
5848
5870
  const i = e.subRows.filter(
5849
5871
  (r) => r.getCanSelect()
5850
5872
  ), o = i.filter(
5851
5873
  (r) => r.getIsSelected()
5852
5874
  ).length, a = i.length > 0 && o === i.length, l = o > 0 && !a;
5853
- return ue(() => {
5875
+ return ge(() => {
5854
5876
  t.current && (t.current.indeterminate = l);
5855
5877
  }, [l]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5856
5878
  /* @__PURE__ */ G(
@@ -5860,7 +5882,7 @@ const Mr = ({
5860
5882
  onClick: (r) => r.stopPropagation(),
5861
5883
  onKeyDown: (r) => r.stopPropagation(),
5862
5884
  children: [
5863
- /* @__PURE__ */ d(
5885
+ /* @__PURE__ */ u(
5864
5886
  "input",
5865
5887
  {
5866
5888
  ref: t,
@@ -5877,27 +5899,49 @@ const Mr = ({
5877
5899
  ...n
5878
5900
  }
5879
5901
  ),
5880
- /* @__PURE__ */ d("span", { className: "p-checkbox__label" })
5902
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5881
5903
  ]
5882
5904
  }
5883
5905
  );
5884
- }, Me = ({
5906
+ }, Ee = ({
5885
5907
  row: e,
5886
- disabledTooltip: n,
5908
+ disabledTooltip: n = "",
5887
5909
  isNested: t = !1,
5888
5910
  ...i
5889
5911
  }) => {
5890
5912
  if (!e)
5891
- return null;
5913
+ return (
5914
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
5915
+ /* @__PURE__ */ G(
5916
+ "label",
5917
+ {
5918
+ className: "p-checkbox--inline p-table-checkbox",
5919
+ onClick: (r) => r.stopPropagation(),
5920
+ onKeyDown: (r) => r.stopPropagation(),
5921
+ children: [
5922
+ /* @__PURE__ */ u(
5923
+ "input",
5924
+ {
5925
+ className: "p-checkbox__input",
5926
+ disabled: !0,
5927
+ type: "checkbox",
5928
+ ...i
5929
+ }
5930
+ ),
5931
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5932
+ ]
5933
+ }
5934
+ )
5935
+ );
5892
5936
  const o = e.getCanSelect(), a = typeof n == "string" ? n : n(e);
5893
- return /* @__PURE__ */ d(Gt, { message: t ? "Selection is managed by the parent row" : o ? !1 : a, position: "btm-right", children: /* @__PURE__ */ G(
5937
+ return /* @__PURE__ */ u(Bt, { message: t ? "Selection is managed by the parent row" : o ? !1 : a, position: "btm-right", children: /* @__PURE__ */ G(
5894
5938
  "label",
5895
5939
  {
5896
5940
  className: "p-checkbox--inline p-table-checkbox",
5897
5941
  onClick: (r) => r.stopPropagation(),
5898
5942
  onKeyDown: (r) => r.stopPropagation(),
5899
5943
  children: [
5900
- /* @__PURE__ */ d(
5944
+ /* @__PURE__ */ u(
5901
5945
  "input",
5902
5946
  {
5903
5947
  className: "p-checkbox__input",
@@ -5908,82 +5952,79 @@ const Mr = ({
5908
5952
  ...i
5909
5953
  }
5910
5954
  ),
5911
- /* @__PURE__ */ d("span", { className: "p-checkbox__label" })
5955
+ /* @__PURE__ */ u("span", { className: "p-checkbox__label" })
5912
5956
  ]
5913
5957
  }
5914
5958
  ) });
5915
5959
  };
5916
- Me.All = Lr;
5917
- Me.Group = Nr;
5960
+ Ee.All = Lr;
5961
+ Ee.Group = Nr;
5918
5962
  const Hr = ({
5919
5963
  canSelect: e,
5920
5964
  initialColumns: n,
5921
- isLoading: t,
5922
- groupBy: i,
5923
- getSubRows: o,
5924
- selection: a,
5925
- showChevron: l
5965
+ groupBy: t,
5966
+ getSubRows: i,
5967
+ selection: o,
5968
+ showChevron: a
5926
5969
  }) => {
5927
- let r = [...n];
5928
- if (t)
5929
- return r;
5930
- if (e && a) {
5931
- const s = [
5970
+ let l = [...n];
5971
+ if (e && o) {
5972
+ const r = [
5932
5973
  {
5933
5974
  id: "p-generic-table__select",
5934
5975
  accessorKey: "id",
5935
5976
  enableSorting: !1,
5936
5977
  meta: { headerAriaLabel: "Row selection" },
5937
- header: ({ table: c }) => i ? "" : /* @__PURE__ */ d(Me.All, { table: c }),
5938
- cell: ({ row: c }) => {
5939
- const p = a.rowSelectionLabelKey && a.rowSelectionLabelKey in c.original ? `select ${c.original[a.rowSelectionLabelKey]}` : "select row";
5940
- return c.getIsGrouped() ? null : /* @__PURE__ */ d(
5941
- Me,
5978
+ header: ({ table: s }) => t ? "" : /* @__PURE__ */ u(Ee.All, { table: s }),
5979
+ cell: ({ row: s }) => {
5980
+ const c = o.rowSelectionLabelKey && o.rowSelectionLabelKey in s.original ? `select ${s.original[o.rowSelectionLabelKey]}` : "select row";
5981
+ return s.getIsGrouped() ? null : /* @__PURE__ */ u(
5982
+ Ee,
5942
5983
  {
5943
- "aria-label": p,
5944
- disabledTooltip: a.disabledSelectionTooltip ?? "",
5945
- isNested: o !== void 0 && !!c.parentId,
5946
- row: c
5984
+ "aria-label": c,
5985
+ disabledTooltip: o.disabledSelectionTooltip ?? "",
5986
+ isNested: i !== void 0 && !!s.parentId,
5987
+ row: s
5947
5988
  }
5948
5989
  );
5949
5990
  }
5950
5991
  },
5951
- ...r
5992
+ ...l
5952
5993
  ];
5953
- if (i) {
5954
- const c = (p) => i[0] in p.original ? `select ${p.original[i[0]]}` : "select group";
5955
- r = [
5994
+ if (t) {
5995
+ const s = (c) => t[0] in c.original ? `select ${c.original[t[0]]}` : "select group";
5996
+ l = [
5956
5997
  {
5957
5998
  id: "p-generic-table__group-select",
5958
5999
  accessorKey: "id",
5959
6000
  enableSorting: !1,
5960
6001
  meta: { headerAriaLabel: "Row selection" },
5961
- header: ({ table: p }) => /* @__PURE__ */ d(Me.All, { table: p }),
5962
- cell: ({ row: p }) => p.getIsGrouped() ? /* @__PURE__ */ d(Me.Group, { "aria-label": c(p), row: p }) : null
6002
+ header: ({ table: c }) => /* @__PURE__ */ u(Ee.All, { table: c }),
6003
+ cell: ({ row: c }) => c.getIsGrouped() ? /* @__PURE__ */ u(Ee.Group, { "aria-label": s(c), row: c }) : null
5963
6004
  },
5964
- ...s
6005
+ ...r
5965
6006
  ];
5966
6007
  } else
5967
- r = s;
6008
+ l = r;
5968
6009
  }
5969
- return i && l && (r = [{
6010
+ return t && a && (l = [{
5970
6011
  id: "p-generic-table__group-chevron",
5971
6012
  accessorKey: "id",
5972
6013
  enableSorting: !1,
5973
6014
  meta: { headerAriaHidden: !0 },
5974
6015
  header: "",
5975
- cell: ({ row: c }) => {
5976
- const p = c.getIsExpanded();
5977
- return c.getIsGrouped() ? /* @__PURE__ */ d(
5978
- Gt,
6016
+ cell: ({ row: s }) => {
6017
+ const c = s.getIsExpanded();
6018
+ return s.getIsGrouped() ? /* @__PURE__ */ u(
6019
+ Bt,
5979
6020
  {
5980
- message: p ? "Collapse" : "Expand",
6021
+ message: c ? "Collapse" : "Expand",
5981
6022
  position: "btm-right",
5982
- children: /* @__PURE__ */ d(Re, { name: p ? en.chevronUp : en.chevronDown })
6023
+ children: /* @__PURE__ */ u(Ce, { name: c ? It.chevronUp : It.chevronDown })
5983
6024
  }
5984
6025
  ) : null;
5985
6026
  }
5986
- }, ...r]), r;
6027
+ }, ...l]), l;
5987
6028
  }, qr = ({
5988
6029
  table: e,
5989
6030
  columns: n,
@@ -5993,50 +6034,50 @@ const Hr = ({
5993
6034
  selection: a
5994
6035
  }) => {
5995
6036
  if (e.getRowModel().rows.length < 1)
5996
- return /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ d(
6037
+ return /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u(
5997
6038
  "td",
5998
6039
  {
5999
6040
  className: "p-generic-table__no-data",
6000
6041
  colSpan: n.length,
6001
6042
  role: "gridcell",
6002
- children: /* @__PURE__ */ d("div", { "aria-live": "polite", role: "status", children: o })
6043
+ children: /* @__PURE__ */ u("div", { "aria-live": "polite", role: "status", children: o })
6003
6044
  }
6004
6045
  ) });
6005
6046
  let l = 1;
6006
6047
  return e.getRowModel().rows.map((r) => {
6007
6048
  l++;
6008
- const s = l, { getIsGrouped: c, id: p, getVisibleCells: f, parentId: g } = r, u = !c(), m = (a == null ? void 0 : a.rowSelection) !== void 0 && Object.keys(a.rowSelection).includes(p), v = (x) => {
6049
+ const s = l, { getIsGrouped: c, id: d, getVisibleCells: f, parentId: g } = r, p = !c(), m = (a == null ? void 0 : a.rowSelection) !== void 0 && Object.keys(a.rowSelection).includes(d), v = (x) => {
6009
6050
  x.target === x.currentTarget && (x.key === "Enter" || x.key === " ") && (x.preventDefault(), r.toggleExpanded());
6010
- }, b = (x) => {
6051
+ }, S = (x) => {
6011
6052
  if (x.target !== x.currentTarget || x.key !== "Enter" && x.key !== " ") return;
6012
6053
  x.preventDefault();
6013
- const E = x.currentTarget.querySelector(
6054
+ const b = x.currentTarget.querySelector(
6014
6055
  "button:not([disabled]), input:not([disabled]), a[href], select:not([disabled]), textarea:not([disabled])"
6015
6056
  );
6016
- E == null || E.focus();
6057
+ b == null || b.focus();
6017
6058
  };
6018
- return /* @__PURE__ */ d(
6059
+ return /* @__PURE__ */ u(
6019
6060
  "tr",
6020
6061
  {
6021
- "aria-expanded": u ? void 0 : r.getIsExpanded(),
6062
+ "aria-expanded": p ? void 0 : r.getIsExpanded(),
6022
6063
  "aria-rowindex": s,
6023
6064
  "aria-selected": m,
6024
6065
  className: L({
6025
- "p-generic-table__individual-row": u,
6026
- "p-generic-table__group-row": !u,
6066
+ "p-generic-table__individual-row": p,
6067
+ "p-generic-table__group-row": !p,
6027
6068
  "p-generic-table__nested-row": i !== void 0 && !!g
6028
6069
  }),
6029
- onClick: u ? void 0 : () => r.toggleExpanded(),
6030
- onKeyDown: u ? b : v,
6070
+ onClick: p ? void 0 : () => r.toggleExpanded(),
6071
+ onKeyDown: p ? S : v,
6031
6072
  tabIndex: -1,
6032
6073
  role: "row",
6033
- children: f().filter((x) => !u && (x.column.id === "p-generic-table__group-select" || x.column.id === "p-generic-table__group-chevron") ? !0 : t(r, x.column)).map((x) => {
6034
- var E, w;
6035
- return /* @__PURE__ */ d(
6074
+ children: f().filter((x) => !p && (x.column.id === "p-generic-table__group-select" || x.column.id === "p-generic-table__group-chevron") ? !0 : t(r, x.column)).map((x) => {
6075
+ var b, w;
6076
+ return /* @__PURE__ */ u(
6036
6077
  "td",
6037
6078
  {
6038
6079
  "aria-hidden": x.column.id === "p-generic-table__select" && i !== void 0 && g ? !0 : void 0,
6039
- "aria-label": ((w = (E = x.column.columnDef.meta) == null ? void 0 : E.cellAriaLabel) == null ? void 0 : w.call(E, r)) ?? void 0,
6080
+ "aria-label": ((w = (b = x.column.columnDef.meta) == null ? void 0 : b.cellAriaLabel) == null ? void 0 : w.call(b, r)) ?? void 0,
6040
6081
  className: L(`${x.column.id}`),
6041
6082
  role: "gridcell",
6042
6083
  tabIndex: -1,
@@ -6046,167 +6087,202 @@ const Hr = ({
6046
6087
  );
6047
6088
  })
6048
6089
  },
6049
- p
6090
+ d
6050
6091
  );
6051
6092
  });
6052
- }, Gr = ({
6093
+ }, Gr = (e, n) => {
6094
+ const t = e.column.id;
6095
+ return t === "p-generic-table__group-chevron" ? n ? /* @__PURE__ */ u(Ce, { name: It.chevronDown }) : null : t === "p-generic-table__group-select" ? n ? /* @__PURE__ */ u(Ee.Group, { "aria-label": "select group" }) : null : t === "p-generic-table__select" ? n ? null : /* @__PURE__ */ u(Ee, { "aria-label": "select row" }) : null;
6096
+ }, Br = (e, n, t) => e({ getIsGrouped: () => t }, n), Ur = ({
6053
6097
  table: e,
6054
6098
  columns: n,
6055
6099
  filterHeaders: t,
6056
- loadingVariant: i,
6057
- skeletonRowCount: o
6100
+ filterCells: i,
6101
+ loadingVariant: o,
6102
+ skeletonRowCount: a,
6103
+ skeletonGroupCount: l
6058
6104
  }) => {
6059
- var l;
6060
- const a = ((l = e.getHeaderGroups()[0]) == null ? void 0 : l.headers.filter(t)) ?? [];
6061
- return i !== "skeleton" ? /* @__PURE__ */ d("tr", { children: /* @__PURE__ */ d(
6062
- "td",
6063
- {
6064
- className: "p-generic-table__loading",
6065
- colSpan: a.length || n.length,
6066
- role: "gridcell",
6067
- children: /* @__PURE__ */ d(qt, { text: "Loading..." })
6068
- }
6069
- ) }) : Array.from({ length: o }).map((r, s) => /* @__PURE__ */ d(
6105
+ var p;
6106
+ const r = ((p = e.getHeaderGroups()[0]) == null ? void 0 : p.headers) ?? [], s = r.filter(t);
6107
+ if (o !== "skeleton")
6108
+ return /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u(
6109
+ "td",
6110
+ {
6111
+ className: "p-generic-table__loading",
6112
+ colSpan: s.length || n.length,
6113
+ role: "gridcell",
6114
+ children: /* @__PURE__ */ u(Gt, { text: "Loading..." })
6115
+ }
6116
+ ) });
6117
+ const c = r.some(
6118
+ (m) => m.column.id === "p-generic-table__group-select" || m.column.id === "p-generic-table__group-chevron"
6119
+ ), d = (m, v, S) => /* @__PURE__ */ u(
6070
6120
  "tr",
6071
6121
  {
6072
- "aria-rowindex": s + 2,
6073
- className: "p-generic-table__skeleton-row",
6122
+ "aria-expanded": S ? !0 : void 0,
6123
+ "aria-rowindex": v,
6124
+ className: L({
6125
+ "p-generic-table__group-row": S,
6126
+ "p-generic-table__individual-row": !S,
6127
+ "p-generic-table__skeleton-row": !0
6128
+ }),
6074
6129
  role: "row",
6075
- children: a.map((c) => {
6076
- const p = c.column.columnDef.meta, f = c.column.id.startsWith("p-generic-table__");
6077
- return /* @__PURE__ */ d(
6130
+ children: r.filter((x) => {
6131
+ const b = x.column.id;
6132
+ return S && (b === "p-generic-table__group-select" || b === "p-generic-table__group-chevron") ? !0 : Br(
6133
+ i,
6134
+ x.column,
6135
+ S
6136
+ );
6137
+ }).map((x) => {
6138
+ const b = x.column.id, w = b.startsWith("p-generic-table__"), E = x.column.columnDef.meta, h = w ? Gr(x, S) : E != null && E.skeleton ? E.skeleton() : /* @__PURE__ */ u(zn, { variant: "block", width: "70%", height: "1.5rem" });
6139
+ return /* @__PURE__ */ u(
6078
6140
  "td",
6079
6141
  {
6080
- className: L(
6081
- "p-generic-table__skeleton-cell",
6082
- c.column.id
6083
- ),
6142
+ className: L("p-generic-table__skeleton-cell", b),
6084
6143
  role: "gridcell",
6085
- children: f ? null : p != null && p.skeleton ? p.skeleton() : /* @__PURE__ */ d(zn, { variant: "block", width: "70%", height: "1.5rem" })
6144
+ children: h
6086
6145
  },
6087
- `skel-${s}-${c.id}`
6146
+ `${m}-${x.id}`
6088
6147
  );
6089
6148
  })
6090
6149
  },
6091
- `skel-${s}`
6092
- ));
6093
- }, nl = ({
6150
+ m
6151
+ );
6152
+ if (!c)
6153
+ return Array.from({ length: a }).map(
6154
+ (m, v) => d(`skel-${v}`, v + 2, !1)
6155
+ );
6156
+ const f = [];
6157
+ let g = 1;
6158
+ for (let m = 0; m < l; m++) {
6159
+ f.push(d(`skel-group-${m}`, ++g, !0));
6160
+ for (let v = 0; v < a; v++)
6161
+ f.push(d(`skel-${m}-${v}`, ++g, !1));
6162
+ }
6163
+ return f;
6164
+ }, ol = ({
6094
6165
  "aria-label": e,
6095
6166
  className: n,
6096
6167
  columns: t,
6097
- containerRef: i,
6098
- data: o,
6099
- filterCells: a = () => !0,
6100
- filterHeaders: l = () => !0,
6101
- getSubRows: r,
6102
- groupBy: s,
6103
- isLoading: c,
6104
- loadingVariant: p = "spinner",
6105
- skeletonRowCount: f = 10,
6106
- noData: g,
6107
- pagination: u,
6108
- pinGroup: m,
6109
- sorting: v = [],
6168
+ columnVisibility: i,
6169
+ containerRef: o,
6170
+ data: a,
6171
+ filterCells: l = () => !0,
6172
+ filterHeaders: r = () => !0,
6173
+ getSubRows: s,
6174
+ groupBy: c,
6175
+ isLoading: d,
6176
+ loadingVariant: f = "spinner",
6177
+ skeletonRowCount: g = 10,
6178
+ skeletonGroupCount: p = 2,
6179
+ noData: m,
6180
+ pagination: v,
6181
+ pinGroup: S,
6182
+ sorting: x = [],
6110
6183
  selection: b,
6111
- setSorting: x,
6184
+ setSorting: w,
6112
6185
  showChevron: E = !1,
6113
- variant: w = "full-height",
6114
- ...F
6186
+ variant: h = "full-height",
6187
+ debug: P = !1,
6188
+ ...N
6115
6189
  }) => {
6116
- const { grouping: h, setGrouping: P, groupedData: z } = jr({
6117
- groupBy: s,
6118
- initialData: o
6119
- }), { sortedData: X, sorting: ee, setSorting: ce } = Vr({
6120
- externalSorting: v,
6121
- setExternalSorting: x,
6122
- grouping: h,
6123
- groupedData: z,
6124
- pinGroup: m
6125
- }), { expanded: de, setExpanded: he } = Or({
6126
- grouping: h,
6127
- initialData: o
6128
- }), { tableBodyRef: k, maxHeight: _, effectiveVariant: q } = zr({
6129
- containerRef: i,
6130
- variant: w,
6131
- length: X.length,
6132
- isLoading: c
6133
- }), K = !!b, J = le(
6190
+ const { grouping: Y, setGrouping: Z, groupedData: ce } = jr({
6191
+ groupBy: c,
6192
+ initialData: a
6193
+ }), { sortedData: pe, sorting: he, setSorting: F } = Vr({
6194
+ externalSorting: x,
6195
+ setExternalSorting: w,
6196
+ grouping: Y,
6197
+ groupedData: ce,
6198
+ pinGroup: S
6199
+ }), { expanded: R, setExpanded: B } = Or({
6200
+ grouping: Y,
6201
+ initialData: a
6202
+ }), { tableBodyRef: Q, maxHeight: ee, effectiveVariant: le } = zr({
6203
+ containerRef: o,
6204
+ variant: h,
6205
+ length: pe.length,
6206
+ isLoading: d
6207
+ }), [ne, y] = de({}), k = (i == null ? void 0 : i.columnVisibility) ?? ne, j = (i == null ? void 0 : i.setColumnVisibility) ?? y, O = !!b, I = re(
6134
6208
  () => Hr({
6135
- canSelect: K,
6209
+ canSelect: O,
6136
6210
  initialColumns: t,
6137
- isLoading: c,
6138
- groupBy: s,
6139
- getSubRows: r,
6211
+ groupBy: c,
6212
+ getSubRows: s,
6140
6213
  selection: b,
6141
6214
  showChevron: E
6142
6215
  }),
6143
- [K, t, c, s, r]
6144
- ), ie = Ir({
6145
- data: X,
6146
- columns: J,
6216
+ [O, t, c, s]
6217
+ ), z = Ir({
6218
+ data: pe,
6219
+ columns: I,
6147
6220
  state: {
6148
- grouping: h,
6149
- expanded: de,
6150
- sorting: ee,
6221
+ grouping: Y,
6222
+ expanded: R,
6223
+ sorting: he,
6224
+ columnVisibility: k,
6151
6225
  rowSelection: b == null ? void 0 : b.rowSelection
6152
6226
  },
6153
6227
  manualPagination: !0,
6154
6228
  autoResetExpanded: !1,
6155
- onExpandedChange: he,
6156
- onSortingChange: ce,
6157
- onGroupingChange: P,
6229
+ onExpandedChange: B,
6230
+ onSortingChange: F,
6231
+ onGroupingChange: Z,
6232
+ onColumnVisibilityChange: j,
6158
6233
  onRowSelectionChange: b == null ? void 0 : b.setRowSelection,
6159
6234
  manualSorting: !0,
6160
6235
  enableSorting: !0,
6161
6236
  enableExpanding: !0,
6162
- getSubRows: r,
6237
+ getSubRows: s,
6163
6238
  getExpandedRowModel: Cr(),
6164
6239
  getCoreRowModel: Sr(),
6165
6240
  getGroupedRowModel: Rr(),
6166
6241
  groupedColumnMode: !1,
6167
- enableRowSelection: (b == null ? void 0 : b.filterSelectable) ?? K,
6168
- enableMultiRowSelection: (b == null ? void 0 : b.filterSelectable) ?? K,
6169
- getRowId: (M) => M.id.toString()
6170
- }), { tableRef: te, handleTableFocus: y, handleTableKeyDown: R } = Tr({ isLoading: c });
6242
+ enableRowSelection: (b == null ? void 0 : b.filterSelectable) ?? O,
6243
+ enableMultiRowSelection: (b == null ? void 0 : b.filterSelectable) ?? O,
6244
+ getRowId: (q) => q.id.toString(),
6245
+ debugAll: P
6246
+ }), { tableRef: M, handleTableFocus: T, handleTableKeyDown: H } = Tr({ isLoading: d });
6171
6247
  return /* @__PURE__ */ G(
6172
6248
  "div",
6173
6249
  {
6174
6250
  className: L("p-generic-table", n),
6175
6251
  "data-testid": "p-generic-table",
6176
- ...F,
6252
+ ...N,
6177
6253
  children: [
6178
- u && /* @__PURE__ */ d(
6254
+ v && /* @__PURE__ */ u(
6179
6255
  Mr,
6180
6256
  {
6181
- currentPage: u.currentPage,
6182
- dataContext: u.dataContext,
6183
- handlePageSizeChange: u.handlePageSizeChange,
6184
- isPending: u.isPending,
6185
- itemsPerPage: u.itemsPerPage,
6186
- setCurrentPage: u.setCurrentPage,
6187
- totalItems: u.totalItems,
6188
- pageSizes: u.pageSizes
6257
+ currentPage: v.currentPage,
6258
+ dataContext: v.dataContext,
6259
+ handlePageSizeChange: v.handlePageSizeChange,
6260
+ isPending: v.isPending,
6261
+ itemsPerPage: v.itemsPerPage,
6262
+ setCurrentPage: v.setCurrentPage,
6263
+ totalItems: v.totalItems,
6264
+ pageSizes: v.pageSizes
6189
6265
  }
6190
6266
  ),
6191
6267
  /* @__PURE__ */ G(
6192
6268
  "table",
6193
6269
  {
6194
- ref: te,
6195
- "aria-busy": c,
6270
+ ref: M,
6271
+ "aria-busy": d,
6196
6272
  "aria-label": e,
6197
- "aria-rowcount": ((u == null ? void 0 : u.totalItems) ?? ie.getRowModel().rows.length) + 1,
6273
+ "aria-rowcount": ((v == null ? void 0 : v.totalItems) ?? z.getRowModel().rows.length) + 1,
6198
6274
  className: L("p-generic-table__table", {
6199
- "p-generic-table__is-full-height": q === "full-height",
6200
- "p-generic-table__is-selectable": K,
6201
- "p-generic-table__is-grouped": s !== void 0
6275
+ "p-generic-table__is-full-height": le === "full-height",
6276
+ "p-generic-table__is-selectable": O,
6277
+ "p-generic-table__is-grouped": c !== void 0
6202
6278
  }),
6203
- onFocus: y,
6204
- onKeyDown: R,
6279
+ onFocus: T,
6280
+ onKeyDown: H,
6205
6281
  role: "treegrid",
6206
6282
  children: [
6207
- /* @__PURE__ */ d("thead", { children: ie.getHeaderGroups().map((M) => /* @__PURE__ */ d("tr", { "aria-rowindex": 1, role: "row", children: M.headers.filter(l).map((j, I) => /* @__PURE__ */ G(On, { children: [
6208
- /* @__PURE__ */ d(Dr, { header: j }),
6209
- K && s && (!E && I === 2 || E && I === 3) ? /* @__PURE__ */ d(
6283
+ /* @__PURE__ */ u("thead", { children: z.getHeaderGroups().map((q) => /* @__PURE__ */ u("tr", { "aria-rowindex": 1, role: "row", children: q.headers.filter(r).map((V, te) => /* @__PURE__ */ G(On, { children: [
6284
+ /* @__PURE__ */ u(Dr, { header: V }),
6285
+ O && c && (!E && te === 2 || E && te === 3) ? /* @__PURE__ */ u(
6210
6286
  "th",
6211
6287
  {
6212
6288
  "aria-hidden": "true",
@@ -6214,27 +6290,29 @@ const Hr = ({
6214
6290
  role: "columnheader"
6215
6291
  }
6216
6292
  ) : null
6217
- ] }, j.id)) }, M.id)) }),
6218
- /* @__PURE__ */ d(
6293
+ ] }, V.id)) }, q.id)) }),
6294
+ /* @__PURE__ */ u(
6219
6295
  "tbody",
6220
6296
  {
6221
- ref: k,
6297
+ ref: Q,
6222
6298
  style: {
6223
6299
  overflowY: "auto",
6224
- maxHeight: _
6300
+ maxHeight: ee
6225
6301
  },
6226
- children: c ? Gr({
6227
- table: ie,
6228
- columns: J,
6229
- filterHeaders: l,
6230
- loadingVariant: p,
6231
- skeletonRowCount: f
6302
+ children: d ? Ur({
6303
+ table: z,
6304
+ columns: I,
6305
+ filterHeaders: r,
6306
+ filterCells: l,
6307
+ loadingVariant: f,
6308
+ skeletonRowCount: g,
6309
+ skeletonGroupCount: p
6232
6310
  }) : qr({
6233
- table: ie,
6234
- columns: J,
6235
- filterCells: a,
6236
- getSubRows: r,
6237
- noData: g,
6311
+ table: z,
6312
+ columns: I,
6313
+ filterCells: l,
6314
+ getSubRows: s,
6315
+ noData: m,
6238
6316
  selection: b
6239
6317
  })
6240
6318
  }
@@ -6255,9 +6333,9 @@ const Hr = ({
6255
6333
  COLON: ":",
6256
6334
  COMMA: ","
6257
6335
  }, Ze = (e, n = e.length) => {
6258
- const t = Br(e, n), { token: i, tokenStart: o, tokenEnd: a } = Ur(e, n);
6336
+ const t = Kr(e, n), { token: i, tokenStart: o, tokenEnd: a } = Wr(e, n);
6259
6337
  return { context: t, token: i, tokenStart: o, tokenEnd: a };
6260
- }, Br = (e, n) => {
6338
+ }, Kr = (e, n) => {
6261
6339
  let t = 0;
6262
6340
  for (let i = n - 1; i >= 0; i--) {
6263
6341
  const o = e[i];
@@ -6272,7 +6350,7 @@ const Hr = ({
6272
6350
  }
6273
6351
  }
6274
6352
  return "";
6275
- }, Ur = (e, n) => {
6353
+ }, Wr = (e, n) => {
6276
6354
  let t = n, i = n;
6277
6355
  for (; i < e.length && /[^\s=(),]/.test(e[i]); )
6278
6356
  i++;
@@ -6282,7 +6360,7 @@ const Hr = ({
6282
6360
  }, An = (e, n) => {
6283
6361
  const t = e.charAt(n - 1);
6284
6362
  return n > 0 && (t === we.CLOSE_PAREN || t === we.COMMA);
6285
- }, il = ({
6363
+ }, al = ({
6286
6364
  className: e,
6287
6365
  disabled: n = !1,
6288
6366
  search: t,
@@ -6293,73 +6371,73 @@ const Hr = ({
6293
6371
  suggestions: r,
6294
6372
  isLoading: s = !1,
6295
6373
  placeholder: c,
6296
- ...p
6374
+ ...d
6297
6375
  }) => {
6298
- const [f, g] = fe({
6376
+ const [f, g] = de({
6299
6377
  isVisible: !1,
6300
6378
  highlightedIndex: -1,
6301
6379
  showingMore: !1,
6302
6380
  cursorPosition: 0
6303
- }), u = ge(null), m = ge(null), v = ge(null), b = le(() => {
6304
- const k = f.showingMore ? Dn.EXPANDED : Dn.DEFAULT, _ = r.slice(0, k);
6305
- return !f.showingMore && r.length > k ? [..._, { value: "Show more...", type: "more" }] : _;
6381
+ }), p = fe(null), m = fe(null), v = fe(null), S = re(() => {
6382
+ const F = f.showingMore ? Dn.EXPANDED : Dn.DEFAULT, R = r.slice(0, F);
6383
+ return !f.showingMore && r.length > F ? [...R, { value: "Show more...", type: "more" }] : R;
6306
6384
  }, [r, f.showingMore]), x = U(
6307
- (k) => {
6308
- g(typeof k == "function" ? (_) => ({ ..._, ...k(_) }) : (_) => ({ ..._, ...k }));
6385
+ (F) => {
6386
+ g(typeof F == "function" ? (R) => ({ ...R, ...F(R) }) : (R) => ({ ...R, ...F }));
6309
6387
  },
6310
6388
  []
6311
- ), E = U(
6312
- (k) => {
6313
- u.current && !u.current.contains(k.target) && x({
6389
+ ), b = U(
6390
+ (F) => {
6391
+ p.current && !p.current.contains(F.target) && x({
6314
6392
  isVisible: !1,
6315
6393
  highlightedIndex: -1
6316
6394
  });
6317
6395
  },
6318
6396
  [x]
6319
6397
  ), w = U(
6320
- (k, _) => {
6321
- const { tokenStart: q, tokenEnd: K } = _;
6322
- if (k.type === "filter") {
6323
- const ie = k.value + we.COLON + we.OPEN_PAREN;
6324
- return t.slice(0, q) + ie + t.slice(K);
6398
+ (F, R) => {
6399
+ const { tokenStart: B, tokenEnd: Q } = R;
6400
+ if (F.type === "filter") {
6401
+ const le = F.value + we.COLON + we.OPEN_PAREN;
6402
+ return t.slice(0, B) + le + t.slice(Q);
6325
6403
  }
6326
6404
  if (o.length === 0) {
6327
- const ie = k.type + we.COLON + we.OPEN_PAREN + we.EQUALS + k.value;
6328
- return t.slice(0, q) + ie + t.slice(K);
6405
+ const le = F.type + we.COLON + we.OPEN_PAREN + we.EQUALS + F.value;
6406
+ return t.slice(0, B) + le + t.slice(Q);
6329
6407
  }
6330
- const J = t.charAt(q - 1) === we.EQUALS ? k.value : we.EQUALS + k.value;
6331
- return t.slice(0, q) + J + t.slice(K);
6408
+ const ee = t.charAt(B - 1) === we.EQUALS ? F.value : we.EQUALS + F.value;
6409
+ return t.slice(0, B) + ee + t.slice(Q);
6332
6410
  },
6333
6411
  [t, o]
6334
- ), F = U(
6335
- (k) => {
6336
- const _ = b[k];
6337
- if (!_) return;
6338
- if (_.type === "more") {
6412
+ ), E = U(
6413
+ (F) => {
6414
+ const R = S[F];
6415
+ if (!R) return;
6416
+ if (R.type === "more") {
6339
6417
  x({ showingMore: !0 });
6340
6418
  return;
6341
6419
  }
6342
- const q = Ze(
6420
+ const B = Ze(
6343
6421
  t,
6344
6422
  f.cursorPosition
6345
- ), K = w(_, q), J = q.tokenStart + (_.type === "filter" ? _.value.length + 2 : o.length === 0 ? _.type.length + _.value.length + 3 : _.value.length + 1), { context: ie, token: te } = Ze(
6346
- K,
6347
- J
6423
+ ), Q = w(R, B), ee = B.tokenStart + (R.type === "filter" ? R.value.length + 2 : o.length === 0 ? R.type.length + R.value.length + 3 : R.value.length + 1), { context: le, token: ne } = Ze(
6424
+ Q,
6425
+ ee
6348
6426
  );
6349
- a(ie), l(te), i(K), setTimeout(() => {
6427
+ a(le), l(ne), i(Q), setTimeout(() => {
6350
6428
  v.current && (v.current.focus(), v.current.setSelectionRange(
6351
- J,
6352
- J
6429
+ ee,
6430
+ ee
6353
6431
  ));
6354
6432
  }, 0), x({
6355
6433
  highlightedIndex: 0,
6356
6434
  showingMore: !1,
6357
- isVisible: _.type === "filter",
6358
- cursorPosition: J
6435
+ isVisible: R.type === "filter",
6436
+ cursorPosition: ee
6359
6437
  });
6360
6438
  },
6361
6439
  [
6362
- b,
6440
+ S,
6363
6441
  w,
6364
6442
  t,
6365
6443
  f.cursorPosition,
@@ -6371,100 +6449,100 @@ const Hr = ({
6371
6449
  ]
6372
6450
  ), h = U(() => {
6373
6451
  if (!v.current) return;
6374
- const k = v.current.selectionStart || 0, { context: _, token: q } = Ze(
6452
+ const F = v.current.selectionStart || 0, { context: R, token: B } = Ze(
6375
6453
  t,
6376
- k
6454
+ F
6377
6455
  );
6378
- a(_), l(q), x((K) => ({
6379
- ...K,
6380
- isVisible: !An(t, k),
6381
- cursorPosition: k
6456
+ a(R), l(B), x((Q) => ({
6457
+ ...Q,
6458
+ isVisible: !An(t, F),
6459
+ cursorPosition: F
6382
6460
  }));
6383
6461
  }, [t, a, l, x]), P = U(
6384
- (k) => {
6385
- const { key: _ } = k;
6462
+ (F) => {
6463
+ const { key: R } = F;
6386
6464
  if (f.isVisible) {
6387
- const q = b.length;
6388
- switch (_) {
6465
+ const B = S.length;
6466
+ switch (R) {
6389
6467
  case "Tab":
6390
6468
  case "ArrowDown":
6391
- k.preventDefault(), x({
6392
- highlightedIndex: (f.highlightedIndex + 1) % q
6469
+ F.preventDefault(), x({
6470
+ highlightedIndex: (f.highlightedIndex + 1) % B
6393
6471
  });
6394
6472
  return;
6395
6473
  case "ArrowUp":
6396
- k.preventDefault(), x({
6397
- highlightedIndex: f.highlightedIndex <= 0 ? q - 1 : f.highlightedIndex - 1
6474
+ F.preventDefault(), x({
6475
+ highlightedIndex: f.highlightedIndex <= 0 ? B - 1 : f.highlightedIndex - 1
6398
6476
  });
6399
6477
  return;
6400
6478
  case "Enter":
6401
- k.preventDefault(), f.highlightedIndex >= 0 ? F(f.highlightedIndex) : x({ isVisible: !1 });
6479
+ F.preventDefault(), f.highlightedIndex >= 0 ? E(f.highlightedIndex) : x({ isVisible: !1 });
6402
6480
  return;
6403
6481
  case "Escape":
6404
- k.preventDefault(), x({
6482
+ F.preventDefault(), x({
6405
6483
  isVisible: !1,
6406
6484
  highlightedIndex: -1
6407
6485
  });
6408
6486
  return;
6409
6487
  }
6410
6488
  }
6411
- (_ === "ArrowLeft" || _ === "ArrowRight" || _ === "Home" || _ === "End") && setTimeout(h, 0);
6489
+ (R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && setTimeout(h, 0);
6412
6490
  },
6413
6491
  [
6414
6492
  f,
6415
- b.length,
6493
+ S.length,
6416
6494
  x,
6417
- F,
6495
+ E,
6418
6496
  h
6419
6497
  ]
6420
- ), z = U(
6421
- (k) => {
6422
- const { key: _ } = k;
6423
- (_ === "ArrowLeft" || _ === "ArrowRight" || _ === "Home" || _ === "End") && h();
6498
+ ), N = U(
6499
+ (F) => {
6500
+ const { key: R } = F;
6501
+ (R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && h();
6424
6502
  },
6425
6503
  [h]
6426
- ), X = U(() => {
6504
+ ), Y = U(() => {
6427
6505
  x({
6428
6506
  isVisible: !0,
6429
6507
  highlightedIndex: 0
6430
6508
  });
6431
- }, [x]), ee = U(
6432
- (k) => {
6433
- var J;
6434
- const _ = ((J = v.current) == null ? void 0 : J.selectionStart) || k.length, { context: q, token: K } = Ze(
6435
- k,
6436
- _
6509
+ }, [x]), Z = U(
6510
+ (F) => {
6511
+ var ee;
6512
+ const R = ((ee = v.current) == null ? void 0 : ee.selectionStart) || F.length, { context: B, token: Q } = Ze(
6513
+ F,
6514
+ R
6437
6515
  );
6438
- a(q), l(K), i(k), x({
6516
+ a(B), l(Q), i(F), x({
6439
6517
  highlightedIndex: 0,
6440
- isVisible: !An(k, _),
6518
+ isVisible: !An(F, R),
6441
6519
  showingMore: !1,
6442
- cursorPosition: _
6520
+ cursorPosition: R
6443
6521
  });
6444
6522
  },
6445
6523
  [a, l, i, x]
6446
6524
  ), ce = U(() => {
6447
6525
  setTimeout(h, 0);
6448
- }, [h]), de = U(() => {
6526
+ }, [h]), pe = U(() => {
6449
6527
  x({
6450
6528
  isVisible: !1,
6451
6529
  highlightedIndex: -1
6452
6530
  });
6453
6531
  }, [x]), he = U(
6454
- (k) => {
6455
- x({ highlightedIndex: k });
6532
+ (F) => {
6533
+ x({ highlightedIndex: F });
6456
6534
  },
6457
6535
  [x]
6458
6536
  );
6459
- return ue(() => (document.addEventListener("mousedown", E), () => document.removeEventListener("mousedown", E)), [E]), /* @__PURE__ */ G(
6537
+ return ge(() => (document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b)), [b]), /* @__PURE__ */ G(
6460
6538
  "div",
6461
6539
  {
6462
6540
  className: L("p-query-input", e),
6463
6541
  "data-testid": "p-query-input",
6464
- ref: u,
6465
- ...p,
6542
+ ref: p,
6543
+ ...d,
6466
6544
  children: [
6467
- /* @__PURE__ */ d(
6545
+ /* @__PURE__ */ u(
6468
6546
  jn,
6469
6547
  {
6470
6548
  disabled: n,
@@ -6475,11 +6553,11 @@ const Hr = ({
6475
6553
  id: "query-input",
6476
6554
  name: "query-input",
6477
6555
  ref: v,
6478
- onFocus: X,
6479
- onChange: ee,
6556
+ onFocus: Y,
6557
+ onChange: Z,
6480
6558
  onKeyDown: P,
6481
- onKeyUp: z,
6482
- onClear: de,
6559
+ onKeyUp: N,
6560
+ onClear: pe,
6483
6561
  onClick: ce,
6484
6562
  "aria-disabled": n,
6485
6563
  "aria-expanded": f.isVisible,
@@ -6487,7 +6565,7 @@ const Hr = ({
6487
6565
  "aria-owns": "query-suggestions"
6488
6566
  }
6489
6567
  ),
6490
- f.isVisible && r.length > 0 && /* @__PURE__ */ d(
6568
+ f.isVisible && r.length > 0 && /* @__PURE__ */ u(
6491
6569
  "ul",
6492
6570
  {
6493
6571
  className: "p-query-input__list",
@@ -6495,42 +6573,42 @@ const Hr = ({
6495
6573
  id: "query-suggestions",
6496
6574
  role: "listbox",
6497
6575
  "aria-label": "Search suggestions",
6498
- children: s ? /* @__PURE__ */ d("div", { className: "p-query-input__loading", children: /* @__PURE__ */ d(qt, { text: "Loading..." }) }) : b.map((k, _) => /* @__PURE__ */ G(
6576
+ children: s ? /* @__PURE__ */ u("div", { className: "p-query-input__loading", children: /* @__PURE__ */ u(Gt, { text: "Loading..." }) }) : S.map((F, R) => /* @__PURE__ */ G(
6499
6577
  "li",
6500
6578
  {
6501
6579
  className: L("p-query-input__item", {
6502
- highlight: _ === f.highlightedIndex
6580
+ highlight: R === f.highlightedIndex
6503
6581
  }),
6504
- onClick: () => F(_),
6505
- onKeyDown: () => F(_),
6506
- onMouseEnter: () => he(_),
6582
+ onClick: () => E(R),
6583
+ onKeyDown: () => E(R),
6584
+ onMouseEnter: () => he(R),
6507
6585
  role: "option",
6508
- "aria-selected": _ === f.highlightedIndex,
6586
+ "aria-selected": R === f.highlightedIndex,
6509
6587
  tabIndex: -1,
6510
6588
  children: [
6511
6589
  /* @__PURE__ */ G("span", { className: "p-query-input__item-label", children: [
6512
- /* @__PURE__ */ d(
6590
+ /* @__PURE__ */ u(
6513
6591
  "span",
6514
6592
  {
6515
6593
  className: L({
6516
- "u-text--muted": k.type === "more"
6594
+ "u-text--muted": F.type === "more"
6517
6595
  }),
6518
- children: k.value
6596
+ children: F.value
6519
6597
  }
6520
6598
  ),
6521
- k.type === "filter" && /* @__PURE__ */ d("span", { className: "u-text--muted", children: ":()" })
6599
+ F.type === "filter" && /* @__PURE__ */ u("span", { className: "u-text--muted", children: ":()" })
6522
6600
  ] }),
6523
- k.type !== "more" && /* @__PURE__ */ d("span", { className: "u-text--muted u-align-text--right", children: k.type })
6601
+ F.type !== "more" && /* @__PURE__ */ u("span", { className: "u-text--muted u-align-text--right", children: F.type })
6524
6602
  ]
6525
6603
  },
6526
- `${k.value}-${_}`
6604
+ `${F.value}-${R}`
6527
6605
  ))
6528
6606
  }
6529
6607
  )
6530
6608
  ]
6531
6609
  }
6532
6610
  );
6533
- }, ol = ({ value: e, unit: n }, {
6611
+ }, rl = ({ value: e, unit: n }, {
6534
6612
  binary: t = !1,
6535
6613
  convertTo: i,
6536
6614
  decimals: o = 2,
@@ -6539,41 +6617,41 @@ const Hr = ({
6539
6617
  const l = e < 0, r = Math.abs(e);
6540
6618
  if (r === 0)
6541
6619
  return { value: 0, unit: i || "B" };
6542
- const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], p = c.findIndex((v) => v === n) || 0, f = r * Math.pow(s, p), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(f) / Math.log(s));
6543
- let u = f / Math.pow(s, g);
6544
- if (u % 1 !== 0) {
6620
+ const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], d = c.findIndex((v) => v === n) || 0, f = r * Math.pow(s, d), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(f) / Math.log(s));
6621
+ let p = f / Math.pow(s, g);
6622
+ if (p % 1 !== 0) {
6545
6623
  const v = Math.pow(10, o);
6546
- u = Math[a](u * v) / v;
6624
+ p = Math[a](p * v) / v;
6547
6625
  }
6548
6626
  return {
6549
- value: l ? -u : u,
6627
+ value: l ? -p : p,
6550
6628
  unit: c[g]
6551
6629
  };
6552
6630
  };
6553
6631
  export {
6554
6632
  ot as ContentSection,
6555
6633
  ai as DynamicTable,
6556
- Qr as ExternalLink,
6557
- el as FileUpload,
6558
- Kt as FormSection,
6559
- nl as GenericTable,
6634
+ Zr as ExternalLink,
6635
+ nl as FileUpload,
6636
+ Wt as FormSection,
6637
+ ol as GenericTable,
6560
6638
  Vn as InputGroup,
6561
6639
  Hn as MainToolbar,
6562
6640
  Ni as Meter,
6563
- tl as MultiSelect,
6641
+ il as MultiSelect,
6564
6642
  $a as MultiSelectDropdown,
6565
- re as Navigation,
6643
+ ae as Navigation,
6566
6644
  uo as NavigationBar,
6567
- Jr as NestedFormGroup,
6645
+ el as NestedFormGroup,
6568
6646
  Ro as Pagination,
6569
- Eo as PaginationContainer,
6647
+ ko as PaginationContainer,
6570
6648
  zn as Placeholder,
6571
6649
  Bi as ProgressIndicator,
6572
- il as QueryInput,
6573
- Zr as Stepper,
6650
+ al as QueryInput,
6651
+ tl as Stepper,
6574
6652
  li as TableCaption,
6575
- Xr as defaultFilledColors,
6576
- ol as formatBytes,
6577
- Ie as meterColor,
6653
+ Jr as defaultFilledColors,
6654
+ rl as formatBytes,
6655
+ De as meterColor,
6578
6656
  Oe as testIds
6579
6657
  };