@canonical/maas-react-components 1.31.0 → 1.32.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,7 +1,7 @@
1
- import { jsxs as U, jsx as p, Fragment as we } from "react/jsx-runtime";
2
- import * as pe from "react";
3
- import yi, { useRef as Se, useState as de, useEffect as Ee, useCallback as Q, cloneElement as Si, createContext as In, useId as et, useContext as Ht, useMemo as le, useReducer as Dn, forwardRef as bi, useImperativeHandle as Ci, Fragment as $n, useLayoutEffect as An } from "react";
4
- import { useListener as _i, Link as Ri, Spinner as qt, Tooltip as Ei, Button as be, Icon as Ce, Row as ki, Col as Fi, Input as Pi, Label as Ii, CheckboxInput as Di, useClickOutside as $i, useOnEscapePressed as Ai, SearchBox as Mn, Select as Mi } from "@canonical/react-components";
1
+ import { jsxs as B, jsx as p, Fragment as we } from "react/jsx-runtime";
2
+ import * as ue from "react";
3
+ import bi, { useRef as be, useState as de, useEffect as Ee, useCallback as Y, cloneElement as Si, createContext as In, useId as et, useContext as Ht, useMemo as re, useReducer as Dn, forwardRef as Ci, useImperativeHandle as _i, Fragment as $n, useLayoutEffect as An } from "react";
4
+ import { useListener as Ri, Link as Ei, Spinner as qt, Tooltip as Mn, Button as Se, Icon as Ce, Row as ki, Col as Fi, Input as Pi, Label as Ii, CheckboxInput as Di, useClickOutside as $i, useOnEscapePressed as Ai, SearchBox as On, Select as Mi } from "@canonical/react-components";
5
5
  function Gt(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
@@ -45,7 +45,7 @@ function Oi() {
45
45
  }(ft)), ft.exports;
46
46
  }
47
47
  var ji = Oi();
