;
! function() {
    try {
        var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : {},
            n = (new e.Error).stack;
        n && ((e._debugIds || (e._debugIds = {}))[n] = "48c3e4c6-75e0-39a8-1952-66477c69a238")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 181687, 53382, e => {
    "use strict";
    var t = e.i(416340);

    function l(e, t) {
        return "function" == typeof e ? e(t) : e
    }

    function n(e, t) {
        return n => {
            t.setState(t => ({ ...t,
                [e]: l(n, t[e])
            }))
        }
    }

    function o(e) {
        return e instanceof Function
    }

    function i(e, t, l) {
        let n, o = [];
        return i => {
            let r, u;
            l.key && l.debug && (r = Date.now());
            let a = e(i);
            if (!(a.length !== o.length || a.some((e, t) => o[t] !== e))) return n;
            if (o = a, l.key && l.debug && (u = Date.now()), n = t(...a), null == l || null == l.onChange || l.onChange(n), l.key && l.debug && null != l && l.debug()) {
                let e = Math.round((Date.now() - r) * 100) / 100,
                    t = Math.round((Date.now() - u) * 100) / 100,
                    n = t / 16,
                    o = (e, t) => {
                        for (e = String(e); e.length < t;) e = " " + e;
                        return e
                    };
                console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`, `
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`, null == l ? void 0 : l.key)
            }
            return n
        }
    }

    function r(e, t, l, n) {
        return {
            debug: () => {
                var l;
                return null != (l = null == e ? void 0 : e.debugAll) ? l : e[t]
            },
            key: !1,
            onChange: n
        }
    }
    e.i(284553);
    let u = "debugHeaders";

    function a(e, t, l) {
        var n;
        let o = {
            id: null != (n = l.id) ? n : t.id,
            column: t,
            index: l.index,
            isPlaceholder: !!l.isPlaceholder,
            placeholderId: l.placeholderId,
            depth: l.depth,
            subHeaders: [],
            colSpan: 0,
            rowSpan: 0,
            headerGroup: null,
            getLeafHeaders: () => {
                let e = [],
                    t = l => {
                        l.subHeaders && l.subHeaders.length && l.subHeaders.map(t), e.push(l)
                    };
                return t(o), e
            },
            getContext: () => ({
                table: e,
                header: o,
                column: t
            })
        };
        return e._features.forEach(t => {
            null == t.createHeader || t.createHeader(o, e)
        }), o
    }

    function g(e, t, l, n) {
        var o, i;
        let r = 0,
            u = function(e, t) {
                void 0 === t && (t = 1), r = Math.max(r, t), e.filter(e => e.getIsVisible()).forEach(e => {
                    var l;
                    null != (l = e.columns) && l.length && u(e.columns, t + 1)
                }, 0)
            };
        u(e);
        let g = [],
            s = (e, t) => {
                let o = {
                        depth: t,
                        id: [n, `${t}`].filter(Boolean).join("_"),
                        headers: []
                    },
                    i = [];
                e.forEach(e => {
                    let r, u = [...i].reverse()[0],
                        g = e.column.depth === o.depth,
                        s = !1;
                    if (g && e.column.parent ? r = e.column.parent : (r = e.column, s = !0), u && (null == u ? void 0 : u.column) === r) u.subHeaders.push(e);
                    else {
                        let o = a(l, r, {
                            id: [n, t, r.id, null == e ? void 0 : e.id].filter(Boolean).join("_"),
                            isPlaceholder: s,
                            placeholderId: s ? `${i.filter(e=>e.column===r).length}` : void 0,
                            depth: t,
                            index: i.length
                        });
                        o.subHeaders.push(e), i.push(o)
                    }
                    o.headers.push(e), e.headerGroup = o
                }), g.push(o), t > 0 && s(i, t - 1)
            };
        s(t.map((e, t) => a(l, e, {
            depth: r,
            index: t
        })), r - 1), g.reverse();
        let d = e => e.filter(e => e.column.getIsVisible()).map(e => {
            let t = 0,
                l = 0,
                n = [0];
            return e.subHeaders && e.subHeaders.length ? (n = [], d(e.subHeaders).forEach(e => {
                let {
                    colSpan: l,
                    rowSpan: o
                } = e;
                t += l, n.push(o)
            })) : t = 1, l += Math.min(...n), e.colSpan = t, e.rowSpan = l, {
                colSpan: t,
                rowSpan: l
            }
        });
        return d(null != (o = null == (i = g[0]) ? void 0 : i.headers) ? o : []), g
    }
    let s = (e, t, l, n, o, u, a) => {
            let g = {
                id: t,
                index: n,
                original: l,
                depth: o,
                parentId: a,
                _valuesCache: {},
                _uniqueValuesCache: {},
                getValue: t => {
                    if (g._valuesCache.hasOwnProperty(t)) return g._valuesCache[t];
                    let l = e.getColumn(t);
                    if (null != l && l.accessorFn) return g._valuesCache[t] = l.accessorFn(g.original, n), g._valuesCache[t]
                },
                getUniqueValues: t => {
                    if (g._uniqueValuesCache.hasOwnProperty(t)) return g._uniqueValuesCache[t];
                    let l = e.getColumn(t);
                    if (null != l && l.accessorFn) return l.columnDef.getUniqueValues ? g._uniqueValuesCache[t] = l.columnDef.getUniqueValues(g.original, n) : g._uniqueValuesCache[t] = [g.getValue(t)], g._uniqueValuesCache[t]
                },
                renderValue: t => {
                    var l;
                    return null != (l = g.getValue(t)) ? l : e.options.renderFallbackValue
                },
                subRows: null != u ? u : [],
                getLeafRows: () => {
                    var e, t;
                    let l, n;
                    return e = g.subRows, t = e => e.subRows, l = [], (n = e => {
                        e.forEach(e => {
                            l.push(e);
                            let o = t(e);
                            null != o && o.length && n(o)
                        })
                    })(e), l
                },
                getParentRow: () => g.parentId ? e.getRow(g.parentId, !0) : void 0,
                getParentRows: () => {
                    let e = [],
                        t = g;
                    for (;;) {
                        let l = t.getParentRow();
                        if (!l) break;
                        e.push(l), t = l
                    }
                    return e.reverse()
                },
                getAllCells: i(() => [e.getAllLeafColumns()], t => t.map(t => {
                    var l;
                    let n;
                    return l = t.id, n = {
                        id: `${g.id}_${t.id}`,
                        row: g,
                        column: t,
                        getValue: () => g.getValue(l),
                        renderValue: () => {
                            var t;
                            return null != (t = n.getValue()) ? t : e.options.renderFallbackValue
                        },
                        getContext: i(() => [e, t, g, n], (e, t, l, n) => ({
                            table: e,
                            column: t,
                            row: l,
                            cell: n,
                            getValue: n.getValue,
                            renderValue: n.renderValue
                        }), r(e.options, "debugCells", "cell.getContext"))
                    }, e._features.forEach(l => {
                        null == l.createCell || l.createCell(n, t, g, e)
                    }, {}), n
                }), r(e.options, "debugRows", "getAllCells")),
                _getAllCellsByColumnId: i(() => [g.getAllCells()], e => e.reduce((e, t) => (e[t.column.id] = t, e), {}), r(e.options, "debugRows", "getAllCellsByColumnId"))
            };
            for (let t = 0; t < e._features.length; t++) {
                let l = e._features[t];
                null == l || null == l.createRow || l.createRow(g, e)
            }
            return g
        },
        d = (e, t, l) => {
            var n, o;
            let i = null == l || null == (n = l.toString()) ? void 0 : n.toLowerCase();
            return !!(null == (o = e.getValue(t)) || null == (o = o.toString()) || null == (o = o.toLowerCase()) ? void 0 : o.includes(i))
        };
    d.autoRemove = e => R(e);
    let p = (e, t, l) => {
        var n;
        return !!(null == (n = e.getValue(t)) || null == (n = n.toString()) ? void 0 : n.includes(l))
    };
    p.autoRemove = e => R(e);
    let c = (e, t, l) => {
        var n;
        return (null == (n = e.getValue(t)) || null == (n = n.toString()) ? void 0 : n.toLowerCase()) === (null == l ? void 0 : l.toLowerCase())
    };
    c.autoRemove = e => R(e);
    let f = (e, t, l) => {
        var n;
        return null == (n = e.getValue(t)) ? void 0 : n.includes(l)
    };
    f.autoRemove = e => R(e);
    let m = (e, t, l) => !l.some(l => {
        var n;
        return !(null != (n = e.getValue(t)) && n.includes(l))
    });
    m.autoRemove = e => R(e) || !(null != e && e.length);
    let C = (e, t, l) => l.some(l => {
        var n;
        return null == (n = e.getValue(t)) ? void 0 : n.includes(l)
    });
    C.autoRemove = e => R(e) || !(null != e && e.length);
    let w = (e, t, l) => e.getValue(t) === l;
    w.autoRemove = e => R(e);
    let v = (e, t, l) => e.getValue(t) == l;
    v.autoRemove = e => R(e);
    let S = (e, t, l) => {
        let [n, o] = l, i = e.getValue(t);
        return i >= n && i <= o
    };
    S.resolveFilterValue = e => {
        let [t, l] = e, n = "number" != typeof t ? parseFloat(t) : t, o = "number" != typeof l ? parseFloat(l) : l, i = null === t || Number.isNaN(n) ? -1 / 0 : n, r = null === l || Number.isNaN(o) ? 1 / 0 : o;
        if (i > r) {
            let e = i;
            i = r, r = e
        }
        return [i, r]
    }, S.autoRemove = e => R(e) || R(e[0]) && R(e[1]);
    let h = {
        includesString: d,
        includesStringSensitive: p,
        equalsString: c,
        arrIncludes: f,
        arrIncludesAll: m,
        arrIncludesSome: C,
        equals: w,
        weakEquals: v,
        inNumberRange: S
    };

    function R(e) {
        return null == e || "" === e
    }

    function b(e, t, l) {
        return !!e && !!e.autoRemove && e.autoRemove(t, l) || void 0 === t || "string" == typeof t && !t
    }
    let F = {
            sum: (e, t, l) => l.reduce((t, l) => {
                let n = l.getValue(e);
                return t + ("number" == typeof n ? n : 0)
            }, 0),
            min: (e, t, l) => {
                let n;
                return l.forEach(t => {
                    let l = t.getValue(e);
                    null != l && (n > l || void 0 === n && l >= l) && (n = l)
                }), n
            },
            max: (e, t, l) => {
                let n;
                return l.forEach(t => {
                    let l = t.getValue(e);
                    null != l && (n < l || void 0 === n && l >= l) && (n = l)
                }), n
            },
            extent: (e, t, l) => {
                let n, o;
                return l.forEach(t => {
                    let l = t.getValue(e);
                    null != l && (void 0 === n ? l >= l && (n = o = l) : (n > l && (n = l), o < l && (o = l)))
                }), [n, o]
            },
            mean: (e, t) => {
                let l = 0,
                    n = 0;
                if (t.forEach(t => {
                        let o = t.getValue(e);
                        null != o && (o *= 1) >= o && (++l, n += o)
                    }), l) return n / l
            },
            median: (e, t) => {
                if (!t.length) return;
                let l = t.map(t => t.getValue(e));
                if (!(Array.isArray(l) && l.every(e => "number" == typeof e))) return;
                if (1 === l.length) return l[0];
                let n = Math.floor(l.length / 2),
                    o = l.sort((e, t) => e - t);
                return l.length % 2 != 0 ? o[n] : (o[n - 1] + o[n]) / 2
            },
            unique: (e, t) => Array.from(new Set(t.map(t => t.getValue(e))).values()),
            uniqueCount: (e, t) => new Set(t.map(t => t.getValue(e))).size,
            count: (e, t) => t.length
        },
        M = () => ({
            left: [],
            right: []
        }),
        V = {
            size: 150,
            minSize: 20,
            maxSize: Number.MAX_SAFE_INTEGER
        },
        P = () => ({
            startOffset: null,
            startSize: null,
            deltaOffset: null,
            deltaPercentage: null,
            isResizingColumn: !1,
            columnSizingStart: []
        }),
        I = null;

    function x(e) {
        return "touchstart" === e.type
    }

    function _(e, t) {
        return t ? "center" === t ? e.getCenterVisibleLeafColumns() : "left" === t ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns()
    }
    let y = () => ({
            pageIndex: 0,
            pageSize: 10
        }),
        G = () => ({
            top: [],
            bottom: []
        }),
        L = (e, t, l, n, o) => {
            var i;
            let r = o.getRow(t, !0);
            l ? (r.getCanMultiSelect() || Object.keys(e).forEach(t => delete e[t]), r.getCanSelect() && (e[t] = !0)) : delete e[t], n && null != (i = r.subRows) && i.length && r.getCanSelectSubRows() && r.subRows.forEach(t => L(e, t.id, l, n, o))
        };

    function E(e, t) {
        let l = e.getState().rowSelection,
            n = [],
            o = {},
            i = function(e, t) {
                return e.map(e => {
                    var t;
                    let r = A(e, l);
                    if (r && (n.push(e), o[e.id] = e), null != (t = e.subRows) && t.length && (e = { ...e,
                            subRows: i(e.subRows)
                        }), r) return e
                }).filter(Boolean)
            };
        return {
            rows: i(t.rows),
            flatRows: n,
            rowsById: o
        }
    }

    function A(e, t) {
        var l;
        return null != (l = t[e.id]) && l
    }

    function H(e, t, l) {
        var n;
        if (!(null != (n = e.subRows) && n.length)) return !1;
        let o = !0,
            i = !1;
        return e.subRows.forEach(e => {
            if ((!i || o) && (e.getCanSelect() && (A(e, t) ? i = !0 : o = !1), e.subRows && e.subRows.length)) {
                let l = H(e, t);
                "all" === l ? i = !0 : ("some" === l && (i = !0), o = !1)
            }
        }), o ? "all" : !!i && "some"
    }
    let D = /([0-9]+)/gm;

    function z(e, t) {
        return e === t ? 0 : e > t ? 1 : -1
    }

    function O(e) {
        return "number" == typeof e ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : "string" == typeof e ? e : ""
    }

    function T(e, t) {
        let l = e.split(D).filter(Boolean),
            n = t.split(D).filter(Boolean);
        for (; l.length && n.length;) {
            let e = l.shift(),
                t = n.shift(),
                o = parseInt(e, 10),
                i = parseInt(t, 10),
                r = [o, i].sort();
            if (isNaN(r[0])) {
                if (e > t) return 1;
                if (t > e) return -1;
                continue
            }
            if (isNaN(r[1])) return isNaN(o) ? -1 : 1;
            if (o > i) return 1;
            if (i > o) return -1
        }
        return l.length - n.length
    }
    let B = {
            alphanumeric: (e, t, l) => T(O(e.getValue(l)).toLowerCase(), O(t.getValue(l)).toLowerCase()),
            alphanumericCaseSensitive: (e, t, l) => T(O(e.getValue(l)), O(t.getValue(l))),
            text: (e, t, l) => z(O(e.getValue(l)).toLowerCase(), O(t.getValue(l)).toLowerCase()),
            textCaseSensitive: (e, t, l) => z(O(e.getValue(l)), O(t.getValue(l))),
            datetime: (e, t, l) => {
                let n = e.getValue(l),
                    o = t.getValue(l);
                return n > o ? 1 : n < o ? -1 : 0
            },
            basic: (e, t, l) => z(e.getValue(l), t.getValue(l))
        },
        q = [{
            createTable: e => {
                e.getHeaderGroups = i(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, l, n, o) => {
                    var i, r;
                    let u = null != (i = null == n ? void 0 : n.map(e => l.find(t => t.id === e)).filter(Boolean)) ? i : [],
                        a = null != (r = null == o ? void 0 : o.map(e => l.find(t => t.id === e)).filter(Boolean)) ? r : [];
                    return g(t, [...u, ...l.filter(e => !(null != n && n.includes(e.id)) && !(null != o && o.includes(e.id))), ...a], e)
                }, r(e.options, u, "getHeaderGroups")), e.getCenterHeaderGroups = i(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, l, n, o) => g(t, l = l.filter(e => !(null != n && n.includes(e.id)) && !(null != o && o.includes(e.id))), e, "center"), r(e.options, u, "getCenterHeaderGroups")), e.getLeftHeaderGroups = i(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (t, l, n) => {
                    var o;
                    return g(t, null != (o = null == n ? void 0 : n.map(e => l.find(t => t.id === e)).filter(Boolean)) ? o : [], e, "left")
                }, r(e.options, u, "getLeftHeaderGroups")), e.getRightHeaderGroups = i(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (t, l, n) => {
                    var o;
                    return g(t, null != (o = null == n ? void 0 : n.map(e => l.find(t => t.id === e)).filter(Boolean)) ? o : [], e, "right")
                }, r(e.options, u, "getRightHeaderGroups")), e.getFooterGroups = i(() => [e.getHeaderGroups()], e => [...e].reverse(), r(e.options, u, "getFooterGroups")), e.getLeftFooterGroups = i(() => [e.getLeftHeaderGroups()], e => [...e].reverse(), r(e.options, u, "getLeftFooterGroups")), e.getCenterFooterGroups = i(() => [e.getCenterHeaderGroups()], e => [...e].reverse(), r(e.options, u, "getCenterFooterGroups")), e.getRightFooterGroups = i(() => [e.getRightHeaderGroups()], e => [...e].reverse(), r(e.options, u, "getRightFooterGroups")), e.getFlatHeaders = i(() => [e.getHeaderGroups()], e => e.map(e => e.headers).flat(), r(e.options, u, "getFlatHeaders")), e.getLeftFlatHeaders = i(() => [e.getLeftHeaderGroups()], e => e.map(e => e.headers).flat(), r(e.options, u, "getLeftFlatHeaders")), e.getCenterFlatHeaders = i(() => [e.getCenterHeaderGroups()], e => e.map(e => e.headers).flat(), r(e.options, u, "getCenterFlatHeaders")), e.getRightFlatHeaders = i(() => [e.getRightHeaderGroups()], e => e.map(e => e.headers).flat(), r(e.options, u, "getRightFlatHeaders")), e.getCenterLeafHeaders = i(() => [e.getCenterFlatHeaders()], e => e.filter(e => {
                    var t;
                    return !(null != (t = e.subHeaders) && t.length)
                }), r(e.options, u, "getCenterLeafHeaders")), e.getLeftLeafHeaders = i(() => [e.getLeftFlatHeaders()], e => e.filter(e => {
                    var t;
                    return !(null != (t = e.subHeaders) && t.length)
                }), r(e.options, u, "getLeftLeafHeaders")), e.getRightLeafHeaders = i(() => [e.getRightFlatHeaders()], e => e.filter(e => {
                    var t;
                    return !(null != (t = e.subHeaders) && t.length)
                }), r(e.options, u, "getRightLeafHeaders")), e.getLeafHeaders = i(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (e, t, l) => {
                    var n, o, i, r, u, a;
                    return [...null != (n = null == (o = e[0]) ? void 0 : o.headers) ? n : [], ...null != (i = null == (r = t[0]) ? void 0 : r.headers) ? i : [], ...null != (u = null == (a = l[0]) ? void 0 : a.headers) ? u : []].map(e => e.getLeafHeaders()).flat()
                }, r(e.options, u, "getLeafHeaders"))
            }
        }, {
            getInitialState: e => ({
                columnVisibility: {},
                ...e
            }),
            getDefaultOptions: e => ({
                onColumnVisibilityChange: n("columnVisibility", e)
            }),
            createColumn: (e, t) => {
                e.toggleVisibility = l => {
                    e.getCanHide() && t.setColumnVisibility(t => ({ ...t,
                        [e.id]: null != l ? l : !e.getIsVisible()
                    }))
                }, e.getIsVisible = () => {
                    var l, n;
                    let o = e.columns;
                    return null == (l = o.length ? o.some(e => e.getIsVisible()) : null == (n = t.getState().columnVisibility) ? void 0 : n[e.id]) || l
                }, e.getCanHide = () => {
                    var l, n;
                    return (null == (l = e.columnDef.enableHiding) || l) && (null == (n = t.options.enableHiding) || n)
                }, e.getToggleVisibilityHandler = () => t => {
                    null == e.toggleVisibility || e.toggleVisibility(t.target.checked)
                }
            },
            createRow: (e, t) => {
                e._getAllVisibleCells = i(() => [e.getAllCells(), t.getState().columnVisibility], e => e.filter(e => e.column.getIsVisible()), r(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = i(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (e, t, l) => [...e, ...t, ...l], r(t.options, "debugRows", "getVisibleCells"))
            },
            createTable: e => {
                let t = (t, l) => i(() => [l(), l().filter(e => e.getIsVisible()).map(e => e.id).join("_")], e => e.filter(e => null == e.getIsVisible ? void 0 : e.getIsVisible()), r(e.options, "debugColumns", t));
                e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = t => null == e.options.onColumnVisibilityChange ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = t => {
                    var l;
                    e.setColumnVisibility(t ? {} : null != (l = e.initialState.columnVisibility) ? l : {})
                }, e.toggleAllColumnsVisible = t => {
                    var l;
                    t = null != (l = t) ? l : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((e, l) => ({ ...e,
                        [l.id]: t || !(null != l.getCanHide && l.getCanHide())
                    }), {}))
                }, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some(e => !(null != e.getIsVisible && e.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some(e => null == e.getIsVisible ? void 0 : e.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => t => {
                    var l;
                    e.toggleAllColumnsVisible(null == (l = t.target) ? void 0 : l.checked)
                }
            }
        }, {
            getInitialState: e => ({
                columnOrder: [],
                ...e
            }),
            getDefaultOptions: e => ({
                onColumnOrderChange: n("columnOrder", e)
            }),
            createColumn: (e, t) => {
                e.getIndex = i(e => [_(t, e)], t => t.findIndex(t => t.id === e.id), r(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = l => {
                    var n;
                    return (null == (n = _(t, l)[0]) ? void 0 : n.id) === e.id
                }, e.getIsLastColumn = l => {
                    var n;
                    let o = _(t, l);
                    return (null == (n = o[o.length - 1]) ? void 0 : n.id) === e.id
                }
            },
            createTable: e => {
                e.setColumnOrder = t => null == e.options.onColumnOrderChange ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = t => {
                    var l;
                    e.setColumnOrder(t ? [] : null != (l = e.initialState.columnOrder) ? l : [])
                }, e._getOrderColumnsFn = i(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (e, t, l) => n => {
                    let o = [];
                    if (null != e && e.length) {
                        let t = [...e],
                            l = [...n];
                        for (; l.length && t.length;) {
                            let e = t.shift(),
                                n = l.findIndex(t => t.id === e);
                            n > -1 && o.push(l.splice(n, 1)[0])
                        }
                        o = [...o, ...l]
                    } else o = n;
                    var i = o;
                    if (!(null != t && t.length) || !l) return i;
                    let r = i.filter(e => !t.includes(e.id));
                    return "remove" === l ? r : [...t.map(e => i.find(t => t.id === e)).filter(Boolean), ...r]
                }, r(e.options, "debugTable", "_getOrderColumnsFn"))
            }
        }, {
            getInitialState: e => ({
                columnPinning: M(),
                ...e
            }),
            getDefaultOptions: e => ({
                onColumnPinningChange: n("columnPinning", e)
            }),
            createColumn: (e, t) => {
                e.pin = l => {
                    let n = e.getLeafColumns().map(e => e.id).filter(Boolean);
                    t.setColumnPinning(e => {
                        var t, o, i, r, u, a;
                        return "right" === l ? {
                            left: (null != (i = null == e ? void 0 : e.left) ? i : []).filter(e => !(null != n && n.includes(e))),
                            right: [...(null != (r = null == e ? void 0 : e.right) ? r : []).filter(e => !(null != n && n.includes(e))), ...n]
                        } : "left" === l ? {
                            left: [...(null != (u = null == e ? void 0 : e.left) ? u : []).filter(e => !(null != n && n.includes(e))), ...n],
                            right: (null != (a = null == e ? void 0 : e.right) ? a : []).filter(e => !(null != n && n.includes(e)))
                        } : {
                            left: (null != (t = null == e ? void 0 : e.left) ? t : []).filter(e => !(null != n && n.includes(e))),
                            right: (null != (o = null == e ? void 0 : e.right) ? o : []).filter(e => !(null != n && n.includes(e)))
                        }
                    })
                }, e.getCanPin = () => e.getLeafColumns().some(e => {
                    var l, n, o;
                    return (null == (l = e.columnDef.enablePinning) || l) && (null == (n = null != (o = t.options.enableColumnPinning) ? o : t.options.enablePinning) || n)
                }), e.getIsPinned = () => {
                    let l = e.getLeafColumns().map(e => e.id),
                        {
                            left: n,
                            right: o
                        } = t.getState().columnPinning,
                        i = l.some(e => null == n ? void 0 : n.includes(e)),
                        r = l.some(e => null == o ? void 0 : o.includes(e));
                    return i ? "left" : !!r && "right"
                }, e.getPinnedIndex = () => {
                    var l, n;
                    let o = e.getIsPinned();
                    return o ? null != (l = null == (n = t.getState().columnPinning) || null == (n = n[o]) ? void 0 : n.indexOf(e.id)) ? l : -1 : 0
                }
            },
            createRow: (e, t) => {
                e.getCenterVisibleCells = i(() => [e._getAllVisibleCells(), t.getState().columnPinning.left, t.getState().columnPinning.right], (e, t, l) => {
                    let n = [...null != t ? t : [], ...null != l ? l : []];
                    return e.filter(e => !n.includes(e.column.id))
                }, r(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = i(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (null != t ? t : []).map(t => e.find(e => e.column.id === t)).filter(Boolean).map(e => ({ ...e,
                    position: "left"
                })), r(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = i(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (null != t ? t : []).map(t => e.find(e => e.column.id === t)).filter(Boolean).map(e => ({ ...e,
                    position: "right"
                })), r(t.options, "debugRows", "getRightVisibleCells"))
            },
            createTable: e => {
                e.setColumnPinning = t => null == e.options.onColumnPinningChange ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = t => {
                    var l, n;
                    return e.setColumnPinning(t ? M() : null != (l = null == (n = e.initialState) ? void 0 : n.columnPinning) ? l : M())
                }, e.getIsSomeColumnsPinned = t => {
                    var l, n, o;
                    let i = e.getState().columnPinning;
                    return t ? !!(null == (l = i[t]) ? void 0 : l.length) : !!((null == (n = i.left) ? void 0 : n.length) || (null == (o = i.right) ? void 0 : o.length))
                }, e.getLeftLeafColumns = i(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (null != t ? t : []).map(t => e.find(e => e.id === t)).filter(Boolean), r(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = i(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (null != t ? t : []).map(t => e.find(e => e.id === t)).filter(Boolean), r(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = i(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (e, t, l) => {
                    let n = [...null != t ? t : [], ...null != l ? l : []];
                    return e.filter(e => !n.includes(e.id))
                }, r(e.options, "debugColumns", "getCenterLeafColumns"))
            }
        }, {
            createColumn: (e, t) => {
                e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : new Map, e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
                    if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues()
                }
            }
        }, {
            getDefaultColumnDef: () => ({
                filterFn: "auto"
            }),
            getInitialState: e => ({
                columnFilters: [],
                ...e
            }),
            getDefaultOptions: e => ({
                onColumnFiltersChange: n("columnFilters", e),
                filterFromLeafRows: !1,
                maxLeafRowFilterDepth: 100
            }),
            createColumn: (e, t) => {
                e.getAutoFilterFn = () => {
                    let l = t.getCoreRowModel().flatRows[0],
                        n = null == l ? void 0 : l.getValue(e.id);
                    return "string" == typeof n ? h.includesString : "number" == typeof n ? h.inNumberRange : "boolean" == typeof n || null !== n && "object" == typeof n ? h.equals : Array.isArray(n) ? h.arrIncludes : h.weakEquals
                }, e.getFilterFn = () => {
                    var l, n;
                    return o(e.columnDef.filterFn) ? e.columnDef.filterFn : "auto" === e.columnDef.filterFn ? e.getAutoFilterFn() : null != (l = null == (n = t.options.filterFns) ? void 0 : n[e.columnDef.filterFn]) ? l : h[e.columnDef.filterFn]
                }, e.getCanFilter = () => {
                    var l, n, o;
                    return (null == (l = e.columnDef.enableColumnFilter) || l) && (null == (n = t.options.enableColumnFilters) || n) && (null == (o = t.options.enableFilters) || o) && !!e.accessorFn
                }, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
                    var l;
                    return null == (l = t.getState().columnFilters) || null == (l = l.find(t => t.id === e.id)) ? void 0 : l.value
                }, e.getFilterIndex = () => {
                    var l, n;
                    return null != (l = null == (n = t.getState().columnFilters) ? void 0 : n.findIndex(t => t.id === e.id)) ? l : -1
                }, e.setFilterValue = n => {
                    t.setColumnFilters(t => {
                        var o, i;
                        let r = e.getFilterFn(),
                            u = null == t ? void 0 : t.find(t => t.id === e.id),
                            a = l(n, u ? u.value : void 0);
                        if (b(r, a, e)) return null != (o = null == t ? void 0 : t.filter(t => t.id !== e.id)) ? o : [];
                        let g = {
                            id: e.id,
                            value: a
                        };
                        return u ? null != (i = null == t ? void 0 : t.map(t => t.id === e.id ? g : t)) ? i : [] : null != t && t.length ? [...t, g] : [g]
                    })
                }
            },
            createRow: (e, t) => {
                e.columnFilters = {}, e.columnFiltersMeta = {}
            },
            createTable: e => {
                e.setColumnFilters = t => {
                    let n = e.getAllLeafColumns();
                    null == e.options.onColumnFiltersChange || e.options.onColumnFiltersChange(e => {
                        var o;
                        return null == (o = l(t, e)) ? void 0 : o.filter(e => {
                            let t = n.find(t => t.id === e.id);
                            return !(t && b(t.getFilterFn(), e.value, t)) && !0
                        })
                    })
                }, e.resetColumnFilters = t => {
                    var l, n;
                    e.setColumnFilters(t ? [] : null != (l = null == (n = e.initialState) ? void 0 : n.columnFilters) ? l : [])
                }, 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()
            }
        }, {
            createTable: e => {
                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() : new Map, e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
                    if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues()
                }
            }
        }, {
            getInitialState: e => ({
                globalFilter: void 0,
                ...e
            }),
            getDefaultOptions: e => ({
                onGlobalFilterChange: n("globalFilter", e),
                globalFilterFn: "auto",
                getColumnCanGlobalFilter: t => {
                    var l;
                    let n = null == (l = e.getCoreRowModel().flatRows[0]) || null == (l = l._getAllCellsByColumnId()[t.id]) ? void 0 : l.getValue();
                    return "string" == typeof n || "number" == typeof n
                }
            }),
            createColumn: (e, t) => {
                e.getCanGlobalFilter = () => {
                    var l, n, o, i;
                    return (null == (l = e.columnDef.enableGlobalFilter) || l) && (null == (n = t.options.enableGlobalFilter) || n) && (null == (o = t.options.enableFilters) || o) && (null == (i = null == t.options.getColumnCanGlobalFilter ? void 0 : t.options.getColumnCanGlobalFilter(e)) || i) && !!e.accessorFn
                }
            },
            createTable: e => {
                e.getGlobalAutoFilterFn = () => h.includesString, e.getGlobalFilterFn = () => {
                    var t, l;
                    let {
                        globalFilterFn: n
                    } = e.options;
                    return o(n) ? n : "auto" === n ? e.getGlobalAutoFilterFn() : null != (t = null == (l = e.options.filterFns) ? void 0 : l[n]) ? t : h[n]
                }, e.setGlobalFilter = t => {
                    null == e.options.onGlobalFilterChange || e.options.onGlobalFilterChange(t)
                }, e.resetGlobalFilter = t => {
                    e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter)
                }
            }
        }, {
            getInitialState: e => ({
                sorting: [],
                ...e
            }),
            getDefaultColumnDef: () => ({
                sortingFn: "auto",
                sortUndefined: 1
            }),
            getDefaultOptions: e => ({
                onSortingChange: n("sorting", e),
                isMultiSortEvent: e => e.shiftKey
            }),
            createColumn: (e, t) => {
                e.getAutoSortingFn = () => {
                    let l = t.getFilteredRowModel().flatRows.slice(10),
                        n = !1;
                    for (let t of l) {
                        let l = null == t ? void 0 : t.getValue(e.id);
                        if ("[object Date]" === Object.prototype.toString.call(l)) return B.datetime;
                        if ("string" == typeof l && (n = !0, l.split(D).length > 1)) return B.alphanumeric
                    }
                    return n ? B.text : B.basic
                }, e.getAutoSortDir = () => {
                    let l = t.getFilteredRowModel().flatRows[0];
                    return "string" == typeof(null == l ? void 0 : l.getValue(e.id)) ? "asc" : "desc"
                }, e.getSortingFn = () => {
                    var l, n;
                    if (!e) throw Error();
                    return o(e.columnDef.sortingFn) ? e.columnDef.sortingFn : "auto" === e.columnDef.sortingFn ? e.getAutoSortingFn() : null != (l = null == (n = t.options.sortingFns) ? void 0 : n[e.columnDef.sortingFn]) ? l : B[e.columnDef.sortingFn]
                }, e.toggleSorting = (l, n) => {
                    let o = e.getNextSortingOrder(),
                        i = null != l;
                    t.setSorting(r => {
                        let u, a = null == r ? void 0 : r.find(t => t.id === e.id),
                            g = null == r ? void 0 : r.findIndex(t => t.id === e.id),
                            s = [],
                            d = i ? l : "desc" === o;
                        if ("toggle" != (u = null != r && r.length && e.getCanMultiSort() && n ? a ? "toggle" : "add" : null != r && r.length && g !== r.length - 1 ? "replace" : a ? "toggle" : "replace") || i || o || (u = "remove"), "add" === u) {
                            var p;
                            (s = [...r, {
                                id: e.id,
                                desc: d
                            }]).splice(0, s.length - (null != (p = t.options.maxMultiSortColCount) ? p : Number.MAX_SAFE_INTEGER))
                        } else s = "toggle" === u ? r.map(t => t.id === e.id ? { ...t,
                            desc: d
                        } : t) : "remove" === u ? r.filter(t => t.id !== e.id) : [{
                            id: e.id,
                            desc: d
                        }];
                        return s
                    })
                }, e.getFirstSortDir = () => {
                    var l, n;
                    return (null != (l = null != (n = e.columnDef.sortDescFirst) ? n : t.options.sortDescFirst) ? l : "desc" === e.getAutoSortDir()) ? "desc" : "asc"
                }, e.getNextSortingOrder = l => {
                    var n, o;
                    let i = e.getFirstSortDir(),
                        r = e.getIsSorted();
                    return r ? (r === i || null != (n = t.options.enableSortingRemoval) && !n || !!l && null != (o = t.options.enableMultiRemove) && !o) && ("desc" === r ? "asc" : "desc") : i
                }, e.getCanSort = () => {
                    var l, n;
                    return (null == (l = e.columnDef.enableSorting) || l) && (null == (n = t.options.enableSorting) || n) && !!e.accessorFn
                }, e.getCanMultiSort = () => {
                    var l, n;
                    return null != (l = null != (n = e.columnDef.enableMultiSort) ? n : t.options.enableMultiSort) ? l : !!e.accessorFn
                }, e.getIsSorted = () => {
                    var l;
                    let n = null == (l = t.getState().sorting) ? void 0 : l.find(t => t.id === e.id);
                    return !!n && (n.desc ? "desc" : "asc")
                }, e.getSortIndex = () => {
                    var l, n;
                    return null != (l = null == (n = t.getState().sorting) ? void 0 : n.findIndex(t => t.id === e.id)) ? l : -1
                }, e.clearSorting = () => {
                    t.setSorting(t => null != t && t.length ? t.filter(t => t.id !== e.id) : [])
                }, e.getToggleSortingHandler = () => {
                    let l = e.getCanSort();
                    return n => {
                        l && (null == n.persist || n.persist(), null == e.toggleSorting || e.toggleSorting(void 0, !!e.getCanMultiSort() && (null == t.options.isMultiSortEvent ? void 0 : t.options.isMultiSortEvent(n))))
                    }
                }
            },
            createTable: e => {
                e.setSorting = t => null == e.options.onSortingChange ? void 0 : e.options.onSortingChange(t), e.resetSorting = t => {
                    var l, n;
                    e.setSorting(t ? [] : null != (l = null == (n = e.initialState) ? void 0 : n.sorting) ? l : [])
                }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel) ? e.getPreSortedRowModel() : e._getSortedRowModel()
            }
        }, {
            getDefaultColumnDef: () => ({
                aggregatedCell: e => {
                    var t, l;
                    return null != (t = null == (l = e.getValue()) || null == l.toString ? void 0 : l.toString()) ? t : null
                },
                aggregationFn: "auto"
            }),
            getInitialState: e => ({
                grouping: [],
                ...e
            }),
            getDefaultOptions: e => ({
                onGroupingChange: n("grouping", e),
                groupedColumnMode: "reorder"
            }),
            createColumn: (e, t) => {
                e.toggleGrouping = () => {
                    t.setGrouping(t => null != t && t.includes(e.id) ? t.filter(t => t !== e.id) : [...null != t ? t : [], e.id])
                }, e.getCanGroup = () => {
                    var l, n;
                    return (null == (l = e.columnDef.enableGrouping) || l) && (null == (n = t.options.enableGrouping) || n) && (!!e.accessorFn || !!e.columnDef.getGroupingValue)
                }, e.getIsGrouped = () => {
                    var l;
                    return null == (l = t.getState().grouping) ? void 0 : l.includes(e.id)
                }, e.getGroupedIndex = () => {
                    var l;
                    return null == (l = t.getState().grouping) ? void 0 : l.indexOf(e.id)
                }, e.getToggleGroupingHandler = () => {
                    let t = e.getCanGroup();
                    return () => {
                        t && e.toggleGrouping()
                    }
                }, e.getAutoAggregationFn = () => {
                    let l = t.getCoreRowModel().flatRows[0],
                        n = null == l ? void 0 : l.getValue(e.id);
                    return "number" == typeof n ? F.sum : "[object Date]" === Object.prototype.toString.call(n) ? F.extent : void 0
                }, e.getAggregationFn = () => {
                    var l, n;
                    if (!e) throw Error();
                    return o(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : "auto" === e.columnDef.aggregationFn ? e.getAutoAggregationFn() : null != (l = null == (n = t.options.aggregationFns) ? void 0 : n[e.columnDef.aggregationFn]) ? l : F[e.columnDef.aggregationFn]
                }
            },
            createTable: e => {
                e.setGrouping = t => null == e.options.onGroupingChange ? void 0 : e.options.onGroupingChange(t), e.resetGrouping = t => {
                    var l, n;
                    e.setGrouping(t ? [] : null != (l = null == (n = e.initialState) ? void 0 : n.grouping) ? l : [])
                }, 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()
            },
            createRow: (e, t) => {
                e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = l => {
                    if (e._groupingValuesCache.hasOwnProperty(l)) return e._groupingValuesCache[l];
                    let n = t.getColumn(l);
                    return null != n && n.columnDef.getGroupingValue ? (e._groupingValuesCache[l] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[l]) : e.getValue(l)
                }, e._groupingValuesCache = {}
            },
            createCell: (e, t, l, n) => {
                e.getIsGrouped = () => t.getIsGrouped() && t.id === l.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && t.getIsGrouped(), e.getIsAggregated = () => {
                    var t;
                    return !e.getIsGrouped() && !e.getIsPlaceholder() && !!(null != (t = l.subRows) && t.length)
                }
            }
        }, {
            getInitialState: e => ({
                expanded: {},
                ...e
            }),
            getDefaultOptions: e => ({
                onExpandedChange: n("expanded", e),
                paginateExpandedRows: !0
            }),
            createTable: e => {
                let t = !1,
                    l = !1;
                e._autoResetExpanded = () => {
                    var n, o;
                    if (!t) return void e._queue(() => {
                        t = !0
                    });
                    if (null != (n = null != (o = e.options.autoResetAll) ? o : e.options.autoResetExpanded) ? n : !e.options.manualExpanding) {
                        if (l) return;
                        l = !0, e._queue(() => {
                            e.resetExpanded(), l = !1
                        })
                    }
                }, e.setExpanded = t => null == e.options.onExpandedChange ? void 0 : e.options.onExpandedChange(t), e.toggleAllRowsExpanded = t => {
                    (null != t ? t : !e.getIsAllRowsExpanded()) ? e.setExpanded(!0): e.setExpanded({})
                }, e.resetExpanded = t => {
                    var l, n;
                    e.setExpanded(t ? {} : null != (l = null == (n = e.initialState) ? void 0 : n.expanded) ? l : {})
                }, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some(e => e.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => t => {
                    null == t.persist || t.persist(), e.toggleAllRowsExpanded()
                }, e.getIsSomeRowsExpanded = () => {
                    let t = e.getState().expanded;
                    return !0 === t || Object.values(t).some(Boolean)
                }, e.getIsAllRowsExpanded = () => {
                    let t = e.getState().expanded;
                    return "boolean" == typeof t ? !0 === t : !(!Object.keys(t).length || e.getRowModel().flatRows.some(e => !e.getIsExpanded()))
                }, e.getExpandedDepth = () => {
                    let t = 0;
                    return (!0 === e.getState().expanded ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach(e => {
                        let l = e.split(".");
                        t = Math.max(t, l.length)
                    }), t
                }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel) ? e.getPreExpandedRowModel() : e._getExpandedRowModel()
            },
            createRow: (e, t) => {
                e.toggleExpanded = l => {
                    t.setExpanded(n => {
                        var o;
                        let i = !0 === n || !!(null != n && n[e.id]),
                            r = {};
                        if (!0 === n ? Object.keys(t.getRowModel().rowsById).forEach(e => {
                                r[e] = !0
                            }) : r = n, l = null != (o = l) ? o : !i, !i && l) return { ...r,
                            [e.id]: !0
                        };
                        if (i && !l) {
                            let {
                                [e.id]: t, ...l
                            } = r;
                            return l
                        }
                        return n
                    })
                }, e.getIsExpanded = () => {
                    var l;
                    let n = t.getState().expanded;
                    return !!(null != (l = null == t.options.getIsRowExpanded ? void 0 : t.options.getIsRowExpanded(e)) ? l : !0 === n || (null == n ? void 0 : n[e.id]))
                }, e.getCanExpand = () => {
                    var l, n, o;
                    return null != (l = null == t.options.getRowCanExpand ? void 0 : t.options.getRowCanExpand(e)) ? l : (null == (n = t.options.enableExpanding) || n) && !!(null != (o = e.subRows) && o.length)
                }, e.getIsAllParentsExpanded = () => {
                    let l = !0,
                        n = e;
                    for (; l && n.parentId;) l = (n = t.getRow(n.parentId, !0)).getIsExpanded();
                    return l
                }, e.getToggleExpandedHandler = () => {
                    let t = e.getCanExpand();
                    return () => {
                        t && e.toggleExpanded()
                    }
                }
            }
        }, {
            getInitialState: e => ({ ...e,
                pagination: { ...y(),
                    ...null == e ? void 0 : e.pagination
                }
            }),
            getDefaultOptions: e => ({
                onPaginationChange: n("pagination", e)
            }),
            createTable: e => {
                let t = !1,
                    n = !1;
                e._autoResetPageIndex = () => {
                    var l, o;
                    if (!t) return void e._queue(() => {
                        t = !0
                    });
                    if (null != (l = null != (o = e.options.autoResetAll) ? o : e.options.autoResetPageIndex) ? l : !e.options.manualPagination) {
                        if (n) return;
                        n = !0, e._queue(() => {
                            e.resetPageIndex(), n = !1
                        })
                    }
                }, e.setPagination = t => null == e.options.onPaginationChange ? void 0 : e.options.onPaginationChange(e => l(t, e)), e.resetPagination = t => {
                    var l;
                    e.setPagination(t ? y() : null != (l = e.initialState.pagination) ? l : y())
                }, e.setPageIndex = t => {
                    e.setPagination(n => {
                        let o = l(t, n.pageIndex);
                        return o = Math.max(0, Math.min(o, void 0 === e.options.pageCount || -1 === e.options.pageCount ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1)), { ...n,
                            pageIndex: o
                        }
                    })
                }, e.resetPageIndex = t => {
                    var l, n;
                    e.setPageIndex(t ? 0 : null != (l = null == (n = e.initialState) || null == (n = n.pagination) ? void 0 : n.pageIndex) ? l : 0)
                }, e.resetPageSize = t => {
                    var l, n;
                    e.setPageSize(t ? 10 : null != (l = null == (n = e.initialState) || null == (n = n.pagination) ? void 0 : n.pageSize) ? l : 10)
                }, e.setPageSize = t => {
                    e.setPagination(e => {
                        let n = Math.max(1, l(t, e.pageSize)),
                            o = Math.floor(e.pageSize * e.pageIndex / n);
                        return { ...e,
                            pageIndex: o,
                            pageSize: n
                        }
                    })
                }, e.setPageCount = t => e.setPagination(n => {
                    var o;
                    let i = l(t, null != (o = e.options.pageCount) ? o : -1);
                    return "number" == typeof i && (i = Math.max(-1, i)), { ...n,
                        pageCount: i
                    }
                }), e.getPageOptions = i(() => [e.getPageCount()], e => {
                    let t = [];
                    return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t
                }, r(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
                    let {
                        pageIndex: t
                    } = e.getState().pagination, l = e.getPageCount();
                    return -1 === l || 0 !== l && t < l - 1
                }, e.previousPage = () => e.setPageIndex(e => e - 1), e.nextPage = () => e.setPageIndex(e => e + 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.options.manualPagination || !e._getPaginationRowModel) ? e.getPrePaginationRowModel() : e._getPaginationRowModel(), e.getPageCount = () => {
                    var t;
                    return null != (t = e.options.pageCount) ? t : Math.ceil(e.getRowCount() / e.getState().pagination.pageSize)
                }, e.getRowCount = () => {
                    var t;
                    return null != (t = e.options.rowCount) ? t : e.getPrePaginationRowModel().rows.length
                }
            }
        }, {
            getInitialState: e => ({
                rowPinning: G(),
                ...e
            }),
            getDefaultOptions: e => ({
                onRowPinningChange: n("rowPinning", e)
            }),
            createRow: (e, t) => {
                e.pin = (l, n, o) => {
                    let i = n ? e.getLeafRows().map(e => {
                            let {
                                id: t
                            } = e;
                            return t
                        }) : [],
                        r = new Set([...o ? e.getParentRows().map(e => {
                            let {
                                id: t
                            } = e;
                            return t
                        }) : [], e.id, ...i]);
                    t.setRowPinning(e => {
                        var t, n, o, i, u, a;
                        return "bottom" === l ? {
                            top: (null != (o = null == e ? void 0 : e.top) ? o : []).filter(e => !(null != r && r.has(e))),
                            bottom: [...(null != (i = null == e ? void 0 : e.bottom) ? i : []).filter(e => !(null != r && r.has(e))), ...Array.from(r)]
                        } : "top" === l ? {
                            top: [...(null != (u = null == e ? void 0 : e.top) ? u : []).filter(e => !(null != r && r.has(e))), ...Array.from(r)],
                            bottom: (null != (a = null == e ? void 0 : e.bottom) ? a : []).filter(e => !(null != r && r.has(e)))
                        } : {
                            top: (null != (t = null == e ? void 0 : e.top) ? t : []).filter(e => !(null != r && r.has(e))),
                            bottom: (null != (n = null == e ? void 0 : e.bottom) ? n : []).filter(e => !(null != r && r.has(e)))
                        }
                    })
                }, e.getCanPin = () => {
                    var l;
                    let {
                        enableRowPinning: n,
                        enablePinning: o
                    } = t.options;
                    return "function" == typeof n ? n(e) : null == (l = null != n ? n : o) || l
                }, e.getIsPinned = () => {
                    let l = [e.id],
                        {
                            top: n,
                            bottom: o
                        } = t.getState().rowPinning,
                        i = l.some(e => null == n ? void 0 : n.includes(e)),
                        r = l.some(e => null == o ? void 0 : o.includes(e));
                    return i ? "top" : !!r && "bottom"
                }, e.getPinnedIndex = () => {
                    var l, n;
                    let o = e.getIsPinned();
                    if (!o) return -1;
                    let i = null == (l = "top" === o ? t.getTopRows() : t.getBottomRows()) ? void 0 : l.map(e => {
                        let {
                            id: t
                        } = e;
                        return t
                    });
                    return null != (n = null == i ? void 0 : i.indexOf(e.id)) ? n : -1
                }
            },
            createTable: e => {
                e.setRowPinning = t => null == e.options.onRowPinningChange ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = t => {
                    var l, n;
                    return e.setRowPinning(t ? G() : null != (l = null == (n = e.initialState) ? void 0 : n.rowPinning) ? l : G())
                }, e.getIsSomeRowsPinned = t => {
                    var l, n, o;
                    let i = e.getState().rowPinning;
                    return t ? !!(null == (l = i[t]) ? void 0 : l.length) : !!((null == (n = i.top) ? void 0 : n.length) || (null == (o = i.bottom) ? void 0 : o.length))
                }, e._getPinnedRows = (t, l, n) => {
                    var o;
                    return (null == (o = e.options.keepPinnedRows) || o ? (null != l ? l : []).map(t => {
                        let l = e.getRow(t, !0);
                        return l.getIsAllParentsExpanded() ? l : null
                    }) : (null != l ? l : []).map(e => t.find(t => t.id === e))).filter(Boolean).map(e => ({ ...e,
                        position: n
                    }))
                }, e.getTopRows = i(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, l) => e._getPinnedRows(t, l, "top"), r(e.options, "debugRows", "getTopRows")), e.getBottomRows = i(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, l) => e._getPinnedRows(t, l, "bottom"), r(e.options, "debugRows", "getBottomRows")), e.getCenterRows = i(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (e, t, l) => {
                    let n = new Set([...null != t ? t : [], ...null != l ? l : []]);
                    return e.filter(e => !n.has(e.id))
                }, r(e.options, "debugRows", "getCenterRows"))
            }
        }, {
            getInitialState: e => ({
                rowSelection: {},
                ...e
            }),
            getDefaultOptions: e => ({
                onRowSelectionChange: n("rowSelection", e),
                enableRowSelection: !0,
                enableMultiRowSelection: !0,
                enableSubRowSelection: !0
            }),
            createTable: e => {
                e.setRowSelection = t => null == e.options.onRowSelectionChange ? void 0 : e.options.onRowSelectionChange(t), e.resetRowSelection = t => {
                    var l;
                    return e.setRowSelection(t ? {} : null != (l = e.initialState.rowSelection) ? l : {})
                }, e.toggleAllRowsSelected = t => {
                    e.setRowSelection(l => {
                        t = void 0 !== t ? t : !e.getIsAllRowsSelected();
                        let n = { ...l
                            },
                            o = e.getPreGroupedRowModel().flatRows;
                        return t ? o.forEach(e => {
                            e.getCanSelect() && (n[e.id] = !0)
                        }) : o.forEach(e => {
                            delete n[e.id]
                        }), n
                    })
                }, e.toggleAllPageRowsSelected = t => e.setRowSelection(l => {
                    let n = void 0 !== t ? t : !e.getIsAllPageRowsSelected(),
                        o = { ...l
                        };
                    return e.getRowModel().rows.forEach(t => {
                        L(o, t.id, n, !0, e)
                    }), o
                }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = i(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, l) => Object.keys(t).length ? E(e, l) : {
                    rows: [],
                    flatRows: [],
                    rowsById: {}
                }, r(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = i(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, l) => Object.keys(t).length ? E(e, l) : {
                    rows: [],
                    flatRows: [],
                    rowsById: {}
                }, r(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = i(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, l) => Object.keys(t).length ? E(e, l) : {
                    rows: [],
                    flatRows: [],
                    rowsById: {}
                }, r(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
                    let t = e.getFilteredRowModel().flatRows,
                        {
                            rowSelection: l
                        } = e.getState(),
                        n = !!(t.length && Object.keys(l).length);
                    return n && t.some(e => e.getCanSelect() && !l[e.id]) && (n = !1), n
                }, e.getIsAllPageRowsSelected = () => {
                    let t = e.getPaginationRowModel().flatRows.filter(e => e.getCanSelect()),
                        {
                            rowSelection: l
                        } = e.getState(),
                        n = !!t.length;
                    return n && t.some(e => !l[e.id]) && (n = !1), n
                }, e.getIsSomeRowsSelected = () => {
                    var t;
                    let l = Object.keys(null != (t = e.getState().rowSelection) ? t : {}).length;
                    return l > 0 && l < e.getFilteredRowModel().flatRows.length
                }, e.getIsSomePageRowsSelected = () => {
                    let t = e.getPaginationRowModel().flatRows;
                    return !e.getIsAllPageRowsSelected() && t.filter(e => e.getCanSelect()).some(e => e.getIsSelected() || e.getIsSomeSelected())
                }, e.getToggleAllRowsSelectedHandler = () => t => {
                    e.toggleAllRowsSelected(t.target.checked)
                }, e.getToggleAllPageRowsSelectedHandler = () => t => {
                    e.toggleAllPageRowsSelected(t.target.checked)
                }
            },
            createRow: (e, t) => {
                e.toggleSelected = (l, n) => {
                    let o = e.getIsSelected();
                    t.setRowSelection(i => {
                        var r;
                        if (l = void 0 !== l ? l : !o, e.getCanSelect() && o === l) return i;
                        let u = { ...i
                        };
                        return L(u, e.id, l, null == (r = null == n ? void 0 : n.selectChildren) || r, t), u
                    })
                }, e.getIsSelected = () => {
                    let {
                        rowSelection: l
                    } = t.getState();
                    return A(e, l)
                }, e.getIsSomeSelected = () => {
                    let {
                        rowSelection: l
                    } = t.getState();
                    return "some" === H(e, l)
                }, e.getIsAllSubRowsSelected = () => {
                    let {
                        rowSelection: l
                    } = t.getState();
                    return "all" === H(e, l)
                }, e.getCanSelect = () => {
                    var l;
                    return "function" == typeof t.options.enableRowSelection ? t.options.enableRowSelection(e) : null == (l = t.options.enableRowSelection) || l
                }, e.getCanSelectSubRows = () => {
                    var l;
                    return "function" == typeof t.options.enableSubRowSelection ? t.options.enableSubRowSelection(e) : null == (l = t.options.enableSubRowSelection) || l
                }, e.getCanMultiSelect = () => {
                    var l;
                    return "function" == typeof t.options.enableMultiRowSelection ? t.options.enableMultiRowSelection(e) : null == (l = t.options.enableMultiRowSelection) || l
                }, e.getToggleSelectedHandler = () => {
                    let t = e.getCanSelect();
                    return l => {
                        var n;
                        t && e.toggleSelected(null == (n = l.target) ? void 0 : n.checked)
                    }
                }
            }
        }, {
            getDefaultColumnDef: () => V,
            getInitialState: e => ({
                columnSizing: {},
                columnSizingInfo: P(),
                ...e
            }),
            getDefaultOptions: e => ({
                columnResizeMode: "onEnd",
                columnResizeDirection: "ltr",
                onColumnSizingChange: n("columnSizing", e),
                onColumnSizingInfoChange: n("columnSizingInfo", e)
            }),
            createColumn: (e, t) => {
                e.getSize = () => {
                    var l, n, o;
                    let i = t.getState().columnSizing[e.id];
                    return Math.min(Math.max(null != (l = e.columnDef.minSize) ? l : V.minSize, null != (n = null != i ? i : e.columnDef.size) ? n : V.size), null != (o = e.columnDef.maxSize) ? o : V.maxSize)
                }, e.getStart = i(e => [e, _(t, e), t.getState().columnSizing], (t, l) => l.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), r(t.options, "debugColumns", "getStart")), e.getAfter = i(e => [e, _(t, e), t.getState().columnSizing], (t, l) => l.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), r(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
                    t.setColumnSizing(t => {
                        let {
                            [e.id]: l, ...n
                        } = t;
                        return n
                    })
                }, e.getCanResize = () => {
                    var l, n;
                    return (null == (l = e.columnDef.enableResizing) || l) && (null == (n = t.options.enableColumnResizing) || n)
                }, e.getIsResizing = () => t.getState().columnSizingInfo.isResizingColumn === e.id
            },
            createHeader: (e, t) => {
                e.getSize = () => {
                    let t = 0,
                        l = e => {
                            if (e.subHeaders.length) e.subHeaders.forEach(l);
                            else {
                                var n;
                                t += null != (n = e.column.getSize()) ? n : 0
                            }
                        };
                    return l(e), t
                }, e.getStart = () => {
                    if (e.index > 0) {
                        let t = e.headerGroup.headers[e.index - 1];
                        return t.getStart() + t.getSize()
                    }
                    return 0
                }, e.getResizeHandler = l => {
                    let n = t.getColumn(e.column.id),
                        o = null == n ? void 0 : n.getCanResize();
                    return i => {
                        if (!n || !o || (null == i.persist || i.persist(), x(i) && i.touches && i.touches.length > 1)) return;
                        let r = e.getSize(),
                            u = e ? e.getLeafHeaders().map(e => [e.column.id, e.column.getSize()]) : [
                                [n.id, n.getSize()]
                            ],
                            a = x(i) ? Math.round(i.touches[0].clientX) : i.clientX,
                            g = {},
                            s = (e, l) => {
                                "number" == typeof l && (t.setColumnSizingInfo(e => {
                                    var n, o;
                                    let i = "rtl" === t.options.columnResizeDirection ? -1 : 1,
                                        r = (l - (null != (n = null == e ? void 0 : e.startOffset) ? n : 0)) * i,
                                        u = Math.max(r / (null != (o = null == e ? void 0 : e.startSize) ? o : 0), -.999999);
                                    return e.columnSizingStart.forEach(e => {
                                        let [t, l] = e;
                                        g[t] = Math.round(100 * Math.max(l + l * u, 0)) / 100
                                    }), { ...e,
                                        deltaOffset: r,
                                        deltaPercentage: u
                                    }
                                }), ("onChange" === t.options.columnResizeMode || "end" === e) && t.setColumnSizing(e => ({ ...e,
                                    ...g
                                })))
                            },
                            d = e => {
                                s("end", e), t.setColumnSizingInfo(e => ({ ...e,
                                    isResizingColumn: !1,
                                    startOffset: null,
                                    startSize: null,
                                    deltaOffset: null,
                                    deltaPercentage: null,
                                    columnSizingStart: []
                                }))
                            },
                            p = l || ("u" > typeof document ? document : null),
                            c = {
                                moveHandler: e => s("move", e.clientX),
                                upHandler: e => {
                                    null == p || p.removeEventListener("mousemove", c.moveHandler), null == p || p.removeEventListener("mouseup", c.upHandler), d(e.clientX)
                                }
                            },
                            f = {
                                moveHandler: e => (e.cancelable && (e.preventDefault(), e.stopPropagation()), s("move", e.touches[0].clientX), !1),
                                upHandler: e => {
                                    var t;
                                    null == p || p.removeEventListener("touchmove", f.moveHandler), null == p || p.removeEventListener("touchend", f.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), d(null == (t = e.touches[0]) ? void 0 : t.clientX)
                                }
                            },
                            m = !! function() {
                                if ("boolean" == typeof I) return I;
                                let e = !1;
                                try {
                                    let t = () => {};
                                    window.addEventListener("test", t, {
                                        get passive() {
                                            return e = !0, !1
                                        }
                                    }), window.removeEventListener("test", t)
                                } catch (t) {
                                    e = !1
                                }
                                return I = e
                            }() && {
                                passive: !1
                            };
                        x(i) ? (null == p || p.addEventListener("touchmove", f.moveHandler, m), null == p || p.addEventListener("touchend", f.upHandler, m)) : (null == p || p.addEventListener("mousemove", c.moveHandler, m), null == p || p.addEventListener("mouseup", c.upHandler, m)), t.setColumnSizingInfo(e => ({ ...e,
                            startOffset: a,
                            startSize: r,
                            deltaOffset: 0,
                            deltaPercentage: 0,
                            columnSizingStart: u,
                            isResizingColumn: n.id
                        }))
                    }
                }
            },
            createTable: e => {
                e.setColumnSizing = t => null == e.options.onColumnSizingChange ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = t => null == e.options.onColumnSizingInfoChange ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = t => {
                    var l;
                    e.setColumnSizing(t ? {} : null != (l = e.initialState.columnSizing) ? l : {})
                }, e.resetHeaderSizeInfo = t => {
                    var l;
                    e.setColumnSizingInfo(t ? P() : null != (l = e.initialState.columnSizingInfo) ? l : P())
                }, e.getTotalSize = () => {
                    var t, l;
                    return null != (t = null == (l = e.getHeaderGroups()[0]) ? void 0 : l.headers.reduce((e, t) => e + t.getSize(), 0)) ? t : 0
                }, e.getLeftTotalSize = () => {
                    var t, l;
                    return null != (t = null == (l = e.getLeftHeaderGroups()[0]) ? void 0 : l.headers.reduce((e, t) => e + t.getSize(), 0)) ? t : 0
                }, e.getCenterTotalSize = () => {
                    var t, l;
                    return null != (t = null == (l = e.getCenterHeaderGroups()[0]) ? void 0 : l.headers.reduce((e, t) => e + t.getSize(), 0)) ? t : 0
                }, e.getRightTotalSize = () => {
                    var t, l;
                    return null != (t = null == (l = e.getRightHeaderGroups()[0]) ? void 0 : l.headers.reduce((e, t) => e + t.getSize(), 0)) ? t : 0
                }
            }
        }];

    function k(e) {
        var t, n;
        let o = [...q, ...null != (t = e._features) ? t : []],
            u = {
                _features: o
            },
            a = u._features.reduce((e, t) => Object.assign(e, null == t.getDefaultOptions ? void 0 : t.getDefaultOptions(u)), {}),
            g = { ...null != (n = e.initialState) ? n : {}
            };
        u._features.forEach(e => {
            var t;
            g = null != (t = null == e.getInitialState ? void 0 : e.getInitialState(g)) ? t : g
        });
        let s = [],
            d = !1,
            p = {
                _features: o,
                options: { ...a,
                    ...e
                },
                initialState: g,
                _queue: e => {
                    s.push(e), d || (d = !0, Promise.resolve().then(() => {
                        for (; s.length;) s.shift()();
                        d = !1
                    }).catch(e => setTimeout(() => {
                        throw e
                    })))
                },
                reset: () => {
                    u.setState(u.initialState)
                },
                setOptions: e => {
                    var t;
                    t = l(e, u.options), u.options = u.options.mergeOptions ? u.options.mergeOptions(a, t) : { ...a,
                        ...t
                    }
                },
                getState: () => u.options.state,
                setState: e => {
                    null == u.options.onStateChange || u.options.onStateChange(e)
                },
                _getRowId: (e, t, l) => {
                    var n;
                    return null != (n = null == u.options.getRowId ? void 0 : u.options.getRowId(e, t, l)) ? n : `${l?[l.id,t].join("."):t}`
                },
                getCoreRowModel: () => (u._getCoreRowModel || (u._getCoreRowModel = u.options.getCoreRowModel(u)), u._getCoreRowModel()),
                getRowModel: () => u.getPaginationRowModel(),
                getRow: (e, t) => {
                    let l = (t ? u.getPrePaginationRowModel() : u.getRowModel()).rowsById[e];
                    if (!l && !(l = u.getCoreRowModel().rowsById[e])) throw Error();
                    return l
                },
                _getDefaultColumnDef: i(() => [u.options.defaultColumn], e => {
                    var t;
                    return e = null != (t = e) ? t : {}, {
                        header: e => {
                            let t = e.header.column.columnDef;
                            return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null
                        },
                        cell: e => {
                            var t, l;
                            return null != (t = null == (l = e.renderValue()) || null == l.toString ? void 0 : l.toString()) ? t : null
                        },
                        ...u._features.reduce((e, t) => Object.assign(e, null == t.getDefaultColumnDef ? void 0 : t.getDefaultColumnDef()), {}),
                        ...e
                    }
                }, r(e, "debugColumns", "_getDefaultColumnDef")),
                _getColumnDefs: () => u.options.columns,
                getAllColumns: i(() => [u._getColumnDefs()], e => {
                    let t = function(e, l, n) {
                        return void 0 === n && (n = 0), e.map(e => {
                            let o = function(e, t, l, n) {
                                var o, u;
                                let a, g = { ...e._getDefaultColumnDef(),
                                        ...t
                                    },
                                    s = g.accessorKey,
                                    d = null != (o = null != (u = g.id) ? u : s ? "function" == typeof String.prototype.replaceAll ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) ? o : "string" == typeof g.header ? g.header : void 0;
                                if (g.accessorFn ? a = g.accessorFn : s && (a = s.includes(".") ? e => {
                                        let t = e;
                                        for (let e of s.split(".")) {
                                            var l;
                                            t = null == (l = t) ? void 0 : l[e]
                                        }
                                        return t
                                    } : e => e[g.accessorKey]), !d) throw Error();
                                let p = {
                                    id: `${String(d)}`,
                                    accessorFn: a,
                                    parent: n,
                                    depth: l,
                                    columnDef: g,
                                    columns: [],
                                    getFlatColumns: i(() => [!0], () => {
                                        var e;
                                        return [p, ...null == (e = p.columns) ? void 0 : e.flatMap(e => e.getFlatColumns())]
                                    }, r(e.options, "debugColumns", "column.getFlatColumns")),
                                    getLeafColumns: i(() => [e._getOrderColumnsFn()], e => {
                                        var t;
                                        return null != (t = p.columns) && t.length ? e(p.columns.flatMap(e => e.getLeafColumns())) : [p]
                                    }, r(e.options, "debugColumns", "column.getLeafColumns"))
                                };
                                for (let t of e._features) null == t.createColumn || t.createColumn(p, e);
                                return p
                            }(u, e, n, l);
                            return o.columns = e.columns ? t(e.columns, o, n + 1) : [], o
                        })
                    };
                    return t(e)
                }, r(e, "debugColumns", "getAllColumns")),
                getAllFlatColumns: i(() => [u.getAllColumns()], e => e.flatMap(e => e.getFlatColumns()), r(e, "debugColumns", "getAllFlatColumns")),
                _getAllFlatColumnsById: i(() => [u.getAllFlatColumns()], e => e.reduce((e, t) => (e[t.id] = t, e), {}), r(e, "debugColumns", "getAllFlatColumnsById")),
                getAllLeafColumns: i(() => [u.getAllColumns(), u._getOrderColumnsFn()], (e, t) => t(e.flatMap(e => e.getLeafColumns())), r(e, "debugColumns", "getAllLeafColumns")),
                getColumn: e => u._getAllFlatColumnsById()[e]
            };
        Object.assign(u, p);
        for (let e = 0; e < u._features.length; e++) {
            let t = u._features[e];
            null == t || null == t.createTable || t.createTable(u)
        }
        return u
    }
    e.s(["createTable", 0, k, "getCoreRowModel", 0, function() {
        return e => i(() => [e.options.data], t => {
            let l = {
                    rows: [],
                    flatRows: [],
                    rowsById: {}
                },
                n = function(t, o, i) {
                    void 0 === o && (o = 0);
                    let r = [];
                    for (let a = 0; a < t.length; a++) {
                        let g = s(e, e._getRowId(t[a], a, i), t[a], a, o, void 0, null == i ? void 0 : i.id);
                        if (l.flatRows.push(g), l.rowsById[g.id] = g, r.push(g), e.options.getSubRows) {
                            var u;
                            g.originalSubRows = e.options.getSubRows(t[a], a), null != (u = g.originalSubRows) && u.length && (g.subRows = n(g.originalSubRows, o + 1, g))
                        }
                    }
                    return r
                };
            return l.rows = n(t), l
        }, r(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()))
    }, "getFilteredRowModel", 0, function() {
        return e => i(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (t, l, n) => {
            var o, i, r, u, a, g, d, p, c, f;
            let m, C, w, v, S, h, R, b, F, M;
            if (!t.rows.length || !(null != l && l.length) && !n) {
                for (let e = 0; e < t.flatRows.length; e++) t.flatRows[e].columnFilters = {}, t.flatRows[e].columnFiltersMeta = {};
                return t
            }
            let V = [],
                P = [];
            (null != l ? l : []).forEach(t => {
                var l;
                let n = e.getColumn(t.id);
                if (!n) return;
                let o = n.getFilterFn();
                o && V.push({
                    id: t.id,
                    filterFn: o,
                    resolvedValue: null != (l = null == o.resolveFilterValue ? void 0 : o.resolveFilterValue(t.value)) ? l : t.value
                })
            });
            let I = (null != l ? l : []).map(e => e.id),
                x = e.getGlobalFilterFn(),
                _ = e.getAllLeafColumns().filter(e => e.getCanGlobalFilter());
            n && x && _.length && (I.push("__global__"), _.forEach(e => {
                var t;
                P.push({
                    id: e.id,
                    filterFn: x,
                    resolvedValue: null != (t = null == x.resolveFilterValue ? void 0 : x.resolveFilterValue(n)) ? t : n
                })
            }));
            for (let e = 0; e < t.flatRows.length; e++) {
                let l = t.flatRows[e];
                if (l.columnFilters = {}, V.length)
                    for (let e = 0; e < V.length; e++) {
                        let t = (m = V[e]).id;
                        l.columnFilters[t] = m.filterFn(l, t, m.resolvedValue, e => {
                            l.columnFiltersMeta[t] = e
                        })
                    }
                if (P.length) {
                    for (let e = 0; e < P.length; e++) {
                        let t = (C = P[e]).id;
                        if (C.filterFn(l, t, C.resolvedValue, e => {
                                l.columnFiltersMeta[t] = e
                            })) {
                            l.columnFilters.__global__ = !0;
                            break
                        }
                    }!0 !== l.columnFilters.__global__ && (l.columnFilters.__global__ = !1)
                }
            }
            return o = t.rows, i = e => {
                for (let t = 0; t < I.length; t++)
                    if (!1 === e.columnFilters[I[t]]) return !1;
                return !0
            }, e.options.filterFromLeafRows ? (r = o, u = i, w = [], v = {}, S = null != (g = (a = e).options.maxLeafRowFilterDepth) ? g : 100, {
                rows: (h = function(e, t) {
                    void 0 === t && (t = 0);
                    let l = [];
                    for (let o = 0; o < e.length; o++) {
                        var n;
                        let i = e[o],
                            r = s(a, i.id, i.original, i.index, i.depth, void 0, i.parentId);
                        if (r.columnFilters = i.columnFilters, null != (n = i.subRows) && n.length && t < S) {
                            if (r.subRows = h(i.subRows, t + 1), u(i = r) && !r.subRows.length || u(i) || r.subRows.length) {
                                l.push(i), v[i.id] = i, w.push(i);
                                continue
                            }
                        } else u(i = r) && (l.push(i), v[i.id] = i, w.push(i))
                    }
                    return l
                })(r),
                flatRows: w,
                rowsById: v
            }) : (d = o, p = i, R = [], b = {}, F = null != (f = (c = e).options.maxLeafRowFilterDepth) ? f : 100, {
                rows: (M = function(e, t) {
                    void 0 === t && (t = 0);
                    let l = [];
                    for (let o = 0; o < e.length; o++) {
                        let i = e[o];
                        if (p(i)) {
                            var n;
                            if (null != (n = i.subRows) && n.length && t < F) {
                                let e = s(c, i.id, i.original, i.index, i.depth, void 0, i.parentId);
                                e.subRows = M(i.subRows, t + 1), i = e
                            }
                            l.push(i), R.push(i), b[i.id] = i
                        }
                    }
                    return l
                })(d),
                flatRows: R,
                rowsById: b
            })
        }, r(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()))
    }, "getSortedRowModel", 0, function() {
        return e => i(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, l) => {
            if (!l.rows.length || !(null != t && t.length)) return l;
            let n = e.getState().sorting,
                o = [],
                i = n.filter(t => {
                    var l;
                    return null == (l = e.getColumn(t.id)) ? void 0 : l.getCanSort()
                }),
                r = {};
            i.forEach(t => {
                let l = e.getColumn(t.id);
                l && (r[t.id] = {
                    sortUndefined: l.columnDef.sortUndefined,
                    invertSorting: l.columnDef.invertSorting,
                    sortingFn: l.getSortingFn()
                })
            });
            let u = e => {
                let t = e.map(e => ({ ...e
                }));
                return t.sort((e, t) => {
                    for (let n = 0; n < i.length; n += 1) {
                        var l;
                        let o = i[n],
                            u = r[o.id],
                            a = u.sortUndefined,
                            g = null != (l = null == o ? void 0 : o.desc) && l,
                            s = 0;
                        if (a) {
                            let l = e.getValue(o.id),
                                n = t.getValue(o.id),
                                i = void 0 === l,
                                r = void 0 === n;
                            if (i || r) {
                                if ("first" === a) return i ? -1 : 1;
                                if ("last" === a) return i ? 1 : -1;
                                s = i && r ? 0 : i ? a : -a
                            }
                        }
                        if (0 === s && (s = u.sortingFn(e, t, o.id)), 0 !== s) return g && (s *= -1), u.invertSorting && (s *= -1), s
                    }
                    return e.index - t.index
                }), t.forEach(e => {
                    var t;
                    o.push(e), null != (t = e.subRows) && t.length && (e.subRows = u(e.subRows))
                }), t
            };
            return {
                rows: u(l.rows),
                flatRows: o,
                rowsById: l.rowsById
            }
        }, r(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()))
    }], 53382), e.s(["flexRender", 0, function(e, l) {
        var n, o, i;
        let r;
        return e ? "function" == typeof(o = n = e) && (r = Object.getPrototypeOf(o)).prototype && r.prototype.isReactComponent || "function" == typeof n || "object" == typeof(i = n) && "symbol" == typeof i.$$typeof && ["react.memo", "react.forward_ref"].includes(i.$$typeof.description) ? t.createElement(e, l) : e : null
    }, "useReactTable", 0, function(e) {
        let l = {
                state: {},
                onStateChange: () => {},
                renderFallbackValue: null,
                ...e
            },
            [n] = t.useState(() => ({
                current: k(l)
            })),
            [o, i] = t.useState(() => n.current.initialState);
        return n.current.setOptions(t => ({ ...t,
            ...e,
            state: { ...o,
                ...e.state
            },
            onStateChange: t => {
                i(t), null == e.onStateChange || e.onStateChange(t)
            }
        })), n.current
    }], 181687)
}]);

//# debugId=48c3e4c6-75e0-39a8-1952-66477c69a238