prlg-ui 1.8.339 → 1.8.341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DpwRE3qr.js → index-BPJT-DOc.js} +461 -514
- package/dist/{index-Dp7bcaNg.cjs → index-vFxzmPvm.cjs} +4 -4
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +2012 -1961
- package/dist/reka-ui/index.cjs.js +5 -5
- package/dist/reka-ui/index.es.js +3933 -3902
- package/dist/rekaUI.d.ts +19 -14
- package/dist/scss/vars.scss +1 -2
- package/package.json +1 -1
- package/dist/fonts/Inter/.DS_Store +0 -0
|
@@ -1,128 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const ln = {
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "button__content"
|
|
6
|
-
}, sn = /* @__PURE__ */ yt({
|
|
7
|
-
__name: "Button",
|
|
8
|
-
props: {
|
|
9
|
-
label: {},
|
|
10
|
-
size: { default: "default" },
|
|
11
|
-
variant: { default: "primary" },
|
|
12
|
-
url: {},
|
|
13
|
-
rounded: { type: Boolean, default: !1 },
|
|
14
|
-
disabled: { type: Boolean, default: !1 },
|
|
15
|
-
buttonStyle: {},
|
|
16
|
-
icon: {},
|
|
17
|
-
iconPosition: { default: "left" },
|
|
18
|
-
iconOnly: { type: Boolean, default: !1 },
|
|
19
|
-
full: { type: Boolean }
|
|
20
|
-
},
|
|
21
|
-
setup(e) {
|
|
22
|
-
const n = k(() => e.variant === "link" && e.url || e.url ? Wt("RouterLink") : "button"), t = k(() => [
|
|
23
|
-
"button",
|
|
24
|
-
`button--${e.size}`,
|
|
25
|
-
`button--${e.variant}`,
|
|
26
|
-
{
|
|
27
|
-
"button--rounded": e.rounded,
|
|
28
|
-
[`button--${e.buttonStyle}`]: e.buttonStyle,
|
|
29
|
-
[`button--icon-${e.iconPosition}`]: e.icon,
|
|
30
|
-
"button--only-icon": e.iconOnly,
|
|
31
|
-
"button--full": e.full
|
|
32
|
-
}
|
|
33
|
-
]);
|
|
34
|
-
return (o, i) => (we(), st(ut(n.value), {
|
|
35
|
-
to: o.url,
|
|
36
|
-
class: Ut(t.value),
|
|
37
|
-
disabled: o.disabled
|
|
38
|
-
}, {
|
|
39
|
-
default: Xt(() => [
|
|
40
|
-
o.icon ? (we(), st(ut(o.icon), {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "button__icon"
|
|
43
|
-
})) : Ie("", !0),
|
|
44
|
-
o.iconOnly ? Ie("", !0) : (we(), at("div", ln, [
|
|
45
|
-
Kt(o.$slots, "default", {}, void 0, !0),
|
|
46
|
-
o.label && !o.$slots.default ? (we(), at(Yt, { key: 0 }, [
|
|
47
|
-
Jt(Qt(o.label), 1)
|
|
48
|
-
], 64)) : Ie("", !0)
|
|
49
|
-
]))
|
|
50
|
-
]),
|
|
51
|
-
_: 3
|
|
52
|
-
}, 8, ["to", "class", "disabled"]));
|
|
53
|
-
}
|
|
54
|
-
}), Uo = /* @__PURE__ */ rn(sn, [["__scopeId", "data-v-60e7e104"]]), un = ["top", "right", "bottom", "left"], Z = Math.min, E = Math.max, _e = Math.round, Se = Math.floor, b = (e) => ({
|
|
1
|
+
import { computed as J, ref as le, shallowRef as St, watch as xe, getCurrentScope as Bt, onScopeDispose as Nt, shallowReadonly as re, unref as Ct, defineComponent as kt, isRef as qt, watchEffect as jt, h as bt } from "vue";
|
|
2
|
+
const Wt = ["top", "right", "bottom", "left"], Z = Math.min, E = Math.max, ye = Math.round, we = Math.floor, k = (e) => ({
|
|
55
3
|
x: e,
|
|
56
4
|
y: e
|
|
57
|
-
}),
|
|
5
|
+
}), Ut = {
|
|
58
6
|
left: "right",
|
|
59
7
|
right: "left",
|
|
60
8
|
bottom: "top",
|
|
61
9
|
top: "bottom"
|
|
62
|
-
},
|
|
10
|
+
}, Xt = {
|
|
63
11
|
start: "end",
|
|
64
12
|
end: "start"
|
|
65
13
|
};
|
|
66
|
-
function
|
|
14
|
+
function Be(e, n, t) {
|
|
67
15
|
return E(e, Z(n, t));
|
|
68
16
|
}
|
|
69
|
-
function
|
|
17
|
+
function U(e, n) {
|
|
70
18
|
return typeof e == "function" ? e(n) : e;
|
|
71
19
|
}
|
|
72
|
-
function
|
|
20
|
+
function X(e) {
|
|
73
21
|
return e.split("-")[0];
|
|
74
22
|
}
|
|
75
23
|
function ge(e) {
|
|
76
24
|
return e.split("-")[1];
|
|
77
25
|
}
|
|
78
|
-
function
|
|
26
|
+
function Ke(e) {
|
|
79
27
|
return e === "x" ? "y" : "x";
|
|
80
28
|
}
|
|
81
|
-
function
|
|
29
|
+
function Ye(e) {
|
|
82
30
|
return e === "y" ? "height" : "width";
|
|
83
31
|
}
|
|
84
|
-
const
|
|
32
|
+
const Kt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
85
33
|
function N(e) {
|
|
86
|
-
return
|
|
34
|
+
return Kt.has(X(e)) ? "y" : "x";
|
|
87
35
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
36
|
+
function Je(e) {
|
|
37
|
+
return Ke(N(e));
|
|
90
38
|
}
|
|
91
|
-
function
|
|
39
|
+
function Yt(e, n, t) {
|
|
92
40
|
t === void 0 && (t = !1);
|
|
93
|
-
const o = ge(e), i =
|
|
41
|
+
const o = ge(e), i = Je(e), r = Ye(i);
|
|
94
42
|
let l = i === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
95
|
-
return n.reference[r] > n.floating[r] && (l =
|
|
43
|
+
return n.reference[r] > n.floating[r] && (l = _e(l)), [l, _e(l)];
|
|
96
44
|
}
|
|
97
|
-
function
|
|
98
|
-
const n =
|
|
99
|
-
return [
|
|
45
|
+
function Jt(e) {
|
|
46
|
+
const n = _e(e);
|
|
47
|
+
return [Ne(e), n, Ne(n)];
|
|
100
48
|
}
|
|
101
|
-
function
|
|
102
|
-
return e.replace(/start|end/g, (n) =>
|
|
49
|
+
function Ne(e) {
|
|
50
|
+
return e.replace(/start|end/g, (n) => Xt[n]);
|
|
103
51
|
}
|
|
104
|
-
const
|
|
105
|
-
function
|
|
52
|
+
const rt = ["left", "right"], lt = ["right", "left"], Qt = ["top", "bottom"], Zt = ["bottom", "top"];
|
|
53
|
+
function en(e, n, t) {
|
|
106
54
|
switch (e) {
|
|
107
55
|
case "top":
|
|
108
56
|
case "bottom":
|
|
109
|
-
return t ? n ?
|
|
57
|
+
return t ? n ? lt : rt : n ? rt : lt;
|
|
110
58
|
case "left":
|
|
111
59
|
case "right":
|
|
112
|
-
return n ?
|
|
60
|
+
return n ? Qt : Zt;
|
|
113
61
|
default:
|
|
114
62
|
return [];
|
|
115
63
|
}
|
|
116
64
|
}
|
|
117
|
-
function
|
|
65
|
+
function tn(e, n, t, o) {
|
|
118
66
|
const i = ge(e);
|
|
119
|
-
let r =
|
|
120
|
-
return i && (r = r.map((l) => l + "-" + i), n && (r = r.concat(r.map(
|
|
67
|
+
let r = en(X(e), t === "start", o);
|
|
68
|
+
return i && (r = r.map((l) => l + "-" + i), n && (r = r.concat(r.map(Ne)))), r;
|
|
121
69
|
}
|
|
122
|
-
function
|
|
123
|
-
return e.replace(/left|right|bottom|top/g, (n) =>
|
|
70
|
+
function _e(e) {
|
|
71
|
+
return e.replace(/left|right|bottom|top/g, (n) => Ut[n]);
|
|
124
72
|
}
|
|
125
|
-
function
|
|
73
|
+
function nn(e) {
|
|
126
74
|
return {
|
|
127
75
|
top: 0,
|
|
128
76
|
right: 0,
|
|
@@ -131,15 +79,15 @@ function Sn(e) {
|
|
|
131
79
|
...e
|
|
132
80
|
};
|
|
133
81
|
}
|
|
134
|
-
function
|
|
135
|
-
return typeof e != "number" ?
|
|
82
|
+
function vt(e) {
|
|
83
|
+
return typeof e != "number" ? nn(e) : {
|
|
136
84
|
top: e,
|
|
137
85
|
right: e,
|
|
138
86
|
bottom: e,
|
|
139
87
|
left: e
|
|
140
88
|
};
|
|
141
89
|
}
|
|
142
|
-
function
|
|
90
|
+
function Fe(e) {
|
|
143
91
|
const {
|
|
144
92
|
x: n,
|
|
145
93
|
y: t,
|
|
@@ -157,12 +105,12 @@ function $e(e) {
|
|
|
157
105
|
y: t
|
|
158
106
|
};
|
|
159
107
|
}
|
|
160
|
-
function
|
|
108
|
+
function st(e, n, t) {
|
|
161
109
|
let {
|
|
162
110
|
reference: o,
|
|
163
111
|
floating: i
|
|
164
112
|
} = e;
|
|
165
|
-
const r = N(n), l =
|
|
113
|
+
const r = N(n), l = Je(n), s = Ye(l), u = X(n), g = r === "y", c = o.x + o.width / 2 - i.width / 2, f = o.y + o.height / 2 - i.height / 2, d = o[s] / 2 - i[s] / 2;
|
|
166
114
|
let a;
|
|
167
115
|
switch (u) {
|
|
168
116
|
case "top":
|
|
@@ -205,7 +153,7 @@ function dt(e, n, t) {
|
|
|
205
153
|
}
|
|
206
154
|
return a;
|
|
207
155
|
}
|
|
208
|
-
const
|
|
156
|
+
const on = async (e, n, t) => {
|
|
209
157
|
const {
|
|
210
158
|
placement: o = "bottom",
|
|
211
159
|
strategy: i = "absolute",
|
|
@@ -219,7 +167,7 @@ const Cn = async (e, n, t) => {
|
|
|
219
167
|
}), {
|
|
220
168
|
x: c,
|
|
221
169
|
y: f
|
|
222
|
-
} =
|
|
170
|
+
} = st(g, o, u), d = o, a = {}, p = 0;
|
|
223
171
|
for (let m = 0; m < s.length; m++) {
|
|
224
172
|
const {
|
|
225
173
|
name: w,
|
|
@@ -256,7 +204,7 @@ const Cn = async (e, n, t) => {
|
|
|
256
204
|
}) : y.rects), {
|
|
257
205
|
x: c,
|
|
258
206
|
y: f
|
|
259
|
-
} =
|
|
207
|
+
} = st(g, d, u)), m = -1);
|
|
260
208
|
}
|
|
261
209
|
return {
|
|
262
210
|
x: c,
|
|
@@ -282,7 +230,7 @@ async function pe(e, n) {
|
|
|
282
230
|
elementContext: f = "floating",
|
|
283
231
|
altBoundary: d = !1,
|
|
284
232
|
padding: a = 0
|
|
285
|
-
} =
|
|
233
|
+
} = U(n, e), p = vt(a), w = s[d ? f === "floating" ? "reference" : "floating" : f], h = Fe(await r.getClippingRect({
|
|
286
234
|
element: (t = await (r.isElement == null ? void 0 : r.isElement(w))) == null || t ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
287
235
|
boundary: g,
|
|
288
236
|
rootBoundary: c,
|
|
@@ -298,7 +246,7 @@ async function pe(e, n) {
|
|
|
298
246
|
} : {
|
|
299
247
|
x: 1,
|
|
300
248
|
y: 1
|
|
301
|
-
}, y =
|
|
249
|
+
}, y = Fe(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
302
250
|
elements: s,
|
|
303
251
|
rect: C,
|
|
304
252
|
offsetParent: S,
|
|
@@ -311,7 +259,7 @@ async function pe(e, n) {
|
|
|
311
259
|
right: (y.right - h.right + p.right) / x.x
|
|
312
260
|
};
|
|
313
261
|
}
|
|
314
|
-
const
|
|
262
|
+
const rn = (e) => ({
|
|
315
263
|
name: "arrow",
|
|
316
264
|
options: e,
|
|
317
265
|
async fn(n) {
|
|
@@ -326,29 +274,29 @@ const vn = (e) => ({
|
|
|
326
274
|
} = n, {
|
|
327
275
|
element: g,
|
|
328
276
|
padding: c = 0
|
|
329
|
-
} =
|
|
277
|
+
} = U(e, n) || {};
|
|
330
278
|
if (g == null)
|
|
331
279
|
return {};
|
|
332
|
-
const f =
|
|
280
|
+
const f = vt(c), d = {
|
|
333
281
|
x: t,
|
|
334
282
|
y: o
|
|
335
|
-
}, a =
|
|
283
|
+
}, a = Je(i), p = Ye(a), m = await l.getDimensions(g), w = a === "y", h = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", x = r.reference[p] + r.reference[a] - d[a] - r.floating[p], y = d[a] - r.reference[a], $ = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(g));
|
|
336
284
|
let _ = $ ? $[S] : 0;
|
|
337
285
|
(!_ || !await (l.isElement == null ? void 0 : l.isElement($))) && (_ = s.floating[S] || r.floating[p]);
|
|
338
|
-
const F = x / 2 - y / 2, M = _ / 2 - m[p] / 2 - 1, A = Z(f[h], M),
|
|
286
|
+
const F = x / 2 - y / 2, M = _ / 2 - m[p] / 2 - 1, A = Z(f[h], M), L = Z(f[C], M), B = A, K = _ - m[p] - L, V = _ / 2 - m[p] / 2 + F, ne = Be(B, V, K), b = !u.arrow && ge(i) != null && V !== ne && r.reference[p] / 2 - (V < B ? A : L) - m[p] / 2 < 0, O = b ? V < B ? V - B : V - K : 0;
|
|
339
287
|
return {
|
|
340
|
-
[a]: d[a] +
|
|
288
|
+
[a]: d[a] + O,
|
|
341
289
|
data: {
|
|
342
290
|
[a]: ne,
|
|
343
|
-
centerOffset: V - ne -
|
|
344
|
-
...
|
|
345
|
-
alignmentOffset:
|
|
291
|
+
centerOffset: V - ne - O,
|
|
292
|
+
...b && {
|
|
293
|
+
alignmentOffset: O
|
|
346
294
|
}
|
|
347
295
|
},
|
|
348
|
-
reset:
|
|
296
|
+
reset: b
|
|
349
297
|
};
|
|
350
298
|
}
|
|
351
|
-
}),
|
|
299
|
+
}), ln = function(e) {
|
|
352
300
|
return e === void 0 && (e = {}), {
|
|
353
301
|
name: "flip",
|
|
354
302
|
options: e,
|
|
@@ -369,23 +317,23 @@ const vn = (e) => ({
|
|
|
369
317
|
fallbackAxisSideDirection: p = "none",
|
|
370
318
|
flipAlignment: m = !0,
|
|
371
319
|
...w
|
|
372
|
-
} =
|
|
320
|
+
} = U(e, n);
|
|
373
321
|
if ((t = r.arrow) != null && t.alignmentOffset)
|
|
374
322
|
return {};
|
|
375
|
-
const h =
|
|
376
|
-
!d && $ && y.push(...
|
|
323
|
+
const h = X(i), C = N(s), S = X(s) === s, x = await (u.isRTL == null ? void 0 : u.isRTL(g.floating)), y = d || (S || !m ? [_e(s)] : Jt(s)), $ = p !== "none";
|
|
324
|
+
!d && $ && y.push(...tn(s, m, p, x));
|
|
377
325
|
const _ = [s, ...y], F = await pe(n, w), M = [];
|
|
378
326
|
let A = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
379
327
|
if (c && M.push(F[h]), f) {
|
|
380
|
-
const V =
|
|
328
|
+
const V = Yt(i, l, x);
|
|
381
329
|
M.push(F[V[0]], F[V[1]]);
|
|
382
330
|
}
|
|
383
331
|
if (A = [...A, {
|
|
384
332
|
placement: i,
|
|
385
333
|
overflows: M
|
|
386
334
|
}], !M.every((V) => V <= 0)) {
|
|
387
|
-
var
|
|
388
|
-
const V = (((
|
|
335
|
+
var L, B;
|
|
336
|
+
const V = (((L = r.flip) == null ? void 0 : L.index) || 0) + 1, ne = _[V];
|
|
389
337
|
if (ne && (!(f === "alignment" ? C !== N(ne) : !1) || // We leave the current main axis only if every placement on that axis
|
|
390
338
|
// overflows the main axis.
|
|
391
339
|
A.every((H) => N(H.placement) === C ? H.overflows[0] > 0 : !0)))
|
|
@@ -398,31 +346,31 @@ const vn = (e) => ({
|
|
|
398
346
|
placement: ne
|
|
399
347
|
}
|
|
400
348
|
};
|
|
401
|
-
let
|
|
402
|
-
if (!
|
|
349
|
+
let b = (B = A.filter((O) => O.overflows[0] <= 0).sort((O, H) => O.overflows[1] - H.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
350
|
+
if (!b)
|
|
403
351
|
switch (a) {
|
|
404
352
|
case "bestFit": {
|
|
405
|
-
var
|
|
406
|
-
const
|
|
353
|
+
var K;
|
|
354
|
+
const O = (K = A.filter((H) => {
|
|
407
355
|
if ($) {
|
|
408
|
-
const
|
|
409
|
-
return
|
|
356
|
+
const Y = N(H.placement);
|
|
357
|
+
return Y === C || // Create a bias to the `y` side axis due to horizontal
|
|
410
358
|
// reading directions favoring greater width.
|
|
411
|
-
|
|
359
|
+
Y === "y";
|
|
412
360
|
}
|
|
413
361
|
return !0;
|
|
414
|
-
}).map((H) => [H.placement, H.overflows.filter((
|
|
415
|
-
|
|
362
|
+
}).map((H) => [H.placement, H.overflows.filter((Y) => Y > 0).reduce((Y, Tt) => Y + Tt, 0)]).sort((H, Y) => H[1] - Y[1])[0]) == null ? void 0 : K[0];
|
|
363
|
+
O && (b = O);
|
|
416
364
|
break;
|
|
417
365
|
}
|
|
418
366
|
case "initialPlacement":
|
|
419
|
-
|
|
367
|
+
b = s;
|
|
420
368
|
break;
|
|
421
369
|
}
|
|
422
|
-
if (i !==
|
|
370
|
+
if (i !== b)
|
|
423
371
|
return {
|
|
424
372
|
reset: {
|
|
425
|
-
placement:
|
|
373
|
+
placement: b
|
|
426
374
|
}
|
|
427
375
|
};
|
|
428
376
|
}
|
|
@@ -430,7 +378,7 @@ const vn = (e) => ({
|
|
|
430
378
|
}
|
|
431
379
|
};
|
|
432
380
|
};
|
|
433
|
-
function
|
|
381
|
+
function ut(e, n) {
|
|
434
382
|
return {
|
|
435
383
|
top: e.top - n.height,
|
|
436
384
|
right: e.right - n.width,
|
|
@@ -438,10 +386,10 @@ function ft(e, n) {
|
|
|
438
386
|
left: e.left - n.width
|
|
439
387
|
};
|
|
440
388
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
389
|
+
function at(e) {
|
|
390
|
+
return Wt.some((n) => e[n] >= 0);
|
|
443
391
|
}
|
|
444
|
-
const
|
|
392
|
+
const sn = function(e) {
|
|
445
393
|
return e === void 0 && (e = {}), {
|
|
446
394
|
name: "hide",
|
|
447
395
|
options: e,
|
|
@@ -451,17 +399,17 @@ const xn = function(e) {
|
|
|
451
399
|
} = n, {
|
|
452
400
|
strategy: o = "referenceHidden",
|
|
453
401
|
...i
|
|
454
|
-
} =
|
|
402
|
+
} = U(e, n);
|
|
455
403
|
switch (o) {
|
|
456
404
|
case "referenceHidden": {
|
|
457
405
|
const r = await pe(n, {
|
|
458
406
|
...i,
|
|
459
407
|
elementContext: "reference"
|
|
460
|
-
}), l =
|
|
408
|
+
}), l = ut(r, t.reference);
|
|
461
409
|
return {
|
|
462
410
|
data: {
|
|
463
411
|
referenceHiddenOffsets: l,
|
|
464
|
-
referenceHidden:
|
|
412
|
+
referenceHidden: at(l)
|
|
465
413
|
}
|
|
466
414
|
};
|
|
467
415
|
}
|
|
@@ -469,11 +417,11 @@ const xn = function(e) {
|
|
|
469
417
|
const r = await pe(n, {
|
|
470
418
|
...i,
|
|
471
419
|
altBoundary: !0
|
|
472
|
-
}), l =
|
|
420
|
+
}), l = ut(r, t.floating);
|
|
473
421
|
return {
|
|
474
422
|
data: {
|
|
475
423
|
escapedOffsets: l,
|
|
476
|
-
escaped:
|
|
424
|
+
escaped: at(l)
|
|
477
425
|
}
|
|
478
426
|
};
|
|
479
427
|
}
|
|
@@ -482,13 +430,13 @@ const xn = function(e) {
|
|
|
482
430
|
}
|
|
483
431
|
}
|
|
484
432
|
};
|
|
485
|
-
},
|
|
486
|
-
async function
|
|
433
|
+
}, Rt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
434
|
+
async function un(e, n) {
|
|
487
435
|
const {
|
|
488
436
|
placement: t,
|
|
489
437
|
platform: o,
|
|
490
438
|
elements: i
|
|
491
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l =
|
|
439
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = X(t), s = ge(t), u = N(t) === "y", g = Rt.has(l) ? -1 : 1, c = r && u ? -1 : 1, f = U(n, e);
|
|
492
440
|
let {
|
|
493
441
|
mainAxis: d,
|
|
494
442
|
crossAxis: a,
|
|
@@ -510,7 +458,7 @@ async function yn(e, n) {
|
|
|
510
458
|
y: a * c
|
|
511
459
|
};
|
|
512
460
|
}
|
|
513
|
-
const
|
|
461
|
+
const an = function(e) {
|
|
514
462
|
return e === void 0 && (e = 0), {
|
|
515
463
|
name: "offset",
|
|
516
464
|
options: e,
|
|
@@ -521,7 +469,7 @@ const _n = function(e) {
|
|
|
521
469
|
y: r,
|
|
522
470
|
placement: l,
|
|
523
471
|
middlewareData: s
|
|
524
|
-
} = n, u = await
|
|
472
|
+
} = n, u = await un(n, e);
|
|
525
473
|
return l === ((t = s.offset) == null ? void 0 : t.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
526
474
|
x: i + u.x,
|
|
527
475
|
y: r + u.y,
|
|
@@ -532,7 +480,7 @@ const _n = function(e) {
|
|
|
532
480
|
};
|
|
533
481
|
}
|
|
534
482
|
};
|
|
535
|
-
},
|
|
483
|
+
}, gn = function(e) {
|
|
536
484
|
return e === void 0 && (e = {}), {
|
|
537
485
|
name: "shift",
|
|
538
486
|
options: e,
|
|
@@ -557,18 +505,18 @@ const _n = function(e) {
|
|
|
557
505
|
}
|
|
558
506
|
},
|
|
559
507
|
...u
|
|
560
|
-
} =
|
|
508
|
+
} = U(e, n), g = {
|
|
561
509
|
x: t,
|
|
562
510
|
y: o
|
|
563
|
-
}, c = await pe(n, u), f = N(
|
|
511
|
+
}, c = await pe(n, u), f = N(X(i)), d = Ke(f);
|
|
564
512
|
let a = g[d], p = g[f];
|
|
565
513
|
if (r) {
|
|
566
514
|
const w = d === "y" ? "top" : "left", h = d === "y" ? "bottom" : "right", C = a + c[w], S = a - c[h];
|
|
567
|
-
a =
|
|
515
|
+
a = Be(C, a, S);
|
|
568
516
|
}
|
|
569
517
|
if (l) {
|
|
570
518
|
const w = f === "y" ? "top" : "left", h = f === "y" ? "bottom" : "right", C = p + c[w], S = p - c[h];
|
|
571
|
-
p =
|
|
519
|
+
p = Be(C, p, S);
|
|
572
520
|
}
|
|
573
521
|
const m = s.fn({
|
|
574
522
|
...n,
|
|
@@ -588,7 +536,7 @@ const _n = function(e) {
|
|
|
588
536
|
};
|
|
589
537
|
}
|
|
590
538
|
};
|
|
591
|
-
},
|
|
539
|
+
}, cn = function(e) {
|
|
592
540
|
return e === void 0 && (e = {}), {
|
|
593
541
|
options: e,
|
|
594
542
|
fn(n) {
|
|
@@ -602,12 +550,12 @@ const _n = function(e) {
|
|
|
602
550
|
offset: s = 0,
|
|
603
551
|
mainAxis: u = !0,
|
|
604
552
|
crossAxis: g = !0
|
|
605
|
-
} =
|
|
553
|
+
} = U(e, n), c = {
|
|
606
554
|
x: t,
|
|
607
555
|
y: o
|
|
608
|
-
}, f = N(i), d =
|
|
556
|
+
}, f = N(i), d = Ke(f);
|
|
609
557
|
let a = c[d], p = c[f];
|
|
610
|
-
const m =
|
|
558
|
+
const m = U(s, n), w = typeof m == "number" ? {
|
|
611
559
|
mainAxis: m,
|
|
612
560
|
crossAxis: 0
|
|
613
561
|
} : {
|
|
@@ -621,7 +569,7 @@ const _n = function(e) {
|
|
|
621
569
|
}
|
|
622
570
|
if (g) {
|
|
623
571
|
var h, C;
|
|
624
|
-
const S = d === "y" ? "width" : "height", x =
|
|
572
|
+
const S = d === "y" ? "width" : "height", x = Rt.has(X(i)), y = r.reference[f] - r.floating[S] + (x && ((h = l.offset) == null ? void 0 : h[f]) || 0) + (x ? 0 : w.crossAxis), $ = r.reference[f] + r.reference[S] + (x ? 0 : ((C = l.offset) == null ? void 0 : C[f]) || 0) - (x ? w.crossAxis : 0);
|
|
625
573
|
p < y ? p = y : p > $ && (p = $);
|
|
626
574
|
}
|
|
627
575
|
return {
|
|
@@ -630,7 +578,7 @@ const _n = function(e) {
|
|
|
630
578
|
};
|
|
631
579
|
}
|
|
632
580
|
};
|
|
633
|
-
},
|
|
581
|
+
}, dn = function(e) {
|
|
634
582
|
return e === void 0 && (e = {}), {
|
|
635
583
|
name: "size",
|
|
636
584
|
options: e,
|
|
@@ -645,7 +593,7 @@ const _n = function(e) {
|
|
|
645
593
|
apply: u = () => {
|
|
646
594
|
},
|
|
647
595
|
...g
|
|
648
|
-
} =
|
|
596
|
+
} = U(e, n), c = await pe(n, g), f = X(i), d = ge(i), a = N(i) === "y", {
|
|
649
597
|
width: p,
|
|
650
598
|
height: m
|
|
651
599
|
} = r.floating;
|
|
@@ -654,8 +602,8 @@ const _n = function(e) {
|
|
|
654
602
|
const C = m - c.top - c.bottom, S = p - c.left - c.right, x = Z(m - c[w], C), y = Z(p - c[h], S), $ = !n.middlewareData.shift;
|
|
655
603
|
let _ = x, F = y;
|
|
656
604
|
if ((t = n.middlewareData.shift) != null && t.enabled.x && (F = S), (o = n.middlewareData.shift) != null && o.enabled.y && (_ = C), $ && !d) {
|
|
657
|
-
const A = E(c.left, 0),
|
|
658
|
-
a ? F = p - 2 * (A !== 0 ||
|
|
605
|
+
const A = E(c.left, 0), L = E(c.right, 0), B = E(c.top, 0), K = E(c.bottom, 0);
|
|
606
|
+
a ? F = p - 2 * (A !== 0 || L !== 0 ? A + L : E(c.left, c.right)) : _ = m - 2 * (B !== 0 || K !== 0 ? B + K : E(c.top, c.bottom));
|
|
659
607
|
}
|
|
660
608
|
await u({
|
|
661
609
|
...n,
|
|
@@ -671,11 +619,11 @@ const _n = function(e) {
|
|
|
671
619
|
}
|
|
672
620
|
};
|
|
673
621
|
};
|
|
674
|
-
function
|
|
622
|
+
function $e() {
|
|
675
623
|
return typeof window < "u";
|
|
676
624
|
}
|
|
677
625
|
function ie(e) {
|
|
678
|
-
return
|
|
626
|
+
return Qe(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
679
627
|
}
|
|
680
628
|
function I(e) {
|
|
681
629
|
var n;
|
|
@@ -683,21 +631,21 @@ function I(e) {
|
|
|
683
631
|
}
|
|
684
632
|
function j(e) {
|
|
685
633
|
var n;
|
|
686
|
-
return (n = (
|
|
634
|
+
return (n = (Qe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
687
635
|
}
|
|
688
|
-
function
|
|
689
|
-
return
|
|
636
|
+
function Qe(e) {
|
|
637
|
+
return $e() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
690
638
|
}
|
|
691
639
|
function z(e) {
|
|
692
|
-
return
|
|
640
|
+
return $e() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
693
641
|
}
|
|
694
642
|
function q(e) {
|
|
695
|
-
return
|
|
643
|
+
return $e() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
696
644
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
645
|
+
function gt(e) {
|
|
646
|
+
return !$e() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
699
647
|
}
|
|
700
|
-
const
|
|
648
|
+
const fn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
701
649
|
function he(e) {
|
|
702
650
|
const {
|
|
703
651
|
overflow: n,
|
|
@@ -705,15 +653,15 @@ function he(e) {
|
|
|
705
653
|
overflowY: o,
|
|
706
654
|
display: i
|
|
707
655
|
} = T(e);
|
|
708
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !
|
|
656
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !fn.has(i);
|
|
709
657
|
}
|
|
710
|
-
const
|
|
711
|
-
function
|
|
712
|
-
return
|
|
658
|
+
const pn = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
659
|
+
function mn(e) {
|
|
660
|
+
return pn.has(ie(e));
|
|
713
661
|
}
|
|
714
|
-
const
|
|
715
|
-
function
|
|
716
|
-
return
|
|
662
|
+
const hn = [":popover-open", ":modal"];
|
|
663
|
+
function Pe(e) {
|
|
664
|
+
return hn.some((n) => {
|
|
717
665
|
try {
|
|
718
666
|
return e.matches(n);
|
|
719
667
|
} catch {
|
|
@@ -721,33 +669,33 @@ function Me(e) {
|
|
|
721
669
|
}
|
|
722
670
|
});
|
|
723
671
|
}
|
|
724
|
-
const
|
|
725
|
-
function
|
|
726
|
-
const n =
|
|
727
|
-
return
|
|
672
|
+
const wn = ["transform", "translate", "scale", "rotate", "perspective"], Sn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Cn = ["paint", "layout", "strict", "content"];
|
|
673
|
+
function Ze(e) {
|
|
674
|
+
const n = et(), t = z(e) ? T(e) : e;
|
|
675
|
+
return wn.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || Sn.some((o) => (t.willChange || "").includes(o)) || Cn.some((o) => (t.contain || "").includes(o));
|
|
728
676
|
}
|
|
729
|
-
function
|
|
677
|
+
function vn(e) {
|
|
730
678
|
let n = ee(e);
|
|
731
679
|
for (; q(n) && !ae(n); ) {
|
|
732
|
-
if (
|
|
680
|
+
if (Ze(n))
|
|
733
681
|
return n;
|
|
734
|
-
if (
|
|
682
|
+
if (Pe(n))
|
|
735
683
|
return null;
|
|
736
684
|
n = ee(n);
|
|
737
685
|
}
|
|
738
686
|
return null;
|
|
739
687
|
}
|
|
740
|
-
function
|
|
688
|
+
function et() {
|
|
741
689
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
742
690
|
}
|
|
743
|
-
const
|
|
691
|
+
const Rn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
744
692
|
function ae(e) {
|
|
745
|
-
return
|
|
693
|
+
return Rn.has(ie(e));
|
|
746
694
|
}
|
|
747
695
|
function T(e) {
|
|
748
696
|
return I(e).getComputedStyle(e);
|
|
749
697
|
}
|
|
750
|
-
function
|
|
698
|
+
function Me(e) {
|
|
751
699
|
return z(e) ? {
|
|
752
700
|
scrollLeft: e.scrollLeft,
|
|
753
701
|
scrollTop: e.scrollTop
|
|
@@ -763,120 +711,120 @@ function ee(e) {
|
|
|
763
711
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
764
712
|
e.assignedSlot || // DOM Element detected.
|
|
765
713
|
e.parentNode || // ShadowRoot detected.
|
|
766
|
-
|
|
714
|
+
gt(e) && e.host || // Fallback.
|
|
767
715
|
j(e)
|
|
768
716
|
);
|
|
769
|
-
return
|
|
717
|
+
return gt(n) ? n.host : n;
|
|
770
718
|
}
|
|
771
|
-
function
|
|
719
|
+
function xt(e) {
|
|
772
720
|
const n = ee(e);
|
|
773
|
-
return ae(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(n) && he(n) ? n :
|
|
721
|
+
return ae(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : q(n) && he(n) ? n : xt(n);
|
|
774
722
|
}
|
|
775
723
|
function me(e, n, t) {
|
|
776
724
|
var o;
|
|
777
725
|
n === void 0 && (n = []), t === void 0 && (t = !0);
|
|
778
|
-
const i =
|
|
726
|
+
const i = xt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), l = I(i);
|
|
779
727
|
if (r) {
|
|
780
|
-
const s =
|
|
728
|
+
const s = ke(l);
|
|
781
729
|
return n.concat(l, l.visualViewport || [], he(i) ? i : [], s && t ? me(s) : []);
|
|
782
730
|
}
|
|
783
731
|
return n.concat(i, me(i, [], t));
|
|
784
732
|
}
|
|
785
|
-
function
|
|
733
|
+
function ke(e) {
|
|
786
734
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
787
735
|
}
|
|
788
|
-
function
|
|
736
|
+
function yt(e) {
|
|
789
737
|
const n = T(e);
|
|
790
738
|
let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
|
|
791
|
-
const i = q(e), r = i ? e.offsetWidth : t, l = i ? e.offsetHeight : o, s =
|
|
739
|
+
const i = q(e), r = i ? e.offsetWidth : t, l = i ? e.offsetHeight : o, s = ye(t) !== r || ye(o) !== l;
|
|
792
740
|
return s && (t = r, o = l), {
|
|
793
741
|
width: t,
|
|
794
742
|
height: o,
|
|
795
743
|
$: s
|
|
796
744
|
};
|
|
797
745
|
}
|
|
798
|
-
function
|
|
746
|
+
function tt(e) {
|
|
799
747
|
return z(e) ? e : e.contextElement;
|
|
800
748
|
}
|
|
801
749
|
function ue(e) {
|
|
802
|
-
const n =
|
|
750
|
+
const n = tt(e);
|
|
803
751
|
if (!q(n))
|
|
804
|
-
return
|
|
752
|
+
return k(1);
|
|
805
753
|
const t = n.getBoundingClientRect(), {
|
|
806
754
|
width: o,
|
|
807
755
|
height: i,
|
|
808
756
|
$: r
|
|
809
|
-
} =
|
|
810
|
-
let l = (r ?
|
|
757
|
+
} = yt(n);
|
|
758
|
+
let l = (r ? ye(t.width) : t.width) / o, s = (r ? ye(t.height) : t.height) / i;
|
|
811
759
|
return (!l || !Number.isFinite(l)) && (l = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
812
760
|
x: l,
|
|
813
761
|
y: s
|
|
814
762
|
};
|
|
815
763
|
}
|
|
816
|
-
const
|
|
817
|
-
function
|
|
764
|
+
const xn = /* @__PURE__ */ k(0);
|
|
765
|
+
function _t(e) {
|
|
818
766
|
const n = I(e);
|
|
819
|
-
return !
|
|
767
|
+
return !et() || !n.visualViewport ? xn : {
|
|
820
768
|
x: n.visualViewport.offsetLeft,
|
|
821
769
|
y: n.visualViewport.offsetTop
|
|
822
770
|
};
|
|
823
771
|
}
|
|
824
|
-
function
|
|
772
|
+
function yn(e, n, t) {
|
|
825
773
|
return n === void 0 && (n = !1), !t || n && t !== I(e) ? !1 : n;
|
|
826
774
|
}
|
|
827
775
|
function oe(e, n, t, o) {
|
|
828
776
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
829
|
-
const i = e.getBoundingClientRect(), r =
|
|
830
|
-
let l =
|
|
777
|
+
const i = e.getBoundingClientRect(), r = tt(e);
|
|
778
|
+
let l = k(1);
|
|
831
779
|
n && (o ? z(o) && (l = ue(o)) : l = ue(e));
|
|
832
|
-
const s =
|
|
780
|
+
const s = yn(r, t, o) ? _t(r) : k(0);
|
|
833
781
|
let u = (i.left + s.x) / l.x, g = (i.top + s.y) / l.y, c = i.width / l.x, f = i.height / l.y;
|
|
834
782
|
if (r) {
|
|
835
783
|
const d = I(r), a = o && z(o) ? I(o) : o;
|
|
836
|
-
let p = d, m =
|
|
784
|
+
let p = d, m = ke(p);
|
|
837
785
|
for (; m && o && a !== p; ) {
|
|
838
786
|
const w = ue(m), h = m.getBoundingClientRect(), C = T(m), S = h.left + (m.clientLeft + parseFloat(C.paddingLeft)) * w.x, x = h.top + (m.clientTop + parseFloat(C.paddingTop)) * w.y;
|
|
839
|
-
u *= w.x, g *= w.y, c *= w.x, f *= w.y, u += S, g += x, p = I(m), m =
|
|
787
|
+
u *= w.x, g *= w.y, c *= w.x, f *= w.y, u += S, g += x, p = I(m), m = ke(p);
|
|
840
788
|
}
|
|
841
789
|
}
|
|
842
|
-
return
|
|
790
|
+
return Fe({
|
|
843
791
|
width: c,
|
|
844
792
|
height: f,
|
|
845
793
|
x: u,
|
|
846
794
|
y: g
|
|
847
795
|
});
|
|
848
796
|
}
|
|
849
|
-
function
|
|
850
|
-
const t =
|
|
797
|
+
function Ve(e, n) {
|
|
798
|
+
const t = Me(e).scrollLeft;
|
|
851
799
|
return n ? n.left + t : oe(j(e)).left + t;
|
|
852
800
|
}
|
|
853
|
-
function
|
|
854
|
-
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft -
|
|
801
|
+
function Ft(e, n) {
|
|
802
|
+
const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Ve(e, t), i = t.top + n.scrollTop;
|
|
855
803
|
return {
|
|
856
804
|
x: o,
|
|
857
805
|
y: i
|
|
858
806
|
};
|
|
859
807
|
}
|
|
860
|
-
function
|
|
808
|
+
function _n(e) {
|
|
861
809
|
let {
|
|
862
810
|
elements: n,
|
|
863
811
|
rect: t,
|
|
864
812
|
offsetParent: o,
|
|
865
813
|
strategy: i
|
|
866
814
|
} = e;
|
|
867
|
-
const r = i === "fixed", l = j(o), s = n ?
|
|
815
|
+
const r = i === "fixed", l = j(o), s = n ? Pe(n.floating) : !1;
|
|
868
816
|
if (o === l || s && r)
|
|
869
817
|
return t;
|
|
870
818
|
let u = {
|
|
871
819
|
scrollLeft: 0,
|
|
872
820
|
scrollTop: 0
|
|
873
|
-
}, g =
|
|
874
|
-
const c =
|
|
875
|
-
if ((f || !f && !r) && ((ie(o) !== "body" || he(l)) && (u =
|
|
821
|
+
}, g = k(1);
|
|
822
|
+
const c = k(0), f = q(o);
|
|
823
|
+
if ((f || !f && !r) && ((ie(o) !== "body" || he(l)) && (u = Me(o)), q(o))) {
|
|
876
824
|
const a = oe(o);
|
|
877
825
|
g = ue(o), c.x = a.x + o.clientLeft, c.y = a.y + o.clientTop;
|
|
878
826
|
}
|
|
879
|
-
const d = l && !f && !r ?
|
|
827
|
+
const d = l && !f && !r ? Ft(l, u) : k(0);
|
|
880
828
|
return {
|
|
881
829
|
width: t.width * g.x,
|
|
882
830
|
height: t.height * g.y,
|
|
@@ -884,12 +832,12 @@ function Tn(e) {
|
|
|
884
832
|
y: t.y * g.y - u.scrollTop * g.y + c.y + d.y
|
|
885
833
|
};
|
|
886
834
|
}
|
|
887
|
-
function
|
|
835
|
+
function Fn(e) {
|
|
888
836
|
return Array.from(e.getClientRects());
|
|
889
837
|
}
|
|
890
|
-
function
|
|
891
|
-
const n = j(e), t =
|
|
892
|
-
let l = -t.scrollLeft +
|
|
838
|
+
function $n(e) {
|
|
839
|
+
const n = j(e), t = Me(e), o = e.ownerDocument.body, i = E(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), r = E(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
|
|
840
|
+
let l = -t.scrollLeft + Ve(e);
|
|
893
841
|
const s = -t.scrollTop;
|
|
894
842
|
return T(o).direction === "rtl" && (l += E(n.clientWidth, o.clientWidth) - i), {
|
|
895
843
|
width: i,
|
|
@@ -898,20 +846,20 @@ function kn(e) {
|
|
|
898
846
|
y: s
|
|
899
847
|
};
|
|
900
848
|
}
|
|
901
|
-
const
|
|
902
|
-
function
|
|
849
|
+
const ct = 25;
|
|
850
|
+
function Pn(e, n) {
|
|
903
851
|
const t = I(e), o = j(e), i = t.visualViewport;
|
|
904
852
|
let r = o.clientWidth, l = o.clientHeight, s = 0, u = 0;
|
|
905
853
|
if (i) {
|
|
906
854
|
r = i.width, l = i.height;
|
|
907
|
-
const c =
|
|
855
|
+
const c = et();
|
|
908
856
|
(!c || c && n === "fixed") && (s = i.offsetLeft, u = i.offsetTop);
|
|
909
857
|
}
|
|
910
|
-
const g =
|
|
858
|
+
const g = Ve(o);
|
|
911
859
|
if (g <= 0) {
|
|
912
860
|
const c = o.ownerDocument, f = c.body, d = getComputedStyle(f), a = c.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - a);
|
|
913
|
-
p <=
|
|
914
|
-
} else g <=
|
|
861
|
+
p <= ct && (r -= p);
|
|
862
|
+
} else g <= ct && (r += g);
|
|
915
863
|
return {
|
|
916
864
|
width: r,
|
|
917
865
|
height: l,
|
|
@@ -919,9 +867,9 @@ function Nn(e, n) {
|
|
|
919
867
|
y: u
|
|
920
868
|
};
|
|
921
869
|
}
|
|
922
|
-
const
|
|
923
|
-
function
|
|
924
|
-
const t = oe(e, !0, n === "fixed"), o = t.top + e.clientTop, i = t.left + e.clientLeft, r = q(e) ? ue(e) :
|
|
870
|
+
const Mn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
871
|
+
function Vn(e, n) {
|
|
872
|
+
const t = oe(e, !0, n === "fixed"), o = t.top + e.clientTop, i = t.left + e.clientLeft, r = q(e) ? ue(e) : k(1), l = e.clientWidth * r.x, s = e.clientHeight * r.y, u = i * r.x, g = o * r.y;
|
|
925
873
|
return {
|
|
926
874
|
width: l,
|
|
927
875
|
height: s,
|
|
@@ -929,16 +877,16 @@ function qn(e, n) {
|
|
|
929
877
|
y: g
|
|
930
878
|
};
|
|
931
879
|
}
|
|
932
|
-
function
|
|
880
|
+
function dt(e, n, t) {
|
|
933
881
|
let o;
|
|
934
882
|
if (n === "viewport")
|
|
935
|
-
o =
|
|
883
|
+
o = Pn(e, t);
|
|
936
884
|
else if (n === "document")
|
|
937
|
-
o =
|
|
885
|
+
o = $n(j(e));
|
|
938
886
|
else if (z(n))
|
|
939
|
-
o =
|
|
887
|
+
o = Vn(n, t);
|
|
940
888
|
else {
|
|
941
|
-
const i =
|
|
889
|
+
const i = _t(e);
|
|
942
890
|
o = {
|
|
943
891
|
x: n.x - i.x,
|
|
944
892
|
y: n.y - i.y,
|
|
@@ -946,13 +894,13 @@ function wt(e, n, t) {
|
|
|
946
894
|
height: n.height
|
|
947
895
|
};
|
|
948
896
|
}
|
|
949
|
-
return
|
|
897
|
+
return Fe(o);
|
|
950
898
|
}
|
|
951
|
-
function
|
|
899
|
+
function $t(e, n) {
|
|
952
900
|
const t = ee(e);
|
|
953
|
-
return t === n || !z(t) || ae(t) ? !1 : T(t).position === "fixed" ||
|
|
901
|
+
return t === n || !z(t) || ae(t) ? !1 : T(t).position === "fixed" || $t(t, n);
|
|
954
902
|
}
|
|
955
|
-
function
|
|
903
|
+
function An(e, n) {
|
|
956
904
|
const t = n.get(e);
|
|
957
905
|
if (t)
|
|
958
906
|
return t;
|
|
@@ -960,22 +908,22 @@ function jn(e, n) {
|
|
|
960
908
|
const r = T(e).position === "fixed";
|
|
961
909
|
let l = r ? ee(e) : e;
|
|
962
910
|
for (; z(l) && !ae(l); ) {
|
|
963
|
-
const s = T(l), u =
|
|
964
|
-
!u && s.position === "fixed" && (i = null), (r ? !u && !i : !u && s.position === "static" && !!i &&
|
|
911
|
+
const s = T(l), u = Ze(l);
|
|
912
|
+
!u && s.position === "fixed" && (i = null), (r ? !u && !i : !u && s.position === "static" && !!i && Mn.has(i.position) || he(l) && !u && $t(e, l)) ? o = o.filter((c) => c !== l) : i = s, l = ee(l);
|
|
965
913
|
}
|
|
966
914
|
return n.set(e, o), o;
|
|
967
915
|
}
|
|
968
|
-
function
|
|
916
|
+
function En(e) {
|
|
969
917
|
let {
|
|
970
918
|
element: n,
|
|
971
919
|
boundary: t,
|
|
972
920
|
rootBoundary: o,
|
|
973
921
|
strategy: i
|
|
974
922
|
} = e;
|
|
975
|
-
const l = [...t === "clippingAncestors" ?
|
|
976
|
-
const f =
|
|
923
|
+
const l = [...t === "clippingAncestors" ? Pe(n) ? [] : An(n, this._c) : [].concat(t), o], s = l[0], u = l.reduce((g, c) => {
|
|
924
|
+
const f = dt(n, c, i);
|
|
977
925
|
return g.top = E(f.top, g.top), g.right = Z(f.right, g.right), g.bottom = Z(f.bottom, g.bottom), g.left = E(f.left, g.left), g;
|
|
978
|
-
},
|
|
926
|
+
}, dt(n, s, i));
|
|
979
927
|
return {
|
|
980
928
|
width: u.right - u.left,
|
|
981
929
|
height: u.bottom - u.top,
|
|
@@ -983,33 +931,33 @@ function Wn(e) {
|
|
|
983
931
|
y: u.top
|
|
984
932
|
};
|
|
985
933
|
}
|
|
986
|
-
function
|
|
934
|
+
function In(e) {
|
|
987
935
|
const {
|
|
988
936
|
width: n,
|
|
989
937
|
height: t
|
|
990
|
-
} =
|
|
938
|
+
} = yt(e);
|
|
991
939
|
return {
|
|
992
940
|
width: n,
|
|
993
941
|
height: t
|
|
994
942
|
};
|
|
995
943
|
}
|
|
996
|
-
function
|
|
944
|
+
function Dn(e, n, t) {
|
|
997
945
|
const o = q(n), i = j(n), r = t === "fixed", l = oe(e, !0, r, n);
|
|
998
946
|
let s = {
|
|
999
947
|
scrollLeft: 0,
|
|
1000
948
|
scrollTop: 0
|
|
1001
949
|
};
|
|
1002
|
-
const u =
|
|
950
|
+
const u = k(0);
|
|
1003
951
|
function g() {
|
|
1004
|
-
u.x =
|
|
952
|
+
u.x = Ve(i);
|
|
1005
953
|
}
|
|
1006
954
|
if (o || !o && !r)
|
|
1007
|
-
if ((ie(n) !== "body" || he(i)) && (s =
|
|
955
|
+
if ((ie(n) !== "body" || he(i)) && (s = Me(n)), o) {
|
|
1008
956
|
const a = oe(n, !0, r, n);
|
|
1009
957
|
u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
1010
958
|
} else i && g();
|
|
1011
959
|
r && !o && i && g();
|
|
1012
|
-
const c = i && !o && !r ?
|
|
960
|
+
const c = i && !o && !r ? Ft(i, s) : k(0), f = l.left + s.scrollLeft - u.x - c.x, d = l.top + s.scrollTop - u.y - c.y;
|
|
1013
961
|
return {
|
|
1014
962
|
x: f,
|
|
1015
963
|
y: d,
|
|
@@ -1017,10 +965,10 @@ function Xn(e, n, t) {
|
|
|
1017
965
|
height: l.height
|
|
1018
966
|
};
|
|
1019
967
|
}
|
|
1020
|
-
function
|
|
968
|
+
function Ee(e) {
|
|
1021
969
|
return T(e).position === "static";
|
|
1022
970
|
}
|
|
1023
|
-
function
|
|
971
|
+
function ft(e, n) {
|
|
1024
972
|
if (!q(e) || T(e).position === "fixed")
|
|
1025
973
|
return null;
|
|
1026
974
|
if (n)
|
|
@@ -1028,28 +976,28 @@ function St(e, n) {
|
|
|
1028
976
|
let t = e.offsetParent;
|
|
1029
977
|
return j(e) === t && (t = t.ownerDocument.body), t;
|
|
1030
978
|
}
|
|
1031
|
-
function
|
|
979
|
+
function Pt(e, n) {
|
|
1032
980
|
const t = I(e);
|
|
1033
|
-
if (
|
|
981
|
+
if (Pe(e))
|
|
1034
982
|
return t;
|
|
1035
983
|
if (!q(e)) {
|
|
1036
984
|
let i = ee(e);
|
|
1037
985
|
for (; i && !ae(i); ) {
|
|
1038
|
-
if (z(i) && !
|
|
986
|
+
if (z(i) && !Ee(i))
|
|
1039
987
|
return i;
|
|
1040
988
|
i = ee(i);
|
|
1041
989
|
}
|
|
1042
990
|
return t;
|
|
1043
991
|
}
|
|
1044
|
-
let o =
|
|
1045
|
-
for (; o &&
|
|
1046
|
-
o =
|
|
1047
|
-
return o && ae(o) &&
|
|
992
|
+
let o = ft(e, n);
|
|
993
|
+
for (; o && mn(o) && Ee(o); )
|
|
994
|
+
o = ft(o, n);
|
|
995
|
+
return o && ae(o) && Ee(o) && !Ze(o) ? t : o || vn(e) || t;
|
|
1048
996
|
}
|
|
1049
|
-
const
|
|
1050
|
-
const n = this.getOffsetParent ||
|
|
997
|
+
const Ln = async function(e) {
|
|
998
|
+
const n = this.getOffsetParent || Pt, t = this.getDimensions, o = await t(e.floating);
|
|
1051
999
|
return {
|
|
1052
|
-
reference:
|
|
1000
|
+
reference: Dn(e.reference, await n(e.floating), e.strategy),
|
|
1053
1001
|
floating: {
|
|
1054
1002
|
x: 0,
|
|
1055
1003
|
y: 0,
|
|
@@ -1058,25 +1006,25 @@ const Kn = async function(e) {
|
|
|
1058
1006
|
}
|
|
1059
1007
|
};
|
|
1060
1008
|
};
|
|
1061
|
-
function
|
|
1009
|
+
function On(e) {
|
|
1062
1010
|
return T(e).direction === "rtl";
|
|
1063
1011
|
}
|
|
1064
|
-
const
|
|
1065
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1012
|
+
const Hn = {
|
|
1013
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: _n,
|
|
1066
1014
|
getDocumentElement: j,
|
|
1067
|
-
getClippingRect:
|
|
1068
|
-
getOffsetParent:
|
|
1069
|
-
getElementRects:
|
|
1070
|
-
getClientRects:
|
|
1071
|
-
getDimensions:
|
|
1015
|
+
getClippingRect: En,
|
|
1016
|
+
getOffsetParent: Pt,
|
|
1017
|
+
getElementRects: Ln,
|
|
1018
|
+
getClientRects: Fn,
|
|
1019
|
+
getDimensions: In,
|
|
1072
1020
|
getScale: ue,
|
|
1073
1021
|
isElement: z,
|
|
1074
|
-
isRTL:
|
|
1022
|
+
isRTL: On
|
|
1075
1023
|
};
|
|
1076
|
-
function
|
|
1024
|
+
function Mt(e, n) {
|
|
1077
1025
|
return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
|
|
1078
1026
|
}
|
|
1079
|
-
function
|
|
1027
|
+
function Gn(e, n) {
|
|
1080
1028
|
let t = null, o;
|
|
1081
1029
|
const i = j(e);
|
|
1082
1030
|
function r() {
|
|
@@ -1093,7 +1041,7 @@ function Qn(e, n) {
|
|
|
1093
1041
|
} = g;
|
|
1094
1042
|
if (s || n(), !d || !a)
|
|
1095
1043
|
return;
|
|
1096
|
-
const p =
|
|
1044
|
+
const p = we(f), m = we(i.clientWidth - (c + d)), w = we(i.clientHeight - (f + a)), h = we(c), S = {
|
|
1097
1045
|
rootMargin: -p + "px " + -m + "px " + -w + "px " + -h + "px",
|
|
1098
1046
|
threshold: E(0, Z(1, u)) || 1
|
|
1099
1047
|
};
|
|
@@ -1107,7 +1055,7 @@ function Qn(e, n) {
|
|
|
1107
1055
|
l(!1, 1e-7);
|
|
1108
1056
|
}, 1e3);
|
|
1109
1057
|
}
|
|
1110
|
-
_ === 1 && !
|
|
1058
|
+
_ === 1 && !Mt(g, e.getBoundingClientRect()) && l(), x = !1;
|
|
1111
1059
|
}
|
|
1112
1060
|
try {
|
|
1113
1061
|
t = new IntersectionObserver(y, {
|
|
@@ -1122,7 +1070,7 @@ function Qn(e, n) {
|
|
|
1122
1070
|
}
|
|
1123
1071
|
return l(!0), r;
|
|
1124
1072
|
}
|
|
1125
|
-
function
|
|
1073
|
+
function Eo(e, n, t, o) {
|
|
1126
1074
|
o === void 0 && (o = {});
|
|
1127
1075
|
const {
|
|
1128
1076
|
ancestorScroll: i = !0,
|
|
@@ -1130,13 +1078,13 @@ function Xo(e, n, t, o) {
|
|
|
1130
1078
|
elementResize: l = typeof ResizeObserver == "function",
|
|
1131
1079
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
1132
1080
|
animationFrame: u = !1
|
|
1133
|
-
} = o, g =
|
|
1081
|
+
} = o, g = tt(e), c = i || r ? [...g ? me(g) : [], ...me(n)] : [];
|
|
1134
1082
|
c.forEach((h) => {
|
|
1135
1083
|
i && h.addEventListener("scroll", t, {
|
|
1136
1084
|
passive: !0
|
|
1137
1085
|
}), r && h.addEventListener("resize", t);
|
|
1138
1086
|
});
|
|
1139
|
-
const f = g && s ?
|
|
1087
|
+
const f = g && s ? Gn(g, t) : null;
|
|
1140
1088
|
let d = -1, a = null;
|
|
1141
1089
|
l && (a = new ResizeObserver((h) => {
|
|
1142
1090
|
let [C] = h;
|
|
@@ -1149,7 +1097,7 @@ function Xo(e, n, t, o) {
|
|
|
1149
1097
|
u && w();
|
|
1150
1098
|
function w() {
|
|
1151
1099
|
const h = oe(e);
|
|
1152
|
-
m && !
|
|
1100
|
+
m && !Mt(m, h) && t(), m = h, p = requestAnimationFrame(w);
|
|
1153
1101
|
}
|
|
1154
1102
|
return t(), () => {
|
|
1155
1103
|
var h;
|
|
@@ -1158,67 +1106,67 @@ function Xo(e, n, t, o) {
|
|
|
1158
1106
|
}), f?.(), (h = a) == null || h.disconnect(), a = null, u && cancelAnimationFrame(p);
|
|
1159
1107
|
};
|
|
1160
1108
|
}
|
|
1161
|
-
const
|
|
1109
|
+
const Io = an, Do = gn, Lo = ln, Oo = dn, Ho = sn, zn = rn, Go = cn, Tn = (e, n, t) => {
|
|
1162
1110
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1163
|
-
platform:
|
|
1111
|
+
platform: Hn,
|
|
1164
1112
|
...t
|
|
1165
1113
|
}, r = {
|
|
1166
1114
|
...i.platform,
|
|
1167
1115
|
_c: o
|
|
1168
1116
|
};
|
|
1169
|
-
return
|
|
1117
|
+
return on(e, n, {
|
|
1170
1118
|
...i,
|
|
1171
1119
|
platform: r
|
|
1172
1120
|
});
|
|
1173
1121
|
};
|
|
1174
|
-
function
|
|
1122
|
+
function Bn(e) {
|
|
1175
1123
|
return e != null && typeof e == "object" && "$el" in e;
|
|
1176
1124
|
}
|
|
1177
|
-
function
|
|
1178
|
-
if (
|
|
1125
|
+
function qe(e) {
|
|
1126
|
+
if (Bn(e)) {
|
|
1179
1127
|
const n = e.$el;
|
|
1180
|
-
return
|
|
1128
|
+
return Qe(n) && ie(n) === "#comment" ? null : n;
|
|
1181
1129
|
}
|
|
1182
1130
|
return e;
|
|
1183
1131
|
}
|
|
1184
1132
|
function se(e) {
|
|
1185
|
-
return typeof e == "function" ? e() :
|
|
1133
|
+
return typeof e == "function" ? e() : Ct(e);
|
|
1186
1134
|
}
|
|
1187
|
-
function
|
|
1135
|
+
function zo(e) {
|
|
1188
1136
|
return {
|
|
1189
1137
|
name: "arrow",
|
|
1190
1138
|
options: e,
|
|
1191
1139
|
fn(n) {
|
|
1192
|
-
const t =
|
|
1193
|
-
return t == null ? {} :
|
|
1140
|
+
const t = qe(se(e.element));
|
|
1141
|
+
return t == null ? {} : zn({
|
|
1194
1142
|
element: t,
|
|
1195
1143
|
padding: e.padding
|
|
1196
1144
|
}).fn(n);
|
|
1197
1145
|
}
|
|
1198
1146
|
};
|
|
1199
1147
|
}
|
|
1200
|
-
function
|
|
1148
|
+
function Vt(e) {
|
|
1201
1149
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1202
1150
|
}
|
|
1203
|
-
function
|
|
1204
|
-
const t =
|
|
1151
|
+
function pt(e, n) {
|
|
1152
|
+
const t = Vt(e);
|
|
1205
1153
|
return Math.round(n * t) / t;
|
|
1206
1154
|
}
|
|
1207
|
-
function
|
|
1155
|
+
function To(e, n, t) {
|
|
1208
1156
|
t === void 0 && (t = {});
|
|
1209
|
-
const o = t.whileElementsMounted, i =
|
|
1157
|
+
const o = t.whileElementsMounted, i = J(() => {
|
|
1210
1158
|
var _;
|
|
1211
1159
|
return (_ = se(t.open)) != null ? _ : !0;
|
|
1212
|
-
}), r =
|
|
1160
|
+
}), r = J(() => se(t.middleware)), l = J(() => {
|
|
1213
1161
|
var _;
|
|
1214
1162
|
return (_ = se(t.placement)) != null ? _ : "bottom";
|
|
1215
|
-
}), s =
|
|
1163
|
+
}), s = J(() => {
|
|
1216
1164
|
var _;
|
|
1217
1165
|
return (_ = se(t.strategy)) != null ? _ : "absolute";
|
|
1218
|
-
}), u =
|
|
1166
|
+
}), u = J(() => {
|
|
1219
1167
|
var _;
|
|
1220
1168
|
return (_ = se(t.transform)) != null ? _ : !0;
|
|
1221
|
-
}), g =
|
|
1169
|
+
}), g = J(() => qe(e.value)), c = J(() => qe(n.value)), f = le(0), d = le(0), a = le(s.value), p = le(l.value), m = St({}), w = le(!1), h = J(() => {
|
|
1222
1170
|
const _ = {
|
|
1223
1171
|
position: a.value,
|
|
1224
1172
|
left: "0",
|
|
@@ -1226,11 +1174,11 @@ function ni(e, n, t) {
|
|
|
1226
1174
|
};
|
|
1227
1175
|
if (!c.value)
|
|
1228
1176
|
return _;
|
|
1229
|
-
const F =
|
|
1177
|
+
const F = pt(c.value, f.value), M = pt(c.value, d.value);
|
|
1230
1178
|
return u.value ? {
|
|
1231
1179
|
..._,
|
|
1232
1180
|
transform: "translate(" + F + "px, " + M + "px)",
|
|
1233
|
-
...
|
|
1181
|
+
...Vt(c.value) >= 1.5 && {
|
|
1234
1182
|
willChange: "transform"
|
|
1235
1183
|
}
|
|
1236
1184
|
} : {
|
|
@@ -1244,7 +1192,7 @@ function ni(e, n, t) {
|
|
|
1244
1192
|
if (g.value == null || c.value == null)
|
|
1245
1193
|
return;
|
|
1246
1194
|
const _ = i.value;
|
|
1247
|
-
|
|
1195
|
+
Tn(g.value, c.value, {
|
|
1248
1196
|
middleware: r.value,
|
|
1249
1197
|
placement: l.value,
|
|
1250
1198
|
strategy: s.value
|
|
@@ -1268,13 +1216,13 @@ function ni(e, n, t) {
|
|
|
1268
1216
|
function $() {
|
|
1269
1217
|
i.value || (w.value = !1);
|
|
1270
1218
|
}
|
|
1271
|
-
return
|
|
1219
|
+
return xe([r, l, s, i], S, {
|
|
1272
1220
|
flush: "sync"
|
|
1273
|
-
}),
|
|
1221
|
+
}), xe([g, c], y, {
|
|
1274
1222
|
flush: "sync"
|
|
1275
|
-
}),
|
|
1223
|
+
}), xe(i, $, {
|
|
1276
1224
|
flush: "sync"
|
|
1277
|
-
}),
|
|
1225
|
+
}), Bt() && Nt(x), {
|
|
1278
1226
|
x: re(f),
|
|
1279
1227
|
y: re(d),
|
|
1280
1228
|
strategy: re(a),
|
|
@@ -1295,7 +1243,7 @@ function ni(e, n, t) {
|
|
|
1295
1243
|
*
|
|
1296
1244
|
* @license MIT
|
|
1297
1245
|
*/
|
|
1298
|
-
function
|
|
1246
|
+
function Bo() {
|
|
1299
1247
|
return {
|
|
1300
1248
|
accessor: (e, n) => typeof e == "function" ? {
|
|
1301
1249
|
...n,
|
|
@@ -1319,13 +1267,13 @@ function D(e, n) {
|
|
|
1319
1267
|
}));
|
|
1320
1268
|
};
|
|
1321
1269
|
}
|
|
1322
|
-
function
|
|
1270
|
+
function Ae(e) {
|
|
1323
1271
|
return e instanceof Function;
|
|
1324
1272
|
}
|
|
1325
|
-
function
|
|
1273
|
+
function Nn(e) {
|
|
1326
1274
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
1327
1275
|
}
|
|
1328
|
-
function
|
|
1276
|
+
function kn(e, n) {
|
|
1329
1277
|
const t = [], o = (i) => {
|
|
1330
1278
|
i.forEach((r) => {
|
|
1331
1279
|
t.push(r);
|
|
@@ -1369,7 +1317,7 @@ function R(e, n, t, o) {
|
|
|
1369
1317
|
onChange: o
|
|
1370
1318
|
};
|
|
1371
1319
|
}
|
|
1372
|
-
function
|
|
1320
|
+
function qn(e, n, t, o) {
|
|
1373
1321
|
const i = () => {
|
|
1374
1322
|
var l;
|
|
1375
1323
|
return (l = r.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -1392,7 +1340,7 @@ function io(e, n, t, o) {
|
|
|
1392
1340
|
l.createCell == null || l.createCell(r, t, n, e);
|
|
1393
1341
|
}, {}), r;
|
|
1394
1342
|
}
|
|
1395
|
-
function
|
|
1343
|
+
function jn(e, n, t, o) {
|
|
1396
1344
|
var i, r;
|
|
1397
1345
|
const s = {
|
|
1398
1346
|
...e._getDefaultColumnDef(),
|
|
@@ -1433,7 +1381,7 @@ function ro(e, n, t, o) {
|
|
|
1433
1381
|
return f;
|
|
1434
1382
|
}
|
|
1435
1383
|
const P = "debugHeaders";
|
|
1436
|
-
function
|
|
1384
|
+
function mt(e, n, t) {
|
|
1437
1385
|
var o;
|
|
1438
1386
|
let r = {
|
|
1439
1387
|
id: (o = t.id) != null ? o : n.id,
|
|
@@ -1462,20 +1410,20 @@ function vt(e, n, t) {
|
|
|
1462
1410
|
l.createHeader == null || l.createHeader(r, e);
|
|
1463
1411
|
}), r;
|
|
1464
1412
|
}
|
|
1465
|
-
const
|
|
1413
|
+
const bn = {
|
|
1466
1414
|
createTable: (e) => {
|
|
1467
1415
|
e.getHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, i) => {
|
|
1468
1416
|
var r, l;
|
|
1469
1417
|
const s = (r = o?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? r : [], u = (l = i?.map((f) => t.find((d) => d.id === f)).filter(Boolean)) != null ? l : [], g = t.filter((f) => !(o != null && o.includes(f.id)) && !(i != null && i.includes(f.id)));
|
|
1470
|
-
return
|
|
1471
|
-
}, R(e.options, P, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, i) => (t = t.filter((r) => !(o != null && o.includes(r.id)) && !(i != null && i.includes(r.id))),
|
|
1418
|
+
return Se(n, [...s, ...g, ...u], e);
|
|
1419
|
+
}, R(e.options, P, "getHeaderGroups")), e.getCenterHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, i) => (t = t.filter((r) => !(o != null && o.includes(r.id)) && !(i != null && i.includes(r.id))), Se(n, t, e, "center")), R(e.options, P, "getCenterHeaderGroups")), e.getLeftHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
|
|
1472
1420
|
var i;
|
|
1473
1421
|
const r = (i = o?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
|
|
1474
|
-
return
|
|
1422
|
+
return Se(n, r, e, "left");
|
|
1475
1423
|
}, R(e.options, P, "getLeftHeaderGroups")), e.getRightHeaderGroups = v(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
|
|
1476
1424
|
var i;
|
|
1477
1425
|
const r = (i = o?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? i : [];
|
|
1478
|
-
return
|
|
1426
|
+
return Se(n, r, e, "right");
|
|
1479
1427
|
}, R(e.options, P, "getRightHeaderGroups")), e.getFooterGroups = v(() => [e.getHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getFooterGroups")), e.getLeftFooterGroups = v(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getLeftFooterGroups")), e.getCenterFooterGroups = v(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getCenterFooterGroups")), e.getRightFooterGroups = v(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), R(e.options, P, "getRightFooterGroups")), e.getFlatHeaders = v(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getFlatHeaders")), e.getLeftFlatHeaders = v(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getLeftFlatHeaders")), e.getCenterFlatHeaders = v(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getCenterFlatHeaders")), e.getRightFlatHeaders = v(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, P, "getRightFlatHeaders")), e.getCenterLeafHeaders = v(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
1480
1428
|
var o;
|
|
1481
1429
|
return !((o = t.subHeaders) != null && o.length);
|
|
@@ -1491,7 +1439,7 @@ const lo = {
|
|
|
1491
1439
|
}, R(e.options, P, "getLeafHeaders"));
|
|
1492
1440
|
}
|
|
1493
1441
|
};
|
|
1494
|
-
function
|
|
1442
|
+
function Se(e, n, t, o) {
|
|
1495
1443
|
var i, r;
|
|
1496
1444
|
let l = 0;
|
|
1497
1445
|
const s = function(d, a) {
|
|
@@ -1514,7 +1462,7 @@ function Ce(e, n, t, o) {
|
|
|
1514
1462
|
if (C && w.column.parent ? S = w.column.parent : (S = w.column, x = !0), h && h?.column === S)
|
|
1515
1463
|
h.subHeaders.push(w);
|
|
1516
1464
|
else {
|
|
1517
|
-
const y =
|
|
1465
|
+
const y = mt(t, S, {
|
|
1518
1466
|
id: [o, a, S.id, w?.id].filter(Boolean).join("_"),
|
|
1519
1467
|
isPlaceholder: x,
|
|
1520
1468
|
placeholderId: x ? `${m.filter(($) => $.column === S).length}` : void 0,
|
|
@@ -1525,7 +1473,7 @@ function Ce(e, n, t, o) {
|
|
|
1525
1473
|
}
|
|
1526
1474
|
p.headers.push(w), w.headerGroup = p;
|
|
1527
1475
|
}), u.push(p), a > 0 && g(m, a - 1);
|
|
1528
|
-
}, c = n.map((d, a) =>
|
|
1476
|
+
}, c = n.map((d, a) => mt(t, d, {
|
|
1529
1477
|
depth: l,
|
|
1530
1478
|
index: a
|
|
1531
1479
|
}));
|
|
@@ -1547,7 +1495,7 @@ function Ce(e, n, t, o) {
|
|
|
1547
1495
|
});
|
|
1548
1496
|
return f((i = (r = u[0]) == null ? void 0 : r.headers) != null ? i : []), u;
|
|
1549
1497
|
}
|
|
1550
|
-
const
|
|
1498
|
+
const Wn = (e, n, t, o, i, r, l) => {
|
|
1551
1499
|
let s = {
|
|
1552
1500
|
id: n,
|
|
1553
1501
|
index: o,
|
|
@@ -1575,7 +1523,7 @@ const so = (e, n, t, o, i, r, l) => {
|
|
|
1575
1523
|
return (g = s.getValue(u)) != null ? g : e.options.renderFallbackValue;
|
|
1576
1524
|
},
|
|
1577
1525
|
subRows: [],
|
|
1578
|
-
getLeafRows: () =>
|
|
1526
|
+
getLeafRows: () => kn(s.subRows, (u) => u.subRows),
|
|
1579
1527
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
1580
1528
|
getParentRows: () => {
|
|
1581
1529
|
let u = [], g = s;
|
|
@@ -1586,7 +1534,7 @@ const so = (e, n, t, o, i, r, l) => {
|
|
|
1586
1534
|
}
|
|
1587
1535
|
return u.reverse();
|
|
1588
1536
|
},
|
|
1589
|
-
getAllCells: v(() => [e.getAllLeafColumns()], (u) => u.map((g) =>
|
|
1537
|
+
getAllCells: v(() => [e.getAllLeafColumns()], (u) => u.map((g) => qn(e, s, g, g.id)), R(e.options, "debugRows", "getAllCells")),
|
|
1590
1538
|
_getAllCellsByColumnId: v(() => [s.getAllCells()], (u) => u.reduce((g, c) => (g[c.column.id] = c, g), {}), R(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
1591
1539
|
};
|
|
1592
1540
|
for (let u = 0; u < e._features.length; u++) {
|
|
@@ -1594,54 +1542,54 @@ const so = (e, n, t, o, i, r, l) => {
|
|
|
1594
1542
|
g == null || g.createRow == null || g.createRow(s, e);
|
|
1595
1543
|
}
|
|
1596
1544
|
return s;
|
|
1597
|
-
},
|
|
1545
|
+
}, Un = {
|
|
1598
1546
|
createColumn: (e, n) => {
|
|
1599
1547
|
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
1600
1548
|
if (e._getFacetedMinMaxValues)
|
|
1601
1549
|
return e._getFacetedMinMaxValues();
|
|
1602
1550
|
};
|
|
1603
1551
|
}
|
|
1604
|
-
},
|
|
1552
|
+
}, At = (e, n, t) => {
|
|
1605
1553
|
var o, i;
|
|
1606
1554
|
const r = t == null || (o = t.toString()) == null ? void 0 : o.toLowerCase();
|
|
1607
1555
|
return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(r));
|
|
1608
1556
|
};
|
|
1609
|
-
|
|
1610
|
-
const
|
|
1557
|
+
At.autoRemove = (e) => G(e);
|
|
1558
|
+
const Et = (e, n, t) => {
|
|
1611
1559
|
var o;
|
|
1612
1560
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
|
|
1613
1561
|
};
|
|
1614
|
-
|
|
1615
|
-
const
|
|
1562
|
+
Et.autoRemove = (e) => G(e);
|
|
1563
|
+
const It = (e, n, t) => {
|
|
1616
1564
|
var o;
|
|
1617
1565
|
return ((o = e.getValue(n)) == null || (o = o.toString()) == null ? void 0 : o.toLowerCase()) === t?.toLowerCase();
|
|
1618
1566
|
};
|
|
1619
|
-
|
|
1620
|
-
const
|
|
1567
|
+
It.autoRemove = (e) => G(e);
|
|
1568
|
+
const Dt = (e, n, t) => {
|
|
1621
1569
|
var o;
|
|
1622
1570
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
|
|
1623
1571
|
};
|
|
1624
|
-
|
|
1625
|
-
const
|
|
1572
|
+
Dt.autoRemove = (e) => G(e);
|
|
1573
|
+
const Lt = (e, n, t) => !t.some((o) => {
|
|
1626
1574
|
var i;
|
|
1627
1575
|
return !((i = e.getValue(n)) != null && i.includes(o));
|
|
1628
1576
|
});
|
|
1629
|
-
|
|
1630
|
-
const
|
|
1577
|
+
Lt.autoRemove = (e) => G(e) || !(e != null && e.length);
|
|
1578
|
+
const Ot = (e, n, t) => t.some((o) => {
|
|
1631
1579
|
var i;
|
|
1632
1580
|
return (i = e.getValue(n)) == null ? void 0 : i.includes(o);
|
|
1633
1581
|
});
|
|
1634
|
-
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1638
|
-
|
|
1639
|
-
const
|
|
1582
|
+
Ot.autoRemove = (e) => G(e) || !(e != null && e.length);
|
|
1583
|
+
const Ht = (e, n, t) => e.getValue(n) === t;
|
|
1584
|
+
Ht.autoRemove = (e) => G(e);
|
|
1585
|
+
const Gt = (e, n, t) => e.getValue(n) == t;
|
|
1586
|
+
Gt.autoRemove = (e) => G(e);
|
|
1587
|
+
const nt = (e, n, t) => {
|
|
1640
1588
|
let [o, i] = t;
|
|
1641
1589
|
const r = e.getValue(n);
|
|
1642
1590
|
return r >= o && r <= i;
|
|
1643
1591
|
};
|
|
1644
|
-
|
|
1592
|
+
nt.resolveFilterValue = (e) => {
|
|
1645
1593
|
let [n, t] = e, o = typeof n != "number" ? parseFloat(n) : n, i = typeof t != "number" ? parseFloat(t) : t, r = n === null || Number.isNaN(o) ? -1 / 0 : o, l = t === null || Number.isNaN(i) ? 1 / 0 : i;
|
|
1646
1594
|
if (r > l) {
|
|
1647
1595
|
const s = r;
|
|
@@ -1649,22 +1597,22 @@ it.resolveFilterValue = (e) => {
|
|
|
1649
1597
|
}
|
|
1650
1598
|
return [r, l];
|
|
1651
1599
|
};
|
|
1652
|
-
|
|
1653
|
-
const
|
|
1654
|
-
includesString:
|
|
1655
|
-
includesStringSensitive:
|
|
1656
|
-
equalsString:
|
|
1657
|
-
arrIncludes:
|
|
1658
|
-
arrIncludesAll:
|
|
1659
|
-
arrIncludesSome:
|
|
1660
|
-
equals:
|
|
1661
|
-
weakEquals:
|
|
1662
|
-
inNumberRange:
|
|
1600
|
+
nt.autoRemove = (e) => G(e) || G(e[0]) && G(e[1]);
|
|
1601
|
+
const W = {
|
|
1602
|
+
includesString: At,
|
|
1603
|
+
includesStringSensitive: Et,
|
|
1604
|
+
equalsString: It,
|
|
1605
|
+
arrIncludes: Dt,
|
|
1606
|
+
arrIncludesAll: Lt,
|
|
1607
|
+
arrIncludesSome: Ot,
|
|
1608
|
+
equals: Ht,
|
|
1609
|
+
weakEquals: Gt,
|
|
1610
|
+
inNumberRange: nt
|
|
1663
1611
|
};
|
|
1664
1612
|
function G(e) {
|
|
1665
1613
|
return e == null || e === "";
|
|
1666
1614
|
}
|
|
1667
|
-
const
|
|
1615
|
+
const Xn = {
|
|
1668
1616
|
getDefaultColumnDef: () => ({
|
|
1669
1617
|
filterFn: "auto"
|
|
1670
1618
|
}),
|
|
@@ -1680,12 +1628,12 @@ const ao = {
|
|
|
1680
1628
|
createColumn: (e, n) => {
|
|
1681
1629
|
e.getAutoFilterFn = () => {
|
|
1682
1630
|
const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
|
|
1683
|
-
return typeof o == "string" ?
|
|
1631
|
+
return typeof o == "string" ? W.includesString : typeof o == "number" ? W.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? W.equals : Array.isArray(o) ? W.arrIncludes : W.weakEquals;
|
|
1684
1632
|
}, e.getFilterFn = () => {
|
|
1685
1633
|
var t, o;
|
|
1686
|
-
return
|
|
1634
|
+
return Ae(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
1687
1635
|
// @ts-ignore
|
|
1688
|
-
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t :
|
|
1636
|
+
(t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : W[e.columnDef.filterFn]
|
|
1689
1637
|
);
|
|
1690
1638
|
}, e.getCanFilter = () => {
|
|
1691
1639
|
var t, o, i;
|
|
@@ -1699,7 +1647,7 @@ const ao = {
|
|
|
1699
1647
|
}, e.setFilterValue = (t) => {
|
|
1700
1648
|
n.setColumnFilters((o) => {
|
|
1701
1649
|
const i = e.getFilterFn(), r = o?.find((c) => c.id === e.id), l = Q(t, r ? r.value : void 0);
|
|
1702
|
-
if (
|
|
1650
|
+
if (ht(i, l, e)) {
|
|
1703
1651
|
var s;
|
|
1704
1652
|
return (s = o?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
1705
1653
|
}
|
|
@@ -1726,7 +1674,7 @@ const ao = {
|
|
|
1726
1674
|
const s = t.find((u) => u.id === l.id);
|
|
1727
1675
|
if (s) {
|
|
1728
1676
|
const u = s.getFilterFn();
|
|
1729
|
-
if (
|
|
1677
|
+
if (ht(u, l.value, s))
|
|
1730
1678
|
return !1;
|
|
1731
1679
|
}
|
|
1732
1680
|
return !0;
|
|
@@ -1739,57 +1687,57 @@ const ao = {
|
|
|
1739
1687
|
}, 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());
|
|
1740
1688
|
}
|
|
1741
1689
|
};
|
|
1742
|
-
function
|
|
1690
|
+
function ht(e, n, t) {
|
|
1743
1691
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
1744
1692
|
}
|
|
1745
|
-
const
|
|
1693
|
+
const Kn = (e, n, t) => t.reduce((o, i) => {
|
|
1746
1694
|
const r = i.getValue(e);
|
|
1747
1695
|
return o + (typeof r == "number" ? r : 0);
|
|
1748
|
-
}, 0),
|
|
1696
|
+
}, 0), Yn = (e, n, t) => {
|
|
1749
1697
|
let o;
|
|
1750
1698
|
return t.forEach((i) => {
|
|
1751
1699
|
const r = i.getValue(e);
|
|
1752
1700
|
r != null && (o > r || o === void 0 && r >= r) && (o = r);
|
|
1753
1701
|
}), o;
|
|
1754
|
-
},
|
|
1702
|
+
}, Jn = (e, n, t) => {
|
|
1755
1703
|
let o;
|
|
1756
1704
|
return t.forEach((i) => {
|
|
1757
1705
|
const r = i.getValue(e);
|
|
1758
1706
|
r != null && (o < r || o === void 0 && r >= r) && (o = r);
|
|
1759
1707
|
}), o;
|
|
1760
|
-
},
|
|
1708
|
+
}, Qn = (e, n, t) => {
|
|
1761
1709
|
let o, i;
|
|
1762
1710
|
return t.forEach((r) => {
|
|
1763
1711
|
const l = r.getValue(e);
|
|
1764
1712
|
l != null && (o === void 0 ? l >= l && (o = i = l) : (o > l && (o = l), i < l && (i = l)));
|
|
1765
1713
|
}), [o, i];
|
|
1766
|
-
},
|
|
1714
|
+
}, Zn = (e, n) => {
|
|
1767
1715
|
let t = 0, o = 0;
|
|
1768
1716
|
if (n.forEach((i) => {
|
|
1769
1717
|
let r = i.getValue(e);
|
|
1770
1718
|
r != null && (r = +r) >= r && (++t, o += r);
|
|
1771
1719
|
}), t) return o / t;
|
|
1772
|
-
},
|
|
1720
|
+
}, eo = (e, n) => {
|
|
1773
1721
|
if (!n.length)
|
|
1774
1722
|
return;
|
|
1775
1723
|
const t = n.map((r) => r.getValue(e));
|
|
1776
|
-
if (!
|
|
1724
|
+
if (!Nn(t))
|
|
1777
1725
|
return;
|
|
1778
1726
|
if (t.length === 1)
|
|
1779
1727
|
return t[0];
|
|
1780
1728
|
const o = Math.floor(t.length / 2), i = t.sort((r, l) => r - l);
|
|
1781
1729
|
return t.length % 2 !== 0 ? i[o] : (i[o - 1] + i[o]) / 2;
|
|
1782
|
-
},
|
|
1783
|
-
sum:
|
|
1784
|
-
min:
|
|
1785
|
-
max:
|
|
1786
|
-
extent:
|
|
1787
|
-
mean:
|
|
1788
|
-
median:
|
|
1789
|
-
unique:
|
|
1790
|
-
uniqueCount:
|
|
1791
|
-
count:
|
|
1792
|
-
},
|
|
1730
|
+
}, to = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), no = (e, n) => new Set(n.map((t) => t.getValue(e))).size, oo = (e, n) => n.length, Ie = {
|
|
1731
|
+
sum: Kn,
|
|
1732
|
+
min: Yn,
|
|
1733
|
+
max: Jn,
|
|
1734
|
+
extent: Qn,
|
|
1735
|
+
mean: Zn,
|
|
1736
|
+
median: eo,
|
|
1737
|
+
unique: to,
|
|
1738
|
+
uniqueCount: no,
|
|
1739
|
+
count: oo
|
|
1740
|
+
}, io = {
|
|
1793
1741
|
getDefaultColumnDef: () => ({
|
|
1794
1742
|
aggregatedCell: (e) => {
|
|
1795
1743
|
var n, t;
|
|
@@ -1825,14 +1773,14 @@ const go = (e, n, t) => t.reduce((o, i) => {
|
|
|
1825
1773
|
}, e.getAutoAggregationFn = () => {
|
|
1826
1774
|
const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
|
|
1827
1775
|
if (typeof o == "number")
|
|
1828
|
-
return
|
|
1776
|
+
return Ie.sum;
|
|
1829
1777
|
if (Object.prototype.toString.call(o) === "[object Date]")
|
|
1830
|
-
return
|
|
1778
|
+
return Ie.extent;
|
|
1831
1779
|
}, e.getAggregationFn = () => {
|
|
1832
1780
|
var t, o;
|
|
1833
1781
|
if (!e)
|
|
1834
1782
|
throw new Error();
|
|
1835
|
-
return
|
|
1783
|
+
return Ae(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (o = n.options.aggregationFns) == null ? void 0 : o[e.columnDef.aggregationFn]) != null ? t : Ie[e.columnDef.aggregationFn];
|
|
1836
1784
|
};
|
|
1837
1785
|
},
|
|
1838
1786
|
createTable: (e) => {
|
|
@@ -1856,13 +1804,13 @@ const go = (e, n, t) => t.reduce((o, i) => {
|
|
|
1856
1804
|
};
|
|
1857
1805
|
}
|
|
1858
1806
|
};
|
|
1859
|
-
function
|
|
1807
|
+
function ro(e, n, t) {
|
|
1860
1808
|
if (!(n != null && n.length) || !t)
|
|
1861
1809
|
return e;
|
|
1862
1810
|
const o = e.filter((r) => !n.includes(r.id));
|
|
1863
1811
|
return t === "remove" ? o : [...n.map((r) => e.find((l) => l.id === r)).filter(Boolean), ...o];
|
|
1864
1812
|
}
|
|
1865
|
-
const
|
|
1813
|
+
const lo = {
|
|
1866
1814
|
getInitialState: (e) => ({
|
|
1867
1815
|
columnOrder: [],
|
|
1868
1816
|
...e
|
|
@@ -1896,15 +1844,15 @@ const xo = {
|
|
|
1896
1844
|
}
|
|
1897
1845
|
r = [...r, ...s];
|
|
1898
1846
|
}
|
|
1899
|
-
return
|
|
1847
|
+
return ro(r, t, o);
|
|
1900
1848
|
}, R(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
1901
1849
|
}
|
|
1902
|
-
},
|
|
1850
|
+
}, De = () => ({
|
|
1903
1851
|
left: [],
|
|
1904
1852
|
right: []
|
|
1905
|
-
}),
|
|
1853
|
+
}), so = {
|
|
1906
1854
|
getInitialState: (e) => ({
|
|
1907
|
-
columnPinning:
|
|
1855
|
+
columnPinning: De(),
|
|
1908
1856
|
...e
|
|
1909
1857
|
}),
|
|
1910
1858
|
getDefaultOptions: (e) => ({
|
|
@@ -1964,7 +1912,7 @@ const xo = {
|
|
|
1964
1912
|
createTable: (e) => {
|
|
1965
1913
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
1966
1914
|
var t, o;
|
|
1967
|
-
return e.setColumnPinning(n ?
|
|
1915
|
+
return e.setColumnPinning(n ? De() : (t = (o = e.initialState) == null ? void 0 : o.columnPinning) != null ? t : De());
|
|
1968
1916
|
}, e.getIsSomeColumnsPinned = (n) => {
|
|
1969
1917
|
var t;
|
|
1970
1918
|
const o = e.getState().columnPinning;
|
|
@@ -1979,25 +1927,25 @@ const xo = {
|
|
|
1979
1927
|
}, R(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
1980
1928
|
}
|
|
1981
1929
|
};
|
|
1982
|
-
function
|
|
1930
|
+
function uo(e) {
|
|
1983
1931
|
return e || (typeof document < "u" ? document : null);
|
|
1984
1932
|
}
|
|
1985
|
-
const
|
|
1933
|
+
const Ce = {
|
|
1986
1934
|
size: 150,
|
|
1987
1935
|
minSize: 20,
|
|
1988
1936
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
1989
|
-
},
|
|
1937
|
+
}, Le = () => ({
|
|
1990
1938
|
startOffset: null,
|
|
1991
1939
|
startSize: null,
|
|
1992
1940
|
deltaOffset: null,
|
|
1993
1941
|
deltaPercentage: null,
|
|
1994
1942
|
isResizingColumn: !1,
|
|
1995
1943
|
columnSizingStart: []
|
|
1996
|
-
}),
|
|
1997
|
-
getDefaultColumnDef: () =>
|
|
1944
|
+
}), ao = {
|
|
1945
|
+
getDefaultColumnDef: () => Ce,
|
|
1998
1946
|
getInitialState: (e) => ({
|
|
1999
1947
|
columnSizing: {},
|
|
2000
|
-
columnSizingInfo:
|
|
1948
|
+
columnSizingInfo: Le(),
|
|
2001
1949
|
...e
|
|
2002
1950
|
}),
|
|
2003
1951
|
getDefaultOptions: (e) => ({
|
|
@@ -2010,7 +1958,7 @@ const ve = {
|
|
|
2010
1958
|
e.getSize = () => {
|
|
2011
1959
|
var t, o, i;
|
|
2012
1960
|
const r = n.getState().columnSizing[e.id];
|
|
2013
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
1961
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ce.minSize, (o = r ?? e.columnDef.size) != null ? o : Ce.size), (i = e.columnDef.maxSize) != null ? i : Ce.maxSize);
|
|
2014
1962
|
}, e.getStart = v((t) => [t, fe(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((i, r) => i + r.getSize(), 0), R(n.options, "debugColumns", "getStart")), e.getAfter = v((t) => [t, fe(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((i, r) => i + r.getSize(), 0), R(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
2015
1963
|
n.setColumnSizing((t) => {
|
|
2016
1964
|
let {
|
|
@@ -2045,15 +1993,15 @@ const ve = {
|
|
|
2045
1993
|
}, e.getResizeHandler = (t) => {
|
|
2046
1994
|
const o = n.getColumn(e.column.id), i = o?.getCanResize();
|
|
2047
1995
|
return (r) => {
|
|
2048
|
-
if (!o || !i || (r.persist == null || r.persist(),
|
|
1996
|
+
if (!o || !i || (r.persist == null || r.persist(), Oe(r) && r.touches && r.touches.length > 1))
|
|
2049
1997
|
return;
|
|
2050
|
-
const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[o.id, o.getSize()]], u =
|
|
1998
|
+
const l = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[o.id, o.getSize()]], u = Oe(r) ? Math.round(r.touches[0].clientX) : r.clientX, g = {}, c = (h, C) => {
|
|
2051
1999
|
typeof C == "number" && (n.setColumnSizingInfo((S) => {
|
|
2052
2000
|
var x, y;
|
|
2053
2001
|
const $ = n.options.columnResizeDirection === "rtl" ? -1 : 1, _ = (C - ((x = S?.startOffset) != null ? x : 0)) * $, F = Math.max(_ / ((y = S?.startSize) != null ? y : 0), -0.999999);
|
|
2054
2002
|
return S.columnSizingStart.forEach((M) => {
|
|
2055
|
-
let [A,
|
|
2056
|
-
g[A] = Math.round(Math.max(
|
|
2003
|
+
let [A, L] = M;
|
|
2004
|
+
g[A] = Math.round(Math.max(L + L * F, 0) * 100) / 100;
|
|
2057
2005
|
}), {
|
|
2058
2006
|
...S,
|
|
2059
2007
|
deltaOffset: _,
|
|
@@ -2073,7 +2021,7 @@ const ve = {
|
|
|
2073
2021
|
deltaPercentage: null,
|
|
2074
2022
|
columnSizingStart: []
|
|
2075
2023
|
}));
|
|
2076
|
-
}, a =
|
|
2024
|
+
}, a = uo(t), p = {
|
|
2077
2025
|
moveHandler: (h) => f(h.clientX),
|
|
2078
2026
|
upHandler: (h) => {
|
|
2079
2027
|
a?.removeEventListener("mousemove", p.moveHandler), a?.removeEventListener("mouseup", p.upHandler), d(h.clientX);
|
|
@@ -2084,10 +2032,10 @@ const ve = {
|
|
|
2084
2032
|
var C;
|
|
2085
2033
|
a?.removeEventListener("touchmove", m.moveHandler), a?.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), d((C = h.touches[0]) == null ? void 0 : C.clientX);
|
|
2086
2034
|
}
|
|
2087
|
-
}, w =
|
|
2035
|
+
}, w = go() ? {
|
|
2088
2036
|
passive: !1
|
|
2089
2037
|
} : !1;
|
|
2090
|
-
|
|
2038
|
+
Oe(r) ? (a?.addEventListener("touchmove", m.moveHandler, w), a?.addEventListener("touchend", m.upHandler, w)) : (a?.addEventListener("mousemove", p.moveHandler, w), a?.addEventListener("mouseup", p.upHandler, w)), n.setColumnSizingInfo((h) => ({
|
|
2091
2039
|
...h,
|
|
2092
2040
|
startOffset: u,
|
|
2093
2041
|
startSize: l,
|
|
@@ -2105,7 +2053,7 @@ const ve = {
|
|
|
2105
2053
|
e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
2106
2054
|
}, e.resetHeaderSizeInfo = (n) => {
|
|
2107
2055
|
var t;
|
|
2108
|
-
e.setColumnSizingInfo(n ?
|
|
2056
|
+
e.setColumnSizingInfo(n ? Le() : (t = e.initialState.columnSizingInfo) != null ? t : Le());
|
|
2109
2057
|
}, e.getTotalSize = () => {
|
|
2110
2058
|
var n, t;
|
|
2111
2059
|
return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, i) => o + i.getSize(), 0)) != null ? n : 0;
|
|
@@ -2121,9 +2069,9 @@ const ve = {
|
|
|
2121
2069
|
};
|
|
2122
2070
|
}
|
|
2123
2071
|
};
|
|
2124
|
-
let
|
|
2125
|
-
function
|
|
2126
|
-
if (typeof
|
|
2072
|
+
let ve = null;
|
|
2073
|
+
function go() {
|
|
2074
|
+
if (typeof ve == "boolean") return ve;
|
|
2127
2075
|
let e = !1;
|
|
2128
2076
|
try {
|
|
2129
2077
|
const n = {
|
|
@@ -2136,12 +2084,12 @@ function $o() {
|
|
|
2136
2084
|
} catch {
|
|
2137
2085
|
e = !1;
|
|
2138
2086
|
}
|
|
2139
|
-
return
|
|
2087
|
+
return ve = e, ve;
|
|
2140
2088
|
}
|
|
2141
|
-
function
|
|
2089
|
+
function Oe(e) {
|
|
2142
2090
|
return e.type === "touchstart";
|
|
2143
2091
|
}
|
|
2144
|
-
const
|
|
2092
|
+
const co = {
|
|
2145
2093
|
getInitialState: (e) => ({
|
|
2146
2094
|
columnVisibility: {},
|
|
2147
2095
|
...e
|
|
@@ -2189,14 +2137,14 @@ const Po = {
|
|
|
2189
2137
|
function fe(e, n) {
|
|
2190
2138
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
2191
2139
|
}
|
|
2192
|
-
const
|
|
2140
|
+
const fo = {
|
|
2193
2141
|
createTable: (e) => {
|
|
2194
2142
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
2195
2143
|
if (e._getGlobalFacetedMinMaxValues)
|
|
2196
2144
|
return e._getGlobalFacetedMinMaxValues();
|
|
2197
2145
|
};
|
|
2198
2146
|
}
|
|
2199
|
-
},
|
|
2147
|
+
}, po = {
|
|
2200
2148
|
getInitialState: (e) => ({
|
|
2201
2149
|
globalFilter: void 0,
|
|
2202
2150
|
...e
|
|
@@ -2217,19 +2165,19 @@ const Mo = {
|
|
|
2217
2165
|
};
|
|
2218
2166
|
},
|
|
2219
2167
|
createTable: (e) => {
|
|
2220
|
-
e.getGlobalAutoFilterFn = () =>
|
|
2168
|
+
e.getGlobalAutoFilterFn = () => W.includesString, e.getGlobalFilterFn = () => {
|
|
2221
2169
|
var n, t;
|
|
2222
2170
|
const {
|
|
2223
2171
|
globalFilterFn: o
|
|
2224
2172
|
} = e.options;
|
|
2225
|
-
return
|
|
2173
|
+
return Ae(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : W[o];
|
|
2226
2174
|
}, e.setGlobalFilter = (n) => {
|
|
2227
2175
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
2228
2176
|
}, e.resetGlobalFilter = (n) => {
|
|
2229
2177
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
2230
2178
|
};
|
|
2231
2179
|
}
|
|
2232
|
-
},
|
|
2180
|
+
}, mo = {
|
|
2233
2181
|
getInitialState: (e) => ({
|
|
2234
2182
|
expanded: {},
|
|
2235
2183
|
...e
|
|
@@ -2316,14 +2264,14 @@ const Mo = {
|
|
|
2316
2264
|
};
|
|
2317
2265
|
};
|
|
2318
2266
|
}
|
|
2319
|
-
},
|
|
2320
|
-
pageIndex:
|
|
2321
|
-
pageSize:
|
|
2322
|
-
}),
|
|
2267
|
+
}, je = 0, be = 10, He = () => ({
|
|
2268
|
+
pageIndex: je,
|
|
2269
|
+
pageSize: be
|
|
2270
|
+
}), ho = {
|
|
2323
2271
|
getInitialState: (e) => ({
|
|
2324
2272
|
...e,
|
|
2325
2273
|
pagination: {
|
|
2326
|
-
...
|
|
2274
|
+
...He(),
|
|
2327
2275
|
...e?.pagination
|
|
2328
2276
|
}
|
|
2329
2277
|
}),
|
|
@@ -2351,7 +2299,7 @@ const Mo = {
|
|
|
2351
2299
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(i);
|
|
2352
2300
|
}, e.resetPagination = (o) => {
|
|
2353
2301
|
var i;
|
|
2354
|
-
e.setPagination(o ?
|
|
2302
|
+
e.setPagination(o ? He() : (i = e.initialState.pagination) != null ? i : He());
|
|
2355
2303
|
}, e.setPageIndex = (o) => {
|
|
2356
2304
|
e.setPagination((i) => {
|
|
2357
2305
|
let r = Q(o, i.pageIndex);
|
|
@@ -2363,10 +2311,10 @@ const Mo = {
|
|
|
2363
2311
|
});
|
|
2364
2312
|
}, e.resetPageIndex = (o) => {
|
|
2365
2313
|
var i, r;
|
|
2366
|
-
e.setPageIndex(o ?
|
|
2314
|
+
e.setPageIndex(o ? je : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageIndex) != null ? i : je);
|
|
2367
2315
|
}, e.resetPageSize = (o) => {
|
|
2368
2316
|
var i, r;
|
|
2369
|
-
e.setPageSize(o ?
|
|
2317
|
+
e.setPageSize(o ? be : (i = (r = e.initialState) == null || (r = r.pagination) == null ? void 0 : r.pageSize) != null ? i : be);
|
|
2370
2318
|
}, e.setPageSize = (o) => {
|
|
2371
2319
|
e.setPagination((i) => {
|
|
2372
2320
|
const r = Math.max(1, Q(o, i.pageSize)), l = i.pageSize * i.pageIndex, s = Math.floor(l / r);
|
|
@@ -2399,12 +2347,12 @@ const Mo = {
|
|
|
2399
2347
|
return (o = e.options.rowCount) != null ? o : e.getPrePaginationRowModel().rows.length;
|
|
2400
2348
|
};
|
|
2401
2349
|
}
|
|
2402
|
-
},
|
|
2350
|
+
}, Ge = () => ({
|
|
2403
2351
|
top: [],
|
|
2404
2352
|
bottom: []
|
|
2405
|
-
}),
|
|
2353
|
+
}), wo = {
|
|
2406
2354
|
getInitialState: (e) => ({
|
|
2407
|
-
rowPinning:
|
|
2355
|
+
rowPinning: Ge(),
|
|
2408
2356
|
...e
|
|
2409
2357
|
}),
|
|
2410
2358
|
getDefaultOptions: (e) => ({
|
|
@@ -2473,7 +2421,7 @@ const Mo = {
|
|
|
2473
2421
|
createTable: (e) => {
|
|
2474
2422
|
e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
|
|
2475
2423
|
var t, o;
|
|
2476
|
-
return e.setRowPinning(n ?
|
|
2424
|
+
return e.setRowPinning(n ? Ge() : (t = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? t : Ge());
|
|
2477
2425
|
}, e.getIsSomeRowsPinned = (n) => {
|
|
2478
2426
|
var t;
|
|
2479
2427
|
const o = e.getState().rowPinning;
|
|
@@ -2503,7 +2451,7 @@ const Mo = {
|
|
|
2503
2451
|
return n.filter((r) => !i.has(r.id));
|
|
2504
2452
|
}, R(e.options, "debugRows", "getCenterRows"));
|
|
2505
2453
|
}
|
|
2506
|
-
},
|
|
2454
|
+
}, So = {
|
|
2507
2455
|
getInitialState: (e) => ({
|
|
2508
2456
|
rowSelection: {},
|
|
2509
2457
|
...e
|
|
@@ -2538,17 +2486,17 @@ const Mo = {
|
|
|
2538
2486
|
...t
|
|
2539
2487
|
};
|
|
2540
2488
|
return e.getRowModel().rows.forEach((r) => {
|
|
2541
|
-
|
|
2489
|
+
We(i, r.id, o, !0, e);
|
|
2542
2490
|
}), i;
|
|
2543
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ?
|
|
2491
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = v(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? ze(e, t) : {
|
|
2544
2492
|
rows: [],
|
|
2545
2493
|
flatRows: [],
|
|
2546
2494
|
rowsById: {}
|
|
2547
|
-
}, R(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ?
|
|
2495
|
+
}, R(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = v(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? ze(e, t) : {
|
|
2548
2496
|
rows: [],
|
|
2549
2497
|
flatRows: [],
|
|
2550
2498
|
rowsById: {}
|
|
2551
|
-
}, R(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ?
|
|
2499
|
+
}, R(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = v(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? ze(e, t) : {
|
|
2552
2500
|
rows: [],
|
|
2553
2501
|
flatRows: [],
|
|
2554
2502
|
rowsById: {}
|
|
@@ -2587,23 +2535,23 @@ const Mo = {
|
|
|
2587
2535
|
const s = {
|
|
2588
2536
|
...r
|
|
2589
2537
|
};
|
|
2590
|
-
return
|
|
2538
|
+
return We(s, e.id, t, (l = o?.selectChildren) != null ? l : !0, n), s;
|
|
2591
2539
|
});
|
|
2592
2540
|
}, e.getIsSelected = () => {
|
|
2593
2541
|
const {
|
|
2594
2542
|
rowSelection: t
|
|
2595
2543
|
} = n.getState();
|
|
2596
|
-
return
|
|
2544
|
+
return ot(e, t);
|
|
2597
2545
|
}, e.getIsSomeSelected = () => {
|
|
2598
2546
|
const {
|
|
2599
2547
|
rowSelection: t
|
|
2600
2548
|
} = n.getState();
|
|
2601
|
-
return
|
|
2549
|
+
return Ue(e, t) === "some";
|
|
2602
2550
|
}, e.getIsAllSubRowsSelected = () => {
|
|
2603
2551
|
const {
|
|
2604
2552
|
rowSelection: t
|
|
2605
2553
|
} = n.getState();
|
|
2606
|
-
return
|
|
2554
|
+
return Ue(e, t) === "all";
|
|
2607
2555
|
}, e.getCanSelect = () => {
|
|
2608
2556
|
var t;
|
|
2609
2557
|
return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
|
|
@@ -2621,16 +2569,16 @@ const Mo = {
|
|
|
2621
2569
|
};
|
|
2622
2570
|
};
|
|
2623
2571
|
}
|
|
2624
|
-
},
|
|
2572
|
+
}, We = (e, n, t, o, i) => {
|
|
2625
2573
|
var r;
|
|
2626
2574
|
const l = i.getRow(n, !0);
|
|
2627
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) =>
|
|
2575
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (r = l.subRows) != null && r.length && l.getCanSelectSubRows() && l.subRows.forEach((s) => We(e, s.id, t, o, i));
|
|
2628
2576
|
};
|
|
2629
|
-
function
|
|
2577
|
+
function ze(e, n) {
|
|
2630
2578
|
const t = e.getState().rowSelection, o = [], i = {}, r = function(l, s) {
|
|
2631
2579
|
return l.map((u) => {
|
|
2632
2580
|
var g;
|
|
2633
|
-
const c =
|
|
2581
|
+
const c = ot(u, t);
|
|
2634
2582
|
if (c && (o.push(u), i[u.id] = u), (g = u.subRows) != null && g.length && (u = {
|
|
2635
2583
|
...u,
|
|
2636
2584
|
subRows: r(u.subRows)
|
|
@@ -2644,33 +2592,33 @@ function Be(e, n) {
|
|
|
2644
2592
|
rowsById: i
|
|
2645
2593
|
};
|
|
2646
2594
|
}
|
|
2647
|
-
function
|
|
2595
|
+
function ot(e, n) {
|
|
2648
2596
|
var t;
|
|
2649
2597
|
return (t = n[e.id]) != null ? t : !1;
|
|
2650
2598
|
}
|
|
2651
|
-
function
|
|
2599
|
+
function Ue(e, n, t) {
|
|
2652
2600
|
var o;
|
|
2653
2601
|
if (!((o = e.subRows) != null && o.length)) return !1;
|
|
2654
2602
|
let i = !0, r = !1;
|
|
2655
2603
|
return e.subRows.forEach((l) => {
|
|
2656
|
-
if (!(r && !i) && (l.getCanSelect() && (
|
|
2657
|
-
const s =
|
|
2604
|
+
if (!(r && !i) && (l.getCanSelect() && (ot(l, n) ? r = !0 : i = !1), l.subRows && l.subRows.length)) {
|
|
2605
|
+
const s = Ue(l, n);
|
|
2658
2606
|
s === "all" ? r = !0 : (s === "some" && (r = !0), i = !1);
|
|
2659
2607
|
}
|
|
2660
2608
|
}), i ? "all" : r ? "some" : !1;
|
|
2661
2609
|
}
|
|
2662
|
-
const
|
|
2610
|
+
const Xe = /([0-9]+)/gm, Co = (e, n, t) => zt(te(e.getValue(t)).toLowerCase(), te(n.getValue(t)).toLowerCase()), vo = (e, n, t) => zt(te(e.getValue(t)), te(n.getValue(t))), Ro = (e, n, t) => it(te(e.getValue(t)).toLowerCase(), te(n.getValue(t)).toLowerCase()), xo = (e, n, t) => it(te(e.getValue(t)), te(n.getValue(t))), yo = (e, n, t) => {
|
|
2663
2611
|
const o = e.getValue(t), i = n.getValue(t);
|
|
2664
2612
|
return o > i ? 1 : o < i ? -1 : 0;
|
|
2665
|
-
},
|
|
2666
|
-
function
|
|
2613
|
+
}, _o = (e, n, t) => it(e.getValue(t), n.getValue(t));
|
|
2614
|
+
function it(e, n) {
|
|
2667
2615
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
2668
2616
|
}
|
|
2669
2617
|
function te(e) {
|
|
2670
2618
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
2671
2619
|
}
|
|
2672
|
-
function
|
|
2673
|
-
const t = e.split(
|
|
2620
|
+
function zt(e, n) {
|
|
2621
|
+
const t = e.split(Xe).filter(Boolean), o = n.split(Xe).filter(Boolean);
|
|
2674
2622
|
for (; t.length && o.length; ) {
|
|
2675
2623
|
const i = t.shift(), r = o.shift(), l = parseInt(i, 10), s = parseInt(r, 10), u = [l, s].sort();
|
|
2676
2624
|
if (isNaN(u[0])) {
|
|
@@ -2690,13 +2638,13 @@ function qt(e, n) {
|
|
|
2690
2638
|
return t.length - o.length;
|
|
2691
2639
|
}
|
|
2692
2640
|
const ce = {
|
|
2693
|
-
alphanumeric:
|
|
2694
|
-
alphanumericCaseSensitive:
|
|
2695
|
-
text:
|
|
2696
|
-
textCaseSensitive:
|
|
2697
|
-
datetime:
|
|
2698
|
-
basic:
|
|
2699
|
-
},
|
|
2641
|
+
alphanumeric: Co,
|
|
2642
|
+
alphanumericCaseSensitive: vo,
|
|
2643
|
+
text: Ro,
|
|
2644
|
+
textCaseSensitive: xo,
|
|
2645
|
+
datetime: yo,
|
|
2646
|
+
basic: _o
|
|
2647
|
+
}, Fo = {
|
|
2700
2648
|
getInitialState: (e) => ({
|
|
2701
2649
|
sorting: [],
|
|
2702
2650
|
...e
|
|
@@ -2717,7 +2665,7 @@ const ce = {
|
|
|
2717
2665
|
const r = i?.getValue(e.id);
|
|
2718
2666
|
if (Object.prototype.toString.call(r) === "[object Date]")
|
|
2719
2667
|
return ce.datetime;
|
|
2720
|
-
if (typeof r == "string" && (o = !0, r.split(
|
|
2668
|
+
if (typeof r == "string" && (o = !0, r.split(Xe).length > 1))
|
|
2721
2669
|
return ce.alphanumeric;
|
|
2722
2670
|
}
|
|
2723
2671
|
return o ? ce.text : ce.basic;
|
|
@@ -2728,7 +2676,7 @@ const ce = {
|
|
|
2728
2676
|
var t, o;
|
|
2729
2677
|
if (!e)
|
|
2730
2678
|
throw new Error();
|
|
2731
|
-
return
|
|
2679
|
+
return Ae(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : ce[e.columnDef.sortingFn];
|
|
2732
2680
|
}, e.toggleSorting = (t, o) => {
|
|
2733
2681
|
const i = e.getNextSortingOrder(), r = typeof t < "u" && t !== null;
|
|
2734
2682
|
n.setSorting((l) => {
|
|
@@ -2785,30 +2733,30 @@ const ce = {
|
|
|
2785
2733
|
e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
|
|
2786
2734
|
}, 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());
|
|
2787
2735
|
}
|
|
2788
|
-
},
|
|
2736
|
+
}, $o = [
|
|
2737
|
+
bn,
|
|
2738
|
+
co,
|
|
2789
2739
|
lo,
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
ao,
|
|
2795
|
-
Mo,
|
|
2740
|
+
so,
|
|
2741
|
+
Un,
|
|
2742
|
+
Xn,
|
|
2743
|
+
fo,
|
|
2796
2744
|
//depends on ColumnFaceting
|
|
2797
|
-
|
|
2745
|
+
po,
|
|
2798
2746
|
//depends on ColumnFiltering
|
|
2799
|
-
|
|
2800
|
-
|
|
2747
|
+
Fo,
|
|
2748
|
+
io,
|
|
2801
2749
|
//depends on RowSorting
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2750
|
+
mo,
|
|
2751
|
+
ho,
|
|
2752
|
+
wo,
|
|
2753
|
+
So,
|
|
2754
|
+
ao
|
|
2807
2755
|
];
|
|
2808
|
-
function
|
|
2756
|
+
function Po(e) {
|
|
2809
2757
|
var n, t;
|
|
2810
2758
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
2811
|
-
const o = [
|
|
2759
|
+
const o = [...$o, ...(n = e._features) != null ? n : []];
|
|
2812
2760
|
let i = {
|
|
2813
2761
|
_features: o
|
|
2814
2762
|
};
|
|
@@ -2888,7 +2836,7 @@ function No(e) {
|
|
|
2888
2836
|
getAllColumns: v(() => [i._getColumnDefs()], (d) => {
|
|
2889
2837
|
const a = function(p, m, w) {
|
|
2890
2838
|
return w === void 0 && (w = 0), p.map((h) => {
|
|
2891
|
-
const C =
|
|
2839
|
+
const C = jn(i, h, w, m), S = h;
|
|
2892
2840
|
return C.columns = S.columns ? a(S.columns, C, w + 1) : [], C;
|
|
2893
2841
|
});
|
|
2894
2842
|
};
|
|
@@ -2912,7 +2860,7 @@ function No(e) {
|
|
|
2912
2860
|
}
|
|
2913
2861
|
return i;
|
|
2914
2862
|
}
|
|
2915
|
-
function
|
|
2863
|
+
function No() {
|
|
2916
2864
|
return (e) => v(() => [e.options.data], (n) => {
|
|
2917
2865
|
const t = {
|
|
2918
2866
|
rows: [],
|
|
@@ -2922,7 +2870,7 @@ function ii() {
|
|
|
2922
2870
|
r === void 0 && (r = 0);
|
|
2923
2871
|
const s = [];
|
|
2924
2872
|
for (let g = 0; g < i.length; g++) {
|
|
2925
|
-
const c =
|
|
2873
|
+
const c = Wn(e, e._getRowId(i[g], g, l), i[g], g, r, void 0, l?.id);
|
|
2926
2874
|
if (t.flatRows.push(c), t.rowsById[c.id] = c, s.push(c), e.options.getSubRows) {
|
|
2927
2875
|
var u;
|
|
2928
2876
|
c.originalSubRows = e.options.getSubRows(i[g], g), (u = c.originalSubRows) != null && u.length && (c.subRows = o(c.originalSubRows, r + 1, c));
|
|
@@ -2943,18 +2891,18 @@ function ii() {
|
|
|
2943
2891
|
*
|
|
2944
2892
|
* @license MIT
|
|
2945
2893
|
*/
|
|
2946
|
-
function
|
|
2894
|
+
function Re() {
|
|
2947
2895
|
return !0;
|
|
2948
2896
|
}
|
|
2949
|
-
const
|
|
2897
|
+
const Mo = Symbol("merge-proxy"), Vo = {
|
|
2950
2898
|
get(e, n, t) {
|
|
2951
|
-
return n ===
|
|
2899
|
+
return n === Mo ? t : e.get(n);
|
|
2952
2900
|
},
|
|
2953
2901
|
has(e, n) {
|
|
2954
2902
|
return e.has(n);
|
|
2955
2903
|
},
|
|
2956
|
-
set:
|
|
2957
|
-
deleteProperty:
|
|
2904
|
+
set: Re,
|
|
2905
|
+
deleteProperty: Re,
|
|
2958
2906
|
getOwnPropertyDescriptor(e, n) {
|
|
2959
2907
|
return {
|
|
2960
2908
|
configurable: !0,
|
|
@@ -2962,15 +2910,15 @@ const bo = Symbol("merge-proxy"), qo = {
|
|
|
2962
2910
|
get() {
|
|
2963
2911
|
return e.get(n);
|
|
2964
2912
|
},
|
|
2965
|
-
set:
|
|
2966
|
-
deleteProperty:
|
|
2913
|
+
set: Re,
|
|
2914
|
+
deleteProperty: Re
|
|
2967
2915
|
};
|
|
2968
2916
|
},
|
|
2969
2917
|
ownKeys(e) {
|
|
2970
2918
|
return e.keys();
|
|
2971
2919
|
}
|
|
2972
2920
|
};
|
|
2973
|
-
function
|
|
2921
|
+
function Te(e) {
|
|
2974
2922
|
return "value" in e ? e.value : e;
|
|
2975
2923
|
}
|
|
2976
2924
|
function de() {
|
|
@@ -2979,33 +2927,33 @@ function de() {
|
|
|
2979
2927
|
return new Proxy({
|
|
2980
2928
|
get(o) {
|
|
2981
2929
|
for (let i = n.length - 1; i >= 0; i--) {
|
|
2982
|
-
const r =
|
|
2930
|
+
const r = Te(n[i])[o];
|
|
2983
2931
|
if (r !== void 0) return r;
|
|
2984
2932
|
}
|
|
2985
2933
|
},
|
|
2986
2934
|
has(o) {
|
|
2987
2935
|
for (let i = n.length - 1; i >= 0; i--)
|
|
2988
|
-
if (o in
|
|
2936
|
+
if (o in Te(n[i])) return !0;
|
|
2989
2937
|
return !1;
|
|
2990
2938
|
},
|
|
2991
2939
|
keys() {
|
|
2992
2940
|
const o = [];
|
|
2993
|
-
for (let i = 0; i < n.length; i++) o.push(...Object.keys(
|
|
2941
|
+
for (let i = 0; i < n.length; i++) o.push(...Object.keys(Te(n[i])));
|
|
2994
2942
|
return [...Array.from(new Set(o))];
|
|
2995
2943
|
}
|
|
2996
|
-
},
|
|
2944
|
+
}, Vo);
|
|
2997
2945
|
}
|
|
2998
|
-
const
|
|
2946
|
+
const ko = kt({
|
|
2999
2947
|
props: ["render", "props"],
|
|
3000
|
-
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ?
|
|
2948
|
+
setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? bt(e.render, e.props) : e.render
|
|
3001
2949
|
});
|
|
3002
|
-
function
|
|
2950
|
+
function wt(e) {
|
|
3003
2951
|
return de(e, {
|
|
3004
|
-
data:
|
|
2952
|
+
data: Ct(e.data)
|
|
3005
2953
|
});
|
|
3006
2954
|
}
|
|
3007
|
-
function
|
|
3008
|
-
const n =
|
|
2955
|
+
function qo(e) {
|
|
2956
|
+
const n = qt(e.data), t = de({
|
|
3009
2957
|
state: {},
|
|
3010
2958
|
// Dummy state
|
|
3011
2959
|
onStateChange: () => {
|
|
@@ -3018,10 +2966,10 @@ function li(e) {
|
|
|
3018
2966
|
...l
|
|
3019
2967
|
} : de(r, l);
|
|
3020
2968
|
}
|
|
3021
|
-
}, n ?
|
|
2969
|
+
}, n ? wt(e) : e), o = Po(t);
|
|
3022
2970
|
if (n) {
|
|
3023
|
-
const r =
|
|
3024
|
-
|
|
2971
|
+
const r = St(e.data);
|
|
2972
|
+
xe(r, () => {
|
|
3025
2973
|
o.setState((l) => ({
|
|
3026
2974
|
...l,
|
|
3027
2975
|
data: r.value
|
|
@@ -3031,13 +2979,13 @@ function li(e) {
|
|
|
3031
2979
|
});
|
|
3032
2980
|
}
|
|
3033
2981
|
const i = le(o.initialState);
|
|
3034
|
-
return
|
|
2982
|
+
return jt(() => {
|
|
3035
2983
|
o.setOptions((r) => {
|
|
3036
2984
|
var l;
|
|
3037
2985
|
const s = new Proxy({}, {
|
|
3038
2986
|
get: (u, g) => i.value[g]
|
|
3039
2987
|
});
|
|
3040
|
-
return de(r, n ?
|
|
2988
|
+
return de(r, n ? wt(e) : e, {
|
|
3041
2989
|
// merge the initialState and `options.state`
|
|
3042
2990
|
// create a new proxy on each `setOptions` call
|
|
3043
2991
|
// and get the value from state on each property access
|
|
@@ -3052,20 +3000,19 @@ function li(e) {
|
|
|
3052
3000
|
}), o;
|
|
3053
3001
|
}
|
|
3054
3002
|
export {
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
ni as u
|
|
3003
|
+
ko as F,
|
|
3004
|
+
zo as a,
|
|
3005
|
+
qo as b,
|
|
3006
|
+
Bo as c,
|
|
3007
|
+
Eo as d,
|
|
3008
|
+
Tn as e,
|
|
3009
|
+
Lo as f,
|
|
3010
|
+
No as g,
|
|
3011
|
+
Ho as h,
|
|
3012
|
+
zn as i,
|
|
3013
|
+
Oo as j,
|
|
3014
|
+
Go as l,
|
|
3015
|
+
Io as o,
|
|
3016
|
+
Do as s,
|
|
3017
|
+
To as u
|
|
3071
3018
|
};
|