@espresso-lab/mantine-data-table 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Le from "react";
2
2
  import Ct, { createContext as zn, useContext as ki, useCallback as Ne, createElement as Or, useRef as Ce, useImperativeHandle as uo, useEffect as Te, useState as be, Fragment as Pi, useMemo as et, useLayoutEffect as Oi } from "react";
3
- import { factory as Be, useProps as Ue, useStyles as St, createVarsResolver as pr, UnstyledButton as zt, getSize as Nr, Box as je, getSpacing as Rs, getFontSize as Lr, useResolvedStylesApi as ji, AccordionChevron as ho, useInputProps as Es, Input as jr, Popover as lr, Alert as Ir, Stepper as Rr, Group as qe, Button as yt, TextInput as Mi, NumberInput as Ai, Checkbox as qt, Textarea as Ri, createSafeContext as Ts, rem as Et, Table as $s, ScrollArea as Ns, TableThead as Ls, TableTr as Wt, PopoverTarget as Ei, PopoverDropdown as Ti, Stack as ur, TableTfoot as Is, Center as Yt, Loader as Bs, Text as lt, parseThemeColor as Ys, TableTh as gr, Flex as zs, ActionIcon as dr, TableTd as Fn, Collapse as $i, useMantineTheme as Ni, Pagination as Li, useDirection as Fs, Menu as Rt, MenuTarget as Ws, MenuDropdown as Us, MenuItem as qs, Skeleton as Ft, Select as fo, Divider as po, Tabs as kn, Modal as hn, Title as Vs } from "@mantine/core";
3
+ import { factory as Be, useProps as Ue, useStyles as St, createVarsResolver as pr, UnstyledButton as ar, getSize as Nr, Box as Oe, getSpacing as Rs, getFontSize as Lr, useResolvedStylesApi as ji, AccordionChevron as ho, useInputProps as Es, Input as jr, Popover as lr, Alert as Ir, Stepper as Rr, Group as qe, Button as yt, TextInput as Mi, NumberInput as Ai, Checkbox as Ut, Textarea as Ri, createSafeContext as Ts, rem as Et, Table as $s, ScrollArea as Ns, TableThead as Ls, TableTr as Ft, PopoverTarget as Ei, PopoverDropdown as Ti, Stack as ur, TableTfoot as Is, Center as Yt, Loader as Bs, Text as lt, parseThemeColor as Ys, TableTh as gr, Flex as zs, ActionIcon as dr, TableTd as Fn, Collapse as $i, useMantineTheme as Ni, Pagination as Li, useDirection as Fs, Menu as Rt, MenuTarget as Ws, MenuDropdown as Us, MenuItem as qs, Skeleton as zt, Select as fo, Divider as po, Tabs as kn, Modal as hn, Title as Vs } from "@mantine/core";
4
4
  import { useForm as Ii } from "@mantine/form";
5
5
  import { IconSortAscending as Hs, IconSortDescending as Gs, IconChevronDown as Qs, IconCaretDownFilled as Zs, IconPencil as Ks, IconTrash as Js, IconRefresh as Xs, IconInfoCircle as ea } from "@tabler/icons-react";
6
6
  import { useUncontrolled as Bi, clamp as ta, useDidUpdate as ra, useClickOutside as Yi, useMergedRef as go, useLocalStorage as Wn, useMediaQuery as na, useDisclosure as oa, useTimeout as mo } from "@mantine/hooks";