48
- const q = /* @__PURE__ */ Gt(ji), Ie = {
48
+ const G = /* @__PURE__ */ Gt(ji), Ie = {
49
49
  caution: "#F99B11",
50
50
  light: "#F7F7F7",
51
51
  linkFaded: "#D3E4ED",
@@ -59,7 +59,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
59
59
  Ie.positive,
60
60
  Ie.negative,
61
61
  Ie.caution
62
- ], Ti = Ie.linkFaded, On = Ie.caution, It = Ie.light, en = 2, tn = 1, nn = (e, n) => {
62
+ ], Ti = Ie.linkFaded, jn = Ie.caution, It = Ie.light, en = 2, tn = 1, nn = (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 * en ? t / n : en;
@@ -79,17 +79,17 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
79
79
  size: a = "regular",
80
80
  ...r
81
81
  }) => {
82
- const l = Se(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);
82
+ const l = be(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
83
  Ee(() => {
84
84
  g(o === "segmented" ? nn(l, c) : 0);
85
85
  }, [c, o]);
86
- const u = Q(() => {
86
+ const u = Y(() => {
87
87
  g(nn(l, c));
88
88
  }, [l, c, g]);
89
- return _i(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ U(
89
+ return Ri(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
90
90
  "div",
91
91
  {
92
- className: q("p-meter", e, {
92
+ className: G("p-meter", e, {
93
93
  "p-meter--small": a === "small"
94
94
  }),
95
95
  "aria-label": r == null ? void 0 : r["aria-label"],
@@ -102,7 +102,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
102
102
  data: t,
103
103
  datumWidths: d,
104
104
  maximum: c,
105
- overColor: On,
105
+ overColor: jn,
106
106
  segmentWidth: f,
107
107
  separatorColor: It
108
108
  }
@@ -141,13 +141,13 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
141
141
  ${It} ${i}px
142
142
  )`
143
143
  });
144
- return /* @__PURE__ */ U(we, { children: [
144
+ return /* @__PURE__ */ B(we, { children: [
145
145
  o() ? /* @__PURE__ */ p(
146
146
  "div",
147
147
  {
148
148
  className: "p-meter__filled",
149
149
  "data-testid": Oe.meteroverflow,
150
- style: { backgroundColor: On, width: "100%" }
150
+ style: { backgroundColor: jn, width: "100%" }
151
151
  }
152
152
  ) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */ p(
153
153
  "div",
@@ -173,15 +173,15 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
173
173
  }) => /* @__PURE__ */ p(
174
174
  "div",
175
175
  {
176
- className: q("p-meter__label", e),
176
+ className: G("p-meter__label", e),
177
177
  "data-testid": Oe.label,
178
178
  children: n
179
179
  }
180
180
  );
181
181
  zi.Label = Li;
182
- const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Hi = ({
182
+ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Hi = ({
183
183
  percentComplete: e
184
- }) => /* @__PURE__ */ U("small", { className: "progress-indicator", children: [
184
+ }) => /* @__PURE__ */ B("small", { className: "progress-indicator", children: [
185
185
  e,
186
186
  "% ",
187
187
  /* @__PURE__ */ p(qt, { className: "progress-indicator__spinner" })
@@ -196,7 +196,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
196
196
  "span",
197
197
  {
198
198
  "aria-label": "loading",
199
- className: q("p-placeholder", t),
199
+ className: G("p-placeholder", t),
200
200
  role: "progressbar",
201
201
  style: { animationDelay: `${o}ms` },
202
202
  children: /* @__PURE__ */ p("span", { "aria-hidden": "true", children: e || n || "Loading" })
@@ -207,10 +207,10 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
207
207
  setIsCollapsed: n,
208
208
  className: t
209
209
  }) => /* @__PURE__ */ p(
210
- Ei,
210
+ Mn,
211
211
  {
212
212
  className: "p-side-navigation__tooltip-wrapper",
213
- message: /* @__PURE__ */ U(we, { children: [
213
+ message: /* @__PURE__ */ B(we, { children: [
214
214
  e ? "expand" : "collapse",
215
215
  "( ",
216
216
  /* @__PURE__ */ p("code", { children: "[" }),
@@ -219,11 +219,11 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
219
219
  position: "right",
220
220
  tooltipClassName: "p-side-navigation__tooltip",
221
221
  children: /* @__PURE__ */ p(
222
- be,
222
+ Se,
223
223
  {
224
224
  appearance: "base",
225
225
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
226
- className: q(
226
+ className: G(
227
227
  "is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
228
228
  t
229
229
  ),
@@ -234,24 +234,24 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
234
234
  }
235
235
  )
236
236
  }
237
- ), Ui = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Qi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), Ji = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: q("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Zi = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: q("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), eo = ({
237
+ ), Ui = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Qi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), Ji = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: G("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Zi = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: G("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), eo = ({
238
238
  as: e,
239
239
  ...n
240
240
  }) => /* @__PURE__ */ p(
241
241
  e || "a",
242
242
  {
243
- className: q("p-side-navigation__link", n.className),
243
+ className: G("p-side-navigation__link", n.className),
244
244
  ...n
245
245
  }
246
- ), to = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: q("p-side-navigation__list", n), children: e }), no = ({
246
+ ), to = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: G("p-side-navigation__list", n), children: e }), no = ({
247
247
  as: e,
248
248
  children: n,
249
249
  className: t,
250
250
  ...i
251
- }) => /* @__PURE__ */ p(e || "a", { className: q("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), io = ({ children: e }) => Si(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), oo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
251
+ }) => /* @__PURE__ */ p(e || "a", { className: G("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), io = ({ children: e }) => Si(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), oo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
252
252
  "div",
253
253
  {
254
- className: q("p-panel__logo-name is-fading-when-collapsed", {
254
+ className: G("p-panel__logo-name is-fading-when-collapsed", {
255
255
  "p-panel__logo-name--small": n === "small"
256
256
  }),
257
257
  children: e
@@ -261,10 +261,10 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
261
261
  className: n,
262
262
  onClick: t
263
263
  }) => /* @__PURE__ */ p(
264
- be,
264
+ Se,
265
265
  {
266
266
  appearance: "base",
267
- className: q(
267
+ className: G(
268
268
  "p-side-navigation__button--menu has-icon is-dark",
269
269
  n
270
270
  ),
@@ -273,7 +273,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
273
273
  },
274
274
  children: /* @__PURE__ */ p(we, { children: e })
275
275
  }
276
- ), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: q("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), co = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: q("p-panel is-dark", n), children: e }) });
276
+ ), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: G("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), co = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: G("p-panel is-dark", n), children: e }) });
277
277
  ae.Header = Xi;
278
278
  ae.Banner = Gi;
279
279
  ae.Drawer = Wi;
@@ -293,7 +293,7 @@ ae.LogoIcon = io;
293
293
  ae.LogoName = oo;
294
294
  ae.LogoText = ro;
295
295
  co.MenuButton = lo;
296
- const Bt = In(null), jn = ({ children: e }) => {
296
+ const Bt = In(null), Tn = ({ children: e }) => {
297
297
  const n = et();
298
298
  return /* @__PURE__ */ p(Bt.Provider, { value: n, children: /* @__PURE__ */ p(
299
299
  "div",
@@ -312,20 +312,20 @@ const Bt = In(null), jn = ({ children: e }) => {
312
312
  const n = Ht(Bt);
313
313
  return /* @__PURE__ */ p("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
314
314
  };
315
- jn.Label = po;
316
- jn.Description = uo;
315
+ Tn.Label = po;
316
+ Tn.Description = uo;
317
317
  const Ut = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section", children: e }), go = ({ children: e }) => /* @__PURE__ */ p("h5", { className: "p-form-section__title u-no-padding--top", children: e }), fo = ({ children: e }) => /* @__PURE__ */ p("p", { className: "p-form-help-text", children: e }), mo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section__content", children: e });
318
318
  Ut.Title = go;
319
319
  Ut.Description = fo;
320
320
  Ut.Content = mo;
321
321
  function vo(e) {
322
- const [n, t] = pe.useState(null), i = pe.useRef(null), o = pe.useCallback(() => {
322
+ const [n, t] = ue.useState(null), i = ue.useRef(null), o = ue.useCallback(() => {
323
323
  if (e.current) {
324
324
  const a = e.current.getBoundingClientRect();
325
325
  t(a);
326
326
  }
327
327
  }, [e]);
328
- return pe.useEffect(() => {
328
+ return ue.useEffect(() => {
329
329
  const a = new ResizeObserver(() => {
330
330
  i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(o);
331
331
  });
@@ -334,17 +334,17 @@ function vo(e) {
334
334
  };
335
335
  }, [e, o]), n;
336
336
  }
337
- const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
338
- }]), Vn = ({ children: e }) => {
339
- const n = pe.useRef(null), t = vo(n), [i, o] = pe.useState(!1);
337
+ const zn = ue.createContext(null), Vn = ue.createContext([!1, () => {
338
+ }]), Nn = ({ children: e }) => {
339
+ const n = ue.useRef(null), t = vo(n), [i, o] = ue.useState(!1);
340
340
  return /* @__PURE__ */ p(
341
341
  "header",
342
342
  {
343
- className: q("main-toolbar", {
343
+ className: G("main-toolbar", {
344
344
  "main-toolbar--stacked": i
345
345
  }),
346
346
  ref: n,
347
- children: /* @__PURE__ */ p(Tn.Provider, { value: t, children: /* @__PURE__ */ p(zn.Provider, { value: [i, o], children: e }) })
347
+ children: /* @__PURE__ */ p(zn.Provider, { value: t, children: /* @__PURE__ */ p(Vn.Provider, { value: [i, o], children: e }) })
348
348
  }
349
349
  );
350
350
  }, xo = ({
@@ -355,16 +355,16 @@ const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
355
355
  }) => /* @__PURE__ */ p(
356
356
  e || "h1",
357
357
  {
358
- className: q("main-toolbar__title p-heading--4", t),
358
+ className: G("main-toolbar__title p-heading--4", t),
359
359
  "data-testid": "main-toolbar-heading",
360
360
  ...i,
361
361
  children: n
362
362
  }
363
363
  ), ho = ({ children: e }) => {
364
- const n = pe.useContext(Tn), [t, i] = pe.useContext(zn), o = pe.useRef(null);
365
- return pe.useEffect(() => {
364
+ const n = ue.useContext(zn), [t, i] = ue.useContext(Vn), o = ue.useRef(null);
365
+ return ue.useEffect(() => {
366
366
  !o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
367
- }, [i, n, o]), /* @__PURE__ */ U(we, { children: [
367
+ }, [i, n, o]), /* @__PURE__ */ B(we, { children: [
368
368
  /* @__PURE__ */ p(
369
369
  "div",
370
370
  {
@@ -378,7 +378,7 @@ const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
378
378
  /* @__PURE__ */ p(
379
379
  "div",
380
380
  {
381
- className: q("main-toolbar__controls", {
381
+ className: G("main-toolbar__controls", {
382
382
  "main-toolbar__controls--stacked": t
383
383
  }),
384
384
  children: e
@@ -386,8 +386,8 @@ const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
386
386
  )
387
387
  ] });
388
388
  };
389
- Vn.Title = xo;
390
- Vn.Controls = ho;
389
+ Nn.Title = xo;
390
+ Nn.Controls = ho;
391
391
  const ot = ({
392
392
  children: e,
393
393
  className: n,
@@ -395,28 +395,28 @@ const ot = ({
395
395
  variant: i = "wide",
396
396
  ...o
397
397
  }) => {
398
- const a = t || "section", r = q("content-section", n);
398
+ const a = t || "section", r = G("content-section", n);
399
399
  return /* @__PURE__ */ p(a, { ...o, className: r, children: /* @__PURE__ */ p(ki, { children: /* @__PURE__ */ p(Fi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ p(we, { children: e }) }) }) });
400
400
  }, wo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ p(
401
401
  t || "h1",
402
402
  {
403
403
  ...i,
404
- className: q("content-section__title p-heading--4", n),
404
+ className: G("content-section__title p-heading--4", n),
405
405
  children: e
406
406
  }
407
- ), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: q("content-section__header", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: q("content-section__body", n), children: e }), bo = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: q("content-section__footer", n), children: e });
407
+ ), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: G("content-section__header", n), children: e }), bo = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: G("content-section__body", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: G("content-section__footer", n), children: e });
408
408
  ot.Title = wo;
409
409
  ot.Header = yo;
410
- ot.Content = So;
411
- ot.Footer = bo;
412
- const Nn = ({
410
+ ot.Content = bo;
411
+ ot.Footer = So;
412
+ const Ln = ({
413
413
  children: e,
414
414
  className: n,
415
415
  isVisible: t
416
416
  }) => /* @__PURE__ */ p(
417
417
  "div",
418
418
  {
419
- className: q("fade-in--down", n),
419
+ className: G("fade-in--down", n),
420
420
  "aria-hidden": t ? "false" : "true",
421
421
  style: { visibility: t ? "visible" : "hidden" },
422
422
  children: e
@@ -424,7 +424,7 @@ const Nn = ({
424
424
  ), Gr = ({
425
425
  children: e,
426
426
  ...n
427
- }) => /* @__PURE__ */ p(Nn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }), Co = ({
427
+ }) => /* @__PURE__ */ p(Ln, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }), Co = ({
428
428
  className: e,
429
429
  currentPage: n,
430
430
  error: t,
@@ -439,10 +439,10 @@ const Nn = ({
439
439
  "nav",
440
440
  {
441
441
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
442
- className: q("p-pagination", e),
443
- children: /* @__PURE__ */ U("span", { className: "p-pagination--items", children: [
442
+ className: G("p-pagination", e),
443
+ children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
444
444
  /* @__PURE__ */ p(
445
- be,
445
+ Se,
446
446
  {
447
447
  "aria-label": "Previous page",
448
448
  className: "p-pagination__link--previous",
@@ -470,12 +470,12 @@ const Nn = ({
470
470
  }
471
471
  ),
472
472
  " ",
473
- /* @__PURE__ */ U("strong", { className: "u-no-wrap", children: [
473
+ /* @__PURE__ */ B("strong", { className: "u-no-wrap", children: [
474
474
  " of ",
475
475
  s
476
476
  ] }),
477
477
  /* @__PURE__ */ p(
478
- be,
478
+ Se,
479
479
  {
480
480
  "aria-label": "Next page",
481
481
  className: "p-pagination__link--next",
@@ -522,7 +522,7 @@ const Nn = ({
522
522
  "p",
523
523
  {
524
524
  "aria-label": a ? `${t} (completed)` : t,
525
- className: q("stepper__title", {
525
+ className: G("stepper__title", {
526
526
  "stepper__title--is-active": o,
527
527
  "stepper__title--is-complete": a
528
528
  }),
@@ -530,7 +530,7 @@ const Nn = ({
530
530
  }
531
531
  ) }, i);
532
532
  }) });
533
- var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
533
+ var Ue = { exports: {} }, Ke = { exports: {} }, U = {};
534
534
  /** @license React v16.13.1
535
535
  * react-is.production.min.js
536
536
  *
@@ -541,13 +541,13 @@ var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
541
541
  */
542
542
  var on;
543
543
  function Ro() {
544
- if (on) return K;
544
+ if (on) return U;
545
545
  on = 1;
546
- 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, r = e ? Symbol.for("react.provider") : 60109, l = 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, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
547
- function R(h) {
546
+ 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, r = e ? Symbol.for("react.provider") : 60109, l = 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, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
547
+ function E(h) {
548
548
  if (typeof h == "object" && h !== null) {
549
- var I = h.$$typeof;
550
- switch (I) {
549
+ var T = h.$$typeof;
550
+ switch (T) {
551
551
  case n:
552
552
  switch (h = h.type, h) {
553
553
  case s:
@@ -566,46 +566,46 @@ function Ro() {
566
566
  case r:
567
567
  return h;
568
568
  default:
569
- return I;
569
+ return T;
570
570
  }
571
571
  }
572
572
  case t:
573
- return I;
573
+ return T;
574
574
  }
575
575
  }
576
576
  }
577
- function A(h) {
578
- return R(h) === c;
577
+ function M(h) {
578
+ return E(h) === c;
579
579
  }
580
- return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = u, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(h) {
581
- return A(h) || R(h) === s;
582
- }, K.isConcurrentMode = A, K.isContextConsumer = function(h) {
583
- return R(h) === l;
584
- }, K.isContextProvider = function(h) {
585
- return R(h) === r;
586
- }, K.isElement = function(h) {
580
+ return U.AsyncMode = s, U.ConcurrentMode = c, U.ContextConsumer = l, U.ContextProvider = r, U.Element = n, U.ForwardRef = d, U.Fragment = i, U.Lazy = m, U.Memo = u, U.Portal = t, U.Profiler = a, U.StrictMode = o, U.Suspense = f, U.isAsyncMode = function(h) {
581
+ return M(h) || E(h) === s;
582
+ }, U.isConcurrentMode = M, U.isContextConsumer = function(h) {
583
+ return E(h) === l;
584
+ }, U.isContextProvider = function(h) {
585
+ return E(h) === r;
586
+ }, U.isElement = function(h) {
587
587
  return typeof h == "object" && h !== null && h.$$typeof === n;
588
- }, K.isForwardRef = function(h) {
589
- return R(h) === d;
590
- }, K.isFragment = function(h) {
591
- return R(h) === i;
592
- }, K.isLazy = function(h) {
593
- return R(h) === m;
594
- }, K.isMemo = function(h) {
595
- return R(h) === u;
596
- }, K.isPortal = function(h) {
597
- return R(h) === t;
598
- }, K.isProfiler = function(h) {
599
- return R(h) === a;
600
- }, K.isStrictMode = function(h) {
601
- return R(h) === o;
602
- }, K.isSuspense = function(h) {
603
- return R(h) === f;
604
- }, K.isValidElementType = function(h) {
605
- 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 === r || h.$$typeof === l || h.$$typeof === d || h.$$typeof === _ || h.$$typeof === w || h.$$typeof === T || h.$$typeof === v);
606
- }, K.typeOf = R, K;
588
+ }, U.isForwardRef = function(h) {
589
+ return E(h) === d;
590
+ }, U.isFragment = function(h) {
591
+ return E(h) === i;
592
+ }, U.isLazy = function(h) {
593
+ return E(h) === m;
594
+ }, U.isMemo = function(h) {
595
+ return E(h) === u;
596
+ }, U.isPortal = function(h) {
597
+ return E(h) === t;
598
+ }, U.isProfiler = function(h) {
599
+ return E(h) === a;
600
+ }, U.isStrictMode = function(h) {
601
+ return E(h) === o;
602
+ }, U.isSuspense = function(h) {
603
+ return E(h) === f;
604
+ }, U.isValidElementType = function(h) {
605
+ 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 === r || h.$$typeof === l || h.$$typeof === d || h.$$typeof === R || h.$$typeof === w || h.$$typeof === D || h.$$typeof === v);
606
+ }, U.typeOf = E, U;
607
607
  }
608
- var W = {};
608
+ var K = {};
609
609
  /** @license React v16.13.1
610
610
  * react-is.development.js
611
611
  *
@@ -617,17 +617,17 @@ var W = {};
617
617
  var an;
618
618
  function Eo() {
619
619
  return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
620
- 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, r = e ? Symbol.for("react.provider") : 60109, l = 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, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
621
- function R(S) {
622
- return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
623
- 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 === r || S.$$typeof === l || S.$$typeof === d || S.$$typeof === _ || S.$$typeof === w || S.$$typeof === T || S.$$typeof === v);
620
+ 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, r = e ? Symbol.for("react.provider") : 60109, l = 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, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
621
+ function E(b) {
622
+ return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
623
+ b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof === w || b.$$typeof === D || b.$$typeof === v);
624
624
  }
625
- function A(S) {
626
- if (typeof S == "object" && S !== null) {
627
- var fe = S.$$typeof;
628
- switch (fe) {
625
+ function M(b) {
626
+ if (typeof b == "object" && b !== null) {
627
+ var ge = b.$$typeof;
628
+ switch (ge) {
629
629
  case n:
630
- var Fe = S.type;
630
+ var Fe = b.type;
631
631
  switch (Fe) {
632
632
  case s:
633
633
  case c:
@@ -646,59 +646,59 @@ function Eo() {
646
646
  case r:
647
647
  return Te;
648
648
  default:
649
- return fe;
649
+ return ge;
650
650
  }
651
651
  }
652
652
  case t:
653
- return fe;
653
+ return ge;
654
654
  }
655
655
  }
656
656
  }
657
- var h = s, I = c, L = l, J = r, ee = n, re = d, ue = i, ge = m, P = u, b = t, G = a, Y = o, te = f, se = !1;
658
- function z(S) {
659
- return se || (se = !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.")), x(S) || A(S) === s;
657
+ var h = s, T = c, z = l, X = r, ee = n, pe = d, le = i, ve = m, I = u, S = t, L = a, Q = o, J = f, se = !1;
658
+ function te(b) {
659
+ return se || (se = !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.")), x(b) || M(b) === s;
660
660
  }
661
- function x(S) {
662
- return A(S) === c;
661
+ function x(b) {
662
+ return M(b) === c;
663
663
  }
664
- function y(S) {
665
- return A(S) === l;
664
+ function y(b) {
665
+ return M(b) === l;
666
666
  }
667
- function k(S) {
668
- return A(S) === r;
667
+ function k(b) {
668
+ return M(b) === r;
669
669
  }
670
- function F(S) {
671
- return typeof S == "object" && S !== null && S.$$typeof === n;
670
+ function P(b) {
671
+ return typeof b == "object" && b !== null && b.$$typeof === n;
672
672
  }
673
- function E(S) {
674
- return A(S) === d;
673
+ function _(b) {
674
+ return M(b) === d;
675
675
  }
676
- function M(S) {
677
- return A(S) === i;
676
+ function j(b) {
677
+ return M(b) === i;
678
678
  }
679
- function O(S) {
680
- return A(S) === m;
679
+ function F(b) {
680
+ return M(b) === m;
681
681
  }
682
- function V(S) {
683
- return A(S) === u;
682
+ function V(b) {
683
+ return M(b) === u;
684
684
  }
685
- function N(S) {
686
- return A(S) === t;
685
+ function H(b) {
686
+ return M(b) === t;
687
687
  }
688
- function B(S) {
689
- return A(S) === a;
688
+ function q(b) {
689
+ return M(b) === a;
690
690
  }
691
- function H(S) {
692
- return A(S) === o;
691
+ function N(b) {
692
+ return M(b) === o;
693
693
  }
694
- function ie(S) {
695
- return A(S) === f;
694
+ function ie(b) {
695
+ return M(b) === f;
696
696
  }
697
- W.AsyncMode = h, W.ConcurrentMode = I, W.ContextConsumer = L, W.ContextProvider = J, W.Element = ee, W.ForwardRef = re, W.Fragment = ue, W.Lazy = ge, W.Memo = P, W.Portal = b, W.Profiler = G, W.StrictMode = Y, W.Suspense = te, W.isAsyncMode = z, W.isConcurrentMode = x, W.isContextConsumer = y, W.isContextProvider = k, W.isElement = F, W.isForwardRef = E, W.isFragment = M, W.isLazy = O, W.isMemo = V, W.isPortal = N, W.isProfiler = B, W.isStrictMode = H, W.isSuspense = ie, W.isValidElementType = R, W.typeOf = A;
698
- }()), W;
697
+ K.AsyncMode = h, K.ConcurrentMode = T, K.ContextConsumer = z, K.ContextProvider = X, K.Element = ee, K.ForwardRef = pe, K.Fragment = le, K.Lazy = ve, K.Memo = I, K.Portal = S, K.Profiler = L, K.StrictMode = Q, K.Suspense = J, K.isAsyncMode = te, K.isConcurrentMode = x, K.isContextConsumer = y, K.isContextProvider = k, K.isElement = P, K.isForwardRef = _, K.isFragment = j, K.isLazy = F, K.isMemo = V, K.isPortal = H, K.isProfiler = q, K.isStrictMode = N, K.isSuspense = ie, K.isValidElementType = E, K.typeOf = M;
698
+ }()), K;
699
699
  }
700
700
  var rn;
701
- function Ln() {
701
+ function Hn() {
702
702
  return rn || (rn = 1, process.env.NODE_ENV === "production" ? Ke.exports = Ro() : Ke.exports = Eo()), Ke.exports;
703
703
  }
704
704
  /*
@@ -760,7 +760,7 @@ function Kt() {
760
760
  return vt = e, vt;
761
761
  }
762
762
  var xt, cn;
763
- function Hn() {
763
+ function qn() {
764
764
  return cn || (cn = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
765
765
  }
766
766
  var ht, pn;
@@ -770,7 +770,7 @@ function Fo() {
770
770
  var e = function() {
771
771
  };
772
772
  if (process.env.NODE_ENV !== "production") {
773
- var n = /* @__PURE__ */ Kt(), t = {}, i = /* @__PURE__ */ Hn();
773
+ var n = /* @__PURE__ */ Kt(), t = {}, i = /* @__PURE__ */ qn();
774
774
  e = function(a) {
775
775
  var r = "Warning: " + a;
776
776
  typeof console < "u" && console.error(r);
@@ -816,7 +816,7 @@ var wt, un;
816
816
  function Po() {
817
817
  if (un) return wt;
818
818
  un = 1;
819
- var e = Ln(), n = ko(), t = /* @__PURE__ */ Kt(), i = /* @__PURE__ */ Hn(), o = /* @__PURE__ */ Fo(), a = function() {
819
+ var e = Hn(), n = ko(), t = /* @__PURE__ */ Kt(), i = /* @__PURE__ */ qn(), o = /* @__PURE__ */ Fo(), a = function() {
820
820
  };
821
821
  process.env.NODE_ENV !== "production" && (a = function(l) {
822
822
  var s = "Warning: " + l;
@@ -845,17 +845,17 @@ function Po() {
845
845
  object: w("object"),
846
846
  string: w("string"),
847
847
  symbol: w("symbol"),
848
- any: T(),
849
- arrayOf: R,
850
- element: A(),
848
+ any: D(),
849
+ arrayOf: E,
850
+ element: M(),
851
851
  elementType: h(),
852
- instanceOf: I,
853
- node: re(),
854
- objectOf: J,
855
- oneOf: L,
852
+ instanceOf: T,
853
+ node: pe(),
854
+ objectOf: X,
855
+ oneOf: z,
856
856
  oneOfType: ee,
857
- shape: ge,
858
- exact: P
857
+ shape: ve,
858
+ exact: I
859
859
  };
860
860
  function m(x, y) {
861
861
  return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
@@ -864,129 +864,129 @@ function Po() {
864
864
  this.message = x, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
865
865
  }
866
866
  v.prototype = Error.prototype;
867
- function _(x) {
867
+ function R(x) {
868
868
  if (process.env.NODE_ENV !== "production")
869
869
  var y = {}, k = 0;
870
- function F(M, O, V, N, B, H, ie) {
871
- if (N = N || g, H = H || V, ie !== t) {
870
+ function P(j, F, V, H, q, N, ie) {
871
+ if (H = H || g, N = N || V, ie !== t) {
872
872
  if (s) {
873
- var S = new Error(
873
+ var b = new Error(
874
874
  "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"
875
875
  );
876
- throw S.name = "Invariant Violation", S;
876
+ throw b.name = "Invariant Violation", b;
877
877
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
878
- var fe = N + ":" + V;
879
- !y[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
878
+ var ge = H + ":" + V;
879
+ !y[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
880
880
  k < 3 && (a(
881
- "You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + N + "`. 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."
882
- ), y[fe] = !0, k++);
881
+ "You are manually calling a React.PropTypes validation function for the `" + N + "` 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."
882
+ ), y[ge] = !0, k++);
883
883
  }
884
884
  }
885
- return O[V] == null ? M ? O[V] === null ? new v("The " + B + " `" + H + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new v("The " + B + " `" + H + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : x(O, V, N, B, H);
885
+ return F[V] == null ? j ? F[V] === null ? new v("The " + q + " `" + N + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + q + " `" + N + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : x(F, V, H, q, N);
886
886
  }
887
- var E = F.bind(null, !1);
888
- return E.isRequired = F.bind(null, !0), E;
887
+ var _ = P.bind(null, !1);
888
+ return _.isRequired = P.bind(null, !0), _;
889
889
  }
890
890
  function w(x) {
891
- function y(k, F, E, M, O, V) {
892
- var N = k[F], B = Y(N);
893
- if (B !== x) {
894
- var H = te(N);
891
+ function y(k, P, _, j, F, V) {
892
+ var H = k[P], q = Q(H);
893
+ if (q !== x) {
894
+ var N = J(H);
895
895
  return new v(
896
- "Invalid " + M + " `" + O + "` of type " + ("`" + H + "` supplied to `" + E + "`, expected ") + ("`" + x + "`."),
896
+ "Invalid " + j + " `" + F + "` of type " + ("`" + N + "` supplied to `" + _ + "`, expected ") + ("`" + x + "`."),
897
897
  { expectedType: x }
898
898
  );
899
899
  }
900
900
  return null;
901
901
  }
902
- return _(y);
902
+ return R(y);
903
903
  }
904
- function T() {
905
- return _(r);
904
+ function D() {
905
+ return R(r);
906
906
  }
907
- function R(x) {
908
- function y(k, F, E, M, O) {
907
+ function E(x) {
908
+ function y(k, P, _, j, F) {
909
909
  if (typeof x != "function")
910
- return new v("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
911
- var V = k[F];
910
+ return new v("Property `" + F + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
911
+ var V = k[P];
912
912
  if (!Array.isArray(V)) {
913
- var N = Y(V);
914
- return new v("Invalid " + M + " `" + O + "` of type " + ("`" + N + "` supplied to `" + E + "`, expected an array."));
913
+ var H = Q(V);
914
+ return new v("Invalid " + j + " `" + F + "` of type " + ("`" + H + "` supplied to `" + _ + "`, expected an array."));
915
915
  }
916
- for (var B = 0; B < V.length; B++) {
917
- var H = x(V, B, E, M, O + "[" + B + "]", t);
918
- if (H instanceof Error)
919
- return H;
916
+ for (var q = 0; q < V.length; q++) {
917
+ var N = x(V, q, _, j, F + "[" + q + "]", t);
918
+ if (N instanceof Error)
919
+ return N;
920
920
  }
921
921
  return null;
922
922
  }
923
- return _(y);
923
+ return R(y);
924
924
  }
925
- function A() {
926
- function x(y, k, F, E, M) {
927
- var O = y[k];
928
- if (!l(O)) {
929
- var V = Y(O);
930
- return new v("Invalid " + E + " `" + M + "` of type " + ("`" + V + "` supplied to `" + F + "`, expected a single ReactElement."));
925
+ function M() {
926
+ function x(y, k, P, _, j) {
927
+ var F = y[k];
928
+ if (!l(F)) {
929
+ var V = Q(F);
930
+ return new v("Invalid " + _ + " `" + j + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected a single ReactElement."));
931
931
  }
932
932
  return null;
933
933
  }
934
- return _(x);
934
+ return R(x);
935
935
  }
936
936
  function h() {
937
- function x(y, k, F, E, M) {
938
- var O = y[k];
939
- if (!e.isValidElementType(O)) {
940
- var V = Y(O);
941
- return new v("Invalid " + E + " `" + M + "` of type " + ("`" + V + "` supplied to `" + F + "`, expected a single ReactElement type."));
937
+ function x(y, k, P, _, j) {
938
+ var F = y[k];
939
+ if (!e.isValidElementType(F)) {
940
+ var V = Q(F);
941
+ return new v("Invalid " + _ + " `" + j + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected a single ReactElement type."));
942
942
  }
943
943
  return null;
944
944
  }
945
- return _(x);
945
+ return R(x);
946
946
  }
947
- function I(x) {
948
- function y(k, F, E, M, O) {
949
- if (!(k[F] instanceof x)) {
950
- var V = x.name || g, N = z(k[F]);
951
- return new v("Invalid " + M + " `" + O + "` of type " + ("`" + N + "` supplied to `" + E + "`, expected ") + ("instance of `" + V + "`."));
947
+ function T(x) {
948
+ function y(k, P, _, j, F) {
949
+ if (!(k[P] instanceof x)) {
950
+ var V = x.name || g, H = te(k[P]);
951
+ return new v("Invalid " + j + " `" + F + "` of type " + ("`" + H + "` supplied to `" + _ + "`, expected ") + ("instance of `" + V + "`."));
952
952
  }
953
953
  return null;
954
954
  }
955
- return _(y);
955
+ return R(y);
956
956
  }
957
- function L(x) {
957
+ function z(x) {
958
958
  if (!Array.isArray(x))
959
959
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
960
960
  "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])."
961
961
  ) : a("Invalid argument supplied to oneOf, expected an array.")), r;
962
- function y(k, F, E, M, O) {
963
- for (var V = k[F], N = 0; N < x.length; N++)
964
- if (m(V, x[N]))
962
+ function y(k, P, _, j, F) {
963
+ for (var V = k[P], H = 0; H < x.length; H++)
964
+ if (m(V, x[H]))
965
965
  return null;
966
- var B = JSON.stringify(x, function(ie, S) {
967
- var fe = te(S);
968
- return fe === "symbol" ? String(S) : S;
966
+ var q = JSON.stringify(x, function(ie, b) {
967
+ var ge = J(b);
968
+ return ge === "symbol" ? String(b) : b;
969
969
  });
970
- return new v("Invalid " + M + " `" + O + "` of value `" + String(V) + "` " + ("supplied to `" + E + "`, expected one of " + B + "."));
970
+ return new v("Invalid " + j + " `" + F + "` of value `" + String(V) + "` " + ("supplied to `" + _ + "`, expected one of " + q + "."));
971
971
  }
972
- return _(y);
972
+ return R(y);
973
973
  }
974
- function J(x) {
975
- function y(k, F, E, M, O) {
974
+ function X(x) {
975
+ function y(k, P, _, j, F) {
976
976
  if (typeof x != "function")
977
- return new v("Property `" + O + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
978
- var V = k[F], N = Y(V);
979
- if (N !== "object")
980
- return new v("Invalid " + M + " `" + O + "` of type " + ("`" + N + "` supplied to `" + E + "`, expected an object."));
981
- for (var B in V)
982
- if (i(V, B)) {
983
- var H = x(V, B, E, M, O + "." + B, t);
984
- if (H instanceof Error)
985
- return H;
977
+ return new v("Property `" + F + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
978
+ var V = k[P], H = Q(V);
979
+ if (H !== "object")
980
+ return new v("Invalid " + j + " `" + F + "` of type " + ("`" + H + "` supplied to `" + _ + "`, expected an object."));
981
+ for (var q in V)
982
+ if (i(V, q)) {
983
+ var N = x(V, q, _, j, F + "." + q, t);
984
+ if (N instanceof Error)
985
+ return N;
986
986
  }
987
987
  return null;
988
988
  }
989
- return _(y);
989
+ return R(y);
990
990
  }
991
991
  function ee(x) {
992
992
  if (!Array.isArray(x))
@@ -998,70 +998,70 @@ function Po() {
998
998
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(k) + " at index " + y + "."
999
999
  ), r;
1000
1000
  }
1001
- function F(E, M, O, V, N) {
1002
- for (var B = [], H = 0; H < x.length; H++) {
1003
- var ie = x[H], S = ie(E, M, O, V, N, t);
1004
- if (S == null)
1001
+ function P(_, j, F, V, H) {
1002
+ for (var q = [], N = 0; N < x.length; N++) {
1003
+ var ie = x[N], b = ie(_, j, F, V, H, t);
1004
+ if (b == null)
1005
1005
  return null;
1006
- S.data && i(S.data, "expectedType") && B.push(S.data.expectedType);
1006
+ b.data && i(b.data, "expectedType") && q.push(b.data.expectedType);
1007
1007
  }
1008
- var fe = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
1009
- return new v("Invalid " + V + " `" + N + "` supplied to " + ("`" + O + "`" + fe + "."));
1008
+ var ge = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1009
+ return new v("Invalid " + V + " `" + H + "` supplied to " + ("`" + F + "`" + ge + "."));
1010
1010
  }
1011
- return _(F);
1011
+ return R(P);
1012
1012
  }
1013
- function re() {
1014
- function x(y, k, F, E, M) {
1015
- return b(y[k]) ? null : new v("Invalid " + E + " `" + M + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
1013
+ function pe() {
1014
+ function x(y, k, P, _, j) {
1015
+ return S(y[k]) ? null : new v("Invalid " + _ + " `" + j + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
1016
1016
  }
1017
- return _(x);
1017
+ return R(x);
1018
1018
  }
1019
- function ue(x, y, k, F, E) {
1019
+ function le(x, y, k, P, _) {
1020
1020
  return new v(
1021
- (x || "React class") + ": " + y + " type `" + k + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
1021
+ (x || "React class") + ": " + y + " type `" + k + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
1022
1022
  );
1023
1023
  }
1024
- function ge(x) {
1025
- function y(k, F, E, M, O) {
1026
- var V = k[F], N = Y(V);
1027
- if (N !== "object")
1028
- return new v("Invalid " + M + " `" + O + "` of type `" + N + "` " + ("supplied to `" + E + "`, expected `object`."));
1029
- for (var B in x) {
1030
- var H = x[B];
1031
- if (typeof H != "function")
1032
- return ue(E, M, O, B, te(H));
1033
- var ie = H(V, B, E, M, O + "." + B, t);
1024
+ function ve(x) {
1025
+ function y(k, P, _, j, F) {
1026
+ var V = k[P], H = Q(V);
1027
+ if (H !== "object")
1028
+ return new v("Invalid " + j + " `" + F + "` of type `" + H + "` " + ("supplied to `" + _ + "`, expected `object`."));
1029
+ for (var q in x) {
1030
+ var N = x[q];
1031
+ if (typeof N != "function")
1032
+ return le(_, j, F, q, J(N));
1033
+ var ie = N(V, q, _, j, F + "." + q, t);
1034
1034
  if (ie)
1035
1035
  return ie;
1036
1036
  }
1037
1037
  return null;
1038
1038
  }
1039
- return _(y);
1039
+ return R(y);
1040
1040
  }
1041
- function P(x) {
1042
- function y(k, F, E, M, O) {
1043
- var V = k[F], N = Y(V);
1044
- if (N !== "object")
1045
- return new v("Invalid " + M + " `" + O + "` of type `" + N + "` " + ("supplied to `" + E + "`, expected `object`."));
1046
- var B = n({}, k[F], x);
1047
- for (var H in B) {
1048
- var ie = x[H];
1049
- if (i(x, H) && typeof ie != "function")
1050
- return ue(E, M, O, H, te(ie));
1041
+ function I(x) {
1042
+ function y(k, P, _, j, F) {
1043
+ var V = k[P], H = Q(V);
1044
+ if (H !== "object")
1045
+ return new v("Invalid " + j + " `" + F + "` of type `" + H + "` " + ("supplied to `" + _ + "`, expected `object`."));
1046
+ var q = n({}, k[P], x);
1047
+ for (var N in q) {
1048
+ var ie = x[N];
1049
+ if (i(x, N) && typeof ie != "function")
1050
+ return le(_, j, F, N, J(ie));
1051
1051
  if (!ie)
1052
1052
  return new v(
1053
- "Invalid " + M + " `" + O + "` key `" + H + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(k[F], null, " ") + `
1053
+ "Invalid " + j + " `" + F + "` key `" + N + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
1054
1054
  Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1055
1055
  );
1056
- var S = ie(V, H, E, M, O + "." + H, t);
1057
- if (S)
1058
- return S;
1056
+ var b = ie(V, N, _, j, F + "." + N, t);
1057
+ if (b)
1058
+ return b;
1059
1059
  }
1060
1060
  return null;
1061
1061
  }
1062
- return _(y);
1062
+ return R(y);
1063
1063
  }
1064
- function b(x) {
1064
+ function S(x) {
1065
1065
  switch (typeof x) {
1066
1066
  case "number":
1067
1067
  case "string":
@@ -1071,20 +1071,20 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1071
1071
  return !x;
1072
1072
  case "object":
1073
1073
  if (Array.isArray(x))
1074
- return x.every(b);
1074
+ return x.every(S);
1075
1075
  if (x === null || l(x))
1076
1076
  return !0;
1077
1077
  var y = f(x);
1078
1078
  if (y) {
1079
- var k = y.call(x), F;
1079
+ var k = y.call(x), P;
1080
1080
  if (y !== x.entries) {
1081
- for (; !(F = k.next()).done; )
1082
- if (!b(F.value))
1081
+ for (; !(P = k.next()).done; )
1082
+ if (!S(P.value))
1083
1083
  return !1;
1084
1084
  } else
1085
- for (; !(F = k.next()).done; ) {
1086
- var E = F.value;
1087
- if (E && !b(E[1]))
1085
+ for (; !(P = k.next()).done; ) {
1086
+ var _ = P.value;
1087
+ if (_ && !S(_[1]))
1088
1088
  return !1;
1089
1089
  }
1090
1090
  } else
@@ -1094,17 +1094,17 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1094
1094
  return !1;
1095
1095
  }
1096
1096
  }
1097
- function G(x, y) {
1097
+ function L(x, y) {
1098
1098
  return x === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1099
1099
  }
1100
- function Y(x) {
1100
+ function Q(x) {
1101
1101
  var y = typeof x;
1102
- return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : G(y, x) ? "symbol" : y;
1102
+ return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : L(y, x) ? "symbol" : y;
1103
1103
  }
1104
- function te(x) {
1104
+ function J(x) {
1105
1105
  if (typeof x > "u" || x === null)
1106
1106
  return "" + x;
1107
- var y = Y(x);
1107
+ var y = Q(x);
1108
1108
  if (y === "object") {
1109
1109
  if (x instanceof Date)
1110
1110
  return "date";
@@ -1114,7 +1114,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1114
1114
  return y;
1115
1115
  }
1116
1116
  function se(x) {
1117
- var y = te(x);
1117
+ var y = J(x);
1118
1118
  switch (y) {
1119
1119
  case "array":
1120
1120
  case "object":
@@ -1127,7 +1127,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1127
1127
  return y;
1128
1128
  }
1129
1129
  }
1130
- function z(x) {
1130
+ function te(x) {
1131
1131
  return !x.constructor || !x.constructor.name ? g : x.constructor.name;
1132
1132
  }
1133
1133
  return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
@@ -1185,14 +1185,14 @@ var gn;
1185
1185
  function Do() {
1186
1186
  if (gn) return Ue.exports;
1187
1187
  if (gn = 1, process.env.NODE_ENV !== "production") {
1188
- var e = Ln(), n = !0;
1188
+ var e = Hn(), n = !0;
1189
1189
  Ue.exports = /* @__PURE__ */ Po()(e.isElement, n);
1190
1190
  } else
1191
1191
  Ue.exports = /* @__PURE__ */ Io()();
1192
1192
  return Ue.exports;
1193
1193
  }
1194
1194
  var $o = /* @__PURE__ */ Do();
1195
- const X = /* @__PURE__ */ Gt($o);
1195
+ const W = /* @__PURE__ */ Gt($o);
1196
1196
  function De(e, n, t, i) {
1197
1197
  function o(a) {
1198
1198
  return a instanceof t ? a : new t(function(r) {
@@ -2484,7 +2484,7 @@ function Lo(e, n) {
2484
2484
  if (n !== "drop")
2485
2485
  return t;
2486
2486
  const i = yield Promise.all(t.map(Ho));
2487
- return mn(qn(i));
2487
+ return mn(Gn(i));
2488
2488
  }
2489
2489
  return mn(Dt(e.files).map((t) => je(t)));
2490
2490
  });
@@ -2506,12 +2506,12 @@ function Ho(e) {
2506
2506
  if (typeof e.webkitGetAsEntry != "function")
2507
2507
  return vn(e);
2508
2508
  const n = e.webkitGetAsEntry();
2509
- return n && n.isDirectory ? Gn(n) : vn(e, n);
2509
+ return n && n.isDirectory ? Bn(n) : vn(e, n);
2510
2510
  }
2511
- function qn(e) {
2511
+ function Gn(e) {
2512
2512
  return e.reduce((n, t) => [
2513
2513
  ...n,
2514
- ...Array.isArray(t) ? qn(t) : [t]
2514
+ ...Array.isArray(t) ? Gn(t) : [t]
2515
2515
  ], []);
2516
2516
  }
2517
2517
  function vn(e, n) {
@@ -2534,10 +2534,10 @@ function vn(e, n) {
2534
2534
  }
2535
2535
  function qo(e) {
2536
2536
  return De(this, void 0, void 0, function* () {
2537
- return e.isDirectory ? Gn(e) : Go(e);
2537
+ return e.isDirectory ? Bn(e) : Go(e);
2538
2538
  });
2539
2539
  }
2540
- function Gn(e) {
2540
+ function Bn(e) {
2541
2541
  const n = e.createReader();
2542
2542
  return new Promise((t, i) => {
2543
2543
  const o = [];
@@ -2589,9 +2589,9 @@ function Bo() {
2589
2589
  }), We;
2590
2590
  }
2591
2591
  var Uo = Bo();
2592
- const St = /* @__PURE__ */ Gt(Uo);
2592
+ const bt = /* @__PURE__ */ Gt(Uo);
2593
2593
  function hn(e) {
2594
- return Yo(e) || Wo(e) || Un(e) || Ko();
2594
+ return Yo(e) || Wo(e) || Kn(e) || Ko();
2595
2595
  }
2596
2596
  function Ko() {
2597
2597
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -2617,24 +2617,24 @@ function yn(e) {
2617
2617
  for (var n = 1; n < arguments.length; n++) {
2618
2618
  var t = arguments[n] != null ? arguments[n] : {};
2619
2619
  n % 2 ? wn(Object(t), !0).forEach(function(i) {
2620
- Bn(e, i, t[i]);
2620
+ Un(e, i, t[i]);
2621
2621
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : wn(Object(t)).forEach(function(i) {
2622
2622
  Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
2623
2623
  });
2624
2624
  }
2625
2625
  return e;
2626
2626
  }
2627
- function Bn(e, n, t) {
2627
+ function Un(e, n, t) {
2628
2628
  return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
2629
2629
  }
2630
2630
  function He(e, n) {
2631
- return Jo(e) || Qo(e, n) || Un(e, n) || Xo();
2631
+ return Jo(e) || Qo(e, n) || Kn(e, n) || Xo();
2632
2632
  }
2633
2633
  function Xo() {
2634
2634
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2635
2635
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2636
2636
  }
2637
- function Un(e, n) {
2637
+ function Kn(e, n) {
2638
2638
  if (e) {
2639
2639
  if (typeof e == "string") return $t(e, n);
2640
2640
  var t = Object.prototype.toString.call(e).slice(8, -1);
@@ -2670,18 +2670,18 @@ function Qo(e, n) {
2670
2670
  function Jo(e) {
2671
2671
  if (Array.isArray(e)) return e;
2672
2672
  }
2673
- var Zo = typeof St == "function" ? St : St.default, ea = "file-invalid-type", ta = "file-too-large", na = "file-too-small", ia = "too-many-files", oa = function() {
2673
+ var Zo = typeof bt == "function" ? bt : bt.default, ea = "file-invalid-type", ta = "file-too-large", na = "file-too-small", ia = "too-many-files", oa = function() {
2674
2674
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = n.split(","), i = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
2675
2675
  return {
2676
2676
  code: ea,
2677
2677
  message: "File type must be ".concat(i)
2678
2678
  };
2679
- }, Sn = function(n) {
2679
+ }, bn = function(n) {
2680
2680
  return {
2681
2681
  code: ta,
2682
2682
  message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
2683
2683
  };
2684
- }, bn = function(n) {
2684
+ }, Sn = function(n) {
2685
2685
  return {
2686
2686
  code: na,
2687
2687
  message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
@@ -2690,18 +2690,18 @@ var Zo = typeof St == "function" ? St : St.default, ea = "file-invalid-type", ta
2690
2690
  code: ia,
2691
2691
  message: "Too many files"
2692
2692
  };
2693
- function Kn(e, n) {
2693
+ function Wn(e, n) {
2694
2694
  var t = e.type === "application/x-moz-file" || Zo(e, n);
2695
2695
  return [t, t ? null : oa(n)];
2696
2696
  }
2697
- function Wn(e, n, t) {
2697
+ function Yn(e, n, t) {
2698
2698
  if (Pe(e.size))
2699
2699
  if (Pe(n) && Pe(t)) {
2700
- if (e.size > t) return [!1, Sn(t)];
2701
- if (e.size < n) return [!1, bn(n)];
2700
+ if (e.size > t) return [!1, bn(t)];
2701
+ if (e.size < n) return [!1, Sn(n)];
2702
2702
  } else {
2703
- if (Pe(n) && e.size < n) return [!1, bn(n)];
2704
- if (Pe(t) && e.size > t) return [!1, Sn(t)];
2703
+ if (Pe(n) && e.size < n) return [!1, Sn(n)];
2704
+ if (Pe(t) && e.size > t) return [!1, bn(t)];
2705
2705
  }
2706
2706
  return [!0, null];
2707
2707
  }
@@ -2711,7 +2711,7 @@ function Pe(e) {
2711
2711
  function ra(e) {
2712
2712
  var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, r = e.maxFiles, l = e.validator;
2713
2713
  return !a && n.length > 1 || a && r >= 1 && n.length > r ? !1 : n.every(function(s) {
2714
- var c = Kn(s, t), d = He(c, 1), f = d[0], g = Wn(s, i, o), u = He(g, 1), m = u[0], v = l ? l(s) : null;
2714
+ var c = Wn(s, t), d = He(c, 1), f = d[0], g = Yn(s, i, o), u = He(g, 1), m = u[0], v = l ? l(s) : null;
2715
2715
  return f && m && !v;
2716
2716
  });
2717
2717
  }
@@ -2754,10 +2754,10 @@ function ua(e) {
2754
2754
  if (Pe(e)) {
2755
2755
  var n = Object.entries(e).filter(function(t) {
2756
2756
  var i = He(t, 2), o = i[0], a = i[1], r = !0;
2757
- return Yn(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.')), r = !1), (!Array.isArray(a) || !a.every(Xn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), r = !1), r;
2757
+ return Xn(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.')), r = !1), (!Array.isArray(a) || !a.every(Qn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), r = !1), r;
2758
2758
  }).reduce(function(t, i) {
2759
2759
  var o = He(i, 2), a = o[0], r = o[1];
2760
- return yn(yn({}, t), {}, Bn({}, a, r));
2760
+ return yn(yn({}, t), {}, Un({}, a, r));
2761
2761
  }, {});
2762
2762
  return [{
2763
2763
  // description is required due to https://crbug.com/1264708
@@ -2773,7 +2773,7 @@ function da(e) {
2773
2773
  var i = He(t, 2), o = i[0], a = i[1];
2774
2774
  return [].concat(hn(n), [o], hn(a));
2775
2775
  }, []).filter(function(n) {
2776
- return Yn(n) || Xn(n);
2776
+ return Xn(n) || Qn(n);
2777
2777
  }).join(",");
2778
2778
  }
2779
2779
  function ga(e) {
@@ -2782,34 +2782,34 @@ function ga(e) {
2782
2782
  function fa(e) {
2783
2783
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
2784
2784
  }
2785
- function Yn(e) {
2785
+ function Xn(e) {
2786
2786
  return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
2787
2787
  }
2788
- function Xn(e) {
2788
+ function Qn(e) {
2789
2789
  return /^.*\.[\w]+$/.test(e);
2790
2790
  }
2791
2791
  var ma = ["children"], va = ["open"], xa = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ha = ["refKey", "onChange", "onClick"];
2792
2792
  function wa(e) {
2793
- return ba(e) || Sa(e) || Qn(e) || ya();
2793
+ return Sa(e) || ba(e) || Jn(e) || ya();
2794
2794
  }
2795
2795
  function ya() {
2796
2796
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
2797
2797
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2798
2798
  }
2799
- function Sa(e) {
2799
+ function ba(e) {
2800
2800
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
2801
2801
  }
2802
- function ba(e) {
2802
+ function Sa(e) {
2803
2803
  if (Array.isArray(e)) return At(e);
2804
2804
  }
2805
- function bt(e, n) {
2806
- return Ra(e) || _a(e, n) || Qn(e, n) || Ca();
2805
+ function St(e, n) {
2806
+ return Ra(e) || _a(e, n) || Jn(e, n) || Ca();
2807
2807
  }
2808
2808
  function Ca() {
2809
2809
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2810
2810
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2811
2811
  }
2812
- function Qn(e, n) {
2812
+ function Jn(e, n) {
2813
2813
  if (e) {
2814
2814
  if (typeof e == "string") return At(e, n);
2815
2815
  var t = Object.prototype.toString.call(e).slice(8, -1);
@@ -2886,18 +2886,18 @@ function Ea(e, n) {
2886
2886
  o = i[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
2887
2887
  return t;
2888
2888
  }
2889
- var Wt = /* @__PURE__ */ bi(function(e, n) {
2890
- var t = e.children, i = it(e, ma), o = Zn(i), a = o.open, r = it(o, va);
2891
- return Ci(n, function() {
2889
+ var Wt = /* @__PURE__ */ Ci(function(e, n) {
2890
+ var t = e.children, i = it(e, ma), o = ei(i), a = o.open, r = it(o, va);
2891
+ return _i(n, function() {
2892
2892
  return {
2893
2893
  open: a
2894
2894
  };
2895
- }, [a]), /* @__PURE__ */ yi.createElement($n, null, t(Z(Z({}, r), {}, {
2895
+ }, [a]), /* @__PURE__ */ bi.createElement($n, null, t(Z(Z({}, r), {}, {
2896
2896
  open: a
2897
2897
  })));
2898
2898
  });
2899
2899
  Wt.displayName = "Dropzone";
2900
- var Jn = {
2900
+ var Zn = {
2901
2901
  disabled: !1,
2902
2902
  getFilesFromEvent: jo,
2903
2903
  maxSize: 1 / 0,
@@ -2913,7 +2913,7 @@ var Jn = {
2913
2913
  useFsAccessApi: !1,
2914
2914
  autoFocus: !1
2915
2915
  };
2916
- Wt.defaultProps = Jn;
2916
+ Wt.defaultProps = Zn;
2917
2917
  Wt.propTypes = {
2918
2918
  /**
2919
2919
  * Render function that exposes the dropzone state and prop getter fns
@@ -2930,7 +2930,7 @@ Wt.propTypes = {
2930
2930
  * @param {File[]} params.acceptedFiles Accepted files
2931
2931
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
2932
2932
  */
2933
- children: X.func,
2933
+ children: W.func,
2934
2934
  /**
2935
2935
  * Set accepted file types.
2936
2936
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -2938,90 +2938,90 @@ Wt.propTypes = {
2938
2938
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
2939
2939
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
2940
2940
  */
2941
- accept: X.objectOf(X.arrayOf(X.string)),
2941
+ accept: W.objectOf(W.arrayOf(W.string)),
2942
2942
  /**
2943
2943
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2944
2944
  */
2945
- multiple: X.bool,
2945
+ multiple: W.bool,
2946
2946
  /**
2947
2947
  * If false, allow dropped items to take over the current browser window
2948
2948
  */
2949
- preventDropOnDocument: X.bool,
2949
+ preventDropOnDocument: W.bool,
2950
2950
  /**
2951
2951
  * If true, disables click to open the native file selection dialog
2952
2952
  */
2953
- noClick: X.bool,
2953
+ noClick: W.bool,
2954
2954
  /**
2955
2955
  * If true, disables SPACE/ENTER to open the native file selection dialog.
2956
2956
  * Note that it also stops tracking the focus state.
2957
2957
  */
2958
- noKeyboard: X.bool,
2958
+ noKeyboard: W.bool,
2959
2959
  /**
2960
2960
  * If true, disables drag 'n' drop
2961
2961
  */
2962
- noDrag: X.bool,
2962
+ noDrag: W.bool,
2963
2963
  /**
2964
2964
  * If true, stops drag event propagation to parents
2965
2965
  */
2966
- noDragEventsBubbling: X.bool,
2966
+ noDragEventsBubbling: W.bool,
2967
2967
  /**
2968
2968
  * Minimum file size (in bytes)
2969
2969
  */
2970
- minSize: X.number,
2970
+ minSize: W.number,
2971
2971
  /**
2972
2972
  * Maximum file size (in bytes)
2973
2973
  */
2974
- maxSize: X.number,
2974
+ maxSize: W.number,
2975
2975
  /**
2976
2976
  * Maximum accepted number of files
2977
2977
  * The default value is 0 which means there is no limitation to how many files are accepted.
2978
2978
  */
2979
- maxFiles: X.number,
2979
+ maxFiles: W.number,
2980
2980
  /**
2981
2981
  * Enable/disable the dropzone
2982
2982
  */
2983
- disabled: X.bool,
2983
+ disabled: W.bool,
2984
2984
  /**
2985
2985
  * Use this to provide a custom file aggregator
2986
2986
  *
2987
2987
  * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
2988
2988
  */
2989
- getFilesFromEvent: X.func,
2989
+ getFilesFromEvent: W.func,
2990
2990
  /**
2991
2991
  * Cb for when closing the file dialog with no selection
2992
2992
  */
2993
- onFileDialogCancel: X.func,
2993
+ onFileDialogCancel: W.func,
2994
2994
  /**
2995
2995
  * Cb for when opening the file dialog
2996
2996
  */
2997
- onFileDialogOpen: X.func,
2997
+ onFileDialogOpen: W.func,
2998
2998
  /**
2999
2999
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
3000
3000
  * to open the file picker instead of using an `<input type="file">` click event.
3001
3001
  */
3002
- useFsAccessApi: X.bool,
3002
+ useFsAccessApi: W.bool,
3003
3003
  /**
3004
3004
  * Set to true to focus the root element on render
3005
3005
  */
3006
- autoFocus: X.bool,
3006
+ autoFocus: W.bool,
3007
3007
  /**
3008
3008
  * Cb for when the `dragenter` event occurs.
3009
3009
  *
3010
3010
  * @param {DragEvent} event
3011
3011
  */
3012
- onDragEnter: X.func,
3012
+ onDragEnter: W.func,
3013
3013
  /**
3014
3014
  * Cb for when the `dragleave` event occurs
3015
3015
  *
3016
3016
  * @param {DragEvent} event
3017
3017
  */
3018
- onDragLeave: X.func,
3018
+ onDragLeave: W.func,
3019
3019
  /**
3020
3020
  * Cb for when the `dragover` event occurs
3021
3021
  *
3022
3022
  * @param {DragEvent} event
3023
3023
  */
3024
- onDragOver: X.func,
3024
+ onDragOver: W.func,
3025
3025
  /**
3026
3026
  * Cb for when the `drop` event occurs.
3027
3027
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -3052,7 +3052,7 @@ Wt.propTypes = {
3052
3052
  * @param {FileRejection[]} fileRejections
3053
3053
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
3054
3054
  */
3055
- onDrop: X.func,
3055
+ onDrop: W.func,
3056
3056
  /**
3057
3057
  * Cb for when the `drop` event occurs.
3058
3058
  * Note that if no files are accepted, this callback is not invoked.
@@ -3060,7 +3060,7 @@ Wt.propTypes = {
3060
3060
  * @param {File[]} files
3061
3061
  * @param {(DragEvent|Event)} event
3062
3062
  */
3063
- onDropAccepted: X.func,
3063
+ onDropAccepted: W.func,
3064
3064
  /**
3065
3065
  * Cb for when the `drop` event occurs.
3066
3066
  * Note that if no files are rejected, this callback is not invoked.
@@ -3068,19 +3068,19 @@ Wt.propTypes = {
3068
3068
  * @param {FileRejection[]} fileRejections
3069
3069
  * @param {(DragEvent|Event)} event
3070
3070
  */
3071
- onDropRejected: X.func,
3071
+ onDropRejected: W.func,
3072
3072
  /**
3073
3073
  * Cb for when there's some error from any of the promises.
3074
3074
  *
3075
3075
  * @param {Error} error
3076
3076
  */
3077
- onError: X.func,
3077
+ onError: W.func,
3078
3078
  /**
3079
3079
  * Custom validation function. It must return null if there's no errors.
3080
3080
  * @param {File} file
3081
3081
  * @returns {FileError|FileError[]|null}
3082
3082
  */
3083
- validator: X.func
3083
+ validator: W.func
3084
3084
  };
3085
3085
  var Ot = {
3086
3086
  isFocused: !1,
@@ -3091,187 +3091,187 @@ var Ot = {
3091
3091
  acceptedFiles: [],
3092
3092
  fileRejections: []
3093
3093
  };
3094
- function Zn() {
3095
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Z(Z({}, Jn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, _ = n.onFileDialogOpen, w = n.useFsAccessApi, T = n.autoFocus, R = n.preventDropOnDocument, A = n.noClick, h = n.noKeyboard, I = n.noDrag, L = n.noDragEventsBubbling, J = n.onError, ee = n.validator, re = le(function() {
3094
+ function ei() {
3095
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Z(Z({}, Zn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, R = n.onFileDialogOpen, w = n.useFsAccessApi, D = n.autoFocus, E = n.preventDropOnDocument, M = n.noClick, h = n.noKeyboard, T = n.noDrag, z = n.noDragEventsBubbling, X = n.onError, ee = n.validator, pe = re(function() {
3096
3096
  return da(t);
3097
- }, [t]), ue = le(function() {
3097
+ }, [t]), le = re(function() {
3098
3098
  return ua(t);
3099
- }, [t]), ge = le(function() {
3100
- return typeof _ == "function" ? _ : Rn;
3101
- }, [_]), P = le(function() {
3099
+ }, [t]), ve = re(function() {
3100
+ return typeof R == "function" ? R : Rn;
3101
+ }, [R]), I = re(function() {
3102
3102
  return typeof v == "function" ? v : Rn;
3103
- }, [v]), b = Se(null), G = Se(null), Y = Dn(ka, Ot), te = bt(Y, 2), se = te[0], z = te[1], x = se.isFocused, y = se.isFileDialogActive, k = Se(typeof window < "u" && window.isSecureContext && w && pa()), F = function() {
3103
+ }, [v]), S = be(null), L = be(null), Q = Dn(ka, Ot), J = St(Q, 2), se = J[0], te = J[1], x = se.isFocused, y = se.isFileDialogActive, k = be(typeof window < "u" && window.isSecureContext && w && pa()), P = function() {
3104
3104
  !k.current && y && setTimeout(function() {
3105
- if (G.current) {
3106
- var j = G.current.files;
3107
- j.length || (z({
3105
+ if (L.current) {
3106
+ var O = L.current.files;
3107
+ O.length || (te({
3108
3108
  type: "closeDialog"
3109
- }), P());
3109
+ }), I());
3110
3110
  }
3111
3111
  }, 300);
3112
3112
  };
3113
3113
  Ee(function() {
3114
- return window.addEventListener("focus", F, !1), function() {
3115
- window.removeEventListener("focus", F, !1);
3114
+ return window.addEventListener("focus", P, !1), function() {
3115
+ window.removeEventListener("focus", P, !1);
3116
3116
  };
3117
- }, [G, y, P, k]);
3118
- var E = Se([]), M = function(j) {
3119
- b.current && b.current.contains(j.target) || (j.preventDefault(), E.current = []);
3117
+ }, [L, y, I, k]);
3118
+ var _ = be([]), j = function(O) {
3119
+ S.current && S.current.contains(O.target) || (O.preventDefault(), _.current = []);
3120
3120
  };
3121
3121
  Ee(function() {
3122
- return R && (document.addEventListener("dragover", Cn, !1), document.addEventListener("drop", M, !1)), function() {
3123
- R && (document.removeEventListener("dragover", Cn), document.removeEventListener("drop", M));
3122
+ return E && (document.addEventListener("dragover", Cn, !1), document.addEventListener("drop", j, !1)), function() {
3123
+ E && (document.removeEventListener("dragover", Cn), document.removeEventListener("drop", j));
3124
3124
  };
3125
- }, [b, R]), Ee(function() {
3126
- return !i && T && b.current && b.current.focus(), function() {
3125
+ }, [S, E]), Ee(function() {
3126
+ return !i && D && S.current && S.current.focus(), function() {
3127
3127
  };
3128
- }, [b, T, i]);
3129
- var O = Q(function(C) {
3130
- J ? J(C) : console.error(C);
3131
- }, [J]), V = Q(function(C) {
3132
- C.preventDefault(), C.persist(), Ge(C), E.current = [].concat(wa(E.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(j) {
3133
- if (!(nt(C) && !L)) {
3134
- var ne = j.length, oe = ne > 0 && ra({
3135
- files: j,
3136
- accept: re,
3128
+ }, [S, D, i]);
3129
+ var F = Y(function(C) {
3130
+ X ? X(C) : console.error(C);
3131
+ }, [X]), V = Y(function(C) {
3132
+ C.preventDefault(), C.persist(), Ge(C), _.current = [].concat(wa(_.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(O) {
3133
+ if (!(nt(C) && !z)) {
3134
+ var ne = O.length, oe = ne > 0 && ra({
3135
+ files: O,
3136
+ accept: pe,
3137
3137
  minSize: r,
3138
3138
  maxSize: a,
3139
3139
  multiple: l,
3140
3140
  maxFiles: s,
3141
3141
  validator: ee
3142
- }), me = ne > 0 && !oe;
3143
- z({
3142
+ }), fe = ne > 0 && !oe;
3143
+ te({
3144
3144
  isDragAccept: oe,
3145
- isDragReject: me,
3145
+ isDragReject: fe,
3146
3146
  isDragActive: !0,
3147
3147
  type: "setDraggedFiles"
3148
3148
  }), c && c(C);
3149
3149
  }
3150
- }).catch(function(j) {
3151
- return O(j);
3150
+ }).catch(function(O) {
3151
+ return F(O);
3152
3152
  });
3153
- }, [o, c, O, L, re, r, a, l, s, ee]), N = Q(function(C) {
3153
+ }, [o, c, F, z, pe, r, a, l, s, ee]), H = Y(function(C) {
3154
3154
  C.preventDefault(), C.persist(), Ge(C);
3155
- var j = Ye(C);
3156
- if (j && C.dataTransfer)
3155
+ var O = Ye(C);
3156
+ if (O && C.dataTransfer)
3157
3157
  try {
3158
3158
  C.dataTransfer.dropEffect = "copy";
3159
3159
  } catch {
3160
3160
  }
3161
- return j && f && f(C), !1;
3162
- }, [f, L]), B = Q(function(C) {
3161
+ return O && f && f(C), !1;
3162
+ }, [f, z]), q = Y(function(C) {
3163
3163
  C.preventDefault(), C.persist(), Ge(C);
3164
- var j = E.current.filter(function(oe) {
3165
- return b.current && b.current.contains(oe);
3166
- }), ne = j.indexOf(C.target);
3167
- ne !== -1 && j.splice(ne, 1), E.current = j, !(j.length > 0) && (z({
3164
+ var O = _.current.filter(function(oe) {
3165
+ return S.current && S.current.contains(oe);
3166
+ }), ne = O.indexOf(C.target);
3167
+ ne !== -1 && O.splice(ne, 1), _.current = O, !(O.length > 0) && (te({
3168
3168
  type: "setDraggedFiles",
3169
3169
  isDragActive: !1,
3170
3170
  isDragAccept: !1,
3171
3171
  isDragReject: !1
3172
3172
  }), Ye(C) && d && d(C));
3173
- }, [b, d, L]), H = Q(function(C, j) {
3173
+ }, [S, d, z]), N = Y(function(C, O) {
3174
3174
  var ne = [], oe = [];
3175
- C.forEach(function(me) {
3176
- var ze = Kn(me, re), Ae = bt(ze, 2), lt = Ae[0], st = Ae[1], ct = Wn(me, r, a), Be = bt(ct, 2), pt = Be[0], ut = Be[1], dt = ee ? ee(me) : null;
3175
+ C.forEach(function(fe) {
3176
+ var ze = Wn(fe, pe), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Yn(fe, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = ee ? ee(fe) : null;
3177
3177
  if (lt && pt && !dt)
3178
- ne.push(me);
3178
+ ne.push(fe);
3179
3179
  else {
3180
3180
  var gt = [st, ut];
3181
3181
  dt && (gt = gt.concat(dt)), oe.push({
3182
- file: me,
3183
- errors: gt.filter(function(wi) {
3184
- return wi;
3182
+ file: fe,
3183
+ errors: gt.filter(function(yi) {
3184
+ return yi;
3185
3185
  })
3186
3186
  });
3187
3187
  }
3188
- }), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(me) {
3188
+ }), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(fe) {
3189
3189
  oe.push({
3190
- file: me,
3190
+ file: fe,
3191
3191
  errors: [aa]
3192
3192
  });
3193
- }), ne.splice(0)), z({
3193
+ }), ne.splice(0)), te({
3194
3194
  acceptedFiles: ne,
3195
3195
  fileRejections: oe,
3196
3196
  isDragReject: oe.length > 0,
3197
3197
  type: "setFiles"
3198
- }), g && g(ne, oe, j), oe.length > 0 && m && m(oe, j), ne.length > 0 && u && u(ne, j);
3199
- }, [z, l, re, r, a, s, g, u, m, ee]), ie = Q(function(C) {
3200
- C.preventDefault(), C.persist(), Ge(C), E.current = [], Ye(C) && Promise.resolve(o(C)).then(function(j) {
3201
- nt(C) && !L || H(j, C);
3202
- }).catch(function(j) {
3203
- return O(j);
3204
- }), z({
3198
+ }), g && g(ne, oe, O), oe.length > 0 && m && m(oe, O), ne.length > 0 && u && u(ne, O);
3199
+ }, [te, l, pe, r, a, s, g, u, m, ee]), ie = Y(function(C) {
3200
+ C.preventDefault(), C.persist(), Ge(C), _.current = [], Ye(C) && Promise.resolve(o(C)).then(function(O) {
3201
+ nt(C) && !z || N(O, C);
3202
+ }).catch(function(O) {
3203
+ return F(O);
3204
+ }), te({
3205
3205
  type: "reset"
3206
3206
  });
3207
- }, [o, H, O, L]), S = Q(function() {
3207
+ }, [o, N, F, z]), b = Y(function() {
3208
3208
  if (k.current) {
3209
- z({
3209
+ te({
3210
3210
  type: "openDialog"
3211
- }), ge();
3211
+ }), ve();
3212
3212
  var C = {
3213
3213
  multiple: l,
3214
- types: ue
3214
+ types: le
3215
3215
  };
3216
- window.showOpenFilePicker(C).then(function(j) {
3217
- return o(j);
3218
- }).then(function(j) {
3219
- H(j, null), z({
3216
+ window.showOpenFilePicker(C).then(function(O) {
3217
+ return o(O);
3218
+ }).then(function(O) {
3219
+ N(O, null), te({
3220
3220
  type: "closeDialog"
3221
3221
  });
3222
- }).catch(function(j) {
3223
- ga(j) ? (P(j), z({
3222
+ }).catch(function(O) {
3223
+ ga(O) ? (I(O), te({
3224
3224
  type: "closeDialog"
3225
- })) : fa(j) ? (k.current = !1, G.current ? (G.current.value = null, G.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(j);
3225
+ })) : fa(O) ? (k.current = !1, L.current ? (L.current.value = null, L.current.click()) : F(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."))) : F(O);
3226
3226
  });
3227
3227
  return;
3228
3228
  }
3229
- G.current && (z({
3229
+ L.current && (te({
3230
3230
  type: "openDialog"
3231
- }), ge(), G.current.value = null, G.current.click());
3232
- }, [z, ge, P, w, H, O, ue, l]), fe = Q(function(C) {
3233
- !b.current || !b.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), S());
3234
- }, [b, S]), Fe = Q(function() {
3235
- z({
3231
+ }), ve(), L.current.value = null, L.current.click());
3232
+ }, [te, ve, I, w, N, F, le, l]), ge = Y(function(C) {
3233
+ !S.current || !S.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), b());
3234
+ }, [S, b]), Fe = Y(function() {
3235
+ te({
3236
3236
  type: "focus"
3237
3237
  });
3238
- }, []), Te = Q(function() {
3239
- z({
3238
+ }, []), Te = Y(function() {
3239
+ te({
3240
3240
  type: "blur"
3241
3241
  });
3242
- }, []), Jt = Q(function() {
3243
- A || (ca() ? setTimeout(S, 0) : S());
3244
- }, [A, S]), $e = function(j) {
3245
- return i ? null : j;
3246
- }, rt = function(j) {
3247
- return h ? null : $e(j);
3248
- }, qe = function(j) {
3249
- return I ? null : $e(j);
3250
- }, Ge = function(j) {
3251
- L && j.stopPropagation();
3252
- }, vi = le(function() {
3242
+ }, []), Jt = Y(function() {
3243
+ M || (ca() ? setTimeout(b, 0) : b());
3244
+ }, [M, b]), $e = function(O) {
3245
+ return i ? null : O;
3246
+ }, rt = function(O) {
3247
+ return h ? null : $e(O);
3248
+ }, qe = function(O) {
3249
+ return T ? null : $e(O);
3250
+ }, Ge = function(O) {
3251
+ z && O.stopPropagation();
3252
+ }, xi = re(function() {
3253
3253
  return function() {
3254
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = C.refKey, ne = j === void 0 ? "ref" : j, oe = C.role, me = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, xa);
3254
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O, oe = C.role, fe = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, xa);
3255
3255
  return Z(Z(Mt({
3256
- onKeyDown: rt(ye(me, fe)),
3256
+ onKeyDown: rt(ye(fe, ge)),
3257
3257
  onFocus: rt(ye(ze, Fe)),
3258
3258
  onBlur: rt(ye(Ae, Te)),
3259
3259
  onClick: $e(ye(lt, Jt)),
3260
3260
  onDragEnter: qe(ye(st, V)),
3261
- onDragOver: qe(ye(ct, N)),
3262
- onDragLeave: qe(ye(Be, B)),
3261
+ onDragOver: qe(ye(ct, H)),
3262
+ onDragLeave: qe(ye(Be, q)),
3263
3263
  onDrop: qe(ye(pt, ie)),
3264
3264
  role: typeof oe == "string" && oe !== "" ? oe : "presentation"
3265
- }, ne, b), !i && !h ? {
3265
+ }, ne, S), !i && !h ? {
3266
3266
  tabIndex: 0
3267
3267
  } : {}), ut);
3268
3268
  };
3269
- }, [b, fe, Fe, Te, Jt, V, N, B, ie, h, I, i]), xi = Q(function(C) {
3269
+ }, [S, ge, Fe, Te, Jt, V, H, q, ie, h, T, i]), hi = Y(function(C) {
3270
3270
  C.stopPropagation();
3271
- }, []), hi = le(function() {
3271
+ }, []), wi = re(function() {
3272
3272
  return function() {
3273
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = C.refKey, ne = j === void 0 ? "ref" : j, oe = C.onChange, me = C.onClick, ze = it(C, ha), Ae = Mt({
3274
- accept: re,
3273
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O, oe = C.onChange, fe = C.onClick, ze = it(C, ha), Ae = Mt({
3274
+ accept: pe,
3275
3275
  multiple: l,
3276
3276
  type: "file",
3277
3277
  style: {
@@ -3287,19 +3287,19 @@ function Zn() {
3287
3287
  whiteSpace: "nowrap"
3288
3288
  },
3289
3289
  onChange: $e(ye(oe, ie)),
3290
- onClick: $e(ye(me, xi)),
3290
+ onClick: $e(ye(fe, hi)),
3291
3291
  tabIndex: -1
3292
- }, ne, G);
3292
+ }, ne, L);
3293
3293
  return Z(Z({}, Ae), ze);
3294
3294
  };
3295
- }, [G, t, l, ie, i]);
3295
+ }, [L, t, l, ie, i]);
3296
3296
  return Z(Z({}, se), {}, {
3297
3297
  isFocused: x && !i,
3298
- getRootProps: vi,
3299
- getInputProps: hi,
3300
- rootRef: b,
3301
- inputRef: G,
3302
- open: $e(S)
3298
+ getRootProps: xi,
3299
+ getInputProps: wi,
3300
+ rootRef: S,
3301
+ inputRef: L,
3302
+ open: $e(b)
3303
3303
  });
3304
3304
  }
3305
3305
  function ka(e, n) {
@@ -3375,7 +3375,7 @@ const Fa = () => {
3375
3375
  acceptedFiles: [],
3376
3376
  fileRejections: []
3377
3377
  }
3378
- ), o = Q(
3378
+ ), o = Y(
3379
3379
  (l, s) => i({
3380
3380
  type: "add-files",
3381
3381
  payload: { acceptedFiles: l, fileRejections: s }
@@ -3396,22 +3396,22 @@ const Fa = () => {
3396
3396
  removeFile: c,
3397
3397
  removeRejectedFile: d
3398
3398
  }) => {
3399
- const { getRootProps: f } = Zn({
3399
+ const { getRootProps: f } = ei({
3400
3400
  accept: e,
3401
3401
  maxFiles: a,
3402
3402
  maxSize: r,
3403
3403
  onDrop: l
3404
3404
  }), g = et();
3405
- return /* @__PURE__ */ U(
3405
+ return /* @__PURE__ */ B(
3406
3406
  "div",
3407
3407
  {
3408
- className: q("p-form__group p-form-validation", {
3408
+ className: G("p-form__group p-form-validation", {
3409
3409
  "is-error": !!n
3410
3410
  }),
3411
3411
  children: [
3412
3412
  o && /* @__PURE__ */ p(Ii, { id: g, children: o }),
3413
3413
  i && /* @__PURE__ */ p("p", { className: "p-form-help-text", children: i }),
3414
- /* @__PURE__ */ U("div", { className: "p-form__control", children: [
3414
+ /* @__PURE__ */ B("div", { className: "p-form__control", children: [
3415
3415
  !a || t.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ p(
3416
3416
  "div",
3417
3417
  {
@@ -3422,16 +3422,16 @@ const Fa = () => {
3422
3422
  children: /* @__PURE__ */ p("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
3423
3423
  }
3424
3424
  ) }) : null,
3425
- n ? /* @__PURE__ */ U("p", { className: "p-form-validation__message", children: [
3425
+ n ? /* @__PURE__ */ B("p", { className: "p-form-validation__message", children: [
3426
3426
  /* @__PURE__ */ p("strong", { children: "Error: " }),
3427
3427
  n
3428
3428
  ] }) : null,
3429
- /* @__PURE__ */ U("div", { className: "file-upload__files-list", children: [
3430
- s && s.map((u) => /* @__PURE__ */ U("span", { className: "is-error", children: [
3431
- /* @__PURE__ */ U("div", { className: "file-upload__file is-rejected", children: [
3429
+ /* @__PURE__ */ B("div", { className: "file-upload__files-list", children: [
3430
+ s && s.map((u) => /* @__PURE__ */ B("span", { className: "is-error", children: [
3431
+ /* @__PURE__ */ B("div", { className: "file-upload__file is-rejected", children: [
3432
3432
  u.file.name,
3433
3433
  /* @__PURE__ */ p(
3434
- be,
3434
+ Se,
3435
3435
  {
3436
3436
  appearance: "base",
3437
3437
  className: "file-upload__file-remove-button",
@@ -3450,10 +3450,10 @@ const Fa = () => {
3450
3450
  `${u.file.name}-${m.code}`
3451
3451
  ))
3452
3452
  ] }, u.file.name)),
3453
- t && t.map((u) => /* @__PURE__ */ U("div", { className: "file-upload__file", children: [
3453
+ t && t.map((u) => /* @__PURE__ */ B("div", { className: "file-upload__file", children: [
3454
3454
  u.name,
3455
3455
  u.percentUploaded !== void 0 ? /* @__PURE__ */ p(Hi, { percentComplete: u.percentUploaded }) : /* @__PURE__ */ p(
3456
- be,
3456
+ Se,
3457
3457
  {
3458
3458
  appearance: "base",
3459
3459
  className: "file-upload__file-remove-button",
@@ -3499,7 +3499,7 @@ const Fa = () => {
3499
3499
  removeRejectedFile: d
3500
3500
  }
3501
3501
  );
3502
- }, ei = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Ia = (e) => (n, t) => {
3502
+ }, ti = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Ia = (e) => (n, t) => {
3503
3503
  if (e) {
3504
3504
  const i = e.has(n.value), o = e.has(t.value);
3505
3505
  if (i && !o) return -1;
@@ -3520,45 +3520,45 @@ const Fa = () => {
3520
3520
  updateItems: o,
3521
3521
  isOpen: a,
3522
3522
  footer: r,
3523
- sortFn: l = ei,
3523
+ sortFn: l = ti,
3524
3524
  groupFn: s = Da,
3525
3525
  ...c
3526
3526
  }) => {
3527
- const d = le(
3527
+ const d = re(
3528
3528
  () => new Set(n.map((w) => w.value)),
3529
3529
  [n]
3530
- ), f = le(
3530
+ ), f = re(
3531
3531
  () => new Set(t.map((w) => w.value)),
3532
3532
  [t]
3533
3533
  ), [g, u] = de(new Set(d));
3534
3534
  Ee(() => {
3535
3535
  a && u(new Set(d));
3536
3536
  }, [a]);
3537
- const m = le(() => e.some((w) => w.group), [e]), v = le(
3537
+ const m = re(() => e.some((w) => w.group), [e]), v = re(
3538
3538
  () => m ? s(e) : [{ group: "Ungrouped", items: e }],
3539
3539
  [e, s]
3540
- ), _ = (w) => {
3541
- const { checked: T, value: R } = w.target, A = e.find((h) => `${h.value}` === R);
3542
- if (A) {
3543
- const h = T ? [...n, A] : n.filter((I) => `${I.value}` !== R) ?? [];
3540
+ ), R = (w) => {
3541
+ const { checked: D, value: E } = w.target, M = e.find((h) => `${h.value}` === E);
3542
+ if (M) {
3543
+ const h = D ? [...n, M] : n.filter((T) => `${T.value}` !== E) ?? [];
3544
3544
  o(h);
3545
3545
  }
3546
3546
  };
3547
- return /* @__PURE__ */ p(Nn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3547
+ return /* @__PURE__ */ p(Ln, { isVisible: a, className: "put-above", children: /* @__PURE__ */ B("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3548
3548
  i || null,
3549
- v.map(({ group: w, items: T }) => /* @__PURE__ */ U("div", { className: "multi-select__group", children: [
3549
+ v.map(({ group: w, items: D }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
3550
3550
  m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: w }) : null,
3551
- /* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": w, children: T.sort(l).sort(Ia(g)).map((R) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
3551
+ /* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": w, children: D.sort(l).sort(Ia(g)).map((E) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
3552
3552
  Di,
3553
3553
  {
3554
- disabled: f.has(R.value),
3555
- label: R.label,
3556
- checked: d.has(R.value),
3557
- value: R.value,
3558
- onChange: _
3554
+ disabled: f.has(E.value),
3555
+ label: E.label,
3556
+ checked: d.has(E.value),
3557
+ value: E.value,
3558
+ onChange: R
3559
3559
  },
3560
- R.value
3561
- ) }, R.value)) })
3560
+ E.value
3561
+ ) }, E.value)) })
3562
3562
  ] }, w)),
3563
3563
  r ? /* @__PURE__ */ p("div", { className: "multi-select__footer", children: r }) : null
3564
3564
  ] }) });
@@ -3585,26 +3585,26 @@ const Fa = () => {
3585
3585
  Ee(() => {
3586
3586
  g || v("");
3587
3587
  }, [g]);
3588
- const [_, w] = de([]), T = n || _, R = (L) => {
3589
- const J = Array.from(new Set(L));
3590
- w(J), i && i(J);
3591
- }, A = et(), h = et(), I = T.filter(
3592
- (L) => r.some((J) => J.value === L.value)
3593
- ).sort(ei).map((L) => L.label).join(", ");
3594
- return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ U("div", { className: "multi-select", children: [
3588
+ const [R, w] = de([]), D = n || R, E = (z) => {
3589
+ const X = Array.from(new Set(z));
3590
+ w(X), i && i(X);
3591
+ }, M = et(), h = et(), T = D.filter(
3592
+ (z) => r.some((X) => X.value === z.value)
3593
+ ).sort(ti).map((z) => z.label).join(", ");
3594
+ return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
3595
3595
  d === "search" ? /* @__PURE__ */ p(
3596
- Mn,
3596
+ On,
3597
3597
  {
3598
3598
  externallyControlled: !0,
3599
- "aria-controls": A,
3599
+ "aria-controls": M,
3600
3600
  "aria-expanded": g,
3601
3601
  id: h,
3602
3602
  role: "combobox",
3603
3603
  "aria-label": t || o || "Search",
3604
3604
  disabled: e,
3605
3605
  autoComplete: "off",
3606
- onChange: (L) => {
3607
- v(L), u(!0);
3606
+ onChange: (z) => {
3607
+ v(z), u(!0);
3608
3608
  },
3609
3609
  onFocus: () => u(!0),
3610
3610
  placeholder: o ?? "Search",
@@ -3619,55 +3619,55 @@ const Fa = () => {
3619
3619
  role: "combobox",
3620
3620
  type: "button",
3621
3621
  "aria-label": t || o || "Select items",
3622
- "aria-controls": A,
3622
+ "aria-controls": M,
3623
3623
  "aria-expanded": g,
3624
3624
  className: "multi-select__select-button",
3625
3625
  onClick: () => {
3626
- u((L) => !L);
3626
+ u((z) => !z);
3627
3627
  },
3628
- children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: T.length > 0 ? I : o ?? "Select items" })
3628
+ children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: D.length > 0 ? T : o ?? "Select items" })
3629
3629
  }
3630
3630
  ),
3631
3631
  /* @__PURE__ */ p(
3632
3632
  $a,
3633
3633
  {
3634
- id: A,
3634
+ id: M,
3635
3635
  isOpen: g,
3636
3636
  items: m.length > 0 ? r.filter(
3637
- (L) => L.label.toLowerCase().includes(m.toLowerCase())
3637
+ (z) => z.label.toLowerCase().includes(m.toLowerCase())
3638
3638
  ) : r,
3639
- selectedItems: T,
3639
+ selectedItems: D,
3640
3640
  disabledItems: l,
3641
3641
  header: s,
3642
- updateItems: R,
3643
- footer: c || /* @__PURE__ */ U(we, { children: [
3642
+ updateItems: E,
3643
+ footer: c || /* @__PURE__ */ B(we, { children: [
3644
3644
  /* @__PURE__ */ p(
3645
- be,
3645
+ Se,
3646
3646
  {
3647
3647
  appearance: "link",
3648
3648
  onClick: () => {
3649
- const L = r.filter(
3650
- (J) => !l.some(
3651
- (ee) => ee.value === J.value
3649
+ const z = r.filter(
3650
+ (X) => !l.some(
3651
+ (ee) => ee.value === X.value
3652
3652
  )
3653
3653
  );
3654
- R([...T, ...L]);
3654
+ E([...D, ...z]);
3655
3655
  },
3656
3656
  type: "button",
3657
3657
  children: "Select all"
3658
3658
  }
3659
3659
  ),
3660
3660
  /* @__PURE__ */ p(
3661
- be,
3661
+ Se,
3662
3662
  {
3663
3663
  appearance: "link",
3664
3664
  onClick: () => {
3665
- const L = T.filter(
3666
- (J) => l.some(
3667
- (ee) => ee.value === J.value
3665
+ const z = D.filter(
3666
+ (X) => l.some(
3667
+ (ee) => ee.value === X.value
3668
3668
  )
3669
3669
  );
3670
- R(L);
3670
+ E(z);
3671
3671
  },
3672
3672
  type: "button",
3673
3673
  children: "Clear"
@@ -3680,16 +3680,16 @@ const Fa = () => {
3680
3680
  }, Aa = {
3681
3681
  // Mobile or tablet
3682
3682
  small: 620
3683
- }, ti = In({ variant: "regular" }), ni = ({
3683
+ }, ni = In({ variant: "regular" }), ii = ({
3684
3684
  className: e,
3685
3685
  children: n,
3686
3686
  variant: t,
3687
3687
  ...i
3688
- }) => /* @__PURE__ */ p(ti.Provider, { value: { variant: t }, children: /* @__PURE__ */ p(
3688
+ }) => /* @__PURE__ */ p(ni.Provider, { value: { variant: t }, children: /* @__PURE__ */ p(
3689
3689
  "table",
3690
3690
  {
3691
3691
  ...i,
3692
- className: q("p-table-dynamic", e, {
3692
+ className: G("p-table-dynamic", e, {
3693
3693
  "is-full-height": t === "full-height"
3694
3694
  }),
3695
3695
  children: n
@@ -3697,7 +3697,7 @@ const Fa = () => {
3697
3697
  ) }), Ma = ({ columns: e }) => /* @__PURE__ */ p(we, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ p("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ p(
3698
3698
  "td",
3699
3699
  {
3700
- className: q(i.id, "u-text-overflow-clip"),
3700
+ className: G(i.id, "u-text-overflow-clip"),
3701
3701
  children: /* @__PURE__ */ p(qi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3702
3702
  },
3703
3703
  o
@@ -3706,17 +3706,17 @@ const Fa = () => {
3706
3706
  table: n
3707
3707
  }) => {
3708
3708
  const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
3709
- return /* @__PURE__ */ U(we, { children: [
3709
+ return /* @__PURE__ */ B(we, { children: [
3710
3710
  /* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
3711
- /* @__PURE__ */ p(ii, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Ma, { columns: t }) })
3711
+ /* @__PURE__ */ p(oi, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Ma, { columns: t }) })
3712
3712
  ] });
3713
- }, ii = ({
3713
+ }, oi = ({
3714
3714
  className: e,
3715
3715
  children: n,
3716
3716
  style: t,
3717
3717
  ...i
3718
3718
  }) => {
3719
- const { variant: o } = Ht(ti), a = Se(null), [r, l] = de(null), s = Q(() => {
3719
+ const { variant: o } = Ht(ni), a = be(null), [r, l] = de(null), s = Y(() => {
3720
3720
  var d, f;
3721
3721
  if (window.innerWidth > Aa.small) {
3722
3722
  const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
@@ -3727,7 +3727,7 @@ const Fa = () => {
3727
3727
  An(() => {
3728
3728
  s();
3729
3729
  }, [s]), Ee(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3730
- const c = le(() => o === "full-height" && r ? {
3730
+ const c = re(() => o === "full-height" && r ? {
3731
3731
  height: `calc(100vh - ${r}px)`,
3732
3732
  minHeight: `calc(100vh - ${r}px)`,
3733
3733
  ...t
@@ -3743,11 +3743,11 @@ const Fa = () => {
3743
3743
  }
3744
3744
  );
3745
3745
  };
3746
- ni.Body = ii;
3747
- ni.Loading = Oa;
3748
- const oi = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }), ja = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ p("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), Ta = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ p("p", { children: e }) }) });
3749
- oi.Title = ja;
3750
- oi.Description = Ta;
3746
+ ii.Body = oi;
3747
+ ii.Loading = Oa;
3748
+ const ai = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }), ja = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ p("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), Ta = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ p("p", { children: e }) }) });
3749
+ ai.Title = ja;
3750
+ ai.Description = Ta;
3751
3751
  /**
3752
3752
  * table-core
3753
3753
  *
@@ -3761,7 +3761,7 @@ oi.Description = Ta;
3761
3761
  function Re(e, n) {
3762
3762
  return typeof e == "function" ? e(n) : e;
3763
3763
  }
3764
- function ve(e, n) {
3764
+ function me(e, n) {
3765
3765
  return (t) => {
3766
3766
  n.setState((i) => ({
3767
3767
  ...i,
@@ -3775,7 +3775,7 @@ function at(e) {
3775
3775
  function za(e) {
3776
3776
  return Array.isArray(e) && e.every((n) => typeof n == "number");
3777
3777
  }
3778
- function ai(e, n) {
3778
+ function ri(e, n) {
3779
3779
  const t = [], i = (o) => {
3780
3780
  o.forEach((a) => {
3781
3781
  t.push(a);
@@ -3785,7 +3785,7 @@ function ai(e, n) {
3785
3785
  };
3786
3786
  return i(e), t;
3787
3787
  }
3788
- function D(e, n, t) {
3788
+ function $(e, n, t) {
3789
3789
  let i = [], o;
3790
3790
  return (a) => {
3791
3791
  let r;
@@ -3809,7 +3809,7 @@ function D(e, n, t) {
3809
3809
  return o;
3810
3810
  };
3811
3811
  }
3812
- function $(e, n, t, i) {
3812
+ function A(e, n, t, i) {
3813
3813
  return {
3814
3814
  debug: () => {
3815
3815
  var o;
@@ -3829,14 +3829,14 @@ function Va(e, n, t, i) {
3829
3829
  column: t,
3830
3830
  getValue: () => n.getValue(i),
3831
3831
  renderValue: o,
3832
- getContext: D(() => [e, t, n, a], (r, l, s, c) => ({
3832
+ getContext: $(() => [e, t, n, a], (r, l, s, c) => ({
3833
3833
  table: r,
3834
3834
  column: l,
3835
3835
  row: s,
3836
3836
  cell: c,
3837
3837
  getValue: c.getValue,
3838
3838
  renderValue: c.renderValue
3839
- }), $(e.options, "debugCells", "cell.getContext"))
3839
+ }), A(e.options, "debugCells", "cell.getContext"))
3840
3840
  };
3841
3841
  return e._features.forEach((r) => {
3842
3842
  r.createCell == null || r.createCell(a, t, n, e);
@@ -3865,18 +3865,18 @@ function Na(e, n, t, i) {
3865
3865
  depth: t,
3866
3866
  columnDef: l,
3867
3867
  columns: [],
3868
- getFlatColumns: D(() => [!0], () => {
3868
+ getFlatColumns: $(() => [!0], () => {
3869
3869
  var g;
3870
3870
  return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((u) => u.getFlatColumns())];
3871
- }, $(e.options, "debugColumns", "column.getFlatColumns")),
3872
- getLeafColumns: D(() => [e._getOrderColumnsFn()], (g) => {
3871
+ }, A(e.options, "debugColumns", "column.getFlatColumns")),
3872
+ getLeafColumns: $(() => [e._getOrderColumnsFn()], (g) => {
3873
3873
  var u;
3874
3874
  if ((u = f.columns) != null && u.length) {
3875
3875
  let m = f.columns.flatMap((v) => v.getLeafColumns());
3876
3876
  return g(m);
3877
3877
  }
3878
3878
  return [f];
3879
- }, $(e.options, "debugColumns", "column.getLeafColumns"))
3879
+ }, A(e.options, "debugColumns", "column.getLeafColumns"))
3880
3880
  };
3881
3881
  for (const g of e._features)
3882
3882
  g.createColumn == null || g.createColumn(f, e);
@@ -3914,31 +3914,31 @@ function En(e, n, t) {
3914
3914
  }
3915
3915
  const La = {
3916
3916
  createTable: (e) => {
3917
- e.getHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
3917
+ e.getHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
3918
3918
  var a, r;
3919
3919
  const l = (a = i == null ? void 0 : i.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? a : [], s = (r = o == null ? void 0 : o.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? r : [], c = t.filter((f) => !(i != null && i.includes(f.id)) && !(o != null && o.includes(f.id)));
3920
3920
  return Xe(n, [...l, ...c, ...s], e);
3921
- }, $(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Xe(n, t, e, "center")), $(e.options, ce, "getCenterHeaderGroups")), e.getLeftHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
3921
+ }, A(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Xe(n, t, e, "center")), A(e.options, ce, "getCenterHeaderGroups")), e.getLeftHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
3922
3922
  var o;
3923
3923
  const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
3924
3924
  return Xe(n, a, e, "left");
3925
- }, $(e.options, ce, "getLeftHeaderGroups")), e.getRightHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
3925
+ }, A(e.options, ce, "getLeftHeaderGroups")), e.getRightHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
3926
3926
  var o;
3927
3927
  const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
3928
3928
  return Xe(n, a, e, "right");
3929
- }, $(e.options, ce, "getRightHeaderGroups")), e.getFooterGroups = D(() => [e.getHeaderGroups()], (n) => [...n].reverse(), $(e.options, ce, "getFooterGroups")), e.getLeftFooterGroups = D(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), $(e.options, ce, "getLeftFooterGroups")), e.getCenterFooterGroups = D(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), $(e.options, ce, "getCenterFooterGroups")), e.getRightFooterGroups = D(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), $(e.options, ce, "getRightFooterGroups")), e.getFlatHeaders = D(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), $(e.options, ce, "getFlatHeaders")), e.getLeftFlatHeaders = D(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), $(e.options, ce, "getLeftFlatHeaders")), e.getCenterFlatHeaders = D(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), $(e.options, ce, "getCenterFlatHeaders")), e.getRightFlatHeaders = D(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), $(e.options, ce, "getRightFlatHeaders")), e.getCenterLeafHeaders = D(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3929
+ }, A(e.options, ce, "getRightHeaderGroups")), e.getFooterGroups = $(() => [e.getHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getFooterGroups")), e.getLeftFooterGroups = $(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getLeftFooterGroups")), e.getCenterFooterGroups = $(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getCenterFooterGroups")), e.getRightFooterGroups = $(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getRightFooterGroups")), e.getFlatHeaders = $(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getFlatHeaders")), e.getLeftFlatHeaders = $(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getLeftFlatHeaders")), e.getCenterFlatHeaders = $(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getCenterFlatHeaders")), e.getRightFlatHeaders = $(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getRightFlatHeaders")), e.getCenterLeafHeaders = $(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3930
3930
  var i;
3931
3931
  return !((i = t.subHeaders) != null && i.length);
3932
- }), $(e.options, ce, "getCenterLeafHeaders")), e.getLeftLeafHeaders = D(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3932
+ }), A(e.options, ce, "getCenterLeafHeaders")), e.getLeftLeafHeaders = $(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3933
3933
  var i;
3934
3934
  return !((i = t.subHeaders) != null && i.length);
3935
- }), $(e.options, ce, "getLeftLeafHeaders")), e.getRightLeafHeaders = D(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3935
+ }), A(e.options, ce, "getLeftLeafHeaders")), e.getRightLeafHeaders = $(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3936
3936
  var i;
3937
3937
  return !((i = t.subHeaders) != null && i.length);
3938
- }), $(e.options, ce, "getRightLeafHeaders")), e.getLeafHeaders = D(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3938
+ }), A(e.options, ce, "getRightLeafHeaders")), e.getLeafHeaders = $(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3939
3939
  var o, a, r, l, s, c;
3940
3940
  return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(r = (l = t[0]) == null ? void 0 : l.headers) != null ? r : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
3941
- }, $(e.options, ce, "getLeafHeaders"));
3941
+ }, A(e.options, ce, "getLeafHeaders"));
3942
3942
  }
3943
3943
  };
3944
3944
  function Xe(e, n, t, i) {
@@ -3958,22 +3958,22 @@ function Xe(e, n, t, i) {
3958
3958
  id: [i, `${u}`].filter(Boolean).join("_"),
3959
3959
  headers: []
3960
3960
  }, v = [];
3961
- g.forEach((_) => {
3962
- const w = [...v].reverse()[0], T = _.column.depth === m.depth;
3963
- let R, A = !1;
3964
- if (T && _.column.parent ? R = _.column.parent : (R = _.column, A = !0), w && (w == null ? void 0 : w.column) === R)
3965
- w.subHeaders.push(_);
3961
+ g.forEach((R) => {
3962
+ const w = [...v].reverse()[0], D = R.column.depth === m.depth;
3963
+ let E, M = !1;
3964
+ if (D && R.column.parent ? E = R.column.parent : (E = R.column, M = !0), w && (w == null ? void 0 : w.column) === E)
3965
+ w.subHeaders.push(R);
3966
3966
  else {
3967
- const h = En(t, R, {
3968
- id: [i, u, R.id, _ == null ? void 0 : _.id].filter(Boolean).join("_"),
3969
- isPlaceholder: A,
3970
- placeholderId: A ? `${v.filter((I) => I.column === R).length}` : void 0,
3967
+ const h = En(t, E, {
3968
+ id: [i, u, E.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
3969
+ isPlaceholder: M,
3970
+ placeholderId: M ? `${v.filter((T) => T.column === E).length}` : void 0,
3971
3971
  depth: u,
3972
3972
  index: v.length
3973
3973
  });
3974
- h.subHeaders.push(_), v.push(h);
3974
+ h.subHeaders.push(R), v.push(h);
3975
3975
  }
3976
- m.headers.push(_), _.headerGroup = m;
3976
+ m.headers.push(R), R.headerGroup = m;
3977
3977
  }), s.push(m), u > 0 && c(v, u - 1);
3978
3978
  }, d = n.map((g, u) => En(t, g, {
3979
3979
  depth: r,
@@ -3981,23 +3981,23 @@ function Xe(e, n, t, i) {
3981
3981
  }));
3982
3982
  c(d, r - 1), s.reverse();
3983
3983
  const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
3984
- let v = 0, _ = 0, w = [0];
3985
- m.subHeaders && m.subHeaders.length ? (w = [], f(m.subHeaders).forEach((R) => {
3984
+ let v = 0, R = 0, w = [0];
3985
+ m.subHeaders && m.subHeaders.length ? (w = [], f(m.subHeaders).forEach((E) => {
3986
3986
  let {
3987
- colSpan: A,
3987
+ colSpan: M,
3988
3988
  rowSpan: h
3989
- } = R;
3990
- v += A, w.push(h);
3989
+ } = E;
3990
+ v += M, w.push(h);
3991
3991
  })) : v = 1;
3992
- const T = Math.min(...w);
3993
- return _ = _ + T, m.colSpan = v, m.rowSpan = _, {
3992
+ const D = Math.min(...w);
3993
+ return R = R + D, m.colSpan = v, m.rowSpan = R, {
3994
3994
  colSpan: v,
3995
- rowSpan: _
3995
+ rowSpan: R
3996
3996
  };
3997
3997
  });
3998
3998
  return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
3999
3999
  }
4000
- const ri = (e, n, t, i, o, a, r) => {
4000
+ const li = (e, n, t, i, o, a, r) => {
4001
4001
  let l = {
4002
4002
  id: n,
4003
4003
  index: i,
@@ -4025,7 +4025,7 @@ const ri = (e, n, t, i, o, a, r) => {
4025
4025
  return (c = l.getValue(s)) != null ? c : e.options.renderFallbackValue;
4026
4026
  },
4027
4027
  subRows: a ?? [],
4028
- getLeafRows: () => ai(l.subRows, (s) => s.subRows),
4028
+ getLeafRows: () => ri(l.subRows, (s) => s.subRows),
4029
4029
  getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
4030
4030
  getParentRows: () => {
4031
4031
  let s = [], c = l;
@@ -4036,8 +4036,8 @@ const ri = (e, n, t, i, o, a, r) => {
4036
4036
  }
4037
4037
  return s.reverse();
4038
4038
  },
4039
- getAllCells: D(() => [e.getAllLeafColumns()], (s) => s.map((c) => Va(e, l, c, c.id)), $(e.options, "debugRows", "getAllCells")),
4040
- _getAllCellsByColumnId: D(() => [l.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), $(e.options, "debugRows", "getAllCellsByColumnId"))
4039
+ getAllCells: $(() => [e.getAllLeafColumns()], (s) => s.map((c) => Va(e, l, c, c.id)), A(e.options, "debugRows", "getAllCells")),
4040
+ _getAllCellsByColumnId: $(() => [l.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
4041
4041
  };
4042
4042
  for (let s = 0; s < e._features.length; s++) {
4043
4043
  const c = e._features[s];
@@ -4051,41 +4051,41 @@ const ri = (e, n, t, i, o, a, r) => {
4051
4051
  return e._getFacetedMinMaxValues();
4052
4052
  };
4053
4053
  }
4054
- }, li = (e, n, t) => {
4054
+ }, si = (e, n, t) => {
4055
4055
  var i, o;
4056
4056
  const a = t == null || (i = t.toString()) == null ? void 0 : i.toLowerCase();
4057
4057
  return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
4058
4058
  };
4059
- li.autoRemove = (e) => he(e);
4060
- const si = (e, n, t) => {
4061
- var i;
4062
- return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
4063
- };
4064
4059
  si.autoRemove = (e) => he(e);
4065
4060
  const ci = (e, n, t) => {
4066
4061
  var i;
4067
- return ((i = e.getValue(n)) == null || (i = i.toString()) == null ? void 0 : i.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
4062
+ return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
4068
4063
  };
4069
4064
  ci.autoRemove = (e) => he(e);
4070
4065
  const pi = (e, n, t) => {
4071
4066
  var i;
4072
- return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
4067
+ return ((i = e.getValue(n)) == null || (i = i.toString()) == null ? void 0 : i.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
4073
4068
  };
4074
4069
  pi.autoRemove = (e) => he(e);
4075
- const ui = (e, n, t) => !t.some((i) => {
4070
+ const ui = (e, n, t) => {
4071
+ var i;
4072
+ return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
4073
+ };
4074
+ ui.autoRemove = (e) => he(e);
4075
+ const di = (e, n, t) => !t.some((i) => {
4076
4076
  var o;
4077
4077
  return !((o = e.getValue(n)) != null && o.includes(i));
4078
4078
  });
4079
- ui.autoRemove = (e) => he(e) || !(e != null && e.length);
4080
- const di = (e, n, t) => t.some((i) => {
4079
+ di.autoRemove = (e) => he(e) || !(e != null && e.length);
4080
+ const gi = (e, n, t) => t.some((i) => {
4081
4081
  var o;
4082
4082
  return (o = e.getValue(n)) == null ? void 0 : o.includes(i);
4083
4083
  });
4084
- di.autoRemove = (e) => he(e) || !(e != null && e.length);
4085
- const gi = (e, n, t) => e.getValue(n) === t;
4086
- gi.autoRemove = (e) => he(e);
4087
- const fi = (e, n, t) => e.getValue(n) == t;
4084
+ gi.autoRemove = (e) => he(e) || !(e != null && e.length);
4085
+ const fi = (e, n, t) => e.getValue(n) === t;
4088
4086
  fi.autoRemove = (e) => he(e);
4087
+ const mi = (e, n, t) => e.getValue(n) == t;
4088
+ mi.autoRemove = (e) => he(e);
4089
4089
  const Yt = (e, n, t) => {
4090
4090
  let [i, o] = t;
4091
4091
  const a = e.getValue(n);
@@ -4101,14 +4101,14 @@ Yt.resolveFilterValue = (e) => {
4101
4101
  };
4102
4102
  Yt.autoRemove = (e) => he(e) || he(e[0]) && he(e[1]);
4103
4103
  const _e = {
4104
- includesString: li,
4105
- includesStringSensitive: si,
4106
- equalsString: ci,
4107
- arrIncludes: pi,
4108
- arrIncludesAll: ui,
4109
- arrIncludesSome: di,
4110
- equals: gi,
4111
- weakEquals: fi,
4104
+ includesString: si,
4105
+ includesStringSensitive: ci,
4106
+ equalsString: pi,
4107
+ arrIncludes: ui,
4108
+ arrIncludesAll: di,
4109
+ arrIncludesSome: gi,
4110
+ equals: fi,
4111
+ weakEquals: mi,
4112
4112
  inNumberRange: Yt
4113
4113
  };
4114
4114
  function he(e) {
@@ -4123,7 +4123,7 @@ const qa = {
4123
4123
  ...e
4124
4124
  }),
4125
4125
  getDefaultOptions: (e) => ({
4126
- onColumnFiltersChange: ve("columnFilters", e),
4126
+ onColumnFiltersChange: me("columnFilters", e),
4127
4127
  filterFromLeafRows: !1,
4128
4128
  maxLeafRowFilterDepth: 100
4129
4129
  }),
@@ -4252,7 +4252,7 @@ const Ga = (e, n, t) => t.reduce((i, o) => {
4252
4252
  ...e
4253
4253
  }),
4254
4254
  getDefaultOptions: (e) => ({
4255
- onGroupingChange: ve("grouping", e),
4255
+ onGroupingChange: me("grouping", e),
4256
4256
  groupedColumnMode: "reorder"
4257
4257
  }),
4258
4258
  createColumn: (e, n) => {
@@ -4318,10 +4318,10 @@ const tr = {
4318
4318
  ...e
4319
4319
  }),
4320
4320
  getDefaultOptions: (e) => ({
4321
- onColumnOrderChange: ve("columnOrder", e)
4321
+ onColumnOrderChange: me("columnOrder", e)
4322
4322
  }),
4323
4323
  createColumn: (e, n) => {
4324
- e.getIndex = D((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), $(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
4324
+ e.getIndex = $((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), A(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
4325
4325
  var i;
4326
4326
  return ((i = Ne(n, t)[0]) == null ? void 0 : i.id) === e.id;
4327
4327
  }, e.getIsLastColumn = (t) => {
@@ -4334,7 +4334,7 @@ const tr = {
4334
4334
  e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
4335
4335
  var t;
4336
4336
  e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
4337
- }, e._getOrderColumnsFn = D(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, i) => (o) => {
4337
+ }, e._getOrderColumnsFn = $(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, i) => (o) => {
4338
4338
  let a = [];
4339
4339
  if (!(n != null && n.length))
4340
4340
  a = o;
@@ -4347,7 +4347,7 @@ const tr = {
4347
4347
  a = [...a, ...l];
4348
4348
  }
4349
4349
  return er(a, t, i);
4350
- }, $(e.options, "debugTable", "_getOrderColumnsFn"));
4350
+ }, A(e.options, "debugTable", "_getOrderColumnsFn"));
4351
4351
  }
4352
4352
  }, _t = () => ({
4353
4353
  left: [],
@@ -4358,7 +4358,7 @@ const tr = {
4358
4358
  ...e
4359
4359
  }),
4360
4360
  getDefaultOptions: (e) => ({
4361
- onColumnPinningChange: ve("columnPinning", e)
4361
+ onColumnPinningChange: me("columnPinning", e)
4362
4362
  }),
4363
4363
  createColumn: (e, n) => {
4364
4364
  e.pin = (t) => {
@@ -4400,16 +4400,16 @@ const tr = {
4400
4400
  };
4401
4401
  },
4402
4402
  createRow: (e, n) => {
4403
- e.getCenterVisibleCells = D(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, i, o) => {
4403
+ e.getCenterVisibleCells = $(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, i, o) => {
4404
4404
  const a = [...i ?? [], ...o ?? []];
4405
4405
  return t.filter((r) => !a.includes(r.column.id));
4406
- }, $(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = D(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4406
+ }, A(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = $(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4407
4407
  ...a,
4408
4408
  position: "left"
4409
- })), $(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = D(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4409
+ })), A(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = $(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4410
4410
  ...a,
4411
4411
  position: "right"
4412
- })), $(n.options, "debugRows", "getRightVisibleCells"));
4412
+ })), A(n.options, "debugRows", "getRightVisibleCells"));
4413
4413
  },
4414
4414
  createTable: (e) => {
4415
4415
  e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
@@ -4423,10 +4423,10 @@ const tr = {
4423
4423
  return !!((o = i.left) != null && o.length || (a = i.right) != null && a.length);
4424
4424
  }
4425
4425
  return !!((t = i[n]) != null && t.length);
4426
- }, e.getLeftLeafColumns = D(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), $(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = D(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), $(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = D(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i) => {
4426
+ }, e.getLeftLeafColumns = $(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), A(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = $(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), A(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = $(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i) => {
4427
4427
  const o = [...t ?? [], ...i ?? []];
4428
4428
  return n.filter((a) => !o.includes(a.id));
4429
- }, $(e.options, "debugColumns", "getCenterLeafColumns"));
4429
+ }, A(e.options, "debugColumns", "getCenterLeafColumns"));
4430
4430
  }
4431
4431
  }, Qe = {
4432
4432
  size: 150,
@@ -4449,15 +4449,15 @@ const tr = {
4449
4449
  getDefaultOptions: (e) => ({
4450
4450
  columnResizeMode: "onEnd",
4451
4451
  columnResizeDirection: "ltr",
4452
- onColumnSizingChange: ve("columnSizing", e),
4453
- onColumnSizingInfoChange: ve("columnSizingInfo", e)
4452
+ onColumnSizingChange: me("columnSizing", e),
4453
+ onColumnSizingInfoChange: me("columnSizingInfo", e)
4454
4454
  }),
4455
4455
  createColumn: (e, n) => {
4456
4456
  e.getSize = () => {
4457
4457
  var t, i, o;
4458
4458
  const a = n.getState().columnSizing[e.id];
4459
4459
  return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Qe.minSize, (i = a ?? e.columnDef.size) != null ? i : Qe.size), (o = e.columnDef.maxSize) != null ? o : Qe.maxSize);
4460
- }, e.getStart = D((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(0, e.getIndex(t)).reduce((o, a) => o + a.getSize(), 0), $(n.options, "debugColumns", "getStart")), e.getAfter = D((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(e.getIndex(t) + 1).reduce((o, a) => o + a.getSize(), 0), $(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
4460
+ }, e.getStart = $((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(0, e.getIndex(t)).reduce((o, a) => o + a.getSize(), 0), A(n.options, "debugColumns", "getStart")), e.getAfter = $((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(e.getIndex(t) + 1).reduce((o, a) => o + a.getSize(), 0), A(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
4461
4461
  n.setColumnSizing((t) => {
4462
4462
  let {
4463
4463
  [e.id]: i,
@@ -4493,25 +4493,25 @@ const tr = {
4493
4493
  return (a) => {
4494
4494
  if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
4495
4495
  return;
4496
- const r = e.getSize(), l = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (w, T) => {
4497
- typeof T == "number" && (n.setColumnSizingInfo((R) => {
4498
- var A, h;
4499
- const I = n.options.columnResizeDirection === "rtl" ? -1 : 1, L = (T - ((A = R == null ? void 0 : R.startOffset) != null ? A : 0)) * I, J = Math.max(L / ((h = R == null ? void 0 : R.startSize) != null ? h : 0), -0.999999);
4500
- return R.columnSizingStart.forEach((ee) => {
4501
- let [re, ue] = ee;
4502
- c[re] = Math.round(Math.max(ue + ue * J, 0) * 100) / 100;
4496
+ const r = e.getSize(), l = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (w, D) => {
4497
+ typeof D == "number" && (n.setColumnSizingInfo((E) => {
4498
+ var M, h;
4499
+ const T = n.options.columnResizeDirection === "rtl" ? -1 : 1, z = (D - ((M = E == null ? void 0 : E.startOffset) != null ? M : 0)) * T, X = Math.max(z / ((h = E == null ? void 0 : E.startSize) != null ? h : 0), -0.999999);
4500
+ return E.columnSizingStart.forEach((ee) => {
4501
+ let [pe, le] = ee;
4502
+ c[pe] = Math.round(Math.max(le + le * X, 0) * 100) / 100;
4503
4503
  }), {
4504
- ...R,
4505
- deltaOffset: L,
4506
- deltaPercentage: J
4504
+ ...E,
4505
+ deltaOffset: z,
4506
+ deltaPercentage: X
4507
4507
  };
4508
- }), (n.options.columnResizeMode === "onChange" || w === "end") && n.setColumnSizing((R) => ({
4509
- ...R,
4508
+ }), (n.options.columnResizeMode === "onChange" || w === "end") && n.setColumnSizing((E) => ({
4509
+ ...E,
4510
4510
  ...c
4511
4511
  })));
4512
4512
  }, f = (w) => d("move", w), g = (w) => {
4513
- d("end", w), n.setColumnSizingInfo((T) => ({
4514
- ...T,
4513
+ d("end", w), n.setColumnSizingInfo((D) => ({
4514
+ ...D,
4515
4515
  isResizingColumn: !1,
4516
4516
  startOffset: null,
4517
4517
  startSize: null,
@@ -4527,13 +4527,13 @@ const tr = {
4527
4527
  }, v = {
4528
4528
  moveHandler: (w) => (w.cancelable && (w.preventDefault(), w.stopPropagation()), f(w.touches[0].clientX), !1),
4529
4529
  upHandler: (w) => {
4530
- var T;
4531
- u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), g((T = w.touches[0]) == null ? void 0 : T.clientX);
4530
+ var D;
4531
+ u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), g((D = w.touches[0]) == null ? void 0 : D.clientX);
4532
4532
  }
4533
- }, _ = or() ? {
4533
+ }, R = or() ? {
4534
4534
  passive: !1
4535
4535
  } : !1;
4536
- Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, _), u == null || u.addEventListener("touchend", v.upHandler, _)) : (u == null || u.addEventListener("mousemove", m.moveHandler, _), u == null || u.addEventListener("mouseup", m.upHandler, _)), n.setColumnSizingInfo((w) => ({
4536
+ Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, R), u == null || u.addEventListener("touchend", v.upHandler, R)) : (u == null || u.addEventListener("mousemove", m.moveHandler, R), u == null || u.addEventListener("mouseup", m.upHandler, R)), n.setColumnSizingInfo((w) => ({
4537
4537
  ...w,
4538
4538
  startOffset: s,
4539
4539
  startSize: r,
@@ -4593,7 +4593,7 @@ const ar = {
4593
4593
  ...e
4594
4594
  }),
4595
4595
  getDefaultOptions: (e) => ({
4596
- onColumnVisibilityChange: ve("columnVisibility", e)
4596
+ onColumnVisibilityChange: me("columnVisibility", e)
4597
4597
  }),
4598
4598
  createColumn: (e, n) => {
4599
4599
  e.toggleVisibility = (t) => {
@@ -4613,10 +4613,10 @@ const ar = {
4613
4613
  };
4614
4614
  },
4615
4615
  createRow: (e, n) => {
4616
- e._getAllVisibleCells = D(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((i) => i.column.getIsVisible()), $(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = D(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, i, o) => [...t, ...i, ...o], $(n.options, "debugRows", "getVisibleCells"));
4616
+ e._getAllVisibleCells = $(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((i) => i.column.getIsVisible()), A(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = $(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, i, o) => [...t, ...i, ...o], A(n.options, "debugRows", "getVisibleCells"));
4617
4617
  },
4618
4618
  createTable: (e) => {
4619
- const n = (t, i) => D(() => [i(), i().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((a) => a.getIsVisible == null ? void 0 : a.getIsVisible()), $(e.options, "debugColumns", t));
4619
+ const n = (t, i) => $(() => [i(), i().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((a) => a.getIsVisible == null ? void 0 : a.getIsVisible()), A(e.options, "debugColumns", t));
4620
4620
  e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
4621
4621
  var i;
4622
4622
  e.setColumnVisibility(t ? {} : (i = e.initialState.columnVisibility) != null ? i : {});
@@ -4648,7 +4648,7 @@ const rr = {
4648
4648
  ...e
4649
4649
  }),
4650
4650
  getDefaultOptions: (e) => ({
4651
- onGlobalFilterChange: ve("globalFilter", e),
4651
+ onGlobalFilterChange: me("globalFilter", e),
4652
4652
  globalFilterFn: "auto",
4653
4653
  getColumnCanGlobalFilter: (n) => {
4654
4654
  var t;
@@ -4681,7 +4681,7 @@ const rr = {
4681
4681
  ...e
4682
4682
  }),
4683
4683
  getDefaultOptions: (e) => ({
4684
- onExpandedChange: ve("expanded", e),
4684
+ onExpandedChange: me("expanded", e),
4685
4685
  paginateExpandedRows: !0
4686
4686
  }),
4687
4687
  createTable: (e) => {
@@ -4774,7 +4774,7 @@ const rr = {
4774
4774
  }
4775
4775
  }),
4776
4776
  getDefaultOptions: (e) => ({
4777
- onPaginationChange: ve("pagination", e)
4777
+ onPaginationChange: me("pagination", e)
4778
4778
  }),
4779
4779
  createTable: (e) => {
4780
4780
  let n = !1, t = !1;
@@ -4829,10 +4829,10 @@ const rr = {
4829
4829
  ...o,
4830
4830
  pageCount: r
4831
4831
  };
4832
- }), e.getPageOptions = D(() => [e.getPageCount()], (i) => {
4832
+ }), e.getPageOptions = $(() => [e.getPageCount()], (i) => {
4833
4833
  let o = [];
4834
4834
  return i && i > 0 && (o = [...new Array(i)].fill(null).map((a, r) => r)), o;
4835
- }, $(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
4835
+ }, A(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
4836
4836
  const {
4837
4837
  pageIndex: i
4838
4838
  } = e.getState().pagination, o = e.getPageCount();
@@ -4854,7 +4854,7 @@ const rr = {
4854
4854
  ...e
4855
4855
  }),
4856
4856
  getDefaultOptions: (e) => ({
4857
- onRowPinningChange: ve("rowPinning", e)
4857
+ onRowPinningChange: me("rowPinning", e)
4858
4858
  }),
4859
4859
  createRow: (e, n) => {
4860
4860
  e.pin = (t, i, o) => {
@@ -4944,10 +4944,10 @@ const rr = {
4944
4944
  ...r,
4945
4945
  position: i
4946
4946
  }));
4947
- }, e.getTopRows = D(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), $(e.options, "debugRows", "getTopRows")), e.getBottomRows = D(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), $(e.options, "debugRows", "getBottomRows")), e.getCenterRows = D(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, i) => {
4947
+ }, e.getTopRows = $(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), A(e.options, "debugRows", "getTopRows")), e.getBottomRows = $(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), A(e.options, "debugRows", "getBottomRows")), e.getCenterRows = $(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, i) => {
4948
4948
  const o = /* @__PURE__ */ new Set([...t ?? [], ...i ?? []]);
4949
4949
  return n.filter((a) => !o.has(a.id));
4950
- }, $(e.options, "debugRows", "getCenterRows"));
4950
+ }, A(e.options, "debugRows", "getCenterRows"));
4951
4951
  }
4952
4952
  }, ur = {
4953
4953
  getInitialState: (e) => ({
@@ -4955,7 +4955,7 @@ const rr = {
4955
4955
  ...e
4956
4956
  }),
4957
4957
  getDefaultOptions: (e) => ({
4958
- onRowSelectionChange: ve("rowSelection", e),
4958
+ onRowSelectionChange: me("rowSelection", e),
4959
4959
  enableRowSelection: !0,
4960
4960
  enableMultiRowSelection: !0,
4961
4961
  enableSubRowSelection: !0
@@ -4986,19 +4986,19 @@ const rr = {
4986
4986
  return e.getRowModel().rows.forEach((a) => {
4987
4987
  zt(o, a.id, i, !0, e);
4988
4988
  }), o;
4989
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = D(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4989
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = $(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4990
4990
  rows: [],
4991
4991
  flatRows: [],
4992
4992
  rowsById: {}
4993
- }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = D(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4993
+ }, A(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = $(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4994
4994
  rows: [],
4995
4995
  flatRows: [],
4996
4996
  rowsById: {}
4997
- }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = D(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4997
+ }, A(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = $(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
4998
4998
  rows: [],
4999
4999
  flatRows: [],
5000
5000
  rowsById: {}
5001
- }, $(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
5001
+ }, A(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
5002
5002
  const n = e.getFilteredRowModel().flatRows, {
5003
5003
  rowSelection: t
5004
5004
  } = e.getState();
@@ -5105,7 +5105,7 @@ function Vt(e, n, t) {
5105
5105
  }
5106
5106
  }), o ? "all" : a ? "some" : !1;
5107
5107
  }
5108
- const Nt = /([0-9]+)/gm, dr = (e, n, t) => mi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), gr = (e, n, t) => mi(ke(e.getValue(t)), ke(n.getValue(t))), fr = (e, n, t) => Qt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), mr = (e, n, t) => Qt(ke(e.getValue(t)), ke(n.getValue(t))), vr = (e, n, t) => {
5108
+ const Nt = /([0-9]+)/gm, dr = (e, n, t) => vi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), gr = (e, n, t) => vi(ke(e.getValue(t)), ke(n.getValue(t))), fr = (e, n, t) => Qt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), mr = (e, n, t) => Qt(ke(e.getValue(t)), ke(n.getValue(t))), vr = (e, n, t) => {
5109
5109
  const i = e.getValue(t), o = n.getValue(t);
5110
5110
  return i > o ? 1 : i < o ? -1 : 0;
5111
5111
  }, xr = (e, n, t) => Qt(e.getValue(t), n.getValue(t));
@@ -5115,7 +5115,7 @@ function Qt(e, n) {
5115
5115
  function ke(e) {
5116
5116
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
5117
5117
  }
5118
- function mi(e, n) {
5118
+ function vi(e, n) {
5119
5119
  const t = e.split(Nt).filter(Boolean), i = n.split(Nt).filter(Boolean);
5120
5120
  for (; t.length && i.length; ) {
5121
5121
  const o = t.shift(), a = i.shift(), r = parseInt(o, 10), l = parseInt(a, 10), s = [r, l].sort();
@@ -5152,7 +5152,7 @@ const Ve = {
5152
5152
  sortUndefined: 1
5153
5153
  }),
5154
5154
  getDefaultOptions: (e) => ({
5155
- onSortingChange: ve("sorting", e),
5155
+ onSortingChange: me("sorting", e),
5156
5156
  isMultiSortEvent: (n) => n.shiftKey
5157
5157
  }),
5158
5158
  createColumn: (e, n) => {
@@ -5314,7 +5314,7 @@ function yr(e) {
5314
5314
  throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
5315
5315
  return m;
5316
5316
  },
5317
- _getDefaultColumnDef: D(() => [o.options.defaultColumn], (g) => {
5317
+ _getDefaultColumnDef: $(() => [o.options.defaultColumn], (g) => {
5318
5318
  var u;
5319
5319
  return g = (u = g) != null ? u : {}, {
5320
5320
  header: (m) => {
@@ -5323,29 +5323,29 @@ function yr(e) {
5323
5323
  },
5324
5324
  // footer: props => props.header.column.id,
5325
5325
  cell: (m) => {
5326
- var v, _;
5327
- return (v = (_ = m.renderValue()) == null || _.toString == null ? void 0 : _.toString()) != null ? v : null;
5326
+ var v, R;
5327
+ return (v = (R = m.renderValue()) == null || R.toString == null ? void 0 : R.toString()) != null ? v : null;
5328
5328
  },
5329
5329
  ...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
5330
5330
  ...g
5331
5331
  };
5332
- }, $(e, "debugColumns", "_getDefaultColumnDef")),
5332
+ }, A(e, "debugColumns", "_getDefaultColumnDef")),
5333
5333
  _getColumnDefs: () => o.options.columns,
5334
- getAllColumns: D(() => [o._getColumnDefs()], (g) => {
5335
- const u = function(m, v, _) {
5336
- return _ === void 0 && (_ = 0), m.map((w) => {
5337
- const T = Na(o, w, _, v), R = w;
5338
- return T.columns = R.columns ? u(R.columns, T, _ + 1) : [], T;
5334
+ getAllColumns: $(() => [o._getColumnDefs()], (g) => {
5335
+ const u = function(m, v, R) {
5336
+ return R === void 0 && (R = 0), m.map((w) => {
5337
+ const D = Na(o, w, R, v), E = w;
5338
+ return D.columns = E.columns ? u(E.columns, D, R + 1) : [], D;
5339
5339
  });
5340
5340
  };
5341
5341
  return u(g);
5342
- }, $(e, "debugColumns", "getAllColumns")),
5343
- getAllFlatColumns: D(() => [o.getAllColumns()], (g) => g.flatMap((u) => u.getFlatColumns()), $(e, "debugColumns", "getAllFlatColumns")),
5344
- _getAllFlatColumnsById: D(() => [o.getAllFlatColumns()], (g) => g.reduce((u, m) => (u[m.id] = m, u), {}), $(e, "debugColumns", "getAllFlatColumnsById")),
5345
- getAllLeafColumns: D(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, u) => {
5342
+ }, A(e, "debugColumns", "getAllColumns")),
5343
+ getAllFlatColumns: $(() => [o.getAllColumns()], (g) => g.flatMap((u) => u.getFlatColumns()), A(e, "debugColumns", "getAllFlatColumns")),
5344
+ _getAllFlatColumnsById: $(() => [o.getAllFlatColumns()], (g) => g.reduce((u, m) => (u[m.id] = m, u), {}), A(e, "debugColumns", "getAllFlatColumnsById")),
5345
+ getAllLeafColumns: $(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, u) => {
5346
5346
  let m = g.flatMap((v) => v.getLeafColumns());
5347
5347
  return u(m);
5348
- }, $(e, "debugColumns", "getAllLeafColumns")),
5348
+ }, A(e, "debugColumns", "getAllLeafColumns")),
5349
5349
  getColumn: (g) => {
5350
5350
  const u = o._getAllFlatColumnsById()[g];
5351
5351
  return process.env.NODE_ENV !== "production" && !u && console.error(`[Table] Column with id '${g}' does not exist.`), u;
@@ -5358,8 +5358,8 @@ function yr(e) {
5358
5358
  }
5359
5359
  return o;
5360
5360
  }
5361
- function Sr() {
5362
- return (e) => D(() => [e.options.data], (n) => {
5361
+ function br() {
5362
+ return (e) => $(() => [e.options.data], (n) => {
5363
5363
  const t = {
5364
5364
  rows: [],
5365
5365
  flatRows: [],
@@ -5368,7 +5368,7 @@ function Sr() {
5368
5368
  a === void 0 && (a = 0);
5369
5369
  const l = [];
5370
5370
  for (let c = 0; c < o.length; c++) {
5371
- const d = ri(e, e._getRowId(o[c], c, r), o[c], c, a, void 0, r == null ? void 0 : r.id);
5371
+ const d = li(e, e._getRowId(o[c], c, r), o[c], c, a, void 0, r == null ? void 0 : r.id);
5372
5372
  if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
5373
5373
  var s;
5374
5374
  d.originalSubRows = e.options.getSubRows(o[c], c), (s = d.originalSubRows) != null && s.length && (d.subRows = i(d.originalSubRows, a + 1, d));
@@ -5377,10 +5377,10 @@ function Sr() {
5377
5377
  return l;
5378
5378
  };
5379
5379
  return t.rows = i(n), t;
5380
- }, $(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
5380
+ }, A(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
5381
5381
  }
5382
- function br() {
5383
- return (e) => D(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : Cr(t), $(e.options, "debugTable", "getExpandedRowModel"));
5382
+ function Sr() {
5383
+ return (e) => $(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : Cr(t), A(e.options, "debugTable", "getExpandedRowModel"));
5384
5384
  }
5385
5385
  function Cr(e) {
5386
5386
  const n = [], t = (i) => {
@@ -5394,7 +5394,7 @@ function Cr(e) {
5394
5394
  };
5395
5395
  }
5396
5396
  function _r() {
5397
- return (e) => D(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
5397
+ return (e) => $(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
5398
5398
  if (!t.rows.length || !n.length)
5399
5399
  return t.rows.forEach((s) => {
5400
5400
  s.depth = 0, s.parentId = void 0;
@@ -5404,36 +5404,36 @@ function _r() {
5404
5404
  return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
5405
5405
  const f = i[c], g = Rr(s, f);
5406
5406
  return Array.from(g.entries()).map((m, v) => {
5407
- let [_, w] = m, T = `${f}:${_}`;
5408
- T = d ? `${d}>${T}` : T;
5409
- const R = r(w, c + 1, T);
5410
- R.forEach((I) => {
5411
- I.parentId = T;
5407
+ let [R, w] = m, D = `${f}:${R}`;
5408
+ D = d ? `${d}>${D}` : D;
5409
+ const E = r(w, c + 1, D);
5410
+ E.forEach((T) => {
5411
+ T.parentId = D;
5412
5412
  });
5413
- const A = c ? ai(w, (I) => I.subRows) : w, h = ri(e, T, A[0].original, v, c, void 0, d);
5413
+ const M = c ? ri(w, (T) => T.subRows) : w, h = li(e, D, M[0].original, v, c, void 0, d);
5414
5414
  return Object.assign(h, {
5415
5415
  groupingColumnId: f,
5416
- groupingValue: _,
5417
- subRows: R,
5418
- leafRows: A,
5419
- getValue: (I) => {
5420
- if (i.includes(I)) {
5421
- if (h._valuesCache.hasOwnProperty(I))
5422
- return h._valuesCache[I];
5416
+ groupingValue: R,
5417
+ subRows: E,
5418
+ leafRows: M,
5419
+ getValue: (T) => {
5420
+ if (i.includes(T)) {
5421
+ if (h._valuesCache.hasOwnProperty(T))
5422
+ return h._valuesCache[T];
5423
5423
  if (w[0]) {
5424
- var L;
5425
- h._valuesCache[I] = (L = w[0].getValue(I)) != null ? L : void 0;
5424
+ var z;
5425
+ h._valuesCache[T] = (z = w[0].getValue(T)) != null ? z : void 0;
5426
5426
  }
5427
- return h._valuesCache[I];
5427
+ return h._valuesCache[T];
5428
5428
  }
5429
- if (h._groupingValuesCache.hasOwnProperty(I))
5430
- return h._groupingValuesCache[I];
5431
- const J = e.getColumn(I), ee = J == null ? void 0 : J.getAggregationFn();
5429
+ if (h._groupingValuesCache.hasOwnProperty(T))
5430
+ return h._groupingValuesCache[T];
5431
+ const X = e.getColumn(T), ee = X == null ? void 0 : X.getAggregationFn();
5432
5432
  if (ee)
5433
- return h._groupingValuesCache[I] = ee(I, A, w), h._groupingValuesCache[I];
5433
+ return h._groupingValuesCache[T] = ee(T, M, w), h._groupingValuesCache[T];
5434
5434
  }
5435
- }), R.forEach((I) => {
5436
- o.push(I), a[I.id] = I;
5435
+ }), E.forEach((T) => {
5436
+ o.push(T), a[T.id] = T;
5437
5437
  }), h;
5438
5438
  });
5439
5439
  }, l = r(t.rows, 0);
@@ -5444,7 +5444,7 @@ function _r() {
5444
5444
  flatRows: o,
5445
5445
  rowsById: a
5446
5446
  };
5447
- }, $(e.options, "debugTable", "getGroupedRowModel", () => {
5447
+ }, A(e.options, "debugTable", "getGroupedRowModel", () => {
5448
5448
  e._queue(() => {
5449
5449
  e._autoResetExpanded(), e._autoResetPageIndex();
5450
5450
  });
@@ -5468,7 +5468,7 @@ function Rr(e, n) {
5468
5468
  * @license MIT
5469
5469
  */
5470
5470
  function Lt(e, n) {
5471
- return e ? Er(e) ? /* @__PURE__ */ pe.createElement(e, n) : e : null;
5471
+ return e ? Er(e) ? /* @__PURE__ */ ue.createElement(e, n) : e : null;
5472
5472
  }
5473
5473
  function Er(e) {
5474
5474
  return kr(e) || typeof e == "function" || Fr(e);
@@ -5491,9 +5491,9 @@ function Pr(e) {
5491
5491
  // noop
5492
5492
  renderFallbackValue: null,
5493
5493
  ...e
5494
- }, [t] = pe.useState(() => ({
5494
+ }, [t] = ue.useState(() => ({
5495
5495
  current: yr(n)
5496
- })), [i, o] = pe.useState(() => t.current.initialState);
5496
+ })), [i, o] = ue.useState(() => t.current.initialState);
5497
5497
  return t.current.setOptions((a) => ({
5498
5498
  ...a,
5499
5499
  ...e,
@@ -5516,14 +5516,14 @@ const Ir = ({
5516
5516
  asc: /* @__PURE__ */ p(Ce, { name: "chevron-up", children: "ascending" }),
5517
5517
  desc: /* @__PURE__ */ p(Ce, { name: "chevron-down", children: "descending" })
5518
5518
  }[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
5519
- }, Dr = ({ header: e }) => /* @__PURE__ */ p("th", { className: q(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ p(
5520
- be,
5519
+ }, Dr = ({ header: e }) => /* @__PURE__ */ p("th", { className: G(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ p(
5520
+ Se,
5521
5521
  {
5522
5522
  appearance: "link",
5523
5523
  className: "table-header-label p-button--table-header",
5524
5524
  onClick: e.column.getToggleSortingHandler(),
5525
5525
  type: "button",
5526
- children: /* @__PURE__ */ U(we, { children: [
5526
+ children: /* @__PURE__ */ B(we, { children: [
5527
5527
  Lt(e.column.columnDef.header, e.getContext()),
5528
5528
  /* @__PURE__ */ p(Ir, { header: e })
5529
5529
  ] })
@@ -5541,7 +5541,7 @@ const Mr = ({
5541
5541
  isPending: r,
5542
5542
  pageSizes: l = [20, 30, 50, 100]
5543
5543
  }) => {
5544
- const s = le(() => l, []), c = le(
5544
+ const s = re(() => l, []), c = re(
5545
5545
  () => s.map((u) => ({
5546
5546
  label: `${u}/page`,
5547
5547
  value: u
@@ -5551,8 +5551,8 @@ const Mr = ({
5551
5551
  const { value: m } = u.target;
5552
5552
  i(Number(m));
5553
5553
  }, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
5554
- return /* @__PURE__ */ U(Le, { children: [
5555
- /* @__PURE__ */ U(Le.Left, { children: [
5554
+ return /* @__PURE__ */ B(Le, { children: [
5555
+ /* @__PURE__ */ B(Le.Left, { children: [
5556
5556
  "Showing ",
5557
5557
  g(),
5558
5558
  " out of ",
@@ -5560,7 +5560,7 @@ const Mr = ({
5560
5560
  " ",
5561
5561
  o
5562
5562
  ] }),
5563
- /* @__PURE__ */ U(Le.Right, { children: [
5563
+ /* @__PURE__ */ B(Le.Right, { children: [
5564
5564
  /* @__PURE__ */ p(
5565
5565
  _o,
5566
5566
  {
@@ -5586,18 +5586,23 @@ const Mr = ({
5586
5586
  }, Or = ({ table: e, ...n }) => {
5587
5587
  if (!e)
5588
5588
  return null;
5589
- let t;
5590
- return e.getSelectedRowModel().rows.length === 0 ? t = "false" : e.getSelectedRowModel().rows.length < e.getCoreRowModel().rows.length ? t = "mixed" : t = "true", /* @__PURE__ */ U("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
5589
+ const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
5590
+ let i;
5591
+ return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
5591
5592
  /* @__PURE__ */ p(
5592
5593
  "input",
5593
5594
  {
5594
- "aria-checked": t,
5595
+ "aria-checked": i,
5595
5596
  "aria-label": "select all",
5596
5597
  className: "p-checkbox__input",
5598
+ disabled: t.length === 0,
5597
5599
  type: "checkbox",
5598
- checked: t === "true",
5600
+ checked: i === "true",
5599
5601
  onChange: () => {
5600
- e.getIsAllPageRowsSelected() ? e == null || e.toggleAllPageRowsSelected(!1) : e == null || e.toggleAllPageRowsSelected(!0);
5602
+ const o = e.getCoreRowModel().rows.filter((r) => r.getCanSelect()), a = o.every(
5603
+ (r) => r.getIsSelected()
5604
+ );
5605
+ o.forEach((r) => r.toggleSelected(!a));
5601
5606
  },
5602
5607
  ...n
5603
5608
  }
@@ -5607,226 +5612,263 @@ const Mr = ({
5607
5612
  }, jr = ({ row: e, ...n }) => {
5608
5613
  if (!e)
5609
5614
  return null;
5610
- const t = !e.getIsAllSubRowsSelected() && e.getIsSomeSelected();
5611
- return /* @__PURE__ */ U("label", { className: "p-checkbox--inline p-table-checkbox--group", children: [
5612
- /* @__PURE__ */ p(
5613
- "input",
5614
- {
5615
- "aria-checked": t ? "mixed" : void 0,
5616
- className: "p-checkbox__input",
5617
- type: "checkbox",
5618
- checked: t || e.getIsAllSubRowsSelected(),
5619
- disabled: !e.getCanSelect(),
5620
- onChange: () => {
5621
- e != null && e.getIsAllSubRowsSelected() ? (e == null || e.toggleSelected(!1), e.subRows.forEach((i) => {
5622
- i.toggleSelected(!1);
5623
- })) : (e == null || e.toggleSelected(!0), e.subRows.forEach((i) => {
5624
- i.toggleSelected(!0);
5625
- }));
5626
- },
5627
- ...n
5628
- }
5629
- ),
5630
- /* @__PURE__ */ p("span", { className: "p-checkbox__label" })
5631
- ] });
5615
+ const t = e.subRows.filter(
5616
+ (r) => r.getCanSelect()
5617
+ ), i = t.filter(
5618
+ (r) => r.getIsSelected()
5619
+ ).length, o = t.length > 0 && i === t.length, a = i > 0 && !o;
5620
+ return /* @__PURE__ */ B(
5621
+ "label",
5622
+ {
5623
+ "aria-disabled": !e.getCanSelect(),
5624
+ className: "p-checkbox--inline p-table-checkbox--group",
5625
+ children: [
5626
+ /* @__PURE__ */ p(
5627
+ "input",
5628
+ {
5629
+ "aria-checked": a ? "mixed" : void 0,
5630
+ className: "p-checkbox__input",
5631
+ type: "checkbox",
5632
+ checked: o,
5633
+ disabled: !e.getCanSelect() && t.length === 0,
5634
+ onChange: () => {
5635
+ const r = !o;
5636
+ t.forEach(
5637
+ (l) => l.toggleSelected(r)
5638
+ );
5639
+ },
5640
+ ...n
5641
+ }
5642
+ ),
5643
+ /* @__PURE__ */ p("span", { className: "p-checkbox__label" })
5644
+ ]
5645
+ }
5646
+ );
5632
5647
  }, Me = ({
5633
5648
  row: e,
5634
- ...n
5635
- }) => e ? /* @__PURE__ */ U("label", { className: "p-checkbox--inline p-table-checkbox", children: [
5636
- /* @__PURE__ */ p(
5637
- "input",
5649
+ disabledTooltip: n,
5650
+ ...t
5651
+ }) => {
5652
+ if (!e)
5653
+ return null;
5654
+ const i = typeof n == "string" ? n : n(e);
5655
+ return /* @__PURE__ */ p(
5656
+ Mn,
5638
5657
  {
5639
- className: "p-checkbox__input",
5640
- type: "checkbox",
5641
- checked: e.getIsSelected(),
5642
- disabled: !e.getCanSelect(),
5643
- onChange: e.getToggleSelectedHandler(),
5644
- ...n
5658
+ message: !e.getCanSelect() && i,
5659
+ position: "btm-right",
5660
+ children: /* @__PURE__ */ B(
5661
+ "label",
5662
+ {
5663
+ "aria-disabled": !e.getCanSelect(),
5664
+ className: "p-checkbox--inline p-table-checkbox",
5665
+ children: [
5666
+ /* @__PURE__ */ p(
5667
+ "input",
5668
+ {
5669
+ className: "p-checkbox__input",
5670
+ type: "checkbox",
5671
+ checked: e.getIsSelected(),
5672
+ disabled: !e.getCanSelect(),
5673
+ onChange: e.getToggleSelectedHandler(),
5674
+ ...t
5675
+ }
5676
+ ),
5677
+ /* @__PURE__ */ p("span", { className: "p-checkbox__label" })
5678
+ ]
5679
+ }
5680
+ )
5645
5681
  }
5646
- ),
5647
- /* @__PURE__ */ p("span", { className: "p-checkbox__label" })
5648
- ] }) : null;
5682
+ );
5683
+ };
5649
5684
  Me.All = Or;
5650
5685
  Me.Group = jr;
5651
5686
  const Wr = ({
5652
5687
  className: e,
5653
5688
  canSelect: n = !1,
5654
- columns: t,
5655
- containerRef: i,
5656
- data: o,
5657
- filterCells: a = () => !0,
5658
- filterHeaders: r = () => !0,
5659
- groupBy: l,
5660
- isLoading: s,
5661
- noData: c,
5662
- pagination: d,
5663
- pinGroup: f,
5664
- sortBy: g,
5665
- rowSelection: u,
5666
- setRowSelection: m,
5667
- variant: v = "full-height",
5668
- ..._
5689
+ disabledSelectionTooltip: t,
5690
+ columns: i,
5691
+ containerRef: o,
5692
+ data: a,
5693
+ filterCells: r = () => !0,
5694
+ filterHeaders: l = () => !0,
5695
+ groupBy: s,
5696
+ isLoading: c,
5697
+ noData: d,
5698
+ pagination: f,
5699
+ pinGroup: g,
5700
+ sortBy: u,
5701
+ rowSelection: m,
5702
+ setRowSelection: v,
5703
+ variant: R = "full-height",
5704
+ ...w
5669
5705
  }) => {
5670
- const w = Se(null), [T, R] = de("auto"), [A, h] = de(!1), [I, L] = de(l ?? []), [J, ee] = de(!0), [re, ue] = de(g ?? []), ge = le(() => {
5671
- if (!n || s)
5672
- return t;
5673
- const z = [
5706
+ const D = be(null), [E, M] = de("auto"), [h, T] = de(!1), [z, X] = de(s ?? []), [ee, pe] = de(!0), [le, ve] = de(u ?? []), I = re(() => {
5707
+ if (!n || c)
5708
+ return i;
5709
+ const x = [
5674
5710
  {
5675
5711
  id: "p-generic-table__select",
5676
5712
  accessorKey: "id",
5677
5713
  enableSorting: !1,
5678
- header: ({ table: x }) => l ? "" : /* @__PURE__ */ p(Me.All, { table: x }),
5679
- cell: ({ row: x }) => x.getIsGrouped() ? null : /* @__PURE__ */ p(Me, { row: x })
5714
+ header: ({ table: y }) => s ? "" : /* @__PURE__ */ p(Me.All, { table: y }),
5715
+ cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */ p(
5716
+ Me,
5717
+ {
5718
+ row: y,
5719
+ disabledTooltip: t ?? ""
5720
+ }
5721
+ )
5680
5722
  },
5681
- ...t
5723
+ ...i
5682
5724
  ];
5683
- return l ? [
5725
+ return s ? [
5684
5726
  {
5685
5727
  id: "p-generic-table__group-select",
5686
5728
  accessorKey: "id",
5687
5729
  enableSorting: !1,
5688
- header: ({ table: x }) => /* @__PURE__ */ p(Me.All, { table: x }),
5689
- cell: ({ row: x }) => x.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: x }) : null
5730
+ header: ({ table: y }) => /* @__PURE__ */ p(Me.All, { table: y }),
5731
+ cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: y }) : null
5690
5732
  },
5691
- ...z
5692
- ] : z;
5693
- }, [n, t, s, l]), P = le(() => I.length ? [...o].sort((z, x) => {
5694
- for (const y of I) {
5695
- const k = z[y] ?? null, F = x[y] ?? null;
5696
- if (k === null) return 1;
5697
- if (F === null || k < F) return -1;
5698
- if (k > F) return 1;
5733
+ ...x
5734
+ ] : x;
5735
+ }, [n, i, c, s]), S = re(() => z.length ? [...a].sort((x, y) => {
5736
+ for (const k of z) {
5737
+ const P = x[k] ?? null, _ = y[k] ?? null;
5738
+ if (P === null) return 1;
5739
+ if (_ === null || P < _) return -1;
5740
+ if (P > _) return 1;
5699
5741
  }
5700
5742
  return 0;
5701
- }) : o, [o, I]), b = le(() => P.length ? [...P].sort((z, x) => {
5702
- if (f != null && f.length && I.length)
5703
- for (const { value: y, isTop: k } of f) {
5704
- const F = I[0], E = z[F] ?? null, M = x[F] ?? null;
5705
- if (E === y && M !== y)
5706
- return k ? -1 : 1;
5707
- if (M === y && E !== y)
5708
- return k ? 1 : -1;
5743
+ }) : a, [a, z]), L = re(() => S.length ? [...S].sort((x, y) => {
5744
+ if (g != null && g.length && z.length)
5745
+ for (const { value: k, isTop: P } of g) {
5746
+ const _ = z[0], j = x[_] ?? null, F = y[_] ?? null;
5747
+ if (j === k && F !== k)
5748
+ return P ? -1 : 1;
5749
+ if (F === k && j !== k)
5750
+ return P ? 1 : -1;
5709
5751
  }
5710
- for (const { id: y, desc: k } of re) {
5711
- const F = z[y] ?? null, E = x[y] ?? null;
5712
- if (F === null && E === null) return 0;
5713
- if (F === null) return k ? -1 : 1;
5714
- if (E === null || F < E)
5715
- return k ? 1 : -1;
5716
- if (F > E)
5717
- return k ? -1 : 1;
5752
+ for (const { id: k, desc: P } of le) {
5753
+ const _ = x[k] ?? null, j = y[k] ?? null;
5754
+ if (_ === null && j === null) return 0;
5755
+ if (_ === null) return P ? -1 : 1;
5756
+ if (j === null || _ < j)
5757
+ return P ? 1 : -1;
5758
+ if (_ > j)
5759
+ return P ? -1 : 1;
5718
5760
  }
5719
5761
  return 0;
5720
- }) : [], [P, re, f, I]);
5762
+ }) : [], [S, le, g, z]);
5721
5763
  An(() => {
5722
- const z = () => {
5723
- const k = w.current;
5724
- if (!k) return;
5725
- const F = (i == null ? void 0 : i.current) || document.querySelector("main");
5726
- if (!F) return;
5727
- const E = F.getBoundingClientRect(), M = k.getBoundingClientRect(), O = E.bottom - M.top, N = k.scrollHeight > O;
5728
- h(N), R(N ? `${O}px` : "auto");
5764
+ const x = () => {
5765
+ const P = D.current;
5766
+ if (!P) return;
5767
+ const _ = (o == null ? void 0 : o.current) || document.querySelector("main");
5768
+ if (!_) return;
5769
+ const j = _.getBoundingClientRect(), F = P.getBoundingClientRect(), V = j.bottom - F.top, q = P.scrollHeight > V;
5770
+ T(q), M(q ? `${V}px` : "auto");
5729
5771
  };
5730
- z();
5731
- const x = new ResizeObserver(z), y = w.current;
5732
- return y && x.observe(y), window.addEventListener("resize", z), () => {
5733
- window.removeEventListener("resize", z), y && x.unobserve(y);
5772
+ x();
5773
+ const y = new ResizeObserver(x), k = D.current;
5774
+ return k && y.observe(k), window.addEventListener("resize", x), () => {
5775
+ window.removeEventListener("resize", x), k && y.unobserve(k);
5734
5776
  };
5735
- }, [i, b.length, s]);
5736
- const G = v === "full-height" && A ? "full-height" : "regular", Y = Pr({
5737
- data: b,
5738
- columns: ge,
5777
+ }, [o, L.length, c]);
5778
+ const Q = R === "full-height" && h ? "full-height" : "regular", J = Pr({
5779
+ data: L,
5780
+ columns: I,
5739
5781
  state: {
5740
- grouping: I,
5741
- expanded: J,
5742
- sorting: re,
5743
- rowSelection: u
5782
+ grouping: z,
5783
+ expanded: ee,
5784
+ sorting: le,
5785
+ rowSelection: m
5744
5786
  },
5745
5787
  manualPagination: !0,
5746
5788
  autoResetExpanded: !1,
5747
- onExpandedChange: ee,
5748
- onSortingChange: ue,
5749
- onGroupingChange: L,
5750
- onRowSelectionChange: m,
5789
+ onExpandedChange: pe,
5790
+ onSortingChange: ve,
5791
+ onGroupingChange: X,
5792
+ onRowSelectionChange: v,
5751
5793
  manualSorting: !0,
5752
5794
  enableSorting: !0,
5753
5795
  enableExpanding: !0,
5754
- getExpandedRowModel: br(),
5755
- getCoreRowModel: Sr(),
5796
+ getExpandedRowModel: Sr(),
5797
+ getCoreRowModel: br(),
5756
5798
  getGroupedRowModel: _r(),
5757
5799
  groupedColumnMode: !1,
5758
5800
  enableRowSelection: n,
5759
5801
  enableMultiRowSelection: n,
5760
- getRowId: (z) => z.id.toString()
5761
- }), te = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: ge.length, children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) }), se = () => Y.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: ge.length, children: c }) }) : Y.getRowModel().rows.map((z) => {
5762
- const { getIsGrouped: x, id: y, getVisibleCells: k } = z, F = !x(), E = u !== void 0 && Object.keys(u).includes(y);
5802
+ getRowId: (x) => x.id.toString()
5803
+ }), se = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: I.length, children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) }), te = () => J.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: I.length, children: d }) }) : J.getRowModel().rows.map((x) => {
5804
+ const { getIsGrouped: y, id: k, getVisibleCells: P } = x, _ = !y(), j = m !== void 0 && Object.keys(m).includes(k);
5763
5805
  return /* @__PURE__ */ p(
5764
5806
  "tr",
5765
5807
  {
5766
- "aria-rowindex": parseInt(y.replace(/\D/g, "") || "0", 10) + 1,
5767
- "aria-selected": E,
5768
- className: q({
5769
- "p-generic-table__individual-row": F,
5770
- "p-generic-table__group-row": !F
5808
+ "aria-rowindex": parseInt(k.replace(/\D/g, "") || "0", 10) + 1,
5809
+ "aria-selected": j,
5810
+ className: G({
5811
+ "p-generic-table__individual-row": _,
5812
+ "p-generic-table__group-row": !_
5771
5813
  }),
5772
5814
  role: "row",
5773
- children: k().filter((M) => !F && M.column.id === "p-generic-table__group-select" ? !0 : a(z, M.column)).map((M) => /* @__PURE__ */ p("td", { className: q(`${M.column.id}`), children: Lt(M.column.columnDef.cell, M.getContext()) }, M.id))
5815
+ children: P().filter((F) => !_ && F.column.id === "p-generic-table__group-select" ? !0 : r(x, F.column)).map((F) => /* @__PURE__ */ p("td", { className: G(`${F.column.id}`), children: Lt(F.column.columnDef.cell, F.getContext()) }, F.id))
5774
5816
  },
5775
- y
5817
+ k
5776
5818
  );
5777
5819
  });
5778
- return /* @__PURE__ */ U(
5820
+ return /* @__PURE__ */ B(
5779
5821
  "div",
5780
5822
  {
5781
- className: q("p-generic-table", e),
5823
+ className: G("p-generic-table", e),
5782
5824
  "data-testid": "p-generic-table",
5783
- ..._,
5825
+ ...w,
5784
5826
  children: [
5785
- d && /* @__PURE__ */ p(
5827
+ f && /* @__PURE__ */ p(
5786
5828
  Mr,
5787
5829
  {
5788
- currentPage: d.currentPage,
5789
- dataContext: d.dataContext,
5790
- handlePageSizeChange: d.handlePageSizeChange,
5791
- isPending: d.isPending,
5792
- itemsPerPage: d.itemsPerPage,
5793
- setCurrentPage: d.setCurrentPage,
5794
- totalItems: d.totalItems,
5795
- pageSizes: d.pageSizes
5830
+ currentPage: f.currentPage,
5831
+ dataContext: f.dataContext,
5832
+ handlePageSizeChange: f.handlePageSizeChange,
5833
+ isPending: f.isPending,
5834
+ itemsPerPage: f.itemsPerPage,
5835
+ setCurrentPage: f.setCurrentPage,
5836
+ totalItems: f.totalItems,
5837
+ pageSizes: f.pageSizes
5796
5838
  }
5797
5839
  ),
5798
- /* @__PURE__ */ U(
5840
+ /* @__PURE__ */ B(
5799
5841
  "table",
5800
5842
  {
5801
- "aria-busy": s,
5843
+ "aria-busy": c,
5802
5844
  "aria-describedby": "generic-table-description",
5803
- "aria-rowcount": b.length + 1,
5804
- className: q("p-generic-table__table", {
5805
- "p-generic-table__is-full-height": G === "full-height",
5845
+ "aria-rowcount": L.length + 1,
5846
+ className: G("p-generic-table__table", {
5847
+ "p-generic-table__is-full-height": Q === "full-height",
5806
5848
  "p-generic-table__is-selectable": n,
5807
- "p-generic-table__is-grouped": l !== void 0
5849
+ "p-generic-table__is-grouped": s !== void 0
5808
5850
  }),
5809
5851
  role: "grid",
5810
5852
  children: [
5811
- /* @__PURE__ */ p("thead", { children: Y.getHeaderGroups().map((z) => /* @__PURE__ */ p("tr", { role: "row", children: z.headers.filter(r).map((x, y) => /* @__PURE__ */ U($n, { children: [
5812
- /* @__PURE__ */ p(Dr, { header: x }),
5813
- y === 2 ? /* @__PURE__ */ p(
5853
+ /* @__PURE__ */ p("thead", { children: J.getHeaderGroups().map((x) => /* @__PURE__ */ p("tr", { role: "row", children: x.headers.filter(l).map((y, k) => /* @__PURE__ */ B($n, { children: [
5854
+ /* @__PURE__ */ p(Dr, { header: y }),
5855
+ k === 2 ? /* @__PURE__ */ p(
5814
5856
  "th",
5815
5857
  {
5816
5858
  className: "p-generic-table__select-alignment",
5817
5859
  role: "columnheader"
5818
5860
  }
5819
5861
  ) : null
5820
- ] }, x.id)) }, z.id)) }),
5862
+ ] }, y.id)) }, x.id)) }),
5821
5863
  /* @__PURE__ */ p(
5822
5864
  "tbody",
5823
5865
  {
5824
- ref: w,
5866
+ ref: D,
5825
5867
  style: {
5826
5868
  overflowY: "auto",
5827
- maxHeight: T
5869
+ maxHeight: E
5828
5870
  },
5829
- children: s ? te() : se()
5871
+ children: c ? se() : te()
5830
5872
  }
5831
5873
  )
5832
5874
  ]
@@ -5838,7 +5880,7 @@ const Wr = ({
5838
5880
  }, Yr = ({
5839
5881
  row: e
5840
5882
  }) => /* @__PURE__ */ p(
5841
- be,
5883
+ Se,
5842
5884
  {
5843
5885
  appearance: "base",
5844
5886
  dense: !0,
@@ -5904,67 +5946,67 @@ const Wr = ({
5904
5946
  highlightedIndex: -1,
5905
5947
  showingMore: !1,
5906
5948
  cursorPosition: 0
5907
- }), u = Se(null), m = Se(null), v = Se(null), _ = le(() => {
5908
- const P = f.showingMore ? Fn.EXPANDED : Fn.DEFAULT, b = l.slice(0, P);
5909
- return !f.showingMore && l.length > P ? [...b, { value: "Show more...", type: "more" }] : b;
5910
- }, [l, f.showingMore]), w = Q(
5911
- (P) => {
5912
- g(typeof P == "function" ? (b) => ({ ...b, ...P(b) }) : (b) => ({ ...b, ...P }));
5949
+ }), u = be(null), m = be(null), v = be(null), R = re(() => {
5950
+ const I = f.showingMore ? Fn.EXPANDED : Fn.DEFAULT, S = l.slice(0, I);
5951
+ return !f.showingMore && l.length > I ? [...S, { value: "Show more...", type: "more" }] : S;
5952
+ }, [l, f.showingMore]), w = Y(
5953
+ (I) => {
5954
+ g(typeof I == "function" ? (S) => ({ ...S, ...I(S) }) : (S) => ({ ...S, ...I }));
5913
5955
  },
5914
5956
  []
5915
- ), T = Q(
5916
- (P) => {
5917
- u.current && !u.current.contains(P.target) && w({
5957
+ ), D = Y(
5958
+ (I) => {
5959
+ u.current && !u.current.contains(I.target) && w({
5918
5960
  isVisible: !1,
5919
5961
  highlightedIndex: -1
5920
5962
  });
5921
5963
  },
5922
5964
  [w]
5923
- ), R = Q(
5924
- (P, b) => {
5925
- const { tokenStart: G, tokenEnd: Y } = b;
5926
- if (P.type === "filter") {
5927
- const se = P.value + xe.COLON + xe.OPEN_PAREN;
5928
- return t.slice(0, G) + se + t.slice(Y);
5965
+ ), E = Y(
5966
+ (I, S) => {
5967
+ const { tokenStart: L, tokenEnd: Q } = S;
5968
+ if (I.type === "filter") {
5969
+ const se = I.value + xe.COLON + xe.OPEN_PAREN;
5970
+ return t.slice(0, L) + se + t.slice(Q);
5929
5971
  }
5930
5972
  if (o.length === 0) {
5931
- const se = P.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + P.value;
5932
- return t.slice(0, G) + se + t.slice(Y);
5973
+ const se = I.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + I.value;
5974
+ return t.slice(0, L) + se + t.slice(Q);
5933
5975
  }
5934
- const te = t.charAt(G - 1) === xe.EQUALS ? P.value : xe.EQUALS + P.value;
5935
- return t.slice(0, G) + te + t.slice(Y);
5976
+ const J = t.charAt(L - 1) === xe.EQUALS ? I.value : xe.EQUALS + I.value;
5977
+ return t.slice(0, L) + J + t.slice(Q);
5936
5978
  },
5937
5979
  [t, o]
5938
- ), A = Q(
5939
- (P) => {
5940
- const b = _[P];
5941
- if (!b) return;
5942
- if (b.type === "more") {
5980
+ ), M = Y(
5981
+ (I) => {
5982
+ const S = R[I];
5983
+ if (!S) return;
5984
+ if (S.type === "more") {
5943
5985
  w({ showingMore: !0 });
5944
5986
  return;
5945
5987
  }
5946
- const G = Ze(
5988
+ const L = Ze(
5947
5989
  t,
5948
5990
  f.cursorPosition
5949
- ), Y = R(b, G), te = G.tokenStart + (b.type === "filter" ? b.value.length + 2 : o.length === 0 ? b.type.length + b.value.length + 3 : b.value.length + 1), { context: se, token: z } = Ze(
5950
- Y,
5951
- te
5991
+ ), Q = E(S, L), J = L.tokenStart + (S.type === "filter" ? S.value.length + 2 : o.length === 0 ? S.type.length + S.value.length + 3 : S.value.length + 1), { context: se, token: te } = Ze(
5992
+ Q,
5993
+ J
5952
5994
  );
5953
- a(se), r(z), i(Y), setTimeout(() => {
5995
+ a(se), r(te), i(Q), setTimeout(() => {
5954
5996
  v.current && (v.current.focus(), v.current.setSelectionRange(
5955
- te,
5956
- te
5997
+ J,
5998
+ J
5957
5999
  ));
5958
6000
  }, 0), w({
5959
6001
  highlightedIndex: 0,
5960
6002
  showingMore: !1,
5961
- isVisible: b.type === "filter",
5962
- cursorPosition: te
6003
+ isVisible: S.type === "filter",
6004
+ cursorPosition: J
5963
6005
  });
5964
6006
  },
5965
6007
  [
5966
- _,
5967
6008
  R,
6009
+ E,
5968
6010
  t,
5969
6011
  f.cursorPosition,
5970
6012
  o,
@@ -5973,103 +6015,103 @@ const Wr = ({
5973
6015
  i,
5974
6016
  w
5975
6017
  ]
5976
- ), h = Q(() => {
6018
+ ), h = Y(() => {
5977
6019
  if (!v.current) return;
5978
- const P = v.current.selectionStart || 0, { context: b, token: G } = Ze(
6020
+ const I = v.current.selectionStart || 0, { context: S, token: L } = Ze(
5979
6021
  t,
5980
- P
6022
+ I
5981
6023
  );
5982
- a(b), r(G), w((Y) => ({
5983
- ...Y,
5984
- isVisible: !Pn(t, P),
5985
- cursorPosition: P
6024
+ a(S), r(L), w((Q) => ({
6025
+ ...Q,
6026
+ isVisible: !Pn(t, I),
6027
+ cursorPosition: I
5986
6028
  }));
5987
- }, [t, a, r, w]), I = Q(
5988
- (P) => {
5989
- const { key: b } = P;
6029
+ }, [t, a, r, w]), T = Y(
6030
+ (I) => {
6031
+ const { key: S } = I;
5990
6032
  if (f.isVisible) {
5991
- const G = _.length;
5992
- switch (b) {
6033
+ const L = R.length;
6034
+ switch (S) {
5993
6035
  case "Tab":
5994
6036
  case "ArrowDown":
5995
- P.preventDefault(), w({
5996
- highlightedIndex: (f.highlightedIndex + 1) % G
6037
+ I.preventDefault(), w({
6038
+ highlightedIndex: (f.highlightedIndex + 1) % L
5997
6039
  });
5998
6040
  return;
5999
6041
  case "ArrowUp":
6000
- P.preventDefault(), w({
6001
- highlightedIndex: f.highlightedIndex <= 0 ? G - 1 : f.highlightedIndex - 1
6042
+ I.preventDefault(), w({
6043
+ highlightedIndex: f.highlightedIndex <= 0 ? L - 1 : f.highlightedIndex - 1
6002
6044
  });
6003
6045
  return;
6004
6046
  case "Enter":
6005
- P.preventDefault(), f.highlightedIndex >= 0 ? A(f.highlightedIndex) : w({ isVisible: !1 });
6047
+ I.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) : w({ isVisible: !1 });
6006
6048
  return;
6007
6049
  case "Escape":
6008
- P.preventDefault(), w({
6050
+ I.preventDefault(), w({
6009
6051
  isVisible: !1,
6010
6052
  highlightedIndex: -1
6011
6053
  });
6012
6054
  return;
6013
6055
  }
6014
6056
  }
6015
- (b === "ArrowLeft" || b === "ArrowRight" || b === "Home" || b === "End") && setTimeout(h, 0);
6057
+ (S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && setTimeout(h, 0);
6016
6058
  },
6017
6059
  [
6018
6060
  f,
6019
- _.length,
6061
+ R.length,
6020
6062
  w,
6021
- A,
6063
+ M,
6022
6064
  h
6023
6065
  ]
6024
- ), L = Q(
6025
- (P) => {
6026
- const { key: b } = P;
6027
- (b === "ArrowLeft" || b === "ArrowRight" || b === "Home" || b === "End") && h();
6066
+ ), z = Y(
6067
+ (I) => {
6068
+ const { key: S } = I;
6069
+ (S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && h();
6028
6070
  },
6029
6071
  [h]
6030
- ), J = Q(() => {
6072
+ ), X = Y(() => {
6031
6073
  w({
6032
6074
  isVisible: !0,
6033
6075
  highlightedIndex: 0
6034
6076
  });
6035
- }, [w]), ee = Q(
6036
- (P) => {
6037
- var te;
6038
- const b = ((te = v.current) == null ? void 0 : te.selectionStart) || P.length, { context: G, token: Y } = Ze(
6039
- P,
6040
- b
6077
+ }, [w]), ee = Y(
6078
+ (I) => {
6079
+ var J;
6080
+ const S = ((J = v.current) == null ? void 0 : J.selectionStart) || I.length, { context: L, token: Q } = Ze(
6081
+ I,
6082
+ S
6041
6083
  );
6042
- a(G), r(Y), i(P), w({
6084
+ a(L), r(Q), i(I), w({
6043
6085
  highlightedIndex: 0,
6044
- isVisible: !Pn(P, b),
6086
+ isVisible: !Pn(I, S),
6045
6087
  showingMore: !1,
6046
- cursorPosition: b
6088
+ cursorPosition: S
6047
6089
  });
6048
6090
  },
6049
6091
  [a, r, i, w]
6050
- ), re = Q(() => {
6092
+ ), pe = Y(() => {
6051
6093
  setTimeout(h, 0);
6052
- }, [h]), ue = Q(() => {
6094
+ }, [h]), le = Y(() => {
6053
6095
  w({
6054
6096
  isVisible: !1,
6055
6097
  highlightedIndex: -1
6056
6098
  });
6057
- }, [w]), ge = Q(
6058
- (P) => {
6059
- w({ highlightedIndex: P });
6099
+ }, [w]), ve = Y(
6100
+ (I) => {
6101
+ w({ highlightedIndex: I });
6060
6102
  },
6061
6103
  [w]
6062
6104
  );
6063
- return Ee(() => (document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T)), [T]), /* @__PURE__ */ U(
6105
+ return Ee(() => (document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D)), [D]), /* @__PURE__ */ B(
6064
6106
  "div",
6065
6107
  {
6066
- className: q("p-query-input", e),
6108
+ className: G("p-query-input", e),
6067
6109
  "data-testid": "p-query-input",
6068
6110
  ref: u,
6069
6111
  ...d,
6070
6112
  children: [
6071
6113
  /* @__PURE__ */ p(
6072
- Mn,
6114
+ On,
6073
6115
  {
6074
6116
  disabled: n,
6075
6117
  placeholder: c,
@@ -6079,12 +6121,12 @@ const Wr = ({
6079
6121
  id: "query-input",
6080
6122
  name: "query-input",
6081
6123
  ref: v,
6082
- onFocus: J,
6124
+ onFocus: X,
6083
6125
  onChange: ee,
6084
- onKeyDown: I,
6085
- onKeyUp: L,
6086
- onClear: ue,
6087
- onClick: re,
6126
+ onKeyDown: T,
6127
+ onKeyUp: z,
6128
+ onClear: le,
6129
+ onClick: pe,
6088
6130
  "aria-disabled": n,
6089
6131
  "aria-expanded": f.isVisible,
6090
6132
  "aria-haspopup": "listbox",
@@ -6099,35 +6141,35 @@ const Wr = ({
6099
6141
  id: "query-suggestions",
6100
6142
  role: "listbox",
6101
6143
  "aria-label": "Search suggestions",
6102
- children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : _.map((P, b) => /* @__PURE__ */ U(
6144
+ children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : R.map((I, S) => /* @__PURE__ */ B(
6103
6145
  "li",
6104
6146
  {
6105
- className: q("p-query-input__item", {
6106
- highlight: b === f.highlightedIndex
6147
+ className: G("p-query-input__item", {
6148
+ highlight: S === f.highlightedIndex
6107
6149
  }),
6108
- onClick: () => A(b),
6109
- onKeyDown: () => A(b),
6110
- onMouseEnter: () => ge(b),
6150
+ onClick: () => M(S),
6151
+ onKeyDown: () => M(S),
6152
+ onMouseEnter: () => ve(S),
6111
6153
  role: "option",
6112
- "aria-selected": b === f.highlightedIndex,
6154
+ "aria-selected": S === f.highlightedIndex,
6113
6155
  tabIndex: -1,
6114
6156
  children: [
6115
- /* @__PURE__ */ U("span", { className: "p-query-input__item-label", children: [
6157
+ /* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
6116
6158
  /* @__PURE__ */ p(
6117
6159
  "span",
6118
6160
  {
6119
- className: q({
6120
- "u-text--muted": P.type === "more"
6161
+ className: G({
6162
+ "u-text--muted": I.type === "more"
6121
6163
  }),
6122
- children: P.value
6164
+ children: I.value
6123
6165
  }
6124
6166
  ),
6125
- P.type === "filter" && /* @__PURE__ */ p("span", { className: "u-text--muted", children: ":()" })
6167
+ I.type === "filter" && /* @__PURE__ */ p("span", { className: "u-text--muted", children: ":()" })
6126
6168
  ] }),
6127
- P.type !== "more" && /* @__PURE__ */ p("span", { className: "u-text--muted u-align-text--right", children: P.type })
6169
+ I.type !== "more" && /* @__PURE__ */ p("span", { className: "u-text--muted u-align-text--right", children: I.type })
6128
6170
  ]
6129
6171
  },
6130
- `${P.value}-${b}`
6172
+ `${I.value}-${S}`
6131
6173
  ))
6132
6174
  }
6133
6175
  )
@@ -6156,15 +6198,15 @@ const Wr = ({
6156
6198
  };
6157
6199
  export {
6158
6200
  ot as ContentSection,
6159
- ni as DynamicTable,
6201
+ ii as DynamicTable,
6160
6202
  qr as ExternalLink,
6161
6203
  Pa as FileUpload,
6162
6204
  Ur as FileUploadContainer,
6163
6205
  Ut as FormSection,
6164
6206
  Wr as GenericTable,
6165
6207
  Yr as GroupRowActions,
6166
- jn as InputGroup,
6167
- Vn as MainToolbar,
6208
+ Tn as InputGroup,
6209
+ Nn as MainToolbar,
6168
6210
  zi as Meter,
6169
6211
  Kr as MultiSelect,
6170
6212
  $a as MultiSelectDropdown,
@@ -6177,7 +6219,7 @@ export {
6177
6219
  Hi as ProgressIndicator,
6178
6220
  Xr as QueryInput,
6179
6221
  Br as Stepper,
6180
- oi as TableCaption,
6222
+ ai as TableCaption,
6181
6223
  Hr as defaultFilledColors,
6182
6224
  Qr as formatBytes,
6183
6225
  Ie as meterColor,