PageSourceSearch

https://cecindia.in/build/assets/DataTable-DXXTEaVG.js

js cecindia.in collected 2026-10-07 19:35:20 UTC 285,036 bytes, 2,994 lines download raw bytes

1var __defProp = Object.defineProperty;
2var __defProps = Object.defineProperties;
3var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5var __hasOwnProp = Object.prototype.hasOwnProperty;
6var __propIsEnum = Object.prototype.propertyIsEnumerable;
7var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8var __spreadValues = (a2, b) => {
9  for (var prop in b || (b = {}))
10    if (__hasOwnProp.call(b, prop))
11      __defNormalProp(a2, prop, b[prop]);
12  if (__getOwnPropSymbols)
13    for (var prop of __getOwnPropSymbols(b)) {
14      if (__propIsEnum.call(b, prop))
15        __defNormalProp(a2, prop, b[prop]);
16    }
17  return a2;
18};
19var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
20var __restKey = (key) => typeof key === "symbol" ? key : key + "";
21var __objRest = (source, exclude) => {
22  var target = {};
23  for (var prop in source)
24    if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25      target[prop] = source[prop];
26  if (source != null && __getOwnPropSymbols)
27    for (var prop of __getOwnPropSymbols(source)) {
28      if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29        target[prop] = source[prop];
30    }
31  return target;
32};
33import { r as x, p as Gt, M as fi, q as mi, f as He, e as ke, s as Kt, j as a, b as Ft, g as Ze, h as rt, B as me, l as ht, t as Ln, v as ft, w as Xt, y as Xe, C as hi, z as Go, D as Lo, E as st, U as Wo, F as qo, H as vi, P as bi, I as B, a as it, T as Uo, G as _o, J as Ci, K as _i, u as Ko } from "./app-BVOYVG7k.js";
34import { I as wi } from "./IconX-B02OIiLB.js";
35import { c as we } from "./createReactComponent-CgpWWcBx.js";
36import { I as Ri } from "./IconSearch-BvAEZ284.js";
37import { I as Si, a as xi, S as yi } from "./IconFilter-DFGwoFes.js";
38import { I as Mi } from "./IconEdit-TMQJhhSN.js";
39import { b as Ti } from "./IconFilePlus-Bwc005le.js";
40import { I as Fi } from "./IconDots-CVSn8AVb.js";
41import { I as ji } from "./IconChevronRight-LyyKBjHa.js";
42import { I as Pi } from "./IconChevronLeft-DLB-4HEa.js";
43import { u as Xo, F as Te, T as mt } from "./CustomLink-XGyApNzz.js";
44import { T as he } from "./Tooltip-DQtCt5Ez.js";
45import { A as fe } from "./ActionIcon-WquhAb2j.js";
46import { S as Zo } from "./Switch-CdSrOaZs.js";
47import { g as Wn } from "./get-auto-contrast-value-Da6zqqWm.js";
48import { I as Ii, a as Oi } from "./InputsGroupFieldset-Bu_jnASW.js";
49import { a as Zt, u as Ei, I as Jo } from "./InputBase-8b8fiagz.js";
50import { u as jt } from "./use-uncontrolled--dmjAI3_.js";
51import { C as Yo } from "./Checkbox-Bwc9mJYu.js";
52import { L as Di } from "./LoadingOverlay-BOitRfTP.js";
53import { M as ue } from "./Menu-nVDi7ttA.js";
54import { g as Qo, a as el, u as tl, C as Le, O as nl, i as zi, S as qn } from "./Select-BvO4GYK6.js";
55import { T as Un } from "./TextInput-CNmGFmvf.js";
56import { B as ol } from "./Badge-B4uWhfqf.js";
57import { C as It } from "./Collapse-BplwRG9U.js";
58import { A as Ai } from "./Alert-Bih1WNpG.js";
59import { S as ll } from "./Stack-D6_bkFI-.js";
60import { P as Vi } from "./Pagination-BkG53CDm.js";
61import { P as ki } from "./Progress-C9PiI6sJ.js";
62import { n as $i, P as gn } from "./Popover-JBdGCrAF.js";
63import { T as Hi, a as Bi, b as Ot, c as Kn, d as pn, e as Ni, f as Xn } from "./Table-CCCk1iFc.js";
64import { l as il } from "./lighten-D2OSxsI2.js";
65import { c as rl, g as wo, a as Gi, u as Li, S as Wi, b as qi, T as Ui, d as Ro, e as Qe, f as So, h as Dt, i as zt, j as Ki, k as Xi, l as Zi } from "./Slider.module.css-DjQY2pQj.js";
66import { D as Ji } from "./DateInput-Qlol8fKA.js";
67import { H as Yi } from "./Highlight-BESzKVNa.js";
68function Qi({ timeout: e = 2e3 } = {}) {
69  const [o, t] = x.useState(null), [n, l] = x.useState(false), [i, r] = x.useState(null), s = (g) => {
70    window.clearTimeout(i), r(window.setTimeout(() => l(false), e)), l(g);
71  };
72  return { copy: (g) => {
73    "clipboard" in navigator ? navigator.clipboard.writeText(g).then(() => s(true)).catch((f) => t(f)) : t(new Error("useClipboard: navigator.clipboard is not supported"));
74  }, reset: () => {
75    l(false), t(null), window.clearTimeout(i);
76  }
76, error: o, copied: n };
77}
78function er(e, o) {
79  return Gt("(prefers-color-scheme: dark)", e === "dark", o) ? "dark" : "light";
80}
81function sl(e, o, t = { leading: false }) {
82  const [n, l] = x.useState(e), i = x.useRef(false), r = x.useRef(null), s = x.useRef(false), u = () => window.clearTimeout(r.current);
83  return x.useEffect(() => {
84    i.current && (!s.current && t.leading ? (s.current = true, l(e)) : (u(), r.current = window.setTimeout(() => {
85      s.current = false, l(e);
86    }, o)));
87  }, [e, t.leading, o]), x.useEffect(() => (i.current = true, u), []), [n, u];
88}
89function tr() {
90  const [e, o] = x.useState(false), t = x.useRef(null), n = x.useCallback(() => o(true), []), l = x.useCallback(() => o(false), []);
91  return x.useEffect(() => {
92    const i = t.current;
93    if (i) return i.addEventListener("mouseenter", n), i.addEventListener("mouseleave", l), () => {
94      i == null ? void 0 : i.removeEventListener("mouseenter", n), i == null ? void 0 : i.removeEventListener("mouseleave", l);
95    };
96  }, [t.current]), { ref: t, hovered: e };
97}
98function xo(e) {
99  const o = document.createElement("style");
100  return o.setAttribute("data-mantine-styles", "inline"), o.innerHTML = "*, *::before, *::after {transition: none !important;}", o.setAttribute("data-mantine-disable-transition", "true"), e && o.setAttribute("nonce", e), document.head.appendChild(o), () => document.querySelectorAll("[data-mantine-disable-transition]").forEach((n) => n.remove());
101}
102function nr({ keepTransitions: e } = {}) {
103  const o = x.useRef($i), t = x.useRef(-1), n = x.useContext(fi), l = mi(), i = x.useRef(l == null ? void 0 : l());
104  if (!n) throw new Error("[@mantine/core] MantineProvider was not found in tree");
105  const r = (f) => {
106    n.setColorScheme(f), o.current = e ? () => {
107    } : xo(i.current), window.clearTimeout(t.current), t.current = window.setTimeout(() => {
108      var _a2;
109      (_a2 = o.current) == null ? void 0 : _a2.call(o);
110    }, 10);
111  }, s = () => {
112    n.clearColorScheme(), o.current = e ? () => {
113    } : xo(i.current), window.clearTimeout(t.current), t.current = window.setTimeout(() => {
114      var _a2;
115      (_a2 = o.current) == null ? void 0 : _a2.call(o);
116    }, 10);
117  }, u = er("light", { getInitialValueInEffect: false }), c = n.colorScheme === "auto" ? u : n.colorScheme, g = x.useCallback(() => r(c === "light" ? "dark" : "light"), [r, c]);
118  return x.useEffect(() => () => {
119    var _a2;
120    (_a2 = o.current) == null ? void 0 : _a2.call(o), window.clearTimeout(t.current);
121  }, []), { colorScheme: n.colorScheme, setColorScheme: r, clearColorScheme: s, toggleColorScheme: g };
122}
123const or = {}, Zn = He((e, o) => {
124  const t = ke("Autocomplete", or, e), _a2 = t, { classNames: n, styles: l, unstyled: i, vars: r, dropdownOpened: s, defaultDropdownOpened: u, onDropdownClose: c, onDropdownOpen: g, onFocus: f, onBlur: p, onClick: d, onChange: m, data: h, value: v, defaultValue: b, selectFirstOptionOnChange: C, onOptionSubmit: _, comboboxProps: M, readOnly: w, disabled: y, filter: S, limit: R, withScrollArea: P, maxDropdownHeight: F, size: O, id: N, renderOption: H, autoComplete: A, scrollAreaProps: $, onClear: T, clearButtonProps: j, error: V, clearable: K, rightSection: X } = _a2, ee = __objRest(_a2, ["classNames", "styles", "unstyled", "vars", "dropdownOpened", "defaultDropdownOpened", "onDropdownClose", "onDropdownOpen", "onFocus", "onBlur", "onClick", "onChange", "data", "value", "defaultValue", "selectFirstOptionOnChange", "onOptionSubmit", "comboboxProps", "readOnly", "disabled", "filter", "limit", "withScrollArea", "maxDropdownHeight", "size", "id", "renderOption", "autoComplete", "scrollAreaProps", "onClear", "clearButtonProps", "error", "clearable", "rightSection"]), re = Kt(N), ge = Qo(h), Y = el(ge), [ie, G] = jt({ value: v, defaultValue: b, finalValue: "", onChange: m }), k = tl({ opened: s, defaultOpened: u, onDropdownOpen: g, onDropdownClose: () => {
125    c == null ? void 0 : c(), k.resetSelectedOption();
126  } }), q = (le) => {
127    G(le), k.resetSelectedOption();
128  }, { resolvedClassNames: I, resolvedStyles: Q } = Xo({ props: t, styles: l, classNames: n });
129  x.useEffect(() => {
130    C && k.selectFirstOption();
131  }, [C, ie]);
132  const ae = a.jsx(Le.ClearButton, __spreadProps(__spreadValues({}, j), { onClear: () => {
133    q(""), T == null ? void 0 : T();
134  } }));
135  return a.jsxs(Le, __spreadProps(__spreadValues({ store: k, __staticSelector: "Autocomplete", classNames: I, styles: Q, unstyled: i, readOnly: w, onOptionSubmit: (le) => {
136    _ == null ? void 0 : _(le), q(Y[le].label), k.closeDropdown();
137  }, size: O }, M), { children: [a.jsx(Le.Target, { autoComplete: A, children: a.jsx(Zt, __spreadProps(__spreadValues({ ref: o }, ee), { size: O, __staticSelector: "Autocomplete", __clearSection: ae, __clearable: K && !!ie && !y && !w, rightSection: X, disabled: y, readOnly: w, value: ie, error: V, onChange: (le) => {
138    q(le.currentTarget.value), k.openDropdown(), C && k.selectFirstOption();
139  }, onFocus: (le) => {
140    k.openDropdown(), f == null ? void 0 : f(le);
141  }, onBlur: (le) => {
142    k.closeDropdown(), p == null ? void 0 : p(le);
143  }, onClick: (le) => {
144    k.openDropdown(), d == null ? void 0 : d(le);
145  }, classNames: I, styles: Q, unstyled: i, id: re })) }), a.jsx(nl, { data: ge, hidden: w || y, filter: S, search: ie, limit: R, hiddenWhenEmpty: true, withScrollArea: P, maxDropdownHeight: F, unstyled: i, labelId: ee.label ? `${re}-label` : void 0, "aria-label": ee.label ? void 0 : ee["aria-label"], renderOption: H, scrollAreaProps: $ })] }));
146});
147Zn.classes = __spreadValues(__spreadValues({}, Zt.classes), Le.classes);
148Zn.displayName = "@mantine/core/Autocomplete";
149const lr = { timeout: 1e3 };
150function al(e) {
151  const _a2 = ke("CopyButton", lr, e), { children: o, timeout: t, value: n } = _a2, l = __objRest(_a2, ["children", "timeout", "value"]), i = Qi({ timeout: t }), r = () => i.copy(n);
152  return a.jsx(a.Fragment, { children: o(__spreadValues({ copy: r, copied: i.copied }, l)) });
153}
154al.displayName = "@mantine/core/CopyButton";
155function ir(e = "top-end", o = 0) {
156  const t = { "--indicator-top": void 0, "--indicator-bottom": void 0, "--indicator-left": void 0, "--indicator-right": void 0, "--indicator-translate-x": void 0, "--indicator-translate-y": void 0 }, n = Ft(o), [l, i] = e.split("-");
157  return l === "top" && (t["--indicator-top"] = n, t["--indicator-translate-y"] = "-50%"), l === "middle" && (t["--indicator-top"] = "50%", t["--indicator-translate-y"] = "-50%"), l === "bottom" && (t["--indicator-bottom"] = n, t["--indicator-translate-y"] = "50%"), i === "start" && (t["--indicator-left"] = n, t["--indicator-translate-x"] = "-50%"), i === "center" && (t["--indicator-left"] = "50%", t["--indicator-translate-x"] = "-50%"), i === "end" && (t["--indicator-right"] = n, t["--indicator-translate-x"] = "50%"), t;
158}
159var ul = { root: "m_e5262200", indicator: "m_760d1fb1", processing: "m_885901b1" };
160const rr = { position: "top-end", offset: 0, inline: false, withBorder: false, disabled: false, processing: false }, sr = rt((e, { color: o, position: t, offset: n, size: l, radius: i, zIndex: r, autoContrast: s }) => ({ root: __spreadValues({ "--indicator-color": o ? ft(o, e) : void 0, "--indicator-text-color": Wn(s, e) ? Ln({ color: o, theme: e, autoContrast: s }) : void 0, "--indicator-size": Ft(l), "--indicator-radius": i === void 0 ? void 0 : ht(i), "--indicator-z-index": r == null ? void 0 : r.toString() }, ir(t, n)) })), Jn = He((e, o) => {
161  const t = ke("Indicator", rr, e), _a2 = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, children: c, position: g, offset: f, inline: p, label: d, radius: m, color: h, withBorder: v, disabled: b, processing: C, zIndex: _, autoContrast: M, mod: w } = _a2, y = __objRest(_a2, ["classNames", "className", "style", "styles", "unstyled", "vars", "children", "position", "offset", "inline", "label", "radiu
161s", "color", "withBorder", "disabled", "processing", "zIndex", "autoContrast", "mod"]), S = Ze({ name: "Indicator", classes: ul, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, vars: u, varsResolver: sr });
162  return a.jsxs(me, __spreadProps(__spreadValues(__spreadProps(__spreadValues({ ref: o }, S("root")), { mod: [{ inline: p }, w] }), y), { children: [!b && a.jsx(me, __spreadProps(__spreadValues({ mod: { "with-label": !!d, "with-border": v, processing: C } }, S("indicator")), { children: d })), c] }));
163});
164Jn.classes = ul;
165Jn.displayName = "@mantine/core/Indicator";
166const [ar, Yn] = Xt(), [ur, dr] = Xt();
167var Jt = { root: "m_7cda1cd6", "root--default": "m_44da308b", "root--contrast": "m_e3a01f8", label: "m_1e0e6180", remove: "m_ae386778", group: "m_1dcfd90b" };
168const cr = {}, gr = rt((e, { gap: o }, { size: t }) => ({ group: { "--pg-gap": o !== void 0 ? Xe(o) : Xe(t, "pg-gap") } })), Qn = He((e, o) => {
169  var _a2;
170  const t = ke("PillGroup", cr, e), _b = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, size: c, disabled: g } = _b, f = __objRest(_b, ["classNames", "className", "style", "styles", "unstyled", "vars", "size", "disabled"]), d = ((_a2 = Yn()) == null ? void 0 : _a2.size) || c || void 0, m = Ze({ name: "PillGroup", classes: Jt, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, vars: u, varsResolver: gr, stylesCtx: { size: d }, rootSelector: "group" });
171  return a.jsx(ur, { value: { size: d, disabled: g }, children: a.jsx(me, __spreadValues(__spreadValues({ ref: o, size: d }, m("group")), f)) });
172});
173Qn.classes = Jt;
174Qn.displayName = "@mantine/core/PillGroup";
175const pr = { variant: "default" }, fr = rt((e, { radius: o }, { size: t }) => ({ root: { "--pill-fz": Xe(t, "pill-fz"), "--pill-height": Xe(t, "pill-height"), "--pill-radius": o === void 0 ? void 0 : ht(
175o) } })), Pt = He((e, o) => {
176  const t = ke("Pill", pr, e), _a2 = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, variant: c, children: g, withRemoveButton: f, onRemove: p, removeButtonProps: d, radius: m, size: h, disabled: v, mod: b } = _a2, C = __objRest(_a2, ["classNames", "className", "style", "styles", "unstyled", "vars", "variant", "children", "withRemoveButton", "onRemove", "removeButtonProps", "radius", "size", "disabled", "mod"]), _ = dr(), M = Yn(), w = h || (_ == null ? void 0 : _.size) || void 0, y = (M == null ? void 0 : M.variant) === "filled" ? "contrast" : c || "default", S = Ze({ name: "Pill", classes: Jt, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, vars: u, varsResolver: fr, stylesCtx: { size: w } });
177  return a.jsxs(me, __spreadProps(__spreadValues(__spreadProps(__spreadValues({ component: "span", ref: o, variant: y, size: w }, S("root", { variant: y })), { mod: [{ "with-remove": f && !v, disabled: v || (_ == null ? void 0 : _.disabled) }, b] }), C), { children: [a.jsx("span", __spreadProps(__spreadValues({}, S("label")), { children: g })), f && a.jsx(hi, __spreadProps(__spreadValues(__spreadValues({ variant: "transparent", radius: m, tabIndex: -1, "aria-hidden": true, unstyled: s }, d), S("remove", { className: d == null ? void 0 : d.className, style: d == null ? void 0 : d.style })), { onMouseDown: (R) => {
178    var _a3;
179    R.preventDefault(), R.stopPropagation(), (_a3 = d == null ? void 0 : d.onMouseDown) == null ? void 0 : _a3.call(d, R);
180  }, onClick: (R) => {
181    var _a3;
182    R.stopPropagation(), p == null ? void 0 : p(), (_a3 = d == null ? void 0 : d.onClick) == null ? void 0 : _a3.call(d, R);
183  } }))] }));
184});
185Pt.classes = Jt;
186Pt.displayName = "@mantine/core/Pill";
187Pt.Group = Qn;
188var dl = { field: "m_45c4369d" };
189const mr = { type: "visible" }, eo = He((e, o) => {
190  const t = ke("PillsInputField", mr, e), _a2 = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, type: c, disabled: g, id: f, pointer: p, mod: d } = _a2, m = __objRest(_a2, ["classNames", "className", "style", "styles", "unstyled", "vars", "type", "disabled", "id", "pointer", "mod"]), h = Yn(), v = Ei(), b = Ze({ name: "PillsInputField", classes: dl, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, rootSelector: "field" }), C = g || (h == null ? void 0 : h.disabled);
191  return a.jsx(me, __spreadProps(__spreadValues(__spreadValues({ component: "input", ref: Go(o, h == null ? void 0 : h.fieldRef), "data-type": c, disabled: C, mod: [{ disabled: C, pointer: p }, d] }, b("field")), m), { id: (v == null ? void 0 : v.inputId) || f, "aria-invalid": h == null ? void 0 : h.hasError, "aria-describedby": v == null ? void 0 : v.describedBy, type: "text", onMouseDown: (_) => !p && _.stopPropagation() }));
192});
193eo.classes = dl;
194eo.displayName = "@mantine/core/PillsInputField";
195const hr = {}, Lt = He((e, o) => {
196  const t = ke("PillsInput", hr, e), _a2 = t, { children: n, onMouseDown: l, onClick: i, size: r, disabled: s, __staticSelector: u, error: c, variant: g } = _a2, f = __objRest(_a2, ["children", "onMouseDown", "onClick", "size", "disabled", "__staticSelector", "error", "variant"]), p = x.useRef(null);
197  return a.jsx(ar, { value: { fieldRef: p, size: r, disabled: s, hasError: !!c, variant: g }, children: a.jsx(Zt, __spreadProps(__spreadValues({ size: r, error: c, variant: g, component: "div", ref: o, onMouseDown: (d) => {
198    var _a3;
199    d.preventDefault(), l == null ? void 0 : l(d), (_a3 = p.current) == null ? void 0 : _a3.focus();
200  }, onClick: (d) => {
201    var _a3, _b;
202    d.preventDefault(), ((_a3 = d.currentTarget.closest("fieldset")) == null ? void 0 : _a3.disabled) || ((_b = p.current) == null ? void 0 : _b.focus(), i == null ? void 0 : i(d));
203  } }, f), { multiline: true, disabled: s, __staticSelector: u || "PillsInput", withAria: false, children: n })) });
204});
205Lt.displayName = "@mantine/core/PillsInput";
206Lt.Field = eo;
207function vr({ data: e, value: o }) {
208  const t = o.map((l) => l.trim().toLowerCase());
209  return e.reduce((l, i) => (zi(i) ? l.push({ group: i.group, items: i.items.filter((r) => t.indexOf(r.value.toLowerCase().trim()) === -1) }) : t.indexOf(i.value.toLowerCase().trim()) === -1 && l.push(i), l), []);
210}
211const br = { maxValues: 1 / 0, withCheckIcon: true, checkIconPosition: "left", hiddenInputValuesDivider: "," }, Yt = He((e, o) => {
212  const t = ke("MultiSelect", br, e), _a2 = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, size: c, value: g, defaultValue: f, onChange: p, onKeyDown: d, variant: m, data: h, dropdownOpened: v, defaultDropdownOpened: b, onDropdownOpen: C, onDropdownClose: _, selectFirstOptionOnChange: M, onOptionSubmit: w, comboboxProps: y, filter: S, limit: R, withScrollArea: P, maxDropdownHeight: F, searchValue: O, defaultSearchValue: N, onSearchChange: H, readOnly: A, disabled: $, onFocus: T, onBlur: j, radius: V, rightSection: K, rightSectionWidth: X, rightSectionPointerEvents: ee, rightSectionProps: re, leftSection: ge, leftSectionWidth: Y, leftSectionPointerEvents: ie, leftSectionProps: G, inputContainer: k, inputWrapperOrder: q, withAsterisk: I, labelProps: Q, descriptionProps: ae, errorProps: le, wrapperProps: pe, description: xe, label: te, error: ne, maxValues: ce, searchable: E, nothingFoundMessage: se, withCheckIcon: Re, checkIconPosition: be, hidePickedOptions: Ae, withErrorStyles: Pe, name: Se, form: oe, id: Z, clearable: ye, clearButtonProps: J, hiddenInputProps: Me, placeholder: de, hiddenInputValuesDivider: Ce, required: ze, mod: Be, renderOption: Ct, onRemove: _t, onClear: ln, scrollAreaProps: rn, chevronColor: sn } = _a2, Et = __objRest(_a2, ["classNames", "className", "style", "styles", "unstyled", "vars", "size", "value", "defaultValue", "onChange", "onKeyDown", "variant", "data", "dropdownOpened", "defaultDropdownOpened", "onDropdownOpen", "onDropdownClose", "selectFirstOptionOnChange", "onOptionSubmit", "comboboxProps", "filter", "limit", "withScrollArea", "maxDropdownHeight", "searchValue", "defaultSearchValue", "onSearchChange", "readOnly", "disabled", "onFocus", "onBlur", "radiu
212s", "rightSection", "rightSectionWidth", "rightSectionPointerEvents", "rightSectionProps", "leftSection", "leftSectionWidth", "leftSectionPointerEvents", "leftSectionProps", "inputContainer", "inputWrapperOrder", "withAsterisk", "labelProps", "descriptionProps", "errorProps", "wrapperProps", "description", "label", "error", "maxValues", "searchable", "nothingFoundMessage", "withCheckIcon", "checkIconPosition", "hidePickedOptions", "withErrorStyles", "name", "form", "id", "clearable", "clearButtonProps", "hiddenInputProps", "placeholder", "hiddenInputValuesDivider", "required", "mod", "renderOption", "onRemove", "onClear", "scrollAreaProps", "chevronColor"]), wt = Kt(Z), Rt = Qo(h), Je = el(Rt), Ee = tl({ opened: v, defaultOpened: b, onDropdownOpen: C, onDropdownClose: () => {
213    _ == null ? void 0 : _(), Ee.resetSelectedOption();
214  } }), { styleProps: an, rest: _b } = Lo(Et), _c = _b, { type: vo, autoComplete: un } = _c, dn = __objRest(_c, ["type", "autoComplete"]), [z, Ye] = jt({ value: g, defaultValue: f, finalValue: [], onChange: p }), [_e, Fe] = jt({ value: O, defaultValue: N, finalValue: "", onChange: H }), Ie = (ve) => {
215    Fe(ve), Ee.resetSelectedOption();
216  }, Ne = Ze({ name: "MultiSelect", classes: {}, props: t, classNames: n, styles: r, unstyled: s }), { resolvedClassNames: Ge, resolvedStyles: ut } = Xo({ props: t, styles: r, classNames: n }), di = (ve) => {
217    d == null ? void 0 : d(ve), ve.key === " " && !E && (ve.preventDefault(), Ee.toggleDropdown()), ve.key === "Backspace" && _e.length === 0 && z.length > 0 && (_t == null ? void 0 : _t(z[z.length - 1]), Ye(z.slice(0, z.length - 1)));
218  }, ci = z.map((ve, cn) => {
219    var _a3, _b2;
220    return a.jsx(Pt, __spreadProps(__spreadValues({ withRemoveButton: !A && !((_a3 = Je[ve]) == null ? void 0 : _a3.disabled), onRemove: () => {
221      Ye(z.filter((pi) => ve !== pi)), _t == null ? void 0 : _t(ve);
222    }, unstyled: s, disabled: $ }, Ne("pill")), { children: ((_b2 = Je[ve]) == null ? void 0 : _b2.label) || ve }), `${ve}-${cn}`);
223  });
224  x.useEffect(() => {
225    M && Ee.selectFirstOption();
226  }, [M, _e]);
227  const bo = a.jsx(Le.ClearButton, __spreadProps(__spreadValues({}, J), { onClear: () => {
228    ln == null ? void 0 : ln(), Ye([]), Ie("");
229  } })), gi = vr({ data: Rt, value: z }), Co = ye && z.length > 0 && !$ && !A;
230  return a.jsxs(a.Fragment, { children: [a.jsxs(Le, __spreadProps(__spreadValues({ store: Ee, classNames: Ge, styles: ut, unstyled: s, size: c, readOnly: A, __staticSelector: "MultiSelect", onOptionSubmit: (ve) => {
231    w == null ? void 0 : w(ve), Ie(""), Ee.updateSelectedOptionIndex("selected"), z.includes(Je[ve].value) ? (Ye(z.filter((cn) => cn !== Je[ve].value)), _t == null ? void 0 : _t(Je[ve].value)) : z.length < ce && Ye([...z, Je[ve].value]);
232  } }, y), { children: [a.jsx(Le.DropdownTarget, { children: a.jsx(Lt, __spreadProps(__spreadValues({}, an), { __staticSelector: "MultiSelect", classNames: Ge, styles: ut, unstyled: s, size: c, className: l, style: i, variant: m, disabled: $, radius: V, __defaultRightSection: a.jsx(Le.Chevron, { size: c, error: ne, unstyled: s, color: sn }), __clearSection: bo, __clearable: Co, rightSection: K, rightSectionPointerEvents: ee || (bo ? "all" : "none"), rightSectionWidth: X, rightSectionProps: re, leftSection: ge, leftSectionWidth: Y, leftSectionPointerEvents: ie, leftSectionProps: G, inputContainer: k, inputWrapperOrder: q, withAsterisk: I, labelProps: Q, descriptionProps: ae, errorProps: le, wrapperProps: pe, description: xe, label: te, error: ne, withErrorStyles: Pe, __stylesApiProps: __spreadProps(__spreadValues({}, t), { rightSectionPointerEvents: ee || (Co ? "all" : "none"), multiline: true }), pointer: !E, onClick: () => E ? Ee.openDropdown() : Ee.toggleDropdown(), "data-expanded": Ee.dropdownOpened || void 0, id: wt, required: ze, mod: Be, children: a.jsxs(Pt.Group, __spreadProps(__spreadValues({ disabled: $, unstyled: s }, Ne("pillsList")), { children: [ci, a.jsx(Le.EventsTarget, { autoComplete: un, children: a.jsx(Lt.Field, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, dn), { ref: o, id: wt, placeholder: de, type: !E && !de ? "hidden" : "visible" }), Ne("inputField")), { unstyled: s, onFocus: (ve) => {
233    T == null ? void 0 : T(ve), E && Ee.openDropdown();
234  }, onBlur: (ve) => {
235    j == null ? void 0 : j(ve), Ee.closeDropdown(), Ie("");
236  }, onKeyDown: di, value: _e, onChange: (ve) => {
237    Ie(ve.currentTarget.value), E && Ee.openDropdown(), M && Ee.selectFirstOption();
238  }, disabled: $, readOnly: A || !E, pointer: !E })) })] })) })) }), a.jsx(nl, { data: Ae ? gi : Rt, hidden: A || $, filter: S, search: _e, limit: R, hiddenWhenEmpty: !se, withScrollArea: P, maxDropdownHeight: F, filterOptions: E, value: z, checkIconPosition: be, withCheckIcon: Re, nothingFoundMessage: se, unstyled: s, labelId: te ? `${wt}-label` : void 0, "aria-label": te ? void 0 : Et["aria-label"], renderOption: Ct, scrollAreaProps: rn })] })), a.jsx(Le.HiddenInput, __spreadValues({ name: Se, valuesDivider: Ce, value: z, form: oe, disabled: $ }, Me))] });
239});
240Yt.classes = __spreadValues(__spreadValues({}, Zt.classes), Le.classes);
241Yt.displayName = "@mantine/core/MultiSelect";
242const [Cr, cl] = Xt(), [_r, wr] = Xt();
243var gl = { card: "m_9dc8ae12" };
244const Rr = { withBorder: true }, Sr = rt((e, { radius: o }) => ({ card: { "--card-radius": ht(o) } })), to = He((e, o) => {
245  const t = ke("RadioCard", Rr, e), _a2 = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, checked: c, mod: g, withBorder: f, value: p, onClick: d, name: m, onKeyDown: h } = _a2, v = __objRest(_a2, ["classNames", "className", "style", "styles", "unstyled", "vars", "checked", "mod", "withBorder", "value", "onClick", "name", "onKeyDown"]), b = Ze({ name: "RadioCard", classes: gl, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, vars: u, varsResolver: Sr, rootSelector: "card" }), { dir: C } = st(), _ = cl(), M = typeof c == "boolean" ? c : (_ == null ? void 0 : _.value) === p || false, w = m || (_ == null ? void 0 : _.name), y = (S) => {
246    if (h == null ? void 0 : h(S), ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(S.nativeEvent.code)) {
247      S.preventDefault();
248      const R = Array.from(document.querySelectorAll(`[role="radio"][name="${w || "__mantine"}"]`)), P = R.findIndex((N) => N === S.target), F = P + 1 >= R.length ? 0 : P + 1, O = P - 1 < 0 ? R.length - 1 : P - 1;
249      S.nativeEvent.code === "ArrowDown" && (R[F].focus(), R[F].click()), S.nativeEvent.code === "ArrowUp" && (R[O].focus(), R[O].click()), S.nativeEvent.code === "ArrowLeft" && (R[C === "ltr" ? O : F].focus(), R[C === "ltr" ? O : F].click()), S.nativeEvent.code === "ArrowRight" && (R[C === "ltr" ? F : O].focus(), R[C === "ltr" ? F : O].click());
250    }
251  };
252  return a.jsx(_r, { value: { checked: M }, children: a.jsx(Wo, __spreadProps(__spreadValues(__spreadValues({ ref: o, mod: [{ "with-border": f, checked: M }, g] }, b("card")), v), { role: "radio", "aria-checked": M, name: w, onClick: (S) => {
253    d == null ? void 0 : d(S), _ == null ? void 0 : _.onChange(p || "");
254  }, onKeyDown: y })) });
255});
256to.displayName = "@mantine/core/RadioCard";
257to.classes = gl;
258const xr = {}, no = He((e, o) => {
259  const _a2 = ke("RadioGroup", xr, e), { value: t, defaultValue: n, onChange: l, size: i, wrapperProps: r, children: s, name: u, readOnly: c } = _a2, g = __objRest(_a2, ["value", "defaultValue", "onChange", "size", "wrapperProps", "children", "name", "readOnly"]), f = Kt(u), [p, d] = jt({ value: t, defaultValue: n, finalValue: "", onChange: l }), m = (h) => !c && d(typeof h == "string" ? h : h.currentTarget.value);
260  return a.jsx(Cr, { value: { value: p, onChange: m, size: i, name: f }, children: a.jsx(Jo.Wrapper, __spreadProps(__spreadValues(__spreadValues({ size: i, ref: o }, r), g), { labelElement: "div", __staticSelector: "RadioGroup", children: a.jsx(Ii, { role: "radiogroup", children: s }) })) });
261});
262no.classes = Jo.Wrapper.classes;
263no.displayName = "@mantine/core/RadioGroup";
264function pl(_a2) {
265  var _b = _a2, { size: e, style: o } = _b, t = __objRest(_b, ["size", "style"]);
266  return a.jsx("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 5 5", style: __spreadValues({ width: Ft(e), height: Ft(e) }, o), "aria-hidden": true }, t), { children: a.jsx("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "currentColor" }) }));
267}
268var fl = { indicator: "m_717d7ff6", icon: "m_3e4da632", "indicator--outline": "m_2980836c" };
269const yr = { icon: pl }, Mr = rt((e, { radius: o, color: t, size: n, iconColor: l, variant: i, autoContrast: r }) => {
270  const s = qo({ color: t || e.primaryColor, theme: e }), u = s.isThemeColor && s.shade === void 0 ? `var(--mantine-color-${s.color}-outline)` : s.color;
271  return { indicator: { "--radio-size": Xe(n, "radio-size"), "--radio-radius": o === void 0 ? void 0 : ht(
271o), "--radio-color": i === "outline" ? u : ft(t, e), "--radio-icon-size": Xe(n, "radio-icon-size"), "--radio-icon-color": l ? ft(l, e) : Wn(r, e) ? Ln({ color: t, theme: e, autoContrast: r }) : void 0 } };
272}), oo = He((e, o) => {
273  const t = ke("RadioIndicator", yr, e), _a2 = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, icon: c, radius: g, color: f, iconColor: p, autoContrast: d, checked: m, mod: h, variant: v, disabled: b } = _a2, C = __objRest(_a2, ["classNames", "className", "style", "styles", "unstyled", "vars", "icon", "radius", "color", "iconColor", "autoContrast", "checked", "mod", "variant", "disabled"]), _ = c, M = Ze({ name: "RadioIndicator", classes: fl, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, vars: u, varsResolver: Mr, rootSelector: "indicator" }), w = wr(), y = typeof m == "boolean" ? m : (w == null ? void 0 : w.checked) || false;
274  return a.jsx(me, __spreadProps(__spreadValues(__spreadProps(__spreadValues({ ref: o }, M("indicator", { variant: v })), { variant: v, mod: [{ checked: y, disabled: b }, h] }), C), { children: a.jsx(_, __spreadValues({}, M("icon"))) }));
275});
276oo.displayName = "@mantine/core/RadioIndicator";
277oo.classes = fl;
278var ml = { root: "m_f3f1af94", inner: "m_89c4f5e4", icon: "m_f3ed6b2b", radio: "m_8a3dbb89", "radio--outline": "m_1bfe9d39" };
279const Tr = { labelPosition: "right" }, Fr = rt((e, { size: o, radius: t, color: n, iconColor: l, variant: i, autoContrast: r }) => {
280  const s = qo({ color: n || e.primaryColor, theme: e }), u = s.isThemeColor && s.shade === void 0 ? `var(--mantine-color-${s.color}-outline)` : s.color;
281  return { root: { "--radio-size": Xe(o, "radio-size"), "--radio-radius": t === void 0 ? void 0 : ht(t), "--radio-color": i === "outline" ? u : ft(n, e), "--radio-icon-color": l ? ft(l, e) : Wn(r, e) ? Ln({ color: n, theme: e, autoContrast: r }) : void 0, "--radio-icon-size": Xe(o, "radio-icon-size") } };
282}), vt = He((e, o) => {
283  var _a2, _b;
284  const t = ke("Radio", Tr, e), _c = t, { classNames: n, className: l, style: i, styles: r, unstyled: s, vars: u, id: c, size: g, label: f, labelPosition: p, description: d, error: m, radius: h, color: v, variant: b, disabled: C, wrapperProps: _, icon: M = pl, rootRef: w, iconColor: y, onChange: S, mod: R } = _c, P = __objRest(_c, ["classNames", "className", "style", "styles", "unstyled", "vars", "id", "size", "label", "labelPosition", "description", "error", "radius", "color", "variant", "disabled", "wrapperProps", "icon", "rootRef", "iconColor", "onChange", "mod"]), F = Ze({ name: "Radio", classes: ml, props: t, className: l, style: i, classNames: n, styles: r, unstyled: s, vars: u, varsResolver: Fr }), O = cl(), N = (_a2 = O == null ? void 0 : O.size) != null ? _a2 : g, H = t.size ? g : N, { styleProps: A, rest: $ } = Lo(P), T = Kt(c), j = O ? { checked: O.value === $.value, name: (_b = $.name) != null ? _b : O.name, onChange: (V) => {
285    O.onChange(V), S == null ? void 0 : S(V);
286  } } : {};
287  return a.jsx(Oi, __spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, F("root")), { __staticSelector: "Radio", __stylesApiProps: t, id: T, size: H, labelPosition: p, label: f, description: d, error: m, disabled: C, classNames: n, styles: r, unstyled: s, "data-checked": j.checked || void 0, variant: b, ref: w, mod: R }), A), _), { children: a.jsxs(me, __spreadProps(__spreadValues({}, F("inner")), { mod: { "label-position": p }, children: [a.jsx(me, __spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, F("radio", { focusable: true, variant: b })), { onChange: S }), $), j), { component: "input", mod: { error: !!m }, ref: o, id: T, disabled: C, type: "radio" })), a.jsx(M, __spreadProps(__spreadValues({}, F("icon")), { "aria-hidden": true }))] })) }));
288});
289vt.classes = ml;
290vt.displayName = "@mantine/core/Radio";
291vt.Group = no;
292vt.Card = to;
293vt.Indicator = oo;
294function jr(e) {
295  return "TouchEvent" in window && e instanceof window.TouchEvent ? e.touches[0].clientX : e.clientX;
296}
297const Pr = rt((e, { size: o, color: t, thumbSize: n, radius: l }) => ({ root: { "--slider-size": Xe(o, "slider-size"), "--slider-color": t ? ft(t, e) : void 0, "--slider-radius": l === void 0 ? void 0 : ht(l), "--slider-thumb-size": n !== void 0 ? Ft(n) : "calc(var(--slider-size) * 2)" } })), Ir = { min: 0, max: 100, minRange: 10, step: 1, marks: [], label: (e) => e, labelTransitionProps: { transition: "fade", duration: 0 }
297, labelAlwaysOn: false, showLabelOnHover: true, disabled: false, scale: (e) => e }, lo = He((e, o) => {
298  const t = ke("RangeSlider", Ir, e), _a2 = t, { classNames: n, styles: l, value: i, onChange: r, onChangeEnd: s, size: u, min: c, max: g, minRange: f, maxRange: p, step: d, precision: m, defaultValue: h, name: v, marks: b, label: C, labelTransitionProps: _, labelAlwaysOn: M, thumbFromLabel: w, thumbToLabel: y, showLabelOnHover: S, thumbChildren: R, disabled: P, unstyled: F, scale: O, inverted: N, className: H, style: A, vars: $, hiddenInputProps: T, restrictToMarks: j, thumbProps: V } = _a2, K = __objRest(_a2, ["classNames", "styles", "value", "onChange", "onChangeEnd", "size", "min", "max", "minRange", "maxRange", "step", "precision", "defaultValue", "name", "marks", "label", "labelTransitionProps", "labelAlwaysOn", "thumbFromLabel", "thumbToLabel", "showLabelOnHover", "thumbChildren", "disabled", "unstyled", "scale", "inverted", "className", "style", "vars", "hiddenInputProps", "restrictToMarks", "thumbProps"]), X = Ze({ name: "Slider", props: t, classes: rl, classNames: n, className: H, styles: l, style: A, vars: $, varsResolver: Pr, unstyled: F }), { dir: ee } = st(), [re, ge] = x.useState(-1), [Y, ie] = x.useState(false), [G, k] = jt({ value: i, defaultValue: h, finalValue: [c, g], onChange: r }), q = x.useRef(G), I = x.useRef([]), Q = x.useRef(null), ae = x.useRef(void 0), le = [wo({ value: G[0], min: c, max: g }), wo({ value: G[1], min: c, max: g })], pe = m != null ? m : Gi(d), xe = (oe) => {
299    k(oe), q.current = oe;
300  };
301  x.useEffect(() => {
302    Array.isArray(i) && (q.current = i);
303  }, Array.isArray(i) ? [i[0], i[1]] : [null, null]);
304  const te = (oe, Z, ye) => {
305    if (Z === -1) return;
306    const J = [...q.current];
307    if (j && b) {
308      const Me = Ki(oe, b.map((Ct) => Ct.value)), de = J[Z];
309      J[Z] = Me;
310      const Ce = Z === 0 ? 1 : 0, ze = Xi(b), Be = Zi(b);
311      Me === ze && J[Ce] === ze || Me === Be && J[Ce] === Be ? J[Z] = de : Me === J[Ce] && (de > J[Ce] ? J[Ce] = zt(Me, b) : J[Ce] = Dt(Me, b));
312    } else J[Z] = oe, Z === 0 && (oe > J[1] - (f - 1e-9) && (J[1] = Math.min(oe + f, g)), oe > (g - (f - 1e-9) || c) && (J[Z] = q.current[Z]), J[1] - oe > p && (J[1] = oe + p)), Z === 1 && (oe < J[0] + f && (J[0] = Math.max(oe - f, c)), oe < J[0] + f && (J[Z] = q.current[Z]), oe - J[0] > p && (J[0] = oe - p));
313    if (J[0] = Qe(J[0], pe), J[1] = Qe(J[1], pe), J[0] > J[1]) {
314      const Me = J[0];
315      J[0] = J[1], J[1] = Me;
316    }
317    xe(J), ye && (s == null ? void 0 : s(q.current));
318  }, ne = (oe) => {
319    if (!P) {
320      const Z = So({ value: oe, min: c, max: g, step: d, precision: pe });
321      te(Z, ae.current, false);
322    }
323  }, { ref: ce, active: E } = Li(({ x: oe }) => ne(oe), { onScrubEnd: () => !P && (s == null ? void 0 : s(q.current)) }, ee);
324  function se(oe) {
325    ae.current = oe;
326  }
327  const Re = (oe) => {
328    ce.current.focus();
329    const Z = ce.current.getBoundingClientRect(), ye = jr(oe.nativeEvent), J = So({ value: ye - Z.left, max: g, min: c, step: d, containerWidth: Z.width }), Me = Math.abs(G[0] - J) > Math.abs(G[1] - J) ? 1 : 0, de = ee === "ltr" ? Me : Me === 1 ? 0 : 1;
330    ae.current = de;
331  }, be = () => re !== 1 && re !== 0 ? (ge(0), 0) : re, Ae = (oe) => {
332    if (!P) switch (oe.key) {
333      case "ArrowUp": {
334        oe.preventDefault();
335        const Z = be();
336        I.current[Z].focus();
337        const ye = j && b ? Dt(q.current[Z], b) : Math.min(Math.max(q.current[Z] + d, c), g);
338        te(Qe(ye, pe), Z, true);
339        break;
340      }
341      case "ArrowRight": {
342        oe.preventDefault();
343        const Z = be();
344        I.current[Z].focus();
345        const ye = j && b ? (ee === "rtl" ? zt : Dt)(q.current[Z], b) : Math.min(Math.max(ee === "rtl" ? q.current[Z] - d : q.current[Z] + d, c), g);
346        te(Qe(ye, pe), Z, true);
347        break;
348      }
349      case "ArrowDown": {
350        oe.preventDefault();
351        const Z = be();
352        I.current[Z].focus();
353        const ye = j && b ? zt(q.current[Z], b) : Math.min(Math.max(q.current[Z] - d, c), g);
354        te(Qe(ye, pe), Z, true);
355        break;
356      }
357      case "ArrowLeft": {
358        oe.preventDefault();
359        const Z = be();
360        I.current[Z].focus();
361        const ye = j && b ? (ee === "rtl" ? Dt : zt)(q.current[Z], b) : Math.min(Math.max(ee === "rtl" ? q.current[Z] + d : q.current[Z] - d, c), g);
362        te(Qe(ye, pe), Z, true);
363        break;
364      }
365    }
366  }, Pe = { max: g, min: c, size: u, labelTransitionProps: _, labelAlwaysOn: M, onBlur: () => ge(-1) }, Se = Array.isArray(R);
367  return a.jsx(Wi, { value: { getStyles: X }, children: a.jsxs(qi, __spreadProps(__spreadValues({}, K), { size: u, ref: Go(o, Q), disabled: P, onMouseDownCapture: () => {
368    var _a3;
369    return (_a3 = Q.current) == null ? void 0 : _a3.focus();
370  }, onKeyDownCapture: () => {
371    var _a3, _b, _c;
372    ((_b = (_a3 = I.current[0]) == null ? void 0 : _a3.parentElement) == null ? void 0 : _b.contains(document.activeElement)) || ((_c = I.current[0]) == null ? void 0 : _c.focus());
373  }, children: [a.jsxs(Ui, { offset: le[0], marksOffset: G[0], filled: le[1] - le[0], marks: b, inverted: N, min: c, max: g, value: G[1], disabled: P, containerProps: { ref: ce, onMouseEnter: S ? (
373) => ie(true) : void 0, onMouseLeave: S ? () => ie(false) : void 0, onTouchStartCapture: Re, onTouchEndCapture: () => {
374    ae.current = -1;
375  }, onMouseDownCapture: Re, onMouseUpCapture: () => {
376    ae.current = -1;
377  }, onKeyDownCapture: Ae }, children: [a.jsx(Ro, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, Pe), { value: O(G[0]), position: le[0], dragging: E, label: typeof C == "function" ? C(Qe(O(G[0]), pe)) : C, ref: (oe) => {
378    I.current[0] = oe;
379  }, thumbLabel: w, onMouseDown: () => se(0), onFocus: () => ge(0), showLabelOnHover: S, isHovered: Y, disabled: P }), V == null ? void 0 : V(0)), { children: Se ? R[0] : R })), a.jsx(Ro, __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, Pe), { thumbLabel: y, value: O(G[1]), position: le[1], dragging: E, label: typeof C == "function" ? C(Qe(O(G[1]), pe)) : C, ref: (oe) => {
380    I.current[1] = oe;
381  }, onMouseDown: () => se(1), onFocus: () => ge(1), showLabelOnHover: S, isHovered: Y, disabled: P }), V == null ? void 0 : V(1)), { children: Se ? R[1] : R }))] }), a.jsx("input", __spreadValues({ type: "hidden", name: `${v}_from`, value: G[0] }, T)), a.jsx("input", __spreadValues({ type: "hidden", name: `${v}_to`, value: G[1] }, T))] })) });
382});
383lo.classes = rl;
384lo.displayName = "@mantine/core/RangeSlider";
385var Or = we("arrow-autofit-content", "IconArrowAutofitContent", [["path", { d: "M6 4l-3 3l3 3", key: "svg-0" }], ["path", { d: "M18 4l3 3l-3 3", key: "svg-1" }], ["path", { d: "M4 14m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z", key: "svg-2" }], ["path", { d: "M10 7h-7", key: "svg-3" }], ["path", { d: "M21 7h-7", key: "svg-4" }]]), Er = we("arrows-sort", "IconArrowsSort", [["path", { d: "M3 9l4 -4l4 4m-4 -4v14", key: "svg-0" }], ["path", { d: "M21 15l-4 4l-4 -4m4 4v-14", key: "svg-1" }]]), Dr = we("baseline-density-large", "IconBaselineDensityLarge", [["path", { d: "M4 4h16", key: "svg-0" }], ["path", { d: "M4 20h16", key: "svg-1" }]]), zr = we("baseline-density-medium", "IconBaselineDensityMedium", [["path", { d: "M4 20h16", key: "svg-0" }], ["path", { d: "M4 12h16", key: "svg-1" }], ["path", { d: "M4 4h16", key: "svg-2" }]]), Ar = we("baseline-density-small", "IconBaselineDensitySmall", [["path", { d: "M4 3h16", key: "svg-0" }], ["path", { d: "M4 9h16", key: "svg-1" }], ["path", { d: "M4 15h16", key: "svg-2" }], ["path", { d: "M4 21h16", key: "svg-3" }]]), Vr = we("box-multiple", "IconBoxMultiple", [["path", { d: "M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z", key: "svg-0" }], ["path", { d: "M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2", key: "svg-1" }]]), kr = we("chevron-down", "IconChevronDown", [["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]]), $r = we("chevron-left-pipe", "IconChevronLeftPipe", [["path", { d: "M7 6v12", key: "svg-0" }], ["path", { d: "M18 6l-6 6l6 6", key: "svg-1" }]]), Hr = we("chevron-right-pipe", "IconChevronRightPipe", [["path", { d: "M6 6l6 6l-6 6", key: "svg-0" }], ["path", { d: "M17 5v13", key: "svg-1" }]]), Br = we("chevrons-down", "IconChevronsDown", [["path", { d: "M7 7l5 5l5 -5", key: "svg-0" }], ["path", { d: "M7 13l5 5l5 -5", key: "svg-1" }]]), Nr = we("circle-x", "IconCircleX", [["path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", key: "svg-0" }
385], ["path", { d: "M10 10l4 4m0 -4l-4 4", key: "svg-1" }]]), Gr = we("clear-all", "IconClearAll", [["path", { d: "M8 6h12", key: "svg-0" }], ["path", { d: "M6 12h12", key: "svg-1" }], ["path", { d: "M4 18h12", key: "svg-2" }]]), Lr = we("columns", "IconColumns", [["path", { d: "M4 6l5.5 0", key: "svg-0" }], ["path", { d: "M4 10l5.5 0", key: "svg-1" }], ["path", { d: "M4 14l5.5 0", key: "svg-2" }], ["path", { d: "M4 18l5.5 0", key: "svg-3" }], ["path", { d: "M14.5 6l5.5 0", key: "svg-4" }], ["path", { d: "M14.5 10l5.5 0", key: "svg-5" }], ["path", { d: "M14.5 14l5.5 0", key: "svg-6" }], ["path", { d: "M14.5 18l5.5 0", key: "svg-7" }]]), Wr = we("device-floppy", "IconDeviceFloppy", [["path", { d: "M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2", key: "svg-0" }], ["path", { d: "M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", key: "svg-1" }], ["path", { d: "M14 4l0 4l-6 0l0 -4", key: "svg-2" }]]), qr = we("eye-off", "IconEyeOff", [["path", { d: "M10.585 10.587a2 2 0 0 0 2.829 2.828", key: "svg-0" }], ["path", { d: "M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87", key: "svg-1" }], ["path", { d: "M3 3l18 18", key: "svg-2" }]]), Ur = we("filter-cog", "IconFilterCog", [["path", { d: "M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5", key: "svg-0" }], ["path", { d: "M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", key: "svg-1" }], ["path", { d: "M19.001 15.5v1.5", key: "svg-2" }], ["path", { d: "M19.001 21v1.5", key: "svg-3" }], ["path", { d: "M22.032 17.25l-1.299 .75", key: "svg-4" }], ["path", { d: "M17.27 20l-1.3 .75", key: "svg-5" }], ["path", { d: "M15.97 17.25l1.3 .75", key: "svg-6" }], ["path", { d: "M20.733 20l1.3 .75", key: "svg-7" }]]), Kr = we("grip-horizontal", "IconGripHorizontal", [["path", { d: "M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0" }], ["path", { d: "M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], ["path", { d: "M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-2" }], ["path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-3" }], ["path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-4" }], ["path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-5" }]]), Xr = we("maximize", "IconMaximize", [["path", { d: "M4 8v-2a2 2 0 0 1 2 -2h2", key: "svg-0" }], ["path", { d: "M4 16v2a2 2 0 0 0 2 2h2", key: "svg-1" }], ["path", { d: "M16 4h2a2 2 0 0 1 2 2v2", key: "svg-2" }], ["path", { d: "M16 20h2a2 2 0 0 0 2 -2v-2", key: "svg-3" }]]), Zr = we("minimize", "IconMinimize", [["path", { d: "M15 19v-2a2 2 0 0 1 2 -2h2", key: "svg-0" }], ["path", { d: "M15 5v2a2 2 0 0 0 2 2h2", key: "svg-1" }], ["path", { d: "M5 15h2a2 2 0 0 1 2 2v2", key: "svg-2" }], ["path", { d: "M5 9h2a2 2 0 0 0 2 -2v-2", key: "svg-3" }]]), Jr = we("pinned-off", "IconPinnedOff", [["path", { d: "M3 3l18 18", key: "svg-0" }], ["path", { d: "M15 4.5l-3.249 3.249m-2.57 1.433l-2.181 .818l-1.5 1.5l7 7l1.5 -1.5l.82 -2.186m1.43 -2.563l3.25 -3.251", key: "svg-1" }], ["path", { d: "M9 15l-4.5 4.5", key: "svg-2" }], ["path", { d: "M14.5 4l5.5 5.5", key: "svg-3" }]]), Yr = we("pinned", "IconPinned", [["path", { d: "M9 4v6l-2 4v2h10v-2l-2 -4v-6", key: "svg-0" }], ["path", { d: "M12 16l0 5", key: "svg-1" }], ["path", { d: "M8 4l8 0", key: "svg-2" }]]), Qr = we("search-off", "IconSearchOff", [["path", { d: "M5.039 5.062a7 7 0 0 0 9.91 9.89m1.584 -2.434a7 7 0 0 0 -9.038 -9.057", key: "svg-0" }], ["path", { d: "M3 3l18 18", key: "svg-1" }]]), es = we("sort-ascending", "IconSortAscending", [["path", { d: "M4 6l7 0", key: "svg-0" }], ["path", { d: "M4 12l7 0", key: "svg-1" }], ["path", { d: "M4 18l9 0", key: "svg-2" }], ["path", { d: "M15 9l3 -3l3 3", key: "svg-3" }], ["path", { d: "M18 6l0 12", key: "svg-4" }]]), ts = we("sort-descending", "IconSortDescending", [["path", { d: "M4 6l9 0", key: "svg-0" }], ["path", { d: "M4 12l7 0", key: "svg-1" }], ["path", { d: "M4 18l7 0", key: "svg-2" }], ["path", { d: "M15 15l3 3l3 -3", key: "svg-3" }], ["path", { d: "M18 6l0 12", key: "svg-4" }]]);
386/**
387* table-core
388*
389* Copyright (c) TanStack
390*
391* This source code is licensed under the MIT license found in the
392* LICENSE.md file in the root directory of this source tree.
393*
394* @license MIT
vendor: 8,531 bytes, lines 395-550
395*/
396function tt(e, o) {
397  return typeof e == "function" ? e(o) : e;
398}
399function Ve(e, o) {
400  return (t) => {
401    o.setState((n) => __spreadProps(__spreadValues({}, n), { [e]: tt(t, n[e]) }));
402  };
403}
404function Qt(e) {
405  return e instanceof Function;
406}
407function ns(e) {
408  return Array.isArray(e) && e.every((o) => typeof o == "number");
409}
410function hl(e, o) {
411  const t = [], n = (l) => {
412    l.forEach((i) => {
413      t.push(i);
414      const r = o(i);
415      r != null && r.length && n(r);
416    });
417  };
418  return n(e), t;
419}
420function L(e, o, t) {
421  let n = [], l;
422  return (i) => {
423    let r;
424    t.key && t.debug && (r = Date.now());
425    const s = e(i);
426    if (!(s.length !== n.length || s.some((g, f) => n[f] !== g))) return l;
427    n = s;
428    let c;
429    if (t.key && t.debug && (c = Date.now()), l = o(...s), t == null || t.onChange == null || t.onChange(l), t.key && t.debug && t != null && t.debug()) {
430      const g = Math.round((Date.now() - r) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, p = f / 16, d = (m, h) => {
431        for (m = String(m); m.length < h; ) m = " " + m;
432        return m;
433      };
434      console.info(`%c\u23F1 ${d(f, 5)} /${d(g, 5)} ms`, `
435            font-size: .6rem;
436            font-weight: bold;
437            color: hsl(${Math.max(0, Math.min(120 - 120 * p, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
438    }
439    return l;
440  };
441}
442function W(e, o, t, n) {
443  return { debug: () => {
444    var l;
445    return (l = e == null ? void 0 : e.debugAll) != null ? l : e[o];
446  }, key: false, onChange: n };
447}
448function os(e, o, t, n) {
449  const l = () => {
450    var r;
451    return (r = i.getValue()) != null ? r : e.options.renderFallbackValue;
452  }, i = { id: `${o.id}_${t.id}`, row: o, column: t, getValue: () => o.getValue(n), renderValue: l, getContext: L(() => [e, t, o, i], (r, s, u, c) => ({ table: r, column: s, row: u, cell: c, getValue: c.getValue, renderValue: c.renderValue }), W(e.options, "debugCells")) };
453  return e._features.forEach((r) => {
454    r.createCell == null || r.createCell(i, t, o, e);
455  }, {}), i;
456}
457function ls(e, o, t, n) {
458  var l, i;
459  const s = __spreadValues(__spreadValues({}, e._getDefaultColumnDef()), o), u = s.accessorKey;
460  let c = (l = (i = s.id) != null ? i : u ? typeof String.prototype.replaceAll == "function" ? u.replaceAll(".", "_") : u.replace(/\./g, "_") : void 0) != null ? l : typeof s.header == "string" ? s.header : void 0, g;
461  if (s.accessorFn ? g = s.accessorFn : u && (u.includes(".") ? g = (p) => {
462    let d = p;
463    for (const h of u.split(".")) {
464      var m;
465      d = (m = d) == null ? void 0 : m[h];
466    }
467    return d;
468  } : g = (p) => p[s.accessorKey]), !c) throw new Error();
469  let f = { id: `${String(c)}`, accessorFn: g, parent: n, depth: t, columnDef: s, columns: [], getFlatColumns: L(() => [true], () => {
470    var p;
471    return [f, ...(p = f.columns) == null ? void 0 : p.flatMap((d) => d.getFlatColumns())];
472  }, W(e.options, "debugColumns")), getLeafColumns: L(() => [e._getOrderColumnsFn()], (p) => {
473    var d;
474    if ((d = f.columns) != null && d.length) {
475      let m = f.columns.flatMap((h) => h.getLeafColumns());
476      return p(m);
477    }
478    return [f];
479  }, W(e.options, "debugColumns")) };
480  for (const p of e._features) p.createColumn == null || p.createColumn(f, e);
481  return f;
482}
483const Oe = "debugHeaders";
484function yo(e, o, t) {
485  var n;
486  let i = { id: (n = t.id) != null ? n : o.id, column: o, index: t.index, isPlaceholder: !!t.isPlaceholder, placeholderId: t.placeholderId, depth: t.depth, subHeaders: [], colSpan: 0, rowSpan: 0, headerGroup: null, getLeafHeaders: () => {
487    const r = [], s = (u) => {
488      u.subHeaders && u.subHeaders.length && u.subHeaders.map(s), r.push(u);
489    };
490    return s(i), r;
491  }, getContext: () => ({ table: e, header: i, column: o }) };
492  return e._features.forEach((r) => {
493    r.createHeader == null || r.createHeader(i, e);
494  }), i;
495}
496const is = { createTable: (e) => {
497  e.getHeaderGroups = L(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, l) => {
498    var i, r;
499    const s = (i = n == null ? void 0 : n.map((f) => t.find((p) => p.id === f)).filter(Boolean)) != null ? i : [], u = (r = l == null ? void 0 : l.map((f) => t.find((p) => p.id === f)).filter(Boolean)) != null ? r : [], c = t.filter((f) => !(n != null && n.includes(f.id)) && !(l != null && l.includes(f.id)));
500    return At(o, [...s, ...c, ...u], e);
501  }, W(e.options, Oe)), e.getCenterHeaderGroups = L(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, l) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(l != null && l.includes(i.id))), At(o, t, e, "center")), W(e.options, Oe)), e.getLeftHeaderGroups = L(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
502    var l;
503    const i = (l = n == null ? void 0 : n.map((r) => t.find((s) => s.id === r)).filter(Boolean)) != null ? l : [];
504    return At(o, i, e, "left");
505  }, W(e.options, Oe)), e.getRightHeaderGroups = L(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
506    var l;
507    const i = (l = n == null ? void 0 : n.map((r) => t.find((s) => s.id === r)).filter(Boolean)) != null ? l : [];
508    return At(o, i, e, "right");
509  }, W(e.options, Oe)), e.getFooterGroups = L(() => [e.getHeaderGroups()], (o) => [...o].reverse(), W(e.options, Oe)), e.getLeftFooterGroups = L(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), W(e.options, Oe)), e.getCenterFooterGroups = L(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), W(e.options, Oe)), e.getRightFooterGroups = L(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), W(e.options, Oe)), e.getFlatHeaders = L(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), W(e.options, Oe)), e.getLeftFlatHeaders = L(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), W(e.options, Oe)), e.getCenterFlatHeaders = L(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), W(e.options, Oe)), e.getRightFlatHeaders = L(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), W(e.options, Oe)), e.getCenterLeafHeaders = L(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
510    var n;
511    return !((n = t.subHeaders) != null && n.length);
512  }), W(e.options, Oe)), e.getLeftLeafHeaders = L(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
513    var n;
514    return !((n = t.subHeaders) != null && n.length);
515  }), W(e.options, Oe)), e.getRightLeafHeaders = L(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
516    var n;
517    return !((n = t.subHeaders) != null && n.length);
518  }), W(e.options, Oe)), e.getLeafHeaders = L(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
519    var l, i, r, s, u, c;
520    return [...(l = (i = o[0]) == null ? void 0 : i.headers) != null ? l : [], ...(r = (s = t[0]) == null ? void 0 : s.headers) != null ? r : [], ...(u = (c = n[0]) == null ? void 0 : c.headers) != null ? u : []].map((g) => g.getLeafHeaders()).flat();
521  }, W(e.options, Oe));
522} };
523function At(e, o, t, n) {
524  var l, i;
525  let r = 0;
526  const s = function(p, d) {
527    d === void 0 && (d = 1), r = Math.max(r, d), p.filter((m) => m.getIsVisible()).forEach((m) => {
528      var h;
529      (h = m.columns) != null && h.length && s(m.columns, d + 1);
530    }, 0);
531  };
532  s(e);
533  let u = [];
534  const c = (p, d) => {
535    const m = { depth: d, id: [n, `${d}`].filter(Boolean).join("_"), headers: [] }, h = [];
536    p.forEach((v) => {
537      const b = [...h].reverse()[0], C = v.column.depth === m.depth;
538      let _, M = false;
539      if (C && v.column.parent ? _ = v.column.parent : (_ = v.column, M = true), b && (b == null ? void 0 : b.column) === _) b.subHeaders.push(v);
540      else {
541        const w = yo(t, _, { id: [n, d, _.id, v == null ? void 0 : v.id].filter(Boolean).join("_"), isPlaceholder: M, placeholderId: M ? `${h.filter((y) => y.column === _).length}` : void 0, depth: d, index: h.length });
542        w.subHeaders.push(v), h.push(w);
543      }
544      m.headers.push(v), v.headerGroup = m;
545    }), u.push(m), d > 0 && c(h, d - 1);
546  }, g = o.map((p, d) => yo(t, p, { depth: r, index: d }));
547  c(g, r - 1), u.reverse();
548  const f = (p) => p.filter((m) => m.column.getIsVisible()).map((m) => {
549    let h = 0, v = 0, b = [0];
550    m.subHeaders && m.subHeaders.length ? (b = [], f(m.subHeaders).forEac
vendor: 4,735 bytes, lines 550-642
550h((_) => {
551      let { colSpan: M, rowSpan: w } = _;
552      h += M, b.push(w);
553    })) : h = 1;
554    const C = Math.min(...b);
555    return v = v + C, m.colSpan = h, m.rowSpan = v, { colSpan: h, rowSpan: v };
556  });
557  return f((l = (i = u[0]) == null ? void 0 : i.headers) != null ? l : []), u;
558}
559const bt = (e, o, t, n, l, i, r) => {
560  let s = { id: o, index: n, original: t, depth: l, parentId: r, _valuesCache: {}, _uniqueValuesCache: {}, getValue: (u) => {
561    if (s._valuesCache.hasOwnProperty(u)) return s._valuesCache[u];
562    const c = e.getColumn(u);
563    if (c != null && c.accessorFn) return s._valuesCache[u] = c.accessorFn(s.original, n), s._valuesCache[u];
564  }, getUniqueValues: (u) => {
565    if (s._uniqueValuesCache.hasOwnProperty(u)) return s._uniqueValuesCache[u];
566    const c = e.getColumn(u);
567    if (c != null && c.accessorFn) return c.columnDef.getUniqueValues ? (s._uniqueValuesCache[u] = c.columnDef.getUniqueValues(s.original, n), s._uniqueValuesCache[u]) : (s._uniqueValuesCache[u] = [s.getValue(u)], s._uniqueValuesCache[u]);
568  }, renderValue: (u) => {
569    var c;
570    return (c = s.getValue(u)) != null ? c : e.options.renderFallbackValue;
571  }, subRows: i != null ? i : [], getLeafRows: () => hl(s.subRows, (u) => u.subRows), getParentRow: () => s.parentId ? e.getRow(s.parentId, true) : void 0, getParentRows: () => {
572    let u = [], c = s;
573    for (; ; ) {
574      const g = c.getParentRow();
575      if (!g) break;
576      u.push(g), c = g;
577    }
578    return u.reverse();
579  }, getAllCells: L(() => [e.getAllLeafColumns()], (u) => u.map((c) => os(e, s, c, c.id)), W(e.options, "debugRows")), _getAllCellsByColumnId: L(() => [s.getAllCells()], (u) => u.reduce((c, g) => (c[g.column.id] = g, c), {}), W(e.options, "debugRows")) };
580  for (let u = 0; u < e._features.length; u++) {
581    const c = e._features[u];
582    c == null || c.createRow == null || c.createRow(s, e);
583  }
584  return s;
585}, rs = { createColumn: (e, o) => {
586  e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
587    if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
588  };
589} }, vl = (e, o, t) => {
590  var n, l;
591  const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
592  return !!(!((l = e.getValue(o)) == null || (l = l.toString()) == null || (l = l.toLowerCase()) == null) && l.includes(i));
593};
594vl.autoRemove = (e) => We(e);
595const bl = (e, o, t) => {
596  var n;
597  return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
598};
599bl.autoRemove = (e) => We(e);
600const Cl = (e, o, t) => {
601  var n;
602  return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
603};
604Cl.autoRemove = (e) => We(e);
605const _l = (e, o, t) => {
606  var n;
607  return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
608};
609_l.autoRemove = (e) => We(e) || !(e != null && e.length);
610const wl = (e, o, t) => !t.some((n) => {
611  var l;
612  return !((l = e.getValue(o)) != null && l.includes(n));
613});
614wl.autoRemove = (e) => We(e) || !(e != null && e.length);
615const Rl = (e, o, t) => t.some((n) => {
616  var l;
617  return (l = e.getValue(o)) == null ? void 0 : l.includes(n);
618});
619Rl.autoRemove = (e) => We(e) || !(e != null && e.length);
620const Sl = (e, o, t) => e.getValue(o) === t;
621Sl.autoRemove = (e) => We(e);
622const xl = (e, o, t) => e.getValue(o) == t;
623xl.autoRemove = (e) => We(e);
624const io = (e, o, t) => {
625  let [n, l] = t;
626  const i = e.getValue(o);
627  return i >= n && i <= l;
628};
629io.resolveFilterValue = (e) => {
630  let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, l = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, r = t === null || Number.isNaN(l) ? 1 / 0 : l;
631  if (i > r) {
632    const s = i;
633    i = r, r = s;
634  }
635  return [i, r];
636};
637io.autoRemove = (e) => We(e) || We(e[0]) && We(e[1]);
638const Ke = { includesString: vl, includesStringSensitive: bl, equalsString: Cl, arrIncludes: _l, arrIncludesAll: wl, arrIncludesSome: Rl, equals: Sl, weakEquals: xl, inNumberRange: io };
639function We(e) {
640  return e == null || e === "";
641}
642const ss = { getDefaultColumnDef: () => ({ filterFn: "auto" }), getInitialState: (e) => __spreadValues({ columnFilters: [] }, e), getDefaultOptions: (e) =>
vendor: 10,734 bytes, lines 642-828
642 ({ onColumnFiltersChange: Ve("columnFilters", e), filterFromLeafRows: false, maxLeafRowFilterDepth: 100 }), createColumn: (e, o) => {
643  e.getAutoFilterFn = () => {
644    const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
645    return typeof n == "string" ? Ke.includesString : typeof n == "number" ? Ke.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? Ke.equals : Array.isArray(n) ? Ke.arrIncludes : Ke.weakEquals;
646  }, e.getFilterFn = () => {
647    var t, n;
648    return Qt(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : Ke[e.columnDef.filterFn];
649  }, e.getCanFilter = () => {
650    var t, n, l;
651    return ((t = e.columnDef.enableColumnFilter) != null ? t : true) && ((n = o.options.enableColumnFilters) != null ? n : true) && ((l = o.options.enableFilters) != null ? l : true) && !!e.accessorFn;
652  }, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
653    var t;
654    return (t = o.getState().columnFilters) == null || (t = t.find((n) => n.id === e.id)) == null ? void 0 : t.value;
655  }, e.getFilterIndex = () => {
656    var t, n;
657    return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((l) => l.id === e.id)) != null ? t : -1;
658  }, e.setFilterValue = (t) => {
659    o.setColumnFilters((n) => {
660      const l = e.getFilterFn(), i = n == null ? void 0 : n.find((g) => g.id === e.id), r = tt(t, i ? i.value : void 0);
661      if (Mo(l, r, e)) {
662        var s;
663        return (s = n == null ? void 0 : n.filter((g) => g.id !== e.id)) != null ? s : [];
664      }
665      const u = { id: e.id, value: r };
666      if (i) {
667        var c;
668        return (c = n == null ? void 0 : n.map((g) => g.id === e.id ? u : g)) != null ? c : [];
669      }
670      return n != null && n.length ? [...n, u] : [u];
671    });
672  };
673}, createRow: (e, o) => {
674  e.columnFilters = {}, e.columnFiltersMeta = {};
675}, createTable: (e) => {
676  e.setColumnFilters = (o) => {
677    const t = e.getAllLeafColumns(), n = (l) => {
678      var i;
679      return (i = tt(o, l)) == null ? void 0 : i.filter((r) => {
680        const s = t.find((u) => u.id === r.id);
681        if (s) {
682          const u = s.getFilterFn();
683          if (Mo(u, r.value, s)) return false;
684        }
685        return true;
686      });
687    };
688    e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
689  }, e.resetColumnFilters = (o) => {
690    var t, n;
691    e.setColumnFilters(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.columnFilters) != null ? t : []);
692  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
693} };
694function Mo(e, o, t) {
695  return (e && e.autoRemove ? e.autoRemove(o, t) : false) || typeof o > "u" || typeof o == "string" && !o;
696}
697const as = (e, o, t) => t.reduce((n, l) => {
698  const i = l.getValue(e);
699  return n + (typeof i == "number" ? i : 0);
700}, 0), us = (e, o, t) => {
701  let n;
702  return t.forEach((l) => {
703    const i = l.getValue(e);
704    i != null && (n > i || n === void 0 && i >= i) && (n = i);
705  }), n;
706}, ds = (e, o, t) => {
707  let n;
708  return t.forEach((l) => {
709    const i = l.getValue(e);
710    i != null && (n < i || n === void 0 && i >= i) && (n = i);
711  }), n;
712}, cs = (e, o, t) => {
713  let n, l;
714  return t.forEach((i) => {
715    const r = i.getValue(e);
716    r != null && (n === void 0 ? r >= r && (n = l = r) : (n > r && (n = r), l < r && (l = r)));
717  }), [n, l];
718}, gs = (e, o) => {
719  let t = 0, n = 0;
720  if (o.forEach((l) => {
721    let i = l.getValue(e);
722    i != null && (i = +i) >= i && (++t, n += i);
723  }), t) return n / t;
724}, ps = (e, o) => {
725  if (!o.length) return;
726  const t = o.map((i) => i.getValue(e));
727  if (!ns(t)) return;
728  if (t.length === 1) return t[0];
729  const n = Math.floor(t.length / 2), l = t.sort((i, r) => i - r);
730  return t.length % 2 !== 0 ? l[n] : (l[n - 1] + l[n]) / 2;
731}, fs = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), ms = (e, o) => new Set(o.map((t) => t.getValue(e))).size, hs = (e, o) => o.length, Nt = { sum: as, min: us, max: ds, extent: cs, mean: gs, median: ps, unique: fs, uniqueCount: ms, count: hs }, vs = { getDefaultColumnDef: () => ({ aggregatedCell: (e) => {
732  var o, t;
733  return (o = (t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) != null ? o : null;
734}, aggregationFn: "auto" }), getInitialState: (e) => __spreadValues({ grouping: [] }, e), getDefaultOptions: (e) => ({ onGroupingChange: Ve("grouping", e), groupedColumnMode: "reorder" }), createColumn: (e, o) => {
735  e.toggleGrouping = () => {
736    o.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((n) => n !== e.id) : [...t != null ? t : [], e.id]);
737  }, e.getCanGroup = () => {
738    var t, n;
739    return ((t = e.columnDef.enableGrouping) != null ? t : true) && ((n = o.options.enableGrouping) != null ? n : true) && (!!e.accessorFn || !!e.columnDef.getGroupingValue);
740  }, e.getIsGrouped = () => {
741    var t;
742    return (t = o.getState().grouping) == null ? void 0 : t.includes(e.id);
743  }, e.getGroupedIndex = () => {
744    var t;
745    return (t = o.getState().grouping) == null ? void 0 : t.indexOf(e.id);
746  }, e.getToggleGroupingHandler = () => {
747    const t = e.getCanGroup();
748    return () => {
749      t && e.toggleGrouping();
750    };
751  }, e.getAutoAggregationFn = () => {
752    const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
753    if (typeof n == "number") return Nt.sum;
754    if (Object.prototype.toString.call(n) === "[object Date]") return Nt.extent;
755  }, e.getAggregationFn = () => {
756    var t, n;
757    if (!e) throw new Error();
758    return Qt(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Nt[e.columnDef.aggregationFn];
759  };
760}, createTable: (e) => {
761  e.setGrouping = (o) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(o), e.resetGrouping = (o) => {
762    var t, n;
763    e.setGrouping(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.grouping) != null ? t : []);
764  }, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
765}, createRow: (e, o) => {
766  e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
767    if (e._groupingValuesCache.hasOwnProperty(t)) return e._groupingValuesCache[t];
768    const n = o.getColumn(t);
769    return n != null && n.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
770  }, e._groupingValuesCache = {};
771}, createCell: (e, o, t, n) => {
772  e.getIsGrouped = () => o.getIsGrouped() && o.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && o.getIsGrouped(), e.getIsAggregated = () => {
773    var l;
774    return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((l = t.subRows) != null && l.length);
775  };
776} };
777function bs(e, o, t) {
778  if (!(o != null && o.length) || !t) return e;
779  const n = e.filter((i) => !o.includes(i.id));
780  return t === "remove" ? n : [...o.map((i) => e.find((r) => r.id === i)).filter(Boolean), ...n];
781}
782const Cs = { getInitialState: (e) => __spreadValues({ columnOrder: [] }, e), getDefaultOptions: (e) => ({ onColumnOrderChange: Ve("columnOrder", e) }), createColumn: (e, o) => {
783  e.getIndex = L((t) => [Mt(o, t)], (t) => t.findIndex((n) => n.id === e.id), W(o.options, "debugColumns")), e.getIsFirstColumn = (t) => {
784    var n;
785    return ((n = Mt(o, t)[0]) == null ? void 0 : n.id) === e.id;
786  }, e.getIsLastColumn = (t) => {
787    var n;
788    const l = Mt(o, t);
789    return ((n = l[l.length - 1]) == null ? void 0 : n.id) === e.id;
790  };
791}, createTable: (e) => {
792  e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
793    var t;
794    e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
795  }, e._getOrderColumnsFn = L(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (l) => {
796    let i = [];
797    if (!(o != null && o.length)) i = l;
798    else {
799      const r = [...o], s = [...l];
800      for (; s.length && r.length; ) {
801        const u = r.shift(), c = s.findIndex((g) => g.id === u);
802        c > -1 && i.push(s.splice(c, 1)[0]);
803      }
804      i = [...i, ...s];
805    }
806    return bs(i, t, n);
807  }, W(e.options, "debugTable"));
808} }, fn = () => ({ left: [], right: [] }), _s = { getInitialState: (e) => __spreadValues({ columnPinning: fn() }, e), getDefaultOptions: (e) => ({ onColumnPinningChange: Ve("columnPinning", e) }), createColumn: (e, o) => {
809  e.pin = (t) => {
810    const n = e.getLeafColumns().map((l) => l.id).filter(Boolean);
811    o.setColumnPinning((l) => {
812      var i, r;
813      if (t === "right") {
814        var s, u;
815        return { left: ((s = l == null ? void 0 : l.left) != null ? s : []).filter((f) => !(n != null && n.includes(f))), right: [...((u = l == null ? void 0 : l.right) != null ? u : []).filter((f) => !(n != null && n.includes(f))), ...n] };
816      }
817      if (t === "left") {
818        var c, g;
819        return { left: [...((c = l == null ? void 0 : l.left) != null ? c : []).filter((f) => !(n != null && n.includes(f))), ...n], right: ((g = l == null ? void 0 : l.right) != null ? g : []).filter((f) => !(n != null && n.includes(f))) };
820      }
821      return { left: ((i = l == null ? void 0 : l.left) != null ? i : []).filter((f) => !(n != null && n.includes(f))), right: ((r = l == null ? void 0 : l.right) != null ? r : []).filter((f) => !(n != null && n.includes(f))) };
822    });
823  }, e.getCanPin = () => e.getLeafColumns().some((n) => {
824    var l, i, r;
825    return ((l = n.columnDef.enablePinning) != null ? l : true) && ((i = (r = o.options.enableColumnPinning) != null ? r : o.options.enablePinning) != null ? i : true);
826  }), e.getIsPinned = () => {
827    const t = e.getLeafColumns().map((s) => s.id), { left: n, right: l } = o.getState().columnPinning, i = t.some((s) => n == null ? void 0 : n.includes(s)), r = t.some((s) => l == null ? void 0 : l.includes(s));
828    return i ? "left" : r ? "right" : false;
829  }, e.getPinnedIndex = () => {
830    var t, n;
831    const l = e.getIsPinned();
832    return l ? (t = (n = o.getState().columnPinning) == null || (n = n[l]) == null ? void 0 : n.indexOf(e.id)) != null ? t : -1 : 0;
833  };
834}, createRow: (e, o) => {
835  e.getCenterVisibleCells = L(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, l) => {
836    const i = [...n != null ? n : [], ...l != null ? l : []];
837    return t.filter((r) => !i.includes(r.column.id));
838  }, W(o.options, "debugRows")), e.getLeftVisibleCells = L(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n != null ? n : []).map((i) => t.find((r) => r.column.id === i)).filter(Boolean).map((i) => __spreadProps(__spreadValues({}, i), { position: "left" })), W(o.options, "debugRows")), e.getRightVisibleCells = L(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n != null ? n : []).map((i) => t.find((r) => r.column.id === i)).filter(Boolean).map((i) => __spreadProps(__spreadValues({}, i), { position: "right" })), W(o.options, "debugRows"));
839}, createTable: (e) => {
840  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
841    var t, n;
842    return e.setColumnPinning(o ? fn() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : fn());
843  }, e.getIsSomeColumnsPinned = (o) => {
844    var t;
845    const n = e.getState().columnPinning;
846    if (!o) {
847      var l, i;
848      return !!((l = n.left) != null && l.length || (i = n.right) != null && i.length);
849    }
850    return !!((t = n[o]) != null && t.length);
851  }, e.getLeftLeafColumns = L(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t != null ? t : []).map((n) => o.find((l) => l.id === n)).filter(Boolean), W(e.options, "debugColumns")), e.getRightLeafColumns = L(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t != null ? t : []).map((n) => o.find((l) => l.id === n)).filter(Boolean), W(e.options, "debugColumns")), e.getCenterLeafColumns = L(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
852    const l = [...t != null ? t : [], ...n != null ? n : []];
853    return o.filter((i) => !l.includes(i.id));
854  }, W(e.options, "debugColumns"));
855} }, Vt = { size: 150, minSize: 20, maxSize: Number.MAX_SAFE_INTEGER }, mn = () => ({ startOffset: null, startSize: null, deltaOffset: null, deltaPercentage: null, isResizingColumn: false, columnSizingStart: [] }), ws = { getDefaultColumnDef: () => Vt, getInitialState: (e) => __spreadValues({ columnSizing: {}, columnSizingInfo: mn() }, e), getDefaultOptions: (e) => ({ columnResizeMode: "onEnd", columnResizeDirection: "ltr", onColumnSizingChange: Ve("columnSizing", e), onColumnSizingInfoChange: Ve("columnSizingInfo", e) }), createColumn: (e, o) => {
856  e.getSize = () => {
857    var t, n, l;
858    const i = o.getState().columnSizing[e.id];
859    return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Vt.minSize, (n = i != null ? i : e.columnDef.size) != null ? n : Vt.size), (l = e.columnDef.maxSize) != null ? l : Vt.maxSize);
860  }, e.getStart = L((t) => [t, Mt(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((l, i) => l + i.getSize(), 0), W(o.options, "debugColumns")), e.getAfter = L((t) => [t, Mt(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((l, i) => l + i.getSize(), 0), W(o.options, "debugColumns")), e.resetSize = () => {
861    o.setColumnSizing((t) => {
862      var _a2;
863      let _b = t, { [_a2 = e.id]: n } = _b, l = __objRest(_b, [__restKey(_a2)]);
864      return l;
865    });
866  }, e.getCanResize = () => {
867    var t, n;
868    return ((t = e.columnDef.enableResizing) != null ? t : true) && ((n = o.options.enableColumnResizing) != null ? n : true);
869  }, e.getIsResizing = () => o.getState().columnSizingInfo.isResizingColumn === e.id;
870}, createHeader: (e, o) => {
871  e.getSize = () => {
872    let t = 0;
873    const n = (l) => {
874      if (l.subHeaders.length) l.subHeaders.forEach(n);
875      else {
876        var i;
877        t += (i = l.column.getSize()) != null ? i : 0;
878      }
879    };
880    return n(e), t;
881  }, e.getStart = () => {
882    if (e.index > 0) {
883      const t = e.headerGroup.headers[e.index - 1];
884      return t.getStart() + t.getSize();
885    }
886    return 0;
887  }, e.getResizeHandler = (t) => {
888    const n = o.getColumn(e.column.id), l = n == null ? void 0 : n.getCanResize();
889    return (i) => {
890      if (!n || !l || (i.persist == null || i.persist(), hn(i) && i.touches && i.touches.length > 1)) return;
891      const r = e.getSize(), s = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[n.id, n.getSize()]], u = hn(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, g = (b, C) => {
892        typeof C == "number" && (o.setColumnSizingInfo((_) => {
893          var M, w;
894          const y = o.options.columnResizeDirection === "rtl" ? -1 : 1, S = (C - ((M = _ == null ? void 0 : _.startOffset) != null ? M : 0)) * y, R = Math.max(S / ((w = _ == null ? void 0 : _.startSize) != null ? w : 0), -0.999999);
895          return _.columnSizingStart.forEach((P) => {
896            let [F, O] = P;
897            c[F] = Math.round(Math.max(O + O * R, 0) * 100) / 100;
898          }), __spreadProps(__spreadValues({}, _), { deltaOffset: S, deltaPercentage: R });
899        }), (o.options.columnResizeMode === "onChange" || b === "end") && o.setColumnSizing((_) => __spreadValues(__spreadValues({}, _), c)));
900      }, f = (b) => g("move", b), p = (b) => {
901        g("end", b), o.setColumnSizingInfo((C) => __spreadProps(__spreadValues({}, C), { isResizingColumn: false, startOffset: null, startSize: null, deltaOffset: null, deltaPercentage: null, columnSizingStart: [] }));
902      }, d = t || typeof document < "u" ? document : null, m = { moveHandler: (b) => f(b.clientX), upHandler: (b) => {
903        d == null ? void 0 : d.removeEventListener("mousemove", m.moveHandler), d == null ? void 0 : d.removeEventListener("mouseup", m.upHandler), p(b.clientX);
904      } }, h = { moveHandler: (b) => (b.cancelable && (b.preventDefault(), b.stopPropagation()), f(b.touches[0].clientX), false), upHandler: (b) => {
905        var C;
906        d == null ? void 0 : d.removeEventListener("touchmove", h.moveHandler), d == null ? void 0 : d.removeEventListener("touchend", h.upHandler), b.cancelable && (b.preventDefault(), b.stopPropagation()), p((C = b.touches[0]) == null ? void 0 : C.clientX);
907      } }, v = Rs() ? { passive: false } : false;
908      hn(i) ? (d == null ? void 0 : d.addEventListener("touchmove", h.moveHandler, v), d == null ? void 0 : d.addEventListener("touchend", h.upHandler, v)) : (d == null ? void 0 : d.addEventListener("mousemove", m.moveHandler, v), d == null ? void 0 : d.addEventListener("mouseup", m.upHandler, v)), o.setColumnSizingInfo((b) => __spreadProps(__spreadValues({}, b), { startOffset: u, startSize: r, deltaOffset: 0, deltaPercentage: 0, columnSizingStart: s, isResizingColumn: n.id }));
909    };
910  };
911}, createTable: (e) => {
912  e.setColumnSizing = (o) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(o), e.setColumnSizingInfo = (o) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(o), e.resetColumnSizing = (o) => {
913    var t;
914    e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
915  }, e.resetHeaderSizeInfo = (o) => {
916    var t;
917    e.setColumnSizingInfo(o ? mn() : (t = e.initialState.columnSizingInfo) != null ? t : mn());
918  }, e.getTotalSize = () => {
919    var o, t;
920    return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, l) => n + l.getSize(), 0)) != null ? o : 0;
921  }, e.getLeftTotalSize = () => {
922    var o, t;
923    return (o = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, l) => n + l.getSize(), 0)) != null ? o : 0;
924  }, e.getCenterTotalSize = () => {
925    var o, t;
926    return (o = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, l) => n + l.getSize(), 0)) != null ? o : 0;
927  }, e.getRightTotalSize = () => {
928    var o, t;
929    return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, l) => n + l.getSize(), 0)) != null ? o : 0;
930  };
931} };
932let kt = null;
933function Rs() {
934  if (typeof kt == "boolean") return kt;
935  let e = false;
936  try {
937    const o = { get passive() {
938      return e = true, false;
939    } }, t = () => {
940    };
941    window.addEventListener("test", t, o), window.removeEventListener("test", t);
942  } catch (e2) {
943    e = false;
944  }
945  return kt = e, kt;
946}
947function hn(e) {
948  return e.type === "touchstart";
949}
950const Ss = { getInitialState: (e) => __spreadValues({ columnVisibility: {} }, e), getDefaultOptions: (e) => ({ onColumnVisibilityChange: Ve("columnVisibility", e) }), createColumn: (e, o) => {
951  e.toggleVisibility = (t) => {
952    e.getCanHide() && o.setColumnVisibility((n) => __spreadProps(__spreadValues({}, n), { [e.id]: t != null ? t : !e.getIsVisible() }));
953  }, e.getIsVisible = () => {
954    var t, n;
955    const l = e.columns;
956    return (t = l.length ? l.some((i) => i.getIsVisible()) : (n = o.getState().columnVisibility) == null ? void 0 : n[e.id]) != null ? t : true;
957  }, e.getCanHide = () => {
958    var t, n;
959    return ((t = e.columnDef.enableHiding) != null ? t : true) && ((n = o.options.enableHiding) != null ? n : true);
960  }, e.getToggleVisibilityHandler = () => (t) => {
961    e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
962  };
963}, createRow: (e, o) => {
964  e._getAllVisibleCells = L(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), W(o.options, "debugRows")), e.getVisibleCells = L(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, l) => [...t, ...n, ...l], W(o.options, "debugRows"));
965}, createTable: (e) => {
966  const o = (t, n) => L(() => [n(), n().filter((l) => l.getIsVisible()).map((l) => l.id).join("_")], (l) => l.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), W(e.options, "debugColumns"));
967  e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
968    var n;
969    e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
970  }, e.toggleAllColumnsVisible = (t) => {
971    var n;
972    t = (n = t) != null ? n : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((l, i) => __spreadProps(__spreadValues({}, l), { [i.id]: t || !(i.getCanHide != null && i.getCanHide()) }), {}));
973  }, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((t) => !(t.getIsVisible != null && t.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((t) => t.getIsVisible == null ? void 0 : t.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
974    var n;
975    e.toggleAllColumnsVisible((n = t.target) == null ? void 0 : n.checked);
976  };
977} };
978function Mt(e, o) {
979  return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
980}
981const xs = { createTable: (e) => {
982  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
983    if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
984  };
985} }, ys = { getInitialState: (e) => __spreadValues({ globalFilter: void 0 }, e), getDefaultOptions: (e) => ({ onGlobalFilterChange: Ve("globalFilter", e), globalFilterFn: "auto", getColumnCanGlobalFilter: (o) => {
986  var t;
987  const n = (t = e.getCoreRowModel().flatRows[0]) == null || (t = t._getAllCellsByColumnId()[o.id]) == null ? void 0 : t.getValue();
988  return typeof n == "string" || typeof n == "number";
989} }), createColumn: (e, o) => {
990  e.getCanGlobalFilter = () => {
991    var t, n, l, i;
992    return ((t = e.columnDef.enableGlobalFilter) != null ? t : true) && ((n = o.options.enableGlobalFilter) != null ? n : true) && ((l = o.options.enableFilters) != null ? l : true) && ((i = o.options.getColumnCanGlobalFilter == null ? void 0 : o.options.getColumnCanGlobalFilter(e)) != null ? i : true) && !!e.accessorFn;
993  };
994}, createTable: (e) => {
995  e.getGlobalAutoFilterFn = () => Ke.includesString, e.getGlobalFilterFn = () => {
996    var o, t;
997    const { globalFilterFn: n } = e.options;
998    return Qt(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : Ke[n];
999  }, e.setGlobalFilter = (o) => {
1000    e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
1001  }, e.resetGlobalFilter = (o) => {
1002    e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
1003  };
1004} }, Ms = { getInitialState: (e) => __spreadValues({ expanded: {} }, e), getDefaultOptions: (e) => ({ onExpandedChange: Ve("expanded", e), paginateExpandedRows: true }), createTable: (e) => {
1005  let o = false, t = false;
1006  e._autoResetExpanded = () => {
1007    var n, l;
1008    if (!o) {
1009      e._queue(() => {
1010        o = true;
1011      });
1012      return;
1013    }
1014    if ((n = (l = e.options.autoResetAll) != null ? l : e.options.autoResetExpanded) != null ? n : !e.options.manualExpanding) {
1015      if (t) return;
1016      t = true, e._queue(() => {
1017        e.resetExpanded(), t = false;
1018      });
1019    }
1020  }, e.setExpanded = (n) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(n), e.toggleAllRowsExpanded = (n) => {
1021    (n != null ? n : !e.getIsAllRowsExpanded()) ? e.setExpanded(true) : e.setExpanded({});
1022  }, e.resetExpanded = (n) => {
1023    var l, i;
1024    e.setExpanded(n ? {} : (l = (i = e.initialState) == null ? void 0 : i.expanded) != null ? l : {});
1025  }, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((n) => n.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (n) => {
1026    n.persist == null || n.persist(), e.toggleAllRowsExpanded();
1027  }, e.getIsSomeRowsExpanded = () => {
1028    const n = e.getState().expanded;
1029    return n === true || Object.values(n).some(Boolean);
1030  }, e.getIsAllRowsExpanded = () => {
1031    const n = e.getState().expanded;
1032    return typeof n == "boolean" ? n === true : !(!Object.keys(n).length || e.getRowModel().flatRows.some((l) => !l.getIsExpanded()));
1033  }, e.getExpandedDepth = () => {
1034    let n = 0;
1035    return (e.getState().expanded === true ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
1036      const r = i.split(".");
1037      n = Math.max(n, r.length);
1038    }), n;
1039  }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.o
1039ptions.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
1040}, createRow: (e, o) => {
1041  e.toggleExpanded = (t) => {
1042    o.setExpanded((n) => {
1043      var _a2;
1044      var l;
1045      const i = n === true ? true : !!(n != null && n[e.id]);
1046      let r = {};
1047      if (n === true ? Object.keys(o.getRowModel().rowsById).forEach((s) => {
1048        r[s] = true;
1049      }) : r = n, t = (l = t) != null ? l : !i, !i && t) return __spreadProps(__spreadValues({}, r), { [e.id]: true });
1050      if (i && !t) {
1051        const _b = r, { [_a2 = e.id]: s } = _b, u = __objRest(_b, [__restKey(_a2)]);
1052        return u;
1053      }
1054      return n;
1055    });
1056  }, e.getIsExpanded = () => {
1057    var t;
1058    const n = o.getState().expanded;
1059    return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === true || (n == null ? void 0 : n[e.id]));
1060  }, e.getCanExpand = () => {
1061    var t, n, l;
1062    return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : true) && !!((l = e.subRows) != null && l.length);
1063  }, e.getIsAllParentsExpanded = () => {
1064    let t = true, n = e;
1065    for (; t && n.parentId; ) n = o.getRow(n.parentId, true), t = n.getIsExpanded();
1066    return t;
1067  }, e.getToggleExpandedHandler = () => {
1068    const t = e.getCanExpand();
1069    return () => {
1070      t && e.toggleExpanded();
1071    };
1072  };
1073} }, An = 0, Vn = 10, vn = () => ({ pageIndex: An, pageSize: Vn }), Ts = { getInitialState: (e) => __spreadProps(__spreadValues({}, e), { pagination: __spreadValues(__spreadValues({}, vn()), e == null ? void 0 : e.pagination) }), getDefaultOptions: (e) => ({ onPaginationChange: Ve("pagination", e) }), createTable: (e) => {
1074  let o = false, t = false;
1075  e._autoResetPageIndex = () => {
1076    var n, l;
1077    if (!o) {
1078      e._queue(() => {
1079        o = true;
1080      });
1081      return;
1082    }
1083    if ((n = (l = e.options.autoResetAll) != null ? l : e.options.autoResetPageIndex) != null ? n : !e.options.manualPagination) {
1084      if (t) return;
1085      t = true, e._queue(() => {
1086        e.resetPageIndex(), t = false;
1087      });
1088    }
1089  }, e.setPagination = (n) => {
1090    const l = (i) => tt(n, i);
1091    return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(l);
1092  }, e.resetPagination = (n) => {
1093    var l;
1094    e.setPagination(n ? vn() : (l = e.initialState.pagination) != null ? l : vn());
1095  }, e.setPageIndex = (n) => {
1096    e.setPagination((l) => {
1097      let i = tt(n, l.pageIndex);
1098      const r = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
1099      return i = Math.max(0, Math.min(i, r)), __spreadProps(__spreadValues({}, l), { pageIndex: i });
1100    });
1101  }, e.resetPageIndex = (n) => {
1102    var l, i;
1103    e.setPageIndex(n ? An : (l = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? l : An);
1104  }, e.resetPageSize = (n) => {
1105    var l, i;
1106    e.setPageSize(n ? Vn : (l = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? l : Vn);
1107  }, e.setPageSize = (n) => {
1108    e.setPagination((l) => {
1109      const i = Math.max(1, tt(n, l.pageSize)), r = l.pageSize * l.pageIndex, s = Math.floor(r / i);
1110      return __spreadProps(__spreadValues({}, l), { pageIndex: s, pageSize: i });
1111    });
1112  }, e.setPageCount = (n) => e.setPagination((l) => {
1113    var i;
1114    let r = tt(n, (i = e.options.pageCount) != null ? i : -1);
1115    return typeof r == "number" && (r = Math.max(-1, r)), __spreadProps(__spreadValues({}, l), { pageCount: r });
1116  }), e.getPageOptions = L(() => [e.getPageCount()], (n) => {
1117    let l = [];
1118    return n && n > 0 && (l = [...new Array(n)].fill(null).map((i, r) => r)), l;
1119  }, W(e.options, "debugTable")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1120    const { pageIndex: n } = e.getState().pagination, l = e.getPageCount();
1121    return l === -1 ? true : l === 0 ? false : n < l - 1;
1122  }, e.previousPage = () => e.setPageIndex((n) => n - 1), e.nextPage = () => e.setPageIndex((n) => n + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.o
1122ptions.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
1123    var n;
1124    return (n = e.options.pageCount) != null ? n : Math.ceil(e.getRowCount() / e.getState().pagination.pageSize);
1125  }, e.getRowCount = () => {
1126    var n;
1127    return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
1128  };
1129} }, bn = () => ({ top: [], bottom: [] }), Fs = { getInitialState: (e) => __spreadValues({ rowPinning: bn() }, e), getDefaultOptions: (e) => ({ onRowPinningChange: Ve("rowPinning", e) }), createRow: (e, o) => {
1130  e.pin = (t, n, l) => {
1131    const i = n ? e.getLeafRows().map((u) => {
1132      let { id: c } = u;
1133      return c;
1134    }) : [], r = l ? e.getParentRows().map((u) => {
1135      let { id: c } = u;
1136      return c;
1137    }) : [], s = /* @__PURE__ */ new Set([...r, e.id, ...i]);
1138    o.setRowPinning((u) => {
1139      var c, g;
1140      if (t === "bottom") {
1141        var f, p;
1142        return { top: ((f = u == null ? void 0 : u.top) != null ? f : []).filter((h) => !(s != null && s.has(h))), bottom: [...((p = u == null ? void 0 : u.bottom) != null ? p : []).filter((h) => !(s != null && s.has(h))), ...Array.from(s)] };
1143      }
1144      if (t === "top") {
1145        var d, m;
1146        return { top: [...((d = u == null ? void 0 : u.top) != null ? d : []).filter((h) => !(s != null && s.has(h))), ...Array.from(s)], bottom: ((m = u == null ? void 0 : u.bottom) != null ? m : []).filter((h) => !(s != null && s.has(h))) };
1147      }
1148      return { top: ((c = u == null ? void 0 : u.top) != null ? c : []).filter((h) => !(s != null && s.has(h))), bottom: ((g = u == null ? void 0 : u.bottom) != null ? g : []).filter((h) => !(s != null && s.has(h))) };
1149    });
1150  }, e.getCanPin = () => {
1151    var t;
1152    const { enableRowPinning: n, enablePinning: l } = o.options;
1153    return typeof n == "function" ? n(e) : (t = n != null ? n : l) != null ? t : true;
1154  }, e.getIsPinned = () => {
1155    const t = [e.id], { top: n, bottom: l } = o.getState().rowPinning, i = t.some((s) => n == null ? void 0 : n.includes(s)), r = t.some((s) => l == null ? void 0 : l.includes(s));
1156    return i ? "top" : r ? "bottom" : false;
1157  }, e.getPinnedIndex = () => {
1158    var t, n;
1159    const l = e.getIsPinned();
1160    if (!l) return -1;
1161    const i = (t = l === "top" ? o.getTopRows() : o.getBottomRows()) == null ? void 0 : t.map((r) => {
1162      let { id: s } = r;
1163      return s;
1164    });
1165    return (n = i == null ? void 0 : i.indexOf(e.id)) != null ? n : -1;
1166  };
1167}, createTable: (e) => {
1168  e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
1169    var t, n;
1170    return e.setRowPinning(o ? bn() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : bn());
1171  }, e.getIsSomeRowsPinned = (o) => {
1172    var t;
1173    const n = e.getState().rowPinning;
1174    if (!o) {
1175      var l, i;
1176      return !!((l = n.top) != null && l.length || (i = n.bottom) != null && i.length);
1177    }
1178    return !!((t = n[o]) != null && t.length);
1179  }, e._getPinnedRows = (o, t, n) => {
1180    var l;
1181    return ((l = e.options.keepPinnedRows) == null || l ? (t != null ? t : []).map((r) => {
1182      const s = e.getRow(r, true);
1183      return s.getIsAllParentsExpanded() ? s : null;
1184    }) : (t != null ? t : []).map((r) => o.find((s) => s.id === r))).filter(Boolean).map((r) => __spreadProps(__spreadValues({}, r), { position: n }));
1185  }, e.getTopRows = L(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), W(e.options, "debugRows")), e.getBottomRows = L(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), W(e.options, "debugRows")), e.getCenterRows = L(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1186    const l = /* @__PURE__ */ new Set([...t != null ? t : [], ...n != null ? n : []]);
1187    return o.filter((i) => !l.has(i.id));
1188  }, W(e.options, "debugRows"));
1189} }, js = { getInitialState: (e) => __spreadValues({ rowSelection: {} }, e), getDefaultOptions: (e) => ({ onRowSelectionChange: Ve("rowSelection", e), enableRowSelection: true, enableMultiRowSelection: true, enableSubRowSelection: true }), createTable: (e) => {
1190  e.setRowSelection = (o) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(o), e.resetRowSelection = (o) => {
1191    var t;
1192    return e.setRowSelection(o ? {}
1192 : (t = e.initialState.rowSelection) != null ? t : {});
1193  }, e.toggleAllRowsSelected = (o) => {
1194    e.setRowSelection((t) => {
1195      o = typeof o < "u" ? o : !e.getIsAllRowsSelected();
1196      const n = __spreadValues({}, t), l = e.getPreGroupedRowModel().flatRows;
1197      return o ? l.forEach((i) => {
1198        i.getCanSelect() && (n[i.id] = true);
1199      }) : l.forEach((i) => {
1200        delete n[i.id];
1201      }), n;
1202    });
1203  }, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
1204    const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), l = __spreadValues({}, t);
1205    return e.getRowModel().rows.forEach((i) => {
1206      kn(l, i.id, n, true, e);
1207    }), l;
1208  }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = L(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? Cn(e, t) : { rows: [], flatRows: [], rowsById: {} }, W(e.options, "debugTable")), e.getFilteredSelectedRowModel = L(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? Cn(e, t) : { rows: [], flatRows: [], rowsById: {} }, W(e.options, "debugTable")), e.getGroupedSelectedRowModel = L(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? Cn(e, t) : { rows: [], flatRows: [], rowsById: {} }, W(e.options, "debugTable")), e.getIsAllRowsSelected = () => {
1209    const o = e.getFilteredRowModel().flatRows, { rowSelection: t } = e.getState();
1210    let n = !!(o.length && Object.keys(t).length);
1211    return n && o.some((l) => l.getCanSelect() && !t[l.id]) && (n = false), n;
1212  }, e.getIsAllPageRowsSelected = () => {
1213    const o = e.getPaginationRowModel().flatRows.filter((l) => l.getCanSelect()), { rowSelection: t } = e.getState();
1214    let n = !!o.length;
1215    return n && o.some((l) => !t[l.id]) && (n = false), n;
1216  }, e.getIsSomeRowsSelected = () => {
1217    var o;
1218    const t = Object.keys((o = e.getState().rowSelection) != null ? o : {}).length;
1219    return t > 0 && t < e.getFilteredRowModel().flatRows.length;
1220  }, e.getIsSomePageRowsSelected = () => {
1221    const o = e.getPaginationRowModel().flatRows;
1222    return e.getIsAllPageRowsSelected() ? false : o.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
1223  }, e.getToggleAllRowsSelectedHandler = () => (o) => {
1224    e.toggleAllRowsSelected(o.target.checked);
1225  }, e.getToggleAllPageRowsSelectedHandler = () => (o) => {
1226    e.toggleAllPageRowsSelected(o.target.checked);
1227  };
1228}, createRow: (e, o) => {
1229  e.toggleSelected = (t, n) => {
1230    const l = e.getIsSelected();
1231    o.setRowSelection((i) => {
1232      var r;
1233      if (t = typeof t < "u" ? t : !l, e.getCanSelect() && l === t) return i;
1234      const s = __spreadValues({}, i);
1235      return kn(s, e.id, t, (r = n == null ? void 0 : n.selectChildren) != null ? r : true, o), s;
1236    });
1237  }, e.getIsSelected = () => {
1238    const { rowSelection: t } = o.getState();
1239    return ro(e, t);
1240  }, e.getIsSomeSelected = () => {
1241    const { rowSelection: t } = o.getState();
1242    return $n(e, t) === "some";
1243  }, e.getIsAllSubRowsSelected = () => {
1244    const { rowSelection: t } = o.getState();
1245    return $n(e, t) === "all";
1246  }, e.getCanSelect = () => {
1247    var t;
1248    return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : true;
1249  }, e.getCanSelectSubRows = () => {
1250    var t;
1251    return typeof o.options.enableSubRowSelection == "function" ? o.options.enableSubRowSelection(e) : (t = o.options.enableSubRowSelection) != null ? t : true;
1252  }, e.getCanMultiSelect = () => {
1253    var t;
1254    return typeof o.options.enableMultiRowSelection == "function" ? o.options.enableMultiRowSelection(e) : (t = o.options.enableMultiRowSelection) != null ? t : true;
1255  }, e.getToggleSelectedHandler = () => {
1256    const t = e.getCanSelect();
1257    return (n) => {
1258      var l;
1259      t && e.toggleSelected((l = n.target) == null ? void 0 : l.checked);
1260    };
1261  };
1262} }, kn = (e, o, t, n, l) => {
1263  var i;
1264  const r = l.getRow(o, true);
1265  t ? (r.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), r.getCanSelect() && (e[o] = true)) : delete e[o], n && (i = r.subRows) != null && i.length && r.getCanSelectSubRows() && r.subRows.forEach((s) => kn(e, s.id, t, n, l));
1266};
1267function Cn(e, o) {
1268  const t = e.getState().rowSelection, n = [], l = {}, i = function(r, s) {
1269    return r.map((u) => {
1270      var c;
1271      const g = ro(u, t);
1272      if (g && (n.push(u), l[u.id] = u), (c = u.subRows) != null && c.length && (u = __spreadProps(__spreadValues({}, u), { subRows: i(u.subRows) })), g) return u;
1273    }
1273).filter(Boolean);
1274  };
1275  return { rows: i(o.rows), flatRows: n, rowsById: l };
1276}
1277function ro(e, o) {
1278  var t;
1279  return (t = o[e.id]) != null ? t : false;
1280}
1281function $n(e, o, t) {
1282  var n;
1283  if (!((n = e.subRows) != null && n.length)) return false;
1284  let l = true, i = false;
1285  return e.subRows.forEach((r) => {
1286    if (!(i && !l) && (r.getCanSelect() && (ro(r, o) ? i = true : l = false), r.subRows && r.subRows.length)) {
1287      const s = $n(r, o);
1288      s === "all" ? i = true : (s === "some" && (i = true), l = false);
1289    }
1290  }), l ? "all" : i ? "some" : false;
1291}
1292const Hn = /([0-9]+)/gm, Ps = (e, o, t) => yl(nt(e.getValue(t)).toLowerCase(), nt(o.getValue(t)).toLowerCase()), Is = (e, o, t) => yl(nt(e.getValue(t)), nt(o.getValue(t))), Os = (e, o, t) => so(nt(e.getValue(t)).toLowerCase(), nt(o.getValue(t)).toLowerCase()), Es = (e, o, t) => so(nt(e.getValue(t)), nt(o.getValue(t))), Ds = (e, o, t) => {
1293  const n = e.getValue(t), l = o.getValue(t);
1294  return n > l ? 1 : n < l ? -1 : 0;
1295}, zs = (e, o, t) => so(e.getValue(t), o.getValue(t));
1296function so(e, o) {
1297  return e === o ? 0 : e > o ? 1 : -1;
1298}
1299function nt(e) {
1300  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1301}
1302function yl(e, o) {
1303  const t = e.split(Hn).filter(Boolean), n = o.split(Hn).filter(Boolean);
1304  for (; t.length && n.length; ) {
1305    const l = t.shift(), i = n.shift(), r = parseInt(l, 10), s = parseInt(i, 10), u = [r, s].sort();
1306    if (isNaN(u[0])) {
1307      if (l > i) return 1;
1308      if (i > l) return -1;
1309      continue;
1310    }
1311    if (isNaN(u[1])) return isNaN(r) ? -1 : 1;
1312    if (r > s) return 1;
1313    if (s > r) return -1;
1314  }
1315  return t.length - n.length;
1316}
1317const lt = { alphanumeric: Ps, alphanumericCaseSensitive: Is, text: Os, textCaseSensitive: Es, datetime: Ds, basic: zs }, As = { getInitialState: (e) => __spreadValues({ sorting: [] }, e), getDefaultColumnDef: () => ({ sortingFn: "auto", sortUndefined: 1 }), getDefaultOptions: (e) => ({ onSortingChange: Ve("sorting", e), isMultiSortEvent: (o) => o.shiftKey }), createColumn: (e, o) => {
1318  e.getAutoSortingFn = () => {
1319    const t = o.getFilteredRowModel().flatRows.slice(10);
1320    let n = false;
1321    for (const l of t) {
1322      const i = l == null ? void 0 : l.getValue(e.id);
1323      if (Object.prototype.toString.call(i) === "[object Date]") return lt.datetime;
1324      if (typeof i == "string" && (n = true, i.split(Hn).length > 1)) return lt.alphanumeric;
1325    }
1326    return n ? lt.text : lt.basic;
1327  }, e.getAutoSortDir = () => {
1328    const t = o.getFilteredRowModel().flatRows[0];
1329    return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
1330  }, e.getSortingFn = () => {
1331    var t, n;
1332    if (!e) throw new Error();
1333    return Qt(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : lt[e.columnDef.sortingFn];
1334  }, e.toggleSorting = (t, n) => {
1335    const l = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1336    o.setSorting((r) => {
1337      const s = r == null ? void 0 : r.find((d) => d.id === e.id), u = r == null ? void 0 : r.findIndex((d) => d.id === e.id);
1338      let c = [], g, f = i ? t : l === "desc";
1339      if (r != null && r.length && e.getCanMultiSort() && n ? s ? g = "toggle" : g = "add" : r != null && r.length && u !== r.length - 1 ? g = "replace" : s ? g = "toggle" : g = "replace", g === "toggle" && (i || l || (g = "remove")), g === "add") {
1340        var p;
1341        c = [...r, { id: e.id, desc: f }], c.splice(0, c.length - ((p = o.options.maxMultiSortColCount) != null ? p : Number.MAX_SAFE_INTEGER));
1342      } else g === "toggle" ? c = r.map((d) => d.id === e.id ? __spreadProps(__spreadValues({}, d), { desc: f }) : d) : g === "remove" ? c = r.filter((d) => d.id !== e.id) : c = [{ id: e.id, desc: f }];
1343      return c;
1344    });
1345  }, e.getFirstSortDir = () => {
1346    var t, n;
1347    return ((t = (n = e.columnDef.sortDescFirst) != null ? n : o.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
1348  }, e.getNextSortingOrder = (t) => {
1349    var n, l;
1350    const i = e.getFirstSortDir(), r = e.getIsSorted();
1351    return r ? r !== i && ((n = o.options.enableSortingRemoval) == null || n) && (!(t && (l = o.options.enableMultiRemove) != null) || l) ? false : r === "desc" ? "asc" : "desc" : i;
1352  }, e.getCanSort = () => {
1353    var t, n;
1354    return ((t = e.columnDef.enableSorting) != null ? t : true) && ((n = o.options.enableSorting) != null ? n : true) && !!e.accessorFn;
1355  }, e.getCanMultiSort = () => {
1356    var t, n;
1357    return (t = (n = e.columnDef.enableMultiSort) != null ? n : o.options.enableMultiSort) != null ? t : !!e.accessorFn;
1358  }, e.getIsSorted = () => {
1359    var t;
1360    const n = (t = o.getState().sorting) == null ? void 0 : t.find((l) => l.id === e.id);
1361    return n ? n.desc ? "desc" : "asc" : false;
vendor: 1,054 bytes, lines 1362-1377
1362  }, e.getSortIndex = () => {
1363    var t, n;
1364    return (t = (n = o.getState().sorting) == null ? void 0 : n.findIndex((l) => l.id === e.id)) != null ? t : -1;
1365  }, e.clearSorting = () => {
1366    o.setSorting((t) => t != null && t.length ? t.filter((n) => n.id !== e.id) : []);
1367  }, e.getToggleSortingHandler = () => {
1368    const t = e.getCanSort();
1369    return (n) => {
1370      t && (n.persist == null || n.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? o.options.isMultiSortEvent == null ? void 0 : o.options.isMultiSortEvent(n) : false));
1371    };
1372  };
1373}, createTable: (e) => {
1374  e.setSorting = (o) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(o), e.resetSorting = (o) => {
1375    var t, n;
1376    e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
1377  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.o
1377ptions.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
1378} }, Vs = [is, Ss, Cs, _s, rs, ss, xs, ys, As, vs, Ms, Ts, Fs, js, ws];
1379function ks(e) {
1380  var o, t;
1381  const n = [...Vs, ...(o = e._features) != null ? o : []];
1382  let l = { _features: n };
1383  const i = l._features.reduce((p, d) => Object.assign(p, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(l)), {}), r = (p) => l.options.mergeOptions ? l.options.mergeOptions(i, p) : __spreadValues(__spreadValues({}, i), p);
1384  let u = __spreadValues(__spreadValues({}, {}), (t = e.initialState) != null ? t : {});
1385  l._features.forEach((p) => {
1386    var d;
1387    u = (d = p.getInitialState == null ? void 0 : p.getInitialState(u)) != null ? d : u;
1388  });
1389  const c = [];
1390  let g = false;
1391  const f = { _features: n, options: __spreadValues(__spreadValues({}, i), e), initialState: u, _queue: (p) => {
1392    c.push(p), g || (g = true, Promise.resolve().then(() => {
1393      for (; c.length; ) c.shift()();
1394      g = false;
1395    }).catch((d) => setTimeout(() => {
1396      throw d;
1397    })));
1398  }, reset: () => {
1399    l.setState(l.initialState);
1400  }, setOptions: (p) => {
1401    const d = tt(p, l.options);
1402    l.options = r(d);
1403  }, getState: () => l.options.state, setState: (p) => {
1404    l.options.onStateChange == null || l.options.onStateChange(p);
1405  }, _getRowId: (p, d, m) => {
1406    var h;
1407    return (h = l.options.getRowId == null ? void 0 : l.options.getRowId(p, d, m)) != null ? h : `${m ? [m.id, d].join(".") : d}`;
1408  }, getCoreRowModel: () => (l._getCoreRowModel || (l._getCoreRowModel = l.options.getCoreRowModel(l)), l._getCoreRowModel()), getRowModel: () => l.getPaginationRowModel(), getRow: (p, d) => {
1409    let m = (d ? l.getPrePaginationRowModel() : l.getRowModel()).rowsById[p];
1410    if (!m && (m = l.getCoreRowModel().rowsById[p], !m)) throw new Error();
1411    return m;
1412  }, _getDefaultColumnDef: L(() => [l.options.defaultColumn], (p) => {
1413    var d;
1414    return p = (d = p) != null ? d : {}, __spreadValues(__spreadValues({ header: (m) => {
1415      const h = m.header.column.columnDef;
1416      return h.accessorKey ? h.accessorKey : h.accessorFn ? h.id : null;
1417    }, cell: (m) => {
1418      var h, v;
1419      return (h = (v = m.renderValue()) == null || v.toString == null ? void 0 : v.toString()) != null ? h : null;
1420    } }, l._features.reduce((m, h) => Object.assign(m, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {})), p);
1421  }, W(e, "debugColumns")), _getColumnDefs: () => l.options.columns, getAllColumns: L(() => [l._getColumnDefs()], (p) => {
1422    const d = function(m, h, v) {
1423      return v === void 0 && (v = 0), m.map((b) => {
1424        const C = ls(l, b, v, h), _ = b;
1425        return C.columns = _.columns ? d(_.columns, C, v + 1) : [], C;
1426      });
1427    };
1428    return d(p);
1429  }, W(e, "debugColumns")), getAllFlatColumns: L(() => [l.getAllColumns()], (p) => p.flatMap((d) => d.getFlatColumns()), W(e, "debugColumns")), _getAllFlatColumnsById: L(() => [l.getAllFlatColumns()], (p) => p.reduce((d, m) => (d[m.id] = m, d), {}), W(e, "debugColumns")), getAllLeafColumns: L(() => [l.getAllColumns(), l._getOrderColumnsFn()], (p, d) => {
1430    let m = p.flatMap((h) => h.getLeafColumns());
1431    return d(m);
1432  }, W(e, "debugColumns")), getColumn: (p) => l._getAllFlatColumnsById()[p] };
1433  Object.assign(l, f);
1434  for (let p = 0; p < l._features.length; p++) {
1435    const d = l._features[p];
1436    d == null || d.createTable == null || d.createTable(l);
1437  }
1438  return l;
1439}
1440function $s() {
1441  return (e) => L(() => [e.options.data], (o) => {
1442    const t = { rows: [], flatRows: [], rowsById: {} }, n = function(l, i, r) {
1443      i === void 0 && (i = 0);
1444      const s = [];
1445      for (let c = 0; c < l.length; c++) {
1446        const g = bt(e, e._getRowId(l[c], c, r), l[c], c, i, void 0, r == null ? void 0 : r.id);
1447        if (t.flatRows.push(g), t.rowsById[g.id] = g, s.push(g), e.options.getSubRows) {
1448          var u;
1449          g.originalSubRows = e.options.getSubRows(l[c], c), (u = g.originalSubRows) != null && u.length && (g.subRows = n(g.originalSubRows, i + 1, g));
1450        }
1451      }
1452      return s;
1453    };
1454    return t.rows = n(o), t;
1455  }, W(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1456}
1457function Hs() {
1458  return (e) => L(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (o, t, n) => !t.rows.length || o !== true && !Object.keys(o != null ? o : {}).length || !n ? t : Ml(t), W(e.options, "debugTable"));
1459}
1460function Ml(e) {
1461  const o = [], t = (n) => {
1462    var l;
1463    o.push(n), (l = n.subRows) != null && l.length && n.getIsExpanded() && n.subRows.forEach(t);
1464  };
1465  return e.rows.forEach(t), { rows: o, flatRows: e.flatRows, rowsById: e.rowsById };
1466}
1467function Bs() {
1468  return (e, o) => L(() => {
1469    var t;
1470    return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
1471  }, (t) => {
1472    if (!t) return;
1473    const n = t.flatRows.flatMap((r) => {
1474      var s;
1475      return (s = r.getUniqueValues(o)) != null ? s : [];
1476    }).map(Number).filter((r) => !Number.isNaN(r));
1477    if (!n.length) return;
1478    let l = n[0], i = n[n.length - 1];
1479    for (const r of n) r < l ? l = r : r > i && (i = r);
1480    return [l, i];
1481  }, W(e.options, "debugTable"));
1482}
1483function Tl(e, o, t) {
1484  return t.options.filterFromLeafRows ? Ns(e, o, t) : Gs(e, o, t);
1485}
1486function Ns(e, o, t) {
1487  var n;
1488  const l = [], i = {}, r = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, s = function(u, c) {
1489    c === void 0 && (c = 0);
1490    const g = [];
1491    for (let p = 0; p < u.length; p++) {
1492      var f;
1493      let d = u[p];
1494      const m = bt(t, d.id, d.original, d.index, d.depth, void 0, d.parentId);
1495      if (m.columnFilters = d.columnFilters, (f = d.subRows) != null && f.length && c < r) {
1496        if (m.subRows = s(d.subRows, c + 1), d = m, o(d) && !m.subRows.length) {
1497          g.push(d), i[d.id] = d, l.push(d);
1498          continue;
1499        }
1500        if (o(d) || m.subRows.length) {
1501          g.push(d), i[d.id] = d, l.push(d);
1502          continue;
1503        }
1504      } else d = m, o(d) && (g.push(d), i[d.id] = d, l.push(d));
1505    }
1506    return g;
1507  };
1508  return { rows: s(e), flatRows: l, rowsById: i };
1509}
1510function Gs(e, o, t) {
1511  var n;
1512  const l = [], i = {}, r = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, s = function(u, c) {
1513    c === void 0 && (c = 0);
1514    const g = [];
1515    for (let p = 0; p < u.length; p++) {
1516      let d = u[p];
1517      if (o(d)) {
1518        var f;
1519        if ((f = d.subRows) != null && f.length && c < r) {
1520          const h = bt(t, d.id, d.original, d.index, d.depth, void 0, d.parentId);
1521          h.subRows = s(d.subRows, c + 1), d = h;
1522        }
1523        g.push(d), l.push(d), i[d.id] = d;
1524      }
1525    }
1526    return g;
1527  };
1528  return { rows: s(e), flatRows: l, rowsById: i };
1529}
1530function Ls() {
1531  return (e, o) => L(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, l) => {
1532    if (!t.rows.length || !(n != null && n.length) && !l) return t;
1533    const i = [...n.map((s) => s.id).filter((s) => s !== o), l ? "__global__" : void 0].filter(Boolean), r = (s) => {
1534      for (let u = 0; u < i.length; u++) if (s.columnFilters[i[u]] === false) return false;
1535      return true;
1536    };
1537    return Tl(t.rows, r, e);
1538  }, W(e.options, "debugTable"));
1539}
1540function Ws() {
1541  return (e, o) => L(() => {
1542    var t;
1543    return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
1544  }, (t) => {
1545    if (!t) return /* @__PURE__ */ new Map();
1546    let n = /* @__PURE__ */ new Map();
1547    for (let i = 0; i < t.flatRows.length; i++) {
1548      const r = t.flatRows[i].getUniqueValues(o);
1549      for (let s = 0; s < r.length; s++) {
1550        const u = r[s];
1551        if (n.has(u)) {
1552          var l;
1553          n.set(u, ((l = n.get(u)) != null ? l : 0) + 1);
1554        } else n.set(u, 1);
1555      }
1556    }
1557    return n;
1558  }, W(e.options, "debugTable"));
1559}
1560function qs() {
1561  return (e) => L(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
1562    if (!o.rows.length || !(t != null && t.length) && !n) {
1563      for (let p = 0; p < o.flatRows.length; p++) o.flatRows[p].columnFilters = {}, o.flatRows[p].columnFiltersMeta = {};
1564      return o;
1565    }
1566    const l = [], i = [];
1567    (t != null ? t : []).forEach((p) => {
1568      var d;
1569      const m = e.getColumn(p.id);
1570      if (!m) return;
1571      const h = m.getFilterFn();
1572      h && l.push({ id: p.id, filterFn: h, resolvedValue: (d = h.resolveFilterValue == null ? void 0 : h.resolveFilterValue(p.value)) != null ? d : p.value });
1573    });
1574    const r = (t != null ? t : []).map((p) => p.id), s = e.getGlobalFilterFn(), u = e.getAllLeafColumns().filter((p) => p.getCanGlobalFilter());
1575    n && s && u.length && (r.push("__global__"), u.forEach((p) => {
1576      var d;
1577      i.push({ id: p.id, filterFn: s, resolvedValue: (d = s.resolveFilterValue == null ? void 0 : s.resolveFilterValue(n)) != null ? d : n });
1578    }));
1579    let c, g;
1580    for (let p = 0; p < o.flatRows.length; p++) {
1581      const d = o.flatRows[p];
1582      if (d.columnFilters = {}, l.length) for (let m = 0; m < l.length; m++) {
1583        c = l[m];
1584        const h = c.id;
1585        d.columnFilters[h] = c.filterFn(d, h, c.resolvedValue, (v) => {
1586          d.columnFiltersMeta[h] = v;
1587        });
1588      }
1589      if (i.length) {
1590        for (let m = 0; m < i.length; m++) {
1591          g = i[m];
1592          const h = g.id;
1593          if (g.filterFn(d, h, g.resolvedValue, (v) => {
1594            d.columnFiltersMeta[h] = v;
1595          })) {
1596            d.columnFilters.__global__ = true;
1597            break;
1598          }
1599        }
1600        d.columnFilters.__global__ !== true && (d.columnFilters.__global__ = false);
1601      }
1602    }
1603    const f = (p) => {
1604      for (let d = 0; d < r.length; d++) if (p.columnFilters[r[d]] === false) return false;
1605      return true;
1606    };
1607    return Tl(o.rows, f, e);
1608  }, W(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
1609}
1610function Us() {
1611  return (e) => L(() => [e.getState().grouping, e.getPreGroupedRowModel()], (o, t) => {
1612    if (!t.rows.length || !o.length) return t.rows.forEach((u) => {
1613      u.depth = 0, u.parentId = void 0;
1614    }), t;
1615    const n = o.filter((u) => e.getColumn(u)), l = [], i = {}, r = function(u, c, g) {
1616      if (c === void 0 && (c = 0), c >= n.length) return u.map((m) => (m.depth = c, l.push(m), i[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
1617      const f = n[c], p = Ks(u, f);
1618      return Array.from(p.entries()).map((m, h) => {
1619        let [v, b] = m, C = `${f}:${v}`;
1620        C = g ? `${g}>${C}` : C;
1621        const _ = r(b, c + 1, C);
1622        _.forEach((y) => {
1623          y.parentId = C;
1624        });
1625        const M = c ? hl(b, (y) => y.subRows) : b, w = bt(e, C, M[0].original, h, c, void 0, g);
1626        return Object.assign(w, { groupingColumnId: f, groupingValue: v, subRows: _, leafRows: M, getValue: (y) => {
1627          if (n.includes(y)) {
1628            if (w._valuesCache.hasOwnProperty(y)) return w._valuesCache[y];
1629            if (b[0]) {
1630              var S;
1631              w._valuesCache[y] = (S = b[0].getValue(y)) != null ? S : void 0;
1632            }
1633            return w._valuesCache[y];
1634          }
1635          if (w._groupingValuesCache.hasOwnProperty(y)) return w._groupingValuesCache[y];
1636          const R = e.getColumn(y), P = R == null ? void 0 : R.getAggregationFn();
1637          if (P) return w._groupingValuesCache[y] = P(y, M, b), w._groupingValuesCache[y];
1638        } }), _.forEach((y) => {
1639          l.push(y), i[y.id] = y;
1640        }), w;
1641      });
1642    }, s = r(t.rows, 0);
1643    return s.forEach((u) => {
1644      l.push(u), i[u.id] = u;
1645    }), { rows: s, flatRows: l, rowsById: i };
1646  }, W(e.options, "debugTable", "getGroupedRowModel", () => {
1647    e._queue(() => {
1648      e._autoResetExpanded(), e._autoResetPageIndex();
1649    });
1650  }));
1651}
1652function Ks(e, o) {
1653  const t = /* @__PURE__ */ new Map();
1654  return e.reduce((n, l) => {
1655    const i = `${l.getGroupingValue(o)}`, r = n.get(i);
1656    return r ? r.push(l) : n.set(i, [l]), n;
1657  }, t);
1658}
1659function Xs(e) {
1660  return (o) => L(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
1661    if (!n.rows.length) return n;
1662    const { pageSize: l, pageIndex: i } = t;
1663    let { rows: r, flatRows: s, rowsById: u } = n;
1664    const c = l * i, g = c + l;
1665    r = r.slice(c, g);
1666    let f;
1667    o.options.paginateExpandedRows ? f = { rows: r, flatRows: s, rowsById: u } : f = Ml({ rows: r, flatRows: s, rowsById: u }), f.flatRows = [];
1668    const p = (d) => {
1669      f.flatRows.push(d), d.subRows.length && d.subRows.forEach(p);
1670    };
1671    return f.rows.forEach(p), f;
1672  }, W(o.options, "debugTable"));
1673}
1674function Zs() {
1675  return (e) => L(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1676    if (!t.rows.length || !(o != null && o.length)) return t;
1677    const n = e.getState().sorting, l = [], i = n.filter((u) => {
1678      var c;
1679      return (c = e.getColumn(u.id)) == null ? void 0 : c.getCanSort();
1680    }), r = {};
1681    i.forEach((u) => {
1682      const c = e.getColumn(u.id);
1683      c && (r[u.id] = { sortUndefined: c.columnDef.sortUndefined, invertSorting: c.columnDef.invertSorting, sortingFn: c.getSortingFn() });
1684    });
1685    const s = (u) => {
1686      const c = u.map((g) => __spreadValues({}, g));
1687      return c.sort((g, f) => {
1688        for (let d = 0; d < i.length; d += 1) {
1689          var p;
1690          const m = i[d], h = r[m.id], v = h.sortUndefined, b = (p = m == null ? void 0 : m.desc) != null ? p : false;
1691          let C = 0;
1692          if (v) {
1693            const _ = g.getValue(m.id), M = f.getValue(m.id), w = _ === void 0, y = M === void 0;
1694            if (w || y) {
1695              if (v === "first") return w ? -1 : 1;
1696              if (v === "last") return w ? 1 : -1;
1697              C = w && y ? 0 : w ? v : -v;
1698            }
1699          }
1700          if (C === 0 && (C = h.sortingFn(g, f, m.id)), C !== 0) return b && (C *= -1), h.invertSorting && (C *= -1), C;
1701        }
1702        return g.index - f.index;
1703      }), c.forEach((g) => {
1704        var f;
1705        l.push(g), (f = g.subRows) != null && f.length && (g.subRows = s(g.subRows));
1706      }), c;
1707    };
1708    return { rows: s(t.rows), flatRows: l, rowsById: t.rowsById };
1709  }, W(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1710}
1711/**
1712* react-table
1713*
1714* Copyright (c) TanStack
1715*
1716* This source code is licensed under the MIT license found in the
1717* LICENSE.md file in the root directory of this source tree.
1718*
1719* @license MIT
1720*/
1721function Js(e) {
1722  const o = __spreadValues({ state: {}, onStateChange: () => {
1723  }, renderFallbackValue: null }, e), [t] = x.useState(() => ({ current: ks(o) })), [n, l] = x.useState(() => t.current.initialState);
1724  return t.current.setOptions((i) => __spreadProps(__spreadValues(__spreadValues({}, i), e), { state: __spreadValues(__spreadValues({}, n), e.state), onStateChange: (r) => {
1725    l(r), e.onStateChange == null || e.onStateChange(r);
1726  } })), t.current;
1727}
1728/**
1729* match-sorter-utils
1730*
1731* Copyright (c) TanStack
1732*
1733* This source code is licensed under the MIT license found in the
1734* LICENSE.md file in the root directory of this source tree.
1735*
1736* @license MIT
1737*/
1738const Fl = { \u00C0: "A", \u00C1: "A", \u00C2: "A", \u00C3: "A", \u00C4: "A", \u00C5: "A", \u1EA4: "A", \u1EAE: "A", \u1EB2: "A", \u1EB4: "A", \u1EB6: "A", \u00C6: "AE", \u1EA6: "A", \u1EB0: "A", \u0202: "A", \u00C7: "C", \u1E08: "C", \u00C8: "E", \u00C9: "E", \u00CA: "E", \u00CB: "E", \u1EBE: "E", \u1E16: "E", \u1EC0: "E", \u1E14: "E", \u1E1C: "E", \u0206: "E", \u00CC: "I", \u00CD: "I", \u00CE: "I", \u00CF: "I", \u1E2E: "I", \u020A: "I", \u00D0: "D", \u00D1: "N", \u00D2: "O", \u00D3: "O", \u00D4: "O", \u00D5: "O", \u00D6: "O", \u00D8: "O", \u1ED0: "O", \u1E4C: "O", \u1E52: "O", \u020E: "O", \u00D9: "U", \u00DA: "U", \u00DB: "U", \u00DC: "U", \u00DD: "Y", \u00E0: "a", \u00E1: "a", \u00E2: "a", \u00E3: "a", \u00E4: "a", \u00E5: "a", \u1EA5: "a", \u1EAF: "a", \u1EB3: "a", \u1EB5: "a", \u1EB7: "a", \u00E6: "ae", \u1EA7: "a", \u1EB1: "a", \u0203: "a", \u00E7: "c", \u1E09: "c", \u00E8: "e", \u00E9: "e", \u00EA: "e", \u00EB: "e", \u1EBF: "e", \u1E17: "e", \u1EC1: "e", \u1E15: "e", \u1E1D: "e", \u0207: "e", \u00EC: "i", \u00ED: "i", \u00EE: "i", \u00EF: "i", \u1E2F: "i", \u020B: "i", \u00F0: "d", \u00F1: "n", \u00F2: "o", \u00F3: "o", \u00F4: "o", \u00F5: "o", \u00F6: "o", \u00F8: "o", \u1ED1: "o", \u1E4D: "o", \u1E53: "o", \u020F: "o", \u00F9: "u", \u00FA: "u", \u00FB: "u", \u00FC: "u", \u00FD: "y", \u00FF: "y", \u0100: "A", \u0101: "a", \u0102: "A", \u0103: "a", \u0104: "A", \u0105: "a", \u0106: "C", \u0107: "c", \u0108: "C", \u0109: "c", \u010A: "C", \u010B: "c", \u010C: "C", \u010D: "c", C\u0306: "C", c\u0306: "c", \u010E: "D", \u010F: "d", \u0110: "D", \u0111: "d", \u0112: "E", \u0113: "e", \u0114: "E", \u0115: "e", \u0116: "E", \u0117: "e", \u0118: "E", \u0119: "e", \u011A: "E", \u011B: "e", \u011C: "G", \u01F4: "G", \u011D: "g", \u01F5: "g", \u011E: "G", \u011F: "g", \u0120: "G", \u0121: "g", \u0122: "G", \u0123: "g", \u0124: "H", \u0125: "h", \u0126: "H", \u0127: "h", \u1E2A: "H", \u1E2B: "h", \u0128: "I", \u0129: "i", \u012A: "I", \u012B: "i", \u012C: "I", \u012D: "i", \u012E: "I", \u012F: "i", \u0130: "I", \u0131: "i", \u0132: "IJ", \u0133: "ij", \u0134: "J", \u0135: "j", \u0136: "K", \u0137: "k", \u1E30: "K", \u1E31: "k", K\u0306: "K", k\u0306: "k", \u0139: "L", \u013A: "l", \u013B: "L", \u013C: "l", \u013D: "L", \u013E: "l", \u013F: "L", \u0140: "l", \u0141: "l", \u0142: "l", \u1E3E: "M", \u1E3F: "m", M\u0306: "M", m\u0306: "m", \u0143: "N", \u0144: "n", \u0145: "N", \u0146: "n", \u0147: "N", \u0148: "n", \u0149: "n", N\u0306: "N", n\u0306: "n", \u014C: "O", \u014D: "o", \u014E: "O", \u014F: "o", \u0150: "O", \u0151: "o", \u0152: "OE", \u0153: "oe", P\u0306: "P", p\u0306: "p", \u0154: "R", \u0155: "r", \u0156: "R", \u0157: "r", \u0158: "R", \u0159: "r", R\u0306: "R", r\u0306: "r", \u0212: "R", \u0213: "r", \u015A: "S", \u015B: "s", \u015C: "S", \u015D: "s", \u015E: "S", \u0218: "S", \u0219: "s", \u015F: "s", \u0160: "S", \u0161: "s", \u0162: "T", \u0163: "t", \u021B: "t", \u021A: "T", \u0164: "T", \u0165: "t", \u0166: "T", \u0167: "t", T\u0306: "T", t\u0306: "t", \u0168: "U", \u0169: "u", \u016A: "U", \u016B: "u", \u016C: "U", \u016D: "u", \u016E: "U", \u016F: "u", \u0170: "U", \u0171: "u", \u0172: "U", \u0173: "u", \u0216: "U", \u0217: "u", V\u0306: "V", v\u0306: "v", \u0174: "W", \u0175: "w", \u1E82: "W", \u1E83: "w", X\u0306: "X", x\u0306: "x", \u0176: "Y", \u0177: "y", \u0178: "Y", Y\u0306: "Y", y\u0306: "y", \u0179: "Z", \u017A: "z", \u017B: "Z", \u017C: "z", \u017D: "Z", \u017E: "z", \u017F: "s", \u0192: "f", \u01A0: "O", \u01A1: "o", \u01AF: "U", \u01B0: "u", \u01CD: "A", \u01CE: "a", \u01CF: "I", \u01D0: "i", \u01D1: "O", \u01D2: "o", \u01D3: "U", \u01D4: "u", \u01D5: "U", \u01D6: "u", \u01D7: "U", \u01D8: "u", \u01D9: "U", \u01DA: "u", \u01DB: "U", \u01DC: "u", \u1EE8: "U", \u1EE9: "u", \u1E78: "U", \u1E79: "u", \u01FA: "A", \u01FB: "a", \u01FC: "AE", \u
173801FD: "ae", \u01FE: "O", \u01FF: "o", \u00DE: "TH", \u00FE: "th", \u1E54: "P", \u1E55: "p", \u1E64: "S", \u1E65: "s", X\u0301: "X", x\u0301: "x", \u0403: "\u0413", \u0453: "\u0433", \u040C: "\u041A", \u045C: "\u043A", A\u030B: "A", a\u030B: "a", E\u030B: "E", e\u030B: "e", I\u030B: "I", i\u030B: "i", \u01F8: "N", \u01F9: "n", \u1ED2: "O", \u1ED3: "o", \u1E50: "O", \u1E51: "o", \u1EEA: "U", \u1EEB: "u", \u1E80: "W", \u1E81: "w", \u1EF2: "Y", \u1EF3: "y", \u0200: "A", \u0201: "a", \u0204: "E", \u0205: "e", \u0208: "I", \u0209: "i", \u020C: "O", \u020D: "o", \u0210: "R", \u0211: "r", \u0214: "U", \u0215: "u", B\u030C: "B", b\u030C: "b", \u010C\u0323: "C", \u010D\u0323: "c", \u00CA\u030C: "E", \u00EA\u030C: "e", F\u030C: "F", f\u030C: "f", \u01E6: "G", \u01E7: "g", \u021E: "H", \u021F: "h", J\u030C: "J", \u01F0: "j", \u01E8: "K", \u01E9: "k", M\u030C: "M", m\u030C: "m", P\u030C: "P", p\u030C: "p", Q\u030C: "Q", q\u030C: "q", \u0158\u0329: "R", \u0159\u0329: "r", \u1E66: "S", \u1E67: "s", V\u030C: "V", v\u030C: "v", W\u030C: "W", w\u030C: "w", X\u030C: "X", x\u030C: "x", Y\u030C: "Y", y\u030C: "y", A\u0327: "A", a\u0327: "a", B\u0327: "B", b\u0327: "b", \u1E10: "D", \u1E11: "d", \u0228: "E", \u0229: "e", \u0190\u0327: "E", \u025B\u0327: "e", \u1E28: "H", \u1E29: "h", I\u0327: "I", i\u0327: "i", \u0197\u0327: "I", \u0268\u0327: "i", M\u0327: "M", m\u0327: "m", O\u0327: "O", o\u0327: "o", Q\u0327: "Q", q\u0327: "q", U\u0327: "U", u\u0327: "u", X\u0327: "X", x\u0327: "x", Z\u0327: "Z", z\u0327: "z" }, Ys = Object.keys(Fl).join("|"), Qs = new RegExp(Ys, "g");
1739function ea(e) {
1740  return e.replace(Qs, (o) => Fl[o]);
1741}
1742/**
1743* @name match-sorter
1744* @license MIT license.
1745* @copyright (c) 2099 Kent C. Dodds
1746* @author Kent C. Dodds <[email protected]> (https://kentcdodds.com)
1747*/
1748const De = { CASE_SENSITIVE_EQUAL: 7, EQUAL: 6, STARTS_WITH: 5, WORD_STARTS_WITH: 4, CONTAINS: 3, ACRONYM: 2, MATCHES: 1, NO_MATCH: 0 };
1749function ta(e, o, t) {
1750  var n;
1751  if (t = t || {}, t.threshold = (n = t.threshold) != null ? n : De.MATCHES, !t.accessors) {
1752    const r = To(e, o, t);
1753    return { rankedValue: e, rank: r, accessorIndex: -1, accessorThreshold: t.threshold, passed: r >= t.threshold };
1754  }
1755  const l = ra(e, t.accessors), i = { rankedValue: e, rank: De.NO_MATCH, accessorIndex: -1, accessorThreshold: t.threshold, passed: false };
1756  for (let r = 0; r < l.length; r++) {
1757    const s = l[r];
1758    let u = To(s.itemValue, o, t);
1759    const { minRanking: c, maxRanking: g, threshold: f = t.threshold } = s.attributes;
1760    u < c && u >= De.MATCHES ? u = c : u > g && (u = g), u = Math.min(u, g), u >= f && u > i.rank && (i.rank = u, i.passed = true, i.accessorIndex = r, i.accessorThreshold = f, i.rankedValue = s.itemValue);
1761  }
1762  return i;
1763}
1764function To(e, o, t) {
1765  return e = Fo(e, t), o = Fo(o, t), o.length > e.length ? De.NO_MATCH : e === o ? De.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), o = o.toLowerCase(), e === o ? De.EQUAL : e.startsWith(o) ? De.STARTS_WITH : e.includes(` ${o}`) ? De.WORD_STARTS_WITH : e.includes(o) ? De.CONTAINS : o.length === 1 ? De.NO_MATCH : na(e).includes(o) ? De.ACRONYM : oa(e, o));
1766}
1767function na(e) {
1768  let o = "";
1769  return e.split(" ").forEach((n) => {
1770    n.split("-").forEach((i) => {
1771      o += i.substr(0, 1);
1772    });
1773  }), o;
1774}
1775function oa(e, o) {
1776  let t = 0, n = 0;
1777  function l(u, c, g) {
1778    for (let f = g, p = c.length; f < p; f++) if (c[f] === u) return t += 1, f + 1;
1779    return -1;
1780  }
1781  function i(u) {
1782    const c = 1 / u, g = t / o.length;
1783    return De.MATCHES + g * c;
1784  }
1785  const r = l(o[0], e, 0);
1786  if (r < 0) return De.NO_MATCH;
1787  n = r;
1788  for (let u = 1, c = o.length; u < c; u++) {
1789    const g = o[u];
1790    if (n = l(g, e, n), !(n > -1)) return De.NO_MATCH;
1791  }
1792  const s = n - r;
1793  return i(s);
1794}
1795function la(e, o) {
1796  return e.rank === o.rank ? 0 : e.rank > o.rank ? -1 : 1;
1797}
1798function Fo(e, o) {
1799  let { keepDiacritics: t } = o;
1800  return e = `${e}`, t || (e = ea(e)), e;
1801}
1802function ia(e, o) {
1803  let t = o;
1804  typeof o == "object" && (t = o.accessor);
1805  const n = t(e);
1806  return n == null ? [] : Array.isArray(n) ? n : [String(n)];
1807}
1808function ra(e, o) {
1809  const t = [];
1810  for (let n = 0, l = o.length; n < l; n++) {
1811    const i = o[n], r = sa(i), s = ia(e, i);
1812    for (let u = 0, c = s.length; u < c; u++) t.push({ itemValue: s[u], attributes: r });
1813  }
1814  return t;
1815}
1816const jo = { maxRanking: 1 / 0, minRanking: -1 / 0 };
1817function sa(e) {
1818  return typeof e == "function" ? jo : __spreadValues(__spreadValues({}, jo), e);
1819}
1820function dt(e, o, t) {
1821  var _a2;
1822  let n = (_a2 = t.initialDeps) != null ? _a2 : [], l;
1823  return () => {
1824    var i, r, s, u;
1825    let c;
1826    t.key && ((i = t.debug) != null && i.call(t)) && (c = Date.now());
1827    const g = e();
1828    if (!(g.length !== n.length || g.some((d, m) => n[m] !== d))) return l;
1829    n = g;
1830    let p;
1831    if (t.key && ((r = t.debug) != null && r.call(t)) && (p = Date.now()), l = o(...g), t.key && ((s = t.debug) != null && s.call(t))) {
1832      const d = Math.round((Date.now() - c) * 100) / 100, m = Math.round((Date.now() - p) * 100) / 100, h = m / 16, v = (b, C) => {
1833        for (b = String(b); b.length < C; ) b = " " + b;
1834        return b;
1835      };
1836      console.info(`%c\u23F1 ${v(m, 5)} /${v(d, 5)} ms`, `
1837            font-size: .6rem;
1838            font-weight: bold;
1839            color: hsl(${Math.max(0, Math.min(120 - 120 * h, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
1840    }
1841    return (u = t == null ? void 0 : t.onChange) == null || u.call(t, l), l;
1842  };
1843}
1844function _n(e, o) {
1845  if (e === void 0) throw new Error("Unexpected undefined");
1846  return e;
1847}
1848const aa = (e, o) => Math.abs(e - o) < 1, ua = (e, o, t) => {
1849  let n;
1850  return function(...l) {
1851    e.clearTimeout(n), n = e.setTimeout(() => o.apply(this, l), t);
1852  };
1853}, da = (e) => e, jl = (e) => {
1854  const o = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), n = [];
1855  for (let l = o; l <= t; l++) n.push(l);
1856  return n;
1857}, ca = (e, o) => {
1858  const t = e.scrollElement;
1859  if (!t) return;
1860  const n = e.targetWindow;
1861  if (!n) return;
1862  const l = (r) => {
1863    const { width: s, height: u } = r;
1864    o({ width: Math.round(s), height: Math.round(u) });
1865  };
1866  if (l(t.getBoundingClientRect()), !n.ResizeObserver) return () => {
1867  };
1868  const i = new n.ResizeObserver((r) => {
1869    const s = r[0];
1870    if (s == null ? void 0 : s.borderBoxSize) {
1871      const u = s.borderBoxSize[0];
1872      if (u) {
1873        l({ width: u.inlineSize, height: u.blockSize });
1874        return;
1875      }
1876    }
1877    l(t.getBoundingClientRect());
1878  });
1879  return i.observe(t, { box: "border-box" }), () => {
1880    i.unobserve(t);
1881  };
1882}, Po = { passive: true }, ga = typeof window > "u" ? true : "onscrollend" in window, pa = (e, o) => {
1883  const t = e.scrollElement;
1884  if (!t) return;
1885  const n = e.targetWindow;
1886  if (!n) return;
1887  let l = 0;
1888  const i = e.options.useScrollendEvent && ga ? () => {
1889  } : ua(n, () => {
1890    o(l, false);
1891  }, e.options.isScrollingResetDelay), r = (c) => () => {
1892    const { horizontal: g, isRtl: f } = e.options;
1893    l = g ? t.scrollLeft * (f && -1 || 1) : t.scrollTop, i(), o(l, c);
1894  }, s = r(true), u = r(false);
1895  return u(), t.addEventListener("scroll", s, Po), t.addEventListener("scrollend", u, Po), () => {
1896    t.removeEventListener("scroll", s), t.removeEventListener("scrollend", u);
1897  };
1898}, fa = (e, o, t) => {
1899  if (o == null ? void 0 : o.borderBoxSize) {
1900    const n = o.borderBoxSize[0];
1901    if (n) return Math.round(n[t.options.horizontal ? "inlineSize" : "blockSize"]);
1902  }
1903  return Math.round(e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]);
1904}, ma = (e, { adjustments: o = 0, behavior: t }, n) => {
1905  var l, i;
1906  const r = e + o;
1907  (i = (l = n.scrollElement) == null ? void 0 : l.scrollTo) == null || i.call(l, { [n.options.horizontal ? "left" : "top"]: r, behavior: t });
1908};
1909class ha {
1910  constructor(o) {
1911    this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = false, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
1912      let t = null;
1913      const n = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((l) => {
1914        l.forEach((i) => {
1915          this._measureElement(i.target, i);
1916        });
1917      }));
1918      return { disconnect: () => {
1919        var l;
1920        (l = n()) == null || l.disconnect(), t = null;
1921      }, observe: (l) => {
1922        var i;
1923        return (i = n()) == null ? void 0 : i.observe(l, { box: "border-box" });
1924      }, unobserve: (l) => {
1925        var i;
1926        return (i = n()) == null ? void 0 : i.unobserve(l);
1927      } };
1928    })(), this.range = null, this.setOptions = (t) => {
1929      Object.entries(t).forEach(([n, l]) => {
1930        typeof l > "u" && delete t[n];
1931      }), this.options = __spreadValues({ debug: false, initialOffset: 0, overscan: 1, paddingStart: 0, paddingEnd: 0, scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: false, getItemKey: da, rangeExtractor: jl, onChange: () => {
1932      }, measureElement: fa, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, indexAttribute: "data-index", initialMeasurementsCache: [], lanes: 1, isScrollingResetDelay: 150, enabled: true, isRtl: false, useScrollendEvent: true }, t);
1933    }, this.notify = (t) => {
1934      var n, l;
1935      (l = (n = this.options).onChange) == null || l.call(n, this, t);
1936    }, this.maybeNotify = dt(() => (this.calculateRange(), [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null]), (t) => {
1937      this.notify(t);
1938    }, { key: false, debug: () => this.options.debug, initialDeps: [this.isScrolling, this.range ? this.range.startIndex : null, this.range ? this.range.endIndex : null] }), this.cleanup = () => {
1939      this.unsubs.filter(Boolean).forEach((t) => t()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
1940    }, this._didMount = () => () => {
1941      this.cleanup();
1942    }, this._willUpdate = () => {
1943      var _a2;
1944      var t;
1945      const n = this.options.enabled ? this.options.getScrollElement() : null;
1946      if (this.scrollElement !== n) {
1947        if (this.cleanup(), !n) {
1948          this.maybeNotify();
1949          return;
1950        }
1951        this.scrollElement = n, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = (_a2 = (t = this.scrollElement) == null ? void 0 : t.window) != null ? _a2 : null, this.elementsCache.forEach((l) => {
1952          this.observer.observe(l);
1953        }), this._scrollToOffset(this.getScrollOffset(), { adjustments: void 0, behavior: void 0 }), this.unsubs.push(this.options.observeElementRect(this, (l) => {
1954          this.scrollRect = l, this.maybeNotify();
1955        })), this.unsubs.push(this.options.observeElementOffset(this, (l, i) => {
1956          this.scrollAdjustments = 0, this.scrollDirection = i ? this.getScrollOffset() < l ? "forward" : "backward" : null, this.scrollOffset = l, this.isScrolling = i, this.maybeNotify();
1957        }));
1958      }
1959    }, this.getSize = () => {
1960      var _a2;
1961      return this.options.enabled ? (this.scrollRect = (_a2 = this.scrollRect) != null ? _a2 : this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0);
1962    }, this.getScrollOffset = () => {
1963      var _a2;
1964      return this.options.enabled ? (this.scrollOffset = (_a2 = this.scrollOffset) != null ? _a2 : typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset, this.scrollOffset) : (this.scrollOffset = null, 0);
1965    }, this.getFurthestMeasurement = (t, n) => {
1966      const l = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
1967      for (let r = n - 1; r >= 0; r--) {
1968        const s = t[r];
1969        if (l.has(s.lane)) continue;
1970        const u = i.get(s.lane);
1971        if (u == null || s.end > u.end ? i.set(s.lane, s) : s.end < u.end && l.set(s.lane, true), l.size === this.options.lanes) break;
1972      }
1973      return i.size === this.options.lanes ? Array.from(i.values()).sort((r, s) => r.end === s.end ? r.index - s.index : r.end - s.end)[0] : void 0;
1974    }, this.getMeasurementOptions = dt(() => [this.options.count, this.options.paddingStart, this.options.scrollMargin, this.options.getItemKey, this.options.enabled], (t, n, l, i, r) => (this.pendingMeasuredCacheIndexes = [], { count: t, paddingStart: n, scrollMargin: l, getItemKey: i, enabled: r }), { key: false }), this.getMeasurements = dt(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count: t, paddingStart: n, scrollMargin: l, getItemKey: i, enabled: r }, s) => {
1975      if (!r) return this.measurementsCache = [], this.itemSizeCache.clear(), [];
1976      this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((g) => {
1977        this.itemSizeCache.set(g.key, g.size);
1978      }));
1979      const u = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
1980      this.pendingMeasuredCacheIndexes = [];
1981      const c = this.measurementsCache.slice(0, u);
1982      for (let g = u; g < t; g++) {
1983        const f = i(g), p = this.options.lanes === 1 ? c[g - 1] : this.getFurthestMeasurement(c, g), d = p ? p.end + this.options.gap : n + l, m = s.get(f), h = typeof m == "number" ? m : this.options.estimateSize(g), v = d + h, b = p ? p.lane : g % this.options.lanes;
1984        c[g] = { index: g, start: d, size: h, end: v, key: f, lane: b };
1985      }
1986      return this.measurementsCache = c, c;
1987    }, { key: false, debug: () => this.options.debug }), this.calculateRange = dt(() =>
vendor: 4,760 bytes, lines 1987-2049
1987 [this.getMeasurements(), this.getSize(), this.getScrollOffset()], (t, n, l) => this.range = t.length > 0 && n > 0 ? va({ measurements: t, outerSize: n, scrollOffset: l }) : null, { key: false, debug: () => this.options.debug }), this.getIndexes = dt(() => [this.options.rangeExtractor, this.calculateRange(), this.options.overscan, this.options.count], (t, n, l, i) => n === null ? [] : t({ startIndex: n.startIndex, endIndex: n.endIndex, overscan: l, count: i }), { key: false, debug: () => this.options.debug }), this.indexFromElement = (t) => {
1988      const n = this.options.indexAttribute, l = t.getAttribute(n);
1989      return l ? parseInt(l, 10) : (console.warn(`Missing attribute name '${n}={index}' on measured element.`), -1);
1990    }, this._measureElement = (t, n) => {
1991      const l = this.indexFromElement(t), i = this.measurementsCache[l];
1992      if (!i) return;
1993      const r = i.key, s = this.elementsCache.get(r);
1994      s !== t && (s && this.observer.unobserve(s), this.observer.observe(t), this.elementsCache.set(r, t)), t.isConnected && this.resizeItem(l, this.options.measureElement(t, n, this));
1995    }, this.resizeItem = (t, n) => {
1996      var _a2;
1997      const l = this.measurementsCache[t];
1998      if (!l) return;
1999      const i = (_a2 = this.itemSizeCache.get(l.key)) != null ? _a2 : l.size, r = n - i;
2000      r !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(l, r, this) : l.start < this.getScrollOffset() + this.scrollAdjustments) && this._scrollToOffset(this.getScrollOffset(), { adjustments: this.scrollAdjustments += r, behavior: void 0 }), this.pendingMeasuredCacheIndexes.push(l.index), this.itemSizeCache = new Map(this.itemSizeCache.set(l.key, n)), this.notify(false));
2001    }, this.measureElement = (t) => {
2002      if (!t) {
2003        this.elementsCache.forEach((n, l) => {
2004          n.isConnected || (this.observer.unobserve(n), this.elementsCache.delete(l));
2005        });
2006        return;
2007      }
2008      this._measureElement(t, void 0);
2009    }, this.getVirtualItems = dt(() => [this.getIndexes(), this.getMeasurements()], (t, n) => {
2010      const l = [];
2011      for (let i = 0, r = t.length; i < r; i++) {
2012        const s = t[i], u = n[s];
2013        l.push(u);
2014      }
2015      return l;
2016    }, { key: false, debug: () => this.options.debug }), this.getVirtualItemForOffset = (t) => {
2017      const n = this.getMeasurements();
2018      if (n.length !== 0) return _n(n[Pl(0, n.length - 1, (l) => _n(n[l]).start, t)]);
2019    }, this.getOffsetForAlignment = (t, n) => {
2020      const l = this.getSize(), i = this.getScrollOffset();
2021      n === "auto" && t >= i + l && (n = "end"), n === "end" && (t -= l);
2022      const r = this.options.horizontal ? "scrollWidth" : "scrollHeight", u = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[r] : this.scrollElement[r] : 0) - l;
2023      return Math.max(Math.min(u, t), 0);
2024    }, this.getOffsetForIndex = (t, n = "auto") => {
2025      t = Math.max(0, Math.min(t, this.options.count - 1));
2026      const l = this.measurementsCache[t];
2027      if (!l) return;
2028      const i = this.getSize(), r = this.getScrollOffset();
2029      if (n === "auto") if (l.end >= r + i - this.options.scrollPaddingEnd) n = "end";
2030      else if (l.start <= r + this.options.scrollPaddingStart) n = "start";
2031      else return [r, n];
2032      const s = l.start - this.options.scrollPaddingStart + (l.size - i) / 2;
2033      switch (n) {
2034        case "center":
2035          return [this.getOffsetForAlignment(s, n), n];
2036        case "end":
2037          return [this.getOffsetForAlignment(l.end + this.options.scrollPaddingEnd, n), n];
2038        default:
2039          return [this.getOffsetForAlignment(l.start - this.options.scrollPaddingStart, n), n];
2040      }
2041    }, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
2042      this.scrollToIndexTimeoutId !== null && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
2043    }, this.scrollToOffset = (t, { align: n = "start", behavior: l } = {}) => {
2044      this.cancelScrollToIndex(), l === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getOffsetForAlignment(t, n), { adjustments: void 0, behavior: l });
2045    }, this.scrollToIndex = (t, { align: n = "auto", behavior: l } = {}) => {
2046      t = Math.max(0, Math.min(t, this.options.count - 1)), this.cancelScrollToIndex(), l === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
2047      const i = this.getOffsetForIndex(t, n);
2048      if (!i) return;
2049      const [r, s] = i;
2050      this._scrollToOffset(r, { adjustments: void 0, behavior: l }), l !== "smooth" && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
2051        if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(this.options.getItemKey(t))) {
2052          const [c] = _n(this.getOffsetForIndex(t, s));
2053          aa(c, this.getScrollOffset()) || this.scrollToIndex(t, { align: s, behavior: l });
2054        } else this.scrollToIndex(t, { align: s, behavior: l });
2055      }));
2056    }, this.scrollBy = (t, { behavior: n } = {}) => {
2057      this.cancelScrollToIndex(), n === "smooth" && this.isDynamicMode() && console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."), this._scrollToOffset(this.getScrollOffset() + t, { adjustments: void 0, behavior: n });
2058    }, this.getTotalSize = () => {
2059      var _a2;
2060      var t;
2061      const n = this.getMeasurements();
2062      let l;
2063      return n.length === 0 ? l = this.options.paddingStart : l = this.options.lanes === 1 ? (_a2 = (t = n[n.length - 1]) == null ? void 0 : t.end) != null ? _a2 : 0 : Math.max(...n.slice(-this.options.lanes).map((i) => i.end)), Math.max(l - this.options.scrollMargin + this.options.paddingEnd, 0);
2064    }, this._scrollToOffset = (t, { adjustments: n, behavior: l }) => {
2065      this.options.scrollToFn(t, { behavior: l, adjustments: n }, this);
2066    }, this.measure = () => {
2067      this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(false);
2068    }, this.setOptions(o);
2069  }
2070}
2071const Pl = (e, o, t, n) => {
2072  for (; e <= o; ) {
2073    const l = (e + o) / 2 | 0, i = t(l);
2074    if (i < n) e = l + 1;
2075    else if (i > n) o = l - 1;
2076    else return l;
2077  }
2078  return e > 0 ? e - 1 : 0;
2079};
2080function va({ measurements: e, outerSize: o, scrollOffset: t }) {
2081  const n = e.length - 1, i = Pl(0, n, (s) => e[s].start, t);
2082  let r = i;
2083  for (; r < n && e[r].end < t + o; ) r++;
2084  return { startIndex: i, endIndex: r };
2085}
2086const Io = typeof document < "u" ? x.useLayoutEffect : x.useEffect;
2087function ba(e) {
2088  const o = x.useReducer(() => ({}), {})[1], t = __spreadProps(__spreadValues({}, e), { onChange: (l, i) => {
2089    var r;
2090    i ? vi.flushSync(o) : o(), (r = e.onChange) == null || r.call(e, l, i);
2091  } }), [n] = x.useState(() => new ha(t));
2092  return n.setOptions(t), Io(() => n._didMount(), []), Io(() => n._willUpdate()), n;
2093}
2094function Il(e) {
2095  return ba(__spreadValues({ observeElementRect: ca, observeElementOffset: pa, scrollToFn: ma }, e));
2096}
2097function U(e, o) {
2098  var t = {};
2099  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2100  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, n = Object.getOwnPropertySymbols(e); l < n.length; l++) o.indexOf(n[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[l]) && (t[n[l]] = e[n[l]]);
2101  return t;
2102}
2103var $e = { root: "MRT_TableBody-module_root__kGhRy", "root-grid": "MRT_TableBody-module_root-grid__WdOGg", "root-no-rows": "MRT_TableBody-module_root-no-rows__iyi9K", "root-virtualized": "MRT_TableBody-module_root-virtualized__TxPAi", "empty-row-tr-grid": "MRT_TableBody-module_empty-row-tr-grid__LTgxw", "empty-row-td-grid": "MRT_TableBody-module_empty-row-td-grid__pzlgG", "empty-row-td-content": "MRT_TableBody-module_empty-row-td-content__Cc2XW", pinned: "MRT_TableBody-module_pinned__XHpcs" }, wn = { root: "MRT_TableBodyRow-module_root__2c3D4", "root-grid": "MRT_TableBodyRow-module_root-grid__AwXTe", "root-virtualized": "MRT_TableBodyRow-module_root-virtualized__zYgxq" }, Ue = { root: "MRT_TableBodyCell-module_root__Wf-zi", "root-grid": "MRT_TableBodyCell-module_root-grid__zIuC-", "root-virtualized": "MRT_TableBodyCell-module_root-virtualized__jLl8R", "root-data-col": "MRT_TableBodyCell-module_root-data-col__HHcxc", "root-nowrap": "MRT_TableBodyCell-module_root-nowrap__-k1Jo", "root-cursor-pointer": "MRT_TableBodyCell-module_root-cursor-pointer__4kw7J", "root-editable-hover": "MRT_TableBodyCell-module_root-editable-hover__2DKSa", "root-cell-hover-reveal": "MRT_TableBodyCell-module_root-cell-hover-reveal__T1fAH", "cell-hover-reveal": "MRT_TableBodyCell-module_cell-hover-reveal__Q-1Xj", overflowing: "MRT_TableBodyCell-module_overflowing__QcXP4" };
2104const D = (e, o) => e instanceof Function ? e(o) : e, Rn = ["string", "number"], Ca = ["text", "autocomplete"], Oo = ({ cell: e, renderedColumnIndex: o = 0, renderedRowIndex: t = 0, table: n }) => {
2105  var l, i;
2106  const { getState: r, options: { enableFilterMatchHighlighting: s, mantineHighlightProps: u } } = n, { column: c, row: g } = e, { columnDef: f } = c, { globalFilter: p, globalFilterFn: d } = r(), m = c.getFilterValue(), h = D(u, { cell: e, column: c, row: g, table: n });
2107  let v = e.getIsAggregated() && f.AggregatedCell ? f.AggregatedCell({ cell: e, column: c, row: g, table: n }) : g.getIsGrouped() && !e.getIsGrouped() ? null : e.getIsGrouped() && f.GroupedCell ? f.GroupedCell({ cell: e, column: c, row: g, table: n }) : void 0;
2108  const b = v !== void 0;
2109  if (b || (v = e.renderValue()), s && f.enableFilterMatchHighlighting !== false && v && Rn.includes(typeof v) && (m && Rn.includes(typeof m) && Ca.includes(f.filterVariant) || p && Rn.includes(typeof p) && c.getCanGlobalFilter())) {
2110    let C = ((i = (l = c.getFilterValue()) !== null && l !== void 0 ? l : p) !== null && i !== void 0 ? i : "").toString();
2111    (m ? f._filterFn : d) === "fuzzy" && (C = C.split(" ")), v = a.jsx(Yi, Object.assign({ color: "yellow.3", highlight: C }, h, { children: v == null ? void 0 : v.toString() }));
2112  }
2113  return f.Cell && !b && (v = f.Cell({ cell: e, column: c, renderedCellValue: v, renderedColumnIndex: o, renderedRowIndex: t, row: g, table: n })), v;
2114}, qe = (e) => e.replace(/[^a-zA-Z0-9]/g, "_"), _a = (e) => {
2115  var o, t;
2116  return typeof e.primaryShade == "number" ? e.primaryShade : (t = (o = e.primaryShade) === null || o === void 0 ? void 0 : o.dark) !== null && t !== void 0 ? t : 7;
2117}, wa = (e, o) => e.colors[e.primaryColor][_a(e)];
2118function Wt(e, o) {
2119  const t = `data-${e}`;
2120  switch (typeof o) {
2121    case "boolean":
2122      return o ? { [t]: "" } : null;
2123    case "number":
2124      return { [t]: `${o}` };
2125    case "string":
2126      return { [t]: o };
2127    default:
2128      return null;
2129  }
2130}
2131var Ra = { root: "MRT_CopyButton-module_root__mkXy4" };
2132const Sa = (e) => {
2133  var { cell: o, children: t, table: n } = e, l = U(e, ["cell", "children", "table"]);
2134  const { options: { localization: { clickToCopy: i, copiedToClipboard: r }, mantineCopyButtonProps: s } } = n, { column: u, row: c } = o, { columnDef: g } = u, f = { cell: o, column: u, row: c, table: n }, p = Object.assign(Object.assign(Object.assign({}, D(s, f)), D(g.mantineCopyButtonProps, f)), l);
2135  return a.jsx(al, { value: o.getValue(), children: ({ copied: d, copy: m }) => {
2136    var h;
2137    return a.jsx(he, { color: d ? "green" : void 0, label: (h = p == null ? void 0 : p.title) !== null && h !== void 0 ? h : d ? r : i, openDelay: 1e3, withinPortal: true, children: a.jsx(Wo, Object.assign({}, p, { className: B("mrt-copy-button", Ra.root, p == null ? void 0 : p.className), onClick: (v) => {
2138      v.stopPropagation(), m();
2139    }, role: "presentation", title: void 0, children: t })) });
2140  } });
2141}, en = (e) => {
2142  var o, { cell: t, table: n } = e, l = U(e, ["cell", "table"]);
2143  const { getState: i, options: { createDisplayMode: r, editDisplayMode: s, mantineEditSelectProps: u, mantineEditTextInputProps: c }, refs: { editInputRefs: g }, setCreatingRow: f, setEditingCell: p, setEditingRow: d } = n, { column: m, row: h } = t, { columnDef: v } = m, { creatingRow: b, editingRow: C } = i(), _ = (b == null ? void 0 : b.id) === h.id, M = (C == null ? void 0 : C.id) === h.id, w = v.editV
2143ariant === "select", y = v.editVariant === "multi-select", [S, R] = x.useState(() => t.getValue()), P = { cell: t, column: m, row: h, table: n }, F = Object.assign(Object.assign(Object.assign({}, D(c, P)), D(v.mantineEditTextInputProps, P)), l), O = Object.assign(Object.assign(Object.assign({}, D(u, P)), D(v.mantineEditSelectProps, P)), l), N = (T) => {
2144    h._valuesCache[m.id] = T, _ ? f(h) : M && d(h);
2145  }, H = (T) => {
2146    var j;
2147    (j = F.onBlur) === null || j === void 0 || j.call(F, T), N(S), p(null);
2148  }, A = (T) => {
2149    var j, V;
2150    (j = F.onKeyDown) === null || j === void 0 || j.call(F, T), T.key === "Enter" && ((V = g.current[t.id]) === null || V === void 0 || V.blur());
2151  };
2152  if (v.Edit) return (o = v.Edit) === null || o === void 0 ? void 0 : o.call(v, { cell: t, column: m, row: h, table: n });
2153  const $ = { disabled: D(v.enableEditing, h) === false, label: ["custom", "modal"].includes(_ ? r : s) ? m.columnDef.header : void 0, name: t.id, onClick: (T) => {
2154    var j;
2155    T.stopPropagation(), (j = F == null ? void 0 : F.onClick) === null || j === void 0 || j.call(F, T);
2156  }, placeholder: ["custom", "modal"].includes(_ ? r : s) ? void 0 : v.header, value: S, variant: s === "table" ? "unstyled" : "default" };
2157  return w ? a.jsx(qn, Object.assign({}, $, { searchable: true, value: S }, O, { onBlur: H, onChange: (T, j) => {
2158    var V, K;
2159    (K = (V = O).onChange) === null || K === void 0 || K.call(V, T, j), R(T);
2160  }, onClick: (T) => {
2161    var j;
2162    T.stopPropagation(), (j = O == null ? void 0 : O.onClick) === null || j === void 0 || j.call(O, T);
2163  }, ref: (T) => {
2164    T && (g.current[t.id] = T, O.ref && (O.ref.current = T));
2165  } })) : y ? a.jsx(Yt, Object.assign({}, $, { searchable: true, value: S }, O, { onBlur: H, onChange: (T) => {
2166    var j, V;
2167    (V = (j = O).onChange) === null || V === void 0 || V.call(j, S), R(T), document.activeElement !== g.current[t.id] && N(T);
2168  }, onClick: (T) => {
2169    var j;
2170    T.stopPropagation(), (j = O == null ? void 0 : O.onClick) === null || j === void 0 || j.call(O, T);
2171  }, ref: (T) => {
2172    T && (g.current[t.id] = T, O.ref && (O.ref.current = T));
2173  } })) : a.jsx(Un, Object.assign({}, $, { onKeyDown: A, value: S != null ? S : "" }, F, { onBlur: H, onChange: (T) => {
2174    var j;
2175    (j = F.onChange) === null || j === void 0 || j.call(F, T), R(T.target.value);
2176  }, onClick: (T) => {
2177    var j;
2178    T.stopPropagation(), (j = F == null ? void 0 : F.onClick) === null || j === void 0 || j.call(F, T);
2179  }, ref: (T) => {
2180    T && (g.current[t.id] = T, F.ref && (F.ref.current = T));
2181  } }));
2182}, Ol = (e) => {
2183  var o, t, n, l, i, { cell: r, numRows: s = 1, renderedColumnIndex: u = 0, renderedRowIndex: c = 0, rowRef: g, table: f, virtualCell: p } = e, d = U(e, ["cell", "numRows", "renderedColumnIndex", "renderedRowIndex", "rowRef", "table", "virtualCell"]);
2184  const m = st(), { getState: h, options: { columnResizeDirection: v, columnResizeMode: b, createDisplayMode: C, editDisplayMode: _, enableClickToCopy: M, enableColumnOrdering: w, enableColumnPinning: y, enableEditing: S, enableGrouping: R, layoutMode: P, mantineSkeletonProps: F, mantineTableBodyCellProps: O }, refs: { editInputRefs: N }, setEditingCell: H, setHoveredColumn: A } = f, { columnSizingInfo: $, creatingRow: T, density: j, draggingColumn: V, editingCell: K, editingRow: X, hoveredColumn: ee, isLoading: re, showSkeletons: ge } = h(), { column: Y, row: ie } = r, { columnDef: G } = Y, { columnDefType: k } = G, q = { cell: r, column: Y, renderedColumnIndex: u, renderedRowIndex: c, row: ie, table: f }, I = Object.assign(Object.assign(Object.assign({}, D(O, q)), D(G.mantineTableBodyCellProps, q)), d), Q = D(F, q), [ae, le] = x.useState(100);
2185  x.useEffect(() => {
2186    if (!re && !ge || ae !== 100) return;
2187    const de = Y.getSize();
2188    le(k === "display" ? de / 2 : Math.round(Math.random() * (de - de / 3) + de / 3));
2189  }, [re, ge]);
2190  const pe = { minWidth: `max(calc(var(--col-${qe(Y == null ? void 0 : Y.id)}-size) * 1px), ${(o = G.minSize) !== null && o !== void 0 ? o : 30}px)`, width: `calc(var(--col-${qe(Y.id)}-size) * 1px)` };
2191  P === "grid" ? pe.flex = `${[0, false].includes(G.grow) ? 0 : `var(--col-${qe(Y.id)}-size)`} 0 auto` : P === "grid-no-grow" && (pe.flex = `${+(G.grow || 0)} 0 auto`);
2192  const xe = (V == null ? void 0 : V.id) === Y.id, te = (ee == null ? void 0 : ee.id) === Y.id, ne = y && G.columnDefType !== "group" && Y.getIsPinned(), ce = !r.getIsPlaceholder() && D(S, ie) && D(G.enableEditing, ie) !== false, E = ce && !["custom", "modal"].includes(_) && (_ === "table" || (X == null ? void 0 : X.id) === ie.id || (K == null ? void 0 : K.id) === r.id) && !ie.getIsGrouped(), se = ce && C === "row" && (T == null ? void 0 : T.id) === ie.id, Re = D(M, r) || D(G.enableClickToCopy, r) && D(G.enableClickToCopy, r) !== false, be = (de) => {
2193    var Ce;
2194    (Ce = I == null ? void 0 : I.onDoubleClick) === null || Ce === void 0 || Ce.call(I, de), ce && _ === "cell" && (H(r), setTimeout(() => {
2195      var ze;
2196      const Be = N.current[r.id];
2197      Be && (Be.focus(), (ze = Be.select) === null || ze === void 0 || ze.call(Be));
2198    }, 100));
2199  }, Ae = (de) => {
2200    var Ce;
2201    (Ce = I == null ? void 0 : I.onDragEnter) === null || Ce === void 0 || Ce.call(I, de), R && (ee == null ? void 0 : ee.id) === "drop-zone" && A(null), w && V && A(G.enableColumnOrdering !== false ? Y : null);
2202  }, Pe = { cell: r, renderedColumnIndex: u, renderedRowIndex: c, table: f }, Se = x.useRef(null), [oe, Z] = x.useState(false), ye = () => {
2203    if (!G.enableCellHoverReveal) return;
2204    const de = Se.current;
2205    if (de) {
2206      const Ce = de.scrollWidth > de.clientWidth;
2207      Z(Ce);
2208    }
2209  }, J = () => {
2210    G.enableCellHoverReveal && Z(false);
2211  }, Me = () => {
2212    var de, Ce, ze;
2213    return r.getIsPlaceholder() ? (Ce = (de = G.PlaceholderCell) === null || de === void 0 ? void 0 : de.call(G, { cell: r, column: Y, row: ie, table: f })) !== null && Ce !== void 0 ? Ce : null : ge !== false && (re || ge) ? a.jsx(yi, Object.assign({ height: 20, width: ae }, Q)) : k === "display" && (["mrt-row-expand", "mrt-row-numbers", "mrt-row-select"].includes(Y.id) || !ie.getIsGrouped()) ? (ze = G.Cell) === null || ze === void 0 ? void 0 : ze.call(G, Object.assign({ column: Y, renderedCellValue: r.renderValue(), row: ie, rowRef: g }, Pe)) : se || E ? a.jsx(en, { cell: r, table: f }) : Re && G.enableClickToCopy !== false ? a.jsx(Sa, { cell: r, table: f, children: a.jsx(Oo, Object.assign({}, Pe)) }) : a.jsx(Oo, Object.assign({}, Pe));
2214  };
2215  return a.jsx(Xn, Object.assign({ "data-column-pinned": ne || void 0, "data-dragging-column": xe || void 0, "data-first-right-pinned": ne === "right" && Y.getIsFirstColumn(ne) || void 0, "data-hovered-column-target": te || void 0, "data-index": u, "data-last-left-pinned": ne === "left" && Y.getIsLastColumn(ne) || void 0, "data-last-row": c === s - 1 || void 0, "data-resizing": b === "onChange" && ($ == null ? void 0 : $.isResizingColumn) === Y.id && v || void 0 }, I, { __vars: Object.assign({ "--mrt-cell-align": (t = I.align) !== null && t !== void 0 ? t : m.dir === "rtl" ? "right" : "left", "--mrt-table-cell-left": ne === "left" ? `${Y.getStart(ne)}` : void 0, "--mrt-table-cell-right": ne === "right" ? `${Y.getAfter(ne)}` : void 0 }, I.__vars), className: B(Ue.root, (P == null ? void 0 : P.startsWith("grid")) && Ue["root-grid"], p && Ue["root-virtualized"], ce && _ === "cell" && Ue["root-cursor-pointer"], ce && ["cell", "table"].includes(_ != null ? _ : "") && k !== "display" && Ue["root-editable-hover"], k === "data" && Ue["root-data-col"], j === "xs" && Ue["root-nowrap"], G.enableCellHoverReveal && Ue["root-cell-hover-reveal"], I == null ? void 0 : I.className), onDoubleClick: be, onDragEnter: Ae, onMouseEnter: ye, onMouseLeave: J, style: (de) => Object.assign(Object.assign({}, pe), D(I.style, de)), children: a.jsx(a.Fragment, { children: (n = I.children) !== null && n !== void 0 ? n : G.enableCellHoverReveal ? a.jsxs("div", { className: B(G.enableCellHoverReveal && !(se || E) && Ue["cell-hover-reveal"], oe && Ue.overflowing), ref: Se, children: [Me(), r.getIsGrouped() && !G.GroupedCell && a.jsxs(a.Fragment, { children: [" (", (l = ie.subRows) === null || l === void 0 ? void 0 : l.length, ")"] })] }) : a.jsxs(a.Fragment, { children: [Me(), r.getIsGrouped() && !G.GroupedCell && a.jsxs(a.Fragment, { children: [" (", (i = ie.subRows) === null || i === void 0 ? void 0 : i.length, ")"] })] }) }) }));
2216}, xa = x.memo(Ol, (e, o) => o.cell === e.cell);
2217var ot = { root: "MRT_TableDetailPanel-module_root__vQAlM", "root-grid": "MRT_TableDetailPanel-module_root-grid__7UMC6", "root-virtual-row": "MRT_TableDetailPanel-module_root-virtual-row__r-X4Z", inner: "MRT_TableDetailPanel-module_inner__o-Fk-", "inner-grid": "MRT_TableDetailPanel-module_inner-grid__WLZgF", "inner-expanded": "MRT_TableDetailPanel-module_inner-expanded__6tg9T", "inner-virtual": "MRT_TableDetailPanel-module_inner-virtual__TItRy" };
2218const ya = (e) => {
2219  var o, t, { parentRowRef: n, renderedRowIndex: l = 0, row: i, rowVirtualizer: r, striped: s, table: u, virtualRow: c } = e, g = U(e, ["parentRowRef", "renderedRowIndex", "row", "rowVirtualizer", "striped", "table", "virtualRow"]);
2220  const { getState: f, getVisibleLeafColumns: p, options: { layoutMode: d, mantineDetailPanelProps: m, mantineTableBodyRowProps: h, renderDetailPanel: v } } = u, { isLoading: b } = f(), C = D(h, { isDetailPanel: true, row: i, table: u }), _ = Object.assign(Object.assign({}, D(m, { row: i, table: u })), g), M = i.getAllCells().filter((y) => y.column.columnDef.columnDefType === "data").map((y) => a.jsx(en, { cell: y, table: u }, y.id)), w = !b && i.getIsExpanded() && (v == null ? void 0 : v({ internalEditComponents: M, row: i, table: u }));
2221  return a.jsx(Ot, Object.assign({ "data-index": v ? l * 2 + 1 : l, "data-striped": s, ref: (y) => {
2222    var S;
2223    y && ((S = r == null ? void 0 : r.measureElement) === null || S === void 0 || S.call(r, y));
2224  } }, C, { __vars: Object.assign({ "--mrt-parent-row-height": c ? `${(t = (o = n.current) === null || o === void 0 ? void 0 : o.getBoundingClientRect()) === null || t === void 0 ? void 0 : t.height}px` : void 0, "--mrt-virtual-row-start": c ? `${c.start}px` : void 0 }, C == null ? void 0 : C.__vars), className: B("mantine-Table-tr-detail-panel", ot.root, (d == null ? void 0 : d.startsWith("grid")) && ot["root-grid"], c && ot["root-virtual-row"], C == null ? void 0 : C.className), children: a.jsx(Xn, Object.assign({ colSpan: p().length, component: "td" }, _, { __vars: { "--mrt-inner-width": `${u.getTotalSize()}px` }
2224, className: B("mantine-Table-td-detail-panel", ot.inner, (d == null ? void 0 : d.startsWith("grid")) && ot["inner-grid"], i.getIsExpanded() && ot["inner-expanded"], c && ot["inner-virtual"]), p: i.getIsExpanded() && w ? "md" : 0, children: r ? i.getIsExpanded() && w : a.jsx(It, { in: i.getIsExpanded(), children: w }) })) }));
2225}, Ma = (e, o, t) => {
2226  let n = 0;
2227  return e.columnFiltersMeta[t] && (n = la(e.columnFiltersMeta[t], o.columnFiltersMeta[t])), n === 0 ? lt.alphanumeric(e, o, t) : n;
2228}, Ta = Object.assign(Object.assign({}, lt), { fuzzy: Ma }), Fa = (e, o) => Math.max(...Object.values(o.columnFiltersMeta).map((t) => t.rank)) - Math.max(...Object.values(e.columnFiltersMeta).map((t) => t.rank)), El = (e, o) => {
2229  const { getCenterRows: t, getPrePaginationRowModel: n, getRowModel: l, getState: i, getTopRows: r, options: { createDisplayMode: s, enablePagination: u, enableRowPinning: c, manualPagination: g, positionCreatingRow: f, rowPinningDisplayMode: p } } = e, { creatingRow: d, pagination: m } = i(), h = ja(e);
2230  let v = [];
2231  if (!h) v = !c || (p == null ? void 0 : p.includes("sticky")) ? o ? n().rows : l().rows : t();
2232  else {
2233    if (v = n().rows.sort((b, C) => Fa(b, C)), u && !g && !o) {
2234      const b = m.pageIndex * m.pageSize;
2235      v = v.slice(b, b + m.pageSize);
2236    }
2237    c && !(p == null ? void 0 : p.includes("sticky")) && (v = v.filter((b) => !b.getIsPinned()));
2238  }
2239  if (c && (p == null ? void 0 : p.includes("sticky"))) {
2240    const b = v.filter((C) => C.getIsPinned()).map((C) => C.id);
2241    v = [...r().filter((C) => !b.includes(C.id)), ...v];
2242  }
2243  if (f !== void 0 && d && s === "row") {
2244    const b = isNaN(+f) ? f === "top" ? 0 : v.length : +f;
2245    v = [...v.slice(0, b), d, ...v.slice(b)];
2246  }
2247  return v;
2248}, Dl = (e) => {
2249  const { getState: o, options: { enableGlobalFilterRankedResults: t, manualExpanding: n, manualFiltering: l, manualGrouping: i, manualSorting: r } } = e, { expanded: s, globalFilterFn: u } = o();
2250  return !n && !l && !i && !r && t && u === "fuzzy" && s !== true && !Object.values(s).some(Boolean);
2251}, ja = (e) => {
2252  const { globalFilter: o, sorting: t } = e.getState();
2253  return Dl(e) && o && !Object.values(t).some(Boolean);
2254}, qt = ({ row: e, table: o }) => {
2255  const { options: { enableRowSelection: t } } = o;
2256  return e.getIsSelected() || D(t, e) && e.getCanSelectSubRows() && e.getIsAllSubRowsSelected();
2257}, Pa = ({ renderedRowIndex: e = 0, row: o, table: t }) => (n, l) => {
2258  var i;
2259  const { getState: r, options: { enableBatchRowSelection: s, enableMultiRowSelection: u, enableRowPinning: c, manualPagination: g, rowPinningDisplayMode: f }, refs: { lastSelectedRowId: p } } = t, { pagination: { pageIndex: d, pageSize: m } } = r(), h = g ? 0 : m * d, v = qt({ row: o, table: t });
2260  o.toggleSelected(l != null ? l : !v);
2261  const b = /* @__PURE__ */ new Set([o.id]);
2262  if (s && u && n.nativeEvent.shiftKey && p.current !== null) {
2263    const C = El(t, true), _ = C.findIndex((M) => M.id === p.current);
2264    if (_ !== -1) {
2265      const M = qt({ row: C == null ? void 0 : C[_], table: t }), w = e + h, [y, S] = _ < w ? [_, w] : [w, _];
2266      if (v !== M) for (let R = y; R <= S; R++) C[R].toggleSelected(!v), b.add(C[R].id);
2267    }
2268  }
2269  p.current = o.id, o.getCanSelectSubRows() && o.getIsAllSubRowsSelected() && ((i = o.subRows) === null || i === void 0 || i.forEach((C) => C.toggleSelected(false))), c && (f == null ? void 0 : f.includes("select")) && b.forEach((C) => {
2270    t.getRow(C).pin(v ? false : (f == null ? void 0 : f.includes("bottom")) ? "bottom" : "top");
2271  });
2272}, zl = ({ table: e }) => (o, t, n) => {
2273  const { options: { enableRowPinning: l, rowPinningDisplayMode: i, selectAllMode: r }, refs: { lastSelectedRowId: s } } = e;
2274  r === "all" || n ? e.toggleAllRowsSelected(t != null ? t : o.target.checked) : e.toggleAllPageRowsSelected(t != null ? t : o.target.checked), l && (i == null ? void 0 : i.includes("select")) && e.setRowPinning({ bottom: [], top: [] }), s.current = null;
2275}, Tt = (e) => {
2276  var o, t, n, { children: l, columnVirtualizer: i, numRows: r, pinnedRowIds: s, renderedRowIndex: u = 0, row: c, rowVirtualizer: g, table: f, tableProps: p, virtualRow: d } = e, m = U(e, ["children", "columnVirtualizer", "numRows", "pinnedRowIds", "renderedRowIndex", "row", "rowVirtualizer", "table", "tableProps", "virtualRow"]);
2277  const { getState: h, options: { enableRowOrdering: v, enableRowPinning: b, enableStickyFooter: C, enableStickyHeader: _, layoutMode: M, mantineTableBodyRowProps: w, memoMode: y, renderDetailPanel: S, rowPinningDisplayMode: R }, refs: { tableFooterRef: P, tableHeadRef: F }, setHoveredRow: O } = f, { density: N, draggingColumn: H, draggingRow: A, editingCell: $, editingRow: T, hoveredRow: j, isFullScreen: V, rowPinning: K } = h(), X = c.getVisibleCells(), { virtualColumns: ee, virtualPaddingLeft: re, virtualPaddingRight: ge } = i != null ? i : {}, Y = qt({ row: c, table: f }), ie = b && c.getIsPinned(), G = ie && (R == null ? void 0 : R.includes("sticky")) && "sticky", k = (A == null ? void 0 : A.id) === c.id, q = (j == null ? void 0 : j.id) === c.id, I = Object.assign(Object.assign({}, D(w, { renderedRowIndex: u, row: c, table: f })), m), [Q, ae] = x.useMemo(() => !b || !G || !s || !c.getIsPinned() ? [] : [[...s].reverse().indexOf(c.id), s.indexOf(c.id)], [s, K]), le = (_ || V) && ((o = F.current) === null || o === void 0 ? void 0 : o.clientHeight) || 0, pe = C && ((t = P.current) === null || t === void 0 ? void 0 : t.clientHeight) || 0, xe = parseInt((n = I == null ? void 0 : I.style) === null || n === void 0 ? void 0 : n.height, 10) || (N === "xs" ? 37 : N === "md" ? 53 : 69), te = (E) => {
2278    v && A && O(c);
2279  }, ne = x.useRef(null);
2280  let ce = p.striped;
2281  return ce && (ce === true && (ce = "odd"), ce === "odd" && u % 2 !== 0 && (ce = false), ce === "even" && u % 2 === 0 && (ce = false)), a.jsxs(a.Fragment, { children: [a.jsxs(Ot, Object.assign({ "data-dragging-row": k || void 0, "data-hovered-row-target": q || void 0, "data-index": S ? u * 2 : u, "data-row-pinned": G || ie || void 0, "data-selected": Y || void 0, "data-striped": ce, onDragEnter: te, ref: (E) => {
2282    E && (ne.current = E, g == null ? void 0 : g.measureElement(E));
2283  } }, I, { __vars: Object.assign(Object.assign({}, I == null ? void 0 : I.__vars), { "--mrt-pinned-row-bottom": !d && Q !== void 0 && ie ? `${Q * xe + (C ? pe - 1 : 0)}` : void 0, "--mrt-pinned-row-top": d ? void 0 : ae !== void 0 && ie ? `${ae * xe + (_ || V ? le - 1 : 0)}` : void 0, "--mrt-virtual-row-start": d ? `${d.start}` : void 0 }), className: B(wn.root, (M == null ? void 0 : M.startsWith("grid")) && wn["root-grid"], d && wn["root-virtualized"], I == null ? void 0 : I.className), children: [re ? a.jsx(me, { component: "td", display: "flex", w: re }) : null, l || (ee != null ? ee : c.getVisibleCells()).map((E, se) => {
2284    let Re = E;
2285    i && (se = E.index, Re = X[se]);
2286    const be = { cell: Re, numRows: r, renderedColumnIndex: se, renderedRowIndex: u, rowRef: ne, table: f, virtualCell: i ? E : void 0 };
2287    return y === "cells" && Re.column.columnDef.columnDefType === "data" && !H && !A && ($ == null ? void 0 : $.id) !== Re.id && (T == null ? void 0 : T.id) !== c.id ? a.jsx(xa, Object.assign({}, be), Re.id) : a.jsx(Ol, Object.assign({}, be), Re.id);
2288  }), ge ? a.jsx(me, { component: "td", display: "flex", w: ge }) : null] })), S && !c.getIsGrouped() && a.jsx(ya, { parentRowRef: ne, renderedRowIndex: u, row: c, rowVirtualizer: g, striped: ce, table: f, virtualRow: d })] });
2289}, Sn = x.memo(Tt, (e, o) => e.row === o.row);
2290var St = { root: "MRT_ExpandButton-module_root__IFYio", "root-ltr": "MRT_ExpandButton-module_root-ltr__FHNnp", chevron: "MRT_ExpandButton-module_chevron__XzC5P", right: "MRT_ExpandButton-module_right__-pC-A", up: "MRT_ExpandButton-module_up__TZGBo", "root-rtl": "MRT_ExpandButton-module_root-rtl__zoudS" };
2291const Bn = (e) => {
2292  var o, t, { row: n, table: l } = e, i = U(e, ["row", "table"]);
2293  const r = st(), { options: { icons: { IconChevronDown: s }, localization: u, mantineExpandButtonProps: c, positionExpandColumn: g, renderDetailPanel: f } } = l, p = Object.assign(Object.assign({}, D(c, { row: n, table: l })), i), d = n.getAllCells().filter((_) => _.column.columnDef.columnDefType === "data").map((_) => a.jsx(en, { cell: _, table: l }, _.id)), m = n.getCanExpand(), h = n.getIsExpanded(), v = !!(f == null ? void 0 : f({ internalEditComponents: d, row: n, table: l })), b = (_) => {
2294    var M;
2295    _.stopPropagation(), n.toggleExpanded(), (M = p == null ? void 0 : p.onClick) === null || M === void 0 || M.call(p, _);
2296  }, C = r.dir === "rtl" || g === "last";
2297  return a.jsx(he, { disabled: !m && !v, label: (o = p == null ? void 0 : p.title) !== null && o !== void 0 ? o : h ? u.collapse : u.expand, openDelay: 1e3, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": u.expand, color: "gray", disabled: !m && !v, variant: "subtle" }, p, { __vars: { "--mrt-row-depth": `${n.depth}` }, className: B("mrt-expand-button", St.root, St[`root-${C ? "rtl" : "ltr"}`], p == null ? void 0 : p.className), onClick: b, title: void 0, children: (t = p == null ? void 0 : p.children) !== null && t !== void 0 ? t : a.jsx(s, { className: B("mrt-expand-button-chevron", St.chevron, !m && !f ? St.right : h ? St.up : void 0) }) })) });
2298}, Ia = (e) => {
2299  var o, t, { table: n, tableProps: l } = e, i = U(e, ["table", "tableProps"]);
2300  const { getState: r, options: { layoutMode: s, localization: u, renderDetailPanel: c, renderEmptyRowsFallback: g }, refs: { tablePaperRef: f } } = n, { columnFilters: p, globalFilter: d } = r(), m = x.useMemo(() => bt(n, "mrt-row-empty", {}, 0, 0), []), h = Object.assign(Object.assign({}, i), { renderedRowIndex: 0, row: m, virtualRow: void 0 });
2301  return a.jsxs(Tt, Object.assign({ className: B("mrt-table-body-row", 
2301(s == null ? void 0 : s.startsWith("grid")) && $e["empty-row-tr-grid"]), table: n, tableProps: l }, h, { children: [c && a.jsx(Xn, { className: B("mrt-table-body-cell", (s == null ? void 0 : s.startsWith("grid")) && $e["empty-row-td-grid"]), colSpan: 1, children: a.jsx(Bn, { row: m, table: n }) }), a.jsx("td", { className: B("mrt-table-body-cell", (s == null ? void 0 : s.startsWith("grid")) && $e["empty-row-td-grid"]), colSpan: n.getVisibleLeafColumns().length, children: (o = g == null ? void 0 : g({ table: n })) !== null && o !== void 0 ? o : a.jsx(mt, { __vars: { "--mrt-paper-width": `${(t = f.current) === null || t === void 0 ? void 0 : t.clientWidth}` }, className: B($e["empty-row-td-content"]), children: d || p.length ? u.noResultsFound : u.noRecordsToDisplay }) })] }));
2302}, Oa = (e) => {
2303  const { getRowModel: o, getState: t, options: { data: n, enableGlobalFilterRankedResults: l, positionCreatingRow: i } } = e, { creatingRow: r, expanded: s, globalFilter: u, pagination: c, rowPinning: g, sorting: f } = t();
2304  return x.useMemo(() => El(e), [r, n, l, s, o().rows, u, c.pageIndex, c.pageSize, i, g, f]);
2305}, Al = (e, o) => {
2306  const t = jl(e);
2307  return o === void 0 || (o >= 0 && o < Math.max(e.startIndex - e.overscan, 0) && t.unshift(o), o >= 0 && o > e.endIndex + e.overscan && t.push(o)), t;
2308}, Ea = (e, o) => {
2309  var t;
2310  const { getRowModel: n, getState: l, options: { enableRowVirtualization: i, renderDetailPanel: r, rowVirtualizerInstanceRef: s, rowVirtualizerOptions: u }, refs: { tableContainerRef: c } } = e, { density: g, draggingRow: f, expanded: p } = l();
2311  if (!i) return;
2312  const d = D(u, { table: e }), m = (t = o == null ? void 0 : o.length) !== null && t !== void 0 ? t : n().rows.length, h = g === "xs" ? 42.7 : g === "md" ? 54.7 : 70.7, v = Il(Object.assign({ count: r ? m * 2 : m, estimateSize: (b) => r && b % 2 === 1 ? p === true ? 100 : 0 : h, getScrollElement: () => c.current, measureElement: typeof window < "u" && navigator.userAgent.indexOf("Firefox") === -1 ? (b) => b == null ? void 0 : b.getBoundingClientRect().height : void 0, overscan: 4, rangeExtractor: x.useCallback((b) => {
2313    var C;
2314    return Al(b, (C = f == null ? void 0 : f.index) !== null && C !== void 0 ? C : 0);
2315  }, [f]) }, d));
2316  return v.virtualRows = v.getVirtualItems(), s && (s.current = v), v;
2317}, Vl = (e) => {
2318  var o, t, n, { columnVirtualizer: l, table: i, tableProps: r } = e, s = U(e, ["columnVirtualizer", "table", "tableProps"]);
2319  const { getBottomRows: u, getIsSomeRowsPinned: c, getRowModel: g, getState: f, getTopRows: p, options: { enableStickyFooter: d, enableStickyHeader: m, layoutMode: h, mantineTableBodyProps: v, memoMode: b, renderDetailPanel: C, rowPinningDisplayMode: _ }, refs: { tableFooterRef: M, tableHeadRef: w } } = i, { isFullScreen: y, rowPinning: S } = f(), R = Object.assign(Object.assign({}, D(v, { table: i })), s), P = (m || y) && ((o = w.current) === null || o === void 0 ? void 0 : o.clientHeight) || 0, F = d && ((t = M.current) === null || t === void 0 ? void 0 : t.clientHeight) || 0, O = x.useMemo(() => {
2320    var T, j;
2321    return !(!((T = S.bottom) === null || T === void 0) && T.length) && !(!((j = S.top) === null || j === void 0) && j.length) ? [] : g().rows.filter((V) => V.getIsPinned()).map((V) => V.id);
2322  }, [S, g().rows]), N = Oa(i), H = Ea(i, N), { virtualRows: A } = H != null ? H : {}, $ = { columnVirtualizer: l, numRows: N.length, table: i, tableProps: r };
2323  return a.jsxs(a.Fragment, { children: [!(_ == null ? void 0 : _.includes("sticky")) && c("top") && a.jsx(pn, Object.assign({}, R, { __vars: Object.assign({ "--mrt-table-head-height": `${P}` }, R == null ? void 0 : R.__vars), className: B($e.pinned, (h == null ? void 0 : h.startsWith("grid")) && $e["root-grid"], R == null ? void 0 : R.className), children: p().map((T, j) => {
2324    const V = Object.assign(Object.assign({}, $), { renderedRowIndex: j, row: T });
2325    return b === "rows" ? a.jsx(Sn, Object.assign({}, V), T.id) : a.jsx(Tt, Object.assign({}, V), T.id);
2326  }) })), a.jsx(pn, Object.assign({}, R, { __vars: Object.assign({ "--mrt-table-body-height": H ? `${H.getTotalSize()}px` : void 0 }, R == null ? void 0 : R.__vars), className: B($e.root, (h == null ? void 0 : h.startsWith("grid")) && $e["root-grid"], !N.length && $e["root-no-rows"], H && $e["root-virtualized"], R == null ? void 0 : R.className), children: (n = R == null ? void 0 : R.children) !== null && n !== void 0 ? n : N.length ? a.jsx(a.Fragment, { children: (A != null ? A : N).map((T, j) => {
2327    if (H) if (C) {
2328      if (T.index % 2 === 1) return null;
2329      j = T.index / 2;
2330    } else j = T.index;
2331    const V = H ? N[j] : T, K = Object.assign(Object.assign({}, $), { pinnedRowIds: O, renderedRowIndex: j, row: V, rowVirtualizer: H, virtualRow: H ? T : void 0 }), X = `${V.id}-${V.index}`;
2332    return b === "rows" ? a.jsx(Sn, Object.assign({}, K), X) : a.jsx(Tt, Object.assign({}, K), X);
2333  }) }) : a.jsx(Ia, Object.assign({}, $)) })), !(_ == null ? void 0 : _.includes("sticky")) && c("bottom") && a.jsx(pn, Object.assign({}, R, { __vars: Object.assign({ "--mrt-table-footer-height": `${F}` }, R == null ? void 0 : R.__vars), className: B($e.pinned, (h == null ? void 0 : h.startsWith("grid")) && $e["root-grid"], R == null ? void 0 : R.className), children: u().map((T, j) => {
2334    const V = Object.assign(Object.assign({}, $), { renderedRowIndex: j, row: T });
2335    return b === "rows" ? a.jsx(Sn, Object.assign({}, V), T.id) : a.jsx(Tt, Object.assign({}, V), T.id);
2336  }) }))] });
2337}, Da = x.memo(Vl, (e, o) =>
2337 e.table.options.data === o.table.options.data);
2338var za = { "grab-icon": "MRT_GrabHandleButton-module_grab-icon__mQimy" };
2339const ao = ({ actionIconProps: e, onDragEnd: o, onDragStart: t, table: { options: { icons: { IconGripHorizontal: n }, localization: { move: l } } } }) => {
2340  var i, r;
2341  return a.jsx(he, { label: (i = e == null ? void 0 : e.title) !== null && i !== void 0 ? i : l, openDelay: 1e3, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": (r = e == null ? void 0 : e.title) !== null && r !== void 0 ? r : l, draggable: true }, e, { className: B("mrt-grab-handle-button", za["grab-icon"], e == null ? void 0 : e.className), color: "gray", onClick: (s) => {
2342    var u;
2343    s.stopPropagation(), (u = e == null ? void 0 : e.onClick) === null || u === void 0 || u.call(e, s);
2344  }, onDragEnd: o, onDragStart: t, size: "sm", title: void 0, variant: "transparent", children: a.jsx(n, { size: "100%" }) })) });
2345}, Aa = (e) => {
2346  var { row: o, rowRef: t, table: n } = e, l = U(e, ["row", "rowRef", "table"]);
2347  const { options: { mantineRowDragHandleProps: i } } = n, r = Object.assign(Object.assign({}, D(i, { row: o, table: n })), l), s = (c) => {
2348    var g;
2349    (g = r == null ? void 0 : r.onDragStart) === null || g === void 0 || g.call(r, c), c.dataTransfer.setDragImage(t.current, 0, 0), n.setDraggingRow(o);
2350  }, u = (c) => {
2351    var g;
2352    (g = r == null ? void 0 : r.onDragEnd) === null || g === void 0 || g.call(r, c), n.setDraggingRow(null), n.setHoveredRow(null);
2353  };
2354  return a.jsx(ao, { actionIconProps: r, onDragEnd: u, onDragStart: s, table: n });
2355}, xn = (e) => {
2356  var { pinningPosition: o, row: t, table: n } = e, l = U(e, ["pinningPosition", "row", "table"]);
2357  const { options: { icons: { IconPinned: i, IconX: r }, localization: s, rowPinningDisplayMode: u } } = n, c = t.getIsPinned(), [g, f] = x.useState(false), p = (d) => {
2358    f(false), d.stopPropagation(), t.pin(c ? false : o);
2359  };
2360  return a.jsx(he, { label: c ? s.unpin : s.pin, openDelay: 1e3, opened: g, children: a.jsx(fe, Object.assign({ "aria-label": s.pin, color: "gray", onClick: p, onMouseEnter: () => f(true), onMouseLeave: () => f(false), size: "xs", style: { height: "24px", width: "24px" }, variant: "subtle" }, l, { children: c ? a.jsx(r, {}) : a.jsx(i, { fontSize: "small", style: { transform: `rotate(${u === "sticky" ? 135 : o === "top" ? 180 : 0}deg)` } }) })) });
2361}, Va = (e) => {
2362  var { row: o, table: t } = e, n = U(e, ["row", "table"]);
2363  const { getState: l, options: { enableRowPinning: i, rowPinningDisplayMode: r } } = t, { density: s } = l();
2364  if (!D(i, o)) return null;
2365  const c = Object.assign({ row: o, table: t }, n);
2366  return r === "top-and-bottom" && !o.getIsPinned() ? a.jsxs(me, { style: { display: "flex", flexDirection: s === "xs" ? "row" : "column" }, children: [a.jsx(xn, Object.assign({ pinningPosition: "top" }, c)), a.jsx(xn, Object.assign({ pinningPosition: "bottom" }, c))] }) : a.jsx(xn, Object.assign({ pinningPosition: r === "bottom" ? "bottom" : "top" }, c));
2367};
2368var yn = { root: "MRT_ColumnPinningButtons-module_root__scTtW", left: "MRT_ColumnPinningButtons-module_left__W6Aog", right: "MRT_ColumnPinningButtons-module_right__7AJE3" };
2369const ka = ({ column: e, table: o }) => {
2370  const { options: { icons: { IconPinned: t, IconPinnedOff: n }, localization: l } } = o;
2371  return a.jsx(Te, { className: B("mrt-column-pinning-buttons", yn.root), children: e.getIsPinned() ? a.jsx(he, { label: l.unpin, withinPortal: true, children: a.jsx(fe, { color: "gray", onClick: () => e.pin(false), size: "md", variant: "subtle", children: a.jsx(n, {}) }) }) : a.jsxs(a.Fragment, { children: [a.jsx(he, { label: l.pinToLeft, withinPortal: true, children: a.jsx(fe, { color: "gray", onClick: () => e.pin("left"), size: "md", variant: "subtle", children: a.jsx(t, { className: yn.left }) }) }), a.jsx(he, { label: l.pinToRight, withinPortal: true, children: a.jsx(fe, { color: "gray", onClick: () => e.pin("right"), size: "md", variant: "subtle", children: a.jsx(t, { className: yn.right }) }) })] }) });
2372};
2373var $a = { root: "MRT_EditActionButtons-module_root__BfxVZ" };
2374const kl = (e) => {
2375  var { row: o, table: t, variant: n = "icon" } = e, l = U(e, ["row", "table", "variant"]);
2376  const { getState: i, options: { icons: { IconCircleX: r, IconDeviceFloppy: s }, localization: u, onCreatingRowCancel: c, onCreatingRowSave: g, onEditingRowCancel: f, onEditingRowSave: p }, refs: { editInputRefs: d }, setCreatingRow: m, setEditingRow: h } = t, { creatingRow: v, editingRow: b, isSaving: C } = i(), _ = (v == null ? void 0 : v.id) === o.id, M = (b == null ? void 0 : b.id) === o.id, w = () => {
2377    _ ? (c == null ? void 0 : c({ row: o, table: t }), m(null)) : M && (f == null ? void 0 : f({ row: o, table: t }), h(null)), o._valuesCache = {};
2378  }, y = () => {
2379    var S;
2380    (S = Object.values(d == null ? void 0 : d.current).filter((R) => {
2381      var P, F;
2382      return o.id === ((F = (P = R == null ? void 0 : R.name) === null || P === void 0 ? void 0 : P.split("_")) === null || F === void 0 ? void 0 : F[0]);
2383    })) === null || S === void 0 || S.forEach((R) => {
2384      R.value !== void 0 && Object.hasOwn(o == null ? void 0 : o._valuesCache, R.name) && (o._valuesCache[R.name] = R.value);
2385    }), _ ? g == null ? void 0 : g({ exitCreatingMode: () => m(null), row: o, table: t, values: o._valuesCache }) : M && (p == null ? void 0 : p({ exitEditingMode: () => h(null), row: o, table: t, values: o == null ? void 0 : o._valuesCache }));
2386  };
2387  return a.jsx(me, Object.assign({ className: B("mrt-edit-action-buttons", $a.root), onClick: (S) => S.stopPropagation() }, l, { children: n === "icon" ? a.jsxs(a.Fragment, { children: [a.jsx(he, { label: u.cancel, withinPortal: true, children: a.jsx(fe, { "aria-label": u.cancel, color: "red", onClick: w, variant: "subtle", children: a.jsx(r, {}) }) }), a.jsx(he, { label: u.save, withinPortal: true, children: a.jsx(fe, { "aria-label": u.save, color: "blue", loading: C, onClick: y, variant: "subtle", children: a.jsx(s, {}) }) })] }) : a.jsxs(a.Fragment, { children: [a.jsx(it, { onClick: w, variant: "subtle", children: u.cancel }), a.jsx(it, { loading: C, onClick: y, variant: "filled", children: u.save })] }) }));
2388};
2389var $t = { root: "MRT_ExpandAllButton-module_root__gkBZD", chevron: "MRT_ExpandAllButton-module_chevron__Iep0j", up: "MRT_ExpandAllButton-module_up__Xth3U", right: "MRT_ExpandAllButton-module_right__bS4L-" };
2390const Ha = (e) => {
2391  var o, t, { table: n } = e, l = U(e, ["table"]);
2392  const { getCanSomeRowsExpand: i, getIsAllRowsExpanded: r, getIsSomeRowsExpanded: s, getState: u, options: { icons: { IconChevronsDown: c }, localization: g, mantineExpandAllButtonProps: f, renderDetailPanel: p }, toggleAllRowsExpanded: d } = n, { density: m, isLoading: h } = u(), v = Object.assign(Object.assign({}, D(f, { table: n })), l), b = r();
2393  return a.jsx(he, { label: ((o = v == null ? void 0 : v.title) !== null && o !== void 0 ? o : b) ? g.collapseAll : g.expandAll, openDelay: 1e3, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": g.expandAll, color: "gray", variant: "subtle" }, v, { className: B("mrt-expand-all-button", $t.root, v == null ? void 0 : v.className, m), disabled: h || !p && !i(), onClick: () => d(!b), title: void 0, children: (t = v == null ? void 0 : v.children) !== null && t !== void 0 ? t : a.jsx(c, { className: B($t.chevron, b ? $t.up : s() ? $t.right : void 0) }) })) });
2394};
2395var Eo = { root: "MRT_ShowHideColumnsMenu-module_root__2UWak", content: "MRT_ShowHideColumnsMenu-module_content__ehkWQ" }, ct = { root: "MRT_ShowHideColumnsMenuItems-module_root__wYgv-", menu: "MRT_ShowHideColumnsMenuItems-module_menu__CeATR", grab: "MRT_ShowHideColumnsMenuItems-module_grab__a-d-y", pin: "MRT_ShowHideColumnsMenuItems-module_pin__P437b", switch: "MRT_ShowHideColumnsMenuItems-module_switch__tMsdt", header: "MRT_ShowHideColumnsMenuItems-module_header__xVkKb" };
2396const pt = (e) => {
2397  var o, t, n, l;
2398  return (l = (o = e.id) !== null && o !== void 0 ? o : (n = (t = e.accessorKey) === null || t === void 0 ? void 0 : t.toString) === null || n === void 0 ? void 0 : n.call(t)) !== null && l !== void 0 ? l : e.header;
2399}, Ut = (e) => {
2400  const o = [], t = (n) => {
2401    n.forEach((l) => {
2402      l.columns ? t(l.columns) : o.push(l);
2403    });
2404  };
2405  return t(e), o;
2406}, $l = ({ columnDefs: e, tableOptions: o }) => {
2407  const { aggregationFns: t = {}, defaultDisplayColumn: n, filterFns: l = {}, sortingFns: i = {}, state: { columnFilterFns: r = {} } = {} } = o;
2408  return e.map((s) => {
2409    var u, c;
2410    if (s.id || (s.id = pt(s)), s.columnDefType || (s.columnDefType = "data"), !((u = s.columns) === null || u === void 0) && u.length) s.columnDefType = "group", s.columns = $l({ columnDefs: s.columns, tableOptions: o });
2411    else if (s.columnDefType === "data") {
2412      if (Array.isArray(s.aggregationFn)) {
2413        const g = s.aggregationFn;
2414        s.aggregationFn = (f, p, d) => g.map((m) => {
2415          var h;
2416          return (h = t[m]) === null || h === void 0 ? void 0 : h.call(t, f, p, d);
2417        });
2418      }
2419      Object.keys(l).includes(r[s.id]) && (s.filterFn = (c = l[r[s.id]]) !== null && c !== void 0 ? c : l.fuzzy, s._filterFn = r[s.id]), Object.keys(i).includes(s.sortingFn) && (s.sortingFn = i[s.sortingFn]);
2420    } else s.columnDefType === "display" && (s = Object.assign(Object.assign({}, n), s));
2421    return s;
2422  });
2423}, Hl = (e, o, t) => {
2424  e.getCanPin() && e.pin(o.getIsPinned());
2425  const n = [...t];
2426  return n.splice(n.indexOf(o.id), 0, n.splice(n.indexOf(e.id), 1)[0]), n;
2427}, Ba = (e) => {
2428  const { filterVariant: o } = e;
2429  return o === "multi-select" ? "arrIncludesSome" : (o == null ? void 0 : o.includes("range")) ? "betweenInclusive" : ["checkbox", "date", "select"].includes(o || "") ? "equals" : "fuzzy";
2430}, Bl = ({ allColumns: e, column: o, hoveredColumn: t, setHoveredColumn: n, table: l }) => {
2431  var i;
2432  const r = Ko(), { getState: s, options: { enableColumnOrdering: u, enableColumnPinning: c, enableHiding: g, localization: f }, setColumnOrder: p } = l, { columnOrder: d } = s(), { columnDef: m } = o, { columnDefType: h } = m, v = h !== "group" && o.getIsVisible() || h === "group" && o.getLeafColumns().some((R) => R.getIsVisible()), b = (R) => {
2433    var P, F;
2434    h === "group" ? (F = (P = R == null ? void 0 : R.columns) === null || P === void 0 ? void 0 : P.forEach) === null || F === void 0 || F.call(P, (O) => {
2435      O.toggleVisibility(!v);
2436    }) : R.toggleVisibility();
2437  }, C = x.useRef(null), [_, M] = x.useState(false), w = (R) => {
2438    M(true), R.dataTransfer.setDragImage(C.current, 0, 0);
2439  }, y = (R) => {
2440    M(false), n(null), t && p(Hl(o, t, d));
2441  }, S = (R) => {
2442    !_ && m.enableColumnOrdering !== false && n(o);
2443  };
2444  return !m.header || m.visibleInShowHideMenu === false ? null : a.jsxs(a.Fragment, { children: [a.jsx(ue.Item, Object.assign({ className: ct.root, component: "span", onDragEnter: S, ref: C, style: { "--_column-depth": `${(o.depth + 0.5) * 2}rem`, "--_hover-color": wa(r) } }, Wt("dragging", _), Wt("order-hovered", (t == null ? void 0 : t.id) === o.id), { children: a.jsxs(me, { className: ct.menu, children: [h !== "group" && u && !e.some((R) => R.columnDef.columnDefType === "group") && (m.enableColumnOrdering !== false ? a.jsx(ao, { onDragEnd: y, onDragStart: w, table: l }) : a.jsx(me, { className: ct.grab })), c && (o.getCanPin() ? a.jsx(ka, { column: o, table: l }) : a.jsx(me, { className: ct.pin })), g ? a.jsx(he, { label: f.toggleVisibility, openDelay: 1e3, withinPortal: true, children: a.jsx(Zo, { checked: v, className: ct.switch, disabled: !o.getCanHide(), label: m.header, onChange: () => b(o) }) }) : a.jsx(mt, { className: ct.header, children: m.header })] }) })), (i = o.columns) === null || i === void 0 ? void 0 : i.map((R, P) => a.jsx(Bl, { allColumns: e, column: R, hoveredColumn: t, setHoveredColumn: n, table: l }, `${P}-${R.id}`))] });
2445};
2446function at({ header: e, id: o, size: t, tableOptions: n }) {
2447  const { defaultDisplayColumn: l, displayColumnDefOptions: i, localization: r } = n;
2448  return Object.assign(Object.assign(Object.assign(Object.assign({}, l), { header: e ? r[e] : "", size: t }), i == null ? void 0 : i[o]), { id: o });
2449}
2450const Nl = (e) => {
2451  const { enableRowPinning: o, rowPinningDisplayMode: t } = e;
2452  return !!(o && !(t == null ? void 0 : t.startsWith("select")));
2453}, Gl = (e) => {
2454  const { enableRowDragging: o, enableRowOrdering: t } = e;
2455  return !!(o || t);
2456}, uo = (e) => {
2457  const { enableExpanding: o, enableGrouping: t, renderDetailPanel: n, state: { grouping: l } } = e;
2458  return !!(o || t && (l == null ? void 0 : l.length) || n);
2459}, co = (e) => {
2460  const { createDisplayMode: o, editDisplayMode: t, enableEditing: n, enableRowActions: l, state: { creatingRow: i } } = e;
2461  return !!(l || i && o === "row" || n && ["modal", "row"].includes(t != null ? t : ""));
2462}, Ll = (e) => !!e.enableRowSelection, Wl = (e) => !!e.enableRowNumbers, ql = (e) => e.layoutMode === "grid-no-grow", Na = (e) => [Nl(e) && "mrt-row-pin", Gl(e) && "mrt-row-drag", e.positionActionsColumn === "first" && co(e) && "mrt-row-actions", e.positionExpandColumn === "first" && uo(e) && "mrt-row-expand", Ll(e) && "mrt-row-select", Wl(e) && "mrt-row-numbers"].filter(
2462Boolean), Ga = (e) => [e.positionActionsColumn === "last" && co(e) && "mrt-row-actions", e.positionExpandColumn === "last" && uo(e) && "mrt-row-expand", ql(e) && "mrt-row-spacer"].filter(Boolean), go = (e, o = false) => {
2463  const { state: { columnOrder: t = [] } } = e, n = Na(e), l = Ga(e), i = Ut(e.columns).map((s) => pt(s));
2464  let r = o ? i : Array.from(/* @__PURE__ */ new Set([...t, ...i]));
2465  return r = r.filter((s) => !n.includes(s) && !l.includes(s)), [...n, ...r, ...l];
2466}, La = ({ table: e }) => {
2467  const { getAllColumns: o, getAllLeafColumns: t, getCenterLeafColumns: n, getIsAllColumnsVisible: l, getIsSomeColumnsPinned: i, getIsSomeColumnsVisible: r, getLeftLeafColumns: s, getRightLeafColumns: u, getState: c, options: { enableColumnOrdering: g, enableColumnPinning: f, enableHiding: p, localization: d } } = e, { columnOrder: m, columnPinning: h } = c(), v = (M) => {
2468    t().filter((w) => w.columnDef.enableHiding !== false).forEach((w) => w.toggleVisibility(M));
2469  }, b = x.useMemo(() => {
2470    const M = o();
2471    return m.length > 0 && !M.some((w) => w.columnDef.columnDefType === "group") ? [...s(), ...Array.from(new Set(m)).map((w) => n().find((y) => (y == null ? void 0 : y.id) === w)), ...u()].filter(Boolean) : M;
2472  }, [m, h, o(), n(), s(), u()]), [C, _] = x.useState(null);
2473  return a.jsxs(ue.Dropdown, { className: B("mrt-show-hide-columns-menu", Eo.root), children: [a.jsxs(Te, { className: Eo.content, children: [p && a.jsx(it, { disabled: !r(), onClick: () => v(false), variant: "subtle", children: d.hideAll }), g && a.jsx(it, { onClick: () => e.setColumnOrder(go(e.options, true)), variant: "subtle", children: d.resetOrder }), f && a.jsx(it, { disabled: !i(), onClick: () => e.resetColumnPinning(true), variant: "subtle", children: d.unpinAll }), p && a.jsx(it, { disabled: l(), onClick: () => v(true), variant: "subtle", children: d.showAll })] }), a.jsx(ue.Divider, {}), b.map((M, w) => a.jsx(Bl, { allColumns: b, column: M, hoveredColumn: C, setHoveredColumn: _, table: e }, `${w}-${M.id}`))] });
2474}, Wa = (e) => {
2475  var { table: o, title: t } = e, n = U(e, ["table", "title"]);
2476  const { icons: { IconColumns: l }, localization: { showHideColumns: i } } = o.options;
2477  return a.jsxs(ue, { closeOnItemClick: false, withinPortal: true, children: [a.jsx(he, { label: t != null ? t : i, withinPortal: true, children: a.jsx(ue.Target, { children: a.jsx(fe, Object.assign({ "aria-label": t != null ? t : i, color: "gray", size: "lg", variant: "subtle" }, n, { children: a.jsx(l, {}) })) }) }), a.jsx(La, { table: o })] });
2478}, qa = { md: "xs", xl: "md", xs: "xl" }, Ua = (e) => {
2479  var { table: { getState: o, options: { icons: { IconBaselineDensityLarge: t, IconBaselineDensityMedium: n, IconBaselineDensitySmall: l }, localization: { toggleDensity: i } }, setDensity: r }, title: s } = e, u = U(e, ["table", "title"]);
2480  const { density: c } = o();
2481  return a.jsx(he, { label: s != null ? s : i, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": s != null ? s : i, color: "gray", onClick: () => r((g) => qa[g]), size: "lg", variant: "subtle" }, u, { children: c === "xs" ? a.jsx(l, {}) : c === "md" ? a.jsx(n, {}) : a.jsx(t, {}) })) });
2482}, Ka = (e) => {
2483  var { table: { getState: o, options: { icons: { IconFilter: t, IconFilterOff: n }, localization: { showHideFilters: l } }, setShowColumnFilters: i }, title: r } = e, s = U(e, ["table", "title"]);
2484  const { showColumnFilters: u } = o();
2485  return a.jsx(he, { label: r != null ? r : l, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": r != null ? r : l, color: "gray", onClick: () => i((c) => !c), size: "lg", variant: "subtle" }, s, { children: u ? a.jsx(n, {}) : a.jsx(t, {}) })) });
2486}, Xa = (e) => {
2487  var { table: { getState: o, options: { icons: { IconMaximize: t, IconMinimize: n }, localization: { toggleFullScreen: l } }, setIsFullScreen: i }, title: r } = e, s = U(e, ["table", "title"]);
2488  const { isFullScreen: u } = o(), [c, g] = x.useState(false), f = () => {
2489    g(false), i((p) => !p);
2490  };
2491  return a.jsx(he, { label: r != null ? r : l, opened: c, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": r != null ? r : l, color: "gray", onClick: f, onMouseEnter: () => g(true), onMouseLeave: () => g(false), size: "lg", variant: "subtle" }, s, { children: u ? a.jsx(n, {}) : a.jsx(t, {}) })) });
2492}, Za = (e) => {
2493  var { table: { getState: o, options: { icons: { IconSearch: t, IconSearchOff: n }, localization: { showHideSearch: l } }, refs: { searchInputRef: i }, setShowGlobalFilter: r }, title: s } = e, u = U(e, ["table", "title"]);
2494  const { globalFilter: c, showGlobalFilter: g } = o(), f = () => {
2495    r(!g), setTimeout(() => {
2496      var p;
2497      return (p = i.current) === null || p === void 0 ? void 0 : p.focus();
2498    }, 100);
2499  };
2500  return a.jsx(he, { label: s != null ? s : l, withinPortal: true, children: a.jsx(fe, Object.assign({ "aria-label": s != null ? s : l, color: "gray", disabled: !!c, onClick: f, size: "lg", variant: "subtle" }, u, { children: g ? a.jsx(n, {}) : a.jsx(t, {}) })) });
2501}, Ja = (e) => {
2502  var { handleEdit: o, row: t, table: n } = e, l = U(e, ["handleEdit", "row", "table"]);
2503  const { options: { editDisplayMode: i, enableEditing: r, icons: { IconDots: s, IconEdit: u }, localization: c, positionActionsColumn: g, renderRowActionMenuItems: f } } = n;
2504  return a.jsxs(ue, { closeOnItemClick: true, position: g === "first" ? "bottom-start" : g === "last" ? "bottom-end" : void 0, withinPortal: true, children: [a.jsx(he, { label: c.rowActions, openDelay: 1e3, withinPortal: true, children: a.jsx(ue.Target, { children: a.jsx(fe, Object.assign({ "aria-label": c.rowActions, color: "gray", onClick: (p) => p.stopPropagation(), size: "sm", variant: "subtle" }, l, { children: a.jsx(s, {}) })) }) }), a.jsxs(ue.Dropdown, { onClick: (p) => p.stopPropagation(), children: [r && i !== "table" && a.jsx(ue.Item, { leftSection: a.jsx(u, {}), onClick: o, children: c.edit }), f == null ? void 0 : f({ row: t, table: n })] })] });
2505}, Ya = ({ cell: e, row: o, table: t }) => {
2506  const { getState: n, options: { createDisplayMode: l, editDisplayMode: i, enableEditing: r, icons: { IconEdit: s }, localization: { edit: u }, renderRowActionMenuItems: c, renderRowActions: g }, setEditingRow: f } = t, { creatingRow: p, editingRow: d } = n(), m = (p == null ? void 0 : p.id) === o.id, h = (d == null ? void 0 : d.id) === o.id, v = (C) => {
2507    C.stopPropagation(), f(Object.assign({}, o));
2508  }, b = m && l === "row" || h && i === "row";
2509  return a.jsx(a.Fragment, { children: g && !b ? g({ cell: e, row: o, table: t }) : b ? a.jsx(kl, { row: o, table: t }) : !c && D(r, o) ? a.jsx(he, { label: u, openDelay: 1e3, position: "right", withinPortal: true, children: a.jsx(fe, { "aria-label": u, color: "gray", disabled: !!d && d.id !== o.id, onClick: v, size: "md", variant: "subtle", children: a.jsx(s, {}) }) }) : c ? a.jsx(Ja, { handleEdit: v, row: o, table: t }) : null });
2510};
2511var Mn = { root: "MRT_TableFooter-module_root__-JXpw", grid: "MRT_TableFooter-module_grid__J3Ga-", sticky: "MRT_TableFooter-module_sticky__GcoK6" }, Do = { root: "MRT_TableFooterRow-module_root__EuoPr", "layout-mode-grid": "MRT_TableFooterRow-module_layout-mode-grid__dUEMF" }, Tn = { root: "MRT_TableFooterCell-module_root__d8Scs", grid: "MRT_TableFooterCell-module_grid__H9jLk", group: "MRT_TableFooterCell-module_group__l3-p-" };
2512const Qa = (e) => {
2513  var o, t, n, l, i, { footer: r, renderedColumnIndex: s, table: u } = e, c = U(e, ["footer", "renderedColumnIndex", "table"]);
2514  const g = st(), { options: { enableColumnPinning: f, layoutMode: p, mantineTableFooterCellProps: d } } = u, { column: m }
2514 = r, { columnDef: h } = m, { columnDefType: v } = h, b = f && h.columnDefType !== "group" && m.getIsPinned(), C = { column: m, table: u }, _ = Object.assign(Object.assign(Object.assign({}, D(d, C)), D(h.mantineTableFooterCellProps, C)), c), M = { minWidth: `max(calc(var(--header-${qe(r == null ? void 0 : r.id)}-size) * 1px), ${(o = h.minSize) !== null && o !== void 0 ? o : 30}px)`, width: `calc(var(--header-${qe(r.id)}-size) * 1px)` };
2515  return p === "grid" ? M.flex = `${[0, false].includes(h.grow) ? 0 : `var(--header-${qe(r.id)}-size)`} 0 auto` : p === "grid-no-grow" && (M.flex = `${+(h.grow || 0)} 0 auto`), a.jsx(Kn, Object.assign({ colSpan: r.colSpan, "data-column-pinned": b || void 0, "data-first-right-pinned": b === "right" && m.getIsFirstColumn(b) || void 0, "data-index": s, "data-last-left-pinned": b === "left" && m.getIsLastColumn(b) || void 0 }, _, { __vars: Object.assign({ "--mrt-cell-align": (t = _.align) !== null && t !== void 0 ? t : v === "group" ? "center" : g.dir === "rtl" ? "right" : "left", "--mrt-table-cell-left": b === "left" ? `${m.getStart(b)}` : void 0, "--mrt-table-cell-right": b === "right" ? `${m.getAfter(b)}` : void 0 }, _ == null ? void 0 : _.__vars), className: B(Tn.root, (p == null ? void 0 : p.startsWith("grid")) && Tn.grid, v === "group" && Tn.group, _ == null ? void 0 : _.className), style: (w) => Object.assign(Object.assign({}, M), D(_.style, w)), children: (n = _.children) !== null && n !== void 0 ? n : r.isPlaceholder ? null : (i = (l = D(h.Footer, { column: m, footer: r, table: u })) !== null && l !== void 0 ? l : h.footer) !== null && i !== void 0 ? i : null }));
2516}, eu = (e) => {
2517  var o, { columnVirtualizer: t, footerGroup: n, table: l } = e, i = U(e, ["columnVirtualizer", "footerGroup", "table"]);
2518  const { options: { layoutMode: r, mantineTableFooterRowProps: s } } = l, { virtualColumns: u, virtualPaddingLeft: c, virtualPaddingRight: g } = t != null ? t : {};
2519  if (!(!((o = n.headers) === null || o === void 0) && o.some((p) => typeof p.column.columnDef.footer == "string" && !!p.column.columnDef.footer || p.column.columnDef.Footer))) return null;
2520  const f = Object.assign(Object.assign({}, D(s, { footerGroup: n, table: l })), i);
2521  return a.jsxs(Ot, Object.assign({ className: B(Do.root, (r == null ? void 0 : r.startsWith("grid")) && Do["layout-mode-grid"]) }, f, { children: [c ? a.jsx(me, { component: "th", display: "flex", w: c }) : null, (u != null ? u : n.headers).map((p, d) => {
2522    let m = p;
2523    return t && (d = p.index, m = n.headers[d]), a.jsx(Qa, { footer: m, renderedColumnIndex: d, table: l }, m.id);
2524  }), g ? a.jsx(me, { component: "th", display: "flex", w: g }) : null] }));
2525}, tu = (e) => {
2526  var { columnVirtualizer: o, table: t } = e, n = U(e, ["columnVirtualizer", "table"]);
2527  const { getFooterGroups: l, getState: i, options: { enableStickyFooter: r, layoutMode: s, mantineTableFooterProps: u }, refs: { tableFooterRef: c } } = t, { isFullScreen: g } = i(), f = Object.assign(Object.assign({}, D(u, { table: t })), n), p = (g || r) && r !== false;
2528  return a.jsx(Ni, Object.assign({}, f, { className: B(Mn.root, f == null ? void 0 : f.className, p && Mn.sticky, (s == null ? void 0 : s.startsWith("grid")) && Mn.grid), ref: (d) => {
2529    c.current = d, (f == null ? void 0 : f.ref) && (f.ref.current = d);
2530  }, children: l().map((d) => a.jsx(eu, { columnVirtualizer: o, footerGroup: d, table: t }, d.id)) }));
2531};
2532var et = { root: "MRT_TableHead-module_root__j9NkO", "root-grid": "MRT_TableHead-module_root-grid__c3aGl", "root-table-row-group": "MRT_TableHead-module_root-table-row-group__d9FO4", "root-sticky": "MRT_TableHead-module_root-sticky__0kuDE", "banner-tr": "MRT_TableHead-module_banner-tr__EhT-x", "banner-th": "MRT_TableHead-module_banner-th__KwM5a", grid: "MRT_TableHead-module_grid__OJ-td" }, Fn = { root: "MRT_TableHeadRow-module_root__hUKv4", "layout-mode-grid": "MRT_TableHeadRow-module_layout-mode-grid__4ZGri", sticky: "MRT_TableHeadRow-module_sticky__Ej7Ax" }, je = { root: "MRT_TableHeadCell-module_root__6y50a", "root-grid": "MRT_TableHeadCell-module_root-grid__bAf1d", "root-virtualized": "MRT_TableHeadCell-module_root-virtualized__CWLit", "root-no-select": "MRT_TableHeadCell-module_root-no-select__BEOVU", content: "MRT_TableHeadCell-module_content__-pzSK", "content-spaced": "MRT_TableHeadCell-module_content-spaced__S85Aa", "content-center": "MRT_TableHeadCell-module_content-center__c-17L", "content-right": "MRT_TableHeadCell-module_content-right__NSRZU", "content-wrapper": "MRT_TableHeadCell-module_content-wrapper__py6aJ", "content-wrapper-hidden-overflow": "MRT_TableHeadCell-module_content-wrapper-hidden-overflow__QY40r", "content-wrapper-nowrap": "MRT_TableHeadCell-module_content-wrapper-nowrap__-4aIg", labels: "MRT_TableHeadCell-module_labels__oiMSr", "labels-right": "MRT_TableHeadCell-module_labels-right__6ZJp-", "labels-center": "MRT_TableHeadCell-module_labels-center__MM9q8", "labels-sortable": "MRT_TableHeadCell-module_labels-sortable__tyuLr", "labels-data": "MRT_TableHeadCell-module_labels-data__PvFGO", "content-actions": "MRT_TableHeadCell-module_content-actions__utxbm" }, nu = { "filter-mode-label": "MRT_TableHeadCellFilterContainer-module_filter-mode-label__8reK-" };
2533const Ul = (e, o, t, n) => {
2534  const l = ta(e.getValue(o), t, { threshold: De.MATCHES });
2535  return n(l), l.passed;
2536};
2537Ul.autoRemove = (e) => !e;
2538const Kl = (e, o, t) => {
2539  var n;
2540  return (n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim().includes(t.toString().toLowerCase().trim());
2541};
2542Kl.autoRemove = (e) => !e;
2543const Xl = (e, o, t) => {
2544  var n;
2545  return (n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim().startsWith(t.toString().toLowerCase().trim());
2546};
2547Xl.autoRemove = (e) => !e;
2548const Zl = (e, o, t) => {
2549  var n;
2550  return (n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim().endsWith(t.toString().toLowerCase().trim());
2551};
2552Zl.autoRemove = (e) => !e;
2553const tn = (e, o, t) => {
2554  var n;
2555  return ((n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim()) === (t == null ? void 0 : t.toString().toLowerCase().trim());
2556};
2557tn.autoRemove = (e) => !e;
2558const Jl = (e, o, t) => {
2559  var n;
2560  return ((n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim()) !== t.toString().toLowerCase().trim();
2561};
2562Jl.autoRemove = (e) => !e;
2563const nn = (e, o, t) => {
2564  var n;
2565  return !isNaN(+t) && !isNaN(+e.getValue(o)) ? +e.getValue(o) > +t : ((n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim()) > (t == null ? void 0 : t.toString().toLowerCase().trim());
2566};
2567nn.autoRemove = (e) => !e;
2568const po = (e, o, t) => tn(e, o, t) || nn(e, o, t);
2569po.autoRemove = (e) => !e;
2570const on = (e, o, t) => {
2571  var n;
2572  return !isNaN(+t) && !isNaN(+e.getValue(o)) ? +e.getValue(o) < +t : ((n = e.getValue(o)) === null || n === void 0 ? void 0 : n.toString().toLowerCase().trim()) < (t == null ? void 0 : t.toString().toLowerCase().trim());
2573};
2574on.autoRemove = (e) => !e;
2575const fo = (e, o, t) => tn(e, o, t) || on(e, o, t);
2576fo.autoRemove = (e) => !e;
2577const Yl = (e, o, t) => (["", void 0].includes(t[0]) || nn(e, o, t[0])) && (!isNaN(+t[0]) && !isNaN(+t[1]) && +t[0] > +t[1] || ["", void 0].includes(t[1]) || on(e, o, t[1]));
2578Yl.autoRemove = (e) => !e;
2579const Ql = (e, o, t) => (["", void 0].includes(t[0]) || po(e, o, t[0])) && (!isNaN(+t[0]) && !isNaN(+t[1]) && +t[0] > +t[1] || ["", void 0].includes(t[1]) || fo(e, o, t[1]));
2580Ql.autoRemove = (e) => !e;
2581const ei = (e, o, t) => {
2582  var n;
2583  return !(!((n = e.getValue(o)) === null || n === void 0) && n.toString().trim());
2584};
2585ei.autoRemove = (e) => !e;
2586const ti = (e, o, t) => {
2587  var n;
2588  return !!(!((n = e.getValue(o)) === null || n === void 0) && n.toString().trim());
2589};
2590ti.autoRemove = (e) => !e;
2591const ou = Object.assign(Object.assign({}, Ke), { between: Yl, betweenInclusive: Ql, contains: Kl, empty: ei, endsWith: Zl, equals: tn, fuzzy: Ul, greaterThan: nn, greaterThanOrEqualTo: po, lessThan: on, lessThanOrEqualTo: fo, notEmpty: ti, notEquals: Jl, startsWith: Xl });
2592function mo(e, o) {
2593  var t;
2594  if (!o) return "";
2595  const n = `filter${o[0].toUpperCase()}${o.slice(1)}`;
2596  return (t = e[n]) !== null && t !== void 0 ? t : "";
2597}
2598var lu = { root: "MRT_FilterCheckBox-module_root__59h9r" };
2599const iu = (e) => {
2600  var o, t, n, { column: l, table: i } = e, r = U(e, ["column", "table"]);
2601  const { getState: s, options: { localization: u, mantineFilterCheckboxProps: c } } = i, { density: g } = s(), { columnDef: f } = l, p = { column: l, table: i }, d = Object.assign(Object.assign(Object.assign({}, D(c, p)), D(f.mantineFilterCheckboxProps, p)), r), m = (o = u.filterByColumn) === null || o === void 0 ? void 0 : o.replace("{column}", f.header), h = l.getFilterValue();
2602  return a.jsx(he, { label: (t = d == null ? void 0 : d.title) !== null && t !== void 0 ? t : m, openDelay: 1e3, withinPortal: true, children: a.jsx(Yo, Object.assign({ checked: h === "true", className: B("mrt-filter-checkbox", lu.root), indeterminate: h === void 0, label: (n = d.title) !== null && n !== void 0 ? n : m, size: g === "xs" ? "sm" : "md" }, d, { onChange: (v) => {
2603    var b;
2604    l.setFilterValue(l.getFilterValue() === void 0 ? "true" : l.getFilterValue() === "true" ? "false" : void 0), (b = d == null ? void 0 : d.onChange) === null || b === void 0 || b.call(d, v);
2605  }, onClick: (v) => {
2606    var b;
2607    v.stopPropagation(), (b = d == null ? void 0 : d.onClick) === null || b === void 0 || b.call(d, v);
2608  }, title: void 0 })) });
2609};
2610var ru = { root: "MRT_FilterRangeFields-module_root__KfCcg" }, xt = { root: "MRT_FilterTextInput-module_root__Ss8Ql", "date-filter": "MRT_FilterTextInput-module_date-filter__jOBLB", "range-filter": "MRT_FilterTextInput-module_range-filter__JQHAL", "not-filter-chip": "MRT_FilterTextInput-module_not-filter-chip__u8b1y", "filter-chip-badge": "MRT_FilterTextInput-module_filter-chip-badge__Sel2k" };
2611const Nn = (e) => {
2612  var o, t, n, l, i, r, s, u, { header: c, rangeFilterIndex: g, table: f } = e, p = U(e, ["header", "rangeFilterIndex", "table"]);
2613  const { options: { columnFilterDisplayMode: d, columnFilterModeOptions: m, icons: { IconX: h }, localization: v, mantineFilterAutocompleteProps: b, mantineFilterDateInputProps: C, mantineFilterMultiSelectProps: _ = { clearable: true }, mantineFilterSelectProps: M, mantineFilterTextInputProps: w, manualFiltering: y }, refs: { filterInputRefs: S }, setColumnFilterFns: R } = f, { column: P } = c, { columnDef: F } = P, O = { column: P, rangeFilterIndex: g, table: f }, N = Object.assign(Object.assign(Object.assign({}, D(w, O)), D(F.mantineFilterTextInputProps, O)), p), H = Object.assign(Object.assign({}, D(M, O)), D(F.mantineFilterSelectProps, O)), A = Object.assign(Object.assign({}, D(_, O)), D(F.mantineFilterMultiSelectProps, O)), $ = Object.assign(Object.assign({}, D(C, O)), D(F.mantineFilterDateInputProps, O)), T = Object.assign(Object.assign({}, D(b, O)), D(F.mantineFilterAutocompleteProps, O)), j = F.filterVariant === "range" || F.filterVariant === "date-range" || g !== void 0, V = F.filterVariant === "select", K = F.filterVariant === "multi-select", X = F.filterVariant === "date" || F.filterVariant === "date-range", ee = F.filterVariant === "autocomplete", re = (o = F == null ? void 0 : F.columnFilterModeOptions) !== null && o !== void 0 ? o : m, ge = F._filterFn, Y = ["empty", "notEmpty"].includes(ge) ? mo(v, ge) : "", ie = j ? g === 0 ? v.min : g === 1 ? v.max : "" : (t = N == null ? void 0 : N.placeholder) !== null && t !== void 0 ? t : (n = v.filterByColumn) === null || n === void 0 ? void 0 : n.replace("{column}", String(F.header)), G = P.getFacetedUniqueValues(), k = x.useMemo(() => {
2614    var E, se, Re;
2615    return ((Re = (se = (E = T == null ? void 0 : T.data) !== null && E !== void 0 ? E : H == null ? void 0 : H.data) !== null && se !== void 0 ? se : A == null ? void 0 : A.data) !== null && Re !== void 0 ? Re : (ee || V || K) && G ? Array.from(G.keys()).filter((be) => be !== null).sort((be, Ae) => be.localeCompare(Ae)) : []).filter((be) => be != null);
2616  }, [T == null ? void 0 : T.data, G, ee, K, V, A == null ? void 0 : A.data, H == null ? void 0 : H.data]), q = x.useRef(false), [I, Q] = x.useState(() => {
2617    var E, se;
2618    return K ? P.getFilterValue() || [] : j ? ((E = P.getFilterValue()) === null || E === void 0 ? void 0 : E[g]) || "" : (se = P.getFilterValue()) !== null && se !== void 0 ? se : "";
2619  }), [ae] = sl(I, y ? 400 : 200);
2620  x.useEffect(() => {
2621    q.current && (j ? P.setFilterValue((E) => {
2622      const se = Array.isArray(E) ? E : ["", ""];
2623      return se[g] = ae, se;
2624    }) : P.setFilterValue(ae != null ? ae : void 0));
2625  }, [ae]), x.useEffect(() => {
2626    if (!q.current) {
2627      q.current = true;
2628      return;
2629    }
2630    const E = P.getFilterValue();
2631    E === void 0 ? le() : Q(j && g !== void 0 ? (E != null ? E : ["", ""])[g] : E != null ? E : "");
2632  }, [P.getFilterValue()]);
2633  const le = () => {
2634    K ? (Q([]), P.setFilterValue([])) : j ? (Q(""), P.setFilterValue((E) => {
2635      const se = Array.isArray(E) ? E : ["", ""];
2636      return se[g] = void 0, se;
2637    })) : V ? (Q(null), P.setFilterValue(null)) : (Q(""), P.setFilterValue(void 0));
2638  }, pe = () => {
2639    K ? (Q([]), P.setFilterValue([])) : (Q(""), P.setFilterValue(void 0)), R((E) => {
2640      var se;
2641      return Object.assign(Object.assign({}, E), { [c.id]: (se = re == null ? void 0 : re[0]) !== null && se !== void 0 ? se : "fuzzy" });
2642    });
2643  }, xe = { "aria-label": ie, className: B("mrt-filter-text-input", xt.root, X ? xt["date-filter"] : j ? xt["range-filter"] : !Y && xt["not-filter-chip"]), disabled: !!Y, onChange: Q, onClick: (E) => E.stopPropagation(), placeholder: ie, style: Object.assign({}, K ? A == null ? void 0 : A.style : V ? H == null ? void 0 : H.style : X ? $ == null ? void 0 : $.style : N == null ? void 0 : N.style), title: ie, value: K && !Array.isArray(I) ? [] : I, variant: "unstyled" }, { className: te } = xe, ne = U(xe, ["className"]), ce = I ? a.jsx(fe, { "aria-label": v.clearFilter, color: "var(--mantine-color-gray-7)", onClick: le, size: "sm", title: (l = v.clearFilter) !== null && l !== void 0 ? l : "", variant: "transparent", children: a.jsx(h, {}) }) : null;
2644  return F.Filter ? a.jsx(a.Fragment, { children: (i = F.Filter) === null || i === void 0 ? void 0 : i.call(F, { column: P, header: c, rangeFilterIndex: g, table: f }) }) : Y ? a.jsx(me, { style: ne.style, children: a.jsx(ol, { className: xt["filter-chip-badge"], onClick: pe, rightSection: ce, size: "lg", 
2644children: Y }) }) : K ? a.jsx(Yt, Object.assign({}, ne, { searchable: true }, A, { className: B(te, A.className), data: k, onChange: (E) => Q(E), ref: (E) => {
2645    E && (S.current[`${P.id}-${g != null ? g : 0}`] = E, A.ref && (A.ref.current = E));
2646  }, rightSection: !((r = I == null ? void 0 : I.toString()) === null || r === void 0) && r.length && (A == null ? void 0 : A.clearable) ? ce : void 0, style: ne.style })) : V ? a.jsx(qn, Object.assign({}, ne, { clearable: true, searchable: true }, H, { className: B(te, H.className), clearButtonProps: { size: "md" }, data: k, ref: (E) => {
2647    E && (S.current[`${P.id}-${g != null ? g : 0}`] = E, H.ref && (H.ref.current = E));
2648  }, style: ne.style })) : X ? a.jsx(Ji, Object.assign({}, ne, { allowDeselect: true, clearable: true, popoverProps: { withinPortal: d !== "popover" } }, $, { className: B(te, $.className), onChange: (E) => ne.onChange(E === null ? "" : E), ref: (E) => {
2649    E && (S.current[`${P.id}-${g != null ? g : 0}`] = E, $.ref && ($.ref.current = E));
2650  }, style: ne.style })) : ee ? a.jsx(Zn, Object.assign({}, ne, { onChange: (E) => Q(E), rightSection: !((s = I == null ? void 0 : I.toString()) === null || s === void 0) && s.length ? ce : void 0 }, T, { className: B(te, T.className), data: k, ref: (E) => {
2651    E && (S.current[`${P.id}-${g != null ? g : 0}`] = E, T.ref && (T.ref.current = E));
2652  }, style: ne.style })) : a.jsx(Un, Object.assign({}, ne, { onChange: (E) => Q(E.target.value), rightSection: !((u = I == null ? void 0 : I.toString()) === null || u === void 0) && u.length ? ce : void 0 }, N, { className: B(te, N.className), mt: 0, ref: (E) => {
2653    E && (S.current[`${P.id}-${g != null ? g : 0}`] = E, N.ref && (N.ref.current = E));
2654  }, style: ne.style }));
2655}, su = (e) => {
2656  var { header: o, table: t } = e, n = U(e, ["header", "table"]);
2657  return a.jsxs(me, Object.assign({}, n, { className: B("mrt-filter-range-fields", ru.root, n.className), children: [a.jsx(Nn, { header: o, rangeFilterIndex: 0, table: t }), a.jsx(Nn, { header: o, rangeFilterIndex: 1, table: t })] }));
2658};
2659var au = { root: "MRT_FilterRangeSlider-module_root__uwYEk" };
2660const uu = (e) => {
2661  var o, { header: t, table: n } = e, l = U(e, ["header", "table"]);
2662  const { options: { mantineFilterRangeSliderProps: i }, refs: { filterInputRefs: r } } = n, { column: s } = t, { columnDef: u } = s, c = { column: s, table: n }, g = Object.assign(Object.assign(Object.assign({}, D(i, c)), D(u.mantineFilterRangeSliderProps, c)), l);
2663  let [f, p] = g.min !== void 0 && g.max !== void 0 ? [g.min, g.max] : (o = s.getFacetedMinMaxValues()) !== null && o !== void 0 ? o : [0, 1];
2664  Array.isArray(f) && (f = f[0]), Array.isArray(p) && (p = p[0]), f === null && (f = 0), p === null && (p = 1);
2665  const [d, m] = x.useState([f, p]), h = s.getFilterValue(), v = x.useRef(false);
2666  return x.useEffect(() => {
2667    v.current && (h === void 0 ? m([f, p]) : Array.isArray(h) && m(h)), v.current = true;
2668  }, [h, f, p]), a.jsx(lo, Object.assign({ className: B("mrt-filter-range-slider", au.root), max: p, min: f, onChange: (b) => {
2669    m(b);
2670  }, onChangeEnd: (b) => {
2671    Array.isArray(b) && (b[0] <= f && b[1] >= p ? s.setFilterValue(void 0) : s.setFilterValue(b));
2672  }, value: d }, g, { ref: (b) => {
2673    b && (r.current[`${s.id}-0`] = b, (g == null ? void 0 : g.ref) && (g.ref = b));
2674  } }));
2675};
2676var du = { symbol: "MRT_FilterOptionMenu-module_symbol__a1Bsy" };
2677const cu = (e) => [{ divider: false, label: e.filterFuzzy, option: "fuzzy", symbol: "\u2248" }, { divider: false, label: e.filterContains, option: "contains", symbol: "*" }, { divider: false, label: e.filterStartsWith, option: "startsWith", symbol: "a" }, { divider: true, label: e.filterEndsWith, option: "endsWith", symbol: "z" }, { divider: false, label: e.filterEquals, option: "equals", symbol: "=" }, { divider: true, label: e.filterNotEquals, option: "notEquals", symbol: "\u2260" }, { divider: false, label: e.filterBetween, option: "between", symbol: "\u21FF" }, { divider: true, label: e.filterBetweenInclusive, option: "betweenInclusive", symbol: "\u2B0C" }, { divider: false, label: e.filterGreaterThan, option: "greaterThan", symbol: ">" }, { divider: false, label: e.filterGreaterThanOrEqualTo, option: "greaterThanOrEqualTo", symbol: "\u2265" }, { divider: false, label: e.filterLessThan, option: "lessThan", symbol: "<" }, { divider: true, label: e.filterLessThanOrEqualTo, option: "lessThanOrEqualTo", symbol: "\u2264" }, { divider: false, label: e.filterEmpty, option: "empty", symbol: "\u2205" }
2677, { divider: false, label: e.filterNotEmpty, option: "notEmpty", symbol: "!\u2205" }], Ht = ["between", "betweenInclusive", "inNumberRange"], jn = ["empty", "notEmpty"], gu = ["arrIncludesSome", "arrIncludesAll", "arrIncludes"], zo = ["range-slider", "date-range", "range"], ni = ({ header: e, onSelect: o, table: t }) => {
2678  var n, l, i, r;
2679  const { getState: s, options: { columnFilterModeOptions: u, globalFilterModeOptions: c, localization: g, renderColumnFilterModeMenuItems: f, renderGlobalFilterModeMenuItems: p }, setColumnFilterFns: d, setGlobalFilterFn: m } = t, { globalFilterFn: h } = s(), { column: v } = e != null ? e : {}, { columnDef: b } = v != null ? v : {}, C = v == null ? void 0 : v.getFilterValue();
2680  let _ = (n = b == null ? void 0 : b.columnFilterModeOptions) !== null && n !== void 0 ? n : u;
2681  zo.includes(b == null ? void 0 : b.filterVariant) && (_ = [...Ht, ..._ != null ? _ : []].filter((S) => Ht.includes(S)));
2682  const M = x.useMemo(() => cu(g).filter((S) => b ? _ === void 0 || (_ == null ? void 0 : _.includes(S.option)) : (!c || c.includes(S.option)) && ["contains", "fuzzy", "startsWith"].includes(S.option)), []), w = (S) => {
2683    var R;
2684    const P = (R = b == null ? void 0 : b._filterFn) !== null && R !== void 0 ? R : "";
2685    !e || !v ? m(S) : S !== P && (d((F) => Object.assign(Object.assign({}, F), { [e.id]: S }
2685)), jn.includes(S) ? C !== " " && !jn.includes(P) ? v.setFilterValue(" ") : C && v.setFilterValue(C) : (b == null ? void 0 : b.filterVariant) === "multi-select" || gu.includes(S) ? C instanceof String || (C == null ? void 0 : C.length) ? v.setFilterValue([]) : C && v.setFilterValue(C) : zo.includes(b == null ? void 0 : b.filterVariant) || Ht.includes(S) ? !Array.isArray(C) || !(C == null ? void 0 : C.every((F) => F === "")) && !Ht.includes(P) ? v.setFilterValue(["", ""]) : v.setFilterValue(C) : Array.isArray(C) ? v.setFilterValue("") : C === " " && jn.includes(P) ? v.setFilterValue(void 0) : v.setFilterValue(C)), o == null ? void 0 : o();
2686  }, y = e && b ? b._filterFn : h;
2687  return a.jsx(ue.Dropdown, { children: (r = e && v && b ? (i = (l = b.renderColumnFilterModeMenuItems) === null || l === void 0 ? void 0 : l.call(b, { column: v, internalFilterOptions: M, onSelectFilterMode: w, table: t })) !== null && i !== void 0 ? i : f == null ? void 0 : f({ column: v, internalFilterOptions: M, onSelectFilterMode: w, table: t }) : p == null ? void 0 : p({ internalFilterOptions: M, onSelectFilterMode: w, table: t })) !== null && r !== void 0 ? r : M.map(({ divider: S, label: R, option: P, symbol: F }, O) => a.jsxs(x.Fragment, { children: [a.jsx(ue.Item, { color: P === y ? "blue" : void 0, leftSection: a.jsx("span", { className: du.symbol, children: F }), onClick: () => w(P), value: P, children: R }), S && a.jsx(ue.Divider, {})] }, O)) });
2688}, oi = (e) => {
2689  var o, t, { header: n, table: l } = e, i = U(e, ["header", "table"]);
2690  const { getState: r, options: { columnFilterDisplayMode: s, columnFilterModeOptions: u, enableColumnFilterModes: c, icons: { IconFilterCog: g }, localization: f }, refs: { filterInputRefs: p } } = l, { showColumnFilters: d } = r(), { column: m } = n, { columnDef: h } = m, v = h._filterFn, b = (o = h == null ? void 0 : h.columnFilterModeOptions) !== null && o !== void 0 ? o : u, C = c && h.enableColumnFilterModes !== false && (b === void 0 || !!(b == null ? void 0 : b.length));
2691  return a.jsx(It, { in: d || s === "popover", children: a.jsxs(Te, Object.assign({ direction: "column" }, i, { children: [a.jsxs(Te, { align: "flex-end", children: [h.filterVariant === "checkbox" ? a.jsx(iu, { column: m, table: l }) : h.filterVariant === "range-slider" ? a.jsx(uu, { header: n, table: l }) : ["date-range", "range"].includes((t = h.filterVariant) !== null && t !== void 0 ? t : "") || ["between", "betweenInclusive", "inNumberRange"].includes(h._filterFn) ? a.jsx(su, { header: n, table: l }) : a.jsx(Nn, { header: n, table: l }), C && a.jsxs(ue, { withinPortal: s !== "popover", children: [a.jsx(he, { label: f.changeFilterMode, position: "bottom-start", withinPortal: true, children: a.jsx(ue.Target, { children: a.jsx(fe, { "aria-label": f.changeFilterMode, color: "gray", size: "md", variant: "subtle", children: a.jsx(g, {}) }) }) }), a.jsx(ni, { header: n, onSelect: () => setTimeout(() => {
2692    var _;
2693    return (_ = p.current[`${m.id}-0`]) === null || _ === void 0 ? void 0 : _.focus();
2694  }, 100), table: l })] })] }), C ? a.jsx(mt, { c: "dimmed", className: nu["filter-mode-label"], component: "label", children: f.filterMode.replace("{filterType}", mo(f, v)) }) : null] })) });
2695};
2696var pu = { root: "MRT_TableHeadCellFilterLabel-module_root__Rur2R" };
2697const fu = (e) => {
2698  var o, t, n, { header: l, table: i } = e, r = U(e, ["header", "table"]);
2699  const { options: { columnFilterDisplayMode: s, icons: { IconFilter: u }, localization: c }, refs: { filterInputRefs: g }, setShowColumnFilters: f } = i, { column: p } = l, { columnDef: d } = p, m = p.getFilterValue(), [h, v] = x.useState(false), b = Array.isArray(m) && m.some(Boolean) || !!m && !Array.isArray(m), C = d.filterVariant === "range" || d.filterVariant === "date-range" || ["between", "betweenInclusive", "inNumberRange"].includes(d._filterFn), _ = d._filterFn, M = d.filterTooltipValueFn || ((y) => y), w = s === "popover" && !b ? (o = c.filterByColumn) === null || o === void 0 ? void 0 : o.replace("{column}", String(d.header)) : c.filteringByColumn.replace("{column}", String(d.header)).replace("{filterType}", mo(c, _)).replace("{filterValue}", `"${Array.isArray(p.getFilterValue()) ? p.getFilterValue().map((y) => M(y)).join(`" ${C ? c.and : c.or} "`) : M(p.getFilterValue())}"`).replace('" "', "");
2700  return a.jsx(a.Fragment, { children: a.jsxs(gn, { keepMounted: d.filterVariant === "range-slider", onChange: v, onClose: () => v(false), opened: h, position: "top", shadow: "xl", width: 360, withinPortal: true, children: [a.jsx(Uo, { mounted: s === "popover" || !!p.getFilterValue() && !C || C && (!!(!((t = p.getFilterValue()) === null || t === void 0) && t[0]) || !!(!((n = p.getFilterValue()) === null || n === void 0) && n[1])), transition: "scale", children: () => a.jsx(gn.Target, { children: a.jsx(he, { disabled: h, label: w, multiline: true, w: w.length > 40 ? 300 : void 0, withinPortal: true, children: a.jsx(fe, Object.assign({ className: B("mrt-table-head-cell-filter-label-icon", pu.root), size: 18 }, Wt("active", b), { onClick: (y) => {
2701    y.stopPropagation(), s === "popover" ? v((S) => !S) : f(true), setTimeout(() => {
2702      const S = g.current[`${p.id}-0`];
2703      S == null ? void 0 : S.focus(), S == null ? void 0 : S.select();
2704    }, 100);
2705  } }, r, { children: a.jsx(u, { size: "100%" }) })) }) }) }), s === "popover" && a.jsx(gn.Dropdown, { onClick: (y) => y.stopPropagation(), onKeyDown: (y) => y.key === "Enter" && v(false), onMouseDown: (y) => y.stopPropagation(), children: a.jsx(oi, { header: l, table: i }) })] }) });
2706}, mu = (e) => {
2707  var { column: o, table: t, tableHeadCellRef: n } = e, l = U(e, ["column", "table", "tableHeadCellRef"]);
2708  const { getState: i, options: { enableColumnOrdering: r, mantineColumnDragHandleProps: s }, setColumnOrder: u, setDraggingColumn: c, setHoveredColumn: g } = t, { columnDef: f } = o, { columnOrder: p, draggingColumn: d, hoveredColumn: m } = i(), h = { column: o, table: t }, v = Object.assign(Object.assign(Object.assign({}, D(s, h)), D(f.mantineColumnDragHandleProps, h)), l), b = (_) => {
2709    var M;
2710    (M = v == null ? void 0 : v.onDragStart) === null || M === void 0 || M.call(v, _), c(o), _.dataTransfer.setDragImage(n.current, 0, 0);
2711  }, C = (_) => {
2712    var M;
2713    (M = v == null ? void 0 : v.onDragEnd) === null || M === void 0 || M.call(v, _), (m == null ? void 0 : m.i
2713d) === "drop-zone" ? o.toggleGrouping() : r && m && (m == null ? void 0 : m.id) !== (d == null ? void 0 : d.id) && u(Hl(o, m, p)), c(null), g(null);
2714  };
2715  return a.jsx(ao, { actionIconProps: v, onDragEnd: C, onDragStart: b, table: t });
2716};
2717var Pn = { root: "MRT_TableHeadCellResizeHandle-module_root__paufe", "root-ltr": "MRT_TableHeadCellResizeHandle-module_root-ltr__652AZ", "root-rtl": "MRT_TableHeadCellResizeHandle-module_root-rtl__5VlSo", "root-hide": "MRT_TableHeadCellResizeHandle-module_root-hide__-ILlD" };
2718const hu = (e) => {
2719  var o, { header: t, table: n } = e, l = U(e, ["header", "table"]);
2720  const { getState: i, options: { columnResizeDirection: r, columnResizeMode: s }, setColumnSizingInfo: u } = n, { density: c } = i(), { column: g } = t, f = t.getResizeHandler(), p = g.getIsResizing() && s === "onEnd" ? `translateX(${(r === "rtl" ? -1 : 1) * ((o = i().columnSizingInfo.deltaOffset) !== null && o !== void 0 ? o : 0)}px)` : void 0;
2721  return a.jsx(me, Object.assign({ onDoubleClick: () => {
2722    u((d) => Object.assign(Object.assign({}, d), { isResizingColumn: false })), g.resetSize();
2723  }, onMouseDown: f, onTouchStart: f, role: "separator" }, l, { __vars: Object.assign({ "--mrt-transform": p }, l.__vars), className: B("mrt-table-head-cell-resize-handle", Pn.root, Pn[`root-${r}`], !t.subHeaders.length && s === "onChange" && Pn["root-hide"], c, l.className) }));
2724};
2725var Ao = { "sort-icon": "MRT_TableHeadCellSortLabel-module_sort-icon__zs1xA", "multi-sort-indicator": "MRT_TableHeadCellSortLabel-module_multi-sort-indicator__MGBj2" };
2726const vu = (e) => {
2727  var { header: o, table: t } = e, n = U(e, ["header", "table"]);
2728  const { getState: l, options: { icons: { IconArrowsSort: i, IconSortAscending: r, IconSortDescending: s }, localization: u } } = t, c = o.column, { columnDef: g } = c, { sorting: f } = l(), p = c.getIsSorted(), d = c.getSortIndex(), m = p ? p === "desc" ? u.sortedByColumnDesc.replace("{column}", g.header) : u.sortedByColumnAsc.replace("{column}", g.header) : c.getNextSortingOrder() === "desc" ? u.sortByColumnDesc.replace("{column}", g.header) : u.sortByColumnAsc.replace("{column}", g.header), h = a.jsx(fe, Object.assign({ "aria-label": m }, Wt("sorted", p), n, { className: B("mrt-table-head-sort-button", Ao["sort-icon"], n.className), children: p === "desc" ? a.jsx(s, { size: "100%" }) : p === "asc" ? a.jsx(r, { size: "100%" }) : a.jsx(i, { size: "100%" }) }));
2729  return a.jsx(he, { label: m, openDelay: 1e3, withinPortal: true, children: f.length < 2 || d === -1 ? h : a.jsx(Jn, { className: B("mrt-table-head-multi-sort-indicator", Ao["multi-sort-indicator"]), inline: true, label: d + 1, offset: 4, children: h }) });
2730};
2731var Vo = { left: "MRT_ColumnActionMenu-module_left__cfNmY", right: "MRT_ColumnActionMenu-module_right__-nK56" };
2732const bu = (e) => {
2733  var o, t, n, l, i, r, s, u, c, g, { header: f, table: p } = e, d = U(e, ["header", "table"]);
2734  const { getState: m, options: { columnFilterDisplayMode: h, enableColumnFilters: v, enableColumnPinning: b, enableColumnResizing: C, enableGrouping: _, enableHiding: M, enableSorting: w, enableSortingRemoval: y, icons: { IconArrowAutofitContent: S, IconBoxMultiple: R, IconClearAll: P, IconColumns: F, IconDotsVertical: O, IconEyeOff: N, IconFilter: H, IconFilterOff: A, IconPinned: $, IconPinnedOff: T, IconSortAscending: j, IconSortDescending: V }, localization: K, mantineColumnActionsButtonProps: X, renderColumnActionsMenuItems: ee }, refs: { filterInputRefs: re }, setColumnOrder: ge, setColumnSizingInfo: Y, setShowColumnFilters: ie, toggleAllColumnsVisible: G } = p, { column: k } = f, { columnDef: q } = k, { columnSizing: I, columnVisibility: Q } = m(), ae = { column: k, table: p }, le = Object.assign(Object.assign({}, D(X, ae)), D(q.mantineColumnActionsButtonProps, ae)), pe = () => {
2735    k.clearSorting();
2736  }, xe = () => {
2737    k.toggleSorting(false);
2738  }, te = () => {
2739    k.toggleSorting(true);
2740  }, ne = () => {
2741    Y((Se) => Object.assign(Object.assign({}, Se), { isResizingColumn: false })), k.resetSize();
2742  }, ce = () => {
2743    k.toggleVisibility(false);
2744  }, E = (Se) => {
2745    k.pin(Se);
2746  }, se = () => {
2747    k.toggleGrouping(), ge((Se) => ["mrt-row-expand", ...Se]);
2748  }, Re = () => {
2749    k.setFilterValue("");
2750  }, be = () => {
2751    ie(true), setTimeout(() => {
2752      var Se;
2753      return (Se = re.current[`${k.id}-0`]) === null || Se === void 0 ? void 0 : Se.focus();
2754    }, 100);
2755  }, Ae = () => {
2756    G(true);
2757  }, Pe = a.jsxs(a.Fragment, { children: [w && k.getCanSort() && a.jsxs(a.Fragment, { children: [y !== false && a.jsx(ue.Item, { disabled: !k.getIsSorted(), leftSection: a.jsx(P, {}
2757), onClick: pe, children: K.clearSort }), a.jsx(ue.Item, { disabled: k.getIsSorted() === "asc", leftSection: a.jsx(j, {}), onClick: xe, children: (o = K.sortByColumnAsc) === null || o === void 0 ? void 0 : o.replace("{column}", String(q.header)) }), a.jsx(ue.Item, { disabled: k.getIsSorted() === "desc", leftSection: a.jsx(V, {}), onClick: te, children: (t = K.sortByColumnDesc) === null || t === void 0 ? void 0 : t.replace("{column}", String(q.header)) }), (v || _ || M) && a.jsx(ue.Divider, {}, 3)] }), v && h !== "popover" && k.getCanFilter() && a.jsxs(a.Fragment, { children: [a.jsx(ue.Item, { disabled: !k.getFilterValue(), leftSection: a.jsx(A, {}), onClick: Re, children: K.clearFilter }), a.jsx(ue.Item, { leftSection: a.jsx(H, {}), onClick: be, children: (n = K.filterByColumn) === null || n === void 0 ? void 0 : n.replace("{column}", String(q.header)) }), (_ || M) && a.jsx(ue.Divider, {}, 2)] }), _ && k.getCanGroup() && a.jsxs(a.Fragment, { children: [a.jsx(ue.Item, { leftSection: a.jsx(R, {}), onClick: se, children: (l = K[k.getIsGrouped() ? "ungroupByColumn" : "groupByColumn"]) === null || l === void 0 ? void 0 : l.replace("{column}", String(q.header)) }), b && a.jsx(ue.Divider, {})] }), b && k.getCanPin() && a.jsxs(a.Fragment, { children: [a.jsx(ue.Item, { disabled: k.getIsPinned() === "left" || !k.getCanPin(), leftSection: a.jsx($, { className: Vo.left }), onClick: () => E("left"), children: K.pinToLeft }), a.jsx(ue.Item, { disabled: k.getIsPinned() === "right" || !k.getCanPin(), leftSection: a.jsx($, { className: Vo.right }), onClick: () => E("right"), children: K.pinToRight }), a.jsx(ue.Item, { disabled: !k.getIsPinned(), leftSection: a.jsx(T, {}), onClick: () => E(false), children: K.unpin }), M && a.jsx(ue.Divider, {})] }), C && k.getCanResize() && a.jsx(ue.Item, { disabled: !I[k.id], leftSection: a.jsx(S, {}), onClick: ne, children: K.resetColumnSize }, 0), M && a.jsxs(a.Fragment, { children: [a.jsx(ue.Item, { disabled: !k.getCanHide(), leftSection: a.jsx(N, {}), onClick: ce, children: (i = K.hideColumn) === null || i === void 0 ? void 0 : i.replace("{column}", String(q.header)) }, 0), a.jsx(ue.Item, { disabled: !Object.values(Q).filter((Se) => !Se).length, leftSection: a.jsx(F, {}), onClick: Ae, children: (r = K.showAllColumns) === null || r === void 0 ? void 0 : r.replace("{column}", String(q.header)) }, 1)] })] });
2758  return a.jsxs(ue, Object.assign({ closeOnItemClick: true, position: "bottom-start", withinPortal: true }, d, { children: [a.jsx(he, { label: (s = le == null ? void 0 : le.title) !== null && s !== void 0 ? s : K.columnActions, openDelay: 1e3, withinPortal: true, children: a.jsx(ue.Target, { children: a.jsx(fe, Object.assign({ "aria-label": K.columnActions, color: "gray", size: "sm", variant: "subtle" }, le, { children: a.jsx(O, { size: "100%" }) })) }) }), a.jsx(ue.Dropdown, { children: (g = (c = (u = q.renderColumnActionsMenuItems) === null || u === void 0 ? void 0 : u.call(q, { column: k, internalColumnMenuItems: Pe, table: p })) !== null && c !== void 0 ? c : ee == null ? void 0 : ee({ column: k, internalColumnMenuItems: Pe, table: p })) !== null && g !== void 0 ? g : Pe })] }));
2759}, Cu = (e) => {
2760  var o, t, n, l, i, r, { columnVirtualizer: s, header: u, renderedHeaderIndex: c = 0, table: g } = e, f = U(e, ["columnVirtualizer", "header", "renderedHeaderIndex", "table"]);
2761  const p = st(), { getState: d, options: { columnFilterDisplayMode: m, columnResizeDirection: h, columnResizeMode: v, enableColumnActions: b, enableColumnDragging: C, enableColumnOrdering: _, enableColumnPinning: M, enableGrouping: w, enableHeaderActionsHoverReveal: y, enableMultiSort: S, layoutMode: R, mantineTableHeadCellProps: P }, refs: { tableHeadCellRefs: F }, setHoveredColumn: O } = g, { columnSizingInfo: N, draggingColumn: H, grouping: A, hoveredColumn: $ } = d(), { column: T } = u, { columnDef: j } = T, { columnDefType: V } = j, K = { column: T, table: g }, X = Object.assign(Object.assign(Object.assign({}, D(P, K)), D(j.mantineTableHeadCellProps, K)), f), ee = { minWidth: `max(calc(var(--header-${qe(u == null ? void 0 : u.id)}-size) * 1px), ${(o = j.minSize) !== null && o !== void 0 ? o : 30}px)`, width: `calc(var(--header-${qe(u.id)}-size) * 1px)` };
2762  R === "grid" ? ee.flex = `${[0, false].includes(j.grow) ? 0 : `var(--header-${qe(u.id)}-size)`} 0 auto` : R === "grid-no-grow" && (ee.flex = `${+(j.grow || 0)} 0 auto`);
2763  const re = M && j.columnDefType !== "group" && T.getIsPinned(), ge = (H == null ? void 0 : H.id) === T.id, Y = ($ == null ? void 0 : $.id) === T.id, { hovered: ie, ref: G } = tr(), [k, q] = x.useState(false), I = (b || j.enableColumnActions) && j.enableColumnActions !== false, Q = !y || k || ie && !g.getVisibleFlatColumns().find((te) => te.getIsResizing()), ae = C !== false && j.enableColumnDragging !== false && (C || _ && j.enableColumnOrdering !== false || w && j.enableGrouping !== false && !A.includes(T.id)) && Q, le = x.useMemo(() => {
2764    let te = 0;
2765    return T.getCanSort() && te++, Q && (te += 1.75), ae && (te += 1.25), te;
2766  }, [Q, ae]), pe = (te) => {
2767    w && ($ == null ? void 0 : $.id) === "drop-zone" && O(null), _ && H && V !== "group" && O(j.enableColumnOrdering !== false ? T : null);
2768  }, xe = (j == null ? void 0 : j.Header) instanceof Function ? (t = j == null ? void 0 : j.Header) === null || t === void 0 ? void 0 : t.call(j, { column: T, header: u, table: g }) : (n = j == null ? void 0 : j.Header) !== null && n !== void 0 ? n : j.header;
2769  return a.jsxs(Kn, Object.assign({ colSpan: u.colSpan, "data-column-pinned": re || void 0, "data-dragging-column": ge || void 0, "data-first-right-pinned": re === "right" && T.getIsFirstColumn(re) || void 0, "data-hovered-column-target": Y || void 0, "data-index": c, "data-last-left-pinned": re === "left" && T.getIsLastColumn(re) || void 0, "data-resizing": v === "onChange" && (N == null ? void 0 : N.isResizingColumn) === T.id && h || void 0 }, X, { __vars: { "--mrt-table-cell-left": re === "left" ? `${T.getStart(re)}` : void 0, "--mrt-table-cell-right": re === "right" ? `${T.getAfter(re)}` : void 0 }, align: V === "group" ? "center" : p.dir === "rtl" ? "right" : "left", className: B(je.root, (R == null ? void 0 : R.startsWith("grid")) && je["root-grid"], S && T.getCanSort() && je["root-no-select"], s && je["root-virtualized"], X == null ? void 0 : X.className), onDragEnter: pe, ref: (te) => {
2770    var ne;
2771    te && (F.current[T.id] = te, G.current = te, V !== "group" && ((ne = s == null ? void 0 : s.measureElement) === null || ne === void 0 || ne.call(s, te)));
2772  }, style: (te) => Object.assign(Object.assign({}, ee), D(X == null ? void 0 : X.style, te)), children: [u.isPlaceholder ? null : (l = X.children) !== null && l !== void 0 ? l : a.jsxs(Te, { className: B("mrt-table-head-cell-content", je.content, (V === "group" || (X == null ? void 0 : X.align) === "center") && je["content-center"], (X == null ? void 0 : X.align) === "right" && je["content-right"], T.getCanResize() && je["content-spaced"]), children: [a.jsxs(Te, { __vars: { "--mrt-table-head-cell-labels-padding-left": `${le}` }, className: B("mrt-table-head-cell-labels", je.labels, T.getCanSort() && V !== "group" && je["labels-sortable"], (X == null ? void 0 : X.align) === "right" ? je["labels-right"] : (X == null ? void 0 : X.align) === "center" && je["labels-center"], V === "data" && je["labels-data"]), onClick: T.getToggleSortingHandler(), children: [a.jsx(Te, { className: B("mrt-table-head-cell-content-wrapper", je["content-wrapper"], V === "data" && je["content-wrapper-hidden-overflow"], ((r = (i = j.header) === null || i === void 0 ? void 0 : i.length) !== null && r !== void 0 ? r : 0) < 20 && je["content-wrapper-nowrap"]), children: xe }), T.getCanFilter() && (T.getIsFiltered() || Q) && a.jsx(fu, { header: u, table: g }), T.getCanSort() && (T.getIsSorted() || Q) && a.jsx(vu, { header: u, table: g })] }), V !== "group" && a.jsxs(Te, { className: B("mrt-table-head-cell-content-actions", je["content-actions"]), children: [ae && a.jsx(mu, { column: T, table: g, tableHeadCellRef: { current: F.current[T.id] } }), I && Q && a.jsx(bu, { header: u, onChange: q, opened: k, table: g })] }), T.getCanResize() && a.jsx(hu, { header: u, table: g })] }), m === "subheader" && T.getCanFilter() && a.jsx(oi, { header: u, table: g })] }));
2773}, _u = (e) => {
2774  var { columnVirtualizer: o, headerGroup: t, table: n } = e, l = U(e, ["columnVirtualizer", "headerGroup", "table"]);
2775  const { getState: i, options: { enableStickyHeader: r, layoutMode: s, mantineTableHeadRowProps: u } } = n, { isFullScreen: c } = i(), { virtualColumns: g, virtualPaddingLeft: f, virtualPaddingRight: p } = o != null ? o : {}, d = Object.assign(Object.assign({}, D(u, { headerGroup: t, table: n })), l);
2776  return a.jsxs(Ot, Object.assign({}, d, { className: B(Fn.root, (r || c) && Fn.sticky, (s == null ? void 0 : s.startsWith("grid")) && Fn["layout-mode-grid"], d == null ? void 0 : d.
2776className), children: [f ? a.jsx(me, { component: "th", display: "flex", w: f }) : null, (g != null ? g : t.headers).map((m, h) => {
2777    let v = m;
2778    return o && (h = m.index, v = t.headers[h]), a.jsx(Cu, { columnVirtualizer: o, header: v, renderedHeaderIndex: h, table: n }, v.id);
2779  }), p ? a.jsx(me, { component: "th", display: "flex", w: p }) : null] }));
2780};
2781var gt = { alert: "MRT_ToolbarAlertBanner-module_alert__PAhUK", "alert-stacked": "MRT_ToolbarAlertBanner-module_alert-stacked__HR7Nq", "alert-bottom": "MRT_ToolbarAlertBanner-module_alert-bottom__u9L-S", "alert-badge": "MRT_ToolbarAlertBanner-module_alert-badge__GwDmX", "toolbar-alert": "MRT_ToolbarAlertBanner-module_toolbar-alert__3sJGU", "head-overlay": "MRT_ToolbarAlertBanner-module_head-overlay__Hw7jK" };
2782const Gn = (e) => {
2783  var o, { renderedRowIndex: t = 0, row: n, table: l } = e, i = U(e, ["renderedRowIndex", "row", "table"]);
2784  const { getState: r, options: { enableMultiRowSelection: s, localization: u, mantineSelectAllCheckboxProps: c, mantineSelectCheckboxProps: g, selectAllMode: f, selectDisplayMode: p } } = l, { density: d, isLoading: m } = r(), h = !n, v = h ? f === "page" ? l.getIsAllPageRowsSelected() : l.getIsAllRowsSelected() : void 0, b = h ? v : qt({ row: n, table: l }), C = Object.assign(Object.assign({}, h ? D(c, { table: l }) : D(g, { row: n, table: l })), i), _ = n ? Pa({ renderedRowIndex: t, row: n, table: l }) : void 0, M = zl({ table: l }), w = Object.assign(Object.assign({ "aria-label": h ? u.toggleSelectAll : u.toggleSelectRow, checked: b, disabled: m || n && !n.getCanSelect() || (n == null ? void 0 : n.id) === "mrt-row-create", onChange: (y) => {
2785    y.stopPropagation(), h ? M(y) : _(y);
2786  }, size: d === "xs" ? "sm" : "md" }, C), { onClick: (y) => {
2787    var S;
2788    y.stopPropagation(), (S = C == null ? void 0 : C.onClick) === null || S === void 0 || S.call(C, y);
2789  }, title: void 0 });
2790  return a.jsx(he, { label: (o = C == null ? void 0 : C.title) !== null && o !== void 0 ? o : h ? u.toggleSelectAll : u.toggleSelectRow, openDelay: 1e3, withinPortal: true, children: a.jsx("span", { children: p === "switch" ? a.jsx(Zo, Object.assign({}, w)) : p === "radio" || s === false ? a.jsx(vt, Object.assign({}, w)) : a.jsx(Yo, Object.assign({ indeterminate: !b && h ? l.getIsSomeRowsSelected() : (n == null ? void 0 : n.getIsSomeSelected()) && n.getCanSelectSubRows() }, w)) }) });
2791}, ho = (e) => {
2792  var o, t, n, { stackAlertBanner: l, table: i } = e, r = U(e, ["stackAlertBanner", "table"]);
2793  const { getFilteredSelectedRowModel: s, getPrePaginationRowModel: u, getState: c, options: { enableRowSelection: g, enableSelectAll: f, icons: { IconX: p }, localization: d, mantineToolbarAlertBannerBadgeProps: m, mantineToolbarAlertBannerProps: h, manualPagination: v, positionToolbarAlertBanner: b, renderToolbarAlertBannerContent: C, rowCount: _ } } = i, { density: M, grouping: w, rowSelection: y, showAlertBanner: S } = c(), R = Object.assign(Object.assign({}, D(h, { table: i })), r), P = D(m, { table: i }), F = _ != null ? _ : u().flatRows.length, O = x.useMemo(() => v ? Object.values(y).filter(Boolean).length : s().rows.length, [y, F, v]), N = O ? a.jsxs(Te, { align: "center", gap: "sm", children: [(t = (o = d.selectedCountOfRowCountRowsSelected) === null || o === void 0 ? void 0 : o.replace("{selectedCount}", O.toString())) === null || t === void 0 ? void 0 : t.replace("{rowCount}", F.toString()), a.jsx(it, { onClick: (A) => zl({ table: i })(A, false, true), size: "compact-xs", variant: "subtle", children: d.clearSelection })] }) : null, H = w.length > 0 ? a.jsxs(Te, { children: [d.groupedBy, " ", w.map((A, $) => a.jsxs(x.Fragment, { children: [$ > 0 ? d.thenBy : "", a.jsxs(ol, Object.assign({ className: gt["alert-badge"], rightSection: a.jsx(fe, { color: "white", onClick: () => i.getColumn(A).toggleGrouping(), size: "xs", variant: "subtle", children: a.jsx(p, { style: { transform: "scale(0.8)" } }) }), variant: "filled" }, P, { children: [i.getColumn(A).columnDef.header, " "] }))] }, `${$}-${A}`))] }) : null;
2794  return a.jsx(It, { in: S || !!N || !!H, transitionDuration: l ? 200 : 0, children: a.jsx(Ai, Object.assign({ color: "blue", icon: false }, R, { className: B(gt.alert, l && !b && gt["alert-stacked"], !l && b === "bottom" && gt["alert-bottom"], R == null ? void 0 : R.className), children: (n = C == null ? void 0 : C({ groupedAlert: H, selectedAlert: N, table: i })) !== null && n !== void 0 ? n : a.jsxs(Te, { className: B(gt["toolbar-alert"], b === "head-overlay" && gt["head-overlay"], M), children: [g && f && b === "head-overlay" && a.jsx(Gn, { table: i }), a.jsxs(ll, { children: [R == null ? void 0 : R.children, N, H] })] }) })) });
2795}, wu = (e) => {
2796  var { columnVirtualizer: o, table: t } = e, n = U(e, ["columnVirtualizer", "table"]);
2797  const { getHeaderGroups: l, getSelectedRowModel: i, getState: r, options: { enableStickyHeader: s, layoutMode: u, mantineTableHeadProps: c, positionToolbarAlertBanner: g }, refs: { tableHeadRef: f } } = t, { isFullScreen: p, showAlertBanner: d } = r(), m = Object.assign(Object.assign({}, D(c, { table: t })), n), h = s || p;
2798  return a.jsx(Bi, Object.assign({}, m, { className: B(et.root, (u == null ? void 0 : u.startsWith("grid")) ? et["root-grid"] : et["root-table-row-group"], h && et["root-sticky"], m == null ? void 0 : m.className), pos: h && (u == null ? void 0 : u.startsWith("grid")) ? "sticky" : "relative", ref: (v) => {
2799    f.current = v, (m == null ? void 0 : m.ref) && (m.ref.current = v);
2800  }, children: g === "head-overlay" && (d || i().rows.length > 0) ? a.jsx(Ot, { className: B(et["banner-tr"], (u == null ? void 0 : u.startsWith("grid")) && et.grid), children: a.jsx(Kn, { className: B(et["banner-th"], (u == null ? void 0 : u.startsWith("grid")) && et.grid), colSpan: t.getVisibleLeafColumns().length, children: a.jsx(ho, { table: t }) }) }) : l().map((v) => a.jsx(_u, { columnVirtualizer: o, headerGroup: v, table: t }, v.id)) }));
2801};
2802var ko = { root: "MRT_GlobalFilterTextInput-module_root__Xmcpv", collapse: "MRT_GlobalFilterTextInput-module_collapse__v311d" };
2803const In = (e) => {
2804  var { table: o } = e, t = U(e, ["table"]);
2805  const { getState: n, options: { enableGlobalFilterModes: l, icons: { IconSearch: i, IconX: r }, localization: s, mantineSearchTextInputProps: u, manualFiltering: c, positionGlobalFilter: g }, refs: { searchInputRef: f }, setGlobalFilter: p } = o, { globalFilter: d, showGlobalFilter: m } = n(), h = Object.assign(Object.assign({}, D(u, { table: o })), t), v = x.useRef(false), [b, C] = x.useState(d != null ? d : ""), [_] = sl(b, c ? 500 : 250);
2806  x.useEffect(() => {
2807    p(_ || void 0);
2808  }, [_]);
2809  const M = () => {
2810    C(""), p(void 0);
2811  };
2812  return x.useEffect(() => {
2813    v.current && (d === void 0 ? M() : C(d)), v.current = true;
2814  }, [d]), a.jsxs(It, { className: ko.collapse, in: m, children: [l && a.jsxs(ue, { withinPortal: true, children: [a.jsx(ue.Target, { children: a.jsx(fe, { "aria-label": s.changeSearchMode, color: "gray", size: "sm", variant: "transparent", children: a.jsx(i, {}) }) }), a.jsx(ni, { onSelect: M, table: o })] }), a.jsx(Un, Object.assign({ leftSection: !l && a.jsx(i, {}), mt: 0, mx: g !== "left" ? "mx" : void 0, onChange: (w) => C(w.target.value), placeholder: s.search, rightSection: b ? a.jsx(fe, { "aria-label": s.clearSearch, color: "gray", disabled: !(b == null ? void 0 : b.length), onClick: M, size: "sm", variant: "transparent", children: a.jsx(he, { label: s.clearSearch, withinPortal: true, children: a.jsx(r, {}) }) }) : null, value: b != null ? b : "", variant: "filled" }, h, { className: B("mrt-global-filter-text-input", ko.root, h == null ? void 0 : h.className), ref: (w) => {
2815    w && (f.current = w, (h == null ? void 0 : h.ref) && (h.ref = w));
2816  } }))] });
2817}, Ru = (e, o, t = -1, n = 0, l, i) => bt(e, "mrt-row-create", Object.assign({}, ...Ut(e.options.columns).map((r) => ({ [pt(r)]: "" }))), t, n, l, i), Su = (e) => Object.assign({ Cell: ({ cell: o, row: t, table: n }) => a.jsx(Ya, { cell: o, row: t, table: n }) }, at({ header: "actions", id: "mrt-row-actions", size: 70, tableOptions: e })), xu = (e) => Object.assign({ Cell: ({ row: o, rowRef: t, table: n }) => a.jsx(Aa, { row: o, rowRef: t, table: n }
2817), grow: false }, at({ header: "move", id: "mrt-row-drag", size: 60, tableOptions: e })), yu = (e) => {
2818  var o;
2819  const { defaultColumn: t, enableExpandAll: n, groupedColumnMode: l, positionExpandColumn: i, renderDetailPanel: r, state: { grouping: s } } = e, u = i === "last" ? { align: "right" } : void 0;
2820  return Object.assign({ Cell: ({ cell: c, column: g, row: f, table: p }) => {
2821    var d, m, h;
2822    const v = { row: f, table: p }, b = (d = f.subRows) === null || d === void 0 ? void 0 : d.length;
2823    return e.groupedColumnMode === "remove" && f.groupingColumnId ? a.jsxs(Te, { align: "center", gap: "0.25rem", children: [a.jsx(Bn, Object.assign({}, v)), a.jsx(he, { label: p.getColumn(f.groupingColumnId).columnDef.header, openDelay: 1e3, position: "right", children: a.jsx("span", { children: f.groupingValue }) }), !!b && a.jsxs("span", { children: ["(", b, ")"] })] }) : a.jsxs(a.Fragment, { children: [a.jsx(Bn, Object.assign({}, v)), (h = (m = g.columnDef).GroupedCell) === null || h === void 0 ? void 0 : h.call(m, { cell: c, column: g, row: f, table: p })] });
2824  }, Header: n ? ({ table: c }) => {
2825    var g;
2826    return a.jsxs(Te, { align: "center", children: [a.jsx(Ha, { table: c }), l === "remove" && ((g = s == null ? void 0 : s.map((f) => c.getColumn(f).columnDef.header)) === null || g === void 0 ? void 0 : g.join(", "))] });
2827  } : void 0, mantineTableBodyCellProps: u, mantineTableHeadCellProps: u }, at({ header: "expand", id: "mrt-row-expand", size: l === "remove" ? (o = t == null ? void 0 : t.size) !== null && o !== void 0 ? o : 180 : r ? n ? 60 : 70 : 100, tableOptions: e }));
2828}, Mu = (e) => {
2829  const { localization: o, rowNumberDisplayMode: t } = e, { pagination: { pageIndex: n, pageSize: l } } = e.state;
2830  return Object.assign({ Cell: ({ renderedRowIndex: i = 0, row: r }) => {
2831    var s;
2832    return ((s = t === "static" ? i + l * n : r.index) !== null && s !== void 0 ? s : 0) + 1;
2833  }, grow: false, Header: () => o.rowNumber }, at({ header: "rowNumbers", id: "mrt-row-numbers", size: 50, tableOptions: e }));
2834}, Tu = (e) => Object.assign({ Cell: ({ row: o, table: t }) => a.jsx(Va, { row: o, table: t }), grow: false }, at({ header: "pin", id: "mrt-row-pin", size: 60, tableOptions: e })), Fu = (e) => {
2835  const { enableMultiRowSelection: o, enableSelectAll: t } = e;
2836  return Object.assign({ Cell: ({ renderedRowIndex: n, row: l, table: i }) => a.jsx(Gn, { renderedRowIndex: n, row: l, table: i }), grow: false, Header: t && o ? ({ table: n }) => a.jsx(Gn, { table: n }) : void 0 }, at({ header: "select", id: "mrt-row-select", size: t ? 60 : 70, tableOptions: e }));
2837}, ju = Object.assign({}, Nt), Pu = { IconArrowAutofitContent: Or, IconArrowsSort: Er, IconBaselineDensityLarge: Dr, IconBaselineDensityMedium: zr, IconBaselineDensitySmall: Ar, IconBoxMultiple: Vr, IconChevronDown: kr, IconChevronLeft: Pi, IconChevronLeftPipe: $r, IconChevronRight: ji, IconChevronRightPipe: Hr, IconChevronsDown: Br, IconCircleX: Nr, IconClearAll: Gr, IconColumns: Lr, IconDeviceFloppy: Wr, IconDots: Fi, IconDotsVertical: Ti, IconEdit: Mi, IconEyeOff: qr, IconFilter: xi, IconFilterCog: Ur, IconFilterOff: Si, IconGripHorizontal: Kr, IconMaximize: Xr, IconMinimize: Zr, IconPinned: Yr, IconPinnedOff: Jr, IconSearch: Ri, IconSearchOff: Qr, IconSortAscending: es, IconSortDescending: ts, IconX: wi }, Iu = { actions: "Actions", and: "and", cancel: "Cancel", changeFilterMode: "Change filter mode", changeSearchMode: "Change search mode", clearFilter: "Clear filter", clearSearch: "Clear search", clearSelection: "Clear selection", clearSort: "Clear sort", clickToCopy: "Click to copy", copy: "Copy", collapse: "Collapse", collapseAll: "Collapse all", columnActions: "Column Actions", copiedToClipboard: "Copied to clipboard", dropToGroupBy: "Drop to group by {column}", edit: "Edit", expand: "Expand", expandAll: "Expand all", filterArrIncludes: "Includes", filterArrIncludesAll: "Includes all", filterArrIncludesSome: "Includes", filterBetween: "Between", filterBetweenInclusive: "Between Inclusive", filterByColumn: "Filter by {column}", filterContains: "Contains", filterEmpty: "Empty", filterEndsWith: "Ends With", filterEquals: "Equals", filterEqualsString: "Equals", filterFuzzy: "Fuzzy", filterGreaterThan: "Greater Than", filterGreaterThanOrEqualTo: "Greater Than Or Equal To", filterInNumberRange: "Between", filterIncludesString: "Contains", filterIncludesStringSensitive: "Contains", filterLessThan: "Less Than", filterLessThanOrEqualTo: "Less Than Or Equal To", filterMode: "Filter Mode: {filterType}", filterNotEmpty: "Not Empty", filterNotEquals: "Not Equals", filterStartsWith: "Starts With", filterWeakEquals: "Equals", filteringByColumn: "Filtering by {column} - {filterType} {filterValue}", goToFirstPage: "Go to first page", goToLastPage: "Go to last page", goToNextPage: "Go to 
2837next page", goToPreviousPage: "Go to previous page", grab: "Grab", groupByColumn: "Group by {column}", groupedBy: "Grouped by ", hideAll: "Hide all", hideColumn: "Hide {column} column", max: "Max", min: "Min", move: "Move", noRecordsToDisplay: "No records to display", noResultsFound: "No results found", of: "of", or: "or", pin: "Pin", pinToLeft: "Pin to left", pinToRight: "Pin to right", resetColumnSize: "Reset column size", resetOrder: "Reset order", rowActions: "Row Actions", rowNumber: "#", rowNumbers: "Row Numbers", rowsPerPage: "Rows per page", save: "Save", search: "Search", selectedCountOfRowCountRowsSelected: "{selectedCount} of {rowCount} row(s) selected", select: "Select", showAll: "Show all", showAllColumns: "Show all columns", showHideColumns: "Show/Hide columns", showHideFilters: "Show/Hide filters", showHideSearch: "Show/Hide search", sortByColumnAsc: "Sort by {column} ascending", sortByColumnDesc: "Sort by {column} descending", sortedByColumnAsc: "Sorted by {column} ascending", sortedByColumnDesc: "Sorted by {column} descending", thenBy: ", then by ", toggleDensity: "Toggle density", toggleFullScreen: "Toggle full screen", toggleSelectAll: "Toggle select all", toggleSelectRow: "Toggle select row", toggleVisibility: "Toggle visibility", ungroupByColumn: "Ungroup by {column}", unpin: "Unpin", unpinAll: "Unpin all" }, Ou = { filterVariant: "text", maxSize: 1e3, minSize: 40, size: 180 }, li = { columnDefType: "display", enableClickToCopy: false, enableColumnActions: false, enableColumnDragging: false, enableColumnFilter: false, enableColumnOrdering: false, enableEditing: false, enableGlobalFilter: false, enableGrouping: false, enableHiding: false, enableResizing: false, enableSorting: false }, Eu = (e) => {
2838  var o, { aggregationFns: t, autoResetExpanded: n = false, columnFilterDisplayMode: l = "subheader", columnResizeDirection: i, columnResizeMode: r = "onChange", createDisplayMode: s = "modal", defaultColumn: u, defaultDisplayColumn: c, editDisplayMode: g = "modal", enableBatchRowSelection: f = true, enableBottomToolbar: p = true, enableColumnActions: d = true, enableColumnFilters: m = true, enableColumnOrdering: h = false, enableColumnPinning: v = false, enableColumnResizing: b = false, enableColumnVirtualization: C, enableDensityToggle: _ = true, enableExpandAll: M = true, enableExpanding: w, enableFacetedValues: y = false, enableFilterMatchHighlighting: S = true, enableFilters: R = true, enableFullScreenToggle: P = true, enableGlobalFilter: F = true, enableGlobalFilterRankedResults: O = true, enableGrouping: N = false, enableHeaderActionsHoverReveal: H = false, enableHiding: A = true, enableMultiRowSelection: $ = true, enableMultiSort: T = true, enablePagination: j = true, enableRowPinning: V = false, enableRowSelection: K = false, enableRowVirtualization: X, enableSelectAll: ee = true, enableSorting: re = true, enableStickyHeader: ge = false, enableTableFooter: Y = true, enableTableHead: ie = true, enableToolbarInternalActions: G = true, enableTopToolbar: k = true, filterFns: q, icons: I, layoutMode: Q, localization: ae, manualFiltering: le, manualGrouping: pe, manualPagination: xe, manualSorting: te, paginationDisplayMode: ne = "default", positionActionsColumn: ce = "first", positionCreatingRow: E = "top", positionExpandColumn: se = "first", positionGlobalFilter: Re = "right", positionPagination: be = "bottom", positionToolbarAlertBanner: Ae = "top", positionToolbarDropZone: Pe = "top", rowNumberDisplayMode: Se = "static", rowPinningDisplayMode: oe = "sticky", selectAllMode: Z = "page", sortingFns: ye } = e, J = U(e, ["aggregationFns", "autoResetExpanded", "columnFilterDisplayMode", "columnResizeDirection", "columnResizeMode", "createDisplayMode", "defaultColumn", "defaultDisplayColumn", "editDisplayMode", "enableBatchRowSelection", "enableBottomToolbar", "enableColumnActions", "enableColumnFilters", "enableColumnOrdering", "enableColumnPinning", "enableColumnResizing", "enableColumnVirtualization", "enableDensityToggle", "enableExpandAll", "enableExpanding", "enableFacetedValues", "enableFilterMatchHighlighting", "enableFilters", "enableFullScreenToggle", "enableGlobalFilter", "enableGlobalFilterRankedResults", "enableGrouping", "enableHeaderActionsHoverReveal", "enableHiding", "enableMultiRowSelection", "enableMultiSort", "enablePagination", "enableRowPinning", "enableRowSelection", "enableRowVirtualization", "enableSelectAll", "enableSorting", "enableStickyHeader", "enableTableFooter", "enableTableHead", "enableToolbarInternalActions", "enableTopToolbar", "filterFns", "icons", "layoutMode", "localization", "manualFiltering", "manualGrouping", "manualPagination", "manualSorting", "paginationDisplayMode", "positionActionsColumn", "positionCreatingRow", "positionExpandColumn", "positionGlobalFilter", "positionPagination", "positionToolbarAlertBanner", "positionToolbarDropZone", "rowNumberDis
2838playMode", "rowPinningDisplayMode", "selectAllMode", "sortingFns"]);
2839  const Me = st();
2840  return I = x.useMemo(() => Object.assign(Object.assign({}, Pu), I), [I]), ae = x.useMemo(() => Object.assign(Object.assign({}, Iu), ae), [ae]), t = x.useMemo(() => Object.assign(Object.assign({}, ju), t), []), q = x.useMemo(() => Object.assign(Object.assign({}, ou), q), []), ye = x.useMemo(() => Object.assign(Object.assign({}, Ta), ye), []), u = x.useMemo(() => Object.assign(Object.assign({}, Ou), u), [u]), c = x.useMemo(() => Object.assign(Object.assign({}, li), c), [c]), [C, X] = x.useMemo(() => [C, X], []), i || (i = Me.dir || "ltr"), Q = Q || (b ? "grid-no-grow" : "semantic"), Q === "semantic" && (X || C) && (Q = "grid"), X && (ge = true), j === false && xe === void 0 && (xe = true), !((o = J.data) === null || o === void 0) && o.length || (le = true, pe = true, xe = true, te = true), Object.assign({ aggregationFns: t, autoResetExpanded: n, columnFilterDisplayMode: l, columnResizeDirection: i, columnResizeMode: r, createDisplayMode: s, defaultColumn: u, defaultDisplayColumn: c, editDisplayMode: g, enableBatchRowSelection: f, enableBottomToolbar: p, enableColumnActions: d, enableColumnFilters: m, enableColumnOrdering: h, enableColumnPinning: v, enableColumnResizing: b, enableColumnVirtualization: C, enableDensityToggle: _, enableExpandAll: M, enableExpanding: w, enableFacetedValues: y, enableFilterMatchHighlighting: S, enableFilters: R, enableFullScreenToggle: P, enableGlobalFilter: F, enableGlobalFilterRankedResults: O, enableGrouping: N, enableHeaderActionsHoverReveal: H, enableHiding: A, enableMultiRowSelection: $, enableMultiSort: T, enablePagination: j, enableRowPinning: V, enableRowSelection: K, enableRowVirtualization: X, enableSelectAll: ee, enableSorting: re, enableStickyHeader: ge, enableTableFooter: Y, enableTableHead: ie, enableToolbarInternalActions: G, enableTopToolbar: k, filterFns: q, getCoreRowModel: $s(), getExpandedRowModel: w || N ? Hs() : void 0, getFacetedMinMaxValues: y ? Bs() : void 0, getFacetedRowModel: y ? Ls() : void 0, getFacetedUniqueValues: y ? Ws() : void 0, getFilteredRowModel: m || F || R ? qs() : void 0, getGroupedRowModel: N ? Us() : void 0, getPaginationRowModel: j ? Xs() : void 0, getSortedRowModel: re ? Zs() : void 0, getSubRows: (de) => de == null ? void 0 : de.subRows, icons: I, layoutMode: Q, localization: ae, manualFiltering: le, manualGrouping: pe, manualPagination: xe, manualSorting: te, paginationDisplayMode: ne, positionActionsColumn: ce, positionCreatingRow: E, positionExpandColumn: se, positionGlobalFilter: Re, positionPagination: be, positionToolbarAlertBanner: Ae, positionToolbarDropZone: Pe, rowNumberDisplayMode: Se, rowPinningDisplayMode: oe, selectAllMode: Z, sortingFns: ye }, J);
2841}, On = { children: null, style: { minWidth: 0, padding: 0, width: 0 } }, Du = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, at({ id: "mrt-row-spacer", size: 0, tableOptions: e })), { grow: true }), li), { mantineTableBodyCellProps: On, mantineTableFooterCellProps: On, mantineTableHeadCellProps: On }), zu = (e) => {
2842  const { getIsSomeRowsPinned: o, getPrePaginationRowModel: t, getState: n, options: { enablePagination: l, enableRowPinning: i, rowCount: r } } = e, { columnOrder: s, density: u, globalFilter: c, isFullScreen: g, isLoading: f, pagination: p, showSkeletons: d, sorting: m } = n(), h = e.options.columns.length, v = r != null ? r : t().rows.length, b = x.useReducer(() => ({}), {})[1], C = x.useRef(), _ = x.useRef();
2843  x.useEffect(() => {
2844    typeof window < "u" && (C.current = document.body.style.height);
2845  }, []), x.useEffect(() => {
2846    if (typeof window < "u") if (g) _.current = document.body.getBoundingClientRect().top, document.body.style.height = "100dvh";
2847    else {
2848      if (document.body.style.height = C.current, !_.current) return;
2849      window.scrollTo({ behavior: "instant", top: -1 * _.current });
2850    }
2851  }, [g]), x.useEffect(() => {
2852    h !== s.length && e.setColumnOrder(go(e.options));
2853  }, [h]), x.useEffect(() => {
2854    if (!l || f || d) return;
2855    const { pageIndex: w, pageSize: y } = p, S = w * y;
2856    S >= v && S > 0 && e.setPageIndex(Math.ceil(v / y) - 1);
2857  }, [v]);
2858  const M = x.useRef(m);
2859  x.useEffect(() => {
2860    m.length && (M.current = m);
2861  }, [m]), x.useEffect(() => {
2862    Dl(e) && (c ? e.setSorting([]) : e.setSorting(() => M.current || []));
2863  }, [c]), x.useEffect(() => {
2864    i && o() && setTimeout(() => {
2865      b();
2866    }, 150);
2867  }, [u]);
2868}, Au = (e) => {
2869  var o, t, n, l, i, r, s, u, c, g, f, p, d, m, h, v, b, C, _, M, w, y, S, R, P, F, O, N, H, A, $, T, j;
2870  const V = x.useRef(null), K = x.useRef(null), X = x.useRef({}), ee = x.useRef({}), re = x.useRef(null), ge = x.useRef(null), Y = x.useRef({}), ie = x.useRef(null), G = x.useRef(null), k = x.useRef(null), q = x.useRef(null), I = x.useMemo(() => {
2871    var Fe, Ie, Ne;
2872    const Ge = (Fe = e.initialState) !== null && Fe !== void 0 ? Fe : {};
2873    return Ge.columnOrder = (Ie = Ge.columnOrder) !== null && Ie !== void 0 ? Ie : go(Object.assign(Object.assign({}, e), { state: Object.assign(Object.assign({}, e.initialState), e.state) })), Ge.globalFilterFn = (Ne = e.globalFilterFn) !== null && Ne !== void 0 ? Ne : "fuzzy", Ge;
2874  }, []);
2875  e.initialState = I;
2876  const [Q, ae] = x.useState((o = I.creatingRow) !== null && o !== void 0 ? o : null), [le, pe] = x.useState(() => Object.assign({}, ...Ut(e.columns).map((Fe) => {
2877    var Ie, Ne, Ge, ut;
2878    return { [pt(Fe)]: Fe.filterFn instanceof Function ? (Ie = Fe.f
2878ilterFn.name) !== null && Ie !== void 0 ? Ie : "custom" : (ut = (Ne = Fe.filterFn) !== null && Ne !== void 0 ? Ne : (Ge = I == null ? void 0 : I.columnFilterFns) === null || Ge === void 0 ? void 0 : Ge[pt(Fe)]) !== null && ut !== void 0 ? ut : Ba(Fe) };
2879  }))), [xe, te] = x.useState((t = I.columnOrder) !== null && t !== void 0 ? t : []), [ne, ce] = x.useState((n = I.columnSizingInfo) !== null && n !== void 0 ? n : {}), [E, se] = x.useState((l = I == null ? void 0 : I.density) !== null && l !== void 0 ? l : "md"), [Re, be] = x.useState((i = I.draggingColumn) !== null && i !== void 0 ? i : null), [Ae, Pe] = x.useState((r = I.draggingRow) !== null && r !== void 0 ? r : null), [Se, oe] = x.useState((s = I.editingCell) !== null && s !== void 0 ? s : null), [Z, ye] = x.useState((u = I.editingRow) !== null && u !== void 0 ? u : null), [J, Me] = x.useState((c = I.globalFilterFn) !== null && c !== void 0 ? c : "fuzzy"), [de, Ce] = x.useState((g = I.grouping) !== null && g !== void 0 ? g : []), [ze, Be] = x.useState((f = I.hoveredColumn) !== null && f !== void 0 ? f : null), [Ct, _t] = x.useState((p = I.hoveredRow) !== null && p !== void 0 ? p : null), [ln, rn] = x.useState((d = I == null ? void 0 : I.isFullScreen) !== null && d !== void 0 ? d : false), [sn, Et] = x.useState((m = I == null ? void 0 : I.pagination) !== null && m !== void 0 ? m : { pageIndex: 0, pageSize: 10 }), [wt, Rt] = x.useState((h = I == null ? void 0 : I.showAlertBanner) !== null && h !== void 0 ? h : false), [Je, Ee] = x.useState((v = I == null ? void 0 : I.showColumnFilters) !== null && v !== void 0 ? v : false), [an, vo] = x.useState((b = I == null ? void 0 : I.showGlobalFilter) !== null && b !== void 0 ? b : false), [un, dn] = x.useState((C = I == null ? void 0 : I.showToolbarDropZone) !== null && C !== void 0 ? C : false);
2880  e.state = Object.assign({ columnFilterFns: le, columnOrder: xe, columnSizingInfo: ne, creatingRow: Q, density: E, draggingColumn: Re, draggingRow: Ae, editingCell: Se, editingRow: Z, globalFilterFn: J, grouping: de, hoveredColumn: ze, hoveredRow: Ct, isFullScreen: ln, pagination: sn, showAlertBanner: wt, showColumnFilters: Je, showGlobalFilter: an, showToolbarDropZone: un }, e.state);
2881  const z = e, Ye = x.useRef([]);
2882  z.columns = z.state.columnSizingInfo.isResizingColumn || z.state.draggingColumn || z.state.draggingRow ? Ye.current : $l({ columnDefs: [...[Nl(z) && Tu(z), Gl(z) && xu(z), co(z) && Su(z), uo(z) && yu(z), Ll(z) && Fu(z), Wl(z) && Mu(z)].filter(Boolean), ...z.columns, ...[ql(z) && Du(z)].filter(Boolean)], tableOptions: z }), Ye.current = z.columns, z.data = x.useMemo(() => (z.state.isLoading || z.state.showSkeletons) && !z.data.length ? [...Array(Math.min(z.state.pagination.pageSize, 20)).fill(null)].map(() => Object.assign({}, ...Ut(z.columns).map((Fe) => ({ [pt(Fe)]: null })))) : z.data, [z.data, z.state.isLoading, z.state.showSkeletons]);
2883  const _e = Js(Object.assign(Object.assign({ onColumnOrderChange: te, onColumnSizingInfoChange: ce, onGroupingChange: Ce, onPaginationChange: Et }, z), { globalFilterFn: (_ = z.filterFns) === null || _ === void 0 ? void 0 : _[J != null ? J : "fuzzy"] }));
2884  return _e.refs = { bottomToolbarRef: K, editInputRefs: X, filterInputRefs: ee, lastSelectedRowId: V, searchInputRef: re, tableContainerRef: ge, tableFooterRef: q, tableHeadCellRefs: Y, tableHeadRef: k, tablePaperRef: ie, topToolbarRef: G }, _e.setCreatingRow = (Fe) => {
2885    let Ie = Fe;
2886    Fe === true && (Ie = Ru(_e)), (z == null ? void 0 : z.onCreatingRowChange) ? z.onCreatingRowChange(Ie) : ae(Ie);
2887  }, _e.setColumnFilterFns = (M = z.onColumnFilterFnsChange) !== null && M !== void 0 ? M : pe, _e.setDensity = (w = z.onDensityChange) !== null && w !== void 0 ? w : se, _e.setDraggingColumn = (y = z.onDraggingColumnChange) !== null && y !== void 0 ? y : be, _e.setDraggingRow = (S = z.onDraggingRowChange) !== null && S !== void 0 ? S : Pe, _e.setEditingCell = (R = z.onEditingCellChange) !== null && R !== void 0 ? R : oe, _e.setEditingRow = (P = z.onEditingRowChange) !== null && P !== void 0 ? P : ye, _e.setGlobalFilterFn = (F = z.onGlobalFilterFnChange) !== null && F !== void 0 ? F : Me, _e.setHoveredColumn = (O = z.onHoveredColumnChange) !== null && O !== void 0 ? O : Be, _e.setHoveredRow = (N = z.onHoveredRowChange) !== null && N !== void 0 ? N : _t, _e.setIsFullScreen = (H = z.onIsFullScreenChange) !== null && H !== void 0 ? H : rn, _e.setShowAlertBanner = (A = z.onShowAlertBannerChange) !== null && A !== void 0 ? A : Rt, _e.setShowColumnFilters = ($ = z.onShowColumnFiltersChange) !== null && $ !== void 0 ? $ : Ee, _e.setShowGlobalFilter = (T = z.onShowGlobalFilterChange) !== null && T !== void 0 ? T : vo, _e.setShowToolbarDropZone = (j = z.onShowToolbarDropZoneChange) !== null && j !== void 0 ? j : dn, zu(_e), _e;
2888}, ii = (e) => Au(Eu(e));
2889var Vu = { root: "MRT_TablePaper-module_root__q0v5L" }, En = { root: "MRT_TableContainer-module_root__JIsGB", "root-sticky": "MRT_TableContainer-module_root-sticky__uC4qx", "root-fullscreen": "MRT_TableContainer-module_root-fullscreen__aM8Jg" }, $o = { root: "MRT_Table-module_root__ms2uS", "root-grid": "MRT_Table-module_root-grid__2Pynz" };
2890const ku = (e) => {
2891  var o, t, n, l;
2892  const { getLeftLeafColumns: i, getRightLeafColumns: r, getState: s, getVisibleLeafColumns: u, options: { columnVirtualizerInstanceRef: c, columnVirtualizerOptions: g, enableColumnPinning: f, enableColumnVirtualization: p }, refs: { tableContainerRef: d } } = e, { columnPinning: m, draggingColumn: h } = s();
2893  if (!p) return;
2894  const v = D(g, { table: e }), b = u(), [C, _] = x.useMemo(() => f ? [i().map((F) => F.getPinnedIndex()), r().map((F) => b.length - F.getPinnedIndex() - 1).sort((F, O) => F - O)] : [[], []], [b.length, m, f]), M = C.length, w = _.length, y = x.useMemo(() => (h == null ? void 0 : h.id) ? b.findIndex((F) => F.id === (h == null ? void 0 : h.id)) : void 0, [h == null ? void 0 : h.id]), S = Il(Object.assign({ count: b.length, estimateSize: (F) => b[F].getSize(), getScrollElement: () => d.current, horizontal: true, overscan: 3, rangeExtractor: x.useCallback((F) => {
2895    const O = Al(F, y);
2896    return !M && !w ? O : [.../* @__PURE__ */ new Set([...C, ...O, ..._])];
2897  }, [C, _, y]) }, v)), R = S.getVirtualItems();
2898  S.virtualColumns = R;
2899  const P = R.length;
2900  if (P) {
2901    const F = S.getTotalSize(), O = ((o = R[M]) === null || o === void 0 ? void 0 : o.start) || 0, N = ((t = R[C.length - 1]) === null || t === void 0 ? void 0 : t.end) || 0, H = ((n = R[P - w]) === null || n === void 0 ? void 0 : n.start) || 0, A = ((l = R[P - w - 1]) === null || l === void 0 ? void 0 : l.end) || 0;
2902    S.virtualPaddingLeft = O - N, S.virtualPaddingRight = F - A - (w ? F - H : 0);
2903  }
2904  return c && (c.current = S), S;
2905}, $u = (e) => {
2906  var { table: o } = e, t = U(e, ["table"]);
2907  const { getFlatHeaders: n, getState: l, options: { columns: i, enableTableFooter: r, enableTableHead: s, layoutMode: u, mantineTableProps: c, memoMode: g } } = o, { columnSizing: f, columnSizingInfo: p, columnVisibility: d, density: m } = l(), h = Object.assign(Object.assign({ highlightOnHover: true, horizontalSpacing: m, verticalSpacing: m }, D(c, { table: o })), t), v = x.useMemo(() => {
2908    const w = n(), y = {};
2909    for (let S = 0; S < w.length; S++) {
2910      const R = w[S], P = R.getSize();
2911      y[`--header-${qe(R.id)}-size`] = P, y[`--col-${qe(R.column.id)}-size`] = P;
2912    }
2913    return y;
2914  }, [i, f, p, d]), C = { columnVirtualizer: ku(o), table: o }, { colorScheme: _ } = nr(), { stripedColor: M } = h;
2915  return a.jsxs(Hi, Object.assign({ className: B("mrt-table", $o.root, (u == null ? void 0 : u.startsWith("grid")) && $o["root-grid"], h.className) }, h, { __vars: Object.assign(Object.assign(Object.assign({}, v), { "--mrt-striped-row-background-color": M, "--mrt-striped-row-hover-background-color": M ? _ === "dark" ? il(M, 0.08) : Ci(M, 0.12) : void 0 }), h.__vars), children: [s && a.jsx(wu, Object.assign({}, C)), g === "table-body" || p.isResizingColumn ? a.jsx(Da, Object.assign({}, C, { tableProps: h })) : a.jsx(Vl, Object.assign({}, C, { tableProps: h })), r && a.jsx(tu, Object.assign({}, C))] }));
2916}, Hu = (e) => {
2917  var o, { open: t, table: n }
2917 = e, l = U(e, ["open", "table"]);
2918  const { getState: i, options: { mantineCreateRowModalProps: r, mantineEditRowModalProps: s, onCreatingRowCancel: u, onEditingRowCancel: c, renderCreateRowModalContent: g, renderEditRowModalContent: f }, setCreatingRow: p, setEditingRow: d } = n, { creatingRow: m, editingRow: h } = i(), v = m != null ? m : h, b = { row: v, table: n }, C = Object.assign(Object.assign(Object.assign({}, D(s, b)), m && D(r, b)), l), _ = v.getAllCells().filter((w) => w.column.columnDef.columnDefType === "data").map((w) => a.jsx(en, { cell: w, table: n }, w.id)), M = () => {
2919    var w;
2920    m ? (u == null ? void 0 : u({ row: v, table: n }), p(null)) : (c == null ? void 0 : c({ row: v, table: n }), d(null)), v._valuesCache = {}, (w = C.onClose) === null || w === void 0 || w.call(C);
2921  };
2922  return x.createElement(_i, Object.assign({ opened: t, withCloseButton: false }, C, { key: v.id, onClose: M }), (o = m && (g == null ? void 0 : g({ internalEditComponents: _, row: v, table: n })) || (f == null ? void 0 : f({ internalEditComponents: _, row: v, table: n }))) !== null && o !== void 0 ? o : a.jsxs(a.Fragment, { children: [a.jsx("form", { onSubmit: (w) => w.preventDefault(), children: a.jsx(ll, { gap: "lg", pb: 24, pt: 16, children: _ }) }), a.jsx(Te, { justify: "flex-end", children: a.jsx(kl, { row: v, table: n, variant: "text" }) })] }));
2923}, Bu = typeof window < "u" ? x.useLayoutEffect : x.useEffect, Nu = (e) => {
2924  var { table: o } = e, t = U(e, ["table"]);
2925  const { getState: n, options: { createDisplayMode: l, editDisplayMode: i, enableStickyHeader: r, mantineLoadingOverlayProps: s, mantineTableContainerProps: u }, refs: { bottomToolbarRef: c, tableContainerRef: g, topToolbarRef: f } } = o, { creatingRow: p, editingRow: d, isFullScreen: m, isLoading: h, showLoadingOverlay: v } = n(), [b, C] = x.useState(0), _ = Object.assign(Object.assign({}, D(u, { table: o })), t), M = D(s, { table: o });
2926  Bu(() => {
2927    var S, R, P, F;
2928    const O = typeof document < "u" && (R = (S = f.current) === null || S === void 0 ? void 0 : S.offsetHeight) !== null && R !== void 0 ? R : 0, N = typeof document < "u" && (F = (P = c == null ? void 0 : c.current) === null || P === void 0 ? void 0 : P.offsetHeight) !== null && F !== void 0 ? F : 0;
2929    C(O + N);
2930  });
2931  const w = l === "modal" && p, y = i === "modal" && d;
2932  return a.jsxs(me, Object.assign({}, _, { __vars: Object.assign({ "--mrt-top-toolbar-height": `${b}` }, _ == null ? void 0 : _.__vars), className: B("mrt-table-container", En.root, r && En["root-sticky"], m && En["root-fullscreen"], _ == null ? void 0 : _.className), ref: (S) => {
2933    S && (g.current = S, (_ == null ? void 0 : _.ref) && (_.ref.current = S));
2934  }, children: [a.jsx(Di, Object.assign({ visible: h || v, zIndex: 2 }, M)), a.jsx($u, { table: o }), (w || y) && a.jsx(Hu, { open: true, table: o })] }));
2935};
2936var ri = { "common-toolbar-styles": "common-styles-module_common-toolbar-styles__DnjR8" }, yt = { root: "MRT_BottomToolbar-module_root__VDeWo", "root-fullscreen": "MRT_BottomToolbar-module_root-fullscreen__esE15", "custom-toolbar-container": "MRT_BottomToolbar-module_custom-toolbar-container__XcDRF", "paginator-container": "MRT_BottomToolbar-module_paginator-container__A3eWY", "paginator-container-alert-banner": "MRT_BottomToolbar-module_paginator-container-alert-banner__gyqtO" }, Ho = { collapse: "MRT_ProgressBar-module_collapse__rOLJH", "collapse-top": "MRT_ProgressBar-module_collapse-top__oCi0h" };
2937const si = (e) => {
2938  var { isTopToolbar: o, table: t } = e, n = U(e, ["isTopToolbar", "table"]);
2939  const { getState: l, options: { mantineProgressProps: i } } = t, { isSaving: r, showProgressBars: s } = l(), u = Object.assign(Object.assign({}, D(i, { isTopToolbar: o, table: t })), n);
2940  return a.jsx(It, { className: B(Ho.collapse, o && Ho["collapse-top"]), in: r || s, children: a.jsx(ki, Object.assign({ animated: true, "aria-busy": "true", "aria-label": "Loading", radius: 0, value: 100 }, u)) });
2941};
2942var Dn = { root: "MRT_TablePagination-module_root__yZ8pm", pagesize: "MRT_TablePagination-module_pagesize__-vmTn", "with-top-margin": "MRT_TablePagination-module_with-top-margin__aM5-m" };
2943const Bo = [5, 10, 15, 20, 25, 30, 50, 100].map((e) => e.toString()), ai = (e) => {
2944  var o, { position: t = "bottom", table: n } = e, l = U(e, ["position", "table"]);
2945  const { getPrePaginationRowModel: i, getState: r, options: { enableToolbarInternalActions: s, icons: { IconChevronLeft: u, IconChevronLeftPipe: c, IconChevronRight: g, IconChevronRightPipe: f }, localization: p, mantinePaginationProps: d, paginationDisplayMode: m, rowCount: h }, setPageIndex: v, setPageSize: b } = n, { pagination: { pageIndex: C = 0, pageSize: _ = 10 }, showGlobalFilter: M } = r(), w = Object.assign(Object.assign({}, D(d, { table: n })), l), y = h != null ? h : i().rows.length, S = Math.ceil(y / _), R = S > 2, P = C * _, F = Math.min(C * _ + _, y), O = w != null ? w : {}, { rowsPerPageOptions: N = Bo, showRowsPerPage: H = true, withEdges: A = R } = O, $ = U(O, ["rowsPerPageOptions", "showRowsPerPage", "withEdges"]), T = t === "top" && s && !M;
2946  return a.jsxs(me, { className: B("mrt-table-pagination", Dn.root, T && Dn["with-top-margin"]), children: [(w == null ? void 0 : w.showRowsPerPage) !== false && a.jsxs(_o, { gap: "xs", children: [a.jsx(mt, { id: "rpp-label", children: p.rowsPerPage }), a.jsx(qn, { allowDeselect: false, "aria-labelledby": "rpp-label", className: Dn.pagesize, data: (o = w == null ? void 0 : w.rowsPerPageOptions) !== null && o !== void 0 ? o : Bo, onChange: (j) => b(+j), value: _.toString() })] }), m === "pages" ? a.jsx(Vi, Object.assign({ firstIcon: c, lastIcon: f, nextIcon: g, onChange: (j) => v(j - 1), previousIcon: u, total: S, value: C + 1, withEdges: A }, $)) : m === "default" ? a.jsxs(a.Fragment, { children: [a.jsx(mt, { children: `${F === 0 ? 0 : (P + 1).toLocaleStr
2946ing()}-${F.toLocaleString()} ${p.of} ${y.toLocaleString()}` }), a.jsxs(_o, { gap: 6, children: [A && a.jsx(fe, { "aria-label": p.goToFirstPage, color: "gray", disabled: C <= 0, onClick: () => v(0), variant: "subtle", children: a.jsx(c, {}) }), a.jsx(fe, { "aria-label": p.goToPreviousPage, color: "gray", disabled: C <= 0, onClick: () => v(C - 1), variant: "subtle", children: a.jsx(u, {}) }), a.jsx(fe, { "aria-label": p.goToNextPage, color: "gray", disabled: F >= y, onClick: () => v(C + 1), variant: "subtle", children: a.jsx(g, {}) }), A && a.jsx(fe, { "aria-label": p.goToLastPage, color: "gray", disabled: F >= y, onClick: () => v(S - 1), variant: "subtle", children: a.jsx(f, {}) })] })] }) : null] });
2947};
2948var No = { root: "MRT_ToolbarDropZone-module_root__eGTXb", hovered: "MRT_ToolbarDropZone-module_hovered__g7PeJ" };
2949const ui = (e) => {
2950  var { table: o } = e, t = U(e, ["table"]);
2951  const { getState: n, options: { enableGrouping: l, localization: i }, setHoveredColumn: r, setShowToolbarDropZone: s } = o, { draggingColumn: u, grouping: c, hoveredColumn: g, showToolbarDropZone: f } = n(), p = (d) => {
2952    r({ id: "drop-zone" });
2953  };
2954  return x.useEffect(() => {
2955    var d;
2956    ((d = o.options.state) === null || d === void 0 ? void 0 : d.showToolbarDropZone) !== void 0 && s(!!l && !!u && u.columnDef.enableGrouping !== false && !c.includes(u.id));
2957  }, [l, u, c]), a.jsx(Uo, { mounted: f, transition: "fade", children: () => {
2958    var d, m;
2959    return a.jsx(Te, Object.assign({ className: B("mrt-toolbar-dropzone", No.root, (g == null ? void 0 : g.id) === "drop-zone" && No.hovered), onDragEnter: p }, t, { children: a.jsx(mt, { children: i.dropToGroupBy.replace("{column}", (m = (d = u == null ? void 0 : u.columnDef) === null || d === void 0 ? void 0 : d.header) !== null && m !== void 0 ? m : "") }) }));
2960  } });
2961}, Gu = (e) => {
2962  var { table: o } = e, t = U(e, ["table"]);
2963  const { getState: n, options: { enablePagination: l, mantineBottomToolbarProps: i, positionPagination: r, positionToolbarAlertBanner: s, positionToolbarDropZone: u, renderBottomToolbarCustomActions: c }, refs: { bottomToolbarRef: g } } = o, { isFullScreen: f } = n(), p = Gt("(max-width: 720px)"), d = Object.assign(Object.assign({}, D(i, { table: o })), t), m = p || !!c;
2964  return a.jsxs(me, Object.assign({}, d, { className: B("mrt-bottom-toolbar", yt.root, ri["common-toolbar-styles"], f && yt["root-fullscreen"], d == null ? void 0 : d.className), ref: (h) => {
2965    h && (g.current = h, (d == null ? void 0 : d.ref) && (d.ref.current = h));
2966  }, children: [a.jsx(si, { isTopToolbar: false, table: o }), s === "bottom" && a.jsx(ho, { stackAlertBanner: m, table: o }), ["both", "bottom"].includes(u != null ? u : "") && a.jsx(ui, { table: o }), a.jsxs(me, { className: yt["custom-toolbar-container"], children: [c ? c({ table: o }) : a.jsx("span", {}), a.jsx(me, { className: B(yt["paginator-container"], m && yt["paginator-container-alert-banner"]), children: l && ["both", "bottom"].includes(r != null ? r : "") && a.jsx(ai, { position: "bottom", table: o }) })] })] }));
2967};
2968var Bt = { root: "MRT_TopToolbar-module_root__r4-V9", "root-fullscreen": "MRT_TopToolbar-module_root-fullscreen__3itT8", "actions-container": "MRT_TopToolbar-module_actions-container__-uL0u", "actions-container-stack-alert": "MRT_TopToolbar-module_actions-container-stack-alert__OYDL6" }, Lu = { root: "MRT_ToolbarInternalButtons-module_root__NKoUG" };
2969const Wu = (e) => {
2970  var o, { table: t } = e, n = U(e, ["table"]);
2971  const { options: { columnFilterDisplayMode: l, enableColumnFilters: i, enableColumnOrdering: r, enableColumnPinning: s, enableDensityToggle: u, enableFilters: c, enableFullScreenToggle: g, enableGlobalFilter: f, enableHiding: p, initialState: d, renderToolbarInternalActions: m } } = t;
2972  return a.jsx(Te, Object.assign({}, n, { className: B("mrt-toolbar-internal-buttons", Lu.root, n == null ? void 0 : n.className), children: (o = m == null ? void 0 : m({ table: t })) !== null && o !== void 0 ? o : a.jsxs(a.Fragment, { children: [c && f && !(d == null ? void 0 : d.showGlobalFilter) && a.jsx(Za, { table: t }), c && i && l !== "popover" && a.jsx(Ka, { table: t }), (p || r || s) && a.jsx(Wa, { table: t }), u && a.jsx(Ua, { table: t }), g && a.jsx(Xa, { table: t })] }) }));
2973}, qu = (e) => {
2974  var o, { table: t } = e, n = U(e, ["table"]);
2975  const { getState: l, options: { enableGlobalFilter: i, enablePagination: r, enableToolbarInternalActions: s, mantineTopToolbarProps: u, positionGlobalFilter: c, positionPagination: g, positionToolbarAlertBanner: f, positionToolbarDropZone: p, renderTopToolbarCustomActions: d }, refs: { topToolbarRef: m } } = t, { isFullScreen: h, showGlobalFilter: v } = l(), b = Gt("(max-width:720px)"), C = Gt("(max-width:1024px)"), _ = Object.assign(Object.assign({}, D(u, { table: t })), n), M = b || !!d || v && C, w = { style: C ? void 0 : { zIndex: 3 }, table: t };
2976  return a.jsxs(me, Object.assign({}, _, { className: B(ri["common-toolbar-styles"], Bt.root, h && Bt["root-fullscreen"], _ == null ? void 0 : _.className), ref: (y) => {
2977    y && (m.current = y, (_ == null ? void 0 : _.ref) && (_.ref.current = y));
2978  }, children: [f === "top" && a.jsx(ho, { stackAlertBanner: M, table: t }), ["both", "top"].includes(p != null ? p : "") && a.jsx(ui, { table: t }), a.jsxs(Te, { className: B(Bt["actions-container"], M && Bt["actions-container-stack-alert"]), children: [i && c === "left" && a.jsx(In, Object.assign({}, w)), (o = d == null ? void 0 : d({ table: t })) !== null && o !== void 0 ? o : a.jsx("span", {}), s ? a.jsxs(Te, { justify: "end", wrap: "wrap-reverse", children: [i && c === "right" && a.jsx(In, Object.assign({}, w)), a.jsx(Wu, { table: t })] }) : i && c === "right" && a.jsx(In, Object.assign({}, w))] }), r && ["both", "top"].includes(g != null ? g : "") && a.jsx(Te, { justify: "end", children: a.jsx(ai, { position: "top", table: t }) }), a.jsx(si, { isTopToolbar: true, table: t })] }));
2979}, Uu = (e) => {
2980  var o, t, { table: n } = e, l = U(e, ["table"]);
2981  const { getState: i, options: { enableBottomToolbar: r, enableTopToolbar: s, mantinePaperProps: u, renderBottomToolbar: c, renderTopToolbar: g }, refs: { tablePaperRef: f } } = n, { isFullScreen: p } = i(), d = Object.assign(Object.assign({}, D(u, { table: n })), l);
2982  return a.jsxs(bi, Object.assign({ shadow: "xs", withBorder: true }, d, { className: B("mrt-table-paper", Vu.root, p && "mrt-table-paper-fullscreen", d == null ? void 0 : d.
2982className), ref: (m) => {
2983    f.current = m, (d == null ? void 0 : d.ref) && (d.ref.current = m);
2984  }, style: (m) => Object.assign(Object.assign({ zIndex: p ? 200 : void 0 }, D(d == null ? void 0 : d.style, m)), p ? { border: 0, borderRadius: 0, bottom: 0, height: "100vh", left: 0, margin: 0, maxHeight: "100vh", maxWidth: "100vw", padding: 0, position: "fixed", right: 0, top: 0, width: "100vw" } : null), children: [s && ((o = D(g, { table: n })) !== null && o !== void 0 ? o : a.jsx(qu, { table: n })), a.jsx(Nu, { table: n }), r && ((t = D(c, { table: n })) !== null && t !== void 0 ? t : a.jsx(Gu, { table: n }))] }));
2985}, Ku = (e) => e.table !== void 0, Xu = (e) => {
2986  let o;
2987  return Ku(e) ? o = e.table : o = ii(e), a.jsx(Uu, { table: o });
2988}, Zu = "_toolbar_b2slo_1", Ju = "_tablePaper_b2slo_6", Yu = "_bodyRow_b2slo_10", zn = { toolbar: Zu, tablePaper: Ju, bodyRow: Yu }, Dd = ({ columnsFields: e, data: o, toolbarBtns: t }) => {
2989  const n = Ko(), l = x.useMemo(() => e, []), i = ii({ columns: l, data: o, renderTopToolbarCustomActions: ({ table: r }) => a.jsx(Te, { gap: "sm", align: "center", children: t(r) }), enableRowNumbers: true, rowNumberMode: "static", mantineTableContainerProps: { style: { maxHeight: "calc(100vh - 310px)", maxWidth: "calc(100vw - 330px)" } }, mantinePaperProps: { style: { boxShadow: "unset !important", border: "4px solid " + il(n.colors.primary[0], 5), borderRadius: "10px" }, className: zn.tablePaper }, mantineTopToolbarProps: { className: zn.toolbar }, mantineTableBodyRowProps: { className: zn.bodyRow }, mantineTableHeadRowProps: { style: { backgroundColor: n.colors.primary[1], border: "none", boxShadow: "0 0 0 red", borderBottom: "1px solid " + n.colors.primary[2] } }, mantineTableHeadCellProps: { style: { backgroundColor: n.colors.primary[0], color: n.colors.primary[9] } }, mantineBottomToolbarProps: { style: { backgroundColor: n.colors.primary[1], border: "none", boxShadow: "unset !important" } }, mantineTableProps: { striped: true } });
2990  return a.jsx(Xu, { table: i });
2991};
2992export {
2993  Dd as D
2994};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.