@@ -127,9 +127,9 @@ function Pn(t, e) {
127
127
  return t;
128
128
  const r = xo(t) && xo(e);
129
129
  if (!r && !(On(t) && On(e))) return e;
130
- const i = (r ? t : Object.keys(t)).length, l = r ? e : Object.keys(e), d = l.length, a = r ? new Array(d) : {};
130
+ const i = (r ? t : Object.keys(t)).length, l = r ? e : Object.keys(e), u = l.length, a = r ? new Array(u) : {};
131
131
  let m = 0;
132
- for (let y = 0; y < d; y++) {
132
+ for (let y = 0; y < u; y++) {
133
133
  const _ = r ? y : l[y], O = t[_], S = e[_];
134
134
  if (O === S) {
135
135
  a[_] = O, (r ? y < i : ha.call(t, _)) && m++;
@@ -142,7 +142,7 @@ function Pn(t, e) {
142
142
  const C = Pn(O, S);
143
143
  a[_] = C, C === O && m++;
144
144
  }
145
- return i === d && m === i ? t : a;
145
+ return i === u && m === i ? t : a;
146
146
  }
147
147
  function Tr(t, e) {
148
148
  if (!e || Object.keys(t).length !== Object.keys(e).length)
@@ -257,7 +257,7 @@ function ma() {
257
257
  e ? t.push(a) : i(() => {
258
258
  r(a);
259
259
  });
260
- }, d = () => {
260
+ }, u = () => {
261
261
  const a = t;
262
262
  t = [], a.length && i(() => {
263
263
  n(() => {
@@ -274,7 +274,7 @@ function ma() {
274
274
  try {
275
275
  m = a();
276
276
  } finally {
277
- e--, e || d();
277
+ e--, e || u();
278
278
  }
279
279
  return m;
280
280
  },
@@ -496,7 +496,7 @@ var _a = class extends Br {
496
496
  this.#u && (xr.clearInterval(this.#u), this.#u = void 0);
497
497
  }
498
498
  createResult(t, e) {
499
- const r = this.#e, n = this.options, i = this.#n, l = this.#o, d = this.#i, m = t !== r ? t.state : this.#r, { state: y } = t;
499
+ const r = this.#e, n = this.options, i = this.#n, l = this.#o, u = this.#i, m = t !== r ? t.state : this.#r, { state: y } = t;
500
500
  let _ = { ...y }, O = !1, S;
501
501
  if (e._optimisticResults) {
502
502
  const Q = this.hasListeners(), q = !Q && ko(t, e), W = Q && Po(t, r, e, n);
@@ -510,7 +510,7 @@ var _a = class extends Br {
510
510
  let $ = !1;
511
511
  if (e.placeholderData !== void 0 && S === void 0 && j === "pending") {
512
512
  let Q;
513
- i?.isPlaceholderData && e.placeholderData === d?.placeholderData ? (Q = i.data, $ = !0) : Q = typeof e.placeholderData == "function" ? e.placeholderData(
513
+ i?.isPlaceholderData && e.placeholderData === u?.placeholderData ? (Q = i.data, $ = !0) : Q = typeof e.placeholderData == "function" ? e.placeholderData(
514
514
  this.#f?.state.data,
515
515
  this.#f
516
516
  ) : e.placeholderData, Q !== void 0 && (j = "success", S = So(
@@ -592,8 +592,8 @@ var _a = class extends Br {
592
592
  const l = new Set(
593
593
  i ?? this.#p
594
594
  );
595
- return this.options.throwOnError && l.add("error"), Object.keys(this.#n).some((d) => {
596
- const a = d;
595
+ return this.options.throwOnError && l.add("error"), Object.keys(this.#n).some((u) => {
596
+ const a = u;
597
597
  return this.#n[a] !== t[a] && l.has(a);
598
598
  });
599
599
  };
@@ -738,15 +738,15 @@ var Da = class extends Br {
738
738
  });
739
739
  });
740
740
  }
741
- }, Cr = { exports: {} }, Kt = {};
741
+ }, Cr = { exports: {} }, Zt = {};
742
742
  var Oo;
743
743
  function ka() {
744
- if (Oo) return Kt;
744
+ if (Oo) return Zt;
745
745
  Oo = 1;
746
746
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
747
747
  function r(n, i, l) {
748
- var d = null;
749
- if (l !== void 0 && (d = "" + l), i.key !== void 0 && (d = "" + i.key), "key" in i) {
748
+ var u = null;
749
+ if (l !== void 0 && (u = "" + l), i.key !== void 0 && (u = "" + i.key), "key" in i) {
750
750
  l = {};
751
751
  for (var a in i)
752
752
  a !== "key" && (l[a] = i[a]);
@@ -754,23 +754,23 @@ function ka() {
754
754
  return i = l.ref, {
755
755
  $$typeof: t,
756
756
  type: n,
757
- key: d,
757
+ key: u,
758
758
  ref: i !== void 0 ? i : null,
759
759
  props: l
760
760
  };
761
761
  }
762
- return Kt.Fragment = e, Kt.jsx = r, Kt.jsxs = r, Kt;
762
+ return Zt.Fragment = e, Zt.jsx = r, Zt.jsxs = r, Zt;
763
763
  }
764
- var Jt = {};
764
+ var Kt = {};
765
765
  var jo;
766
766
  function Pa() {
767
767
  return jo || (jo = 1, process.env.NODE_ENV !== "production" && (function() {
768
- function t(u) {
769
- if (u == null) return null;
770
- if (typeof u == "function")
771
- return u.$$typeof === Z ? null : u.displayName || u.name || null;
772
- if (typeof u == "string") return u;
773
- switch (u) {
768
+ function t(d) {
769
+ if (d == null) return null;
770
+ if (typeof d == "function")
771
+ return d.$$typeof === Z ? null : d.displayName || d.name || null;
772
+ if (typeof d == "string") return d;
773
+ switch (d) {
774
774
  case $:
775
775
  return "Fragment";
776
776
  case L:
@@ -784,127 +784,127 @@ function Pa() {
784
784
  case W:
785
785
  return "Activity";
786
786
  }
787
- if (typeof u == "object")
788
- switch (typeof u.tag == "number" && console.error(
787
+ if (typeof d == "object")
788
+ switch (typeof d.tag == "number" && console.error(
789
789
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
790
- ), u.$$typeof) {
790
+ ), d.$$typeof) {
791
791
  case j:
792
792
  return "Portal";
793
793
  case F:
794
- return u.displayName || "Context";
794
+ return d.displayName || "Context";
795
795
  case V:
796
- return (u._context.displayName || "Context") + ".Consumer";
796
+ return (d._context.displayName || "Context") + ".Consumer";
797
797
  case X:
798
- var v = u.render;
799
- return u = u.displayName, u || (u = v.displayName || v.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
798
+ var v = d.render;
799
+ return d = d.displayName, d || (d = v.displayName || v.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
800
800
  case Q:
801
- return v = u.displayName || null, v !== null ? v : t(u.type) || "Memo";
801
+ return v = d.displayName || null, v !== null ? v : t(d.type) || "Memo";
802
802
  case q:
803
- v = u._payload, u = u._init;
803
+ v = d._payload, d = d._init;
804
804
  try {
805
- return t(u(v));
805
+ return t(d(v));
806
806
  } catch {
807
807
  }
808
808
  }
809
809
  return null;
810
810
  }
811
- function e(u) {
812
- return "" + u;
811
+ function e(d) {
812
+ return "" + d;
813
813
  }
814
- function r(u) {
814
+ function r(d) {
815
815
  try {
816
- e(u);
816
+ e(d);
817
817
  var v = !1;
818
818
  } catch {
819
819
  v = !0;
820
820
  }
821
821
  if (v) {
822
822
  v = console;
823
- var D = v.error, R = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
823
+ var D = v.error, R = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
824
824
  return D.call(
825
825
  v,
826
826
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
827
827
  R
828
- ), e(u);
828
+ ), e(d);
829
829
  }
830
830
  }
831
- function n(u) {
832
- if (u === $) return "<>";
833
- if (typeof u == "object" && u !== null && u.$$typeof === q)
831
+ function n(d) {
832
+ if (d === $) return "<>";
833
+ if (typeof d == "object" && d !== null && d.$$typeof === q)
834
834
  return "<...>";
835
835
  try {
836
- var v = t(u);
836
+ var v = t(d);
837
837
  return v ? "<" + v + ">" : "<...>";
838
838
  } catch {
839
839
  return "<...>";
840
840
  }
841
841
  }
842
842
  function i() {
843
- var u = ne.A;
844
- return u === null ? null : u.getOwner();
843
+ var d = ne.A;
844
+ return d === null ? null : d.getOwner();
845
845
  }
846
846
  function l() {
847
847
  return Error("react-stack-top-frame");
848
848
  }
849
- function d(u) {
850
- if (te.call(u, "key")) {
851
- var v = Object.getOwnPropertyDescriptor(u, "key").get;
849
+ function u(d) {
850
+ if (te.call(d, "key")) {
851
+ var v = Object.getOwnPropertyDescriptor(d, "key").get;
852
852
  if (v && v.isReactWarning) return !1;
853
853
  }
854
- return u.key !== void 0;
854
+ return d.key !== void 0;
855
855
  }
856
- function a(u, v) {
856
+ function a(d, v) {
857
857
  function D() {
858
858
  w || (w = !0, console.error(
859
859
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
860
860
  v
861
861
  ));
862
862
  }
863
- D.isReactWarning = !0, Object.defineProperty(u, "key", {
863
+ D.isReactWarning = !0, Object.defineProperty(d, "key", {
864
864
  get: D,
865
865
  configurable: !0
866
866
  });
867
867
  }
868
868
  function m() {
869
- var u = t(this.type);
870
- return h[u] || (h[u] = !0, console.error(
869
+ var d = t(this.type);
870
+ return h[d] || (h[d] = !0, console.error(
871
871
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
872
- )), u = this.props.ref, u !== void 0 ? u : null;
872
+ )), d = this.props.ref, d !== void 0 ? d : null;
873
873
  }
874
- function y(u, v, D, R, U, K) {
874
+ function y(d, v, D, R, U, K) {
875
875
  var ee = D.ref;
876
- return u = {
876
+ return d = {
877
877
  $$typeof: k,
878
- type: u,
878
+ type: d,
879
879
  key: v,
880
880
  props: D,
881
881
  _owner: R
882
- }, (ee !== void 0 ? ee : null) !== null ? Object.defineProperty(u, "ref", {
882
+ }, (ee !== void 0 ? ee : null) !== null ? Object.defineProperty(d, "ref", {
883
883
  enumerable: !1,
884
884
  get: m
885
- }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
885
+ }) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
886
886
  configurable: !1,
887
887
  enumerable: !1,
888
888
  writable: !0,
889
889
  value: 0
890
- }), Object.defineProperty(u, "_debugInfo", {
890
+ }), Object.defineProperty(d, "_debugInfo", {
891
891
  configurable: !1,
892
892
  enumerable: !1,
893
893
  writable: !0,
894
894
  value: null
895
- }), Object.defineProperty(u, "_debugStack", {
895
+ }), Object.defineProperty(d, "_debugStack", {
896
896
  configurable: !1,
897
897
  enumerable: !1,
898
898
  writable: !0,
899
899
  value: U
900
- }), Object.defineProperty(u, "_debugTask", {
900
+ }), Object.defineProperty(d, "_debugTask", {
901
901
  configurable: !1,
902
902
  enumerable: !1,
903
903
  writable: !0,
904
904
  value: K
905
- }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
905
+ }), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
906
906
  }
907
- function _(u, v, D, R, U, K) {
907
+ function _(d, v, D, R, U, K) {
908
908
  var ee = v.children;
909
909
  if (ee !== void 0)
910
910
  if (R)
@@ -918,7 +918,7 @@ function Pa() {
918
918
  );
919
919
  else O(ee);
920
920
  if (te.call(v, "key")) {
921
- ee = t(u);
921
+ ee = t(d);
922
922
  var J = Object.keys(v).filter(function(oe) {
923
923
  return oe !== "key";
924
924
  });
@@ -935,16 +935,16 @@ React keys must be passed directly to JSX without using spread:
935
935
  ee
936
936
  ), f[ee + R] = !0);
937
937
  }
938
- if (ee = null, D !== void 0 && (r(D), ee = "" + D), d(v) && (r(v.key), ee = "" + v.key), "key" in v) {
938
+ if (ee = null, D !== void 0 && (r(D), ee = "" + D), u(v) && (r(v.key), ee = "" + v.key), "key" in v) {
939
939
  D = {};
940
940
  for (var ie in v)
941
941
  ie !== "key" && (D[ie] = v[ie]);
942
942
  } else D = v;
943
943
  return ee && a(
944
944
  D,
945
- typeof u == "function" ? u.displayName || u.name || "Unknown" : u
945
+ typeof d == "function" ? d.displayName || d.name || "Unknown" : d
946
946
  ), y(
947
- u,
947
+ d,
948
948
  ee,
949
949
  D,
950
950
  i(),
@@ -952,46 +952,46 @@ React keys must be passed directly to JSX without using spread:
952
952
  K
953
953
  );
954
954
  }
955
- function O(u) {
956
- S(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === q && (u._payload.status === "fulfilled" ? S(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
955
+ function O(d) {
956
+ S(d) ? d._store && (d._store.validated = 1) : typeof d == "object" && d !== null && d.$$typeof === q && (d._payload.status === "fulfilled" ? S(d._payload.value) && d._payload.value._store && (d._payload.value._store.validated = 1) : d._store && (d._store.validated = 1));
957
957
  }
958
- function S(u) {
959
- return typeof u == "object" && u !== null && u.$$typeof === k;
958
+ function S(d) {
959
+ return typeof d == "object" && d !== null && d.$$typeof === k;
960
960
  }
961
961
  var C = Ct, k = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), z = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), F = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), ne = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, P = Array.isArray, x = console.createTask ? console.createTask : function() {
962
962
  return null;
963
963
  };
964
964
  C = {
965
- react_stack_bottom_frame: function(u) {
966
- return u();
965
+ react_stack_bottom_frame: function(d) {
966
+ return d();
967
967
  }
968
968
  };
969
969
  var w, h = {}, s = C.react_stack_bottom_frame.bind(
970
970
  C,
971
971
  l
972
972
  )(), p = x(n(l)), f = {};
973
- Jt.Fragment = $, Jt.jsx = function(u, v, D) {
973
+ Kt.Fragment = $, Kt.jsx = function(d, v, D) {
974
974
  var R = 1e4 > ne.recentlyCreatedOwnerStacks++;
975
975
  return _(
976
- u,
976
+ d,
977
977
  v,
978
978
  D,
979
979
  !1,
980
980
  R ? Error("react-stack-top-frame") : s,
981
- R ? x(n(u)) : p
981
+ R ? x(n(d)) : p
982
982
  );
983
- }, Jt.jsxs = function(u, v, D) {
983
+ }, Kt.jsxs = function(d, v, D) {
984
984
  var R = 1e4 > ne.recentlyCreatedOwnerStacks++;
985
985
  return _(
986
- u,
986
+ d,
987
987
  v,
988
988
  D,
989
989
  !0,
990
990
  R ? Error("react-stack-top-frame") : s,
991
- R ? x(n(u)) : p
991
+ R ? x(n(d)) : p
992
992
  );
993
993
  };
994
- })()), Jt;
994
+ })()), Kt;
995
995
  }
996
996
  var Mo;
997
997
  function Oa() {
@@ -1051,18 +1051,18 @@ function Ba(t, e, r) {
1051
1051
  throw new Error(
1052
1052
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1053
1053
  );
1054
- const n = ja(), i = Ra(), l = Ui(), d = l.defaultQueryOptions(t);
1054
+ const n = ja(), i = Ra(), l = Ui(), u = l.defaultQueryOptions(t);
1055
1055
  l.getDefaultOptions().queries?._experimental_beforeQuery?.(
1056
- d
1057
- ), process.env.NODE_ENV !== "production" && (d.queryFn || console.error(
1058
- `[${d.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1059
- )), d._optimisticResults = n ? "isRestoring" : "optimistic", Na(d), Ea(d, i), Ta(i);
1060
- const a = !l.getQueryCache().get(d.queryHash), [m] = Le.useState(
1056
+ u
1057
+ ), process.env.NODE_ENV !== "production" && (u.queryFn || console.error(
1058
+ `[${u.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1059
+ )), u._optimisticResults = n ? "isRestoring" : "optimistic", Na(u), Ea(u, i), Ta(i);
1060
+ const a = !l.getQueryCache().get(u.queryHash), [m] = Le.useState(
1061
1061
  () => new e(
1062
1062
  l,
1063
- d
1063
+ u
1064
1064
  )
1065
- ), y = m.getOptimisticResult(d), _ = !n && t.subscribed !== !1;
1065
+ ), y = m.getOptimisticResult(u), _ = !n && t.subscribed !== !1;
1066
1066
  if (Le.useSyncExternalStore(
1067
1067
  Le.useCallback(
1068
1068
  (O) => {
@@ -1074,29 +1074,29 @@ function Ba(t, e, r) {
1074
1074
  () => m.getCurrentResult(),
1075
1075
  () => m.getCurrentResult()
1076
1076
  ), Le.useEffect(() => {
1077
- m.setOptions(d);
1078
- }, [d, m]), Ia(d, y))
1079
- throw Ao(d, m, i);
1077
+ m.setOptions(u);
1078
+ }, [u, m]), Ia(u, y))
1079
+ throw Ao(u, m, i);
1080
1080
  if ($a({
1081
1081
  result: y,
1082
1082
  errorResetBoundary: i,
1083
- throwOnError: d.throwOnError,
1084
- query: l.getQueryCache().get(d.queryHash),
1085
- suspense: d.suspense
1083
+ throwOnError: u.throwOnError,
1084
+ query: l.getQueryCache().get(u.queryHash),
1085
+ suspense: u.suspense
1086
1086
  }))
1087
1087
  throw y.error;
1088
1088
  return l.getDefaultOptions().queries?._experimental_afterQuery?.(
1089
- d,
1089
+ u,
1090
1090
  y
1091
- ), d.experimental_prefetchInRender && !hr && La(y, n) && (a ? (
1091
+ ), u.experimental_prefetchInRender && !hr && La(y, n) && (a ? (
1092
1092
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1093
- Ao(d, m, i)
1093
+ Ao(u, m, i)
1094
1094
  ) : (
1095
1095
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1096
- l.getQueryCache().get(d.queryHash)?.promise
1096
+ l.getQueryCache().get(u.queryHash)?.promise
1097
1097
  ))?.catch(Er).finally(() => {
1098
1098
  m.updateResult();
1099
- }), d.notifyOnChangeProps ? y : m.trackResult(y);
1099
+ }), u.notifyOnChangeProps ? y : m.trackResult(y);
1100
1100
  }
1101
1101
  function Hi(t, e) {
1102
1102
  return Ba(t, _a);
@@ -1113,14 +1113,14 @@ function qn(t, e) {
1113
1113
  }, [n, t]);
1114
1114
  const i = Le.useSyncExternalStore(
1115
1115
  Le.useCallback(
1116
- (d) => n.subscribe(Yr.batchCalls(d)),
1116
+ (u) => n.subscribe(Yr.batchCalls(u)),
1117
1117
  [n]
1118
1118
  ),
1119
1119
  () => n.getCurrentResult(),
1120
1120
  () => n.getCurrentResult()
1121
1121
  ), l = Le.useCallback(
1122
- (d, a) => {
1123
- n.mutate(d, a).catch(Er);
1122
+ (u, a) => {
1123
+ n.mutate(u, a).catch(Er);
1124
1124
  },
1125
1125
  [n]
1126
1126
  );
@@ -1148,15 +1148,15 @@ function Vn(t) {
1148
1148
  });
1149
1149
  }), r;
1150
1150
  }
1151
- var gn = { exports: {} }, Xt = {};
1151
+ var gn = { exports: {} }, Jt = {};
1152
1152
  var Eo;
1153
1153
  function Ya() {
1154
- if (Eo) return Xt;
1154
+ if (Eo) return Jt;
1155
1155
  Eo = 1;
1156
1156
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
1157
1157
  function r(n, i, l) {
1158
- var d = null;
1159
- if (l !== void 0 && (d = "" + l), i.key !== void 0 && (d = "" + i.key), "key" in i) {
1158
+ var u = null;
1159
+ if (l !== void 0 && (u = "" + l), i.key !== void 0 && (u = "" + i.key), "key" in i) {
1160
1160
  l = {};
1161
1161
  for (var a in i)
1162
1162
  a !== "key" && (l[a] = i[a]);
@@ -1164,12 +1164,12 @@ function Ya() {
1164
1164
  return i = l.ref, {
1165
1165
  $$typeof: t,
1166
1166
  type: n,
1167
- key: d,
1167
+ key: u,
1168
1168
  ref: i !== void 0 ? i : null,
1169
1169
  props: l
1170
1170
  };
1171
1171
  }
1172
- return Xt.Fragment = e, Xt.jsx = r, Xt.jsxs = r, Xt;
1172
+ return Jt.Fragment = e, Jt.jsx = r, Jt.jsxs = r, Jt;
1173
1173
  }
1174
1174
  var Sr = {};
1175
1175
  var To;
@@ -1205,14 +1205,14 @@ function za() {
1205
1205
  case L:
1206
1206
  return (f._context.displayName || "Context") + ".Consumer";
1207
1207
  case F:
1208
- var u = f.render;
1209
- return f = f.displayName, f || (f = u.displayName || u.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
1208
+ var d = f.render;
1209
+ return f = f.displayName, f || (f = d.displayName || d.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
1210
1210
  case H:
1211
- return u = f.displayName || null, u !== null ? u : t(f.type) || "Memo";
1211
+ return d = f.displayName || null, d !== null ? d : t(f.type) || "Memo";
1212
1212
  case Q:
1213
- u = f._payload, f = f._init;
1213
+ d = f._payload, f = f._init;
1214
1214
  try {
1215
- return t(f(u));
1215
+ return t(f(d));
1216
1216
  } catch {
1217
1217
  }
1218
1218
  }
@@ -1224,15 +1224,15 @@ function za() {
1224
1224
  function r(f) {
1225
1225
  try {
1226
1226
  e(f);
1227
- var u = !1;
1227
+ var d = !1;
1228
1228
  } catch {
1229
- u = !0;
1229
+ d = !0;
1230
1230
  }
1231
- if (u) {
1232
- u = console;
1233
- var v = u.error, D = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
1231
+ if (d) {
1232
+ d = console;
1233
+ var v = d.error, D = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
1234
1234
  return v.call(
1235
- u,
1235
+ d,
1236
1236
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1237
1237
  D
1238
1238
  ), e(f);
@@ -1243,8 +1243,8 @@ function za() {
1243
1243
  if (typeof f == "object" && f !== null && f.$$typeof === Q)
1244
1244
  return "<...>";
1245
1245
  try {
1246
- var u = t(f);
1247
- return u ? "<" + u + ">" : "<...>";
1246
+ var d = t(f);
1247
+ return d ? "<" + d + ">" : "<...>";
1248
1248
  } catch {
1249
1249
  return "<...>";
1250
1250
  }
@@ -1256,18 +1256,18 @@ function za() {
1256
1256
  function l() {
1257
1257
  return Error("react-stack-top-frame");
1258
1258
  }
1259
- function d(f) {
1259
+ function u(f) {
1260
1260
  if (ne.call(f, "key")) {
1261
- var u = Object.getOwnPropertyDescriptor(f, "key").get;
1262
- if (u && u.isReactWarning) return !1;
1261
+ var d = Object.getOwnPropertyDescriptor(f, "key").get;
1262
+ if (d && d.isReactWarning) return !1;
1263
1263
  }
1264
1264
  return f.key !== void 0;
1265
1265
  }
1266
- function a(f, u) {
1266
+ function a(f, d) {
1267
1267
  function v() {
1268
1268
  x || (x = !0, console.error(
1269
1269
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1270
- u
1270
+ d
1271
1271
  ));
1272
1272
  }
1273
1273
  v.isReactWarning = !0, Object.defineProperty(f, "key", {
@@ -1281,11 +1281,11 @@ function za() {
1281
1281
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1282
1282
  )), f = this.props.ref, f !== void 0 ? f : null;
1283
1283
  }
1284
- function y(f, u, v, D, R, U, K, ee) {
1284
+ function y(f, d, v, D, R, U, K, ee) {
1285
1285
  return v = U.ref, f = {
1286
1286
  $$typeof: C,
1287
1287
  type: f,
1288
- key: u,
1288
+ key: d,
1289
1289
  props: U,
1290
1290
  _owner: R
1291
1291
  }, (v !== void 0 ? v : null) !== null ? Object.defineProperty(f, "ref", {
@@ -1313,8 +1313,8 @@ function za() {
1313
1313
  value: ee
1314
1314
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
1315
1315
  }
1316
- function _(f, u, v, D, R, U, K, ee) {
1317
- var J = u.children;
1316
+ function _(f, d, v, D, R, U, K, ee) {
1317
+ var J = d.children;
1318
1318
  if (J !== void 0)
1319
1319
  if (D)
1320
1320
  if (te(J)) {
@@ -1326,9 +1326,9 @@ function za() {
1326
1326
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1327
1327
  );
1328
1328
  else O(J);
1329
- if (ne.call(u, "key")) {
1329
+ if (ne.call(d, "key")) {
1330
1330
  J = t(f);
1331
- var ie = Object.keys(u).filter(function(ae) {
1331
+ var ie = Object.keys(d).filter(function(ae) {
1332
1332
  return ae !== "key";
1333
1333
  });
1334
1334
  D = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", p[J + D] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -1344,11 +1344,11 @@ React keys must be passed directly to JSX without using spread:
1344
1344
  J
1345
1345
  ), p[J + D] = !0);
1346
1346
  }
1347
- if (J = null, v !== void 0 && (r(v), J = "" + v), d(u) && (r(u.key), J = "" + u.key), "key" in u) {
1347
+ if (J = null, v !== void 0 && (r(v), J = "" + v), u(d) && (r(d.key), J = "" + d.key), "key" in d) {
1348
1348
  v = {};
1349
- for (var oe in u)
1350
- oe !== "key" && (v[oe] = u[oe]);
1351
- } else v = u;
1349
+ for (var oe in d)
1350
+ oe !== "key" && (v[oe] = d[oe]);
1351
+ } else v = d;
1352
1352
  return J && a(
1353
1353
  v,
1354
1354
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
@@ -1378,11 +1378,11 @@ React keys must be passed directly to JSX without using spread:
1378
1378
  S,
1379
1379
  l
1380
1380
  )(), s = P(n(l)), p = {};
1381
- Sr.Fragment = j, Sr.jsx = function(f, u, v, D, R) {
1381
+ Sr.Fragment = j, Sr.jsx = function(f, d, v, D, R) {
1382
1382
  var U = 1e4 > Z.recentlyCreatedOwnerStacks++;
1383
1383
  return _(
1384
1384
  f,
1385
- u,
1385
+ d,
1386
1386
  v,
1387
1387
  !1,
1388
1388
  D,
@@ -1390,11 +1390,11 @@ React keys must be passed directly to JSX without using spread:
1390
1390
  U ? Error("react-stack-top-frame") : h,
1391
1391
  U ? P(n(f)) : s
1392
1392
  );
1393
- }, Sr.jsxs = function(f, u, v, D, R) {
1393
+ }, Sr.jsxs = function(f, d, v, D, R) {
1394
1394
  var U = 1e4 > Z.recentlyCreatedOwnerStacks++;
1395
1395
  return _(
1396
1396
  f,
1397
- u,
1397
+ d,
1398
1398
  v,
1399
1399
  !0,
1400
1400
  D,
@@ -1442,14 +1442,14 @@ function qa() {
1442
1442
  return Bo || (Bo = 1, process.env.NODE_ENV === "production" ? mn.exports = Wa() : mn.exports = Ua()), mn.exports;
1443
1443
  }
1444
1444
  qa();
1445
- var Yo = {}, er = {}, zo;
1445
+ var Yo = {}, Xt = {}, zo;
1446
1446
  function Va() {
1447
- if (zo) return er;
1448
- zo = 1, er.byteLength = a, er.toByteArray = y, er.fromByteArray = S;
1447
+ if (zo) return Xt;
1448
+ zo = 1, Xt.byteLength = a, Xt.toByteArray = y, Xt.fromByteArray = S;
1449
1449
  for (var t = [], e = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, l = n.length; i < l; ++i)
1450
1450
  t[i] = n[i], e[n.charCodeAt(i)] = i;
1451
1451
  e[45] = 62, e[95] = 63;
1452
- function d(C) {
1452
+ function u(C) {
1453
1453
  var k = C.length;
1454
1454
  if (k % 4 > 0)
1455
1455
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -1459,14 +1459,14 @@ function Va() {
1459
1459
  return [j, $];
1460
1460
  }
1461
1461
  function a(C) {
1462
- var k = d(C), j = k[0], $ = k[1];
1462
+ var k = u(C), j = k[0], $ = k[1];
1463
1463
  return (j + $) * 3 / 4 - $;
1464
1464
  }
1465
1465
  function m(C, k, j) {
1466
1466
  return (k + j) * 3 / 4 - j;
1467
1467
  }
1468
1468
  function y(C) {
1469
- var k, j = d(C), $ = j[0], z = j[1], L = new r(m(C, $, z)), V = 0, F = z > 0 ? $ - 4 : $, X;
1469
+ var k, j = u(C), $ = j[0], z = j[1], L = new r(m(C, $, z)), V = 0, F = z > 0 ? $ - 4 : $, X;
1470
1470
  for (X = 0; X < F; X += 4)
1471
1471
  k = e[C.charCodeAt(X)] << 18 | e[C.charCodeAt(X + 1)] << 12 | e[C.charCodeAt(X + 2)] << 6 | e[C.charCodeAt(X + 3)], L[V++] = k >> 16 & 255, L[V++] = k >> 8 & 255, L[V++] = k & 255;
1472
1472
  return z === 2 && (k = e[C.charCodeAt(X)] << 2 | e[C.charCodeAt(X + 1)] >> 4, L[V++] = k & 255), z === 1 && (k = e[C.charCodeAt(X)] << 10 | e[C.charCodeAt(X + 1)] << 4 | e[C.charCodeAt(X + 2)] >> 2, L[V++] = k >> 8 & 255, L[V++] = k & 255), L;
@@ -1488,30 +1488,30 @@ function Va() {
1488
1488
  t[k >> 10] + t[k >> 4 & 63] + t[k << 2 & 63] + "="
1489
1489
  )), z.join("");
1490
1490
  }
1491
- return er;
1491
+ return Xt;
1492
1492
  }
1493
1493
  var vn = {};
1494
1494
  var Fo;
1495
1495
  function Ha() {
1496
1496
  return Fo || (Fo = 1, vn.read = function(t, e, r, n, i) {
1497
- var l, d, a = i * 8 - n - 1, m = (1 << a) - 1, y = m >> 1, _ = -7, O = r ? i - 1 : 0, S = r ? -1 : 1, C = t[e + O];
1497
+ var l, u, a = i * 8 - n - 1, m = (1 << a) - 1, y = m >> 1, _ = -7, O = r ? i - 1 : 0, S = r ? -1 : 1, C = t[e + O];
1498
1498
  for (O += S, l = C & (1 << -_) - 1, C >>= -_, _ += a; _ > 0; l = l * 256 + t[e + O], O += S, _ -= 8)
1499
1499
  ;
1500
- for (d = l & (1 << -_) - 1, l >>= -_, _ += n; _ > 0; d = d * 256 + t[e + O], O += S, _ -= 8)
1500
+ for (u = l & (1 << -_) - 1, l >>= -_, _ += n; _ > 0; u = u * 256 + t[e + O], O += S, _ -= 8)
1501
1501
  ;
1502
1502
  if (l === 0)
1503
1503
  l = 1 - y;
1504
1504
  else {
1505
1505
  if (l === m)
1506
- return d ? NaN : (C ? -1 : 1) * (1 / 0);
1507
- d = d + Math.pow(2, n), l = l - y;
1506
+ return u ? NaN : (C ? -1 : 1) * (1 / 0);
1507
+ u = u + Math.pow(2, n), l = l - y;
1508
1508
  }
1509
- return (C ? -1 : 1) * d * Math.pow(2, l - n);
1509
+ return (C ? -1 : 1) * u * Math.pow(2, l - n);
1510
1510
  }, vn.write = function(t, e, r, n, i, l) {
1511
- var d, a, m, y = l * 8 - i - 1, _ = (1 << y) - 1, O = _ >> 1, S = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = n ? 0 : l - 1, k = n ? 1 : -1, j = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
1512
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, d = _) : (d = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -d)) < 1 && (d--, m *= 2), d + O >= 1 ? e += S / m : e += S * Math.pow(2, 1 - O), e * m >= 2 && (d++, m /= 2), d + O >= _ ? (a = 0, d = _) : d + O >= 1 ? (a = (e * m - 1) * Math.pow(2, i), d = d + O) : (a = e * Math.pow(2, O - 1) * Math.pow(2, i), d = 0)); i >= 8; t[r + C] = a & 255, C += k, a /= 256, i -= 8)
1511
+ var u, a, m, y = l * 8 - i - 1, _ = (1 << y) - 1, O = _ >> 1, S = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = n ? 0 : l - 1, k = n ? 1 : -1, j = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
1512
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, u = _) : (u = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -u)) < 1 && (u--, m *= 2), u + O >= 1 ? e += S / m : e += S * Math.pow(2, 1 - O), e * m >= 2 && (u++, m /= 2), u + O >= _ ? (a = 0, u = _) : u + O >= 1 ? (a = (e * m - 1) * Math.pow(2, i), u = u + O) : (a = e * Math.pow(2, O - 1) * Math.pow(2, i), u = 0)); i >= 8; t[r + C] = a & 255, C += k, a /= 256, i -= 8)
1513
1513
  ;
1514
- for (d = d << i | a, y += i; y > 0; t[r + C] = d & 255, C += k, d /= 256, y -= 8)
1514
+ for (u = u << i | a, y += i; y > 0; t[r + C] = u & 255, C += k, u /= 256, y -= 8)
1515
1515
  ;
1516
1516
  t[r + C - k] |= j * 128;
1517
1517
  }), vn;
@@ -1545,7 +1545,7 @@ function Qa() {
1545
1545
  function l() {
1546
1546
  return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
1547
1547
  }
1548
- function d(o, c) {
1548
+ function u(o, c) {
1549
1549
  if (l() < c)
1550
1550
  throw new RangeError("Invalid typed array length");
1551
1551
  return a.TYPED_ARRAY_SUPPORT ? (o = new Uint8Array(c), o.__proto__ = a.prototype) : (o === null && (o = new a(c)), o.length = c), o;
@@ -1583,13 +1583,13 @@ function Qa() {
1583
1583
  throw new RangeError('"size" argument must not be negative');
1584
1584
  }
1585
1585
  function _(o, c, g, M) {
1586
- return y(c), c <= 0 ? d(o, c) : g !== void 0 ? typeof M == "string" ? d(o, c).fill(g, M) : d(o, c).fill(g) : d(o, c);
1586
+ return y(c), c <= 0 ? u(o, c) : g !== void 0 ? typeof M == "string" ? u(o, c).fill(g, M) : u(o, c).fill(g) : u(o, c);
1587
1587
  }
1588
1588
  a.alloc = function(o, c, g) {
1589
1589
  return _(null, o, c, g);
1590
1590
  };
1591
1591
  function O(o, c) {
1592
- if (y(c), o = d(o, c < 0 ? 0 : $(c) | 0), !a.TYPED_ARRAY_SUPPORT)
1592
+ if (y(c), o = u(o, c < 0 ? 0 : $(c) | 0), !a.TYPED_ARRAY_SUPPORT)
1593
1593
  for (var g = 0; g < c; ++g)
1594
1594
  o[g] = 0;
1595
1595
  return o;
@@ -1603,13 +1603,13 @@ function Qa() {
1603
1603
  if ((typeof g != "string" || g === "") && (g = "utf8"), !a.isEncoding(g))
1604
1604
  throw new TypeError('"encoding" must be a valid string encoding');
1605
1605
  var M = L(c, g) | 0;
1606
- o = d(o, M);
1606
+ o = u(o, M);
1607
1607
  var T = o.write(c, g);
1608
1608
  return T !== M && (o = o.slice(0, T)), o;
1609
1609
  }
1610
1610
  function C(o, c) {
1611
1611
  var g = c.length < 0 ? 0 : $(c.length) | 0;
1612
- o = d(o, g);
1612
+ o = u(o, g);
1613
1613
  for (var M = 0; M < g; M += 1)
1614
1614
  o[M] = c[M] & 255;
1615
1615
  return o;
@@ -1624,11 +1624,11 @@ function Qa() {
1624
1624
  function j(o, c) {
1625
1625
  if (a.isBuffer(c)) {
1626
1626
  var g = $(c.length) | 0;
1627
- return o = d(o, g), o.length === 0 || c.copy(o, 0, 0, g), o;
1627
+ return o = u(o, g), o.length === 0 || c.copy(o, 0, 0, g), o;
1628
1628
  }
1629
1629
  if (c) {
1630
1630
  if (typeof ArrayBuffer < "u" && c.buffer instanceof ArrayBuffer || "length" in c)
1631
- return typeof c.length != "number" || le(c.length) ? d(o, 0) : C(o, c);
1631
+ return typeof c.length != "number" || le(c.length) ? u(o, 0) : C(o, c);
1632
1632
  if (c.type === "Buffer" && n(c.data))
1633
1633
  return C(o, c.data);
1634
1634
  }
@@ -2006,62 +2006,62 @@ function Qa() {
2006
2006
  }
2007
2007
  return M;
2008
2008
  };
2009
- function u(o, c, g) {
2009
+ function d(o, c, g) {
2010
2010
  if (o % 1 !== 0 || o < 0) throw new RangeError("offset is not uint");
2011
2011
  if (o + c > g) throw new RangeError("Trying to access beyond buffer length");
2012
2012
  }
2013
2013
  a.prototype.readUIntLE = function(o, c, g) {
2014
- o = o | 0, c = c | 0, g || u(o, c, this.length);
2014
+ o = o | 0, c = c | 0, g || d(o, c, this.length);
2015
2015
  for (var M = this[o], T = 1, Y = 0; ++Y < c && (T *= 256); )
2016
2016
  M += this[o + Y] * T;
2017
2017
  return M;
2018
2018
  }, a.prototype.readUIntBE = function(o, c, g) {
2019
- o = o | 0, c = c | 0, g || u(o, c, this.length);
2019
+ o = o | 0, c = c | 0, g || d(o, c, this.length);
2020
2020
  for (var M = this[o + --c], T = 1; c > 0 && (T *= 256); )
2021
2021
  M += this[o + --c] * T;
2022
2022
  return M;
2023
2023
  }, a.prototype.readUInt8 = function(o, c) {
2024
- return c || u(o, 1, this.length), this[o];
2024
+ return c || d(o, 1, this.length), this[o];
2025
2025
  }, a.prototype.readUInt16LE = function(o, c) {
2026
- return c || u(o, 2, this.length), this[o] | this[o + 1] << 8;
2026
+ return c || d(o, 2, this.length), this[o] | this[o + 1] << 8;
2027
2027
  }, a.prototype.readUInt16BE = function(o, c) {
2028
- return c || u(o, 2, this.length), this[o] << 8 | this[o + 1];
2028
+ return c || d(o, 2, this.length), this[o] << 8 | this[o + 1];
2029
2029
  }, a.prototype.readUInt32LE = function(o, c) {
2030
- return c || u(o, 4, this.length), (this[o] | this[o + 1] << 8 | this[o + 2] << 16) + this[o + 3] * 16777216;
2030
+ return c || d(o, 4, this.length), (this[o] | this[o + 1] << 8 | this[o + 2] << 16) + this[o + 3] * 16777216;
2031
2031
  }, a.prototype.readUInt32BE = function(o, c) {
2032
- return c || u(o, 4, this.length), this[o] * 16777216 + (this[o + 1] << 16 | this[o + 2] << 8 | this[o + 3]);
2032
+ return c || d(o, 4, this.length), this[o] * 16777216 + (this[o + 1] << 16 | this[o + 2] << 8 | this[o + 3]);
2033
2033
  }, a.prototype.readIntLE = function(o, c, g) {
2034
- o = o | 0, c = c | 0, g || u(o, c, this.length);
2034
+ o = o | 0, c = c | 0, g || d(o, c, this.length);
2035
2035
  for (var M = this[o], T = 1, Y = 0; ++Y < c && (T *= 256); )
2036
2036
  M += this[o + Y] * T;
2037
2037
  return T *= 128, M >= T && (M -= Math.pow(2, 8 * c)), M;
2038
2038
  }, a.prototype.readIntBE = function(o, c, g) {
2039
- o = o | 0, c = c | 0, g || u(o, c, this.length);
2039
+ o = o | 0, c = c | 0, g || d(o, c, this.length);
2040
2040
  for (var M = c, T = 1, Y = this[o + --M]; M > 0 && (T *= 256); )
2041
2041
  Y += this[o + --M] * T;
2042
2042
  return T *= 128, Y >= T && (Y -= Math.pow(2, 8 * c)), Y;
2043
2043
  }, a.prototype.readInt8 = function(o, c) {
2044
- return c || u(o, 1, this.length), this[o] & 128 ? (255 - this[o] + 1) * -1 : this[o];
2044
+ return c || d(o, 1, this.length), this[o] & 128 ? (255 - this[o] + 1) * -1 : this[o];
2045
2045
  }, a.prototype.readInt16LE = function(o, c) {
2046
- c || u(o, 2, this.length);
2046
+ c || d(o, 2, this.length);
2047
2047
  var g = this[o] | this[o + 1] << 8;
2048
2048
  return g & 32768 ? g | 4294901760 : g;
2049
2049
  }, a.prototype.readInt16BE = function(o, c) {
2050
- c || u(o, 2, this.length);
2050
+ c || d(o, 2, this.length);
2051
2051
  var g = this[o + 1] | this[o] << 8;
2052
2052
  return g & 32768 ? g | 4294901760 : g;
2053
2053
  }, a.prototype.readInt32LE = function(o, c) {
2054
- return c || u(o, 4, this.length), this[o] | this[o + 1] << 8 | this[o + 2] << 16 | this[o + 3] << 24;
2054
+ return c || d(o, 4, this.length), this[o] | this[o + 1] << 8 | this[o + 2] << 16 | this[o + 3] << 24;
2055
2055
  }, a.prototype.readInt32BE = function(o, c) {
2056
- return c || u(o, 4, this.length), this[o] << 24 | this[o + 1] << 16 | this[o + 2] << 8 | this[o + 3];
2056
+ return c || d(o, 4, this.length), this[o] << 24 | this[o + 1] << 16 | this[o + 2] << 8 | this[o + 3];
2057
2057
  }, a.prototype.readFloatLE = function(o, c) {
2058
- return c || u(o, 4, this.length), r.read(this, o, !0, 23, 4);
2058
+ return c || d(o, 4, this.length), r.read(this, o, !0, 23, 4);
2059
2059
  }, a.prototype.readFloatBE = function(o, c) {
2060
- return c || u(o, 4, this.length), r.read(this, o, !1, 23, 4);
2060
+ return c || d(o, 4, this.length), r.read(this, o, !1, 23, 4);
2061
2061
  }, a.prototype.readDoubleLE = function(o, c) {
2062
- return c || u(o, 8, this.length), r.read(this, o, !0, 52, 8);
2062
+ return c || d(o, 8, this.length), r.read(this, o, !0, 52, 8);
2063
2063
  }, a.prototype.readDoubleBE = function(o, c) {
2064
- return c || u(o, 8, this.length), r.read(this, o, !1, 52, 8);
2064
+ return c || d(o, 8, this.length), r.read(this, o, !1, 52, 8);
2065
2065
  };
2066
2066
  function v(o, c, g, M, T, Y) {
2067
2067
  if (!a.isBuffer(o)) throw new TypeError('"buffer" argument must be a Buffer instance');
@@ -2333,9 +2333,9 @@ function Ka(t, e) {
2333
2333
  return r;
2334
2334
  }
2335
2335
  function Ja(t, e, r, n) {
2336
- var i = arguments.length, l = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, d;
2336
+ var i = arguments.length, l = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, u;
2337
2337
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") l = Reflect.decorate(t, e, r, n);
2338
- else for (var a = t.length - 1; a >= 0; a--) (d = t[a]) && (l = (i < 3 ? d(l) : i > 3 ? d(e, r, l) : d(e, r)) || l);
2338
+ else for (var a = t.length - 1; a >= 0; a--) (u = t[a]) && (l = (i < 3 ? u(l) : i > 3 ? u(e, r, l) : u(e, r)) || l);
2339
2339
  return i > 3 && l && Object.defineProperty(e, r, l), l;
2340
2340
  }
2341
2341
  function Xa(t, e) {
@@ -2348,23 +2348,23 @@ function el(t, e) {
2348
2348
  }
2349
2349
  function tl(t, e, r, n) {
2350
2350
  function i(l) {
2351
- return l instanceof r ? l : new r(function(d) {
2352
- d(l);
2351
+ return l instanceof r ? l : new r(function(u) {
2352
+ u(l);
2353
2353
  });
2354
2354
  }
2355
- return new (r || (r = Promise))(function(l, d) {
2355
+ return new (r || (r = Promise))(function(l, u) {
2356
2356
  function a(_) {
2357
2357
  try {
2358
2358
  y(n.next(_));
2359
2359
  } catch (O) {
2360
- d(O);
2360
+ u(O);
2361
2361
  }
2362
2362
  }
2363
2363
  function m(_) {
2364
2364
  try {
2365
2365
  y(n.throw(_));
2366
2366
  } catch (O) {
2367
- d(O);
2367
+ u(O);
2368
2368
  }
2369
2369
  }
2370
2370
  function y(_) {
@@ -2377,10 +2377,10 @@ function rl(t, e) {
2377
2377
  var r = { label: 0, sent: function() {
2378
2378
  if (l[0] & 1) throw l[1];
2379
2379
  return l[1];
2380
- }, trys: [], ops: [] }, n, i, l, d;
2381
- return d = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (d[Symbol.iterator] = function() {
2380
+ }, trys: [], ops: [] }, n, i, l, u;
2381
+ return u = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
2382
2382
  return this;
2383
- }), d;
2383
+ }), u;
2384
2384
  function a(y) {
2385
2385
  return function(_) {
2386
2386
  return m([y, _]);
@@ -2452,16 +2452,16 @@ function Rn(t) {
2452
2452
  function Gi(t, e) {
2453
2453
  var r = typeof Symbol == "function" && t[Symbol.iterator];
2454
2454
  if (!r) return t;
2455
- var n = r.call(t), i, l = [], d;
2455
+ var n = r.call(t), i, l = [], u;
2456
2456
  try {
2457
2457
  for (; (e === void 0 || e-- > 0) && !(i = n.next()).done; ) l.push(i.value);
2458
2458
  } catch (a) {
2459
- d = { error: a };
2459
+ u = { error: a };
2460
2460
  } finally {
2461
2461
  try {
2462
2462
  i && !i.done && (r = n.return) && r.call(n);
2463
2463
  } finally {
2464
- if (d) throw d.error;
2464
+ if (u) throw u.error;
2465
2465
  }
2466
2466
  }
2467
2467
  return l;
@@ -2474,8 +2474,8 @@ function il() {
2474
2474
  function sl() {
2475
2475
  for (var t = 0, e = 0, r = arguments.length; e < r; e++) t += arguments[e].length;
2476
2476
  for (var n = Array(t), i = 0, e = 0; e < r; e++)
2477
- for (var l = arguments[e], d = 0, a = l.length; d < a; d++, i++)
2478
- n[i] = l[d];
2477
+ for (var l = arguments[e], u = 0, a = l.length; u < a; u++, i++)
2478
+ n[i] = l[u];
2479
2479
  return n;
2480
2480
  }
2481
2481
  function fr(t) {
@@ -2484,10 +2484,10 @@ function fr(t) {
2484
2484
  function al(t, e, r) {
2485
2485
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2486
2486
  var n = r.apply(t, e || []), i, l = [];
2487
- return i = {}, d("next"), d("throw"), d("return"), i[Symbol.asyncIterator] = function() {
2487
+ return i = {}, u("next"), u("throw"), u("return"), i[Symbol.asyncIterator] = function() {
2488
2488
  return this;
2489
2489
  }, i;
2490
- function d(S) {
2490
+ function u(S) {
2491
2491
  n[S] && (i[S] = function(C) {
2492
2492
  return new Promise(function(k, j) {
2493
2493
  l.push([S, C, k, j]) > 1 || a(S, C);
@@ -2522,8 +2522,8 @@ function ll(t) {
2522
2522
  return this;
2523
2523
  }, e;
2524
2524
  function n(i, l) {
2525
- e[i] = t[i] ? function(d) {
2526
- return (r = !r) ? { value: fr(t[i](d)), done: i === "return" } : l ? l(d) : d;
2525
+ e[i] = t[i] ? function(u) {
2526
+ return (r = !r) ? { value: fr(t[i](u)), done: i === "return" } : l ? l(u) : u;
2527
2527
  } : l;
2528
2528
  }
2529
2529
  }
@@ -2534,16 +2534,16 @@ function cl(t) {
2534
2534
  return this;
2535
2535
  }, r);
2536
2536
  function n(l) {
2537
- r[l] = t[l] && function(d) {
2537
+ r[l] = t[l] && function(u) {
2538
2538
  return new Promise(function(a, m) {
2539
- d = t[l](d), i(a, m, d.done, d.value);
2539
+ u = t[l](u), i(a, m, u.done, u.value);
2540
2540
  });
2541
2541
  };
2542
2542
  }
2543
- function i(l, d, a, m) {
2543
+ function i(l, u, a, m) {
2544
2544
  Promise.resolve(m).then(function(y) {
2545
2545
  l({ value: y, done: a });
2546
- }, d);
2546
+ }, u);
2547
2547
  }
2548
2548
  }
2549
2549
  function ul(t, e) {
@@ -2596,7 +2596,7 @@ const gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2596
2596
  __spreadArrays: sl,
2597
2597
  __values: Rn
2598
2598
  }, Symbol.toStringTag, { value: "Module" })), Qi = /* @__PURE__ */ Vn(gl);
2599
- var tr = {}, Xe = {}, Vo;
2599
+ var er = {}, Xe = {}, Vo;
2600
2600
  function Zi() {
2601
2601
  return Vo || (Vo = 1, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.MAX_HASHABLE_LENGTH = Xe.INIT = Xe.KEY = Xe.DIGEST_LENGTH = Xe.BLOCK_SIZE = void 0, Xe.BLOCK_SIZE = 64, Xe.DIGEST_LENGTH = 32, Xe.KEY = new Uint32Array([
2602
2602
  1116352408,
@@ -2674,10 +2674,10 @@ function Zi() {
2674
2674
  1541459225
2675
2675
  ], Xe.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1), Xe;
2676
2676
  }
2677
- var rr = {}, Ho;
2677
+ var tr = {}, Ho;
2678
2678
  function ml() {
2679
- if (Ho) return rr;
2680
- Ho = 1, Object.defineProperty(rr, "__esModule", { value: !0 }), rr.RawSha256 = void 0;
2679
+ if (Ho) return tr;
2680
+ Ho = 1, Object.defineProperty(tr, "__esModule", { value: !0 }), tr.RawSha256 = void 0;
2681
2681
  var t = Zi(), e = (
2682
2682
  /** @class */
2683
2683
  (function() {
@@ -2696,19 +2696,19 @@ function ml() {
2696
2696
  if (!this.finished) {
2697
2697
  var n = this.bytesHashed * 8, i = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength), l = this.bufferLength;
2698
2698
  if (i.setUint8(this.bufferLength++, 128), l % t.BLOCK_SIZE >= t.BLOCK_SIZE - 8) {
2699
- for (var d = this.bufferLength; d < t.BLOCK_SIZE; d++)
2700
- i.setUint8(d, 0);
2699
+ for (var u = this.bufferLength; u < t.BLOCK_SIZE; u++)
2700
+ i.setUint8(u, 0);
2701
2701
  this.hashBuffer(), this.bufferLength = 0;
2702
2702
  }
2703
- for (var d = this.bufferLength; d < t.BLOCK_SIZE - 8; d++)
2704
- i.setUint8(d, 0);
2703
+ for (var u = this.bufferLength; u < t.BLOCK_SIZE - 8; u++)
2704
+ i.setUint8(u, 0);
2705
2705
  i.setUint32(t.BLOCK_SIZE - 8, Math.floor(n / 4294967296), !0), i.setUint32(t.BLOCK_SIZE - 4, n), this.hashBuffer(), this.finished = !0;
2706
2706
  }
2707
- for (var a = new Uint8Array(t.DIGEST_LENGTH), d = 0; d < 8; d++)
2708
- a[d * 4] = this.state[d] >>> 24 & 255, a[d * 4 + 1] = this.state[d] >>> 16 & 255, a[d * 4 + 2] = this.state[d] >>> 8 & 255, a[d * 4 + 3] = this.state[d] >>> 0 & 255;
2707
+ for (var a = new Uint8Array(t.DIGEST_LENGTH), u = 0; u < 8; u++)
2708
+ a[u * 4] = this.state[u] >>> 24 & 255, a[u * 4 + 1] = this.state[u] >>> 16 & 255, a[u * 4 + 2] = this.state[u] >>> 8 & 255, a[u * 4 + 3] = this.state[u] >>> 0 & 255;
2709
2709
  return a;
2710
2710
  }, r.prototype.hashBuffer = function() {
2711
- for (var n = this, i = n.buffer, l = n.state, d = l[0], a = l[1], m = l[2], y = l[3], _ = l[4], O = l[5], S = l[6], C = l[7], k = 0; k < t.BLOCK_SIZE; k++) {
2711
+ for (var n = this, i = n.buffer, l = n.state, u = l[0], a = l[1], m = l[2], y = l[3], _ = l[4], O = l[5], S = l[6], C = l[7], k = 0; k < t.BLOCK_SIZE; k++) {
2712
2712
  if (k < 16)
2713
2713
  this.temp[k] = (i[k * 4] & 255) << 24 | (i[k * 4 + 1] & 255) << 16 | (i[k * 4 + 2] & 255) << 8 | i[k * 4 + 3] & 255;
2714
2714
  else {
@@ -2717,16 +2717,16 @@ function ml() {
2717
2717
  var z = (j >>> 7 | j << 25) ^ (j >>> 18 | j << 14) ^ j >>> 3;
2718
2718
  this.temp[k] = ($ + this.temp[k - 7] | 0) + (z + this.temp[k - 16] | 0);
2719
2719
  }
2720
- var L = (((_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7)) + (_ & O ^ ~_ & S) | 0) + (C + (t.KEY[k] + this.temp[k] | 0) | 0) | 0, V = ((d >>> 2 | d << 30) ^ (d >>> 13 | d << 19) ^ (d >>> 22 | d << 10)) + (d & a ^ d & m ^ a & m) | 0;
2721
- C = S, S = O, O = _, _ = y + L | 0, y = m, m = a, a = d, d = L + V | 0;
2720
+ var L = (((_ >>> 6 | _ << 26) ^ (_ >>> 11 | _ << 21) ^ (_ >>> 25 | _ << 7)) + (_ & O ^ ~_ & S) | 0) + (C + (t.KEY[k] + this.temp[k] | 0) | 0) | 0, V = ((u >>> 2 | u << 30) ^ (u >>> 13 | u << 19) ^ (u >>> 22 | u << 10)) + (u & a ^ u & m ^ a & m) | 0;
2721
+ C = S, S = O, O = _, _ = y + L | 0, y = m, m = a, a = u, u = L + V | 0;
2722
2722
  }
2723
- l[0] += d, l[1] += a, l[2] += m, l[3] += y, l[4] += _, l[5] += O, l[6] += S, l[7] += C;
2723
+ l[0] += u, l[1] += a, l[2] += m, l[3] += y, l[4] += _, l[5] += O, l[6] += S, l[7] += C;
2724
2724
  }, r;
2725
2725
  })()
2726
2726
  );
2727
- return rr.RawSha256 = e, rr;
2727
+ return tr.RawSha256 = e, tr;
2728
2728
  }
2729
- var Go = {}, nr = {};
2729
+ var Go = {}, rr = {};
2730
2730
  const yl = (t) => {
2731
2731
  const e = [];
2732
2732
  for (let r = 0, n = t.length; r < n; r++) {
@@ -2752,7 +2752,7 @@ const yl = (t) => {
2752
2752
  const l = t[++r];
2753
2753
  e += String.fromCharCode((i & 31) << 6 | l & 63);
2754
2754
  } else if (240 <= i && i < 365) {
2755
- const l = "%" + [i, t[++r], t[++r], t[++r]].map((d) => d.toString(16)).join("%");
2755
+ const l = "%" + [i, t[++r], t[++r], t[++r]].map((u) => u.toString(16)).join("%");
2756
2756
  e += decodeURIComponent(l);
2757
2757
  } else
2758
2758
  e += String.fromCharCode((i & 15) << 12 | (t[++r] & 63) << 6 | t[++r] & 63);
@@ -2772,29 +2772,29 @@ const _l = (t) => typeof TextEncoder == "function" ? bl(t) : yl(t), xl = (t) =>
2772
2772
  }, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Vn(Cl);
2773
2773
  var Qo;
2774
2774
  function Dl() {
2775
- if (Qo) return nr;
2776
- Qo = 1, Object.defineProperty(nr, "__esModule", { value: !0 }), nr.convertToBuffer = void 0;
2775
+ if (Qo) return rr;
2776
+ Qo = 1, Object.defineProperty(rr, "__esModule", { value: !0 }), rr.convertToBuffer = void 0;
2777
2777
  var t = Sl, e = typeof Buffer < "u" && Buffer.from ? function(n) {
2778
2778
  return Buffer.from(n, "utf8");
2779
2779
  } : t.fromUtf8;
2780
2780
  function r(n) {
2781
2781
  return n instanceof Uint8Array ? n : typeof n == "string" ? e(n) : ArrayBuffer.isView(n) ? new Uint8Array(n.buffer, n.byteOffset, n.byteLength / Uint8Array.BYTES_PER_ELEMENT) : new Uint8Array(n);
2782
2782
  }
2783
- return nr.convertToBuffer = r, nr;
2783
+ return rr.convertToBuffer = r, rr;
2784
2784
  }
2785
- var or = {}, Zo;
2785
+ var nr = {}, Zo;
2786
2786
  function kl() {
2787
- if (Zo) return or;
2788
- Zo = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.isEmptyData = void 0;
2787
+ if (Zo) return nr;
2788
+ Zo = 1, Object.defineProperty(nr, "__esModule", { value: !0 }), nr.isEmptyData = void 0;
2789
2789
  function t(e) {
2790
2790
  return typeof e == "string" ? e.length === 0 : e.byteLength === 0;
2791
2791
  }
2792
- return or.isEmptyData = t, or;
2792
+ return nr.isEmptyData = t, nr;
2793
2793
  }
2794
- var ir = {}, Ko;
2794
+ var or = {}, Ko;
2795
2795
  function Pl() {
2796
- if (Ko) return ir;
2797
- Ko = 1, Object.defineProperty(ir, "__esModule", { value: !0 }), ir.numToUint8 = void 0;
2796
+ if (Ko) return or;
2797
+ Ko = 1, Object.defineProperty(or, "__esModule", { value: !0 }), or.numToUint8 = void 0;
2798
2798
  function t(e) {
2799
2799
  return new Uint8Array([
2800
2800
  (e & 4278190080) >> 24,
@@ -2803,12 +2803,12 @@ function Pl() {
2803
2803
  e & 255
2804
2804
  ]);
2805
2805
  }
2806
- return ir.numToUint8 = t, ir;
2806
+ return or.numToUint8 = t, or;
2807
2807
  }
2808
- var sr = {}, Jo;
2808
+ var ir = {}, Jo;
2809
2809
  function Ol() {
2810
- if (Jo) return sr;
2811
- Jo = 1, Object.defineProperty(sr, "__esModule", { value: !0 }), sr.uint32ArrayFrom = void 0;
2810
+ if (Jo) return ir;
2811
+ Jo = 1, Object.defineProperty(ir, "__esModule", { value: !0 }), ir.uint32ArrayFrom = void 0;
2812
2812
  function t(e) {
2813
2813
  if (!Array.from) {
2814
2814
  for (var r = new Uint32Array(e.length), n = 0; n < e.length; )
@@ -2817,7 +2817,7 @@ function Ol() {
2817
2817
  }
2818
2818
  return Uint32Array.from(e);
2819
2819
  }
2820
- return sr.uint32ArrayFrom = t, sr;
2820
+ return ir.uint32ArrayFrom = t, ir;
2821
2821
  }
2822
2822
  var Xo;
2823
2823
  function jl() {
@@ -2843,12 +2843,12 @@ function jl() {
2843
2843
  }
2844
2844
  var ei;
2845
2845
  function Ml() {
2846
- if (ei) return tr;
2847
- ei = 1, Object.defineProperty(tr, "__esModule", { value: !0 }), tr.Sha256 = void 0;
2846
+ if (ei) return er;
2847
+ ei = 1, Object.defineProperty(er, "__esModule", { value: !0 }), er.Sha256 = void 0;
2848
2848
  var t = Qi, e = Zi(), r = ml(), n = jl(), i = (
2849
2849
  /** @class */
2850
2850
  (function() {
2851
- function d(a) {
2851
+ function u(a) {
2852
2852
  if (this.hash = new r.RawSha256(), a) {
2853
2853
  this.outer = new r.RawSha256();
2854
2854
  var m = l(a), y = new Uint8Array(e.BLOCK_SIZE);
@@ -2860,29 +2860,29 @@ function Ml() {
2860
2860
  m[_] = 0;
2861
2861
  }
2862
2862
  }
2863
- return d.prototype.update = function(a) {
2863
+ return u.prototype.update = function(a) {
2864
2864
  if (!((0, n.isEmptyData)(a) || this.error))
2865
2865
  try {
2866
2866
  this.hash.update((0, n.convertToBuffer)(a));
2867
2867
  } catch (m) {
2868
2868
  this.error = m;
2869
2869
  }
2870
- }, d.prototype.digestSync = function() {
2870
+ }, u.prototype.digestSync = function() {
2871
2871
  if (this.error)
2872
2872
  throw this.error;
2873
2873
  return this.outer ? (this.outer.finished || this.outer.update(this.hash.digest()), this.outer.digest()) : this.hash.digest();
2874
- }, d.prototype.digest = function() {
2874
+ }, u.prototype.digest = function() {
2875
2875
  return (0, t.__awaiter)(this, void 0, void 0, function() {
2876
2876
  return (0, t.__generator)(this, function(a) {
2877
2877
  return [2, this.digestSync()];
2878
2878
  });
2879
2879
  });
2880
- }, d;
2880
+ }, u;
2881
2881
  })()
2882
2882
  );
2883
- tr.Sha256 = i;
2884
- function l(d) {
2885
- var a = (0, n.convertToBuffer)(d);
2883
+ er.Sha256 = i;
2884
+ function l(u) {
2885
+ var a = (0, n.convertToBuffer)(u);
2886
2886
  if (a.byteLength > e.BLOCK_SIZE) {
2887
2887
  var m = new r.RawSha256();
2888
2888
  m.update(a), a = m.digest();
@@ -2890,7 +2890,7 @@ function Ml() {
2890
2890
  var y = new Uint8Array(e.BLOCK_SIZE);
2891
2891
  return y.set(a), y;
2892
2892
  }
2893
- return tr;
2893
+ return er;
2894
2894
  }
2895
2895
  var ti;
2896
2896
  function Al() {
@@ -2910,22 +2910,22 @@ function We() {
2910
2910
  var xt, Rl = 244837814094590, ri = (Rl & 16777215) == 15715070;
2911
2911
  function El(t, e, r, n, i, l) {
2912
2912
  for (; --l >= 0; ) {
2913
- var d = e * this[t++] + r[n] + i;
2914
- i = Math.floor(d / 67108864), r[n++] = d & 67108863;
2913
+ var u = e * this[t++] + r[n] + i;
2914
+ i = Math.floor(u / 67108864), r[n++] = u & 67108863;
2915
2915
  }
2916
2916
  return i;
2917
2917
  }
2918
2918
  function Tl(t, e, r, n, i, l) {
2919
- for (var d = e & 32767, a = e >> 15; --l >= 0; ) {
2920
- var m = this[t] & 32767, y = this[t++] >> 15, _ = a * m + y * d;
2921
- m = d * m + ((_ & 32767) << 15) + r[n] + (i & 1073741823), i = (m >>> 30) + (_ >>> 15) + a * y + (i >>> 30), r[n++] = m & 1073741823;
2919
+ for (var u = e & 32767, a = e >> 15; --l >= 0; ) {
2920
+ var m = this[t] & 32767, y = this[t++] >> 15, _ = a * m + y * u;
2921
+ m = u * m + ((_ & 32767) << 15) + r[n] + (i & 1073741823), i = (m >>> 30) + (_ >>> 15) + a * y + (i >>> 30), r[n++] = m & 1073741823;
2922
2922
  }
2923
2923
  return i;
2924
2924
  }
2925
2925
  function $l(t, e, r, n, i, l) {
2926
- for (var d = e & 16383, a = e >> 14; --l >= 0; ) {
2927
- var m = this[t] & 16383, y = this[t++] >> 14, _ = a * m + y * d;
2928
- m = d * m + ((_ & 16383) << 14) + r[n] + i, i = (m >> 28) + (_ >> 14) + a * y, r[n++] = m & 268435455;
2926
+ for (var u = e & 16383, a = e >> 14; --l >= 0; ) {
2927
+ var m = this[t] & 16383, y = this[t++] >> 14, _ = a * m + y * u;
2928
+ m = u * m + ((_ & 16383) << 14) + r[n] + i, i = (m >> 28) + (_ >> 14) + a * y, r[n++] = m & 268435455;
2929
2929
  }
2930
2930
  return i;
2931
2931
  }
@@ -2938,13 +2938,13 @@ var Hn = 52;
2938
2938
  ge.prototype.FV = Math.pow(2, Hn);
2939
2939
  ge.prototype.F1 = Hn - xt;
2940
2940
  ge.prototype.F2 = 2 * xt - Hn;
2941
- var Nl = "0123456789abcdefghijklmnopqrstuvwxyz", zr = new Array(), Vt, tt;
2942
- Vt = 48;
2943
- for (tt = 0; tt <= 9; ++tt) zr[Vt++] = tt;
2944
- Vt = 97;
2945
- for (tt = 10; tt < 36; ++tt) zr[Vt++] = tt;
2946
- Vt = 65;
2947
- for (tt = 10; tt < 36; ++tt) zr[Vt++] = tt;
2941
+ var Nl = "0123456789abcdefghijklmnopqrstuvwxyz", zr = new Array(), qt, tt;
2942
+ qt = 48;
2943
+ for (tt = 0; tt <= 9; ++tt) zr[qt++] = tt;
2944
+ qt = 97;
2945
+ for (tt = 10; tt < 36; ++tt) zr[qt++] = tt;
2946
+ qt = 65;
2947
+ for (tt = 10; tt < 36; ++tt) zr[qt++] = tt;
2948
2948
  function oi(t) {
2949
2949
  return Nl.charAt(t);
2950
2950
  }
@@ -2973,12 +2973,12 @@ function Yl(t, e) {
2973
2973
  else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
2974
2974
  this.t = 0, this.s = 0;
2975
2975
  for (var n = t.length, i = !1, l = 0; --n >= 0; ) {
2976
- var d = Ll(t, n);
2977
- if (d < 0) {
2976
+ var u = Ll(t, n);
2977
+ if (u < 0) {
2978
2978
  t.charAt(n) == "-" && (i = !0);
2979
2979
  continue;
2980
2980
  }
2981
- i = !1, l == 0 ? this[this.t++] = d : l + r > this.DB ? (this[this.t - 1] |= (d & (1 << this.DB - l) - 1) << l, this[this.t++] = d >> this.DB - l) : this[this.t - 1] |= d << l, l += r, l >= this.DB && (l -= this.DB);
2981
+ i = !1, l == 0 ? this[this.t++] = u : l + r > this.DB ? (this[this.t - 1] |= (u & (1 << this.DB - l) - 1) << l, this[this.t++] = u >> this.DB - l) : this[this.t - 1] |= u << l, l += r, l >= this.DB && (l -= this.DB);
2982
2982
  }
2983
2983
  this.clamp(), i && ge.ZERO.subTo(this, this);
2984
2984
  }
@@ -2994,10 +2994,10 @@ function Fl(t) {
2994
2994
  else if (t == 32) e = 5;
2995
2995
  else if (t == 4) e = 2;
2996
2996
  else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
2997
- var r = (1 << e) - 1, n, i = !1, l = "", d = this.t, a = this.DB - d * this.DB % e;
2998
- if (d-- > 0)
2999
- for (a < this.DB && (n = this[d] >> a) > 0 && (i = !0, l = oi(n)); d >= 0; )
3000
- a < e ? (n = (this[d] & (1 << a) - 1) << e - a, n |= this[--d] >> (a += this.DB - e)) : (n = this[d] >> (a -= e) & r, a <= 0 && (a += this.DB, --d)), n > 0 && (i = !0), i && (l += oi(n));
2997
+ var r = (1 << e) - 1, n, i = !1, l = "", u = this.t, a = this.DB - u * this.DB % e;
2998
+ if (u-- > 0)
2999
+ for (a < this.DB && (n = this[u] >> a) > 0 && (i = !0, l = oi(n)); u >= 0; )
3000
+ a < e ? (n = (this[u] & (1 << a) - 1) << e - a, n |= this[--u] >> (a += this.DB - e)) : (n = this[u] >> (a -= e) & r, a <= 0 && (a += this.DB, --u)), n > 0 && (i = !0), i && (l += oi(n));
3001
3001
  return i ? l : "0";
3002
3002
  }
3003
3003
  function Wl() {
@@ -3033,11 +3033,11 @@ function Gl(t, e) {
3033
3033
  e.t = Math.max(this.t - t, 0), e.s = this.s;
3034
3034
  }
3035
3035
  function Ql(t, e) {
3036
- var r = t % this.DB, n = this.DB - r, i = (1 << n) - 1, l = Math.floor(t / this.DB), d = this.s << r & this.DM, a;
3036
+ var r = t % this.DB, n = this.DB - r, i = (1 << n) - 1, l = Math.floor(t / this.DB), u = this.s << r & this.DM, a;
3037
3037
  for (a = this.t - 1; a >= 0; --a)
3038
- e[a + l + 1] = this[a] >> n | d, d = (this[a] & i) << r;
3038
+ e[a + l + 1] = this[a] >> n | u, u = (this[a] & i) << r;
3039
3039
  for (a = l - 1; a >= 0; --a) e[a] = 0;
3040
- e[l] = d, e.t = this.t + l + 1, e.s = this.s, e.clamp();
3040
+ e[l] = u, e.t = this.t + l + 1, e.s = this.s, e.clamp();
3041
3041
  }
3042
3042
  function Zl(t, e) {
3043
3043
  e.s = this.s;
@@ -3048,8 +3048,8 @@ function Zl(t, e) {
3048
3048
  }
3049
3049
  var n = t % this.DB, i = this.DB - n, l = (1 << n) - 1;
3050
3050
  e[0] = this[r] >> n;
3051
- for (var d = r + 1; d < this.t; ++d)
3052
- e[d - r - 1] |= (this[d] & l) << i, e[d - r] = this[d] >> n;
3051
+ for (var u = r + 1; u < this.t; ++u)
3052
+ e[u - r - 1] |= (this[u] & l) << i, e[u - r] = this[u] >> n;
3053
3053
  n > 0 && (e[this.t - r - 1] |= (this.s & l) << i), e.t = this.t - r, e.clamp();
3054
3054
  }
3055
3055
  function Kl(t, e) {
@@ -3089,7 +3089,7 @@ function ec(t, e, r) {
3089
3089
  return;
3090
3090
  }
3091
3091
  r == null && (r = We());
3092
- var l = We(), d = this.s, a = t.s, m = this.DB - Qn(n[n.t - 1]);
3092
+ var l = We(), u = this.s, a = t.s, m = this.DB - Qn(n[n.t - 1]);
3093
3093
  m > 0 ? (n.lShiftTo(m, l), i.lShiftTo(m, r)) : (n.copyTo(l), i.copyTo(r));
3094
3094
  var y = l.t, _ = l[y - 1];
3095
3095
  if (_ != 0) {
@@ -3100,7 +3100,7 @@ function ec(t, e, r) {
3100
3100
  if ((r[j] += l.am(0, L, r, $, 0, y)) < L)
3101
3101
  for (l.dlShiftTo($, z), r.subTo(z, r); r[j] < --L; ) r.subTo(z, r);
3102
3102
  }
3103
- e != null && (r.drShiftTo(y, e), d != a && ge.ZERO.subTo(e, e)), r.t = y, r.clamp(), m > 0 && r.rShiftTo(m, r), d < 0 && ge.ZERO.subTo(r, r);
3103
+ e != null && (r.drShiftTo(y, e), u != a && ge.ZERO.subTo(e, e)), r.t = y, r.clamp(), m > 0 && r.rShiftTo(m, r), u < 0 && ge.ZERO.subTo(r, r);
3104
3104
  }
3105
3105
  }
3106
3106
  }
@@ -3148,7 +3148,7 @@ function lc(t) {
3148
3148
  var e = We();
3149
3149
  return this.divRemTo(t, e, null), e;
3150
3150
  }
3151
- function Ht(t) {
3151
+ function Vt(t) {
3152
3152
  this.m = t, this.mp = t.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t;
3153
3153
  }
3154
3154
  function cc(t) {
@@ -3175,20 +3175,20 @@ function hc(t, e) {
3175
3175
  function fc(t, e, r) {
3176
3176
  t.multiplyTo(e, r), this.reduce(r);
3177
3177
  }
3178
- Ht.prototype.convert = cc;
3179
- Ht.prototype.revert = uc;
3180
- Ht.prototype.reduce = dc;
3181
- Ht.prototype.mulTo = fc;
3182
- Ht.prototype.sqrTo = hc;
3178
+ Vt.prototype.convert = cc;
3179
+ Vt.prototype.revert = uc;
3180
+ Vt.prototype.reduce = dc;
3181
+ Vt.prototype.mulTo = fc;
3182
+ Vt.prototype.sqrTo = hc;
3183
3183
  function pc(t, e, r) {
3184
- var n = t.bitLength(), i, l = Gn(1), d = new Ht(e);
3184
+ var n = t.bitLength(), i, l = Gn(1), u = new Vt(e);
3185
3185
  if (n <= 0) return l;
3186
3186
  n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6;
3187
3187
  var a = new Array(), m = 3, y = i - 1, _ = (1 << i) - 1;
3188
- if (a[1] = d.convert(this), i > 1) {
3188
+ if (a[1] = u.convert(this), i > 1) {
3189
3189
  var O = We();
3190
- for (d.sqrTo(a[1], O); m <= _; )
3191
- a[m] = We(), d.mulTo(O, a[m - 2], a[m]), m += 2;
3190
+ for (u.sqrTo(a[1], O); m <= _; )
3191
+ a[m] = We(), u.mulTo(O, a[m - 2], a[m]), m += 2;
3192
3192
  }
3193
3193
  var S = t.t - 1, C, k = !0, j = We(), $;
3194
3194
  for (n = Qn(t[S]) - 1; S >= 0; ) {
@@ -3198,13 +3198,13 @@ function pc(t, e, r) {
3198
3198
  a[C].copyTo(l), k = !1;
3199
3199
  else {
3200
3200
  for (; m > 1; )
3201
- d.sqrTo(l, j), d.sqrTo(j, l), m -= 2;
3202
- m > 0 ? d.sqrTo(l, j) : ($ = l, l = j, j = $), d.mulTo(j, a[C], l);
3201
+ u.sqrTo(l, j), u.sqrTo(j, l), m -= 2;
3202
+ m > 0 ? u.sqrTo(l, j) : ($ = l, l = j, j = $), u.mulTo(j, a[C], l);
3203
3203
  }
3204
3204
  for (; S >= 0 && (t[S] & 1 << n) == 0; )
3205
- d.sqrTo(l, j), $ = l, l = j, j = $, --n < 0 && (n = this.DB - 1, --S);
3205
+ u.sqrTo(l, j), $ = l, l = j, j = $, --n < 0 && (n = this.DB - 1, --S);
3206
3206
  }
3207
- var z = d.revert(l);
3207
+ var z = u.revert(l);
3208
3208
  return r(null, z), z;
3209
3209
  }
3210
3210
  ge.prototype.copyTo = Il;
@@ -3237,7 +3237,7 @@ ge.ZERO = Gn(0);
3237
3237
  ge.ONE = Gn(1);
3238
3238
  function gc(t, e) {
3239
3239
  return e = e || {}, new Promise(function(r, n) {
3240
- var i = new XMLHttpRequest(), l = [], d = [], a = {}, m = function() {
3240
+ var i = new XMLHttpRequest(), l = [], u = [], a = {}, m = function() {
3241
3241
  return { ok: (i.status / 100 | 0) == 2, statusText: i.statusText, status: i.status, url: i.responseURL, text: function() {
3242
3242
  return Promise.resolve(i.responseText);
3243
3243
  }, json: function() {
@@ -3247,7 +3247,7 @@ function gc(t, e) {
3247
3247
  }, clone: m, headers: { keys: function() {
3248
3248
  return l;
3249
3249
  }, entries: function() {
3250
- return d;
3250
+ return u;
3251
3251
  }, get: function(_) {
3252
3252
  return a[_.toLowerCase()];
3253
3253
  }, has: function(_) {
@@ -3256,7 +3256,7 @@ function gc(t, e) {
3256
3256
  };
3257
3257
  for (var y in i.open(e.method || "get", t, !0), i.onload = function() {
3258
3258
  i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(_, O, S) {
3259
- l.push(O = O.toLowerCase()), d.push([O, S]), a[O] = a[O] ? a[O] + "," + S : S;
3259
+ l.push(O = O.toLowerCase()), u.push([O, S]), a[O] = a[O] ? a[O] + "," + S : S;
3260
3260
  }), r(m());
3261
3261
  }, i.onerror = n, i.withCredentials = e.credentials == "include", e.headers) i.setRequestHeader(y, e.headers[y]);
3262
3262
  i.send(e.body || null);
@@ -3285,24 +3285,24 @@ function vc() {
3285
3285
  }
3286
3286
  })(function() {
3287
3287
  function r() {
3288
- for (var l = 0, d = {}; l < arguments.length; l++) {
3288
+ for (var l = 0, u = {}; l < arguments.length; l++) {
3289
3289
  var a = arguments[l];
3290
3290
  for (var m in a)
3291
- d[m] = a[m];
3291
+ u[m] = a[m];
3292
3292
  }
3293
- return d;
3293
+ return u;
3294
3294
  }
3295
3295
  function n(l) {
3296
3296
  return l.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
3297
3297
  }
3298
3298
  function i(l) {
3299
- function d() {
3299
+ function u() {
3300
3300
  }
3301
3301
  function a(y, _, O) {
3302
3302
  if (!(typeof document > "u")) {
3303
3303
  O = r({
3304
3304
  path: "/"
3305
- }, d.defaults, O), typeof O.expires == "number" && (O.expires = new Date(/* @__PURE__ */ new Date() * 1 + O.expires * 864e5)), O.expires = O.expires ? O.expires.toUTCString() : "";
3305
+ }, u.defaults, O), typeof O.expires == "number" && (O.expires = new Date(/* @__PURE__ */ new Date() * 1 + O.expires * 864e5)), O.expires = O.expires ? O.expires.toUTCString() : "";
3306
3306
  try {
3307
3307
  var S = JSON.stringify(_);
3308
3308
  /^[\{\[]/.test(S) && (_ = S);
@@ -3335,23 +3335,23 @@ function vc() {
3335
3335
  return y ? O[y] : O;
3336
3336
  }
3337
3337
  }
3338
- return d.set = a, d.get = function(y) {
3338
+ return u.set = a, u.get = function(y) {
3339
3339
  return m(
3340
3340
  y,
3341
3341
  !1
3342
3342
  /* read as raw */
3343
3343
  );
3344
- }, d.getJSON = function(y) {
3344
+ }, u.getJSON = function(y) {
3345
3345
  return m(
3346
3346
  y,
3347
3347
  !0
3348
3348
  /* read as json */
3349
3349
  );
3350
- }, d.remove = function(y, _) {
3350
+ }, u.remove = function(y, _) {
3351
3351
  a(y, "", r(_, {
3352
3352
  expires: -1
3353
3353
  }));
3354
- }, d.defaults = {}, d.withConverter = i, d;
3354
+ }, u.defaults = {}, u.withConverter = i, u;
3355
3355
  }
3356
3356
  return i(function() {
3357
3357
  });
@@ -3433,17 +3433,17 @@ function Ec() {
3433
3433
  (function(r, n) {
3434
3434
  t.exports = n();
3435
3435
  })(Rc, () => (() => {
3436
- var r = { 873: (d, a) => {
3436
+ var r = { 873: (u, a) => {
3437
3437
  var m, y, _ = (function() {
3438
3438
  var O = function(P, x) {
3439
- var w = P, h = z[x], s = null, p = 0, f = null, u = [], v = {}, D = function(A, N) {
3439
+ var w = P, h = z[x], s = null, p = 0, f = null, d = [], v = {}, D = function(A, N) {
3440
3440
  s = (function(E) {
3441
3441
  for (var B = new Array(E), I = 0; I < E; I += 1) {
3442
3442
  B[I] = new Array(E);
3443
3443
  for (var le = 0; le < E; le += 1) B[I][le] = null;
3444
3444
  }
3445
3445
  return B;
3446
- })(p = 4 * w + 17), R(0, 0), R(p - 7, 0), R(0, p - 7), K(), U(), J(A, N), w >= 7 && ee(A), f == null && (f = oe(w, h, u)), ie(f, N);
3446
+ })(p = 4 * w + 17), R(0, 0), R(p - 7, 0), R(0, p - 7), K(), U(), J(A, N), w >= 7 && ee(A), f == null && (f = oe(w, h, d)), ie(f, N);
3447
3447
  }, R = function(A, N) {
3448
3448
  for (var E = -1; E <= 7; E += 1) if (!(A + E <= -1 || p <= A + E)) for (var B = -1; B <= 7; B += 1) N + B <= -1 || p <= N + B || (s[A + E][N + B] = 0 <= E && E <= 6 && (B == 0 || B == 6) || 0 <= B && B <= 6 && (E == 0 || E == 6) || 2 <= E && E <= 4 && 2 <= B && B <= 4);
3449
3449
  }, U = function() {
@@ -3526,7 +3526,7 @@ function Ec() {
3526
3526
  default:
3527
3527
  throw "mode:" + N;
3528
3528
  }
3529
- u.push(E), f = null;
3529
+ d.push(E), f = null;
3530
3530
  }, v.isDark = function(A, N) {
3531
3531
  if (A < 0 || p <= A || N < 0 || p <= N) throw A + "," + N;
3532
3532
  return s[A][N];
@@ -3535,8 +3535,8 @@ function Ec() {
3535
3535
  }, v.make = function() {
3536
3536
  if (w < 1) {
3537
3537
  for (var A = 1; A < 40; A++) {
3538
- for (var N = X.getRSBlocks(A, h), E = re(), B = 0; B < u.length; B++) {
3539
- var I = u[B];
3538
+ for (var N = X.getRSBlocks(A, h), E = re(), B = 0; B < d.length; B++) {
3539
+ var I = d[B];
3540
3540
  E.put(I.getMode(), 4), E.put(I.getLength(), L.getLengthInBits(I.getMode(), A)), I.write(E);
3541
3541
  }
3542
3542
  var le = 0;
@@ -3642,19 +3642,19 @@ function Ec() {
3642
3642
  var U = s.read();
3643
3643
  if (U == -1) throw "eof";
3644
3644
  return U;
3645
- }, f = 0, u = {}; ; ) {
3645
+ }, f = 0, d = {}; ; ) {
3646
3646
  var v = s.read();
3647
3647
  if (v == -1) break;
3648
3648
  var D = p(), R = p() << 8 | p();
3649
- u[String.fromCharCode(v << 8 | D)] = R, f += 1;
3649
+ d[String.fromCharCode(v << 8 | D)] = R, f += 1;
3650
3650
  }
3651
3651
  if (f != x) throw f + " != " + x;
3652
- return u;
3652
+ return d;
3653
3653
  })(), h = 63;
3654
3654
  return function(s) {
3655
3655
  for (var p = [], f = 0; f < s.length; f += 1) {
3656
- var u = s.charCodeAt(f);
3657
- if (u < 128) p.push(u);
3656
+ var d = s.charCodeAt(f);
3657
+ if (d < 128) p.push(d);
3658
3658
  else {
3659
3659
  var v = w[s.charAt(f)];
3660
3660
  typeof v == "number" ? (255 & v) == v ? p.push(v) : (p.push(v >>> 8), p.push(255 & v)) : p.push(h);
@@ -3755,7 +3755,7 @@ function Ec() {
3755
3755
  }
3756
3756
  }, j.getLostPoint = function(P) {
3757
3757
  for (var x = P.getModuleCount(), w = 0, h = 0; h < x; h += 1) for (var s = 0; s < x; s += 1) {
3758
- for (var p = 0, f = P.isDark(h, s), u = -1; u <= 1; u += 1) if (!(h + u < 0 || x <= h + u)) for (var v = -1; v <= 1; v += 1) s + v < 0 || x <= s + v || u == 0 && v == 0 || f == P.isDark(h + u, s + v) && (p += 1);
3758
+ for (var p = 0, f = P.isDark(h, s), d = -1; d <= 1; d += 1) if (!(h + d < 0 || x <= h + d)) for (var v = -1; v <= 1; v += 1) s + v < 0 || x <= s + v || d == 0 && v == 0 || f == P.isDark(h + d, s + v) && (p += 1);
3759
3759
  p > 5 && (w += 3 + p - 5);
3760
3760
  }
3761
3761
  for (h = 0; h < x - 1; h += 1) for (s = 0; s < x - 1; s += 1) {
@@ -3791,12 +3791,12 @@ function Ec() {
3791
3791
  }, getLength: function() {
3792
3792
  return w.length;
3793
3793
  }, multiply: function(s) {
3794
- for (var p = new Array(h.getLength() + s.getLength() - 1), f = 0; f < h.getLength(); f += 1) for (var u = 0; u < s.getLength(); u += 1) p[f + u] ^= V.gexp(V.glog(h.getAt(f)) + V.glog(s.getAt(u)));
3794
+ for (var p = new Array(h.getLength() + s.getLength() - 1), f = 0; f < h.getLength(); f += 1) for (var d = 0; d < s.getLength(); d += 1) p[f + d] ^= V.gexp(V.glog(h.getAt(f)) + V.glog(s.getAt(d)));
3795
3795
  return F(p, 0);
3796
3796
  }, mod: function(s) {
3797
3797
  if (h.getLength() - s.getLength() < 0) return h;
3798
- for (var p = V.glog(h.getAt(0)) - V.glog(s.getAt(0)), f = new Array(h.getLength()), u = 0; u < h.getLength(); u += 1) f[u] = h.getAt(u);
3799
- for (u = 0; u < s.getLength(); u += 1) f[u] ^= V.gexp(V.glog(s.getAt(u)) + p);
3798
+ for (var p = V.glog(h.getAt(0)) - V.glog(s.getAt(0)), f = new Array(h.getLength()), d = 0; d < h.getLength(); d += 1) f[d] = h.getAt(d);
3799
+ for (d = 0; d < s.getLength(); d += 1) f[d] ^= V.gexp(V.glog(s.getAt(d)) + p);
3800
3800
  return F(f, 0).mod(s);
3801
3801
  } };
3802
3802
  return h;
@@ -3821,8 +3821,8 @@ function Ec() {
3821
3821
  }
3822
3822
  })(h, s);
3823
3823
  if (p === void 0) throw "bad rs block @ typeNumber:" + h + "/errorCorrectionLevel:" + s;
3824
- for (var f = p.length / 3, u = [], v = 0; v < f; v += 1) for (var D = p[3 * v + 0], R = p[3 * v + 1], U = p[3 * v + 2], K = 0; K < D; K += 1) u.push(x(R, U));
3825
- return u;
3824
+ for (var f = p.length / 3, d = [], v = 0; v < f; v += 1) for (var D = p[3 * v + 0], R = p[3 * v + 1], U = p[3 * v + 2], K = 0; K < D; K += 1) d.push(x(R, U));
3825
+ return d;
3826
3826
  } };
3827
3827
  return w;
3828
3828
  })(), re = function() {
@@ -3846,10 +3846,10 @@ function Ec() {
3846
3846
  }, getLength: function(p) {
3847
3847
  return x.length;
3848
3848
  }, write: function(p) {
3849
- for (var f = x, u = 0; u + 2 < f.length; ) p.put(h(f.substring(u, u + 3)), 10), u += 3;
3850
- u < f.length && (f.length - u == 1 ? p.put(h(f.substring(u, u + 1)), 4) : f.length - u == 2 && p.put(h(f.substring(u, u + 2)), 7));
3849
+ for (var f = x, d = 0; d + 2 < f.length; ) p.put(h(f.substring(d, d + 3)), 10), d += 3;
3850
+ d < f.length && (f.length - d == 1 ? p.put(h(f.substring(d, d + 1)), 4) : f.length - d == 2 && p.put(h(f.substring(d, d + 2)), 7));
3851
3851
  } }, h = function(p) {
3852
- for (var f = 0, u = 0; u < p.length; u += 1) f = 10 * f + s(p.charAt(u));
3852
+ for (var f = 0, d = 0; d < p.length; d += 1) f = 10 * f + s(p.charAt(d));
3853
3853
  return f;
3854
3854
  }, s = function(p) {
3855
3855
  if ("0" <= p && p <= "9") return p.charCodeAt(0) - 48;
@@ -3913,13 +3913,13 @@ function Ec() {
3913
3913
  return ~~(w.length / 2);
3914
3914
  }, write: function(s) {
3915
3915
  for (var p = w, f = 0; f + 1 < p.length; ) {
3916
- var u = (255 & p[f]) << 8 | 255 & p[f + 1];
3917
- if (33088 <= u && u <= 40956) u -= 33088;
3916
+ var d = (255 & p[f]) << 8 | 255 & p[f + 1];
3917
+ if (33088 <= d && d <= 40956) d -= 33088;
3918
3918
  else {
3919
- if (!(57408 <= u && u <= 60351)) throw "illegal char at " + (f + 1) + "/" + u;
3920
- u -= 49472;
3919
+ if (!(57408 <= d && d <= 60351)) throw "illegal char at " + (f + 1) + "/" + d;
3920
+ d -= 49472;
3921
3921
  }
3922
- u = 192 * (u >>> 8 & 255) + (255 & u), s.put(u, 13), f += 2;
3922
+ d = 192 * (d >>> 8 & 255) + (255 & d), s.put(d, 13), f += 2;
3923
3923
  }
3924
3924
  if (f < p.length) throw "illegal char at " + (f + 1);
3925
3925
  } };
@@ -3950,19 +3950,19 @@ function Ec() {
3950
3950
  if (s == 0) return -1;
3951
3951
  throw "unexpected end of file./" + s;
3952
3952
  }
3953
- var u = x.charAt(w);
3954
- if (w += 1, u == "=") return s = 0, -1;
3955
- u.match(/^\s$/) || (h = h << 6 | f(u.charCodeAt(0)), s += 6);
3953
+ var d = x.charAt(w);
3954
+ if (w += 1, d == "=") return s = 0, -1;
3955
+ d.match(/^\s$/) || (h = h << 6 | f(d.charCodeAt(0)), s += 6);
3956
3956
  }
3957
3957
  var v = h >>> s - 8 & 255;
3958
3958
  return s -= 8, v;
3959
- } }, f = function(u) {
3960
- if (65 <= u && u <= 90) return u - 65;
3961
- if (97 <= u && u <= 122) return u - 97 + 26;
3962
- if (48 <= u && u <= 57) return u - 48 + 52;
3963
- if (u == 43) return 62;
3964
- if (u == 47) return 63;
3965
- throw "c:" + u;
3959
+ } }, f = function(d) {
3960
+ if (65 <= d && d <= 90) return d - 65;
3961
+ if (97 <= d && d <= 122) return d - 97 + 26;
3962
+ if (48 <= d && d <= 57) return d - 48 + 52;
3963
+ if (d == 43) return 62;
3964
+ if (d == 47) return 63;
3965
+ throw "c:" + d;
3966
3966
  };
3967
3967
  return p;
3968
3968
  }, te = function(P, x, w) {
@@ -4009,7 +4009,7 @@ function Ec() {
4009
4009
  })(P, x), s = 0; s < x; s += 1) for (var p = 0; p < P; p += 1) h.setPixel(p, s, w(p, s));
4010
4010
  var f = Z();
4011
4011
  h.write(f);
4012
- for (var u = (function() {
4012
+ for (var d = (function() {
4013
4013
  var R = 0, U = 0, K = 0, ee = "", J = {}, ie = function(ae) {
4014
4014
  ee += String.fromCharCode(oe(63 & ae));
4015
4015
  }, oe = function(ae) {
@@ -4029,8 +4029,8 @@ function Ec() {
4029
4029
  }, J.toString = function() {
4030
4030
  return ee;
4031
4031
  }, J;
4032
- })(), v = f.toByteArray(), D = 0; D < v.length; D += 1) u.writeByte(v[D]);
4033
- return u.flush(), "data:image/gif;base64," + u;
4032
+ })(), v = f.toByteArray(), D = 0; D < v.length; D += 1) d.writeByte(v[D]);
4033
+ return d.flush(), "data:image/gif;base64," + d;
4034
4034
  };
4035
4035
  return O;
4036
4036
  })();
@@ -4044,30 +4044,30 @@ function Ec() {
4044
4044
  })(O);
4045
4045
  }, (y = typeof (m = function() {
4046
4046
  return _;
4047
- }) == "function" ? m.apply(a, []) : m) === void 0 || (d.exports = y);
4047
+ }) == "function" ? m.apply(a, []) : m) === void 0 || (u.exports = y);
4048
4048
  } }, n = {};
4049
- function i(d) {
4050
- var a = n[d];
4049
+ function i(u) {
4050
+ var a = n[u];
4051
4051
  if (a !== void 0) return a.exports;
4052
- var m = n[d] = { exports: {} };
4053
- return r[d](m, m.exports, i), m.exports;
4052
+ var m = n[u] = { exports: {} };
4053
+ return r[u](m, m.exports, i), m.exports;
4054
4054
  }
4055
- i.n = (d) => {
4056
- var a = d && d.__esModule ? () => d.default : () => d;
4055
+ i.n = (u) => {
4056
+ var a = u && u.__esModule ? () => u.default : () => u;
4057
4057
  return i.d(a, { a }), a;
4058
- }, i.d = (d, a) => {
4059
- for (var m in a) i.o(a, m) && !i.o(d, m) && Object.defineProperty(d, m, { enumerable: !0, get: a[m] });
4060
- }, i.o = (d, a) => Object.prototype.hasOwnProperty.call(d, a);
4058
+ }, i.d = (u, a) => {
4059
+ for (var m in a) i.o(a, m) && !i.o(u, m) && Object.defineProperty(u, m, { enumerable: !0, get: a[m] });
4060
+ }, i.o = (u, a) => Object.prototype.hasOwnProperty.call(u, a);
4061
4061
  var l = {};
4062
4062
  return (() => {
4063
4063
  i.d(l, { default: () => x });
4064
- const d = (w) => !!w && typeof w == "object" && !Array.isArray(w);
4064
+ const u = (w) => !!w && typeof w == "object" && !Array.isArray(w);
4065
4065
  function a(w, ...h) {
4066
4066
  if (!h.length) return w;
4067
4067
  const s = h.shift();
4068
- return s !== void 0 && d(w) && d(s) ? (w = Object.assign({}, w), Object.keys(s).forEach((p) => {
4069
- const f = w[p], u = s[p];
4070
- Array.isArray(f) && Array.isArray(u) ? w[p] = u : d(f) && d(u) ? w[p] = a(Object.assign({}, f), u) : w[p] = u;
4068
+ return s !== void 0 && u(w) && u(s) ? (w = Object.assign({}, w), Object.keys(s).forEach((p) => {
4069
+ const f = w[p], d = s[p];
4070
+ Array.isArray(f) && Array.isArray(d) ? w[p] = d : u(f) && u(d) ? w[p] = a(Object.assign({}, f), d) : w[p] = d;
4071
4071
  }), a(w, ...h)) : w;
4072
4072
  }
4073
4073
  function m(w, h) {
@@ -4080,32 +4080,32 @@ function Ec() {
4080
4080
  this._svg = h, this._type = s, this._window = p;
4081
4081
  }
4082
4082
  draw(h, s, p, f) {
4083
- let u;
4083
+ let d;
4084
4084
  switch (this._type) {
4085
4085
  case "dots":
4086
- u = this._drawDot;
4086
+ d = this._drawDot;
4087
4087
  break;
4088
4088
  case "classy":
4089
- u = this._drawClassy;
4089
+ d = this._drawClassy;
4090
4090
  break;
4091
4091
  case "classy-rounded":
4092
- u = this._drawClassyRounded;
4092
+ d = this._drawClassyRounded;
4093
4093
  break;
4094
4094
  case "rounded":
4095
- u = this._drawRounded;
4095
+ d = this._drawRounded;
4096
4096
  break;
4097
4097
  case "extra-rounded":
4098
- u = this._drawExtraRounded;
4098
+ d = this._drawExtraRounded;
4099
4099
  break;
4100
4100
  default:
4101
- u = this._drawSquare;
4101
+ d = this._drawSquare;
4102
4102
  }
4103
- u.call(this, { x: h, y: s, size: p, getNeighbor: f });
4103
+ d.call(this, { x: h, y: s, size: p, getNeighbor: f });
4104
4104
  }
4105
- _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: u }) {
4105
+ _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: d }) {
4106
4106
  var v;
4107
4107
  const D = h + p / 2, R = s + p / 2;
4108
- u(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4108
+ d(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4109
4109
  }
4110
4110
  _basicDot(h) {
4111
4111
  const { size: s, x: p, y: f } = h;
@@ -4150,12 +4150,12 @@ function Ec() {
4150
4150
  this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4151
4151
  }
4152
4152
  _drawRounded({ x: h, y: s, size: p, getNeighbor: f }) {
4153
- const u = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, U = u + v + D + R;
4154
- if (U !== 0) if (U > 2 || u && v || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4153
+ const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, U = d + v + D + R;
4154
+ if (U !== 0) if (U > 2 || d && v || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4155
4155
  else {
4156
4156
  if (U === 2) {
4157
4157
  let K = 0;
4158
- return u && D ? K = Math.PI / 2 : D && v ? K = Math.PI : v && R && (K = -Math.PI / 2), void this._basicCornerRounded({ x: h, y: s, size: p, rotation: K });
4158
+ return d && D ? K = Math.PI / 2 : D && v ? K = Math.PI : v && R && (K = -Math.PI / 2), void this._basicCornerRounded({ x: h, y: s, size: p, rotation: K });
4159
4159
  }
4160
4160
  if (U === 1) {
4161
4161
  let K = 0;
@@ -4165,12 +4165,12 @@ function Ec() {
4165
4165
  else this._basicDot({ x: h, y: s, size: p, rotation: 0 });
4166
4166
  }
4167
4167
  _drawExtraRounded({ x: h, y: s, size: p, getNeighbor: f }) {
4168
- const u = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, U = u + v + D + R;
4169
- if (U !== 0) if (U > 2 || u && v || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4168
+ const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0, U = d + v + D + R;
4169
+ if (U !== 0) if (U > 2 || d && v || D && R) this._basicSquare({ x: h, y: s, size: p, rotation: 0 });
4170
4170
  else {
4171
4171
  if (U === 2) {
4172
4172
  let K = 0;
4173
- return u && D ? K = Math.PI / 2 : D && v ? K = Math.PI : v && R && (K = -Math.PI / 2), void this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: K });
4173
+ return d && D ? K = Math.PI / 2 : D && v ? K = Math.PI : v && R && (K = -Math.PI / 2), void this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: K });
4174
4174
  }
4175
4175
  if (U === 1) {
4176
4176
  let K = 0;
@@ -4180,12 +4180,12 @@ function Ec() {
4180
4180
  else this._basicDot({ x: h, y: s, size: p, rotation: 0 });
4181
4181
  }
4182
4182
  _drawClassy({ x: h, y: s, size: p, getNeighbor: f }) {
4183
- const u = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4184
- u + v + D + R !== 0 ? u || D ? v || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4183
+ const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4184
+ d + v + D + R !== 0 ? d || D ? v || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4185
4185
  }
4186
4186
  _drawClassyRounded({ x: h, y: s, size: p, getNeighbor: f }) {
4187
- const u = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4188
- u + v + D + R !== 0 ? u || D ? v || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4187
+ const d = f ? +f(-1, 0) : 0, v = f ? +f(1, 0) : 0, D = f ? +f(0, -1) : 0, R = f ? +f(0, 1) : 0;
4188
+ d + v + D + R !== 0 ? d || D ? v || R ? this._basicSquare({ x: h, y: s, size: p, rotation: 0 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: h, y: s, size: p, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: h, y: s, size: p, rotation: Math.PI / 2 });
4189
4189
  }
4190
4190
  }
4191
4191
  const O = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, S = Object.values(O);
@@ -4194,40 +4194,40 @@ function Ec() {
4194
4194
  this._svg = h, this._type = s, this._window = p;
4195
4195
  }
4196
4196
  draw(h, s, p, f) {
4197
- let u;
4197
+ let d;
4198
4198
  switch (this._type) {
4199
4199
  case O.square:
4200
- u = this._drawSquare;
4200
+ d = this._drawSquare;
4201
4201
  break;
4202
4202
  case O.extraRounded:
4203
- u = this._drawExtraRounded;
4203
+ d = this._drawExtraRounded;
4204
4204
  break;
4205
4205
  default:
4206
- u = this._drawDot;
4206
+ d = this._drawDot;
4207
4207
  }
4208
- u.call(this, { x: h, y: s, size: p, rotation: f });
4208
+ d.call(this, { x: h, y: s, size: p, rotation: f });
4209
4209
  }
4210
- _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: u }) {
4210
+ _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: d }) {
4211
4211
  var v;
4212
4212
  const D = h + p / 2, R = s + p / 2;
4213
- u(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4213
+ d(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4214
4214
  }
4215
4215
  _basicDot(h) {
4216
- const { size: s, x: p, y: f } = h, u = s / 7;
4216
+ const { size: s, x: p, y: f } = h, d = s / 7;
4217
4217
  this._rotateFigure(Object.assign(Object.assign({}, h), { draw: () => {
4218
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${p + s / 2} ${f}a ${s / 2} ${s / 2} 0 1 0 0.1 0zm 0 ${u}a ${s / 2 - u} ${s / 2 - u} 0 1 1 -0.1 0Z`);
4218
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${p + s / 2} ${f}a ${s / 2} ${s / 2} 0 1 0 0.1 0zm 0 ${d}a ${s / 2 - d} ${s / 2 - d} 0 1 1 -0.1 0Z`);
4219
4219
  } }));
4220
4220
  }
4221
4221
  _basicSquare(h) {
4222
- const { size: s, x: p, y: f } = h, u = s / 7;
4222
+ const { size: s, x: p, y: f } = h, d = s / 7;
4223
4223
  this._rotateFigure(Object.assign(Object.assign({}, h), { draw: () => {
4224
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${p} ${f}v ${s}h ${s}v ` + -s + `zM ${p + u} ${f + u}h ` + (s - 2 * u) + "v " + (s - 2 * u) + "h " + (2 * u - s) + "z");
4224
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${p} ${f}v ${s}h ${s}v ` + -s + `zM ${p + d} ${f + d}h ` + (s - 2 * d) + "v " + (s - 2 * d) + "h " + (2 * d - s) + "z");
4225
4225
  } }));
4226
4226
  }
4227
4227
  _basicExtraRounded(h) {
4228
- const { size: s, x: p, y: f } = h, u = s / 7;
4228
+ const { size: s, x: p, y: f } = h, d = s / 7;
4229
4229
  this._rotateFigure(Object.assign(Object.assign({}, h), { draw: () => {
4230
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${p} ${f + 2.5 * u}v ` + 2 * u + `a ${2.5 * u} ${2.5 * u}, 0, 0, 0, ${2.5 * u} ${2.5 * u}h ` + 2 * u + `a ${2.5 * u} ${2.5 * u}, 0, 0, 0, ${2.5 * u} ${2.5 * -u}v ` + -2 * u + `a ${2.5 * u} ${2.5 * u}, 0, 0, 0, ${2.5 * -u} ${2.5 * -u}h ` + -2 * u + `a ${2.5 * u} ${2.5 * u}, 0, 0, 0, ${2.5 * -u} ${2.5 * u}M ${p + 2.5 * u} ${f + u}h ` + 2 * u + `a ${1.5 * u} ${1.5 * u}, 0, 0, 1, ${1.5 * u} ${1.5 * u}v ` + 2 * u + `a ${1.5 * u} ${1.5 * u}, 0, 0, 1, ${1.5 * -u} ${1.5 * u}h ` + -2 * u + `a ${1.5 * u} ${1.5 * u}, 0, 0, 1, ${1.5 * -u} ${1.5 * -u}v ` + -2 * u + `a ${1.5 * u} ${1.5 * u}, 0, 0, 1, ${1.5 * u} ${1.5 * -u}`);
4230
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${p} ${f + 2.5 * d}v ` + 2 * d + `a ${2.5 * d} ${2.5 * d}, 0, 0, 0, ${2.5 * d} ${2.5 * d}h ` + 2 * d + `a ${2.5 * d} ${2.5 * d}, 0, 0, 0, ${2.5 * d} ${2.5 * -d}v ` + -2 * d + `a ${2.5 * d} ${2.5 * d}, 0, 0, 0, ${2.5 * -d} ${2.5 * -d}h ` + -2 * d + `a ${2.5 * d} ${2.5 * d}, 0, 0, 0, ${2.5 * -d} ${2.5 * d}M ${p + 2.5 * d} ${f + d}h ` + 2 * d + `a ${1.5 * d} ${1.5 * d}, 0, 0, 1, ${1.5 * d} ${1.5 * d}v ` + 2 * d + `a ${1.5 * d} ${1.5 * d}, 0, 0, 1, ${1.5 * -d} ${1.5 * d}h ` + -2 * d + `a ${1.5 * d} ${1.5 * d}, 0, 0, 1, ${1.5 * -d} ${1.5 * -d}v ` + -2 * d + `a ${1.5 * d} ${1.5 * d}, 0, 0, 1, ${1.5 * d} ${1.5 * -d}`);
4231
4231
  } }));
4232
4232
  }
4233
4233
  _drawDot({ x: h, y: s, size: p, rotation: f }) {
@@ -4246,13 +4246,13 @@ function Ec() {
4246
4246
  this._svg = h, this._type = s, this._window = p;
4247
4247
  }
4248
4248
  draw(h, s, p, f) {
4249
- let u;
4250
- u = this._type === k.square ? this._drawSquare : this._drawDot, u.call(this, { x: h, y: s, size: p, rotation: f });
4249
+ let d;
4250
+ d = this._type === k.square ? this._drawSquare : this._drawDot, d.call(this, { x: h, y: s, size: p, rotation: f });
4251
4251
  }
4252
- _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: u }) {
4252
+ _rotateFigure({ x: h, y: s, size: p, rotation: f = 0, draw: d }) {
4253
4253
  var v;
4254
4254
  const D = h + p / 2, R = s + p / 2;
4255
- u(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4255
+ d(), (v = this._element) === null || v === void 0 || v.setAttribute("transform", `rotate(${180 * f / Math.PI},${D},${R})`);
4256
4256
  }
4257
4257
  _basicDot(h) {
4258
4258
  const { size: s, x: p, y: f } = h;
@@ -4288,7 +4288,7 @@ function Ec() {
4288
4288
  return this._element;
4289
4289
  }
4290
4290
  async drawQR(h) {
4291
- const s = h.getModuleCount(), p = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === z ? p / Math.sqrt(2) : p, u = this._roundSize(f / s);
4291
+ const s = h.getModuleCount(), p = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === z ? p / Math.sqrt(2) : p, d = this._roundSize(f / s);
4292
4292
  let v = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
4293
4293
  if (this._qr = h, this._options.image) {
4294
4294
  if (await this.loadImage(), !this._image) return;
@@ -4298,38 +4298,38 @@ function Ec() {
4298
4298
  if (ee <= 0 || J <= 0 || ie <= 0 || ae <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
4299
4299
  const E = ee / J;
4300
4300
  return A.x = Math.floor(Math.sqrt(ie / E)), A.x <= 0 && (A.x = 1), oe && oe < A.x && (A.x = oe), A.x % 2 == 0 && A.x--, N.x = A.x * ae, A.y = 1 + 2 * Math.ceil((A.x * E - 1) / 2), N.y = Math.round(N.x * E), (A.y * A.x > ie || oe && oe < A.y) && (oe && oe < A.y ? (A.y = oe, A.y % 2 == 0 && A.x--) : A.y -= 2, N.y = A.y * ae, A.x = 1 + 2 * Math.ceil((A.y / E - 1) / 2), N.x = Math.round(N.y / E)), { height: N.y, width: N.x, hideYDots: A.y, hideXDots: A.x };
4301
- })({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: K, maxHiddenAxisDots: s - 14, dotSize: u });
4301
+ })({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: K, maxHiddenAxisDots: s - 14, dotSize: d });
4302
4302
  }
4303
4303
  this.drawBackground(), this.drawDots((D, R) => {
4304
4304
  var U, K, ee, J, ie, oe;
4305
4305
  return !(this._options.imageOptions.hideBackgroundDots && D >= (s - v.hideYDots) / 2 && D < (s + v.hideYDots) / 2 && R >= (s - v.hideXDots) / 2 && R < (s + v.hideXDots) / 2 || !((U = L[D]) === null || U === void 0) && U[R] || !((K = L[D - s + 7]) === null || K === void 0) && K[R] || !((ee = L[D]) === null || ee === void 0) && ee[R - s + 7] || !((J = V[D]) === null || J === void 0) && J[R] || !((ie = V[D - s + 7]) === null || ie === void 0) && ie[R] || !((oe = V[D]) === null || oe === void 0) && oe[R - s + 7]);
4306
- }), this.drawCorners(), this._options.image && await this.drawImage({ width: v.width, height: v.height, count: s, dotSize: u });
4306
+ }), this.drawCorners(), this._options.image && await this.drawImage({ width: v.width, height: v.height, count: s, dotSize: d });
4307
4307
  }
4308
4308
  drawBackground() {
4309
4309
  var h, s, p;
4310
- const f = this._element, u = this._options;
4310
+ const f = this._element, d = this._options;
4311
4311
  if (f) {
4312
- const v = (h = u.backgroundOptions) === null || h === void 0 ? void 0 : h.gradient, D = (s = u.backgroundOptions) === null || s === void 0 ? void 0 : s.color;
4313
- let R = u.height, U = u.width;
4312
+ const v = (h = d.backgroundOptions) === null || h === void 0 ? void 0 : h.gradient, D = (s = d.backgroundOptions) === null || s === void 0 ? void 0 : s.color;
4313
+ let R = d.height, U = d.width;
4314
4314
  if (v || D) {
4315
4315
  const K = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4316
- this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((p = u.backgroundOptions) === null || p === void 0) && p.round && (R = U = Math.min(u.width, u.height), K.setAttribute("rx", String(R / 2 * u.backgroundOptions.round))), K.setAttribute("x", String(this._roundSize((u.width - U) / 2))), K.setAttribute("y", String(this._roundSize((u.height - R) / 2))), K.setAttribute("width", String(U)), K.setAttribute("height", String(R)), this._backgroundClipPath.appendChild(K), this._createColor({ options: v, color: D, additionalRotation: 0, x: 0, y: 0, height: u.height, width: u.width, name: `background-color-${this._instanceId}` });
4316
+ this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), !((p = d.backgroundOptions) === null || p === void 0) && p.round && (R = U = Math.min(d.width, d.height), K.setAttribute("rx", String(R / 2 * d.backgroundOptions.round))), K.setAttribute("x", String(this._roundSize((d.width - U) / 2))), K.setAttribute("y", String(this._roundSize((d.height - R) / 2))), K.setAttribute("width", String(U)), K.setAttribute("height", String(R)), this._backgroundClipPath.appendChild(K), this._createColor({ options: v, color: D, additionalRotation: 0, x: 0, y: 0, height: d.height, width: d.width, name: `background-color-${this._instanceId}` });
4317
4317
  }
4318
4318
  }
4319
4319
  }
4320
4320
  drawDots(h) {
4321
4321
  var s, p;
4322
4322
  if (!this._qr) throw "QR code is not defined";
4323
- const f = this._options, u = this._qr.getModuleCount();
4324
- if (u > f.width || u > f.height) throw "The canvas is too small.";
4325
- const v = Math.min(f.width, f.height) - 2 * f.margin, D = f.shape === z ? v / Math.sqrt(2) : v, R = this._roundSize(D / u), U = this._roundSize((f.width - u * R) / 2), K = this._roundSize((f.height - u * R) / 2), ee = new _({ svg: this._element, type: f.dotsOptions.type, window: this._window });
4323
+ const f = this._options, d = this._qr.getModuleCount();
4324
+ if (d > f.width || d > f.height) throw "The canvas is too small.";
4325
+ const v = Math.min(f.width, f.height) - 2 * f.margin, D = f.shape === z ? v / Math.sqrt(2) : v, R = this._roundSize(D / d), U = this._roundSize((f.width - d * R) / 2), K = this._roundSize((f.height - d * R) / 2), ee = new _({ svg: this._element, type: f.dotsOptions.type, window: this._window });
4326
4326
  this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (s = f.dotsOptions) === null || s === void 0 ? void 0 : s.gradient, color: f.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: f.height, width: f.width, name: `dot-color-${this._instanceId}` });
4327
- for (let J = 0; J < u; J++) for (let ie = 0; ie < u; ie++) h && !h(J, ie) || !((p = this._qr) === null || p === void 0) && p.isDark(J, ie) && (ee.draw(U + ie * R, K + J * R, R, (oe, ae) => !(ie + oe < 0 || J + ae < 0 || ie + oe >= u || J + ae >= u) && !(h && !h(J + ae, ie + oe)) && !!this._qr && this._qr.isDark(J + ae, ie + oe)), ee._element && this._dotsClipPath && this._dotsClipPath.appendChild(ee._element));
4327
+ for (let J = 0; J < d; J++) for (let ie = 0; ie < d; ie++) h && !h(J, ie) || !((p = this._qr) === null || p === void 0) && p.isDark(J, ie) && (ee.draw(U + ie * R, K + J * R, R, (oe, ae) => !(ie + oe < 0 || J + ae < 0 || ie + oe >= d || J + ae >= d) && !(h && !h(J + ae, ie + oe)) && !!this._qr && this._qr.isDark(J + ae, ie + oe)), ee._element && this._dotsClipPath && this._dotsClipPath.appendChild(ee._element));
4328
4328
  if (f.shape === z) {
4329
- const J = this._roundSize((v / R - u) / 2), ie = u + 2 * J, oe = U - J * R, ae = K - J * R, A = [], N = this._roundSize(ie / 2);
4329
+ const J = this._roundSize((v / R - d) / 2), ie = d + 2 * J, oe = U - J * R, ae = K - J * R, A = [], N = this._roundSize(ie / 2);
4330
4330
  for (let E = 0; E < ie; E++) {
4331
4331
  A[E] = [];
4332
- for (let B = 0; B < ie; B++) E >= J - 1 && E <= ie - J && B >= J - 1 && B <= ie - J || Math.sqrt((E - N) * (E - N) + (B - N) * (B - N)) > N ? A[E][B] = 0 : A[E][B] = this._qr.isDark(B - 2 * J < 0 ? B : B >= u ? B - 2 * J : B - J, E - 2 * J < 0 ? E : E >= u ? E - 2 * J : E - J) ? 1 : 0;
4332
+ for (let B = 0; B < ie; B++) E >= J - 1 && E <= ie - J && B >= J - 1 && B <= ie - J || Math.sqrt((E - N) * (E - N) + (B - N) * (B - N)) > N ? A[E][B] = 0 : A[E][B] = this._qr.isDark(B - 2 * J < 0 ? B : B >= d ? B - 2 * J : B - J, E - 2 * J < 0 ? E : E >= d ? E - 2 * J : E - J) ? 1 : 0;
4333
4333
  }
4334
4334
  for (let E = 0; E < ie; E++) for (let B = 0; B < ie; B++) A[E][B] && (ee.draw(oe + B * R, ae + E * R, R, (I, le) => {
4335
4335
  var o;
@@ -4341,7 +4341,7 @@ function Ec() {
4341
4341
  if (!this._qr) throw "QR code is not defined";
4342
4342
  const h = this._element, s = this._options;
4343
4343
  if (!h) throw "Element code is not defined";
4344
- const p = this._qr.getModuleCount(), f = Math.min(s.width, s.height) - 2 * s.margin, u = s.shape === z ? f / Math.sqrt(2) : f, v = this._roundSize(u / p), D = 7 * v, R = 3 * v, U = this._roundSize((s.width - p * v) / 2), K = this._roundSize((s.height - p * v) / 2);
4344
+ const p = this._qr.getModuleCount(), f = Math.min(s.width, s.height) - 2 * s.margin, d = s.shape === z ? f / Math.sqrt(2) : f, v = this._roundSize(d / p), D = 7 * v, R = 3 * v, U = this._roundSize((s.width - p * v) / 2), K = this._roundSize((s.height - p * v) / 2);
4345
4345
  [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([ee, J, ie]) => {
4346
4346
  var oe, ae, A, N, E, B, I, le, o, c, g, M, T, Y;
4347
4347
  const se = U + ee * v * (p - 7), ue = K + J * v * (p - 7);
@@ -4373,17 +4373,17 @@ function Ec() {
4373
4373
  var p;
4374
4374
  const f = this._options;
4375
4375
  if (!f.image) return s("Image is not defined");
4376
- if (!((p = f.nodeCanvas) === null || p === void 0) && p.loadImage) f.nodeCanvas.loadImage(f.image).then((u) => {
4376
+ if (!((p = f.nodeCanvas) === null || p === void 0) && p.loadImage) f.nodeCanvas.loadImage(f.image).then((d) => {
4377
4377
  var v, D;
4378
- if (this._image = u, this._options.imageOptions.saveAsBlob) {
4378
+ if (this._image = d, this._options.imageOptions.saveAsBlob) {
4379
4379
  const R = (v = f.nodeCanvas) === null || v === void 0 ? void 0 : v.createCanvas(this._image.width, this._image.height);
4380
- (D = R?.getContext("2d")) === null || D === void 0 || D.drawImage(u, 0, 0), this._imageUri = R?.toDataURL();
4380
+ (D = R?.getContext("2d")) === null || D === void 0 || D.drawImage(d, 0, 0), this._imageUri = R?.toDataURL();
4381
4381
  }
4382
4382
  h();
4383
4383
  }).catch(s);
4384
4384
  else {
4385
- const u = new this._window.Image();
4386
- typeof f.imageOptions.crossOrigin == "string" && (u.crossOrigin = f.imageOptions.crossOrigin), this._image = u, u.onload = async () => {
4385
+ const d = new this._window.Image();
4386
+ typeof f.imageOptions.crossOrigin == "string" && (d.crossOrigin = f.imageOptions.crossOrigin), this._image = d, d.onload = async () => {
4387
4387
  this._options.imageOptions.saveAsBlob && (this._imageUri = await (async function(v, D) {
4388
4388
  return new Promise((R) => {
4389
4389
  const U = new D.XMLHttpRequest();
@@ -4395,22 +4395,22 @@ function Ec() {
4395
4395
  }, U.open("GET", v), U.responseType = "blob", U.send();
4396
4396
  });
4397
4397
  })(f.image || "", this._window)), h();
4398
- }, u.src = f.image;
4398
+ }, d.src = f.image;
4399
4399
  }
4400
4400
  });
4401
4401
  }
4402
4402
  async drawImage({ width: h, height: s, count: p, dotSize: f }) {
4403
- const u = this._options, v = this._roundSize((u.width - p * f) / 2), D = this._roundSize((u.height - p * f) / 2), R = v + this._roundSize(u.imageOptions.margin + (p * f - h) / 2), U = D + this._roundSize(u.imageOptions.margin + (p * f - s) / 2), K = h - 2 * u.imageOptions.margin, ee = s - 2 * u.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
4403
+ const d = this._options, v = this._roundSize((d.width - p * f) / 2), D = this._roundSize((d.height - p * f) / 2), R = v + this._roundSize(d.imageOptions.margin + (p * f - h) / 2), U = D + this._roundSize(d.imageOptions.margin + (p * f - s) / 2), K = h - 2 * d.imageOptions.margin, ee = s - 2 * d.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
4404
4404
  J.setAttribute("href", this._imageUri || ""), J.setAttribute("xlink:href", this._imageUri || ""), J.setAttribute("x", String(R)), J.setAttribute("y", String(U)), J.setAttribute("width", `${K}px`), J.setAttribute("height", `${ee}px`), this._element.appendChild(J);
4405
4405
  }
4406
- _createColor({ options: h, color: s, additionalRotation: p, x: f, y: u, height: v, width: D, name: R }) {
4406
+ _createColor({ options: h, color: s, additionalRotation: p, x: f, y: d, height: v, width: D, name: R }) {
4407
4407
  const U = D > v ? D : v, K = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4408
- if (K.setAttribute("x", String(f)), K.setAttribute("y", String(u)), K.setAttribute("height", String(v)), K.setAttribute("width", String(D)), K.setAttribute("clip-path", `url('#clip-path-${R}')`), h) {
4408
+ if (K.setAttribute("x", String(f)), K.setAttribute("y", String(d)), K.setAttribute("height", String(v)), K.setAttribute("width", String(D)), K.setAttribute("clip-path", `url('#clip-path-${R}')`), h) {
4409
4409
  let ee;
4410
- if (h.type === "radial") ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("fx", String(f + D / 2)), ee.setAttribute("fy", String(u + v / 2)), ee.setAttribute("cx", String(f + D / 2)), ee.setAttribute("cy", String(u + v / 2)), ee.setAttribute("r", String(U / 2));
4410
+ if (h.type === "radial") ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("fx", String(f + D / 2)), ee.setAttribute("fy", String(d + v / 2)), ee.setAttribute("cx", String(f + D / 2)), ee.setAttribute("cy", String(d + v / 2)), ee.setAttribute("r", String(U / 2));
4411
4411
  else {
4412
4412
  const J = ((h.rotation || 0) + p) % (2 * Math.PI), ie = (J + 2 * Math.PI) % (2 * Math.PI);
4413
- let oe = f + D / 2, ae = u + v / 2, A = f + D / 2, N = u + v / 2;
4413
+ let oe = f + D / 2, ae = d + v / 2, A = f + D / 2, N = d + v / 2;
4414
4414
  ie >= 0 && ie <= 0.25 * Math.PI || ie > 1.75 * Math.PI && ie <= 2 * Math.PI ? (oe -= D / 2, ae -= v / 2 * Math.tan(J), A += D / 2, N += v / 2 * Math.tan(J)) : ie > 0.25 * Math.PI && ie <= 0.75 * Math.PI ? (ae -= v / 2, oe -= D / 2 / Math.tan(J), N += v / 2, A += D / 2 / Math.tan(J)) : ie > 0.75 * Math.PI && ie <= 1.25 * Math.PI ? (oe += D / 2, ae += v / 2 * Math.tan(J), A -= D / 2, N -= v / 2 * Math.tan(J)) : ie > 1.25 * Math.PI && ie <= 1.75 * Math.PI && (ae += v / 2, oe += D / 2 / Math.tan(J), N -= v / 2, A -= D / 2 / Math.tan(J)), ee = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ee.setAttribute("id", R), ee.setAttribute("gradientUnits", "userSpaceOnUse"), ee.setAttribute("x1", String(Math.round(oe))), ee.setAttribute("y1", String(Math.round(ae))), ee.setAttribute("x2", String(Math.round(A))), ee.setAttribute("y2", String(Math.round(N)));
4415
4415
  }
4416
4416
  h.colorStops.forEach(({ offset: J, color: ie }) => {
@@ -4462,7 +4462,7 @@ function Ec() {
4462
4462
  this._qr && (!((h = this._options.nodeCanvas) === null || h === void 0) && h.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (s = this._svgDrawingPromise) === null || s === void 0 ? void 0 : s.then(() => {
4463
4463
  var p;
4464
4464
  if (!this._svg) return;
4465
- const f = this._svg, u = new this._window.XMLSerializer().serializeToString(f), v = btoa(u), D = `data:${te("svg")};base64,${v}`;
4465
+ const f = this._svg, d = new this._window.XMLSerializer().serializeToString(f), v = btoa(d), D = `data:${te("svg")};base64,${v}`;
4466
4466
  if (!((p = this._options.nodeCanvas) === null || p === void 0) && p.loadImage) return this._options.nodeCanvas.loadImage(D).then((R) => {
4467
4467
  var U, K;
4468
4468
  R.width = this._options.width, R.height = this._options.height, (K = (U = this._nodeCanvas) === null || U === void 0 ? void 0 : U.getContext("2d")) === null || K === void 0 || K.drawImage(R, 0, 0);
@@ -4517,14 +4517,14 @@ ${new this._window.XMLSerializer().serializeToString(s)}`;
4517
4517
  return typeof Blob > "u" || this._options.jsdom ? Buffer.from(f) : new Blob([f], { type: p });
4518
4518
  }
4519
4519
  return new Promise((f) => {
4520
- const u = s;
4521
- if ("toBuffer" in u) if (p === "image/png") f(u.toBuffer(p));
4522
- else if (p === "image/jpeg") f(u.toBuffer(p));
4520
+ const d = s;
4521
+ if ("toBuffer" in d) if (p === "image/png") f(d.toBuffer(p));
4522
+ else if (p === "image/jpeg") f(d.toBuffer(p));
4523
4523
  else {
4524
4524
  if (p !== "application/pdf") throw Error("Unsupported extension");
4525
- f(u.toBuffer(p));
4525
+ f(d.toBuffer(p));
4526
4526
  }
4527
- else "toBlob" in u && u.toBlob(f, p, 1);
4527
+ else "toBlob" in d && d.toBlob(f, p, 1);
4528
4528
  });
4529
4529
  }
4530
4530
  async download(h) {
@@ -4534,9 +4534,9 @@ ${new this._window.XMLSerializer().serializeToString(s)}`;
4534
4534
  typeof h == "string" ? (s = h, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof h == "object" && h !== null && (h.name && (p = h.name), h.extension && (s = h.extension));
4535
4535
  const f = await this._getElement(s);
4536
4536
  if (f) if (s.toLowerCase() === "svg") {
4537
- let u = new XMLSerializer().serializeToString(f);
4538
- u = `<?xml version="1.0" standalone="no"?>\r
4539
- ` + u, m(`data:${te(s)};charset=utf-8,${encodeURIComponent(u)}`, `${p}.svg`);
4537
+ let d = new XMLSerializer().serializeToString(f);
4538
+ d = `<?xml version="1.0" standalone="no"?>\r
4539
+ ` + d, m(`data:${te(s)};charset=utf-8,${encodeURIComponent(d)}`, `${p}.svg`);
4540
4540
  } else m(f.toDataURL(te(s)), `${p}.${s}`);
4541
4541
  }
4542
4542
  }
@@ -4558,10 +4558,10 @@ function Ch(t) {
4558
4558
  baseUrl: n,
4559
4559
  queryClient: i
4560
4560
  }, e[0] = n, e[1] = i, e[2] = l) : l = e[2];
4561
- let d;
4562
- e[3] !== r || e[4] !== i ? (d = /* @__PURE__ */ b.jsx(qi, { client: i, children: r }), e[3] = r, e[4] = i, e[5] = d) : d = e[5];
4561
+ let u;
4562
+ e[3] !== r || e[4] !== i ? (u = /* @__PURE__ */ b.jsx(qi, { client: i, children: r }), e[3] = r, e[4] = i, e[5] = u) : u = e[5];
4563
4563
  let a;
4564
- return e[6] !== l || e[7] !== d ? (a = /* @__PURE__ */ b.jsx(Ki.Provider, { value: l, children: d }), e[6] = l, e[7] = d, e[8] = a) : a = e[8], a;
4564
+ return e[6] !== l || e[7] !== u ? (a = /* @__PURE__ */ b.jsx(Ki.Provider, { value: l, children: u }), e[6] = l, e[7] = u, e[8] = a) : a = e[8], a;
4565
4565
  }
4566
4566
  function $t() {
4567
4567
  const t = ki(Ki);
@@ -4589,7 +4589,7 @@ function Zn(t) {
4589
4589
  message: "Unbekannter Fehler"
4590
4590
  };
4591
4591
  }
4592
- async function Gt(t) {
4592
+ async function Ht(t) {
4593
4593
  const e = await t.text();
4594
4594
  if (!e)
4595
4595
  throw new Error(`HTTP ${t.status}: ${t.statusText}`);
@@ -4607,7 +4607,7 @@ function Tc() {
4607
4607
  "X-Assume-Org": t
4608
4608
  } : {};
4609
4609
  }
4610
- async function Qt() {
4610
+ async function Gt() {
4611
4611
  return {
4612
4612
  "Content-Type": "application/json",
4613
4613
  Authorization: `Bearer ${await xc() ?? ""}`,
@@ -4617,35 +4617,35 @@ async function Qt() {
4617
4617
  async function $c(t) {
4618
4618
  return fetch(t, {
4619
4619
  method: "GET",
4620
- headers: await Qt()
4621
- }).then(async (e) => (e.status >= 400 && await Gt(e), e)).then((e) => e.json()).then((e) => e);
4620
+ headers: await Gt()
4621
+ }).then(async (e) => (e.status >= 400 && await Ht(e), e)).then((e) => e.json()).then((e) => e);
4622
4622
  }
4623
4623
  async function Nc(t, e) {
4624
4624
  return fetch(`${t}/${e}`, {
4625
4625
  method: "GET",
4626
- headers: await Qt()
4627
- }).then(async (r) => (r.status >= 400 && await Gt(r), r)).then((r) => r.json()).then((r) => r);
4626
+ headers: await Gt()
4627
+ }).then(async (r) => (r.status >= 400 && await Ht(r), r)).then((r) => r.json()).then((r) => r);
4628
4628
  }
4629
4629
  async function Lc(t, e) {
4630
4630
  const r = await fetch(`${t}/${e}`, {
4631
4631
  method: "DELETE",
4632
- headers: await Qt()
4632
+ headers: await Gt()
4633
4633
  });
4634
- r.status >= 400 && await Gt(r);
4634
+ r.status >= 400 && await Ht(r);
4635
4635
  }
4636
4636
  async function Ic(t, e) {
4637
4637
  return fetch(t, {
4638
4638
  method: "POST",
4639
- headers: await Qt(),
4639
+ headers: await Gt(),
4640
4640
  body: JSON.stringify(e)
4641
- }).then(async (r) => (r.status >= 400 && await Gt(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
4641
+ }).then(async (r) => (r.status >= 400 && await Ht(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
4642
4642
  }
4643
4643
  async function Sh(t, e, r) {
4644
4644
  return fetch(e, {
4645
4645
  method: t,
4646
- headers: await Qt(),
4646
+ headers: await Gt(),
4647
4647
  body: r ? JSON.stringify(r) : void 0
4648
- }).then(async (n) => (n.status >= 400 && await Gt(n), n)).then((n) => {
4648
+ }).then(async (n) => (n.status >= 400 && await Ht(n), n)).then((n) => {
4649
4649
  if (n.status != 204)
4650
4650
  return n.json();
4651
4651
  }).then((n) => n);
@@ -4653,9 +4653,9 @@ async function Sh(t, e, r) {
4653
4653
  async function Bc(t, e) {
4654
4654
  return fetch(`${t}/${e.id}`, {
4655
4655
  method: "PUT",
4656
- headers: await Qt(),
4656
+ headers: await Gt(),
4657
4657
  body: JSON.stringify(e)
4658
- }).then(async (r) => (r.status >= 400 && await Gt(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
4658
+ }).then(async (r) => (r.status >= 400 && await Ht(r), r)).then((r) => r.status == 204 ? e : r.json()).then((r) => r);
4659
4659
  }
4660
4660
  function Yc(t, e, r) {
4661
4661
  const n = He.c(13), {
@@ -4667,15 +4667,15 @@ function Yc(t, e, r) {
4667
4667
  n[3] !== r ? (y = r?.toString(), n[3] = r, n[4] = y) : y = n[4], l = [...e.map(zc), String(y)], n[0] = r, n[1] = e, n[2] = l;
4668
4668
  } else
4669
4669
  l = n[2];
4670
- let d;
4671
- n[5] !== t || n[6] !== i || n[7] !== r ? (d = () => Nc(`${i}${t}`, r), n[5] = t, n[6] = i, n[7] = r, n[8] = d) : d = n[8];
4670
+ let u;
4671
+ n[5] !== t || n[6] !== i || n[7] !== r ? (u = () => Nc(`${i}${t}`, r), n[5] = t, n[6] = i, n[7] = r, n[8] = u) : u = n[8];
4672
4672
  const a = !!r;
4673
4673
  let m;
4674
- return n[9] !== l || n[10] !== d || n[11] !== a ? (m = {
4674
+ return n[9] !== l || n[10] !== u || n[11] !== a ? (m = {
4675
4675
  queryKey: l,
4676
- queryFn: d,
4676
+ queryFn: u,
4677
4677
  enabled: a
4678
- }, n[9] = l, n[10] = d, n[11] = a, n[12] = m) : m = n[12], Hi(m);
4678
+ }, n[9] = l, n[10] = u, n[11] = a, n[12] = m) : m = n[12], Hi(m);
4679
4679
  }
4680
4680
  function zc(t) {
4681
4681
  return t.toString();
@@ -4684,16 +4684,16 @@ function Fc(t, e, r) {
4684
4684
  const n = He.c(9), i = r === void 0 ? !0 : r, {
4685
4685
  baseUrl: l
4686
4686
  } = $t();
4687
- let d;
4688
- n[0] !== e ? (d = [...e.map(Wc)], n[0] = e, n[1] = d) : d = n[1];
4687
+ let u;
4688
+ n[0] !== e ? (u = [...e.map(Wc)], n[0] = e, n[1] = u) : u = n[1];
4689
4689
  let a;
4690
4690
  n[2] !== t || n[3] !== l ? (a = () => $c(`${l}${t}`), n[2] = t, n[3] = l, n[4] = a) : a = n[4];
4691
4691
  let m;
4692
- return n[5] !== i || n[6] !== d || n[7] !== a ? (m = {
4693
- queryKey: d,
4692
+ return n[5] !== i || n[6] !== u || n[7] !== a ? (m = {
4693
+ queryKey: u,
4694
4694
  queryFn: a,
4695
4695
  enabled: i
4696
- }, n[5] = i, n[6] = d, n[7] = a, n[8] = m) : m = n[8], Hi(m);
4696
+ }, n[5] = i, n[6] = u, n[7] = a, n[8] = m) : m = n[8], Hi(m);
4697
4697
  }
4698
4698
  function Wc(t) {
4699
4699
  return t.toString();
@@ -4705,12 +4705,12 @@ function Uc(t, e) {
4705
4705
  } = $t();
4706
4706
  let l;
4707
4707
  r[0] !== e ? (l = [...e.map(Vc)], r[0] = e, r[1] = l) : l = r[1];
4708
- let d;
4709
- r[2] !== t || r[3] !== n ? (d = (m) => Ic(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = d) : d = r[4];
4708
+ let u;
4709
+ r[2] !== t || r[3] !== n ? (u = (m) => Ic(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = u) : u = r[4];
4710
4710
  let a;
4711
- return r[5] !== i || r[6] !== e || r[7] !== l || r[8] !== d ? (a = {
4711
+ return r[5] !== i || r[6] !== e || r[7] !== l || r[8] !== u ? (a = {
4712
4712
  mutationKey: l,
4713
- mutationFn: d,
4713
+ mutationFn: u,
4714
4714
  onSettled() {
4715
4715
  return i.invalidateQueries({
4716
4716
  queryKey: [...e.map(qc)]
@@ -4719,7 +4719,7 @@ function Uc(t, e) {
4719
4719
  onError(m) {
4720
4720
  Zn(m);
4721
4721
  }
4722
- }, r[5] = i, r[6] = e, r[7] = l, r[8] = d, r[9] = a) : a = r[9], qn(a);
4722
+ }, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], qn(a);
4723
4723
  }
4724
4724
  function qc(t) {
4725
4725
  return t.toString();
@@ -4734,12 +4734,12 @@ function Ji(t, e) {
4734
4734
  } = $t();
4735
4735
  let l;
4736
4736
  r[0] !== e ? (l = [...e.map(Gc)], r[0] = e, r[1] = l) : l = r[1];
4737
- let d;
4738
- r[2] !== t || r[3] !== n ? (d = (m) => Bc(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = d) : d = r[4];
4737
+ let u;
4738
+ r[2] !== t || r[3] !== n ? (u = (m) => Bc(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = u) : u = r[4];
4739
4739
  let a;
4740
- return r[5] !== i || r[6] !== e || r[7] !== l || r[8] !== d ? (a = {
4740
+ return r[5] !== i || r[6] !== e || r[7] !== l || r[8] !== u ? (a = {
4741
4741
  mutationKey: l,
4742
- mutationFn: d,
4742
+ mutationFn: u,
4743
4743
  onSettled() {
4744
4744
  return i.invalidateQueries({
4745
4745
  queryKey: [...e.map(Hc)]
@@ -4748,7 +4748,7 @@ function Ji(t, e) {
4748
4748
  onError(m) {
4749
4749
  Zn(m);
4750
4750
  }
4751
- }, r[5] = i, r[6] = e, r[7] = l, r[8] = d, r[9] = a) : a = r[9], qn(a);
4751
+ }, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], qn(a);
4752
4752
  }
4753
4753
  function Hc(t) {
4754
4754
  return t.toString();
@@ -4763,12 +4763,12 @@ function Qc(t, e) {
4763
4763
  } = $t();
4764
4764
  let l;
4765
4765
  r[0] !== e ? (l = [...e.map(Kc)], r[0] = e, r[1] = l) : l = r[1];
4766
- let d;
4767
- r[2] !== t || r[3] !== n ? (d = (m) => Lc(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = d) : d = r[4];
4766
+ let u;
4767
+ r[2] !== t || r[3] !== n ? (u = (m) => Lc(`${n}${t}`, m), r[2] = t, r[3] = n, r[4] = u) : u = r[4];
4768
4768
  let a;
4769
- return r[5] !== i || r[6] !== e || r[7] !== l || r[8] !== d ? (a = {
4769
+ return r[5] !== i || r[6] !== e || r[7] !== l || r[8] !== u ? (a = {
4770
4770
  mutationKey: l,
4771
- mutationFn: d,
4771
+ mutationFn: u,
4772
4772
  onSettled() {
4773
4773
  return i.invalidateQueries({
4774
4774
  queryKey: [...e.map(Zc)]
@@ -4777,7 +4777,7 @@ function Qc(t, e) {
4777
4777
  onError(m) {
4778
4778
  Zn(m);
4779
4779
  }
4780
- }, r[5] = i, r[6] = e, r[7] = l, r[8] = d, r[9] = a) : a = r[9], qn(a);
4780
+ }, r[5] = i, r[6] = e, r[7] = l, r[8] = u, r[9] = a) : a = r[9], qn(a);
4781
4781
  }
4782
4782
  function Zc(t) {
4783
4783
  return t.toString();
@@ -4791,7 +4791,7 @@ function Xc() {
4791
4791
  (function(r, n) {
4792
4792
  t.exports = n();
4793
4793
  })(Jc, (function() {
4794
- var r = 1e3, n = 6e4, i = 36e5, l = "millisecond", d = "second", a = "minute", m = "hour", y = "day", _ = "week", O = "month", S = "quarter", C = "year", k = "date", j = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
4794
+ var r = 1e3, n = 6e4, i = 36e5, l = "millisecond", u = "second", a = "minute", m = "hour", y = "day", _ = "week", O = "month", S = "quarter", C = "year", k = "date", j = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
4795
4795
  var x = ["th", "st", "nd", "rd"], w = P % 100;
4796
4796
  return "[" + P + (x[(w - 20) % 10] || x[w] || x[0]) + "]";
4797
4797
  } }, V = function(P, x, w) {
@@ -4807,7 +4807,7 @@ function Xc() {
4807
4807
  }, a: function(P) {
4808
4808
  return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
4809
4809
  }, p: function(P) {
4810
- return { M: O, y: C, w: _, d: y, D: k, h: m, m: a, s: d, ms: l, Q: S }[P] || String(P || "").toLowerCase().replace(/s$/, "");
4810
+ return { M: O, y: C, w: _, d: y, D: k, h: m, m: a, s: u, ms: l, Q: S }[P] || String(P || "").toLowerCase().replace(/s$/, "");
4811
4811
  }, u: function(P) {
4812
4812
  return P === void 0;
4813
4813
  } }, X = "en", re = {};
@@ -4823,8 +4823,8 @@ function Xc() {
4823
4823
  var f = x.split("-");
4824
4824
  if (!s && f.length > 1) return P(f[0]);
4825
4825
  } else {
4826
- var u = x.name;
4827
- re[u] = x, s = u;
4826
+ var d = x.name;
4827
+ re[d] = x, s = d;
4828
4828
  }
4829
4829
  return !h && s && (X = s), s || !h && X;
4830
4830
  }, W = function(P, x) {
@@ -4849,8 +4849,8 @@ function Xc() {
4849
4849
  if (typeof s == "string" && !/Z$/i.test(s)) {
4850
4850
  var f = s.match($);
4851
4851
  if (f) {
4852
- var u = f[2] - 1 || 0, v = (f[7] || "0").substring(0, 3);
4853
- return p ? new Date(Date.UTC(f[1], u, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v)) : new Date(f[1], u, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v);
4852
+ var d = f[2] - 1 || 0, v = (f[7] || "0").substring(0, 3);
4853
+ return p ? new Date(Date.UTC(f[1], d, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v)) : new Date(f[1], d, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, v);
4854
4854
  }
4855
4855
  }
4856
4856
  return new Date(s);
@@ -4876,7 +4876,7 @@ function Xc() {
4876
4876
  }, x.valueOf = function() {
4877
4877
  return this.$d.getTime();
4878
4878
  }, x.startOf = function(w, h) {
4879
- var s = this, p = !!Z.u(h) || h, f = Z.p(w), u = function(ie, oe) {
4879
+ var s = this, p = !!Z.u(h) || h, f = Z.p(w), d = function(ie, oe) {
4880
4880
  var ae = Z.w(s.$u ? Date.UTC(s.$y, oe, ie) : new Date(s.$y, oe, ie), s);
4881
4881
  return p ? ae : ae.endOf(y);
4882
4882
  }, v = function(ie, oe) {
@@ -4884,12 +4884,12 @@ function Xc() {
4884
4884
  }, D = this.$W, R = this.$M, U = this.$D, K = "set" + (this.$u ? "UTC" : "");
4885
4885
  switch (f) {
4886
4886
  case C:
4887
- return p ? u(1, 0) : u(31, 11);
4887
+ return p ? d(1, 0) : d(31, 11);
4888
4888
  case O:
4889
- return p ? u(1, R) : u(0, R + 1);
4889
+ return p ? d(1, R) : d(0, R + 1);
4890
4890
  case _:
4891
4891
  var ee = this.$locale().weekStart || 0, J = (D < ee ? D + 7 : D) - ee;
4892
- return u(p ? U - J : U + (6 - J), R);
4892
+ return d(p ? U - J : U + (6 - J), R);
4893
4893
  case y:
4894
4894
  case k:
4895
4895
  return v(K + "Hours", 0);
@@ -4897,7 +4897,7 @@ function Xc() {
4897
4897
  return v(K + "Minutes", 1);
4898
4898
  case a:
4899
4899
  return v(K + "Seconds", 2);
4900
- case d:
4900
+ case u:
4901
4901
  return v(K + "Milliseconds", 3);
4902
4902
  default:
4903
4903
  return this.clone();
@@ -4905,11 +4905,11 @@ function Xc() {
4905
4905
  }, x.endOf = function(w) {
4906
4906
  return this.startOf(w, !1);
4907
4907
  }, x.$set = function(w, h) {
4908
- var s, p = Z.p(w), f = "set" + (this.$u ? "UTC" : ""), u = (s = {}, s[y] = f + "Date", s[k] = f + "Date", s[O] = f + "Month", s[C] = f + "FullYear", s[m] = f + "Hours", s[a] = f + "Minutes", s[d] = f + "Seconds", s[l] = f + "Milliseconds", s)[p], v = p === y ? this.$D + (h - this.$W) : h;
4908
+ var s, p = Z.p(w), f = "set" + (this.$u ? "UTC" : ""), d = (s = {}, s[y] = f + "Date", s[k] = f + "Date", s[O] = f + "Month", s[C] = f + "FullYear", s[m] = f + "Hours", s[a] = f + "Minutes", s[u] = f + "Seconds", s[l] = f + "Milliseconds", s)[p], v = p === y ? this.$D + (h - this.$W) : h;
4909
4909
  if (p === O || p === C) {
4910
4910
  var D = this.clone().set(k, 1);
4911
- D.$d[u](v), D.init(), this.$d = D.set(k, Math.min(this.$D, D.daysInMonth())).$d;
4912
- } else u && this.$d[u](v);
4911
+ D.$d[d](v), D.init(), this.$d = D.set(k, Math.min(this.$D, D.daysInMonth())).$d;
4912
+ } else d && this.$d[d](v);
4913
4913
  return this.init(), this;
4914
4914
  }, x.set = function(w, h) {
4915
4915
  return this.clone().$set(w, h);
@@ -4918,25 +4918,25 @@ function Xc() {
4918
4918
  }, x.add = function(w, h) {
4919
4919
  var s, p = this;
4920
4920
  w = Number(w);
4921
- var f = Z.p(h), u = function(R) {
4921
+ var f = Z.p(h), d = function(R) {
4922
4922
  var U = W(p);
4923
4923
  return Z.w(U.date(U.date() + Math.round(R * w)), p);
4924
4924
  };
4925
4925
  if (f === O) return this.set(O, this.$M + w);
4926
4926
  if (f === C) return this.set(C, this.$y + w);
4927
- if (f === y) return u(1);
4928
- if (f === _) return u(7);
4929
- var v = (s = {}, s[a] = n, s[m] = i, s[d] = r, s)[f] || 1, D = this.$d.getTime() + w * v;
4927
+ if (f === y) return d(1);
4928
+ if (f === _) return d(7);
4929
+ var v = (s = {}, s[a] = n, s[m] = i, s[u] = r, s)[f] || 1, D = this.$d.getTime() + w * v;
4930
4930
  return Z.w(D, this);
4931
4931
  }, x.subtract = function(w, h) {
4932
4932
  return this.add(-1 * w, h);
4933
4933
  }, x.format = function(w) {
4934
4934
  var h = this, s = this.$locale();
4935
4935
  if (!this.isValid()) return s.invalidDate || j;
4936
- var p = w || "YYYY-MM-DDTHH:mm:ssZ", f = Z.z(this), u = this.$H, v = this.$m, D = this.$M, R = s.weekdays, U = s.months, K = s.meridiem, ee = function(oe, ae, A, N) {
4936
+ var p = w || "YYYY-MM-DDTHH:mm:ssZ", f = Z.z(this), d = this.$H, v = this.$m, D = this.$M, R = s.weekdays, U = s.months, K = s.meridiem, ee = function(oe, ae, A, N) {
4937
4937
  return oe && (oe[ae] || oe(h, p)) || A[ae].slice(0, N);
4938
4938
  }, J = function(oe) {
4939
- return Z.s(u % 12 || 12, oe, "0");
4939
+ return Z.s(d % 12 || 12, oe, "0");
4940
4940
  }, ie = K || function(oe, ae, A) {
4941
4941
  var N = oe < 12 ? "AM" : "PM";
4942
4942
  return A ? N.toLowerCase() : N;
@@ -4969,17 +4969,17 @@ function Xc() {
4969
4969
  case "dddd":
4970
4970
  return R[h.$W];
4971
4971
  case "H":
4972
- return String(u);
4972
+ return String(d);
4973
4973
  case "HH":
4974
- return Z.s(u, 2, "0");
4974
+ return Z.s(d, 2, "0");
4975
4975
  case "h":
4976
4976
  return J(1);
4977
4977
  case "hh":
4978
4978
  return J(2);
4979
4979
  case "a":
4980
- return ie(u, v, !0);
4980
+ return ie(d, v, !0);
4981
4981
  case "A":
4982
- return ie(u, v, !1);
4982
+ return ie(d, v, !1);
4983
4983
  case "m":
4984
4984
  return String(v);
4985
4985
  case "mm":
@@ -4999,10 +4999,10 @@ function Xc() {
4999
4999
  }, x.utcOffset = function() {
5000
5000
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5001
5001
  }, x.diff = function(w, h, s) {
5002
- var p, f = this, u = Z.p(h), v = W(w), D = (v.utcOffset() - this.utcOffset()) * n, R = this - v, U = function() {
5002
+ var p, f = this, d = Z.p(h), v = W(w), D = (v.utcOffset() - this.utcOffset()) * n, R = this - v, U = function() {
5003
5003
  return Z.m(f, v);
5004
5004
  };
5005
- switch (u) {
5005
+ switch (d) {
5006
5006
  case C:
5007
5007
  p = U() / 12;
5008
5008
  break;
@@ -5024,7 +5024,7 @@ function Xc() {
5024
5024
  case a:
5025
5025
  p = R / n;
5026
5026
  break;
5027
- case d:
5027
+ case u:
5028
5028
  p = R / r;
5029
5029
  break;
5030
5030
  default:
@@ -5051,7 +5051,7 @@ function Xc() {
5051
5051
  return this.$d.toUTCString();
5052
5052
  }, P;
5053
5053
  })(), te = ne.prototype;
5054
- return W.prototype = te, [["$ms", l], ["$s", d], ["$m", a], ["$H", m], ["$W", y], ["$M", O], ["$y", C], ["$D", k]].forEach((function(P) {
5054
+ return W.prototype = te, [["$ms", l], ["$s", u], ["$m", a], ["$H", m], ["$W", y], ["$M", O], ["$y", C], ["$D", k]].forEach((function(P) {
5055
5055
  te[P[1]] = function(x) {
5056
5056
  return this.$g(x, P[0], P[1]);
5057
5057
  };
@@ -5131,16 +5131,16 @@ function Xi({
5131
5131
  cellIndex: i,
5132
5132
  size: l
5133
5133
  }) {
5134
- const d = tu({ direction: e, size: l, rowIndex: n, cellIndex: i, levelIndex: r });
5135
- if (!d)
5134
+ const u = tu({ direction: e, size: l, rowIndex: n, cellIndex: i, levelIndex: r });
5135
+ if (!u)
5136
5136
  return;
5137
- const a = t.current?.[d.levelIndex]?.[d.rowIndex]?.[d.cellIndex];
5137
+ const a = t.current?.[u.levelIndex]?.[u.rowIndex]?.[u.cellIndex];
5138
5138
  a && (a.disabled || a.getAttribute("data-hidden") || a.getAttribute("data-outside") ? Xi({
5139
5139
  controlsRef: t,
5140
5140
  direction: e,
5141
- levelIndex: d.levelIndex,
5142
- cellIndex: d.cellIndex,
5143
- rowIndex: d.rowIndex,
5141
+ levelIndex: u.levelIndex,
5142
+ cellIndex: u.cellIndex,
5143
+ rowIndex: u.rowIndex,
5144
5144
  size: l
5145
5145
  }) : a.focus());
5146
5146
  }
@@ -5171,14 +5171,14 @@ function Kn({
5171
5171
  const l = ru(i.key);
5172
5172
  if (l) {
5173
5173
  i.preventDefault();
5174
- const d = nu(t);
5174
+ const u = nu(t);
5175
5175
  Xi({
5176
5176
  controlsRef: t,
5177
5177
  direction: l,
5178
5178
  levelIndex: e,
5179
5179
  rowIndex: r,
5180
5180
  cellIndex: n,
5181
- size: d
5181
+ size: u
5182
5182
  });
5183
5183
  }
5184
5184
  }
@@ -5241,7 +5241,7 @@ function rs(t) {
5241
5241
  } else for (r in t) t[r] && (n && (n += " "), n += r);
5242
5242
  return n;
5243
5243
  }
5244
- function Oe() {
5244
+ function je() {
5245
5245
  for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = rs(t)) && (n && (n += " "), n += e);
5246
5246
  return n;
5247
5247
  }
@@ -5255,7 +5255,7 @@ const au = pr((t, { size: e }) => ({
5255
5255
  classNames: n,
5256
5256
  className: i,
5257
5257
  style: l,
5258
- styles: d,
5258
+ styles: u,
5259
5259
  unstyled: a,
5260
5260
  vars: m,
5261
5261
  date: y,
@@ -5280,7 +5280,7 @@ const au = pr((t, { size: e }) => ({
5280
5280
  className: i,
5281
5281
  style: l,
5282
5282
  classNames: n,
5283
- styles: d,
5283
+ styles: u,
5284
5284
  unstyled: a,
5285
5285
  attributes: re,
5286
5286
  vars: m,
@@ -5288,7 +5288,7 @@ const au = pr((t, { size: e }) => ({
5288
5288
  rootSelector: "day"
5289
5289
  });
5290
5290
  return /* @__PURE__ */ b.jsx(
5291
- zt,
5291
+ ar,
5292
5292
  {
5293
5293
  ...Q("day", { style: V ? { display: "none" } : void 0 }),
5294
5294
  component: F ? "div" : "button",
@@ -5334,7 +5334,7 @@ const cu = pr((t, { size: e }) => ({
5334
5334
  classNames: n,
5335
5335
  className: i,
5336
5336
  style: l,
5337
- styles: d,
5337
+ styles: u,
5338
5338
  unstyled: a,
5339
5339
  vars: m,
5340
5340
  locale: y,
@@ -5352,7 +5352,7 @@ const cu = pr((t, { size: e }) => ({
5352
5352
  className: i,
5353
5353
  style: l,
5354
5354
  classNames: n,
5355
- styles: d,
5355
+ styles: u,
5356
5356
  unstyled: a,
5357
5357
  attributes: j,
5358
5358
  vars: m,
@@ -5363,7 +5363,7 @@ const cu = pr((t, { size: e }) => ({
5363
5363
  format: O,
5364
5364
  firstDayOfWeek: L.getFirstDayOfWeek(_)
5365
5365
  }).map((F, X) => /* @__PURE__ */ b.jsx(S, { ...z("weekday"), children: F }, X));
5366
- return /* @__PURE__ */ b.jsxs(je, { component: "tr", ref: e, ...z("weekdaysRow"), ...$, children: [
5366
+ return /* @__PURE__ */ b.jsxs(Oe, { component: "tr", ref: e, ...z("weekdaysRow"), ...$, children: [
5367
5367
  k && /* @__PURE__ */ b.jsx(S, { ...z("weekday"), children: "#" }),
5368
5368
  V
5369
5369
  ] });
@@ -5390,7 +5390,7 @@ function hu({
5390
5390
  firstDayOfWeek: e = 1,
5391
5391
  consistentWeeks: r
5392
5392
  }) {
5393
- const n = ce(t).subtract(ce(t).date() - 1, "day"), i = ce(n.format("YYYY-M-D")), l = i.format("YYYY-MM-DD"), d = i.add(+i.daysInMonth() - 1, "day").format("YYYY-MM-DD"), a = uu(d, e), m = [];
5393
+ const n = ce(t).subtract(ce(t).date() - 1, "day"), i = ce(n.format("YYYY-M-D")), l = i.format("YYYY-MM-DD"), u = i.add(+i.daysInMonth() - 1, "day").format("YYYY-MM-DD"), a = uu(u, e), m = [];
5394
5394
  let y = ce(du(l, e));
5395
5395
  for (; ce(y).isBefore(a, "day"); ) {
5396
5396
  const _ = [];
@@ -5426,10 +5426,10 @@ function fu({
5426
5426
  getDayProps: n,
5427
5427
  excludeDate: i,
5428
5428
  hideOutsideDates: l,
5429
- month: d
5429
+ month: u
5430
5430
  }) {
5431
5431
  const a = t.flat().filter(
5432
- (_) => ss(_, r) && is(_, e) && !i?.(_) && !n?.(_)?.disabled && (!l || eo(_, d))
5432
+ (_) => ss(_, r) && is(_, e) && !i?.(_) && !n?.(_)?.disabled && (!l || eo(_, u))
5433
5433
  ), m = a.find((_) => n?.(_)?.selected);
5434
5434
  if (m)
5435
5435
  return m;
@@ -5444,14 +5444,14 @@ function gu() {
5444
5444
  })(pu, (function() {
5445
5445
  var r = "day";
5446
5446
  return function(n, i, l) {
5447
- var d = function(y) {
5447
+ var u = function(y) {
5448
5448
  return y.add(4 - y.isoWeekday(), r);
5449
5449
  }, a = i.prototype;
5450
5450
  a.isoWeekYear = function() {
5451
- return d(this).year();
5451
+ return u(this).year();
5452
5452
  }, a.isoWeek = function(y) {
5453
5453
  if (!this.$utils().u(y)) return this.add(7 * (y - this.isoWeek()), r);
5454
- var _, O, S, C, k = d(this), j = (_ = this.isoWeekYear(), O = this.$u, S = (O ? l.utc : l)().year(_).startOf("year"), C = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (C += 7), S.add(C, r));
5454
+ var _, O, S, C, k = u(this), j = (_ = this.isoWeekYear(), O = this.$u, S = (O ? l.utc : l)().year(_).startOf("year"), C = 4 - S.isoWeekday(), S.isoWeekday() > 4 && (C += 7), S.add(C, r));
5455
5455
  return k.diff(j, "week") + 1;
5456
5456
  }, a.isoWeekday = function(y) {
5457
5457
  return this.$utils().u(y) ? this.day() || 7 : this.day(this.day() % 7 ? y : y - 7);
@@ -5485,7 +5485,7 @@ const bu = {
5485
5485
  classNames: n,
5486
5486
  className: i,
5487
5487
  style: l,
5488
- styles: d,
5488
+ styles: u,
5489
5489
  unstyled: a,
5490
5490
  vars: m,
5491
5491
  __staticSelector: y,
@@ -5522,16 +5522,16 @@ const bu = {
5522
5522
  className: i,
5523
5523
  style: l,
5524
5524
  classNames: n,
5525
- styles: d,
5525
+ styles: u,
5526
5526
  unstyled: a,
5527
5527
  attributes: s,
5528
5528
  vars: m,
5529
5529
  varsResolver: wu,
5530
5530
  rootSelector: "month"
5531
- }), u = Dt(), v = hu({
5531
+ }), d = Dt(), v = hu({
5532
5532
  month: C,
5533
- firstDayOfWeek: u.getFirstDayOfWeek(O),
5534
- consistentWeeks: u.consistentWeeks
5533
+ firstDayOfWeek: d.getFirstDayOfWeek(O),
5534
+ consistentWeeks: d.consistentWeeks
5535
5535
  }), D = fu({
5536
5536
  dates: v,
5537
5537
  minDate: rt(z),
@@ -5542,11 +5542,11 @@ const bu = {
5542
5542
  month: C
5543
5543
  }), { resolvedClassNames: R, resolvedStyles: U } = ji({
5544
5544
  classNames: n,
5545
- styles: d,
5545
+ styles: u,
5546
5546
  props: r
5547
5547
  }), K = v.map((ee, J) => {
5548
5548
  const ie = ee.map((oe, ae) => {
5549
- const A = !eo(oe, C), N = re?.(oe) || ce(oe).locale(_ || u.locale).format("D MMMM YYYY"), E = j?.(oe), B = ce(oe).isSame(D, "date");
5549
+ const A = !eo(oe, C), N = re?.(oe) || ce(oe).locale(_ || d.locale).format("D MMMM YYYY"), E = j?.(oe), B = ce(oe).isSame(D, "date");
5550
5550
  return /* @__PURE__ */ b.jsx(
5551
5551
  "td",
5552
5552
  {
@@ -5564,7 +5564,7 @@ const bu = {
5564
5564
  renderDay: V,
5565
5565
  date: oe,
5566
5566
  size: x,
5567
- weekend: u.getWeekendDays(k).includes(ce(oe).get("day")),
5567
+ weekend: d.getWeekendDays(k).includes(ce(oe).get("day")),
5568
5568
  outside: A,
5569
5569
  hidden: F ? A : !1,
5570
5570
  "aria-label": N,
@@ -5598,7 +5598,7 @@ const bu = {
5598
5598
  ie
5599
5599
  ] }, J);
5600
5600
  });
5601
- return /* @__PURE__ */ b.jsxs(je, { component: "table", ...f("month"), size: x, ref: e, ...p, children: [
5601
+ return /* @__PURE__ */ b.jsxs(Oe, { component: "table", ...f("month"), size: x, ref: e, ...p, children: [
5602
5602
  !X && /* @__PURE__ */ b.jsx("thead", { ...f("monthThead"), children: /* @__PURE__ */ b.jsx(
5603
5603
  Xn,
5604
5604
  {
@@ -5629,7 +5629,7 @@ const _u = pr((t, { size: e }) => ({
5629
5629
  classNames: n,
5630
5630
  className: i,
5631
5631
  style: l,
5632
- styles: d,
5632
+ styles: u,
5633
5633
  unstyled: a,
5634
5634
  vars: m,
5635
5635
  firstInRange: y,
@@ -5647,7 +5647,7 @@ const _u = pr((t, { size: e }) => ({
5647
5647
  className: i,
5648
5648
  style: l,
5649
5649
  classNames: n,
5650
- styles: d,
5650
+ styles: u,
5651
5651
  unstyled: a,
5652
5652
  attributes: j,
5653
5653
  vars: m,
@@ -5655,7 +5655,7 @@ const _u = pr((t, { size: e }) => ({
5655
5655
  rootSelector: "pickerControl"
5656
5656
  });
5657
5657
  return /* @__PURE__ */ b.jsx(
5658
- zt,
5658
+ ar,
5659
5659
  {
5660
5660
  ...z("pickerControl"),
5661
5661
  ref: e,
@@ -5687,16 +5687,16 @@ function xu({
5687
5687
  ), l = i.find((a) => n?.(a)?.selected);
5688
5688
  if (l)
5689
5689
  return l;
5690
- const d = i.find((a) => ce().isSame(a, "year"));
5691
- return d || i[0];
5690
+ const u = i.find((a) => ce().isSame(a, "year"));
5691
+ return u || i[0];
5692
5692
  }
5693
5693
  function us(t) {
5694
5694
  const e = ce(t).year(), r = e - e % 10;
5695
5695
  let n = 0;
5696
5696
  const i = [[], [], [], []];
5697
5697
  for (let l = 0; l < 4; l += 1) {
5698
- const d = l === 3 ? 1 : 3;
5699
- for (let a = 0; a < d; a += 1)
5698
+ const u = l === 3 ? 1 : 3;
5699
+ for (let a = 0; a < u; a += 1)
5700
5700
  i[l].push(ce(new Date(r + n, 0)).format("YYYY-MM-DD")), n += 1;
5701
5701
  }
5702
5702
  return i;
@@ -5710,7 +5710,7 @@ const Cu = {
5710
5710
  classNames: n,
5711
5711
  className: i,
5712
5712
  style: l,
5713
- styles: d,
5713
+ styles: u,
5714
5714
  unstyled: a,
5715
5715
  vars: m,
5716
5716
  decade: y,
@@ -5737,7 +5737,7 @@ const Cu = {
5737
5737
  className: i,
5738
5738
  style: l,
5739
5739
  classNames: n,
5740
- styles: d,
5740
+ styles: u,
5741
5741
  unstyled: a,
5742
5742
  attributes: Q,
5743
5743
  vars: m,
@@ -5749,7 +5749,7 @@ const Cu = {
5749
5749
  getYearControlProps: k
5750
5750
  }), P = ne.map((x, w) => {
5751
5751
  const h = x.map((s, p) => {
5752
- const f = k?.(s), u = ce(s).isSame(te, "year");
5752
+ const f = k?.(s), d = ce(s).isSame(te, "year");
5753
5753
  return /* @__PURE__ */ b.jsx(
5754
5754
  "td",
5755
5755
  {
@@ -5779,7 +5779,7 @@ const Cu = {
5779
5779
  onMouseDown: (v) => {
5780
5780
  f?.onMouseDown?.(v), F && v.preventDefault();
5781
5781
  },
5782
- tabIndex: F || !u ? -1 : 0,
5782
+ tabIndex: F || !d ? -1 : 0,
5783
5783
  children: ce(s).locale(Z.getLocale(O)).format(_)
5784
5784
  }
5785
5785
  )
@@ -5789,7 +5789,7 @@ const Cu = {
5789
5789
  });
5790
5790
  return /* @__PURE__ */ b.jsx("tr", { ...W("yearsListRow"), children: h }, w);
5791
5791
  });
5792
- return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...W("yearsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5792
+ return /* @__PURE__ */ b.jsx(Oe, { component: "table", ref: e, size: H, ...W("yearsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5793
5793
  });
5794
5794
  qr.classes = ds;
5795
5795
  qr.displayName = "@mantine/dates/YearsList";
@@ -5807,8 +5807,8 @@ function Su({
5807
5807
  ), l = i.find((a) => n?.(a)?.selected);
5808
5808
  if (l)
5809
5809
  return l;
5810
- const d = i.find((a) => ce().isSame(a, "month"));
5811
- return d || i[0];
5810
+ const u = i.find((a) => ce().isSame(a, "month"));
5811
+ return u || i[0];
5812
5812
  }
5813
5813
  function Du(t) {
5814
5814
  const e = ce(t).startOf("year").toDate(), r = [[], [], [], []];
@@ -5827,7 +5827,7 @@ const ku = {
5827
5827
  classNames: n,
5828
5828
  className: i,
5829
5829
  style: l,
5830
- styles: d,
5830
+ styles: u,
5831
5831
  unstyled: a,
5832
5832
  vars: m,
5833
5833
  __staticSelector: y,
@@ -5854,7 +5854,7 @@ const ku = {
5854
5854
  className: i,
5855
5855
  style: l,
5856
5856
  classNames: n,
5857
- styles: d,
5857
+ styles: u,
5858
5858
  unstyled: a,
5859
5859
  attributes: Q,
5860
5860
  vars: m,
@@ -5866,7 +5866,7 @@ const ku = {
5866
5866
  getMonthControlProps: j
5867
5867
  }), P = ne.map((x, w) => {
5868
5868
  const h = x.map((s, p) => {
5869
- const f = j?.(s), u = ce(s).isSame(te, "month");
5869
+ const f = j?.(s), d = ce(s).isSame(te, "month");
5870
5870
  return /* @__PURE__ */ b.jsx(
5871
5871
  "td",
5872
5872
  {
@@ -5901,7 +5901,7 @@ const ku = {
5901
5901
  onMouseDown: (v) => {
5902
5902
  f?.onMouseDown?.(v), F && v.preventDefault();
5903
5903
  },
5904
- tabIndex: F || !u ? -1 : 0,
5904
+ tabIndex: F || !d ? -1 : 0,
5905
5905
  children: ce(s).locale(Z.getLocale(S)).format(O)
5906
5906
  }
5907
5907
  )
@@ -5911,7 +5911,7 @@ const ku = {
5911
5911
  });
5912
5912
  return /* @__PURE__ */ b.jsx("tr", { ...W("monthsListRow"), children: h }, w);
5913
5913
  });
5914
- return /* @__PURE__ */ b.jsx(je, { component: "table", ref: e, size: H, ...W("monthsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5914
+ return /* @__PURE__ */ b.jsx(Oe, { component: "table", ref: e, size: H, ...W("monthsList"), ...q, children: /* @__PURE__ */ b.jsx("tbody", { children: P }) });
5915
5915
  });
5916
5916
  Vr.classes = fs;
5917
5917
  Vr.displayName = "@mantine/dates/MonthsList";
@@ -5931,7 +5931,7 @@ const Pu = {
5931
5931
  classNames: n,
5932
5932
  className: i,
5933
5933
  style: l,
5934
- styles: d,
5934
+ styles: u,
5935
5935
  unstyled: a,
5936
5936
  vars: m,
5937
5937
  nextIcon: y,
@@ -5961,14 +5961,14 @@ const Pu = {
5961
5961
  className: i,
5962
5962
  style: l,
5963
5963
  classNames: n,
5964
- styles: d,
5964
+ styles: u,
5965
5965
  unstyled: a,
5966
5966
  attributes: Z,
5967
5967
  vars: m,
5968
5968
  varsResolver: Ou,
5969
5969
  rootSelector: "calendarHeader"
5970
5970
  }), P = q ? (p) => p.preventDefault() : void 0, x = re && /* @__PURE__ */ Or(
5971
- zt,
5971
+ ar,
5972
5972
  {
5973
5973
  ...te("calendarHeaderControl"),
5974
5974
  key: "previous",
@@ -5991,7 +5991,7 @@ const Pu = {
5991
5991
  }
5992
5992
  )
5993
5993
  ), w = /* @__PURE__ */ Or(
5994
- zt,
5994
+ ar,
5995
5995
  {
5996
5996
  component: V ? "button" : "div",
5997
5997
  ...te("calendarHeaderLevel"),
@@ -6007,7 +6007,7 @@ const Pu = {
6007
6007
  },
6008
6008
  $
6009
6009
  ), h = X && /* @__PURE__ */ Or(
6010
- zt,
6010
+ ar,
6011
6011
  {
6012
6012
  ...te("calendarHeaderControl"),
6013
6013
  key: "next",
@@ -6030,7 +6030,7 @@ const Pu = {
6030
6030
  }
6031
6031
  )
6032
6032
  ), s = H.map((p) => p === "previous" ? x : p === "level" ? w : p === "next" ? h : null);
6033
- return /* @__PURE__ */ b.jsx(je, { ...te("calendarHeader"), ref: e, ...ne, children: s });
6033
+ return /* @__PURE__ */ b.jsx(Oe, { ...te("calendarHeader"), ref: e, ...ne, children: s });
6034
6034
  });
6035
6035
  kt.classes = ps;
6036
6036
  kt.displayName = "@mantine/dates/CalendarHeader";
@@ -6046,7 +6046,7 @@ const Mu = {
6046
6046
  decade: n,
6047
6047
  locale: i,
6048
6048
  minDate: l,
6049
- maxDate: d,
6049
+ maxDate: u,
6050
6050
  yearsListFormat: a,
6051
6051
  getYearControlProps: m,
6052
6052
  __getControlRef: y,
@@ -6078,19 +6078,19 @@ const Mu = {
6078
6078
  size: h,
6079
6079
  attributes: s,
6080
6080
  ...p
6081
- } = r, f = Dt(), [u, v] = ju(n), D = {
6081
+ } = r, f = Dt(), [d, v] = ju(n), D = {
6082
6082
  __staticSelector: x || "DecadeLevel",
6083
6083
  classNames: ne,
6084
6084
  styles: te,
6085
6085
  unstyled: P,
6086
6086
  size: h,
6087
6087
  attributes: s
6088
- }, R = typeof X == "boolean" ? X : d ? !ce(v).endOf("year").isBefore(d) : !1, U = typeof re == "boolean" ? re : l ? !ce(u).startOf("year").isAfter(l) : !1, K = (ee, J) => ce(ee).locale(i || f.locale).format(J);
6089
- return /* @__PURE__ */ b.jsxs(je, { "data-decade-level": !0, size: h, ref: e, ...p, children: [
6088
+ }, R = typeof X == "boolean" ? X : u ? !ce(v).endOf("year").isBefore(u) : !1, U = typeof re == "boolean" ? re : l ? !ce(d).startOf("year").isAfter(l) : !1, K = (ee, J) => ce(ee).locale(i || f.locale).format(J);
6089
+ return /* @__PURE__ */ b.jsxs(Oe, { "data-decade-level": !0, size: h, ref: e, ...p, children: [
6090
6090
  /* @__PURE__ */ b.jsx(
6091
6091
  kt,
6092
6092
  {
6093
- label: typeof Z == "function" ? Z(u, v) : `${K(u, Z)} – ${K(
6093
+ label: typeof Z == "function" ? Z(d, v) : `${K(d, Z)} – ${K(
6094
6094
  v,
6095
6095
  Z
6096
6096
  )}`,
@@ -6118,7 +6118,7 @@ const Mu = {
6118
6118
  decade: n,
6119
6119
  locale: i,
6120
6120
  minDate: l,
6121
- maxDate: d,
6121
+ maxDate: u,
6122
6122
  yearsListFormat: a,
6123
6123
  getYearControlProps: m,
6124
6124
  __getControlRef: y,
@@ -6143,7 +6143,7 @@ const Au = {
6143
6143
  year: n,
6144
6144
  locale: i,
6145
6145
  minDate: l,
6146
- maxDate: d,
6146
+ maxDate: u,
6147
6147
  monthsListFormat: a,
6148
6148
  getMonthControlProps: m,
6149
6149
  __getControlRef: y,
@@ -6176,7 +6176,7 @@ const Au = {
6176
6176
  styles: s,
6177
6177
  unstyled: p,
6178
6178
  attributes: f,
6179
- ...u
6179
+ ...d
6180
6180
  } = r, v = Dt(), D = {
6181
6181
  __staticSelector: P || "YearLevel",
6182
6182
  classNames: h,
@@ -6184,8 +6184,8 @@ const Au = {
6184
6184
  unstyled: p,
6185
6185
  size: w,
6186
6186
  attributes: f
6187
- }, R = typeof re == "boolean" ? re : d ? !ce(n).endOf("year").isBefore(d) : !1, U = typeof H == "boolean" ? H : l ? !ce(n).startOf("year").isAfter(l) : !1;
6188
- return /* @__PURE__ */ b.jsxs(je, { "data-year-level": !0, size: w, ref: e, ...u, children: [
6187
+ }, R = typeof re == "boolean" ? re : u ? !ce(n).endOf("year").isBefore(u) : !1, U = typeof H == "boolean" ? H : l ? !ce(n).startOf("year").isAfter(l) : !1;
6188
+ return /* @__PURE__ */ b.jsxs(Oe, { "data-year-level": !0, size: w, ref: e, ...d, children: [
6189
6189
  /* @__PURE__ */ b.jsx(
6190
6190
  kt,
6191
6191
  {
@@ -6215,7 +6215,7 @@ const Au = {
6215
6215
  year: n,
6216
6216
  locale: i,
6217
6217
  minDate: l,
6218
- maxDate: d,
6218
+ maxDate: u,
6219
6219
  monthsListFormat: a,
6220
6220
  getMonthControlProps: m,
6221
6221
  __getControlRef: y,
@@ -6240,7 +6240,7 @@ const Ru = {
6240
6240
  month: n,
6241
6241
  locale: i,
6242
6242
  firstDayOfWeek: l,
6243
- weekdayFormat: d,
6243
+ weekdayFormat: u,
6244
6244
  weekendDays: a,
6245
6245
  getDayProps: m,
6246
6246
  excludeDate: y,
@@ -6272,7 +6272,7 @@ const Ru = {
6272
6272
  hasNextLevel: s,
6273
6273
  levelControlAriaLabel: p,
6274
6274
  withNext: f,
6275
- withPrevious: u,
6275
+ withPrevious: d,
6276
6276
  headerControlsOrder: v,
6277
6277
  // Other props
6278
6278
  monthLabelFormat: D,
@@ -6292,7 +6292,7 @@ const Ru = {
6292
6292
  size: J,
6293
6293
  attributes: oe
6294
6294
  }, E = typeof w == "boolean" ? w : O ? !ce(n).endOf("month").isBefore(O) : !1, B = typeof h == "boolean" ? h : _ ? !ce(n).startOf("month").isAfter(_) : !1;
6295
- return /* @__PURE__ */ b.jsxs(je, { "data-month-level": !0, size: J, ref: e, ...ae, children: [
6295
+ return /* @__PURE__ */ b.jsxs(Oe, { "data-month-level": !0, size: J, ref: e, ...ae, children: [
6296
6296
  /* @__PURE__ */ b.jsx(
6297
6297
  kt,
6298
6298
  {
@@ -6311,7 +6311,7 @@ const Ru = {
6311
6311
  hasNextLevel: s,
6312
6312
  levelControlAriaLabel: p,
6313
6313
  withNext: f,
6314
- withPrevious: u,
6314
+ withPrevious: d,
6315
6315
  headerControlsOrder: v,
6316
6316
  ...N
6317
6317
  }
@@ -6322,7 +6322,7 @@ const Ru = {
6322
6322
  month: n,
6323
6323
  locale: i,
6324
6324
  firstDayOfWeek: l,
6325
- weekdayFormat: d,
6325
+ weekdayFormat: u,
6326
6326
  weekendDays: a,
6327
6327
  getDayProps: m,
6328
6328
  excludeDate: y,
@@ -6355,7 +6355,7 @@ const Pt = Be((t, e) => {
6355
6355
  classNames: n,
6356
6356
  className: i,
6357
6357
  style: l,
6358
- styles: d,
6358
+ styles: u,
6359
6359
  unstyled: a,
6360
6360
  vars: m,
6361
6361
  __staticSelector: y,
@@ -6368,13 +6368,13 @@ const Pt = Be((t, e) => {
6368
6368
  className: i,
6369
6369
  style: l,
6370
6370
  classNames: n,
6371
- styles: d,
6371
+ styles: u,
6372
6372
  unstyled: a,
6373
6373
  attributes: _,
6374
6374
  vars: m,
6375
6375
  rootSelector: "levelsGroup"
6376
6376
  });
6377
- return /* @__PURE__ */ b.jsx(je, { ref: e, ...S("levelsGroup"), ...O });
6377
+ return /* @__PURE__ */ b.jsx(Oe, { ref: e, ...S("levelsGroup"), ...O });
6378
6378
  });
6379
6379
  Pt.classes = gs;
6380
6380
  Pt.displayName = "@mantine/dates/LevelsGroup";
@@ -6386,7 +6386,7 @@ const Eu = {
6386
6386
  decade: n,
6387
6387
  locale: i,
6388
6388
  minDate: l,
6389
- maxDate: d,
6389
+ maxDate: u,
6390
6390
  yearsListFormat: a,
6391
6391
  getYearControlProps: m,
6392
6392
  __onControlClick: y,
@@ -6416,33 +6416,33 @@ const Eu = {
6416
6416
  vars: x,
6417
6417
  attributes: w,
6418
6418
  ...h
6419
- } = r, s = Ce([]), p = Array(Z).fill(0).map((f, u) => {
6420
- const v = ce(n).add(u * 10, "years").format("YYYY-MM-DD");
6419
+ } = r, s = Ce([]), p = Array(Z).fill(0).map((f, d) => {
6420
+ const v = ce(n).add(d * 10, "years").format("YYYY-MM-DD");
6421
6421
  return /* @__PURE__ */ b.jsx(
6422
6422
  Hr,
6423
6423
  {
6424
6424
  size: P,
6425
6425
  yearsListFormat: a,
6426
6426
  decade: v,
6427
- withNext: u === Z - 1,
6428
- withPrevious: u === 0,
6427
+ withNext: d === Z - 1,
6428
+ withPrevious: d === 0,
6429
6429
  decadeLabelFormat: te,
6430
6430
  __onControlClick: y,
6431
6431
  __onControlMouseEnter: _,
6432
6432
  __onControlKeyDown: (D, R) => Kn({
6433
- levelIndex: u,
6433
+ levelIndex: d,
6434
6434
  rowIndex: R.rowIndex,
6435
6435
  cellIndex: R.cellIndex,
6436
6436
  event: D,
6437
6437
  controlsRef: s
6438
6438
  }),
6439
6439
  __getControlRef: (D, R, U) => {
6440
- Array.isArray(s.current[u]) || (s.current[u] = []), Array.isArray(s.current[u][D]) || (s.current[u][D] = []), s.current[u][D][R] = U;
6440
+ Array.isArray(s.current[d]) || (s.current[d] = []), Array.isArray(s.current[d][D]) || (s.current[d][D] = []), s.current[d][D][R] = U;
6441
6441
  },
6442
6442
  levelControlAriaLabel: typeof ne == "function" ? ne(v) : ne,
6443
6443
  locale: i,
6444
6444
  minDate: l,
6445
- maxDate: d,
6445
+ maxDate: u,
6446
6446
  __preventFocus: S,
6447
6447
  __stopPropagation: W,
6448
6448
  nextIcon: C,
@@ -6462,7 +6462,7 @@ const Eu = {
6462
6462
  headerControlsOrder: X,
6463
6463
  attributes: w
6464
6464
  },
6465
- u
6465
+ d
6466
6466
  );
6467
6467
  });
6468
6468
  return /* @__PURE__ */ b.jsx(
@@ -6490,7 +6490,7 @@ const Tu = {
6490
6490
  year: n,
6491
6491
  locale: i,
6492
6492
  minDate: l,
6493
- maxDate: d,
6493
+ maxDate: u,
6494
6494
  monthsListFormat: a,
6495
6495
  getMonthControlProps: m,
6496
6496
  __onControlClick: y,
@@ -6522,7 +6522,7 @@ const Tu = {
6522
6522
  vars: h,
6523
6523
  attributes: s,
6524
6524
  ...p
6525
- } = r, f = Ce([]), u = Array(te).fill(0).map((v, D) => {
6525
+ } = r, f = Ce([]), d = Array(te).fill(0).map((v, D) => {
6526
6526
  const R = ce(n).add(D, "years").format("YYYY-MM-DD");
6527
6527
  return /* @__PURE__ */ b.jsx(
6528
6528
  Gr,
@@ -6549,7 +6549,7 @@ const Tu = {
6549
6549
  levelControlAriaLabel: typeof P == "function" ? P(R) : P,
6550
6550
  locale: i,
6551
6551
  minDate: l,
6552
- maxDate: d,
6552
+ maxDate: u,
6553
6553
  __preventFocus: S,
6554
6554
  nextIcon: C,
6555
6555
  previousIcon: k,
@@ -6584,7 +6584,7 @@ const Tu = {
6584
6584
  unstyled: W,
6585
6585
  attributes: s,
6586
6586
  ...p,
6587
- children: u
6587
+ children: d
6588
6588
  }
6589
6589
  );
6590
6590
  });
@@ -6598,7 +6598,7 @@ const $u = {
6598
6598
  month: n,
6599
6599
  locale: i,
6600
6600
  firstDayOfWeek: l,
6601
- weekdayFormat: d,
6601
+ weekdayFormat: u,
6602
6602
  weekendDays: a,
6603
6603
  getDayProps: m,
6604
6604
  excludeDate: y,
@@ -6631,7 +6631,7 @@ const $u = {
6631
6631
  styles: s,
6632
6632
  unstyled: p,
6633
6633
  numberOfColumns: f,
6634
- levelControlAriaLabel: u,
6634
+ levelControlAriaLabel: d,
6635
6635
  monthLabelFormat: v,
6636
6636
  __staticSelector: D,
6637
6637
  __stopPropagation: R,
@@ -6662,10 +6662,10 @@ const $u = {
6662
6662
  __getDayRef: (B, I, le) => {
6663
6663
  Array.isArray(oe.current[N]) || (oe.current[N] = []), Array.isArray(oe.current[N][B]) || (oe.current[N][B] = []), oe.current[N][B][I] = le;
6664
6664
  },
6665
- levelControlAriaLabel: typeof u == "function" ? u(E) : u,
6665
+ levelControlAriaLabel: typeof d == "function" ? d(E) : d,
6666
6666
  locale: i,
6667
6667
  firstDayOfWeek: l,
6668
- weekdayFormat: d,
6668
+ weekdayFormat: u,
6669
6669
  weekendDays: a,
6670
6670
  getDayProps: m,
6671
6671
  excludeDate: y,
@@ -6728,13 +6728,13 @@ function In({
6728
6728
  onChange: n,
6729
6729
  withTime: i = !1
6730
6730
  }) {
6731
- const l = Ce(t), [d, a, m] = Bi({
6731
+ const l = Ce(t), [u, a, m] = Bi({
6732
6732
  value: mi(e, i),
6733
6733
  defaultValue: mi(r, i),
6734
6734
  finalValue: gi(t),
6735
6735
  onChange: n
6736
6736
  });
6737
- let y = d;
6737
+ let y = u;
6738
6738
  return l.current !== t && (l.current = t, e === void 0 && (y = r !== void 0 ? r : gi(t), a(y))), [y, a, m];
6739
6739
  }
6740
6740
  function xn(t, e) {
@@ -6743,7 +6743,7 @@ function xn(t, e) {
6743
6743
  function Nu(t) {
6744
6744
  return t === 0 ? "month" : t === 1 ? "year" : "decade";
6745
6745
  }
6746
- function ar(t, e, r) {
6746
+ function sr(t, e, r) {
6747
6747
  return Nu(
6748
6748
  ta(
6749
6749
  xn(t, 0),
@@ -6764,7 +6764,7 @@ const Lu = {
6764
6764
  vars: n,
6765
6765
  maxLevel: i,
6766
6766
  minLevel: l,
6767
- defaultLevel: d,
6767
+ defaultLevel: u,
6768
6768
  level: a,
6769
6769
  onLevelChange: m,
6770
6770
  date: y,
@@ -6796,7 +6796,7 @@ const Lu = {
6796
6796
  getDayAriaLabel: s,
6797
6797
  monthLabelFormat: p,
6798
6798
  nextIcon: f,
6799
- previousIcon: u,
6799
+ previousIcon: d,
6800
6800
  __onDayClick: v,
6801
6801
  __onDayMouseEnter: D,
6802
6802
  withCellSpacing: R,
@@ -6836,9 +6836,9 @@ const Lu = {
6836
6836
  styles: E,
6837
6837
  props: r
6838
6838
  }), [$e, De] = Bi({
6839
- value: a ? ar(a, l, i) : void 0,
6840
- defaultValue: d ? ar(d, l, i) : void 0,
6841
- finalValue: ar(void 0, l, i),
6839
+ value: a ? sr(a, l, i) : void 0,
6840
+ defaultValue: u ? sr(u, l, i) : void 0,
6841
+ finalValue: sr(void 0, l, i),
6842
6842
  onChange: m
6843
6843
  }), [Ot, Ae] = In({
6844
6844
  type: "default",
@@ -6912,7 +6912,7 @@ const Lu = {
6912
6912
  const ft = (me) => {
6913
6913
  ot.current = me, typeof e == "function" ? e(me) : e && (e.current = me);
6914
6914
  };
6915
- return /* @__PURE__ */ b.jsxs(je, { ref: ft, size: g, "data-calendar": !0, ..._e, children: [
6915
+ return /* @__PURE__ */ b.jsxs(Oe, { ref: ft, size: g, "data-calendar": !0, ..._e, children: [
6916
6916
  $e === "month" && /* @__PURE__ */ b.jsx(
6917
6917
  Jr,
6918
6918
  {
@@ -6938,7 +6938,7 @@ const Lu = {
6938
6938
  nextLabel: k?.nextMonth ?? j,
6939
6939
  nextIcon: f,
6940
6940
  previousLabel: k?.previousMonth ?? $,
6941
- previousIcon: u,
6941
+ previousIcon: d,
6942
6942
  monthLabelFormat: p,
6943
6943
  __onDayClick: v,
6944
6944
  __onDayMouseEnter: D,
@@ -6970,11 +6970,11 @@ const Lu = {
6970
6970
  nextLabel: k?.nextYear ?? j,
6971
6971
  nextIcon: f,
6972
6972
  previousLabel: k?.previousYear ?? $,
6973
- previousIcon: u,
6973
+ previousIcon: d,
6974
6974
  yearLabelFormat: ie,
6975
6975
  __onControlMouseEnter: F,
6976
6976
  __onControlClick: (me, Pe) => {
6977
- H && Ae(Pe), De(ar("month", l, i)), L?.(Pe);
6977
+ H && Ae(Pe), De(sr("month", l, i)), L?.(Pe);
6978
6978
  },
6979
6979
  __preventFocus: M,
6980
6980
  __stopPropagation: T,
@@ -6998,11 +6998,11 @@ const Lu = {
6998
6998
  nextLabel: k?.nextDecade ?? j,
6999
6999
  nextIcon: f,
7000
7000
  previousLabel: k?.previousDecade ?? $,
7001
- previousIcon: u,
7001
+ previousIcon: d,
7002
7002
  decadeLabelFormat: A,
7003
7003
  __onControlMouseEnter: V,
7004
7004
  __onControlClick: (me, Pe) => {
7005
- re && Ae(Pe), De(ar("year", l, i)), z?.(Pe);
7005
+ re && Ae(Pe), De(sr("year", l, i)), z?.(Pe);
7006
7006
  },
7007
7007
  __preventFocus: M,
7008
7008
  __stopPropagation: T,
@@ -7026,7 +7026,7 @@ function Iu(t) {
7026
7026
  defaultLevel: n,
7027
7027
  level: i,
7028
7028
  onLevelChange: l,
7029
- nextIcon: d,
7029
+ nextIcon: u,
7030
7030
  previousIcon: a,
7031
7031
  date: m,
7032
7032
  defaultDate: y,
@@ -7058,7 +7058,7 @@ function Iu(t) {
7058
7058
  firstDayOfWeek: s,
7059
7059
  weekdayFormat: p,
7060
7060
  weekendDays: f,
7061
- getDayProps: u,
7061
+ getDayProps: d,
7062
7062
  excludeDate: v,
7063
7063
  renderDay: D,
7064
7064
  hideOutsideDates: R,
@@ -7089,7 +7089,7 @@ function Iu(t) {
7089
7089
  defaultLevel: n,
7090
7090
  level: i,
7091
7091
  onLevelChange: l,
7092
- nextIcon: d,
7092
+ nextIcon: u,
7093
7093
  previousIcon: a,
7094
7094
  date: m,
7095
7095
  defaultDate: y,
@@ -7120,7 +7120,7 @@ function Iu(t) {
7120
7120
  firstDayOfWeek: s,
7121
7121
  weekdayFormat: p,
7122
7122
  weekendDays: f,
7123
- getDayProps: u,
7123
+ getDayProps: d,
7124
7124
  excludeDate: v,
7125
7125
  renderDay: D,
7126
7126
  hideOutsideDates: R,
@@ -7164,7 +7164,7 @@ const zu = {
7164
7164
  inputProps: n,
7165
7165
  wrapperProps: i,
7166
7166
  value: l,
7167
- defaultValue: d,
7167
+ defaultValue: u,
7168
7168
  onChange: a,
7169
7169
  clearable: m,
7170
7170
  clearButtonProps: y,
@@ -7195,18 +7195,18 @@ const zu = {
7195
7195
  getYearControlProps: s,
7196
7196
  disabled: p,
7197
7197
  ...f
7198
- } = r, u = Ce(null), v = Ce(null), [D, R] = be(!1), { calendarProps: U, others: K } = Iu(f), ee = Dt(), ie = k || ((G) => {
7198
+ } = r, d = Ce(null), v = Ce(null), [D, R] = be(!1), { calendarProps: U, others: K } = Iu(f), ee = Dt(), ie = k || ((G) => {
7199
7199
  const de = ce(G, C, ee.getLocale(S)).toDate();
7200
7200
  return Number.isNaN(de.getTime()) ? Bu(G) : ce(de).format("YYYY-MM-DD");
7201
7201
  }), oe = te !== void 0 ? te : m, ae = (G) => G ? ce(G).locale(ee.getLocale(S)).format(C) : "", [A, N, E] = In({
7202
7202
  type: "default",
7203
7203
  value: l,
7204
- defaultValue: d,
7204
+ defaultValue: u,
7205
7205
  onChange: a
7206
7206
  }), [B, I] = In({
7207
7207
  type: "default",
7208
7208
  value: P,
7209
- defaultValue: d || x,
7209
+ defaultValue: u || x,
7210
7210
  onChange: w
7211
7211
  });
7212
7212
  Te(() => {
@@ -7253,10 +7253,10 @@ const zu = {
7253
7253
  return ra(() => {
7254
7254
  A !== void 0 && !D && o(ae(A));
7255
7255
  }, [A]), Yi(() => R(!1), void 0, [
7256
- u.current,
7256
+ d.current,
7257
7257
  v.current
7258
7258
  ]), /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
7259
- /* @__PURE__ */ b.jsx(jr.Wrapper, { ...i, __staticSelector: "DateInput", ref: u, children: /* @__PURE__ */ b.jsxs(
7259
+ /* @__PURE__ */ b.jsx(jr.Wrapper, { ...i, __staticSelector: "DateInput", ref: d, children: /* @__PURE__ */ b.jsxs(
7260
7260
  lr,
7261
7261
  {
7262
7262
  opened: D,
@@ -7339,7 +7339,7 @@ function Fu(t) {
7339
7339
  onClose: n,
7340
7340
  queryKey: i,
7341
7341
  apiPath: l,
7342
- steps: d,
7342
+ steps: u,
7343
7343
  onCreated: a
7344
7344
  } = t, [m, y] = be(0), [_, O] = be(!1), [S, C] = be(), {
7345
7345
  mutateAsync: k,
@@ -7385,7 +7385,7 @@ function Fu(t) {
7385
7385
  (D.type === void 0 || D.type == "text") && /* @__PURE__ */ b.jsx(Mi, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), type: D.id.includes("email") ? "email" : void 0, required: U }, te.key(D.id)),
7386
7386
  D.type === "number" && /* @__PURE__ */ b.jsx(Ai, { decimalSeparator: ",", label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), required: U }, te.key(D.id)),
7387
7387
  D.type === "date" && /* @__PURE__ */ b.jsx(en, { label: D.column.title, placeholder: D.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...te.getInputProps(D.id), required: U }, te.key(D.id)),
7388
- D.type === "boolean" && /* @__PURE__ */ b.jsx(qt, { mt: "md", label: D.column.title, ...te.getInputProps(D.id, {
7388
+ D.type === "boolean" && /* @__PURE__ */ b.jsx(Ut, { mt: "md", label: D.column.title, ...te.getInputProps(D.id, {
7389
7389
  type: "checkbox"
7390
7390
  }), required: U }, te.key(D.id)),
7391
7391
  D.type === "textarea" && /* @__PURE__ */ b.jsx(Ri, { label: D.column.title, placeholder: D.placeholder ?? "", ...te.getInputProps(D.id), minRows: 3, autosize: !0, required: U }, te.key(D.id)),
@@ -7417,9 +7417,9 @@ function Fu(t) {
7417
7417
  H.length && m < H.length - 1 ? j || y(m + 1) : j || (te.setInitialValues(v), te.reset(), n());
7418
7418
  }), e[20] = m, e[21] = k, e[22] = te, e[23] = j, e[24] = n, e[25] = a, e[26] = S, e[27] = H.length, e[28] = L, e[29] = h) : h = e[29];
7419
7419
  let s;
7420
- e[30] !== m || e[31] !== r || e[32] !== x || e[33] !== d || e[34] !== H ? (s = H.length ? /* @__PURE__ */ b.jsx(Rr, { active: m, size: "sm", children: H.map((v) => /* @__PURE__ */ b.jsx(Rr.Step, { ...d && d[v - 1] ? {
7421
- label: d[v - 1].label
7422
- } : {}, children: r.filter((D) => D.step === v).map((D) => x(D)) }, v)) }) : r.map((v) => x(v)), e[30] = m, e[31] = r, e[32] = x, e[33] = d, e[34] = H, e[35] = s) : s = e[35];
7420
+ e[30] !== m || e[31] !== r || e[32] !== x || e[33] !== u || e[34] !== H ? (s = H.length ? /* @__PURE__ */ b.jsx(Rr, { active: m, size: "sm", children: H.map((v) => /* @__PURE__ */ b.jsx(Rr.Step, { ...u && u[v - 1] ? {
7421
+ label: u[v - 1].label
7422
+ } : {}, children: r.filter((D) => D.step === v).map((D) => x(D)) }, v)) }) : r.map((v) => x(v)), e[30] = m, e[31] = r, e[32] = x, e[33] = u, e[34] = H, e[35] = s) : s = e[35];
7423
7423
  let p;
7424
7424
  e[36] !== m || e[37] !== _ || e[38] !== F || e[39] !== n || e[40] !== H.length ? (p = !_ && /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
7425
7425
  /* @__PURE__ */ b.jsx(yt, { onClick: () => H.length ? m === 0 ? n() : y(m - 1) : n(), variant: "outline", children: H.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
@@ -7430,11 +7430,11 @@ function Fu(t) {
7430
7430
  s,
7431
7431
  p
7432
7432
  ] }), e[42] = s, e[43] = p, e[44] = h, e[45] = f) : f = e[45];
7433
- let u;
7434
- return e[46] !== f || e[47] !== w ? (u = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
7433
+ let d;
7434
+ return e[46] !== f || e[47] !== w ? (d = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
7435
7435
  w,
7436
7436
  f
7437
- ] }), e[46] = f, e[47] = w, e[48] = u) : u = e[48], u;
7437
+ ] }), e[46] = f, e[47] = w, e[48] = d) : d = e[48], d;
7438
7438
  }
7439
7439
  function Wu(t) {
7440
7440
  return t.required;
@@ -7449,7 +7449,7 @@ function Vu(t) {
7449
7449
  return typeof t.step == "number";
7450
7450
  }
7451
7451
  var [Hu, to] = Ts("useDataTableColumnsContext must be used within DataTableColumnProvider"), yi = (t) => {
7452
- let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: l, resetColumnsOrder: d, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ } = t, [O, S] = be(""), [C, k] = be("");
7452
+ let { children: e, columnsOrder: r, setColumnsOrder: n, columnsToggle: i, setColumnsToggle: l, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ } = t, [O, S] = be(""), [C, k] = be("");
7453
7453
  return b.jsx(Hu, { value: { sourceColumn: O, setSourceColumn: S, targetColumn: C, setTargetColumn: k, columnsToggle: i, setColumnsToggle: l, swapColumns: () => {
7454
7454
  if (!r || !n || !O || !C) return;
7455
7455
  let j = r.indexOf(O), $ = r.indexOf(C);
@@ -7457,7 +7457,7 @@ var [Hu, to] = Ts("useDataTableColumnsContext must be used within DataTableColum
7457
7457
  let z = r.splice(j, 1)[0];
7458
7458
  r.splice($, 0, z), n([...r]);
7459
7459
  }
7460
- }, resetColumnsOrder: d, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ }, children: e });
7460
+ }, resetColumnsOrder: u, resetColumnsToggle: a, setColumnWidth: m, setMultipleColumnWidths: y, resetColumnsWidth: _ }, children: e });
7461
7461
  };
7462
7462
  function Gu() {
7463
7463
  return b.jsx("tr", { className: "mantine-datatable-empty-row", children: b.jsx("td", {}) });
@@ -7477,9 +7477,9 @@ function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7477
7477
  C.includes(k.accessor) || C.push(k.accessor);
7478
7478
  }), C;
7479
7479
  }
7480
- let i = e && e.map((O) => O.accessor) || [], [l, d] = Wn({ key: t ? `${t}-columns-order` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
7480
+ let i = e && e.map((O) => O.accessor) || [], [l, u] = Wn({ key: t ? `${t}-columns-order` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
7481
7481
  function a(O) {
7482
- t && d(O);
7482
+ t && u(O);
7483
7483
  }
7484
7484
  let m = () => {
7485
7485
  a(i);
@@ -7489,7 +7489,7 @@ function Ku({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7489
7489
  return JSON.stringify(y) !== _ && a(y), { columnsOrder: y, setColumnsOrder: a, resetColumnsOrder: m };
7490
7490
  }
7491
7491
  function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, onFixedLayoutChange: i }) {
7492
- let l = Ce(!1), d = Ce({}), [a, m] = be(!0), y = et(() => e.some((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), _ = et(() => e.filter((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), O = et(() => _.some((q) => q.width === void 0 || q.width === "" || q.width === "initial"), [_]), S = Ne(() => e.filter((q) => q.accessor !== "__selection__").map((q) => ({ [q.accessor]: q.width ?? "auto" })), [e]), [C, k] = Wn({ key: t ? `${t}-columns-width` : "", defaultValue: t ? S() : void 0, getInitialValueInEffect: !1 }), [j, $] = be(() => S());
7492
+ let l = Ce(!1), u = Ce({}), [a, m] = be(!0), y = et(() => e.some((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), _ = et(() => e.filter((q) => q.resizable && !q.hidden && q.accessor !== "__selection__"), [e]), O = et(() => _.some((q) => q.width === void 0 || q.width === "" || q.width === "initial"), [_]), S = Ne(() => e.filter((q) => q.accessor !== "__selection__").map((q) => ({ [q.accessor]: q.width ?? "auto" })), [e]), [C, k] = Wn({ key: t ? `${t}-columns-width` : "", defaultValue: t ? S() : void 0, getInitialValueInEffect: !1 }), [j, $] = be(() => S());
7493
7493
  Te(() => {
7494
7494
  m(!1);
7495
7495
  }, []);
@@ -7517,7 +7517,7 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
7517
7517
  if (!(!n?.current || !i || a)) if (O) i(!1), requestAnimationFrame(() => {
7518
7518
  requestAnimationFrame(() => {
7519
7519
  let q = z();
7520
- d.current = { ...d.current, ...q };
7520
+ u.current = { ...u.current, ...q };
7521
7521
  let W = e.filter((Z) => Z.accessor !== "__selection__").map((Z) => {
7522
7522
  let ne = Z.accessor, te = C?.find((x) => Object.keys(x)[0] === ne);
7523
7523
  if (te && te[ne] !== "auto") return { [ne]: te[ne] };
@@ -7548,7 +7548,7 @@ function Ju({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRe
7548
7548
  a || !t || !r || C && C.length > 0 && $(C);
7549
7549
  }, [a, t, r, C]);
7550
7550
  let re = Ne(() => {
7551
- t && k(S()), d.current = {}, l.current = !1, i && (i(!1), setTimeout(() => {
7551
+ t && k(S()), u.current = {}, l.current = !1, i && (i(!1), setTimeout(() => {
7552
7552
  F();
7553
7553
  }, 10));
7554
7554
  }, [t, k, S, i, F]), H = Ne((q, W) => {
@@ -7571,9 +7571,9 @@ function Xu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7571
7571
  C.find((j) => j.accessor === k.accessor) || C.push({ accessor: k.accessor, defaultToggle: k.defaultToggle || !0, toggleable: k.toggleable, toggled: k.defaultToggle === void 0 ? !0 : k.defaultToggle });
7572
7572
  }), C;
7573
7573
  }
7574
- let i = e && e.map((O) => ({ accessor: O.accessor, defaultToggle: O.defaultToggle || !0, toggleable: O.toggleable, toggled: O.defaultToggle === void 0 ? !0 : O.defaultToggle })), [l, d] = Wn({ key: t ? `${t}-columns-toggle` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
7574
+ let i = e && e.map((O) => ({ accessor: O.accessor, defaultToggle: O.defaultToggle || !0, toggleable: O.toggleable, toggled: O.defaultToggle === void 0 ? !0 : O.defaultToggle })), [l, u] = Wn({ key: t ? `${t}-columns-toggle` : "", defaultValue: t ? i : void 0, getInitialValueInEffect: r });
7575
7575
  function a(O) {
7576
- t && d(O);
7576
+ t && u(O);
7577
7577
  }
7578
7578
  let m = () => {
7579
7579
  a(i);
@@ -7583,8 +7583,8 @@ function Xu({ key: t, columns: e = [], getInitialValueInEffect: r = !0 }) {
7583
7583
  return JSON.stringify(y) !== _ && a(y), { columnsToggle: y, setColumnsToggle: a, resetColumnsToggle: m };
7584
7584
  }
7585
7585
  var ed = ({ key: t, columns: e = [], getInitialValueInEffect: r = !0, headerRef: n, scrollViewportRef: i, onFixedLayoutChange: l }) => {
7586
- let { columnsOrder: d, setColumnsOrder: a, resetColumnsOrder: m } = Ku({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O } = Xu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V } = Ju({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: l });
7587
- return { effectiveColumns: et(() => d ? d.map((F) => e.find((X) => X.accessor === F)).map((F) => ({ ...F, hidden: F?.hidden || !y.find((X) => X.accessor === F?.accessor)?.toggled })).map((F) => F?.accessor === "__selection__" ? F : { ...F, width: S.find((X) => X[F?.accessor])?.[F?.accessor] }) : e, [e, d, y, S]), setColumnsOrder: a, columnsOrder: d, resetColumnsOrder: m, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O, columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V };
7586
+ let { columnsOrder: u, setColumnsOrder: a, resetColumnsOrder: m } = Ku({ key: t, columns: e, getInitialValueInEffect: r }), { columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O } = Xu({ key: t, columns: e, getInitialValueInEffect: r }), { columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V } = Ju({ key: t, columns: e, getInitialValueInEffect: r, headerRef: n, onFixedLayoutChange: l });
7587
+ return { effectiveColumns: et(() => u ? u.map((F) => e.find((X) => X.accessor === F)).map((F) => ({ ...F, hidden: F?.hidden || !y.find((X) => X.accessor === F?.accessor)?.toggled })).map((F) => F?.accessor === "__selection__" ? F : { ...F, width: S.find((X) => X[F?.accessor])?.[F?.accessor] }) : e, [e, u, y, S]), setColumnsOrder: a, columnsOrder: u, resetColumnsOrder: m, columnsToggle: y, setColumnsToggle: _, resetColumnsToggle: O, columnsWidth: S, setColumnsWidth: C, setColumnWidth: k, setMultipleColumnWidths: j, resetColumnsWidth: $, hasResizableColumns: z, allResizableWidthsInitial: L, measureAndSetColumnWidths: V };
7588
7588
  }, vi = typeof window < "u" ? Oi : Te;
7589
7589
  function bi(t) {
7590
7590
  let e = Ce(t);
@@ -7610,14 +7610,14 @@ function Cn(t, e, r) {
7610
7610
  }
7611
7611
  }
7612
7612
  function td({ scrollCallbacks: t, withRowBorders: e }) {
7613
- let r = { root: Ce(null), table: Ce(null), scrollViewport: Ce(null), header: Ce(null), footer: Ce(null), selectionColumnHeader: Ce(null) }, { root: n, table: i, scrollViewport: l, header: d, footer: a, selectionColumnHeader: m } = r, y = bi({ withRowBorders: e }), _ = bi(t), O = Ce(() => {
7613
+ let r = { root: Ce(null), table: Ce(null), scrollViewport: Ce(null), header: Ce(null), footer: Ce(null), selectionColumnHeader: Ce(null) }, { root: n, table: i, scrollViewport: l, header: u, footer: a, selectionColumnHeader: m } = r, y = bi({ withRowBorders: e }), _ = bi(t), O = Ce(() => {
7614
7614
  }), S = Ce(() => {
7615
7615
  }), C = Ne((k) => {
7616
7616
  _.current.onScroll?.(k), O.current();
7617
7617
  }, []);
7618
- return Te(() => Cn(d.current, (k) => {
7618
+ return Te(() => Cn(u.current, (k) => {
7619
7619
  it(n.current, wi, `${k.height}px`);
7620
- }, () => it(n.current, wi, "0")), [d.current]), Te(() => Cn(a.current, (k) => {
7620
+ }, () => it(n.current, wi, "0")), [u.current]), Te(() => Cn(a.current, (k) => {
7621
7621
  it(n.current, _i, `${k.height}px`);
7622
7622
  }, () => it(n.current, _i, "0")), [a.current]), Te(() => Cn(m.current, (k) => {
7623
7623
  it(n.current, xi, `${k.width}px`);
@@ -7694,8 +7694,8 @@ function od(t, e) {
7694
7694
  function id(t, e, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
7695
7695
  let [n, i] = be(r ? e : od(t, e)), l = Ce(null);
7696
7696
  return Te(() => {
7697
- if ("matchMedia" in window) return l.current = t.map((d) => window.matchMedia(d)), i(l.current.map((d) => d.matches)), nd(l.current, (d) => {
7698
- i(d);
7697
+ if ("matchMedia" in window) return l.current = t.map((u) => window.matchMedia(u)), i(l.current.map((u) => u.matches)), nd(l.current, (u) => {
7698
+ i(u);
7699
7699
  });
7700
7700
  }, [t]), n;
7701
7701
  }
@@ -7749,10 +7749,10 @@ function cd({ rowExpansion: t, records: e, idAccessor: r }) {
7749
7749
  let { trigger: a, allowMultiple: m, initiallyExpanded: y } = t;
7750
7750
  e && a === "always" ? n = e.map((_) => Fe(_, r)) : y && (n = e.filter((_, O) => y({ record: _, index: O })).map((_) => Fe(_, r)), m || (n = [n[0]]));
7751
7751
  }
7752
- let i, l, d = be(n);
7752
+ let i, l, u = be(n);
7753
7753
  if (t) {
7754
7754
  let { expandable: a, trigger: m, allowMultiple: y, collapseProps: _, content: O } = t;
7755
- t.expanded ? { recordIds: i, onRecordIdsChange: l } = t.expanded : [i, l] = d;
7755
+ t.expanded ? { recordIds: i, onRecordIdsChange: l } = t.expanded : [i, l] = u;
7756
7756
  let S = (C) => l?.(i.filter((k) => k !== Fe(C, r)));
7757
7757
  return { expandOnClick: m !== "always" && m !== "never", isRowExpanded: (C) => m === "always" ? !0 : i.includes(Fe(C, r)), isExpandable: ({ record: C, index: k }) => a ? a({ record: C, index: k }) : !0, expandRow: (C) => {
7758
7758
  let k = Fe(C, r);
@@ -7761,28 +7761,28 @@ function cd({ rowExpansion: t, records: e, idAccessor: r }) {
7761
7761
  }
7762
7762
  }
7763
7763
  function ud(t, e) {
7764
- let [r, n] = be(t), [i, l] = be(t), d = mo(() => n(!0), 0), a = mo(() => l(!1), e || 200);
7764
+ let [r, n] = be(t), [i, l] = be(t), u = mo(() => n(!0), 0), a = mo(() => l(!1), e || 200);
7765
7765
  return Te(() => {
7766
- t ? (a.clear(), l(!0), d.start()) : (d.clear(), n(!1), a.start());
7767
- }, [d, a, t]), { expanded: r, visible: i };
7766
+ t ? (a.clear(), l(!0), u.start()) : (u.clear(), n(!1), a.start());
7767
+ }, [u, a, t]), { expanded: r, visible: i };
7768
7768
  }
7769
- var oo = "mantine-datatable-nowrap", io = "mantine-datatable-ellipsis", Ut = "mantine-datatable-pointer-cursor", bs = "mantine-datatable-context-menu-cursor", dd = "mantine-datatable-text-selection-disabled", rn = "mantine-datatable-text-align-left", nn = "mantine-datatable-text-align-center", on = "mantine-datatable-text-align-right";
7770
- function hd({ className: t, style: e, visibleMediaQuery: r, title: n, noWrap: i, ellipsis: l, textAlign: d, width: a }) {
7771
- return tn(r) ? b.jsx(gr, { className: Oe({ [oo]: i || l, [io]: l, [rn]: d === "left", [nn]: d === "center", [on]: d === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
7769
+ var oo = "mantine-datatable-nowrap", io = "mantine-datatable-ellipsis", Wt = "mantine-datatable-pointer-cursor", bs = "mantine-datatable-context-menu-cursor", dd = "mantine-datatable-text-selection-disabled", rn = "mantine-datatable-text-align-left", nn = "mantine-datatable-text-align-center", on = "mantine-datatable-text-align-right";
7770
+ function hd({ className: t, style: e, visibleMediaQuery: r, title: n, noWrap: i, ellipsis: l, textAlign: u, width: a }) {
7771
+ return tn(r) ? b.jsx(gr, { className: je({ [oo]: i || l, [io]: l, [rn]: u === "left", [nn]: u === "center", [on]: u === "right" }, t), style: [{ width: a, minWidth: a, maxWidth: a }, e], children: n }) : null;
7772
7772
  }
7773
7773
  function fd({ shadowVisible: t }) {
7774
7774
  return b.jsx(gr, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": t || void 0 });
7775
7775
  }
7776
- function pd({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: i, selectorCellShadowVisible: l, ref: d }) {
7777
- return b.jsx(Is, { ref: d, className: Oe("mantine-datatable-footer", t), style: e, children: b.jsxs(Wt, { children: [i && b.jsx(fd, { shadowVisible: l }), r.map(({ hidden: a, ...m }) => {
7776
+ function pd({ className: t, style: e, columns: r, defaultColumnProps: n, selectionVisible: i, selectorCellShadowVisible: l, ref: u }) {
7777
+ return b.jsx(Is, { ref: u, className: je("mantine-datatable-footer", t), style: e, children: b.jsxs(Ft, { children: [i && b.jsx(fd, { shadowVisible: l }), r.map(({ hidden: a, ...m }) => {
7778
7778
  if (a) return null;
7779
7779
  let { accessor: y, visibleMediaQuery: _, textAlign: O, width: S, footer: C, footerClassName: k, footerStyle: j, noWrap: $, ellipsis: z } = { ...n, ...m };
7780
7780
  return b.jsx(hd, { className: k, style: j, visibleMediaQuery: _, textAlign: O, width: S, title: C, noWrap: $, ellipsis: z }, y);
7781
7781
  })] }) });
7782
7782
  }
7783
- function gd({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: l, style: d }, maxDepth: a, currentDepth: m, previousGroups: y, isLastGroup: _, withColumnBorders: O = !1, totalTableColumns: S }) {
7783
+ function gd({ group: { id: t, columns: e, groups: r, title: n, textAlign: i, className: l, style: u }, maxDepth: a, currentDepth: m, previousGroups: y, isLastGroup: _, withColumnBorders: O = !1, totalTableColumns: S }) {
7784
7784
  let C = et(() => e && e.length > 0 ? e : r && r.length > 0 ? no([{ id: t, columns: e, groups: r }]) : [], [e, r, t]), k = et(() => C.map(({ visibleMediaQuery: X }) => X), [C]), j = sd(k), $ = et(() => Yn({ columns: e, groups: r }, j), [t, e, r, j]), z = et(() => y.reduce((X, re) => X + Yn(re, j), 0), [y, j]), L = r && r.length > 0 ? 1 : a - m, V = z + $ < S, F = ld(_, V, O);
7785
- return $ > 0 ? b.jsx(gr, { colSpan: $, rowSpan: L > 1 ? L : void 0, className: Oe("mantine-datatable-column-group-header-cell", { [rn]: i === "left", [nn]: i === "center", [on]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": F }, l), style: d, children: n ?? ro(t) }) : null;
7785
+ return $ > 0 ? b.jsx(gr, { colSpan: $, rowSpan: L > 1 ? L : void 0, className: je("mantine-datatable-column-group-header-cell", { [rn]: i === "left", [nn]: i === "center", [on]: i === "right", "mantine-datatable-column-group-header-cell--needs-border": F }, l), style: u, children: n ?? ro(t) }) : null;
7786
7786
  }
7787
7787
  function md() {
7788
7788
  return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
@@ -7791,13 +7791,13 @@ function yd() {
7791
7791
  return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", strokeWidth: "0", fill: "currentColor" })] });
7792
7792
  }
7793
7793
  function vd({ children: t, isActive: e, filterPopoverProps: r, filterPopoverDisableClickOutside: n }) {
7794
- let [i, { close: l, toggle: d }] = oa(!1), a = e ? yd : md, m = Yi(l);
7794
+ let [i, { close: l, toggle: u }] = oa(!1), a = e ? yd : md, m = Yi(l);
7795
7795
  return n && (m = void 0), b.jsxs(lr, { withArrow: !0, shadow: "md", opened: i, onClose: l, trapFocus: !0, ...r, children: [b.jsx(Ei, { children: b.jsx(dr, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": e || void 0, size: "sm", variant: "default", onClick: (y) => {
7796
- y.preventDefault(), d();
7796
+ y.preventDefault(), u();
7797
7797
  }, onKeyDown: (y) => y.stopPropagation(), children: b.jsx(a, {}) }) }), b.jsx(Ti, { ref: m, onClick: (y) => y.stopPropagation(), onKeyDown: (y) => y.stopPropagation(), children: typeof t == "function" ? t({ close: l }) : t })] });
7798
7798
  }
7799
7799
  var bd = (t) => {
7800
- let { accessor: e, columnRef: r } = t, [n, i] = be(!1), l = Ce(0), d = Ce({ current: 0, next: 0 }), { dir: a } = Fs(), m = a === "rtl", { setMultipleColumnWidths: y } = to(), _ = Ne((S) => {
7800
+ let { accessor: e, columnRef: r } = t, [n, i] = be(!1), l = Ce(0), u = Ce({ current: 0, next: 0 }), { dir: a } = Fs(), m = a === "rtl", { setMultipleColumnWidths: y } = to(), _ = Ne((S) => {
7801
7801
  if (S.preventDefault(), S.stopPropagation(), !r.current) return;
7802
7802
  let C = r.current, k = C.nextElementSibling;
7803
7803
  for (; k; ) {
@@ -7811,14 +7811,14 @@ var bd = (t) => {
7811
7811
  let $ = j === "__selection__";
7812
7812
  i(!0), l.current = S.clientX;
7813
7813
  let z = C.offsetWidth, L = k.offsetWidth;
7814
- d.current = { current: z, next: L };
7814
+ u.current = { current: z, next: L };
7815
7815
  let V = (X) => {
7816
7816
  if (!r.current) return;
7817
7817
  let re = r.current, H = re.nextElementSibling;
7818
7818
  if (!H) return;
7819
7819
  let Q = X.clientX - l.current;
7820
7820
  m && (Q = -Q);
7821
- let q = 50, W = d.current.current - q, Z = d.current.next - q, ne = Math.max(-W, Math.min(Q, Z)), te = d.current.current + ne, P = d.current.next - ne;
7821
+ let q = 50, W = u.current.current - q, Z = u.current.next - q, ne = Math.max(-W, Math.min(Q, Z)), te = u.current.current + ne, P = u.current.next - ne;
7822
7822
  re.style.width = `${te}px`, H.style.width = `${P}px`, re.style.minWidth = `${te}px`, re.style.maxWidth = `${te}px`, H.style.minWidth = `${P}px`, H.style.maxWidth = `${P}px`;
7823
7823
  }, F = () => {
7824
7824
  if (!r.current) return;
@@ -7862,7 +7862,7 @@ function xd() {
7862
7862
  function Cd() {
7863
7863
  return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M18 6l-12 12" }), b.jsx("path", { d: "M6 6l12 12" })] });
7864
7864
  }
7865
- function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: i, sortable: l, draggable: d, toggleable: a, resizable: m, sortIcons: y, textAlign: _, width: O, sortStatus: S, onSortStatusChange: C, filter: k, filterPopoverProps: j, filterPopoverDisableClickOutside: $, filtering: z, sortKey: L }) {
7865
+ function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title: i, sortable: l, draggable: u, toggleable: a, resizable: m, sortIcons: y, textAlign: _, width: O, sortStatus: S, onSortStatusChange: C, filter: k, filterPopoverProps: j, filterPopoverDisableClickOutside: $, filtering: z, sortKey: L }) {
7866
7866
  let { setSourceColumn: V, setTargetColumn: F, swapColumns: X, setColumnsToggle: re } = to(), [H, Q] = be(!1), q = Ce(null);
7867
7867
  if (!tn(n)) return null;
7868
7868
  let W = i ?? ro(r), Z = typeof W == "string" ? W : void 0, ne = l && C ? (p) => {
@@ -7878,39 +7878,39 @@ function Sd({ className: t, style: e, accessor: r, visibleMediaQuery: n, title:
7878
7878
  }, h = () => {
7879
7879
  Q(!1);
7880
7880
  }, s = (p) => {
7881
- p.stopPropagation(), re((f) => f.map((u) => u.accessor === r ? { ...u, toggled: !1 } : u));
7881
+ p.stopPropagation(), re((f) => f.map((d) => d.accessor === r ? { ...d, toggled: !1 } : d));
7882
7882
  };
7883
- return b.jsxs(gr, { "data-accessor": r, className: Oe({ "mantine-datatable-header-cell-sortable": l, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": m }, t), style: [{ width: O, ...m ? {} : { minWidth: O, maxWidth: O } }, e], role: l ? "button" : void 0, tabIndex: l ? 0 : void 0, onClick: ne, onKeyDown: (p) => p.key === "Enter" && ne?.(), ref: q, children: [b.jsxs(qe, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [b.jsxs(zs, { align: "center", w: "100%", className: Oe({ "mantine-datatable-header-cell-draggable": d, "mantine-datatable-header-cell-drag-over": H }), draggable: d, onDragStart: d ? te : void 0, onDragEnter: d ? w : void 0, onDragOver: d ? P : void 0, onDrop: d ? x : void 0, onDragLeave: d ? h : void 0, children: [d ? b.jsx(Yt, { role: "img", "aria-label": "Drag column", children: b.jsx(dr, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (p) => {
7883
+ return b.jsxs(gr, { "data-accessor": r, className: je({ "mantine-datatable-header-cell-sortable": l, "mantine-datatable-header-cell-toggleable": a, "mantine-datatable-header-cell-resizable": m }, t), style: [{ width: O, ...m ? {} : { minWidth: O, maxWidth: O } }, e], role: l ? "button" : void 0, tabIndex: l ? 0 : void 0, onClick: ne, onKeyDown: (p) => p.key === "Enter" && ne?.(), ref: q, children: [b.jsxs(qe, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [b.jsxs(zs, { align: "center", w: "100%", className: je({ "mantine-datatable-header-cell-draggable": u, "mantine-datatable-header-cell-drag-over": H }), draggable: u, onDragStart: u ? te : void 0, onDragEnter: u ? w : void 0, onDragOver: u ? P : void 0, onDrop: u ? x : void 0, onDragLeave: u ? h : void 0, children: [u ? b.jsx(Yt, { role: "img", "aria-label": "Drag column", children: b.jsx(dr, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (p) => {
7884
7884
  p.stopPropagation();
7885
- }, children: b.jsx(xd, {}) }) }) : null, b.jsx(je, { className: Oe("mantine-datatable-header-cell-sortable-text", { [rn]: _ === "left", [nn]: _ === "center", [on]: _ === "right" }, oo, io), title: Z, children: W })] }), a ? b.jsx(Yt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: b.jsx(dr, { size: "xs", variant: "light", onClick: s, children: b.jsx(Cd, {}) }) }) : null, l || S?.columnAccessor === r ? b.jsx(b.Fragment, { children: S?.columnAccessor === r ? b.jsx(Yt, { className: Oe("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": S.direction === "desc" }), role: "img", "aria-label": `Sorted ${S.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || b.jsx(wd, {}) }) : b.jsx(Yt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || b.jsx(_d, {}) }) }) : null, k ? b.jsx(vd, { filterPopoverProps: j, isActive: !!z, filterPopoverDisableClickOutside: $, children: k }) : null] }), m && r !== "__selection__" ? b.jsx(bd, { accessor: r, columnRef: q }) : null] });
7885
+ }, children: b.jsx(xd, {}) }) }) : null, b.jsx(Oe, { className: je("mantine-datatable-header-cell-sortable-text", { [rn]: _ === "left", [nn]: _ === "center", [on]: _ === "right" }, oo, io), title: Z, children: W })] }), a ? b.jsx(Yt, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: b.jsx(dr, { size: "xs", variant: "light", onClick: s, children: b.jsx(Cd, {}) }) }) : null, l || S?.columnAccessor === r ? b.jsx(b.Fragment, { children: S?.columnAccessor === r ? b.jsx(Yt, { className: je("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": S.direction === "desc" }), role: "img", "aria-label": `Sorted ${S.direction === "desc" ? "descending" : "ascending"}`, children: y?.sorted || b.jsx(wd, {}) }) : b.jsx(Yt, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: y?.unsorted || b.jsx(_d, {}) }) }) : null, k ? b.jsx(vd, { filterPopoverProps: j, isActive: !!z, filterPopoverDisableClickOutside: $, children: k }) : null] }), m && r !== "__selection__" ? b.jsx(bd, { accessor: r, columnRef: q }) : null] });
7886
7886
  }
7887
- function Dd({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: l, checkboxProps: d, onChange: a, rowSpan: m, ref: y }) {
7888
- let _ = !d.disabled;
7889
- return b.jsx(gr, { ref: y, className: Oe("mantine-datatable-header-selector-cell", { [Ut]: r === "cell" && _ }, t), style: e, rowSpan: m, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: b.jsx(qt, { classNames: _ ? { input: Ut } : void 0, checked: i, indeterminate: l, onChange: a, ...d, disabled: !(a || d.onChange) || d.disabled }) });
7887
+ function Dd({ className: t, style: e, trigger: r, shadowVisible: n, checked: i, indeterminate: l, checkboxProps: u, onChange: a, rowSpan: m, ref: y }) {
7888
+ let _ = !u.disabled;
7889
+ return b.jsx(gr, { ref: y, className: je("mantine-datatable-header-selector-cell", { [Wt]: r === "cell" && _ }, t), style: e, rowSpan: m, "data-shadow-visible": n || void 0, "data-accessor": "__selection__", onClick: r === "cell" && _ ? a : void 0, children: b.jsx(Ut, { classNames: _ ? { input: Wt } : void 0, checked: i, indeterminate: l, onChange: a, ...u, disabled: !(a || u.onChange) || u.disabled }) });
7890
7890
  }
7891
- function kd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: l, columns: d, defaultColumnProps: a, groups: m, selectionTrigger: y, selectionVisible: _, selectionChecked: O, selectionIndeterminate: S, onSelectionChange: C, selectionCheckboxProps: k, selectorCellShadowVisible: j, selectionColumnClassName: $, selectionColumnStyle: z, withColumnBorders: L = !1, ref: V }) {
7892
- let F = m ? ys(m) : 0, X = F > 0 ? F + 1 : 1, re = _ ? b.jsx(Dd, { ref: t, className: $, style: z, trigger: y, shadowVisible: j, checked: O, indeterminate: S, checkboxProps: k, onChange: C, rowSpan: m ? X : void 0 }) : null, { columnsToggle: H, setColumnsToggle: Q } = to(), [q, W] = be(!1), Z = d.some((P) => P.toggleable), ne = Z ? Object.fromEntries(d.map(({ accessor: P, title: x }) => [P, x ?? ro(String(P))])) : void 0, te = b.jsxs(Ls, { className: Oe("mantine-datatable-header", e), style: r, ref: V, onContextMenu: Z ? (P) => {
7891
+ function kd({ selectionColumnHeaderRef: t, className: e, style: r, sortStatus: n, sortIcons: i, onSortStatusChange: l, columns: u, defaultColumnProps: a, groups: m, selectionTrigger: y, selectionVisible: _, selectionChecked: O, selectionIndeterminate: S, onSelectionChange: C, selectionCheckboxProps: k, selectorCellShadowVisible: j, selectionColumnClassName: $, selectionColumnStyle: z, withColumnBorders: L = !1, ref: V }) {
7892
+ let F = m ? ys(m) : 0, X = F > 0 ? F + 1 : 1, re = _ ? b.jsx(Dd, { ref: t, className: $, style: z, trigger: y, shadowVisible: j, checked: O, indeterminate: S, checkboxProps: k, onChange: C, rowSpan: m ? X : void 0 }) : null, { columnsToggle: H, setColumnsToggle: Q } = to(), [q, W] = be(!1), Z = u.some((P) => P.toggleable), ne = Z ? Object.fromEntries(u.map(({ accessor: P, title: x }) => [P, x ?? ro(String(P))])) : void 0, te = b.jsxs(Ls, { className: je("mantine-datatable-header", e), style: r, ref: V, onContextMenu: Z ? (P) => {
7893
7893
  P.preventDefault(), W((x) => !x);
7894
7894
  } : void 0, children: [m && Array.from({ length: F }, (P, x) => {
7895
7895
  let w = vs(m, x);
7896
- return b.jsxs(Wt, { children: [x === 0 && re, w.map((h, s) => b.jsx(gd, { group: h, maxDepth: F, currentDepth: x, previousGroups: w.slice(0, s), isLastGroup: s === w.length - 1, withColumnBorders: L, totalTableColumns: d.length }, h.id))] }, `group-depth-${x}`);
7897
- }), b.jsxs(Wt, { children: [!m && re, d.map(({ hidden: P, ...x }, w) => {
7896
+ return b.jsxs(Ft, { children: [x === 0 && re, w.map((h, s) => b.jsx(gd, { group: h, maxDepth: F, currentDepth: x, previousGroups: w.slice(0, s), isLastGroup: s === w.length - 1, withColumnBorders: L, totalTableColumns: u.length }, h.id))] }, `group-depth-${x}`);
7897
+ }), b.jsxs(Ft, { children: [!m && re, u.map(({ hidden: P, ...x }, w) => {
7898
7898
  if (P) return null;
7899
- let { accessor: h, visibleMediaQuery: s, textAlign: p, width: f, title: u, sortable: v, draggable: D, toggleable: R, resizable: U, titleClassName: K, titleStyle: ee, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae, sortKey: A } = { ...a, ...x };
7900
- return b.jsx(Sd, { accessor: h, className: K, style: ee, visibleMediaQuery: s, textAlign: p, width: f, title: u, sortable: v, draggable: D, toggleable: R, resizable: U && w < d.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: l, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae }, h);
7899
+ let { accessor: h, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: v, draggable: D, toggleable: R, resizable: U, titleClassName: K, titleStyle: ee, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae, sortKey: A } = { ...a, ...x };
7900
+ return b.jsx(Sd, { accessor: h, className: K, style: ee, visibleMediaQuery: s, textAlign: p, width: f, title: d, sortable: v, draggable: D, toggleable: R, resizable: U && w < u.length - 1, sortStatus: n, sortIcons: i, sortKey: A, onSortStatusChange: l, filter: J, filterPopoverProps: ie, filterPopoverDisableClickOutside: oe, filtering: ae }, h);
7901
7901
  })] })] });
7902
- return Z ? b.jsxs(lr, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: W, children: [b.jsx(Ei, { children: te }), b.jsx(Ti, { children: b.jsx(ur, { children: H.filter((P) => P.toggleable).map((P) => b.jsx(qe, { children: b.jsx(qt, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ne[P.accessor], checked: P.toggled, onChange: (x) => {
7902
+ return Z ? b.jsxs(lr, { position: "bottom", withArrow: !0, shadow: "md", opened: q, onChange: W, children: [b.jsx(Ei, { children: te }), b.jsx(Ti, { children: b.jsx(ur, { children: H.filter((P) => P.toggleable).map((P) => b.jsx(qe, { children: b.jsx(Ut, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: ne[P.accessor], checked: P.toggled, onChange: (x) => {
7903
7903
  Q(H.map((w) => w.accessor === P.accessor ? { ...w, toggled: x.currentTarget.checked } : w));
7904
7904
  } }) }, P.accessor)) }) })] }) : te;
7905
7905
  }
7906
7906
  function Pd({ fetching: t, customContent: e, backgroundBlur: r, size: n, type: i, color: l }) {
7907
- return b.jsx(Yt, { className: Oe("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || b.jsx(Bs, { size: n, type: i, color: l })) });
7907
+ return b.jsx(Yt, { className: je("mantine-datatable-loader", { "mantine-datatable-loader-fetching": t }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: t && (e || b.jsx(Bs, { size: n, type: i, color: l })) });
7908
7908
  }
7909
7909
  function Me(t, e, r) {
7910
7910
  return t ? Ys({ color: typeof t == "object" ? t[r] : t, theme: e }).value : void 0;
7911
7911
  }
7912
- function Od({ theme: t, c: e, backgroundColor: r, borderColor: n, rowBorderColor: i, stripedColor: l, highlightOnHoverColor: d }) {
7913
- return { "--mantine-datatable-color-light": Me(e, t, "light"), "--mantine-datatable-color-dark": Me(e, t, "dark"), "--mantine-datatable-background-color-light": Me(r, t, "light"), "--mantine-datatable-background-color-dark": Me(r, t, "dark"), "--mantine-datatable-border-color-light": Me(n, t, "light"), "--mantine-datatable-border-color-dark": Me(n, t, "dark"), "--mantine-datatable-row-border-color-light": Me(i, t, "light"), "--mantine-datatable-row-border-color-dark": Me(i, t, "dark"), "--mantine-datatable-striped-color-light": Me(l, t, "light"), "--mantine-datatable-striped-color-dark": Me(l, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Me(d, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": Me(d, t, "dark") };
7912
+ function Od({ theme: t, c: e, backgroundColor: r, borderColor: n, rowBorderColor: i, stripedColor: l, highlightOnHoverColor: u }) {
7913
+ return { "--mantine-datatable-color-light": Me(e, t, "light"), "--mantine-datatable-color-dark": Me(e, t, "dark"), "--mantine-datatable-background-color-light": Me(r, t, "light"), "--mantine-datatable-background-color-dark": Me(r, t, "dark"), "--mantine-datatable-border-color-light": Me(n, t, "light"), "--mantine-datatable-border-color-dark": Me(n, t, "dark"), "--mantine-datatable-row-border-color-light": Me(i, t, "light"), "--mantine-datatable-row-border-color-dark": Me(i, t, "dark"), "--mantine-datatable-striped-color-light": Me(l, t, "light"), "--mantine-datatable-striped-color-dark": Me(l, t, "dark"), "--mantine-datatable-highlight-on-hover-color-light": Me(u, t, "light"), "--mantine-datatable-highlight-on-hover-color-dark": Me(u, t, "dark") };
7914
7914
  }
7915
7915
  function ws({ theme: t, paginationActiveTextColor: e, paginationActiveBackgroundColor: r }) {
7916
7916
  return { "--mantine-datatable-pagination-active-text-color-light": Me(e, t, "light"), "--mantine-datatable-pagination-active-text-color-dark": Me(e, t, "dark"), "--mantine-datatable-pagination-active-background-color-light": Me(r, t, "light"), "--mantine-datatable-pagination-active-background-color-dark": Me(r, t, "dark") };
@@ -7922,46 +7922,46 @@ function Md() {
7922
7922
  return b.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [b.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), b.jsx("path", { d: "M8 9l4 -4l4 4" }), b.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
7923
7923
  }
7924
7924
  var Si = { xs: Et(22), sm: Et(26), md: Et(32), lg: Et(38), xl: Et(44) };
7925
- function Ad({ size: t, label: e, values: r, value: n, activeTextColor: i, activeBackgroundColor: l, onChange: d }) {
7925
+ function Ad({ size: t, label: e, values: r, value: n, activeTextColor: i, activeBackgroundColor: l, onChange: u }) {
7926
7926
  return b.jsxs(qe, { gap: "xs", children: [b.jsx(lt, { component: "div", size: t, children: e }), b.jsxs(Rt, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [b.jsx(Ws, { children: b.jsx(yt, { size: t, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: b.jsx(Md, {}), style: [{ fontWeight: "normal" }, (a) => ({ height: Si[t], paddingLeft: a.spacing[t], paddingRight: a.spacing[t] })], children: n }) }), b.jsx(Us, { children: r.map((a) => {
7927
7927
  let m = a === n;
7928
- return b.jsx(qs, { className: Oe({ "mantine-datatable-page-size-selector-active": m }), style: [{ height: Si[t] }, m && (i || l) ? (y) => ws({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: l }) : void 0], disabled: m, onClick: () => d(a), children: b.jsx(lt, { component: "div", size: t, children: a }) }, a);
7928
+ return b.jsx(qs, { className: je({ "mantine-datatable-page-size-selector-active": m }), style: [{ height: Si[t] }, m && (i || l) ? (y) => ws({ theme: y, paginationActiveTextColor: i, paginationActiveBackgroundColor: l }) : void 0], disabled: m, onClick: () => u(a), children: b.jsx(lt, { component: "div", size: t, children: a }) }, a);
7929
7929
  }) })] })] });
7930
7930
  }
7931
- function Rd({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: l, paginationWithControls: d, paginationActiveTextColor: a, paginationActiveBackgroundColor: m, paginationSize: y, loadingText: _, noRecordsText: O, paginationText: S, totalRecords: C, recordsPerPage: k, onRecordsPerPageChange: j, recordsPerPageLabel: $, recordsPerPageOptions: z, recordsLength: L, horizontalSpacing: V, paginationWrapBreakpoint: F, getPaginationControlProps: X, getPaginationItemProps: re, renderPagination: H }) {
7931
+ function Rd({ className: t, style: e, fetching: r, page: n, onPageChange: i, paginationWithEdges: l, paginationWithControls: u, paginationActiveTextColor: a, paginationActiveBackgroundColor: m, paginationSize: y, loadingText: _, noRecordsText: O, paginationText: S, totalRecords: C, recordsPerPage: k, onRecordsPerPageChange: j, recordsPerPageLabel: $, recordsPerPageOptions: z, recordsLength: L, horizontalSpacing: V, paginationWrapBreakpoint: F, getPaginationControlProps: X, getPaginationItemProps: re, renderPagination: H }) {
7932
7932
  let Q;
7933
7933
  if (C) {
7934
7934
  let x = (n - 1) * k + 1, w = x + (L || 0) - 1;
7935
7935
  Q = S({ from: x, to: w, totalRecords: C });
7936
7936
  } else Q = r ? _ : O;
7937
- let q = C && k ? Math.max(1, Math.ceil(C / k)) : 1, W = C ? (n - 1) * (k ?? 0) + 1 : void 0, Z = C ? (W ?? 1) + (L ?? 0) - 1 : void 0, ne = !tn(({ breakpoints: x }) => `(min-width: ${typeof F == "number" ? `${Et(F)}rem` : x[F] || F})`), te = { Text: (x) => b.jsx(lt, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: Q }), PageSizeSelector: (x) => z ? b.jsx(Ad, { activeTextColor: a, activeBackgroundColor: m, size: y, label: $, values: z, value: k, onChange: j, ...x }) : b.jsx(b.Fragment, {}), Pagination: (x) => b.jsx(Li, { classNames: { root: Oe("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !L }), control: "mantine-datatable-pagination-pages-control" }, style: a || m ? (w) => ws({ theme: w, paginationActiveTextColor: a, paginationActiveBackgroundColor: m }) : void 0, withEdges: l, withControls: d, value: n, onChange: i, size: y, total: q, getControlProps: X, getItemProps: re, ...x }) }, P = { state: { paginationSize: y, page: n, totalPages: q, totalRecords: C, recordsPerPage: k, recordsLength: L, fetching: r, from: W, to: Z, isWrapped: ne }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: j ? (x) => j(x) : void 0 }, Controls: te };
7938
- return b.jsx(je, { px: V ?? "xs", py: "xs", className: Oe("mantine-datatable-pagination", t), style: [{ flexDirection: ne ? "column" : "row" }, e], children: typeof H == "function" ? H(P) : b.jsxs(b.Fragment, { children: [b.jsx(te.Text, {}), b.jsx(te.PageSizeSelector, {}), b.jsx(te.Pagination, {})] }) });
7937
+ let q = C && k ? Math.max(1, Math.ceil(C / k)) : 1, W = C ? (n - 1) * (k ?? 0) + 1 : void 0, Z = C ? (W ?? 1) + (L ?? 0) - 1 : void 0, ne = !tn(({ breakpoints: x }) => `(min-width: ${typeof F == "number" ? `${Et(F)}rem` : x[F] || F})`), te = { Text: (x) => b.jsx(lt, { component: "div", className: "mantine-datatable-pagination-text", size: y, ...x, children: Q }), PageSizeSelector: (x) => z ? b.jsx(Ad, { activeTextColor: a, activeBackgroundColor: m, size: y, label: $, values: z, value: k, onChange: j, ...x }) : b.jsx(b.Fragment, {}), Pagination: (x) => b.jsx(Li, { classNames: { root: je("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !L }), control: "mantine-datatable-pagination-pages-control" }, style: a || m ? (w) => ws({ theme: w, paginationActiveTextColor: a, paginationActiveBackgroundColor: m }) : void 0, withEdges: l, withControls: u, value: n, onChange: i, size: y, total: q, getControlProps: X, getItemProps: re, ...x }) }, P = { state: { paginationSize: y, page: n, totalPages: q, totalRecords: C, recordsPerPage: k, recordsLength: L, fetching: r, from: W, to: Z, isWrapped: ne }, actions: { setPage: (x) => i?.(x), setRecordsPerPage: j ? (x) => j(x) : void 0 }, Controls: te };
7938
+ return b.jsx(Oe, { px: V ?? "xs", py: "xs", className: je("mantine-datatable-pagination", t), style: [{ flexDirection: ne ? "column" : "row" }, e], children: typeof H == "function" ? H(P) : b.jsxs(b.Fragment, { children: [b.jsx(te.Text, {}), b.jsx(te.PageSizeSelector, {}), b.jsx(te.Pagination, {})] }) });
7939
7939
  }
7940
- function Ed({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: l, onDoubleClick: d, onContextMenu: a, noWrap: m, ellipsis: y, textAlign: _, width: O, accessor: S, render: C, defaultRender: k, customCellAttributes: j }) {
7941
- return tn(r) ? b.jsx(Fn, { className: Oe({ [oo]: m || y, [io]: y, [Ut]: l || d, [bs]: a, [rn]: _ === "left", [nn]: _ === "center", [on]: _ === "right" }, t), style: [{ width: O, minWidth: O, maxWidth: O }, e], onClick: l, onDoubleClick: d, onContextMenu: a, ...j?.(n, i), children: C ? C(n, i) : k ? k(n, i, S) : ms(n, S) }) : null;
7940
+ function Ed({ className: t, style: e, visibleMediaQuery: r, record: n, index: i, onClick: l, onDoubleClick: u, onContextMenu: a, noWrap: m, ellipsis: y, textAlign: _, width: O, accessor: S, render: C, defaultRender: k, customCellAttributes: j }) {
7941
+ return tn(r) ? b.jsx(Fn, { className: je({ [oo]: m || y, [io]: y, [Wt]: l || u, [bs]: a, [rn]: _ === "left", [nn]: _ === "center", [on]: _ === "right" }, t), style: [{ width: O, minWidth: O, maxWidth: O }, e], onClick: l, onDoubleClick: u, onContextMenu: a, ...j?.(n, i), children: C ? C(n, i) : k ? k(n, i, S) : ms(n, S) }) : null;
7942
7942
  }
7943
7943
  function Td({ open: t, colSpan: e, content: r, collapseProps: n }) {
7944
7944
  let { expanded: i, visible: l } = ud(t, n?.transitionDuration);
7945
- return l ? b.jsxs(b.Fragment, { children: [b.jsx(Wt, {}), b.jsx(Wt, { children: b.jsx(Fn, { className: "mantine-datatable-row-expansion-cell", colSpan: e, children: b.jsx($i, { in: i, ...n, children: b.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
7945
+ return l ? b.jsxs(b.Fragment, { children: [b.jsx(Ft, {}), b.jsx(Ft, { children: b.jsx(Fn, { className: "mantine-datatable-row-expansion-cell", colSpan: e, children: b.jsx($i, { in: i, ...n, children: b.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
7946
7946
  }
7947
- function $d({ className: t, style: e, record: r, index: n, trigger: i, onChange: l, withRightShadow: d, checkboxProps: a, getCheckboxProps: m, ...y }) {
7947
+ function $d({ className: t, style: e, record: r, index: n, trigger: i, onChange: l, withRightShadow: u, checkboxProps: a, getCheckboxProps: m, ...y }) {
7948
7948
  let _ = { ...a, ...m(r, n) }, O = !y.disabled && !_.disabled, S = (C) => {
7949
7949
  C.stopPropagation(), i === "cell" && O && l?.(C);
7950
7950
  };
7951
- return b.jsx(Fn, { className: Oe("mantine-datatable-row-selector-cell", { [Ut]: i === "cell" && O }, t), style: e, "data-shadow-visible": d || void 0, onClick: S, children: b.jsx(qt, { classNames: O ? { input: Ut } : void 0, onChange: l, ...y, ..._ }) });
7951
+ return b.jsx(Fn, { className: je("mantine-datatable-row-selector-cell", { [Wt]: i === "cell" && O }, t), style: e, "data-shadow-visible": u || void 0, onClick: S, children: b.jsx(Ut, { classNames: O ? { input: Wt } : void 0, onChange: l, ...y, ..._ }) });
7952
7952
  }
7953
- function Nd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: l, selectionVisible: d, selectionChecked: a, onSelectionChange: m, isRecordSelectable: y, selectionCheckboxProps: _, getSelectionCheckboxProps: O, onClick: S, onDoubleClick: C, onContextMenu: k, onCellClick: j, onCellDoubleClick: $, onCellContextMenu: z, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H, selectorCellShadowVisible: Q, selectionColumnClassName: q, selectionColumnStyle: W, rowFactory: Z }) {
7954
- let ne = b.jsxs(b.Fragment, { children: [d && b.jsx($d, { className: q, style: W, record: t, index: e, trigger: l, withRightShadow: Q, checked: a, disabled: !m || (y ? !y(t, e) : !1), onChange: m, checkboxProps: _, getCheckboxProps: O }), r.map(({ hidden: x, hiddenContent: w, ...h }, s) => {
7953
+ function Nd({ record: t, index: e, columns: r, defaultColumnProps: n, defaultColumnRender: i, selectionTrigger: l, selectionVisible: u, selectionChecked: a, onSelectionChange: m, isRecordSelectable: y, selectionCheckboxProps: _, getSelectionCheckboxProps: O, onClick: S, onDoubleClick: C, onContextMenu: k, onCellClick: j, onCellDoubleClick: $, onCellContextMenu: z, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H, selectorCellShadowVisible: Q, selectionColumnClassName: q, selectionColumnStyle: W, rowFactory: Z }) {
7954
+ let ne = b.jsxs(b.Fragment, { children: [u && b.jsx($d, { className: q, style: W, record: t, index: e, trigger: l, withRightShadow: Q, checked: a, disabled: !m || (y ? !y(t, e) : !1), onChange: m, checkboxProps: _, getCheckboxProps: O }), r.map(({ hidden: x, hiddenContent: w, ...h }, s) => {
7955
7955
  if (x || w) return null;
7956
- let { accessor: p, visibleMediaQuery: f, textAlign: u, noWrap: v, ellipsis: D, width: R, render: U, cellsClassName: K, cellsStyle: ee, customCellAttributes: J } = { ...n, ...h };
7957
- return b.jsx(Ed, { className: typeof K == "function" ? K(t, e) : K, style: ee?.(t, e), visibleMediaQuery: f, record: t, index: e, onClick: j ? (ie) => j({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onDoubleClick: $ ? (ie) => $({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onContextMenu: z ? (ie) => z({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, accessor: p, textAlign: u, noWrap: v, ellipsis: D, width: R, render: U, defaultRender: i, customCellAttributes: J }, p);
7958
- })] }), te = L && b.jsx(Td, { colSpan: r.filter(({ hidden: x }) => !x).length + (d ? 1 : 0), open: L.isRowExpanded(t), content: L.content({ record: t, index: e }), collapseProps: L.collapseProps }), P = Ld({ record: t, index: e, selectionChecked: a, onClick: S, onDoubleClick: C, onContextMenu: k, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H });
7959
- return Z ? Z({ record: t, index: e, rowProps: P, children: ne, expandedElement: te }) : b.jsxs(b.Fragment, { children: [b.jsx(Wt, { ...P, children: ne }), te] });
7960
- }
7961
- function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: l, expansion: d, customAttributes: a, color: m, backgroundColor: y, className: _, style: O }) {
7962
- return { className: Oe("mantine-datatable-row", { [Ut]: n || i || d?.isExpandable({ record: t, index: e }) && d?.expandOnClick }, { [bs]: l }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (S) => {
7963
- if (d) {
7964
- let { isExpandable: C, isRowExpanded: k, expandOnClick: j, expandRow: $, collapseRow: z } = d;
7956
+ let { accessor: p, visibleMediaQuery: f, textAlign: d, noWrap: v, ellipsis: D, width: R, render: U, cellsClassName: K, cellsStyle: ee, customCellAttributes: J } = { ...n, ...h };
7957
+ return b.jsx(Ed, { className: typeof K == "function" ? K(t, e) : K, style: ee?.(t, e), visibleMediaQuery: f, record: t, index: e, onClick: j ? (ie) => j({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onDoubleClick: $ ? (ie) => $({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, onContextMenu: z ? (ie) => z({ event: ie, record: t, index: e, column: h, columnIndex: s }) : void 0, accessor: p, textAlign: d, noWrap: v, ellipsis: D, width: R, render: U, defaultRender: i, customCellAttributes: J }, p);
7958
+ })] }), te = L && b.jsx(Td, { colSpan: r.filter(({ hidden: x }) => !x).length + (u ? 1 : 0), open: L.isRowExpanded(t), content: L.content({ record: t, index: e }), collapseProps: L.collapseProps }), P = Ld({ record: t, index: e, selectionChecked: a, onClick: S, onDoubleClick: C, onContextMenu: k, expansion: L, customAttributes: V, color: F, backgroundColor: X, className: re, style: H });
7959
+ return Z ? Z({ record: t, index: e, rowProps: P, children: ne, expandedElement: te }) : b.jsxs(b.Fragment, { children: [b.jsx(Ft, { ...P, children: ne }), te] });
7960
+ }
7961
+ function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClick: i, onContextMenu: l, expansion: u, customAttributes: a, color: m, backgroundColor: y, className: _, style: O }) {
7962
+ return { className: je("mantine-datatable-row", { [Wt]: n || i || u?.isExpandable({ record: t, index: e }) && u?.expandOnClick }, { [bs]: l }, typeof _ == "function" ? _(t, e) : _), "data-selected": r || void 0, onClick: (S) => {
7963
+ if (u) {
7964
+ let { isExpandable: C, isRowExpanded: k, expandOnClick: j, expandRow: $, collapseRow: z } = u;
7965
7965
  C({ record: t, index: e }) && j && (k(t) ? z(t) : $(t));
7966
7966
  }
7967
7967
  n?.({ event: S, record: t, index: e });
@@ -7971,9 +7971,9 @@ function Ld({ record: t, index: e, selectionChecked: r, onClick: n, onDoubleClic
7971
7971
  } : void 0, O?.(t, e)], ...a?.(t, e) ?? {} };
7972
7972
  }
7973
7973
  function Id({ leftShadowBehind: t, rightShadowBehind: e, onScrollPositionChange: r, children: n, viewportRef: i, scrollAreaProps: l }) {
7974
- return b.jsxs(Ns, { ...l, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, b.jsx(je, { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), b.jsx("div", { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), b.jsx("div", { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), b.jsx(je, { className: Oe("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
7974
+ return b.jsxs(Ns, { ...l, viewportRef: i, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [n, b.jsx(Oe, { className: je("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), b.jsx("div", { className: je("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": t }) }), b.jsx("div", { className: je("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": e }) }), b.jsx(Oe, { className: je("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
7975
7975
  }
7976
- function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: l, shadow: d, verticalAlign: a = "center", fetching: m, columns: y, storeColumnsKey: _, groups: O, pinFirstColumn: S, pinLastColumn: C, defaultColumnProps: k, defaultColumnRender: j, idAccessor: $ = "id", records: z, selectionTrigger: L = "checkbox", selectedRecords: V, onSelectedRecordsChange: F, selectionColumnClassName: X, selectionColumnStyle: re, isRecordSelectable: H, selectionCheckboxProps: Q, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: W = (ye, Ie) => ({ "aria-label": `Select record ${Ie + 1}` }), sortStatus: Z, sortIcons: ne, onSortStatusChange: te, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: u = "Records per page", paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K = "sm", paginationText: ee = ({ from: ye, to: Ie, totalRecords: Ve }) => `${ye} - ${Ie} / ${Ve}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: ie = (ye) => ye === "previous" ? { "aria-label": "Previous page" } : ye === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: A, customLoader: N, loaderSize: E, loaderType: B, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: M, striped: T, noHeader: Y, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: G, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: xe, onScrollToBottom: _e, onScrollToLeft: Se, onScrollToRight: Ge, c: $e, backgroundColor: De, borderColor: Ot, rowBorderColor: Ae, stripedColor: Qe, highlightOnHoverColor: Ye, rowColor: nt, rowBackgroundColor: ct, rowExpansion: Re, rowClassName: ut, rowStyle: dt, customRowAttributes: Ze, scrollViewportRef: Ke, scrollAreaProps: ht, tableRef: gt, bodyRef: ot, m: ft, my: me, mx: Pe, mt: pt, mb: vt, ml: Nt, mr: bt, className: wt, classNames: Je, style: Lt, styles: we, rowFactory: ke, tableWrapper: mt, ...Ee }) {
7976
+ function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, height: n = "100%", minHeight: i, maxHeight: l, shadow: u, verticalAlign: a = "center", fetching: m, columns: y, storeColumnsKey: _, groups: O, pinFirstColumn: S, pinLastColumn: C, defaultColumnProps: k, defaultColumnRender: j, idAccessor: $ = "id", records: z, selectionTrigger: L = "checkbox", selectedRecords: V, onSelectedRecordsChange: F, selectionColumnClassName: X, selectionColumnStyle: re, isRecordSelectable: H, selectionCheckboxProps: Q, allRecordsSelectionCheckboxProps: q = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: W = (ye, Ie) => ({ "aria-label": `Select record ${Ie + 1}` }), sortStatus: Z, sortIcons: ne, onSortStatusChange: te, horizontalSpacing: P, page: x, onPageChange: w, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d = "Records per page", paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K = "sm", paginationText: ee = ({ from: ye, to: Ie, totalRecords: Ve }) => `${ye} - ${Ie} / ${Ve}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: ie = (ye) => ye === "previous" ? { "aria-label": "Previous page" } : ye === "next" ? { "aria-label": "Next page" } : {}, getPaginationItemProps: oe, renderPagination: ae, loaderBackgroundBlur: A, customLoader: N, loaderSize: E, loaderType: B, loaderColor: I, loadingText: le = "...", emptyState: o, noRecordsText: c = "No records", noRecordsIcon: g, highlightOnHover: M, striped: T, noHeader: Y, onRowClick: se, onRowDoubleClick: ue, onRowContextMenu: he, onCellClick: G, onCellDoubleClick: de, onCellContextMenu: pe, onScroll: fe, onScrollToTop: xe, onScrollToBottom: _e, onScrollToLeft: Se, onScrollToRight: Ge, c: $e, backgroundColor: De, borderColor: Ot, rowBorderColor: Ae, stripedColor: Qe, highlightOnHoverColor: Ye, rowColor: nt, rowBackgroundColor: ct, rowExpansion: Re, rowClassName: ut, rowStyle: dt, customRowAttributes: Ze, scrollViewportRef: Ke, scrollAreaProps: ht, tableRef: gt, bodyRef: ot, m: ft, my: me, mx: Pe, mt: pt, mb: vt, ml: Nt, mr: bt, className: wt, classNames: Je, style: Lt, styles: we, rowFactory: ke, tableWrapper: mt, ...Ee }) {
7977
7977
  let ye = et(() => O ? no(O) : y, [y, O]), [Ie, Ve] = be(!1), { refs: ze, onScroll: _s } = td({ scrollCallbacks: { onScroll: fe, onScrollToTop: xe, onScrollToBottom: _e, onScrollToLeft: Se, onScrollToRight: Ge }, withRowBorders: Ee.withRowBorders }), sn = ed({ key: _, columns: ye, headerRef: ze.header, scrollViewportRef: ze.scrollViewport, onFixedLayoutChange: Ve }), xs = go(ze.table, gt), Cs = go(ze.scrollViewport, Ke), Ss = cd({ rowExpansion: Re, records: z, idAccessor: $ }), mr = Ce(!1), so = Ce(x), an = Ce(z), Ds = Ne((ve) => {
7978
7978
  mr.current = !0, an.current = z, w(ve);
7979
7979
  }, [w, z]);
@@ -7990,11 +7990,11 @@ function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, hei
7990
7990
  });
7991
7991
  return () => cancelAnimationFrame(jt);
7992
7992
  }, [m, z, ze.scrollViewport]);
7993
- let ao = z?.map((ve) => Fe(ve, $)), It = !!V, Zt = V?.map((ve) => Fe(ve, $)), lo = ao !== void 0 && Zt !== void 0 && Zt.length > 0, ln = H ? z?.filter(H) : z, vr = ln?.map((ve) => Fe(ve, $)), br = lo && vr.every((ve) => Zt.includes(ve)), ks = lo && vr.some((ve) => Zt.includes(ve)), Ps = Ne(() => {
7993
+ let ao = z?.map((ve) => Fe(ve, $)), It = !!V, Qt = V?.map((ve) => Fe(ve, $)), lo = ao !== void 0 && Qt !== void 0 && Qt.length > 0, ln = H ? z?.filter(H) : z, vr = ln?.map((ve) => Fe(ve, $)), br = lo && vr.every((ve) => Qt.includes(ve)), ks = lo && vr.some((ve) => Qt.includes(ve)), Ps = Ne(() => {
7994
7994
  V && F && F(br ? V.filter((ve) => !vr.includes(Fe(ve, $))) : Sn([...V, ...ln], (ve) => Fe(ve, $)));
7995
7995
  }, [br, $, F, vr, ln, V]), { lastSelectionChangeIndex: wr, setLastSelectionChangeIndex: Os } = rd(ao), cn = It && !S, js = { m: ft, my: me, mx: Pe, mt: pt, mb: vt, ml: Nt, mr: bt }, Ms = Ne(({ children: ve }) => mt ? mt({ children: ve }) : ve, [mt]);
7996
- return b.jsx(yi, { ...sn, children: b.jsxs(je, { ref: ze.root, ...js, className: Oe("mantine-datatable", { "mantine-datatable-with-border": t }, wt, Je?.root), style: [(ve) => ({ ...Od({ theme: ve, c: $e, backgroundColor: De, borderColor: Ot, rowBorderColor: Ae, stripedColor: Qe, highlightOnHoverColor: Ye }), borderRadius: ve.radius[e] || e, boxShadow: ve.shadows[d] || d, height: n, minHeight: i, maxHeight: l }), Lt, we?.root, { position: "relative" }], children: [b.jsx(Id, { viewportRef: Cs, leftShadowBehind: It || !!S, rightShadowBehind: C, onScrollPositionChange: _s, scrollAreaProps: ht, children: b.jsx(Ms, { children: b.jsxs($s, { ref: xs, horizontalSpacing: P, className: Oe("mantine-datatable-table", { [dd]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": C, "mantine-datatable-selection-column-visible": It, "mantine-datatable-pin-first-column": S, "mantine-datatable-resizable-columns": sn.hasResizableColumns && Ie }, Je?.table), style: { ...we?.table }, "data-striped": yr && T || void 0, "data-highlight-on-hover": M || void 0, ...Ee, children: [Y ? null : b.jsx(yi, { ...sn, children: b.jsx(kd, { ref: ze.header, selectionColumnHeaderRef: ze.selectionColumnHeader, className: Je?.header, style: we?.header, columns: ye, defaultColumnProps: k, groups: O, sortStatus: Z, sortIcons: ne, onSortStatusChange: te, selectionTrigger: L, selectionVisible: It, selectionChecked: br, selectionIndeterminate: ks && !br, onSelectionChange: Ps, selectionCheckboxProps: { ...Q, ...q }, selectorCellShadowVisible: cn, selectionColumnClassName: X, selectionColumnStyle: re, withColumnBorders: Ee.withColumnBorders }) }), b.jsx("tbody", { ref: ot, children: yr ? z.map((ve, jt) => {
7997
- let un = Fe(ve, $), dn = Zt?.includes(un) || !1, co;
7996
+ return b.jsx(yi, { ...sn, children: b.jsxs(Oe, { ref: ze.root, ...js, className: je("mantine-datatable", { "mantine-datatable-with-border": t }, wt, Je?.root), style: [(ve) => ({ ...Od({ theme: ve, c: $e, backgroundColor: De, borderColor: Ot, rowBorderColor: Ae, stripedColor: Qe, highlightOnHoverColor: Ye }), borderRadius: ve.radius[e] || e, boxShadow: ve.shadows[u] || u, height: n, minHeight: i, maxHeight: l }), Lt, we?.root, { position: "relative" }], children: [b.jsx(Id, { viewportRef: Cs, leftShadowBehind: It || !!S, rightShadowBehind: C, onScrollPositionChange: _s, scrollAreaProps: ht, children: b.jsx(Ms, { children: b.jsxs($s, { ref: xs, horizontalSpacing: P, className: je("mantine-datatable-table", { [dd]: r, "mantine-datatable-vertical-align-top": a === "top", "mantine-datatable-vertical-align-bottom": a === "bottom", "mantine-datatable-pin-last-column": C, "mantine-datatable-selection-column-visible": It, "mantine-datatable-pin-first-column": S, "mantine-datatable-resizable-columns": sn.hasResizableColumns && Ie }, Je?.table), style: { ...we?.table }, "data-striped": yr && T || void 0, "data-highlight-on-hover": M || void 0, ...Ee, children: [Y ? null : b.jsx(yi, { ...sn, children: b.jsx(kd, { ref: ze.header, selectionColumnHeaderRef: ze.selectionColumnHeader, className: Je?.header, style: we?.header, columns: ye, defaultColumnProps: k, groups: O, sortStatus: Z, sortIcons: ne, onSortStatusChange: te, selectionTrigger: L, selectionVisible: It, selectionChecked: br, selectionIndeterminate: ks && !br, onSelectionChange: Ps, selectionCheckboxProps: { ...Q, ...q }, selectorCellShadowVisible: cn, selectionColumnClassName: X, selectionColumnStyle: re, withColumnBorders: Ee.withColumnBorders }) }), b.jsx("tbody", { ref: ot, children: yr ? z.map((ve, jt) => {
7997
+ let un = Fe(ve, $), dn = Qt?.includes(un) || !1, co;
7998
7998
  return F && V && (co = (As) => {
7999
7999
  if (As.nativeEvent.shiftKey && wr !== null) {
8000
8000
  let Bt = z.filter(jt > wr ? (Mt, At) => At >= wr && At <= jt && (H ? H(Mt, At) : !0) : (Mt, At) => At >= jt && At <= wr && (H ? H(Mt, At) : !0));
@@ -8002,7 +8002,7 @@ function Bd({ withTableBorder: t, borderRadius: e, textSelectionDisabled: r, hei
8002
8002
  } else F(dn ? V.filter((Bt) => Fe(Bt, $) !== un) : Sn([...V, ve], (Bt) => Fe(Bt, $)));
8003
8003
  Os(jt);
8004
8004
  }), b.jsx(Nd, { record: ve, index: jt, columns: ye, defaultColumnProps: k, defaultColumnRender: j, selectionTrigger: L, selectionVisible: It, selectionChecked: dn, onSelectionChange: co, isRecordSelectable: H, selectionCheckboxProps: Q, getSelectionCheckboxProps: W, onClick: se, onDoubleClick: ue, onCellClick: G, onCellDoubleClick: de, onContextMenu: he, onCellContextMenu: pe, expansion: Ss, color: nt, backgroundColor: ct, className: ut, style: dt, customAttributes: Ze, selectorCellShadowVisible: cn, selectionColumnClassName: X, selectionColumnStyle: re, idAccessor: $, rowFactory: ke }, un);
8005
- }) : b.jsx(Gu, {}) }), ye.some(({ footer: ve }) => ve) && b.jsx(pd, { ref: ze.footer, className: Je?.footer, style: we?.footer, columns: ye, defaultColumnProps: k, selectionVisible: It, selectorCellShadowVisible: cn })] }) }) }), x && b.jsx(Rd, { className: Je?.pagination, style: we?.pagination, horizontalSpacing: P, fetching: m, page: x, onPageChange: Ds, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: u, paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K, paginationText: ee, paginationWrapBreakpoint: J, getPaginationControlProps: ie, getPaginationItemProps: oe, noRecordsText: c, loadingText: le, recordsLength: yr, renderPagination: ae }), b.jsx(Pd, { fetching: m, backgroundBlur: A, customContent: N, size: E, type: B, color: I }), b.jsx(Zu, { icon: g, text: c, active: !m && !yr, children: o })] }) });
8005
+ }) : b.jsx(Gu, {}) }), ye.some(({ footer: ve }) => ve) && b.jsx(pd, { ref: ze.footer, className: Je?.footer, style: we?.footer, columns: ye, defaultColumnProps: k, selectionVisible: It, selectorCellShadowVisible: cn })] }) }) }), x && b.jsx(Rd, { className: Je?.pagination, style: we?.pagination, horizontalSpacing: P, fetching: m, page: x, onPageChange: Ds, totalRecords: h, recordsPerPage: s, onRecordsPerPageChange: p, recordsPerPageOptions: f, recordsPerPageLabel: d, paginationWithEdges: v, paginationWithControls: D, paginationActiveTextColor: R, paginationActiveBackgroundColor: U, paginationSize: K, paginationText: ee, paginationWrapBreakpoint: J, getPaginationControlProps: ie, getPaginationItemProps: oe, noRecordsText: c, loadingText: le, recordsLength: yr, renderPagination: ae }), b.jsx(Pd, { fetching: m, backgroundBlur: A, customContent: N, size: E, type: B, color: I }), b.jsx(Zu, { icon: g, text: c, active: !m && !yr, children: o })] }) });
8006
8006
  }
8007
8007
  function Yd(t) {
8008
8008
  const e = He.c(42), {
@@ -8010,12 +8010,12 @@ function Yd(t) {
8010
8010
  onClose: n,
8011
8011
  queryKey: i,
8012
8012
  apiPath: l,
8013
- id: d,
8013
+ id: u,
8014
8014
  steps: a
8015
8015
  } = t, [m, y] = be(0), [_, O] = be(!1), {
8016
8016
  data: S,
8017
8017
  isLoading: C
8018
- } = Yc(l, i, d), {
8018
+ } = Yc(l, i, u), {
8019
8019
  mutateAsync: k,
8020
8020
  isError: j,
8021
8021
  error: $,
@@ -8057,43 +8057,43 @@ function Yd(t) {
8057
8057
  }, e[17] = Z) : Z = e[17];
8058
8058
  const ne = Z;
8059
8059
  let te;
8060
- e[18] !== Q || e[19] !== d ? (te = function(p) {
8060
+ e[18] !== Q || e[19] !== u ? (te = function(p) {
8061
8061
  const f = Q.getValues();
8062
8062
  if (p.conditional && !p.conditional(f))
8063
8063
  return null;
8064
- const u = ne(p, f);
8064
+ const d = ne(p, f);
8065
8065
  return /* @__PURE__ */ b.jsxs(Pi, { children: [
8066
- (p.type === void 0 || p.type == "text") && /* @__PURE__ */ b.jsx(Mi, { label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), type: p.id.includes("email") ? "email" : void 0, required: u }, Q.key(p.id)),
8067
- p.type === "number" && /* @__PURE__ */ b.jsx(Ai, { decimalSeparator: ",", label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), required: u }, Q.key(p.id)),
8068
- p.type === "date" && /* @__PURE__ */ b.jsx(en, { label: p.column.title, placeholder: p.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...Q.getInputProps(p.id), required: u }, Q.key(p.id)),
8069
- p.type === "boolean" && /* @__PURE__ */ b.jsx(qt, { mt: "md", label: p.column.title, ...Q.getInputProps(p.id, {
8066
+ (p.type === void 0 || p.type == "text") && /* @__PURE__ */ b.jsx(Mi, { label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), type: p.id.includes("email") ? "email" : void 0, required: d }, Q.key(p.id)),
8067
+ p.type === "number" && /* @__PURE__ */ b.jsx(Ai, { decimalSeparator: ",", label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), required: d }, Q.key(p.id)),
8068
+ p.type === "date" && /* @__PURE__ */ b.jsx(en, { label: p.column.title, placeholder: p.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...Q.getInputProps(p.id), required: d }, Q.key(p.id)),
8069
+ p.type === "boolean" && /* @__PURE__ */ b.jsx(Ut, { mt: "md", label: p.column.title, ...Q.getInputProps(p.id, {
8070
8070
  type: "checkbox"
8071
- }), required: u }, Q.key(p.id)),
8072
- p.type === "textarea" && /* @__PURE__ */ b.jsx(Ri, { label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), minRows: 3, autosize: !0, required: u }, Q.key(p.id)),
8071
+ }), required: d }, Q.key(p.id)),
8072
+ p.type === "textarea" && /* @__PURE__ */ b.jsx(Ri, { label: p.column.title, placeholder: p.placeholder ?? "", ...Q.getInputProps(p.id), minRows: 3, autosize: !0, required: d }, Q.key(p.id)),
8073
8073
  p.type === "custom" && p.render && p.render({
8074
8074
  ...Q.getValues(),
8075
- id: d
8075
+ id: u
8076
8076
  }, Q.setValues, O, {
8077
8077
  error: Q.getInputProps(p.id).error,
8078
- required: u
8078
+ required: d
8079
8079
  })
8080
8080
  ] }, p.id);
8081
- }, e[18] = Q, e[19] = d, e[20] = te) : te = e[20];
8081
+ }, e[18] = Q, e[19] = u, e[20] = te) : te = e[20];
8082
8082
  const P = te;
8083
8083
  let x;
8084
8084
  e[21] !== j || e[22] !== $?.message || e[23] !== $?.name ? (x = j && /* @__PURE__ */ b.jsx(Ir, { variant: "outline", color: "red", title: $?.name ?? "Fehler aufgetreten", mb: "lg", children: $?.message ?? "Fehler aufgetreten" }), e[21] = j, e[22] = $?.message, e[23] = $?.name, e[24] = x) : x = e[24];
8085
8085
  let w;
8086
- e[25] !== m || e[26] !== r || e[27] !== Q || e[28] !== _ || e[29] !== d || e[30] !== C || e[31] !== z || e[32] !== j || e[33] !== n || e[34] !== P || e[35] !== a || e[36] !== F || e[37] !== k ? (w = C ? /* @__PURE__ */ b.jsxs(ur, { gap: "md", children: [
8087
- /* @__PURE__ */ b.jsx(Ft, { height: 40 }),
8086
+ e[25] !== m || e[26] !== r || e[27] !== Q || e[28] !== _ || e[29] !== u || e[30] !== C || e[31] !== z || e[32] !== j || e[33] !== n || e[34] !== P || e[35] !== a || e[36] !== F || e[37] !== k ? (w = C ? /* @__PURE__ */ b.jsxs(ur, { gap: "md", children: [
8087
+ /* @__PURE__ */ b.jsx(zt, { height: 40 }),
8088
8088
  Array(r.length).fill(0).map(zd),
8089
8089
  /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
8090
- /* @__PURE__ */ b.jsx(Ft, { width: 100, height: 36 }),
8091
- /* @__PURE__ */ b.jsx(Ft, { width: 100, height: 36 })
8090
+ /* @__PURE__ */ b.jsx(zt, { width: 100, height: 36 }),
8091
+ /* @__PURE__ */ b.jsx(zt, { width: 100, height: 36 })
8092
8092
  ] })
8093
8093
  ] }) : /* @__PURE__ */ b.jsxs("form", { onSubmit: Q.onSubmit(async (s) => {
8094
8094
  await k({
8095
8095
  ...s,
8096
- id: d
8096
+ id: u
8097
8097
  }), F.length && m < F.length - 1 ? j || y(m + 1) : j || (Q.setInitialValues(s), Q.reset(), n());
8098
8098
  }), children: [
8099
8099
  F.length ? /* @__PURE__ */ b.jsx(Rr, { active: m, size: "sm", children: F.map((s) => /* @__PURE__ */ b.jsx(Rr.Step, { ...a && a[s - 1] ? {
@@ -8103,7 +8103,7 @@ function Yd(t) {
8103
8103
  /* @__PURE__ */ b.jsx(yt, { onClick: () => F.length ? m === 0 ? n() : y(m - 1) : n(), variant: "outline", children: F.length ? m === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
8104
8104
  /* @__PURE__ */ b.jsx(yt, { type: "submit", loading: z, children: F.length ? m === F.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
8105
8105
  ] })
8106
- ] }), e[25] = m, e[26] = r, e[27] = Q, e[28] = _, e[29] = d, e[30] = C, e[31] = z, e[32] = j, e[33] = n, e[34] = P, e[35] = a, e[36] = F, e[37] = k, e[38] = w) : w = e[38];
8106
+ ] }), e[25] = m, e[26] = r, e[27] = Q, e[28] = _, e[29] = u, e[30] = C, e[31] = z, e[32] = j, e[33] = n, e[34] = P, e[35] = a, e[36] = F, e[37] = k, e[38] = w) : w = e[38];
8107
8107
  let h;
8108
8108
  return e[39] !== x || e[40] !== w ? (h = /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8109
8109
  x,
@@ -8111,7 +8111,7 @@ function Yd(t) {
8111
8111
  ] }), e[39] = x, e[40] = w, e[41] = h) : h = e[41], h;
8112
8112
  }
8113
8113
  function zd(t, e) {
8114
- return /* @__PURE__ */ b.jsx(Ft, { height: 35 }, `skeleton-field-${e}`);
8114
+ return /* @__PURE__ */ b.jsx(zt, { height: 35 }, `skeleton-field-${e}`);
8115
8115
  }
8116
8116
  function Fd(t, e) {
8117
8117
  return t[e.id] = (r, n) => e.conditional && !e.conditional(n) || !(typeof e.required == "function" ? e.required(n) : !!e.required) || r ? null : "Pflichtfeld", t;
@@ -8137,13 +8137,13 @@ function Hd({
8137
8137
  const {
8138
8138
  mutateAsync: i,
8139
8139
  isError: l,
8140
- error: d,
8140
+ error: u,
8141
8141
  isPending: a
8142
8142
  } = Qc(e, t), [m, y] = be(n), [_, O] = be(!1), S = _ || a;
8143
8143
  return Te(() => {
8144
8144
  m.length || r();
8145
8145
  }, [r, m]), m.length ? /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8146
- l && d.message && /* @__PURE__ */ b.jsx(Ir, { variant: "outline", color: "red", title: d.name, children: d.message }),
8146
+ l && u.message && /* @__PURE__ */ b.jsx(Ir, { variant: "outline", color: "red", title: u.name, children: u.message }),
8147
8147
  /* @__PURE__ */ b.jsx(lt, { children: m.length === 1 ? `Soll ${m.length} Eintrag wirklich gelöscht werden?` : `Sollen ${m.length} Einträge wirklich gelöscht werden?` }),
8148
8148
  /* @__PURE__ */ b.jsxs(qe, { mt: "md", justify: "end", children: [
8149
8149
  /* @__PURE__ */ b.jsx(yt, { onClick: r, variant: "outline", disabled: S, children: "Abbrechen" }),
@@ -8166,11 +8166,11 @@ function Gd(t, e) {
8166
8166
  return y ? JSON.parse(y) : t;
8167
8167
  }, r[0] = t, r[1] = e, r[2] = n) : n = r[2];
8168
8168
  const [i, l] = be(n);
8169
- let d;
8170
- r[3] !== e ? (d = (y) => {
8169
+ let u;
8170
+ r[3] !== e ? (u = (y) => {
8171
8171
  l(y), localStorage.setItem(`use_persistent_storage_${e}`, JSON.stringify(y));
8172
- }, r[3] = e, r[4] = d) : d = r[4];
8173
- const a = d;
8172
+ }, r[3] = e, r[4] = u) : u = r[4];
8173
+ const a = u;
8174
8174
  let m;
8175
8175
  return r[5] !== a || r[6] !== i ? (m = [i, a], r[5] = a, r[6] = i, r[7] = m) : m = r[7], m;
8176
8176
  }
@@ -8181,7 +8181,7 @@ const Qd = (t, e) => {
8181
8181
  string: 0,
8182
8182
  number: 0,
8183
8183
  date: 0
8184
- }, d = [
8184
+ }, u = [
8185
8185
  /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,
8186
8186
  // ISO datetime
8187
8187
  /^\d{4}-\d{2}-\d{2}$/,
@@ -8200,7 +8200,7 @@ const Qd = (t, e) => {
8200
8200
  l.number++;
8201
8201
  return;
8202
8202
  }
8203
- if (d.some((_) => _.test(y))) {
8203
+ if (u.some((_) => _.test(y))) {
8204
8204
  const _ = new Date(y);
8205
8205
  if (!isNaN(_.getTime())) {
8206
8206
  l.date++;
@@ -8216,8 +8216,8 @@ const Qd = (t, e) => {
8216
8216
  if (!t || t.length === 0) return [];
8217
8217
  const n = `${String(e)}_${t.length}`;
8218
8218
  let i = Di.get(n);
8219
- return i || (i = Qd(t, e), Di.set(n, i)), [...t].sort((d, a) => {
8220
- const m = d[e], y = a[e], _ = m == null || m === "", O = y == null || y === "";
8219
+ return i || (i = Qd(t, e), Di.set(n, i)), [...t].sort((u, a) => {
8220
+ const m = u[e], y = a[e], _ = m == null || m === "", O = y == null || y === "";
8221
8221
  if (_ && O) return 0;
8222
8222
  if (_) return r === "asc" ? -1 : 1;
8223
8223
  if (O) return r === "asc" ? 1 : -1;
@@ -8280,10 +8280,10 @@ function Xd(t) {
8280
8280
  } = t, i = r.column.title ?? r.id;
8281
8281
  let l;
8282
8282
  e[0] !== i ? (l = /* @__PURE__ */ b.jsx(lt, { fw: 700, fz: "sm", children: i }), e[0] = i, e[1] = l) : l = e[1];
8283
- let d;
8284
- e[2] !== r || e[3] !== n ? (d = Jd(n, r), e[2] = r, e[3] = n, e[4] = d) : d = e[4];
8283
+ let u;
8284
+ e[2] !== r || e[3] !== n ? (u = Jd(n, r), e[2] = r, e[3] = n, e[4] = u) : u = e[4];
8285
8285
  let a;
8286
- e[5] !== d ? (a = /* @__PURE__ */ b.jsx(je, { ta: "right", children: d }), e[5] = d, e[6] = a) : a = e[6];
8286
+ e[5] !== u ? (a = /* @__PURE__ */ b.jsx(Oe, { ta: "right", children: u }), e[5] = u, e[6] = a) : a = e[6];
8287
8287
  let m;
8288
8288
  return e[7] !== l || e[8] !== a ? (m = /* @__PURE__ */ b.jsxs(qe, { wrap: "nowrap", justify: "space-between", py: "xs", px: "sm", children: [
8289
8289
  l,
@@ -8296,7 +8296,7 @@ function eh(t) {
8296
8296
  fields: n,
8297
8297
  selection: i,
8298
8298
  selectedRecords: l,
8299
- onSelectedRecordsChange: d,
8299
+ onSelectedRecordsChange: u,
8300
8300
  onRowClick: a,
8301
8301
  pagination: m,
8302
8302
  sort: y,
@@ -8317,7 +8317,7 @@ function eh(t) {
8317
8317
  }, e[3] = $) : $ = e[3];
8318
8318
  const z = $;
8319
8319
  let L, V, F, X, re, H;
8320
- if (e[4] !== k || e[5] !== n || e[6] !== a || e[7] !== d || e[8] !== r || e[9] !== _ || e[10] !== S || e[11] !== i || e[12] !== y) {
8320
+ if (e[4] !== k || e[5] !== n || e[6] !== a || e[7] !== u || e[8] !== r || e[9] !== _ || e[10] !== S || e[11] !== i || e[12] !== y) {
8321
8321
  H = Symbol.for("react.early_return_sentinel");
8322
8322
  e: {
8323
8323
  const W = n.filter(ih), Z = W.filter(oh).map(nh);
@@ -8325,9 +8325,9 @@ function eh(t) {
8325
8325
  e[19] !== S ? (ne = (s) => S.some((p) => p.id === s.id), e[19] = S, e[20] = ne) : ne = e[20];
8326
8326
  const te = ne;
8327
8327
  let P;
8328
- e[21] !== te || e[22] !== d || e[23] !== S ? (P = (s) => {
8329
- d && (te(s) ? d(S.filter((p) => p.id !== s.id)) : d([...S, s]));
8330
- }, e[21] = te, e[22] = d, e[23] = S, e[24] = P) : P = e[24];
8328
+ e[21] !== te || e[22] !== u || e[23] !== S ? (P = (s) => {
8329
+ u && (te(s) ? u(S.filter((p) => p.id !== s.id)) : u([...S, s]));
8330
+ }, e[21] = te, e[22] = u, e[23] = S, e[24] = P) : P = e[24];
8331
8331
  const x = P;
8332
8332
  let w;
8333
8333
  e[25] !== a || e[26] !== i || e[27] !== x ? (w = (s, p, f) => {
@@ -8349,19 +8349,19 @@ function eh(t) {
8349
8349
  } }),
8350
8350
  /* @__PURE__ */ b.jsx(dr, { variant: "filled", size: "input-sm", onClick: () => y.onSortChange(y.field, y.direction === "asc" ? "desc" : "asc"), children: y.direction === "asc" ? /* @__PURE__ */ b.jsx(Hs, { size: 18 }) : /* @__PURE__ */ b.jsx(Gs, { size: 18 }) })
8351
8351
  ] }), re = r.map((s, p) => {
8352
- const f = te(s), u = !!a || !!i, v = k.has(s.id);
8353
- return /* @__PURE__ */ b.jsx(Ct.Fragment, { children: /* @__PURE__ */ b.jsxs(je, { bg: f ? "var(--mantine-primary-color-light)" : p % 2 === 0 ? "var(--mantine-color-gray-0)" : "white", bd: p % 2 === 1 && !f ? "1px solid var(--mantine-color-gray-2)" : void 0, style: {
8352
+ const f = te(s), d = !!a || !!i, v = k.has(s.id);
8353
+ return /* @__PURE__ */ b.jsx(Ct.Fragment, { children: /* @__PURE__ */ b.jsxs(Oe, { bg: f ? "var(--mantine-primary-color-light)" : p % 2 === 0 ? "var(--mantine-color-gray-0)" : "white", bd: f ? void 0 : "1px solid var(--mantine-color-gray-2)", style: {
8354
8354
  borderRadius: "var(--mantine-radius-md)",
8355
8355
  overflow: "hidden"
8356
8356
  }, children: [
8357
- /* @__PURE__ */ b.jsxs(zt, { w: "100%", style: {
8358
- cursor: u || _ ? "pointer" : "default"
8357
+ /* @__PURE__ */ b.jsxs(Oe, { w: "100%", style: {
8358
+ cursor: d || _ ? "pointer" : "default"
8359
8359
  }, onClick: (D) => {
8360
8360
  _ && !a ? z(s.id) : h(s, p, D);
8361
- }, component: u || _ ? void 0 : "div", children: [
8361
+ }, children: [
8362
8362
  (i || _) && /* @__PURE__ */ b.jsxs(qe, { px: "sm", pt: "sm", justify: "space-between", children: [
8363
- i ? /* @__PURE__ */ b.jsx(qt, { checked: f, onChange: () => x(s), onClick: rh }) : /* @__PURE__ */ b.jsx("span", {}),
8364
- _ && /* @__PURE__ */ b.jsx(je, { c: "dimmed", style: {
8363
+ i ? /* @__PURE__ */ b.jsx(Ut, { checked: f, onChange: () => x(s), onClick: rh }) : /* @__PURE__ */ b.jsx("span", {}),
8364
+ _ && /* @__PURE__ */ b.jsx(Oe, { c: "dimmed", style: {
8365
8365
  cursor: "pointer",
8366
8366
  display: "flex",
8367
8367
  alignItems: "center"
@@ -8379,12 +8379,12 @@ function eh(t) {
8379
8379
  ] }),
8380
8380
  _ && /* @__PURE__ */ b.jsxs($i, { in: v, children: [
8381
8381
  /* @__PURE__ */ b.jsx(po, {}),
8382
- /* @__PURE__ */ b.jsx(je, { px: "sm", py: "sm", children: _.content(s) })
8382
+ /* @__PURE__ */ b.jsx(Oe, { px: "sm", py: "sm", children: _.content(s) })
8383
8383
  ] })
8384
8384
  ] }) }, s.id);
8385
8385
  });
8386
8386
  }
8387
- e[4] = k, e[5] = n, e[6] = a, e[7] = d, e[8] = r, e[9] = _, e[10] = S, e[11] = i, e[12] = y, e[13] = L, e[14] = V, e[15] = F, e[16] = X, e[17] = re, e[18] = H;
8387
+ e[4] = k, e[5] = n, e[6] = a, e[7] = u, e[8] = r, e[9] = _, e[10] = S, e[11] = i, e[12] = y, e[13] = L, e[14] = V, e[15] = F, e[16] = X, e[17] = re, e[18] = H;
8388
8388
  } else
8389
8389
  L = e[13], V = e[14], F = e[15], X = e[16], re = e[17], H = e[18];
8390
8390
  if (H !== Symbol.for("react.early_return_sentinel"))
@@ -8432,7 +8432,7 @@ function sh(t) {
8432
8432
  queryKey: n,
8433
8433
  connectedQueryKeys: i,
8434
8434
  apiPath: l,
8435
- mutationApiPath: d,
8435
+ mutationApiPath: u,
8436
8436
  buttons: a,
8437
8437
  fields: m,
8438
8438
  selection: y,
@@ -8462,7 +8462,7 @@ function sh(t) {
8462
8462
  const s = h, p = L?.find((we) => we.value === w)?.queryParams || {}, f = {
8463
8463
  ...z,
8464
8464
  ...p
8465
- }, u = f ? "?" + Object.entries(f).filter(yh).map(mh).join("&") : "";
8465
+ }, d = f ? "?" + Object.entries(f).filter(yh).map(mh).join("&") : "";
8466
8466
  let v;
8467
8467
  e[3] !== w || e[4] !== n ? (v = w ? [...n, w] : n, e[3] = w, e[4] = n, e[5] = v) : v = e[5];
8468
8468
  const D = v, {
@@ -8471,7 +8471,7 @@ function sh(t) {
8471
8471
  isError: K,
8472
8472
  isRefetching: ee,
8473
8473
  refetch: J
8474
- } = Fc(l + u, D), {
8474
+ } = Fc(l + d, D), {
8475
8475
  queryClient: ie
8476
8476
  } = $t();
8477
8477
  let oe, ae;
@@ -8581,12 +8581,12 @@ function sh(t) {
8581
8581
  e[49] !== K ? (dt = K && /* @__PURE__ */ b.jsx(Ir, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ b.jsx(ea, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), e[49] = K, e[50] = dt) : dt = e[50];
8582
8582
  let Ze;
8583
8583
  e[51] !== U || e[52] !== ee ? (Ze = (U || ee) && /* @__PURE__ */ b.jsxs(ur, { my: "md", children: [
8584
- /* @__PURE__ */ b.jsx(Ft, { height: 40 }),
8584
+ /* @__PURE__ */ b.jsx(zt, { height: 40 }),
8585
8585
  Array(5).fill(0).map(uh)
8586
8586
  ] }), e[51] = U, e[52] = ee, e[53] = Ze) : Ze = e[53];
8587
8587
  let Ke;
8588
8588
  e[54] !== m || e[55] !== c || e[56] !== K || e[57] !== U || e[58] !== ee || e[59] !== te || e[60] !== W || e[61] !== Y || e[62] !== M || e[63] !== _ || e[64] !== ue || e[65] !== q || e[66] !== G || e[67] !== y || e[68] !== se || e[69] !== T || e[70] !== I || e[71] !== g ? (Ke = !U && !ee && /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
8589
- /* @__PURE__ */ b.jsx(je, { ...te ? {
8589
+ /* @__PURE__ */ b.jsx(Oe, { ...te ? {
8590
8590
  visibleFrom: "sm"
8591
8591
  } : {}, children: /* @__PURE__ */ b.jsx(Bd, { my: "md", striped: !0, highlightOnHover: !0, minHeight: 150, fetching: K, records: ue, sortStatus: I, onSortStatusChange: c, ...y && {
8592
8592
  selectedRecords: G,
@@ -8617,7 +8617,7 @@ function sh(t) {
8617
8617
  cursor: "pointer"
8618
8618
  }
8619
8619
  } }) }),
8620
- te && /* @__PURE__ */ b.jsx(je, { hiddenFrom: "sm", children: /* @__PURE__ */ b.jsx(eh, { records: ue, fields: m, selection: y, selectedRecords: G, onSelectedRecordsChange: de, onRowClick: W, sort: {
8620
+ te && /* @__PURE__ */ b.jsx(Oe, { hiddenFrom: "sm", children: /* @__PURE__ */ b.jsx(eh, { records: ue, fields: m, selection: y, selectedRecords: G, onSelectedRecordsChange: de, onRowClick: W, sort: {
8621
8621
  field: String(I.columnAccessor),
8622
8622
  direction: I.direction,
8623
8623
  onSortChange: (we, ke) => {
@@ -8649,22 +8649,22 @@ function sh(t) {
8649
8649
  }, e[73] = ht) : ht = e[73];
8650
8650
  const gt = r ?? "Bearbeiten";
8651
8651
  let ot;
8652
- e[74] !== l || e[75] !== m || e[76] !== d || e[77] !== n || e[78] !== G[0] || e[79] !== G.length || e[80] !== C ? (ot = G.length > 0 && /* @__PURE__ */ b.jsx(Yd, { fields: m.filter(lh), queryKey: n, apiPath: d ?? l, id: G[0].id, onClose: () => {
8652
+ e[74] !== l || e[75] !== m || e[76] !== u || e[77] !== n || e[78] !== G[0] || e[79] !== G.length || e[80] !== C ? (ot = G.length > 0 && /* @__PURE__ */ b.jsx(Yd, { fields: m.filter(lh), queryKey: n, apiPath: u ?? l, id: G[0].id, onClose: () => {
8653
8653
  Ge(!1), de([]);
8654
- }, steps: C }), e[74] = l, e[75] = m, e[76] = d, e[77] = n, e[78] = G[0], e[79] = G.length, e[80] = C, e[81] = ot) : ot = e[81];
8654
+ }, steps: C }), e[74] = l, e[75] = m, e[76] = u, e[77] = n, e[78] = G[0], e[79] = G.length, e[80] = C, e[81] = ot) : ot = e[81];
8655
8655
  let ft;
8656
8656
  e[82] !== gt || e[83] !== ot || e[84] !== Se ? (ft = /* @__PURE__ */ b.jsx(hn, { opened: Se, onClose: ht, title: gt, children: ot }), e[82] = gt, e[83] = ot, e[84] = Se, e[85] = ft) : ft = e[85];
8657
8657
  let me;
8658
- e[86] !== l || e[87] !== $e || e[88] !== d || e[89] !== n || e[90] !== G || e[91] !== r ? (me = G.length > 0 && /* @__PURE__ */ b.jsx(hn, { opened: $e, onClose: () => {
8658
+ e[86] !== l || e[87] !== $e || e[88] !== u || e[89] !== n || e[90] !== G || e[91] !== r ? (me = G.length > 0 && /* @__PURE__ */ b.jsx(hn, { opened: $e, onClose: () => {
8659
8659
  De(!1), de([]);
8660
8660
  }, title: r ?? "Löschen", children: /* @__PURE__ */ b.jsx(Hd, { onClose: () => {
8661
8661
  De(!1), de([]);
8662
- }, queryKey: n, apiPath: d ?? l, selectedRecords: G }) }), e[86] = l, e[87] = $e, e[88] = d, e[89] = n, e[90] = G, e[91] = r, e[92] = me) : me = e[92];
8662
+ }, queryKey: n, apiPath: u ?? l, selectedRecords: G }) }), e[86] = l, e[87] = $e, e[88] = u, e[89] = n, e[90] = G, e[91] = r, e[92] = me) : me = e[92];
8663
8663
  let Pe;
8664
8664
  e[93] === Symbol.for("react.memo_cache_sentinel") ? (Pe = () => {
8665
8665
  _e(!1);
8666
8666
  }, e[93] = Pe) : Pe = e[93];
8667
- const pt = r ?? "Anlegen", vt = d ?? l;
8667
+ const pt = r ?? "Anlegen", vt = u ?? l;
8668
8668
  let Nt;
8669
8669
  e[94] === Symbol.for("react.memo_cache_sentinel") ? (Nt = () => {
8670
8670
  _e(!1);
@@ -8697,7 +8697,7 @@ function ch(t) {
8697
8697
  return t.column;
8698
8698
  }
8699
8699
  function uh(t, e) {
8700
- return /* @__PURE__ */ b.jsx(Ft, { height: 35 }, `skeleton-${e}`);
8700
+ return /* @__PURE__ */ b.jsx(zt, { height: 35 }, `skeleton-${e}`);
8701
8701
  }
8702
8702
  function dh(t) {
8703
8703
  return /* @__PURE__ */ b.jsx(kn.Tab, { value: t.value, leftSection: t.icon, children: t.label }, t.value);
@@ -8742,7 +8742,7 @@ export {
8742
8742
  Ic as createOne,
8743
8743
  Lc as deleteOne,
8744
8744
  $c as getAll,
8745
- Qt as getApiHeaders,
8745
+ Gt as getApiHeaders,
8746
8746
  Nc as getOne,
8747
8747
  Zd as sortData,
8748
8748
  Bc as updateOne,