@svgrid/grid 1.2.1 → 1.2.4
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/SvGrid.controller.svelte.js +84 -18
- package/dist/SvGrid.css +294 -16
- package/dist/SvGrid.svelte +1 -0
- package/dist/a11y.d.ts +1 -1
- package/dist/a11y.js +1 -1
- package/dist/cdn/svgrid.js +588 -552
- package/dist/cdn/svgrid.svelte-external.js +850 -814
- package/dist/menus.js +9 -1
- package/dist/scroll-sync.js +1 -1
- package/dist/sv-grid-scrollbar.js +16 -1
- package/package.json +1 -1
- package/src/SvGrid.controller.svelte.ts +82 -17
- package/src/SvGrid.css +294 -16
- package/src/SvGrid.svelte +1 -0
- package/src/a11y.ts +1 -1
- package/src/menus.ts +9 -1
- package/src/scroll-sync.ts +1 -1
- package/src/sv-grid-scrollbar.ts +14 -1
package/dist/cdn/svgrid.js
CHANGED
|
@@ -3004,7 +3004,7 @@ var ya = `
|
|
|
3004
3004
|
}
|
|
3005
3005
|
`, ba = typeof HTMLElement < "u" ? HTMLElement : class {}, xa = class extends ba {
|
|
3006
3006
|
constructor(...e) {
|
|
3007
|
-
super(...e), this.dragging = !1, this.dragStart = 0, this.valueStart = 0, this.holdTimer = null, this.resizeObserver = null, this.onArrowStartPointerDown = (e) => {
|
|
3007
|
+
super(...e), this.dragging = !1, this.dragStart = 0, this.valueStart = 0, this.holdTimer = null, this.resizeObserver = null, this.resizeFrame = 0, this.onArrowStartPointerDown = (e) => {
|
|
3008
3008
|
e.preventDefault(), this.startHold(-1);
|
|
3009
3009
|
}, this.onArrowEndPointerDown = (e) => {
|
|
3010
3010
|
e.preventDefault(), this.startHold(1);
|
|
@@ -3038,10 +3038,14 @@ var ya = `
|
|
|
3038
3038
|
let e = this.attachShadow({ mode: "open" }), t = document.createElement("style");
|
|
3039
3039
|
t.textContent = ya, this.startArrow = this.createArrow("start"), this.endArrow = this.createArrow("end"), this.track = document.createElement("div"), this.track.className = "track", this.thumb = document.createElement("div"), this.thumb.className = "thumb", this.track.appendChild(this.thumb), e.append(t, this.startArrow, this.track, this.endArrow), this.thumb.addEventListener("pointerdown", this.onThumbPointerDown), this.track.addEventListener("pointerdown", this.onTrackPointerDown), this.startArrow.addEventListener("pointerdown", this.onArrowStartPointerDown), this.endArrow.addEventListener("pointerdown", this.onArrowEndPointerDown);
|
|
3040
3040
|
for (let e of [this.startArrow, this.endArrow]) e.addEventListener("pointerup", this.stopHold), e.addEventListener("pointerleave", this.stopHold), e.addEventListener("pointercancel", this.stopHold);
|
|
3041
|
-
this.resizeObserver = new ResizeObserver(() =>
|
|
3041
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
3042
|
+
this.resizeFrame ||= requestAnimationFrame(() => {
|
|
3043
|
+
this.resizeFrame = 0, this.render();
|
|
3044
|
+
});
|
|
3045
|
+
}), this.resizeObserver.observe(this), this.render();
|
|
3042
3046
|
}
|
|
3043
3047
|
disconnectedCallback() {
|
|
3044
|
-
this.stopHold(), this.resizeObserver?.disconnect(), this.resizeObserver = null, document.removeEventListener("pointermove", this.onPointerMove), document.removeEventListener("pointerup", this.onPointerUp);
|
|
3048
|
+
this.stopHold(), this.resizeFrame && cancelAnimationFrame(this.resizeFrame), this.resizeFrame = 0, this.resizeObserver?.disconnect(), this.resizeObserver = null, document.removeEventListener("pointermove", this.onPointerMove), document.removeEventListener("pointerup", this.onPointerUp);
|
|
3045
3049
|
}
|
|
3046
3050
|
attributeChangedCallback() {
|
|
3047
3051
|
this.render();
|
|
@@ -3712,7 +3716,7 @@ function ko(e) {
|
|
|
3712
3716
|
}
|
|
3713
3717
|
function a(t) {
|
|
3714
3718
|
let n = t.currentTarget;
|
|
3715
|
-
if (n && ((e.columnMenuFor || e.operatorMenuFor) && e.closeMenus(), i(n.scrollTop, n.scrollLeft), e.props.alignedGridGroup != null && e.broadcastAlignedScroll(n.scrollLeft), e.props.onScrollBottomReached)) {
|
|
3719
|
+
if (n && ((e.columnMenuFor || e.operatorMenuFor || e.contextMenuFor) && e.closeMenus(), i(n.scrollTop, n.scrollLeft), e.props.alignedGridGroup != null && e.broadcastAlignedScroll(n.scrollLeft), e.props.onScrollBottomReached)) {
|
|
3716
3720
|
let { scrollTop: t, scrollHeight: r, clientHeight: i } = n, a = t + i >= r - 32;
|
|
3717
3721
|
a && e.scrollBottomArmed ? (e.scrollBottomArmed = !1, e.props.onScrollBottomReached({
|
|
3718
3722
|
scrollTop: t,
|
|
@@ -4134,13 +4138,13 @@ function Ho(e) {
|
|
|
4134
4138
|
e.grid.setPagination((e) => ({
|
|
4135
4139
|
...e,
|
|
4136
4140
|
pageIndex: Math.max((e?.pageIndex ?? 0) + t, 0)
|
|
4137
|
-
}));
|
|
4141
|
+
})), e.scrollContainer?.scrollTo({ top: 0 });
|
|
4138
4142
|
}
|
|
4139
4143
|
function S(t) {
|
|
4140
4144
|
e.grid.setPagination((e) => ({
|
|
4141
4145
|
...e,
|
|
4142
4146
|
pageIndex: Math.max(0, t)
|
|
4143
|
-
}));
|
|
4147
|
+
})), e.scrollContainer?.scrollTo({ top: 0 });
|
|
4144
4148
|
}
|
|
4145
4149
|
function C(t) {
|
|
4146
4150
|
e.grid.setPagination((e) => {
|
|
@@ -4214,10 +4218,10 @@ function Ho(e) {
|
|
|
4214
4218
|
function ne(t, n, r, i) {
|
|
4215
4219
|
if (!e.props.contextMenu) return;
|
|
4216
4220
|
t.preventDefault(), s(), e.contextMenuFor = null;
|
|
4217
|
-
let a = e.allRows[n], o = a?.original ?? null, c = a?.id ?? String(n);
|
|
4221
|
+
let a = e.allRows[n], o = a?.original ?? null, c = a?.id ?? String(n), l = t.clientY + 280 > window.innerHeight ? Math.max(8, t.clientY - 280) : t.clientY;
|
|
4218
4222
|
e.contextMenuPos = {
|
|
4219
4223
|
x: ao(t.clientX, 220),
|
|
4220
|
-
y:
|
|
4224
|
+
y: l
|
|
4221
4225
|
}, e.contextMenuFor = {
|
|
4222
4226
|
rowIndex: n,
|
|
4223
4227
|
colIndex: r,
|
|
@@ -4374,9 +4378,9 @@ function Uo(t) {
|
|
|
4374
4378
|
}
|
|
4375
4379
|
function l(e, n) {
|
|
4376
4380
|
let r = e.columnDef.editorOptions;
|
|
4377
|
-
if (typeof r == "function") return n?.original ?
|
|
4381
|
+
if (typeof r == "function") return n?.original ? Yp(r(n.original)) : [];
|
|
4378
4382
|
let i = e.id;
|
|
4379
|
-
return (!t.editorOptionsCache[i] || t.editorOptionsCache[i + "__src"] !== r) && (t.editorOptionsCache[i] =
|
|
4383
|
+
return (!t.editorOptionsCache[i] || t.editorOptionsCache[i + "__src"] !== r) && (t.editorOptionsCache[i] = Yp(r), t.editorOptionsCache[i + "__src"] = r), t.editorOptionsCache[i];
|
|
4380
4384
|
}
|
|
4381
4385
|
function u(e, t, n) {
|
|
4382
4386
|
let r = l(e, n), i = e.columnDef.editorSeparator ?? ", ";
|
|
@@ -4547,7 +4551,7 @@ function Wo(e) {
|
|
|
4547
4551
|
}
|
|
4548
4552
|
function o() {
|
|
4549
4553
|
if (!e.editingCell) return;
|
|
4550
|
-
let t = e.allRows.find((t) => t.id === e.editingCell?.rowId), n = e.allColumns.find((t) => t.id === e.editingCell?.columnId), r =
|
|
4554
|
+
let t = e.allRows.find((t) => t.id === e.editingCell?.rowId), n = e.allColumns.find((t) => t.id === e.editingCell?.columnId), r = Xp(e.editingCell.editorType, e.editingCell.value, { multiple: n?.columnDef.editorMultiple === !0 }), i, a = r;
|
|
4551
4555
|
if (t?.original && n?.columnDef.field) {
|
|
4552
4556
|
i = t.original[n.columnDef.field];
|
|
4553
4557
|
let o = n.columnDef.valueParser;
|
|
@@ -4684,7 +4688,7 @@ function Wo(e) {
|
|
|
4684
4688
|
let i = e.allColumns[o + t];
|
|
4685
4689
|
if (!i?.columnDef.field || !n(r, o + t)) continue;
|
|
4686
4690
|
let a = i.columnDef.editorType ?? "text", s = u ? l[0] : d?.[t] ?? "";
|
|
4687
|
-
m[i.columnDef.field] =
|
|
4691
|
+
m[i.columnDef.field] = Xp(a, s);
|
|
4688
4692
|
}
|
|
4689
4693
|
p[s] = m;
|
|
4690
4694
|
}
|
|
@@ -4737,7 +4741,7 @@ function Wo(e) {
|
|
|
4737
4741
|
if (!(i.id in t.draft)) continue;
|
|
4738
4742
|
let a = i.columnDef.field;
|
|
4739
4743
|
if (!a) continue;
|
|
4740
|
-
let o =
|
|
4744
|
+
let o = Xp(i.columnDef.editorType ?? "text", t.draft[i.id], { multiple: i.columnDef.editorMultiple === !0 }), s = n.original[a], c = i.columnDef.valueParser, l = c ? c({
|
|
4741
4745
|
newValue: o,
|
|
4742
4746
|
oldValue: s,
|
|
4743
4747
|
rawInput: String(t.draft[i.id] ?? ""),
|
|
@@ -4830,7 +4834,7 @@ function Go(e) {
|
|
|
4830
4834
|
if (e.userHasActivatedCell = !0, e.grid.setActiveCell({
|
|
4831
4835
|
rowIndex: t,
|
|
4832
4836
|
colIndex: n,
|
|
4833
|
-
cellId:
|
|
4837
|
+
cellId: im("svgrid", t, n)
|
|
4834
4838
|
}), e.props.onActiveCellChange) {
|
|
4835
4839
|
let r = e.allColumns[n];
|
|
4836
4840
|
e.props.onActiveCellChange({
|
|
@@ -6255,7 +6259,7 @@ function gs(e) {
|
|
|
6255
6259
|
let r = e.allColumns[n];
|
|
6256
6260
|
if (!r?.columnDef.field || !e.isCellEditableAt(t, n)) continue;
|
|
6257
6261
|
let i = r.columnDef.editorType ?? "text";
|
|
6258
|
-
l[r.columnDef.field] =
|
|
6262
|
+
l[r.columnDef.field] = Xp(i, ""), u = !0;
|
|
6259
6263
|
}
|
|
6260
6264
|
u && (s[r] = l, c = !0);
|
|
6261
6265
|
}
|
|
@@ -6421,7 +6425,17 @@ function Fs() {
|
|
|
6421
6425
|
}
|
|
6422
6426
|
return Ns;
|
|
6423
6427
|
}
|
|
6424
|
-
function Is(e) {
|
|
6428
|
+
function Is(e, t) {
|
|
6429
|
+
let n = 0, r = new ResizeObserver(() => {
|
|
6430
|
+
n ||= requestAnimationFrame(() => {
|
|
6431
|
+
n = 0, t();
|
|
6432
|
+
});
|
|
6433
|
+
});
|
|
6434
|
+
return r.observe(e), () => {
|
|
6435
|
+
n && cancelAnimationFrame(n), r.disconnect();
|
|
6436
|
+
};
|
|
6437
|
+
}
|
|
6438
|
+
function Ls(e) {
|
|
6425
6439
|
let t = /* @__PURE__ */ M(() => e.editable ?? e.enableInlineEditing ?? !1), n = /* @__PURE__ */ M(() => e.pageable ?? e.showPagination ?? !1), r = /* @__PURE__ */ M(() => e.groupable ?? e.showGroupingControls ?? !1), i = /* @__PURE__ */ N(""), a = /* @__PURE__ */ N(null), o = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(yn({})), c = /* @__PURE__ */ N(yn({})), l = /* @__PURE__ */ N(null), u = /* @__PURE__ */ N(null), d = /* @__PURE__ */ N(0), f = /* @__PURE__ */ N(0), p = "", m = 0, g = 0, y = null, C = /* @__PURE__ */ N(yn({
|
|
6426
6440
|
anchor: null,
|
|
6427
6441
|
focus: null
|
|
@@ -6679,10 +6693,10 @@ function Is(e) {
|
|
|
6679
6693
|
if (nt) return t;
|
|
6680
6694
|
let n = t;
|
|
6681
6695
|
if (B(i).trim()) {
|
|
6682
|
-
let t =
|
|
6683
|
-
n = n.filter((n) => n.getAllCells().some((n) =>
|
|
6696
|
+
let t = Qp(B(i), e.filterLocale);
|
|
6697
|
+
n = n.filter((n) => n.getAllCells().some((n) => Qp(String(n.getValue() ?? ""), e.filterLocale).includes(t)));
|
|
6684
6698
|
}
|
|
6685
|
-
let r = (e, t, n) => e === "isBlank" ? !0 : e === "between" ? t.trim().length > 0 && (n ?? "").trim().length > 0 : t.trim().length > 0, a = (t, n, r, i, a) =>
|
|
6699
|
+
let r = (e, t, n) => e === "isBlank" ? !0 : e === "between" ? t.trim().length > 0 && (n ?? "").trim().length > 0 : t.trim().length > 0, a = (t, n, r, i, a) => $p(t, {
|
|
6686
6700
|
id: n,
|
|
6687
6701
|
operator: r,
|
|
6688
6702
|
value: i,
|
|
@@ -6719,7 +6733,16 @@ function Is(e) {
|
|
|
6719
6733
|
if (!B(n)) return e;
|
|
6720
6734
|
let { pageIndex: t, pageSize: r } = B(xt), i = t * r;
|
|
6721
6735
|
return e.slice(i, i + r);
|
|
6722
|
-
})
|
|
6736
|
+
});
|
|
6737
|
+
Wn(() => {
|
|
6738
|
+
if (!B(n)) return;
|
|
6739
|
+
let { pageIndex: e, pageSize: t } = B(xt), r = Math.ceil(B(St).length / t);
|
|
6740
|
+
r > 0 && e >= r && it.setPagination({
|
|
6741
|
+
pageIndex: 0,
|
|
6742
|
+
pageSize: t
|
|
6743
|
+
});
|
|
6744
|
+
});
|
|
6745
|
+
let wt = /* @__PURE__ */ M(() => (B(be), it.getState().rowSelection ?? {})), Tt = "";
|
|
6723
6746
|
Wn(() => {
|
|
6724
6747
|
let t = JSON.stringify(B(wt));
|
|
6725
6748
|
if (t === Tt) return;
|
|
@@ -6816,13 +6839,13 @@ function Is(e) {
|
|
|
6816
6839
|
}, o = JSON.stringify(a);
|
|
6817
6840
|
o !== Pt && (Pt = o, e.onFiltersChange(a));
|
|
6818
6841
|
});
|
|
6819
|
-
let Ft =
|
|
6842
|
+
let Ft = qp({
|
|
6820
6843
|
count: 0,
|
|
6821
6844
|
estimateSize: 36,
|
|
6822
6845
|
overscan: 8,
|
|
6823
6846
|
viewportHeight: 520,
|
|
6824
6847
|
scrollOffset: 0
|
|
6825
|
-
}), It =
|
|
6848
|
+
}), It = Jp({
|
|
6826
6849
|
count: 0,
|
|
6827
6850
|
viewportWidth: 0,
|
|
6828
6851
|
overscan: 3,
|
|
@@ -6844,18 +6867,36 @@ function Is(e) {
|
|
|
6844
6867
|
let e = Ft.getState().scrollOffset;
|
|
6845
6868
|
return e - B(Wt).logicalToDom(e);
|
|
6846
6869
|
}), Xt = /* @__PURE__ */ M(() => Math.max(B(Vt) - B(Yt), 0)), Zt = /* @__PURE__ */ M(() => Math.max(B(Gt) - (B(Ht) - B(Yt)), 0)), Qt = /* @__PURE__ */ M(() => (B(ye), It.getVirtualItems())), $t = /* @__PURE__ */ M(() => (B(ye), It.getTotalSize())), en = /* @__PURE__ */ M(() => {
|
|
6847
|
-
if (B(Rt))
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6870
|
+
if (!B(Rt)) {
|
|
6871
|
+
let e = 0;
|
|
6872
|
+
return B(st).map((t, n) => {
|
|
6873
|
+
let r = fi(t.id), i = {
|
|
6874
|
+
index: n,
|
|
6875
|
+
key: n,
|
|
6876
|
+
size: r,
|
|
6877
|
+
start: e,
|
|
6878
|
+
end: e + r
|
|
6879
|
+
};
|
|
6880
|
+
return e += r, i;
|
|
6881
|
+
});
|
|
6882
|
+
}
|
|
6883
|
+
let e = B(Qt), t = B(ve).left.length > 0, n = B(ve).right.length > 0;
|
|
6884
|
+
if (!t && !n || e.length === 0) return e;
|
|
6885
|
+
let r = e[0].index, i = e[e.length - 1].index, a = t ? 0 : r, o = n ? B(st).length - 1 : i;
|
|
6886
|
+
if (a === r && o === i) return e;
|
|
6887
|
+
let s = [], c = 0;
|
|
6888
|
+
for (let e = 0; e < a; e += 1) c += fi(B(st)[e].id);
|
|
6889
|
+
for (let e = a; e <= o; e += 1) {
|
|
6890
|
+
let t = fi(B(st)[e].id);
|
|
6891
|
+
s.push({
|
|
6892
|
+
index: e,
|
|
6893
|
+
key: e,
|
|
6894
|
+
size: t,
|
|
6895
|
+
start: c,
|
|
6896
|
+
end: c + t
|
|
6897
|
+
}), c += t;
|
|
6898
|
+
}
|
|
6899
|
+
return s;
|
|
6859
6900
|
}), tn = /* @__PURE__ */ M(() => B(en).map((e) => ({
|
|
6860
6901
|
item: e,
|
|
6861
6902
|
column: B(st)[e.index]
|
|
@@ -6874,7 +6915,7 @@ function Is(e) {
|
|
|
6874
6915
|
cellId: null
|
|
6875
6916
|
})), ln = /* @__PURE__ */ M(() => {
|
|
6876
6917
|
let e = B(cn), t = e.rowIndex >= 0 && e.rowIndex < B(Ct).length, n = e.colIndex >= 0 && e.colIndex < B(st).length;
|
|
6877
|
-
return !t || !n ? null :
|
|
6918
|
+
return !t || !n ? null : im("svgrid", e.rowIndex, e.colIndex);
|
|
6878
6919
|
}), un = 5e4, dn = /* @__PURE__ */ N(yn({}));
|
|
6879
6920
|
Wn(() => {
|
|
6880
6921
|
B(be), B(re);
|
|
@@ -6894,23 +6935,18 @@ function Is(e) {
|
|
|
6894
6935
|
r = !0, cancelAnimationFrame(i);
|
|
6895
6936
|
};
|
|
6896
6937
|
}), Wn(() => {
|
|
6897
|
-
if (!B(fe))
|
|
6898
|
-
P(pe, B(fe).offsetHeight, !0);
|
|
6899
|
-
let e = new ResizeObserver(() => {
|
|
6938
|
+
if (B(fe)) return P(pe, B(fe).offsetHeight, !0), Is(B(fe), () => {
|
|
6900
6939
|
P(pe, B(fe)?.offsetHeight ?? 0, !0);
|
|
6901
6940
|
});
|
|
6902
|
-
return e.observe(B(fe)), () => e.disconnect();
|
|
6903
6941
|
}), Wn(() => {
|
|
6904
|
-
if (
|
|
6905
|
-
let e = new ResizeObserver(() => {
|
|
6942
|
+
if (B(o)) return Is(B(o), () => {
|
|
6906
6943
|
P(d, B(d) + 1);
|
|
6907
6944
|
});
|
|
6908
|
-
return e.observe(B(o)), () => e.disconnect();
|
|
6909
6945
|
}), Wn(() => {
|
|
6910
6946
|
!B(Ct).length || !B(st).length || it.getState().activeCell?.cellId || it.setActiveCell({
|
|
6911
6947
|
rowIndex: 0,
|
|
6912
6948
|
colIndex: 0,
|
|
6913
|
-
cellId:
|
|
6949
|
+
cellId: im("svgrid", 0, 0)
|
|
6914
6950
|
});
|
|
6915
6951
|
}), Wn(() => {
|
|
6916
6952
|
let t = `cols:${e.columns.length}`;
|
|
@@ -6946,11 +6982,9 @@ function Is(e) {
|
|
|
6946
6982
|
});
|
|
6947
6983
|
let fn = /* @__PURE__ */ N(!1);
|
|
6948
6984
|
Wn(() => {
|
|
6949
|
-
if (
|
|
6950
|
-
let e = new ResizeObserver(() => {
|
|
6985
|
+
if (B(a)) return Is(B(a), () => {
|
|
6951
6986
|
P(f, B(f) + 1), B(fn) || P(fn, !0);
|
|
6952
6987
|
});
|
|
6953
|
-
return e.observe(B(a)), () => e.disconnect();
|
|
6954
6988
|
}), Wn(() => {
|
|
6955
6989
|
B(he), It.setOptions({
|
|
6956
6990
|
count: B(st).length,
|
|
@@ -8210,16 +8244,16 @@ function Is(e) {
|
|
|
8210
8244
|
}
|
|
8211
8245
|
//#endregion
|
|
8212
8246
|
//#region src/GridMenus.svelte
|
|
8213
|
-
var
|
|
8214
|
-
function
|
|
8247
|
+
var Rs = /* @__PURE__ */ U("<option> </option>"), zs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Bs = /* @__PURE__ */ U("<option> </option>"), Vs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), Hs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\"/> <!>", 1), Us = /* @__PURE__ */ U("<div class=\"sv-grid-menu-join\" role=\"radiogroup\" aria-label=\"Combine conditions\"><button type=\"button\">AND</button> <button type=\"button\">OR</button> <button type=\"button\" class=\"sv-grid-menu-join-x\" title=\"Remove second condition\" aria-label=\"Remove second condition\">×</button></div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Second filter condition\"></select> <!>", 1), Ws = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-add-cond\">+ Add condition</button>"), Gs = /* @__PURE__ */ U("<input class=\"sv-grid-menu-condition-value\"/> <!> <!>", 1), Ks = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), qs = /* @__PURE__ */ U("<div class=\"sv-grid-facet-empty\">No values</div>"), Js = /* @__PURE__ */ U("<div class=\"sv-grid-facet-note\"> </div>"), Ys = /* @__PURE__ */ U("<div class=\"sv-grid-menu-filter\"><div class=\"sv-grid-menu-filter-head\"><span class=\"sv-grid-header-icon\"><!></span> Filter\n condition</div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Filter condition\"></select> <!> <div class=\"sv-grid-menu-sep\"></div> <div class=\"sv-grid-menu-filter-head\">Values</div> <input class=\"sv-grid-menu-search\" placeholder=\"Search values...\"/> <label class=\"sv-grid-facet sv-grid-facet-all\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\">(Select all)</span></label> <div class=\"sv-grid-facet-list\"></div> <!> <div class=\"sv-grid-menu-actions\"><button type=\"button\" class=\"sv-grid-menu-btn\">Clear filter</button> <button type=\"button\" class=\"sv-grid-menu-btn sv-grid-menu-btn-primary\">Done</button></div></div>"), Xs = /* @__PURE__ */ U("<div role=\"tooltip\"> </div>"), Zs = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div>"), Qs = /* @__PURE__ */ U("<button type=\"button\" role=\"tab\">Filter</button>"), $s = /* @__PURE__ */ U("<div class=\"sv-grid-menu-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">General</button> <!> <button type=\"button\" role=\"tab\">Columns</button></div>"), ec = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), tc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div>", 1), nc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n ascending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n descending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove sort</button>", 1), rc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to left</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to right</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Unpin column</button>", 1), ic = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Group\n by this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove grouping</button>", 1), ac = /* @__PURE__ */ U("<button type=\"button\" role=\"menuitem\" aria-haspopup=\"menu\"><span class=\"sv-grid-header-icon\"><!></span> Choose columns <span class=\"sv-grid-header-icon sv-grid-menu-item-chevron\"><!></span></button>"), oc = /* @__PURE__ */ U("<!> <!> <div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n all columns</button> <!> <div class=\"sv-grid-menu-sep\"></div> <!> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Reset columns</button>", 1), sc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-column-menu\" role=\"menu\"><!> <!></div>"), cc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-filter-menu\" role=\"menu\"><!></div>"), lc = /* @__PURE__ */ U("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), uc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-choose-columns-menu\" role=\"menu\"><div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div></div>"), dc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitemradio\"><span class=\"sv-grid-header-icon\"><!></span> </button>"), fc = /* @__PURE__ */ U("<div class=\"sv-grid-menu sv-grid-operator-menu\" role=\"menu\"></div>"), pc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-sep\"></div>"), mc = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"> </button>"), hc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-context-menu\" role=\"menu\"></div>", 1), gc = /* @__PURE__ */ U("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-comment-editor\" role=\"dialog\" aria-label=\"Edit comment\"><textarea class=\"sv-grid-comment-textarea\" rows=\"3\" placeholder=\"Add a comment…\"></textarea> <div class=\"sv-grid-comment-actions\"><button type=\"button\" class=\"sv-grid-comment-remove\">Remove</button> <span class=\"sv-grid-comment-spacer\"></span> <button type=\"button\" class=\"sv-grid-comment-cancel\">Cancel</button> <button type=\"button\" class=\"sv-grid-comment-save\">Save</button></div></div>", 1), _c = /* @__PURE__ */ U("<!> <!> <!> <!> <!> <!> <!> <!>", 1);
|
|
8248
|
+
function vc(e, t) {
|
|
8215
8249
|
ft(t, !0);
|
|
8216
8250
|
let n = (e, n = de) => {
|
|
8217
8251
|
let i = /* @__PURE__ */ M(() => B(_).find((e) => e.id === n())), o = /* @__PURE__ */ M(() => B(te)(B(i))), s = /* @__PURE__ */ M(() => B(a)[n()]?.operator ?? B(ne)(B(i))), c = /* @__PURE__ */ M(() => Qa(B(i)?.columnDef.editorType ?? "text"));
|
|
8218
|
-
var l =
|
|
8252
|
+
var l = Ys(), u = F(l), d = F(u);
|
|
8219
8253
|
oi(F(d), () => t.icon, () => "filter"), A(d), nt(), A(u);
|
|
8220
8254
|
var f = L(u, 2);
|
|
8221
8255
|
Y(f, 21, () => B(o), (e) => e.value, (e, t) => {
|
|
8222
|
-
var n =
|
|
8256
|
+
var n = Rs(), r = F(n, !0);
|
|
8223
8257
|
A(n);
|
|
8224
8258
|
var a = {};
|
|
8225
8259
|
R((e) => {
|
|
@@ -8230,10 +8264,10 @@ function _c(e, t) {
|
|
|
8230
8264
|
Ai(f);
|
|
8231
8265
|
var m = L(f, 2), h = (e) => {
|
|
8232
8266
|
let t = /* @__PURE__ */ M(() => B(a)[n()]);
|
|
8233
|
-
var r =
|
|
8267
|
+
var r = Gs(), l = I(r);
|
|
8234
8268
|
Vi(l);
|
|
8235
8269
|
var u = L(l, 2), d = (e) => {
|
|
8236
|
-
var t =
|
|
8270
|
+
var t = zs();
|
|
8237
8271
|
Vi(t), R(() => {
|
|
8238
8272
|
Q(t, "type", B(c)), Hi(t, B(a)[n()]?.valueTo ?? "");
|
|
8239
8273
|
}), H("input", t, (e) => B(ee)(n(), e.currentTarget.value)), K(e, t);
|
|
@@ -8243,7 +8277,7 @@ function _c(e, t) {
|
|
|
8243
8277
|
});
|
|
8244
8278
|
var f = L(u, 2), p = (e) => {
|
|
8245
8279
|
let r = /* @__PURE__ */ M(() => B(t).operator2 ?? B(ne)(B(i)));
|
|
8246
|
-
var a =
|
|
8280
|
+
var a = Us(), s = I(a), l = F(s);
|
|
8247
8281
|
let u;
|
|
8248
8282
|
var d = L(l, 2);
|
|
8249
8283
|
let f;
|
|
@@ -8251,7 +8285,7 @@ function _c(e, t) {
|
|
|
8251
8285
|
A(s);
|
|
8252
8286
|
var m = L(s, 2);
|
|
8253
8287
|
Y(m, 21, () => B(o), (e) => e.value, (e, t) => {
|
|
8254
|
-
var n =
|
|
8288
|
+
var n = Bs(), r = F(n, !0);
|
|
8255
8289
|
A(n);
|
|
8256
8290
|
var a = {};
|
|
8257
8291
|
R((e) => {
|
|
@@ -8261,10 +8295,10 @@ function _c(e, t) {
|
|
|
8261
8295
|
var h;
|
|
8262
8296
|
Ai(m);
|
|
8263
8297
|
var g = L(m, 2), _ = (e) => {
|
|
8264
|
-
var i =
|
|
8298
|
+
var i = Hs(), a = I(i);
|
|
8265
8299
|
Vi(a);
|
|
8266
8300
|
var o = L(a, 2), s = (e) => {
|
|
8267
|
-
var r =
|
|
8301
|
+
var r = Vs();
|
|
8268
8302
|
Vi(r), R(() => {
|
|
8269
8303
|
Q(r, "type", B(c)), Hi(r, B(t).valueTo2 ?? "");
|
|
8270
8304
|
}), H("input", r, (e) => ie(n(), { valueTo2: e.currentTarget.value })), K(e, r);
|
|
@@ -8286,7 +8320,7 @@ function _c(e, t) {
|
|
|
8286
8320
|
join: void 0
|
|
8287
8321
|
})), H("change", m, (e) => ie(n(), { operator2: e.currentTarget.value })), K(e, a);
|
|
8288
8322
|
}, m = (e) => {
|
|
8289
|
-
var t =
|
|
8323
|
+
var t = Ws();
|
|
8290
8324
|
H("click", t, () => ie(n(), {
|
|
8291
8325
|
operator2: B(ne)(B(i)),
|
|
8292
8326
|
value2: "",
|
|
@@ -8308,17 +8342,17 @@ function _c(e, t) {
|
|
|
8308
8342
|
Vi(y), nt(2), A(v);
|
|
8309
8343
|
var b = L(v, 2);
|
|
8310
8344
|
Y(b, 20, () => B(O), (e) => e, (e, t) => {
|
|
8311
|
-
var r =
|
|
8345
|
+
var r = Ks(), i = F(r);
|
|
8312
8346
|
Vi(i);
|
|
8313
8347
|
var a = L(i, 2), o = F(a, !0);
|
|
8314
8348
|
A(a), A(r), R((e) => {
|
|
8315
8349
|
Ui(i, e), q(o, t === "" ? "(Blanks)" : t);
|
|
8316
8350
|
}, [() => B(ge)(n(), t)]), H("change", i, () => B(_e)(n(), t)), K(e, r);
|
|
8317
8351
|
}, (e) => {
|
|
8318
|
-
K(e,
|
|
8352
|
+
K(e, qs());
|
|
8319
8353
|
}), A(b);
|
|
8320
8354
|
var x = L(b, 2), S = (e) => {
|
|
8321
|
-
var t =
|
|
8355
|
+
var t = Js(), n = F(t);
|
|
8322
8356
|
A(t), R(() => q(n, `Showing ${B(O).length ?? ""} of ${B(he).length ?? ""}`)), K(e, t);
|
|
8323
8357
|
};
|
|
8324
8358
|
J(x, (e) => {
|
|
@@ -8345,8 +8379,8 @@ function _c(e, t) {
|
|
|
8345
8379
|
};
|
|
8346
8380
|
}
|
|
8347
8381
|
let ae = /* @__PURE__ */ M(() => r().isColumnFiltered), oe = /* @__PURE__ */ M(() => r().closeMenus), se = /* @__PURE__ */ M(() => r().autosizeColumn), D = /* @__PURE__ */ M(() => r().autosizeAllColumns), ce = /* @__PURE__ */ M(() => r().resetColumns), le = /* @__PURE__ */ M(() => r().openChooseColumns), ue = /* @__PURE__ */ M(() => r().sortColumnFromMenu), fe = /* @__PURE__ */ M(() => r().clearColumnSort), pe = /* @__PURE__ */ M(() => r().groupByColumnFromMenu), me = /* @__PURE__ */ M(() => r().clearGroupingFromMenu), he = /* @__PURE__ */ M(() => r().columnMenuFacetValues), O = /* @__PURE__ */ M(() => r().columnMenuVisibleFacets), ge = /* @__PURE__ */ M(() => r().isFacetChecked), _e = /* @__PURE__ */ M(() => r().toggleFacetValue), ve = /* @__PURE__ */ M(() => r().isAllFacetsChecked), ye = /* @__PURE__ */ M(() => r().toggleAllFacets), be = /* @__PURE__ */ M(() => r().clearColumnFilter), xe = /* @__PURE__ */ M(() => r().contextMenuFor), Se = /* @__PURE__ */ M(() => r().contextMenuPos), Ce = /* @__PURE__ */ M(() => r().contextMenuItems), we = /* @__PURE__ */ M(() => r().closeContextMenu), Te = /* @__PURE__ */ M(() => r().commentEditFor), Ee = /* @__PURE__ */ M(() => r().saveComment), De = /* @__PURE__ */ M(() => r().removeComment), Oe = /* @__PURE__ */ M(() => r().closeCommentEditor);
|
|
8348
|
-
var ke =
|
|
8349
|
-
var t =
|
|
8382
|
+
var ke = _c(), Ae = I(ke), je = (e) => {
|
|
8383
|
+
var t = Xs();
|
|
8350
8384
|
let n;
|
|
8351
8385
|
var r = F(t, !0);
|
|
8352
8386
|
A(t), R(() => {
|
|
@@ -8357,7 +8391,7 @@ function _c(e, t) {
|
|
|
8357
8391
|
B(o) && e(je);
|
|
8358
8392
|
});
|
|
8359
8393
|
var Me = L(Ae, 2), Ne = (e) => {
|
|
8360
|
-
var t =
|
|
8394
|
+
var t = Zs();
|
|
8361
8395
|
H("click", t, function(...e) {
|
|
8362
8396
|
B(oe)?.apply(this, e);
|
|
8363
8397
|
}), K(e, t);
|
|
@@ -8367,11 +8401,11 @@ function _c(e, t) {
|
|
|
8367
8401
|
});
|
|
8368
8402
|
var Pe = L(Me, 2), Fe = (e) => {
|
|
8369
8403
|
let a = /* @__PURE__ */ M(() => B(s)), o = /* @__PURE__ */ M(() => B(_).find((e) => e.id === B(a))), l = /* @__PURE__ */ M(() => B(o)?.getCanSort?.() ?? !1), u = /* @__PURE__ */ M(() => B(o)?.columnDef.field != null && B(o)?.columnDef.filterable !== !1), d = /* @__PURE__ */ M(() => r().columnMenuTab);
|
|
8370
|
-
var f =
|
|
8371
|
-
var t =
|
|
8404
|
+
var f = sc(), T = F(f), E = (e) => {
|
|
8405
|
+
var t = $s(), n = F(t);
|
|
8372
8406
|
let i;
|
|
8373
8407
|
var a = L(n, 2), o = (e) => {
|
|
8374
|
-
var t =
|
|
8408
|
+
var t = Qs();
|
|
8375
8409
|
let n;
|
|
8376
8410
|
R(() => {
|
|
8377
8411
|
n = X(t, 1, "sv-grid-menu-tab", null, n, { "is-active": B(d) === "filter" }), Q(t, "aria-selected", B(d) === "filter");
|
|
@@ -8392,9 +8426,9 @@ function _c(e, t) {
|
|
|
8392
8426
|
var ee = L(T, 2), te = (e) => {
|
|
8393
8427
|
n(e, () => B(a));
|
|
8394
8428
|
}, ne = (e) => {
|
|
8395
|
-
var t =
|
|
8429
|
+
var t = tc(), n = L(I(t), 2);
|
|
8396
8430
|
Y(n, 21, () => B(g).getAllColumns(), (e) => e.id, (e, t) => {
|
|
8397
|
-
var n =
|
|
8431
|
+
var n = ec(), i = F(n);
|
|
8398
8432
|
Vi(i);
|
|
8399
8433
|
var a = L(i, 2), o = F(a, !0);
|
|
8400
8434
|
A(a), A(n), R(() => {
|
|
@@ -8410,8 +8444,8 @@ function _c(e, t) {
|
|
|
8410
8444
|
}), K(e, n);
|
|
8411
8445
|
}), A(n), K(e, t);
|
|
8412
8446
|
}, re = (e) => {
|
|
8413
|
-
var n =
|
|
8414
|
-
var n =
|
|
8447
|
+
var n = oc(), r = I(n), o = (e) => {
|
|
8448
|
+
var n = nc(), r = I(n), i = F(r);
|
|
8415
8449
|
oi(F(i), () => t.icon, () => "sort-asc"), A(i), nt(), A(r);
|
|
8416
8450
|
var o = L(r, 2), s = F(o);
|
|
8417
8451
|
oi(F(s), () => t.icon, () => "sort-desc"), A(s), nt(), A(o);
|
|
@@ -8423,7 +8457,7 @@ function _c(e, t) {
|
|
|
8423
8457
|
});
|
|
8424
8458
|
var s = L(r, 2), c = (e) => {
|
|
8425
8459
|
let n = /* @__PURE__ */ M(() => B(v)(B(a)));
|
|
8426
|
-
var r =
|
|
8460
|
+
var r = rc(), i = L(I(r), 2), o = F(i);
|
|
8427
8461
|
oi(F(o), () => t.icon, () => "op-startsWith"), A(o), nt(), A(i);
|
|
8428
8462
|
var s = L(i, 2), c = F(s);
|
|
8429
8463
|
oi(F(c), () => t.icon, () => "op-greaterThan"), A(c), nt(), A(s);
|
|
@@ -8440,7 +8474,7 @@ function _c(e, t) {
|
|
|
8440
8474
|
var f = L(u, 2), m = F(f);
|
|
8441
8475
|
oi(F(m), () => t.icon, () => "autosize"), A(m), nt(), A(f);
|
|
8442
8476
|
var g = L(f, 2), _ = (e) => {
|
|
8443
|
-
var n =
|
|
8477
|
+
var n = ic(), r = L(I(n), 2), i = F(r);
|
|
8444
8478
|
oi(F(i), () => t.icon, () => "group"), A(i), nt(), A(r);
|
|
8445
8479
|
var o = L(r, 2), s = F(o);
|
|
8446
8480
|
oi(F(s), () => t.icon, () => "x"), A(s), nt(), A(o), R((e, t) => {
|
|
@@ -8451,7 +8485,7 @@ function _c(e, t) {
|
|
|
8451
8485
|
B(i) && e(_);
|
|
8452
8486
|
});
|
|
8453
8487
|
var T = L(g, 4), E = (e) => {
|
|
8454
|
-
var n =
|
|
8488
|
+
var n = ac();
|
|
8455
8489
|
let r;
|
|
8456
8490
|
var i = F(n);
|
|
8457
8491
|
oi(F(i), () => t.icon, () => "columns"), A(i);
|
|
@@ -8480,7 +8514,7 @@ function _c(e, t) {
|
|
|
8480
8514
|
B(s) && e(Fe);
|
|
8481
8515
|
});
|
|
8482
8516
|
var Ie = L(Pe, 2), Le = (e) => {
|
|
8483
|
-
var t =
|
|
8517
|
+
var t = cc();
|
|
8484
8518
|
n(F(t), () => B(l)), A(t), R(() => Z(t, `left: ${B(u).x}px; top: ${B(u).y}px; max-height: calc(100vh - ${B(u).y}px - 12px);`)), K(e, t);
|
|
8485
8519
|
};
|
|
8486
8520
|
J(Ie, (e) => {
|
|
@@ -8488,9 +8522,9 @@ function _c(e, t) {
|
|
|
8488
8522
|
});
|
|
8489
8523
|
var Re = L(Ie, 2), ze = (e) => {
|
|
8490
8524
|
let t = /* @__PURE__ */ M(() => B(g).getAllColumns());
|
|
8491
|
-
var n =
|
|
8525
|
+
var n = uc(), i = L(F(n), 2);
|
|
8492
8526
|
Y(i, 21, () => B(t), (e) => e.id, (e, t) => {
|
|
8493
|
-
var n =
|
|
8527
|
+
var n = lc(), i = F(n);
|
|
8494
8528
|
Vi(i);
|
|
8495
8529
|
var a = L(i, 2), o = F(a, !0);
|
|
8496
8530
|
A(a), A(n), R(() => {
|
|
@@ -8511,9 +8545,9 @@ function _c(e, t) {
|
|
|
8511
8545
|
});
|
|
8512
8546
|
var Be = L(Re, 2), Ve = (e) => {
|
|
8513
8547
|
let n = /* @__PURE__ */ M(() => B(d)), r = /* @__PURE__ */ M(() => B(_).find((e) => e.id === B(n))), i = /* @__PURE__ */ M(() => B(te)(B(r))), o = /* @__PURE__ */ M(() => B(a)[B(n)]?.operator ?? B(ne)(B(r)));
|
|
8514
|
-
var s =
|
|
8548
|
+
var s = fc();
|
|
8515
8549
|
Y(s, 21, () => B(i), (e) => e.value, (e, i) => {
|
|
8516
|
-
var a =
|
|
8550
|
+
var a = dc(), s = F(a);
|
|
8517
8551
|
oi(F(s), () => t.icon, () => B(i).iconName), A(s);
|
|
8518
8552
|
var c = L(s);
|
|
8519
8553
|
A(a), R((e) => {
|
|
@@ -8527,12 +8561,12 @@ function _c(e, t) {
|
|
|
8527
8561
|
B(d) && e(Ve);
|
|
8528
8562
|
});
|
|
8529
8563
|
var He = L(Be, 2), Ue = (e) => {
|
|
8530
|
-
var t =
|
|
8564
|
+
var t = hc(), n = I(t), r = L(n, 2);
|
|
8531
8565
|
Y(r, 21, () => B(Ce)(), (e) => e.key, (e, t) => {
|
|
8532
8566
|
var n = G(), r = I(n), i = (e) => {
|
|
8533
|
-
K(e,
|
|
8567
|
+
K(e, pc());
|
|
8534
8568
|
}, a = (e) => {
|
|
8535
|
-
var n =
|
|
8569
|
+
var n = mc(), r = F(n, !0);
|
|
8536
8570
|
A(n), R(() => {
|
|
8537
8571
|
n.disabled = B(t).disabled, q(r, B(t).label);
|
|
8538
8572
|
}), H("click", n, () => {
|
|
@@ -8552,7 +8586,7 @@ function _c(e, t) {
|
|
|
8552
8586
|
B(xe) && e(Ue);
|
|
8553
8587
|
});
|
|
8554
8588
|
var We = L(He, 2), Ge = (e) => {
|
|
8555
|
-
var t =
|
|
8589
|
+
var t = gc(), n = I(t), i = L(n, 2), a = F(i);
|
|
8556
8590
|
Pn(a), Nn(a, !0);
|
|
8557
8591
|
var o = L(a, 2), s = F(o), c = L(s, 4), l = L(c, 2);
|
|
8558
8592
|
A(o), A(i), R(() => Z(i, `left: ${B(Te).x}px; top: ${B(Te).y}px;`)), H("click", n, function(...e) {
|
|
@@ -8580,31 +8614,31 @@ Wr([
|
|
|
8580
8614
|
]);
|
|
8581
8615
|
//#endregion
|
|
8582
8616
|
//#region src/GridFooter.svelte
|
|
8583
|
-
var
|
|
8584
|
-
function
|
|
8617
|
+
var yc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Count</span> </span>"), bc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Numeric</span> </span>"), xc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Sum</span> </span>"), Sc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Avg</span> </span>"), Cc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Min</span> </span>"), wc = /* @__PURE__ */ U("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Max</span> </span>"), Tc = /* @__PURE__ */ U("<div class=\"sv-grid-status-bar\" role=\"status\" aria-live=\"polite\"></div>"), Ec = /* @__PURE__ */ U("<div class=\"sv-grid-pagination\" role=\"navigation\" aria-label=\"Pagination\"><label class=\"sv-grid-pagination-pagesize\"><span>Page Size:</span> <select><option>10</option><option>25</option><option>50</option><option>100</option></select></label> <span class=\"sv-grid-pagination-range\"><strong> </strong> to <strong> </strong> of <strong> </strong></span> <div class=\"sv-grid-pagination-nav\"><button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"First page\">⇤</button> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Previous page\">‹</button> <span class=\"sv-grid-pagination-label\">Page <strong> </strong> of <strong> </strong></span> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Next page\">›</button> <button type=\"button\" class=\"sv-grid-pagination-btn\" aria-label=\"Last page\">⇥</button></div></div>"), Dc = /* @__PURE__ */ U("<!> <!>", 1);
|
|
8618
|
+
function Oc(e, t) {
|
|
8585
8619
|
ft(t, !0);
|
|
8586
8620
|
let n = /* @__PURE__ */ M(() => t.ctrl.paginationEnabled), r = /* @__PURE__ */ M(() => t.ctrl.paginationState), i = /* @__PURE__ */ M(() => t.ctrl.allRowsBeforePagination), a = /* @__PURE__ */ M(() => t.ctrl.statusBarEnabled), o = /* @__PURE__ */ M(() => t.ctrl.statusBarAggregates), s = /* @__PURE__ */ M(() => t.ctrl.statusBarStats), c = /* @__PURE__ */ M(() => t.ctrl.changePage), l = /* @__PURE__ */ M(() => t.ctrl.goToPage), u = /* @__PURE__ */ M(() => t.ctrl.setPageSize);
|
|
8587
|
-
var d =
|
|
8621
|
+
var d = Dc(), f = I(d), p = (e) => {
|
|
8588
8622
|
let t = /* @__PURE__ */ M(() => B(s));
|
|
8589
|
-
var n =
|
|
8623
|
+
var n = Tc();
|
|
8590
8624
|
Y(n, 20, () => B(o), (e) => e, (e, n) => {
|
|
8591
8625
|
var r = G(), i = I(r), a = (e) => {
|
|
8592
|
-
var n =
|
|
8626
|
+
var n = yc(), r = L(F(n), 1, !0);
|
|
8593
8627
|
A(n), R((e) => q(r, e), [() => Ka(B(t).count)]), K(e, n);
|
|
8594
8628
|
}, o = (e) => {
|
|
8595
|
-
var n =
|
|
8629
|
+
var n = bc(), r = L(F(n), 1, !0);
|
|
8596
8630
|
A(n), R((e) => q(r, e), [() => Ka(B(t).numericCount)]), K(e, n);
|
|
8597
8631
|
}, s = (e) => {
|
|
8598
|
-
var n =
|
|
8632
|
+
var n = xc(), r = L(F(n), 1, !0);
|
|
8599
8633
|
A(n), R((e) => q(r, e), [() => Ka(B(t).sum)]), K(e, n);
|
|
8600
8634
|
}, c = (e) => {
|
|
8601
|
-
var n =
|
|
8635
|
+
var n = Sc(), r = L(F(n), 1, !0);
|
|
8602
8636
|
A(n), R((e) => q(r, e), [() => Ka(B(t).avg)]), K(e, n);
|
|
8603
8637
|
}, l = (e) => {
|
|
8604
|
-
var n =
|
|
8638
|
+
var n = Cc(), r = L(F(n), 1, !0);
|
|
8605
8639
|
A(n), R((e) => q(r, e), [() => Ka(B(t).min)]), K(e, n);
|
|
8606
8640
|
}, u = (e) => {
|
|
8607
|
-
var n =
|
|
8641
|
+
var n = wc(), r = L(F(n), 1, !0);
|
|
8608
8642
|
A(n), R((e) => q(r, e), [() => Ka(B(t).max)]), K(e, n);
|
|
8609
8643
|
};
|
|
8610
8644
|
J(i, (e) => {
|
|
@@ -8617,7 +8651,7 @@ function Dc(e, t) {
|
|
|
8617
8651
|
});
|
|
8618
8652
|
var m = L(f, 2), h = (e) => {
|
|
8619
8653
|
let t = /* @__PURE__ */ M(() => B(i).length), n = /* @__PURE__ */ M(() => B(r).pageSize), a = /* @__PURE__ */ M(() => Math.max(1, Math.ceil(B(t) / B(n)))), o = /* @__PURE__ */ M(() => Math.min(B(r).pageIndex + 1, B(a))), s = /* @__PURE__ */ M(() => B(t) === 0 ? 0 : (B(o) - 1) * B(n) + 1), d = /* @__PURE__ */ M(() => Math.min(B(t), B(o) * B(n))), f = /* @__PURE__ */ M(() => B(o) <= 1), p = /* @__PURE__ */ M(() => B(o) >= B(a));
|
|
8620
|
-
var m =
|
|
8654
|
+
var m = Ec(), h = F(m), g = L(F(h), 2), _ = F(g);
|
|
8621
8655
|
_.value = _.__value = "10";
|
|
8622
8656
|
var v = L(_);
|
|
8623
8657
|
v.value = v.__value = "25";
|
|
@@ -8653,10 +8687,10 @@ function Dc(e, t) {
|
|
|
8653
8687
|
Wr(["change", "click"]);
|
|
8654
8688
|
//#endregion
|
|
8655
8689
|
//#region src/SvGrid.svelte
|
|
8656
|
-
var Oc = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-loading\" role=\"status\">Loading grid data...</div>"), kc = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-error\" role=\"alert\"> </div>"), Ac = /* @__PURE__ */ W("<path d=\"M8 10l4-4 4 4\"></path><path d=\"M8 14l4 4 4-4\"></path>", 1), jc = /* @__PURE__ */ W("<path d=\"M6 14l6-6 6 6\"></path>"), Mc = /* @__PURE__ */ W("<path d=\"M6 10l6 6 6-6\"></path>"), Nc = /* @__PURE__ */ W("<path d=\"M3 5h18l-7 8v6l-4 2v-8z\"></path>"), Pc = /* @__PURE__ */ W("<path d=\"M4 7h16\"></path><path d=\"M4 12h16\"></path><path d=\"M4 17h16\"></path>", 1), Fc = /* @__PURE__ */ W("<path d=\"M12 3l8 4.5-8 4.5-8-4.5z\"></path><path d=\"M4 12l8 4.5 8-4.5\"></path><path d=\"M4 16.5l8 4.5 8-4.5\"></path>", 1), Ic = /* @__PURE__ */ W("<path d=\"M18 6L6 18\"></path><path d=\"M6 6l12 12\"></path>", 1), Lc = /* @__PURE__ */ W("<path d=\"M6 9l6 6 6-6\"></path>"), Rc = /* @__PURE__ */ W("<circle cx=\"11\" cy=\"11\" r=\"6\"></circle><path d=\"M20 20l-4.5-4.5\"></path>", 1), zc = /* @__PURE__ */ W("<path d=\"M5 9.5h14\"></path><path d=\"M5 14.5h14\"></path>", 1), Bc = /* @__PURE__ */ W("<path d=\"M5 5v14\"></path><path d=\"M9 9h10\"></path><path d=\"M9 15h7\"></path>", 1), Vc = /* @__PURE__ */ W("<path d=\"M8 5l9 7-9 7\"></path>"), Hc = /* @__PURE__ */ W("<path d=\"M16 5l-9 7 9 7\"></path>"), Uc = /* @__PURE__ */ W("<circle cx=\"12\" cy=\"12\" r=\"8\"></circle><path d=\"M6.5 6.5l11 11\"></path>", 1), Wc = /* @__PURE__ */ W("<path d=\"M3 12h18\"></path><path d=\"M3 12l4-4\"></path><path d=\"M3 12l4 4\"></path><path d=\"M21 12l-4-4\"></path><path d=\"M21 12l-4 4\"></path>", 1), Gc = /* @__PURE__ */ W("<rect x=\"3\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"10\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect>", 1), Kc = /* @__PURE__ */ W("<path d=\"M3 4v6h6\"></path><path d=\"M3.5 10A9 9 0 1 0 6 5.3\"></path>", 1), qc = /* @__PURE__ */ W("<svg class=\"sv-grid-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><!></svg>"), Jc = /* @__PURE__ */ U("<div class=\"sv-grid-checkbox sv-grid-checkbox-readonly\" role=\"checkbox\" aria-readonly=\"true\"></div>"), Yc = /* @__PURE__ */ U("<span class=\"sv-grid-chip\"> </span>"), Xc = /* @__PURE__ */ U("<div class=\"sv-grid-chips-display\"></div>"), Zc = /* @__PURE__ */ W("<path fill-opacity=\"0.18\" stroke=\"none\"></path>"), Qc = /* @__PURE__ */ W("<path fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), $c = /* @__PURE__ */ W("<rect rx=\"0.5\"></rect>"), el = /* @__PURE__ */ W("<circle></circle>"), tl = /* @__PURE__ */ W("<svg class=\"sv-grid-sparkline\" preserveAspectRatio=\"none\" role=\"img\"><!><!><!><!></svg>"), nl = /* @__PURE__ */ U("<span class=\"sv-grid-group-child-indent\" aria-hidden=\"true\"></span>"), rl = /* @__PURE__ */ U("<!> <!>", 1), il = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bg\"></div>"), al = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bar\"></div>"), ol = /* @__PURE__ */ U("<span class=\"sv-grid-cf-icon\"> </span>"), sl = /* @__PURE__ */ U("<!> <!> <span class=\"sv-grid-cf-content\"><!> <!></span>", 1), cl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), ll = /* @__PURE__ */ U("<button type=\"button\" role=\"radio\">★</button>"), ul = /* @__PURE__ */ U("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), dl = /* @__PURE__ */ U("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), fl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), pl = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), ml = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), hl = /* @__PURE__ */ U("<input type=\"color\"/>"), gl = /* @__PURE__ */ U("<input/>"), _l = /* @__PURE__ */ U("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), vl = /* @__PURE__ */ U("<option> </option>"), yl = /* @__PURE__ */ U("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), bl = /* @__PURE__ */ U("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), xl = /* @__PURE__ */ U("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), Sl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), Cl = /* @__PURE__ */ U("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), wl = /* @__PURE__ */ U("<span class=\"sv-grid-group-agg\"><span class=\"sv-grid-group-agg-label\"> </span> </span>"), Tl = /* @__PURE__ */ U("<div class=\"sv-grid-group-content\"><button type=\"button\" class=\"sv-grid-group-toggle\"> </button> <span class=\"sv-grid-group-label\"> </span> <span class=\"sv-grid-group-count\"> </span> <!></div>"), El = /* @__PURE__ */ U("<tr><td class=\"sv-grid-cell sv-grid-detail-cell\"><!></td></tr>"), Dl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), Ol = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"></td>"), kl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Al = /* @__PURE__ */ U("<td> </td>"), jl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Ml = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Nl = /* @__PURE__ */ U("<label class=\"sv-grid-global-filter\">Filter all rows <input placeholder=\"Type to filter...\"/></label>"), Pl = /* @__PURE__ */ U("<div class=\"sv-grid-toolbar\"><button type=\"button\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"6\" height=\"16\" rx=\"1\"></rect><rect x=\"11\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect></svg> Columns & Filters</button></div>"), Fl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-hidden=\"true\"></th>"), Il = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\" aria-hidden=\"true\"></th>"), Ll = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-group-header-label\"> </span> <svg class=\"sv-grid-group-caret\" viewBox=\"0 0 16 16\" width=\"10\" height=\"10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"4 6 8 10 12 6\"></polyline></svg></button>"), Rl = /* @__PURE__ */ U("<span class=\"sv-grid-group-header-label\"> </span>"), zl = /* @__PURE__ */ U("<th><!></th>"), Bl = /* @__PURE__ */ U("<tr><!><!><!></tr>"), Vl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-label=\"Row number\"><span class=\"sv-grid-row-number-head\">#</span></th>"), Hl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select all rows\"></button></th>"), Ul = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Wl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Gl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Kl = /* @__PURE__ */ U("<div class=\"sv-grid-header-custom\" role=\"button\" tabindex=\"-1\"><!> <!></div>"), ql = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Jl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Yl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-hint\"><!></span>"), Xl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-header-sort\"><span class=\"sv-grid-header-label\"> </span> <!></button>"), Zl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-flag\" title=\"Grouped\"><!></span>"), Ql = /* @__PURE__ */ U("<button type=\"button\" aria-label=\"Filter\" aria-haspopup=\"menu\"><!></button>"), $l = /* @__PURE__ */ U("<input class=\"sv-grid-column-filter\" placeholder=\"Filter\"/>"), eu = /* @__PURE__ */ U("<div class=\"sv-grid-header-cell\"><!> <!> <!> <button type=\"button\" aria-label=\"Column menu\" aria-haspopup=\"menu\"><!></button></div> <!> <div role=\"separator\" aria-orientation=\"vertical\" aria-label=\"Resize column\"></div>", 1), tu = /* @__PURE__ */ U("<th><!></th>"), nu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\"></th>"), iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"></th>"), au = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), ou = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value sv-grid-filter-value-to\" placeholder=\"To\"/>"), su = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value\"/> <!>", 1), cu = /* @__PURE__ */ U("<th class=\"sv-grid-column\"><div class=\"sv-grid-filter-row-control\"><button type=\"button\"><span class=\"sv-grid-header-icon\"><!></span> <span class=\"sv-grid-caret\"><!></span></button> <!></div></th>"), lu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), uu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), du = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr> <!>", 1), fu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-top-body\" role=\"rowgroup\"></tbody>"), pu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-empty-row\"><td class=\"sv-grid-cell sv-grid-empty-cell\"> </td></tr>"), mu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), hu = /* @__PURE__ */ U("<tr><td><!></td></tr>"), gu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), _u = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), vu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), yu = /* @__PURE__ */ U("<div class=\"sv-grid-fill-handle\" role=\"button\" aria-label=\"Fill handle\"></div>"), bu = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), xu = /* @__PURE__ */ U("<td><!> <!> <!></td>"), Su = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Cu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), wu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), Tu = /* @__PURE__ */ U("<!> <!> <!>", 1), Eu = /* @__PURE__ */ U("<tr><td><!></td></tr>"), Du = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), Ou = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), ku = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Au = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), ju = /* @__PURE__ */ U("<td><!> <!></td>"), Mu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Nu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Pu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-bottom-body\" role=\"rowgroup\"></tbody>"), Fu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-row-number-column\"></th>"), Iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-selection-column\"></th>"), Lu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column\"> </th>"), zu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Bu = /* @__PURE__ */ U("<tfoot class=\"sv-grid-foot\" role=\"rowgroup\"><tr><!><!><!><!><!></tr></tfoot>"), Vu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner\" aria-hidden=\"true\"></div>"), Hu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Uu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Wu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner-br\" aria-hidden=\"true\"></div>"), Gu = /* @__PURE__ */ U("<div class=\"sv-grid-find\" role=\"search\" aria-label=\"Find in grid\"><svg class=\"sv-grid-find-icon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><circle cx=\"7\" cy=\"7\" r=\"4.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"></circle><line x1=\"10.2\" y1=\"10.2\" x2=\"14\" y2=\"14\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"></line></svg> <input class=\"sv-grid-find-input\" type=\"search\" placeholder=\"Find in grid…\"/> <span class=\"sv-grid-find-count\"> </span> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Previous match\">↑</button> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Next match\">↓</button> <button type=\"button\" class=\"sv-grid-find-close\" aria-label=\"Close find\">✕</button></div>"), Ku = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-cell\"><span class=\"sv-grid-skeleton-bar\"></span></div>"), qu = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-row\"></div>"), Ju = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton\" aria-hidden=\"true\"></div>"), Yu = /* @__PURE__ */ U("<div class=\"sv-grid-loading-overlay\" role=\"status\" aria-live=\"polite\"><div class=\"sv-grid-loading-bar\"></div> <!> <span class=\"sv-grid-sr-only\">Loading…</span></div>"), Xu = /* @__PURE__ */ U("<li class=\"sv-grid-tool-panel-item\"><label class=\"sv-grid-tool-panel-vis\"><input type=\"checkbox\"/> <span class=\"sv-grid-tool-panel-name\"> </span></label> <span class=\"sv-grid-tool-panel-actions\"><button type=\"button\">⊞</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move up\">↑</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move down\">↓</button></span></li>"), Zu = /* @__PURE__ */ U("<ul class=\"sv-grid-tool-panel-list\"></ul>"), Qu = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-tp-filter-clear\" title=\"Clear filter\">✕</button>"), $u = /* @__PURE__ */ U("<option> </option>"), ed = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\" placeholder=\"To\"/>"), td = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\"/> <!>", 1), nd = /* @__PURE__ */ U("<div><div class=\"sv-grid-tp-filter-head\"><span class=\"sv-grid-tp-filter-name\"> </span> <!></div> <select class=\"sv-grid-tp-filter-op\"></select> <!></div>"), rd = /* @__PURE__ */ U("<div class=\"sv-grid-tool-panel-filters\"></div>"), id = /* @__PURE__ */ U("<aside class=\"sv-grid-tool-panel\" aria-label=\"Tool panel\"><div class=\"sv-grid-tool-panel-head\"><span> </span> <button type=\"button\" class=\"sv-grid-tool-panel-close\" aria-label=\"Close\">✕</button></div> <div class=\"sv-grid-tool-panel-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">Columns</button> <button type=\"button\" role=\"tab\">Filters</button></div> <!></aside>"), ad = /* @__PURE__ */ U("<div><!> <!> <div class=\"sv-grid-shell\"><div class=\"sv-grid-container sv-grid-container-custom-scrollbars\"><table><thead class=\"sv-grid-head\" role=\"rowgroup\"><!><!></thead><!><tbody class=\"sv-grid-body\" role=\"rowgroup\"><!></tbody><!><!></table></div> <!> <!> <!> <!></div> <!> <!> <!> <!></div> <!>", 1);
|
|
8657
|
-
function
|
|
8690
|
+
var kc = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-loading\" role=\"status\">Loading grid data...</div>"), Ac = /* @__PURE__ */ U("<div class=\"sv-grid-state sv-grid-state-error\" role=\"alert\"> </div>"), jc = /* @__PURE__ */ W("<path d=\"M8 10l4-4 4 4\"></path><path d=\"M8 14l4 4 4-4\"></path>", 1), Mc = /* @__PURE__ */ W("<path d=\"M6 14l6-6 6 6\"></path>"), Nc = /* @__PURE__ */ W("<path d=\"M6 10l6 6 6-6\"></path>"), Pc = /* @__PURE__ */ W("<path d=\"M3 5h18l-7 8v6l-4 2v-8z\"></path>"), Fc = /* @__PURE__ */ W("<path d=\"M4 7h16\"></path><path d=\"M4 12h16\"></path><path d=\"M4 17h16\"></path>", 1), Ic = /* @__PURE__ */ W("<path d=\"M12 3l8 4.5-8 4.5-8-4.5z\"></path><path d=\"M4 12l8 4.5 8-4.5\"></path><path d=\"M4 16.5l8 4.5 8-4.5\"></path>", 1), Lc = /* @__PURE__ */ W("<path d=\"M18 6L6 18\"></path><path d=\"M6 6l12 12\"></path>", 1), Rc = /* @__PURE__ */ W("<path d=\"M6 9l6 6 6-6\"></path>"), zc = /* @__PURE__ */ W("<circle cx=\"11\" cy=\"11\" r=\"6\"></circle><path d=\"M20 20l-4.5-4.5\"></path>", 1), Bc = /* @__PURE__ */ W("<path d=\"M5 9.5h14\"></path><path d=\"M5 14.5h14\"></path>", 1), Vc = /* @__PURE__ */ W("<path d=\"M5 5v14\"></path><path d=\"M9 9h10\"></path><path d=\"M9 15h7\"></path>", 1), Hc = /* @__PURE__ */ W("<path d=\"M8 5l9 7-9 7\"></path>"), Uc = /* @__PURE__ */ W("<path d=\"M16 5l-9 7 9 7\"></path>"), Wc = /* @__PURE__ */ W("<circle cx=\"12\" cy=\"12\" r=\"8\"></circle><path d=\"M6.5 6.5l11 11\"></path>", 1), Gc = /* @__PURE__ */ W("<path d=\"M3 12h18\"></path><path d=\"M3 12l4-4\"></path><path d=\"M3 12l4 4\"></path><path d=\"M21 12l-4-4\"></path><path d=\"M21 12l-4 4\"></path>", 1), Kc = /* @__PURE__ */ W("<rect x=\"3\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"10\" y=\"4\" width=\"5\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect>", 1), qc = /* @__PURE__ */ W("<path d=\"M3 4v6h6\"></path><path d=\"M3.5 10A9 9 0 1 0 6 5.3\"></path>", 1), Jc = /* @__PURE__ */ W("<svg class=\"sv-grid-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><!></svg>"), Yc = /* @__PURE__ */ U("<div class=\"sv-grid-checkbox sv-grid-checkbox-readonly\" role=\"checkbox\" aria-readonly=\"true\"></div>"), Xc = /* @__PURE__ */ U("<span class=\"sv-grid-chip\"> </span>"), Zc = /* @__PURE__ */ U("<div class=\"sv-grid-chips-display\"></div>"), Qc = /* @__PURE__ */ W("<path fill-opacity=\"0.18\" stroke=\"none\"></path>"), $c = /* @__PURE__ */ W("<path fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), el = /* @__PURE__ */ W("<rect rx=\"0.5\"></rect>"), tl = /* @__PURE__ */ W("<circle></circle>"), nl = /* @__PURE__ */ W("<svg class=\"sv-grid-sparkline\" preserveAspectRatio=\"none\" role=\"img\"><!><!><!><!></svg>"), rl = /* @__PURE__ */ U("<span class=\"sv-grid-group-child-indent\" aria-hidden=\"true\"></span>"), il = /* @__PURE__ */ U("<!> <!>", 1), al = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bg\"></div>"), ol = /* @__PURE__ */ U("<div class=\"sv-grid-cf-bar\"></div>"), sl = /* @__PURE__ */ U("<span class=\"sv-grid-cf-icon\"> </span>"), cl = /* @__PURE__ */ U("<!> <!> <span class=\"sv-grid-cf-content\"><!> <!></span>", 1), ll = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), ul = /* @__PURE__ */ U("<button type=\"button\" role=\"radio\">★</button>"), dl = /* @__PURE__ */ U("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), fl = /* @__PURE__ */ U("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), pl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ml = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), hl = /* @__PURE__ */ U("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), gl = /* @__PURE__ */ U("<input type=\"color\"/>"), _l = /* @__PURE__ */ U("<input/>"), vl = /* @__PURE__ */ U("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), yl = /* @__PURE__ */ U("<option> </option>"), bl = /* @__PURE__ */ U("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), xl = /* @__PURE__ */ U("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), Sl = /* @__PURE__ */ U("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), Cl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), wl = /* @__PURE__ */ U("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), Tl = /* @__PURE__ */ U("<span class=\"sv-grid-group-agg\"><span class=\"sv-grid-group-agg-label\"> </span> </span>"), El = /* @__PURE__ */ U("<div class=\"sv-grid-group-content\"><button type=\"button\" class=\"sv-grid-group-toggle\"> </button> <span class=\"sv-grid-group-label\"> </span> <span class=\"sv-grid-group-count\"> </span> <!></div>"), Dl = /* @__PURE__ */ U("<tr><td class=\"sv-grid-cell sv-grid-detail-cell\"><!></td></tr>"), Ol = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), kl = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"></td>"), Al = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), jl = /* @__PURE__ */ U("<td> </td>"), Ml = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Nl = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Pl = /* @__PURE__ */ U("<label class=\"sv-grid-global-filter\">Filter all rows <input placeholder=\"Type to filter...\"/></label>"), Fl = /* @__PURE__ */ U("<div class=\"sv-grid-toolbar\"><button type=\"button\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"6\" height=\"16\" rx=\"1\"></rect><rect x=\"11\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect><rect x=\"17\" y=\"4\" width=\"4\" height=\"16\" rx=\"1\"></rect></svg> Columns & Filters</button></div>"), Il = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-hidden=\"true\"></th>"), Ll = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\" aria-hidden=\"true\"></th>"), Rl = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-group-header-label\"> </span> <svg class=\"sv-grid-group-caret\" viewBox=\"0 0 16 16\" width=\"10\" height=\"10\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"4 6 8 10 12 6\"></polyline></svg></button>"), zl = /* @__PURE__ */ U("<span class=\"sv-grid-group-header-label\"> </span>"), Bl = /* @__PURE__ */ U("<th><!></th>"), Vl = /* @__PURE__ */ U("<tr><!><!><!></tr>"), Hl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\" aria-label=\"Row number\"><span class=\"sv-grid-row-number-head\">#</span></th>"), Ul = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select all rows\"></button></th>"), Wl = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Gl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Kl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), ql = /* @__PURE__ */ U("<div class=\"sv-grid-header-custom\" role=\"button\" tabindex=\"-1\"><!> <!></div>"), Jl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Yl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon\"><!></span>"), Xl = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-hint\"><!></span>"), Zl = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-header-sort\"><span class=\"sv-grid-header-label\"> </span> <!></button>"), Ql = /* @__PURE__ */ U("<span class=\"sv-grid-header-icon sv-grid-header-icon-flag\" title=\"Grouped\"><!></span>"), $l = /* @__PURE__ */ U("<button type=\"button\" aria-label=\"Filter\" aria-haspopup=\"menu\"><!></button>"), eu = /* @__PURE__ */ U("<input class=\"sv-grid-column-filter\" placeholder=\"Filter\"/>"), tu = /* @__PURE__ */ U("<div class=\"sv-grid-header-cell\"><!> <!> <!> <button type=\"button\" aria-label=\"Column menu\" aria-haspopup=\"menu\"><!></button></div> <!> <div role=\"separator\" aria-orientation=\"vertical\" aria-label=\"Resize column\"></div>", 1), nu = /* @__PURE__ */ U("<th><!></th>"), ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-row-number-column\"></th>"), au = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-selection-column\"></th>"), ou = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), su = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value sv-grid-filter-value-to\" placeholder=\"To\"/>"), cu = /* @__PURE__ */ U("<input class=\"sv-grid-filter-value\"/> <!>", 1), lu = /* @__PURE__ */ U("<th class=\"sv-grid-column\"><div class=\"sv-grid-filter-row-control\"><button type=\"button\"><span class=\"sv-grid-header-icon\"><!></span> <span class=\"sv-grid-caret\"><!></span></button> <!></div></th>"), uu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), du = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), fu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr> <!>", 1), pu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-top-body\" role=\"rowgroup\"></tbody>"), mu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-empty-row\"><td class=\"sv-grid-cell sv-grid-empty-cell\"> </td></tr>"), hu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), gu = /* @__PURE__ */ U("<tr><td><!></td></tr>"), _u = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), vu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), yu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), bu = /* @__PURE__ */ U("<div class=\"sv-grid-fill-handle\" role=\"button\" aria-label=\"Fill handle\"></div>"), xu = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), Su = /* @__PURE__ */ U("<td><!> <!> <!></td>"), Cu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), wu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Tu = /* @__PURE__ */ U("<tr class=\"sv-grid-row sv-grid-row-spacer\" aria-hidden=\"true\"><td class=\"sv-grid-cell sv-grid-cell-spacer\"></td></tr>"), Eu = /* @__PURE__ */ U("<!> <!> <!>", 1), Du = /* @__PURE__ */ U("<tr><td><!></td></tr>"), Ou = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-row-number-cell\"> </td>"), ku = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-selection-cell\"><button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Select row\"></button></td>"), Au = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), ju = /* @__PURE__ */ U("<span class=\"sv-grid-cell-note-corner\" aria-label=\"Note\"></span>"), Mu = /* @__PURE__ */ U("<td><!> <!></td>"), Nu = /* @__PURE__ */ U("<td class=\"sv-grid-cell sv-grid-cell-spacer\" aria-hidden=\"true\"></td>"), Pu = /* @__PURE__ */ U("<tr><!><!><!><!><!></tr>"), Fu = /* @__PURE__ */ U("<tbody class=\"sv-grid-pinned sv-grid-pinned-bottom-body\" role=\"rowgroup\"></tbody>"), Iu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-row-number-column\"></th>"), Lu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column sv-grid-selection-column\"></th>"), Ru = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), zu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-summary-column\"> </th>"), Bu = /* @__PURE__ */ U("<th class=\"sv-grid-column sv-grid-column-spacer\" aria-hidden=\"true\"></th>"), Vu = /* @__PURE__ */ U("<tfoot class=\"sv-grid-foot\" role=\"rowgroup\"><tr><!><!><!><!><!></tr></tfoot>"), Hu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner\" aria-hidden=\"true\"></div>"), Uu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Wu = /* @__PURE__ */ U("<sv-grid-scrollbar></sv-grid-scrollbar>", 2), Gu = /* @__PURE__ */ U("<div class=\"sv-grid-scrollbar-corner-br\" aria-hidden=\"true\"></div>"), Ku = /* @__PURE__ */ U("<div class=\"sv-grid-find\" role=\"search\" aria-label=\"Find in grid\"><svg class=\"sv-grid-find-icon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><circle cx=\"7\" cy=\"7\" r=\"4.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\"></circle><line x1=\"10.2\" y1=\"10.2\" x2=\"14\" y2=\"14\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"></line></svg> <input class=\"sv-grid-find-input\" type=\"search\" placeholder=\"Find in grid…\"/> <span class=\"sv-grid-find-count\"> </span> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Previous match\">↑</button> <button type=\"button\" class=\"sv-grid-find-step\" aria-label=\"Next match\">↓</button> <button type=\"button\" class=\"sv-grid-find-close\" aria-label=\"Close find\">✕</button></div>"), qu = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-cell\"><span class=\"sv-grid-skeleton-bar\"></span></div>"), Ju = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton-row\"></div>"), Yu = /* @__PURE__ */ U("<div class=\"sv-grid-skeleton\" aria-hidden=\"true\"></div>"), Xu = /* @__PURE__ */ U("<div class=\"sv-grid-loading-overlay\" role=\"status\" aria-live=\"polite\"><div class=\"sv-grid-loading-bar\"></div> <!> <span class=\"sv-grid-sr-only\">Loading…</span></div>"), Zu = /* @__PURE__ */ U("<li class=\"sv-grid-tool-panel-item\"><label class=\"sv-grid-tool-panel-vis\"><input type=\"checkbox\"/> <span class=\"sv-grid-tool-panel-name\"> </span></label> <span class=\"sv-grid-tool-panel-actions\"><button type=\"button\">⊞</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move up\">↑</button> <button type=\"button\" class=\"sv-grid-tool-panel-btn\" aria-label=\"Move down\">↓</button></span></li>"), Qu = /* @__PURE__ */ U("<ul class=\"sv-grid-tool-panel-list\"></ul>"), $u = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-tp-filter-clear\" title=\"Clear filter\">✕</button>"), ed = /* @__PURE__ */ U("<option> </option>"), td = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\" placeholder=\"To\"/>"), nd = /* @__PURE__ */ U("<input class=\"sv-grid-tp-filter-input\"/> <!>", 1), rd = /* @__PURE__ */ U("<div><div class=\"sv-grid-tp-filter-head\"><span class=\"sv-grid-tp-filter-name\"> </span> <!></div> <select class=\"sv-grid-tp-filter-op\"></select> <!></div>"), id = /* @__PURE__ */ U("<div class=\"sv-grid-tool-panel-filters\"></div>"), ad = /* @__PURE__ */ U("<aside class=\"sv-grid-tool-panel\" aria-label=\"Tool panel\"><div class=\"sv-grid-tool-panel-head\"><span> </span> <button type=\"button\" class=\"sv-grid-tool-panel-close\" aria-label=\"Close\">✕</button></div> <div class=\"sv-grid-tool-panel-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">Columns</button> <button type=\"button\" role=\"tab\">Filters</button></div> <!></aside>"), od = /* @__PURE__ */ U("<div><!> <!> <div class=\"sv-grid-shell\"><div><table><thead class=\"sv-grid-head\" role=\"rowgroup\"><!><!></thead><!><tbody class=\"sv-grid-body\" role=\"rowgroup\"><!></tbody><!><!></table></div> <!> <!> <!> <!></div> <!> <!> <!> <!></div> <!>", 1);
|
|
8691
|
+
function sd(e, t) {
|
|
8658
8692
|
ft(t, !0);
|
|
8659
|
-
let n =
|
|
8693
|
+
let n = Ls(/* @__PURE__ */ ra(t, [
|
|
8660
8694
|
"$$slots",
|
|
8661
8695
|
"$$events",
|
|
8662
8696
|
"$$legacy"
|
|
@@ -8716,56 +8750,56 @@ function od(e, t) {
|
|
|
8716
8750
|
B(jt)?.apply(this, e);
|
|
8717
8751
|
});
|
|
8718
8752
|
var rn = I(nn), an = (e) => {
|
|
8719
|
-
K(e,
|
|
8753
|
+
K(e, kc());
|
|
8720
8754
|
}, on = (e) => {
|
|
8721
|
-
var n =
|
|
8755
|
+
var n = Ac(), r = F(n, !0);
|
|
8722
8756
|
A(n), R(() => q(r, t.error)), K(e, n);
|
|
8723
8757
|
}, sn = (e) => {
|
|
8724
8758
|
let fe = (e, t = de) => {
|
|
8725
|
-
var n =
|
|
8726
|
-
var t =
|
|
8759
|
+
var n = Jc(), r = F(n), i = (e) => {
|
|
8760
|
+
var t = jc();
|
|
8727
8761
|
nt(), K(e, t);
|
|
8728
8762
|
}, a = (e) => {
|
|
8729
|
-
K(e, jc());
|
|
8730
|
-
}, o = (e) => {
|
|
8731
8763
|
K(e, Mc());
|
|
8732
|
-
},
|
|
8764
|
+
}, o = (e) => {
|
|
8733
8765
|
K(e, Nc());
|
|
8766
|
+
}, s = (e) => {
|
|
8767
|
+
K(e, Pc());
|
|
8734
8768
|
}, c = (e) => {
|
|
8735
|
-
var t =
|
|
8769
|
+
var t = Fc();
|
|
8736
8770
|
nt(2), K(e, t);
|
|
8737
8771
|
}, l = (e) => {
|
|
8738
|
-
var t =
|
|
8772
|
+
var t = Ic();
|
|
8739
8773
|
nt(2), K(e, t);
|
|
8740
8774
|
}, u = (e) => {
|
|
8741
|
-
var t =
|
|
8775
|
+
var t = Lc();
|
|
8742
8776
|
nt(), K(e, t);
|
|
8743
8777
|
}, d = (e) => {
|
|
8744
|
-
K(e,
|
|
8778
|
+
K(e, Rc());
|
|
8745
8779
|
}, f = (e) => {
|
|
8746
|
-
var t =
|
|
8780
|
+
var t = zc();
|
|
8747
8781
|
nt(), K(e, t);
|
|
8748
8782
|
}, p = (e) => {
|
|
8749
|
-
var t =
|
|
8783
|
+
var t = Bc();
|
|
8750
8784
|
nt(), K(e, t);
|
|
8751
8785
|
}, m = (e) => {
|
|
8752
|
-
var t =
|
|
8786
|
+
var t = Vc();
|
|
8753
8787
|
nt(2), K(e, t);
|
|
8754
8788
|
}, h = (e) => {
|
|
8755
|
-
K(e, Vc());
|
|
8756
|
-
}, g = (e) => {
|
|
8757
8789
|
K(e, Hc());
|
|
8790
|
+
}, g = (e) => {
|
|
8791
|
+
K(e, Uc());
|
|
8758
8792
|
}, _ = (e) => {
|
|
8759
|
-
var t =
|
|
8793
|
+
var t = Wc();
|
|
8760
8794
|
nt(), K(e, t);
|
|
8761
8795
|
}, v = (e) => {
|
|
8762
|
-
var t =
|
|
8796
|
+
var t = Gc();
|
|
8763
8797
|
nt(4), K(e, t);
|
|
8764
8798
|
}, y = (e) => {
|
|
8765
|
-
var t =
|
|
8799
|
+
var t = Kc();
|
|
8766
8800
|
nt(2), K(e, t);
|
|
8767
8801
|
}, b = (e) => {
|
|
8768
|
-
var t =
|
|
8802
|
+
var t = qc();
|
|
8769
8803
|
nt(), K(e, t);
|
|
8770
8804
|
};
|
|
8771
8805
|
J(r, (e) => {
|
|
@@ -8773,16 +8807,16 @@ function od(e, t) {
|
|
|
8773
8807
|
}), A(n), K(e, n);
|
|
8774
8808
|
}, pe = (e, t = de, n = de, r = de) => {
|
|
8775
8809
|
var i = G(), a = I(i), o = (e) => {
|
|
8776
|
-
var t =
|
|
8810
|
+
var t = Yc();
|
|
8777
8811
|
R((e, n) => {
|
|
8778
8812
|
Q(t, "aria-checked", e), Q(t, "aria-label", n);
|
|
8779
8813
|
}, [() => !!r(), () => B(je)(n())]), K(e, t);
|
|
8780
8814
|
}, s = (e) => {
|
|
8781
8815
|
let i = /* @__PURE__ */ M(() => Array.isArray(r()) ? r() : r() == null || r() === "" ? [] : [r()]), a = /* @__PURE__ */ M(() => B(lt)(n(), t())), o = /* @__PURE__ */ M(() => n().columnDef.editorType === "chips"), s = /* @__PURE__ */ M(() => B(i).some((e) => to(B(a), e)));
|
|
8782
8816
|
var c = G(), l = I(c), u = (e) => {
|
|
8783
|
-
var t =
|
|
8817
|
+
var t = Zc();
|
|
8784
8818
|
Y(t, 21, () => B(i), (e) => String(e), (e, t) => {
|
|
8785
|
-
var n =
|
|
8819
|
+
var n = Xc(), r = F(n, !0);
|
|
8786
8820
|
A(n), R((e, t) => {
|
|
8787
8821
|
Z(n, e), q(r, t);
|
|
8788
8822
|
}, [() => no(to(B(a), B(t))), () => eo(B(a), B(t))]), K(e, n);
|
|
@@ -8798,8 +8832,8 @@ function od(e, t) {
|
|
|
8798
8832
|
let t = /* @__PURE__ */ M(() => Oa(Da(r()), n().columnDef.sparkline));
|
|
8799
8833
|
var i = G(), a = I(i), o = (e) => {
|
|
8800
8834
|
let n = /* @__PURE__ */ M(() => Da(r()));
|
|
8801
|
-
var i =
|
|
8802
|
-
var n =
|
|
8835
|
+
var i = nl(), a = F(i), o = (e) => {
|
|
8836
|
+
var n = Qc();
|
|
8803
8837
|
R(() => {
|
|
8804
8838
|
Q(n, "d", B(t).areaPath), Q(n, "fill", B(t).color);
|
|
8805
8839
|
}), K(e, n);
|
|
@@ -8808,7 +8842,7 @@ function od(e, t) {
|
|
|
8808
8842
|
B(t).areaPath && e(o);
|
|
8809
8843
|
});
|
|
8810
8844
|
var s = L(a), c = (e) => {
|
|
8811
|
-
var n =
|
|
8845
|
+
var n = $c();
|
|
8812
8846
|
R(() => {
|
|
8813
8847
|
Q(n, "d", B(t).linePath), Q(n, "stroke", B(t).color), Q(n, "stroke-width", B(t).lineWidth);
|
|
8814
8848
|
}), K(e, n);
|
|
@@ -8818,13 +8852,13 @@ function od(e, t) {
|
|
|
8818
8852
|
});
|
|
8819
8853
|
var l = L(s);
|
|
8820
8854
|
Y(l, 17, () => B(t).bars, si, (e, n) => {
|
|
8821
|
-
var r =
|
|
8855
|
+
var r = el();
|
|
8822
8856
|
R(() => {
|
|
8823
8857
|
Q(r, "x", B(n).x), Q(r, "y", B(n).y), Q(r, "width", B(n).w), Q(r, "height", B(n).h), Q(r, "fill", B(n).negative ? B(t).negativeColor : B(t).color);
|
|
8824
8858
|
}), K(e, r);
|
|
8825
8859
|
});
|
|
8826
8860
|
var u = L(l), d = (e) => {
|
|
8827
|
-
var n =
|
|
8861
|
+
var n = tl();
|
|
8828
8862
|
R(() => {
|
|
8829
8863
|
Q(n, "cx", B(t).lastPoint.x), Q(n, "cy", B(t).lastPoint.y), Q(n, "r", B(t).lineWidth + .5), Q(n, "fill", B(t).color);
|
|
8830
8864
|
}), K(e, n);
|
|
@@ -8840,8 +8874,8 @@ function od(e, t) {
|
|
|
8840
8874
|
}), K(e, i);
|
|
8841
8875
|
}, l = (e) => {
|
|
8842
8876
|
let i = /* @__PURE__ */ M(() => n().columnDef.cell);
|
|
8843
|
-
var a =
|
|
8844
|
-
var n =
|
|
8877
|
+
var a = il(), o = I(a), s = (e) => {
|
|
8878
|
+
var n = rl();
|
|
8845
8879
|
R(() => Z(n, `width: ${t().depth * 20}px;`)), K(e, n);
|
|
8846
8880
|
};
|
|
8847
8881
|
J(o, (e) => {
|
|
@@ -8896,22 +8930,22 @@ function od(e, t) {
|
|
|
8896
8930
|
}, me = (e, t = de, n = de, r = de) => {
|
|
8897
8931
|
let i = /* @__PURE__ */ M(() => B(we)(t(), n(), r()));
|
|
8898
8932
|
var a = G(), o = I(a), s = (e) => {
|
|
8899
|
-
var a =
|
|
8900
|
-
var t =
|
|
8933
|
+
var a = cl(), o = I(a), s = (e) => {
|
|
8934
|
+
var t = al();
|
|
8901
8935
|
R(() => Z(t, `background:${B(i).background}`)), K(e, t);
|
|
8902
8936
|
};
|
|
8903
8937
|
J(o, (e) => {
|
|
8904
8938
|
B(i).background && e(s);
|
|
8905
8939
|
});
|
|
8906
8940
|
var c = L(o, 2), l = (e) => {
|
|
8907
|
-
var t =
|
|
8941
|
+
var t = ol();
|
|
8908
8942
|
R(() => Z(t, `width:${B(i).dataBar.percent}%;background:${B(i).dataBar.color}`)), K(e, t);
|
|
8909
8943
|
};
|
|
8910
8944
|
J(c, (e) => {
|
|
8911
8945
|
B(i).dataBar && e(l);
|
|
8912
8946
|
});
|
|
8913
8947
|
var u = L(c, 2), d = F(u), f = (e) => {
|
|
8914
|
-
var t =
|
|
8948
|
+
var t = sl(), n = F(t, !0);
|
|
8915
8949
|
A(t), R(() => q(n, B(i).icon)), K(e, t);
|
|
8916
8950
|
};
|
|
8917
8951
|
J(d, (e) => {
|
|
@@ -8961,7 +8995,7 @@ function od(e, t) {
|
|
|
8961
8995
|
}
|
|
8962
8996
|
K(e, a);
|
|
8963
8997
|
}, s = (e) => {
|
|
8964
|
-
var t =
|
|
8998
|
+
var t = ll();
|
|
8965
8999
|
R((e) => Q(t, "aria-checked", e), [() => !!n.editingCell.value]), H("click", t, (e) => {
|
|
8966
9000
|
e.stopPropagation();
|
|
8967
9001
|
let t = !n.editingCell?.value;
|
|
@@ -9009,7 +9043,7 @@ function od(e, t) {
|
|
|
9009
9043
|
ge(e, () => B(i), () => B(a), () => B(o));
|
|
9010
9044
|
}, u = (e) => {
|
|
9011
9045
|
let t = /* @__PURE__ */ M(() => Math.max(0, Math.min(5, Math.round(Number(n.editingCell?.value) || 0))));
|
|
9012
|
-
var r =
|
|
9046
|
+
var r = dl(), i = F(r);
|
|
9013
9047
|
Y(i, 16, () => [
|
|
9014
9048
|
1,
|
|
9015
9049
|
2,
|
|
@@ -9017,7 +9051,7 @@ function od(e, t) {
|
|
|
9017
9051
|
4,
|
|
9018
9052
|
5
|
|
9019
9053
|
], (e) => e, (e, r) => {
|
|
9020
|
-
var i =
|
|
9054
|
+
var i = ul();
|
|
9021
9055
|
R(() => {
|
|
9022
9056
|
Q(i, "aria-checked", B(t) >= r), Q(i, "aria-label", `${r} ${r === 1 ? "star" : "stars"}`), X(i, 1, `sv-grid-rating-star ${B(t) >= r ? "sv-grid-rating-star-on" : ""}`);
|
|
9023
9057
|
}), H("mousedown", i, (e) => e.preventDefault()), H("click", i, (e) => {
|
|
@@ -9088,7 +9122,7 @@ function od(e, t) {
|
|
|
9088
9122
|
});
|
|
9089
9123
|
}
|
|
9090
9124
|
}, p = (e) => {
|
|
9091
|
-
var t =
|
|
9125
|
+
var t = fl();
|
|
9092
9126
|
Pn(t), vi(t, (e) => B(Rt)?.(e)), R((e) => Hi(t, e), [() => String(n.editingCell?.value ?? "")]), H("pointerdown", t, (e) => e.stopPropagation()), H("input", t, (e) => B(It)(e.currentTarget.value)), H("keydown", t, (e) => {
|
|
9093
9127
|
if (e.stopPropagation(), e.key === "Escape") {
|
|
9094
9128
|
e.preventDefault(), n.editingCell = null, n.gridRootEl?.focus({ preventScroll: !0 });
|
|
@@ -9098,12 +9132,12 @@ function od(e, t) {
|
|
|
9098
9132
|
}), V("blur", t, () => B(Ft)()), K(e, t);
|
|
9099
9133
|
}, m = (e) => {
|
|
9100
9134
|
let i = /* @__PURE__ */ M(() => B(lt)(t(), r())), a = /* @__PURE__ */ M(() => String(n.editingCell?.value ?? "")), o = /* @__PURE__ */ M(() => B(a).trim() ? B(i).filter((e) => String(e.label).toLowerCase().includes(B(a).toLowerCase())) : B(i));
|
|
9101
|
-
var s =
|
|
9135
|
+
var s = hl(), c = F(s);
|
|
9102
9136
|
Vi(c), vi(c, (e) => B(Rt)?.(e));
|
|
9103
9137
|
var l = L(c, 2), u = (e) => {
|
|
9104
|
-
var t =
|
|
9138
|
+
var t = ml();
|
|
9105
9139
|
Y(t, 21, () => B(o).slice(0, 50), (e) => e.value, (e, t) => {
|
|
9106
|
-
var r =
|
|
9140
|
+
var r = pl(), i = F(r, !0);
|
|
9107
9141
|
A(r), R((e) => {
|
|
9108
9142
|
Q(r, "aria-selected", e), q(i, B(t).label);
|
|
9109
9143
|
}, [() => String(B(t).value) === B(a)]), H("mousedown", r, (e) => {
|
|
@@ -9120,7 +9154,7 @@ function od(e, t) {
|
|
|
9120
9154
|
B(Lt)?.apply(this, e);
|
|
9121
9155
|
}), K(e, s);
|
|
9122
9156
|
}, h = (e) => {
|
|
9123
|
-
var t =
|
|
9157
|
+
var t = gl();
|
|
9124
9158
|
Vi(t), vi(t, (e) => B(Rt)?.(e)), R((e, n) => {
|
|
9125
9159
|
X(t, 1, e), Hi(t, n);
|
|
9126
9160
|
}, [() => Si(ro("color")), () => Za("color", n.editingCell?.value)]), H("input", t, (e) => B(It)(e.currentTarget.value)), H("change", t, (e) => {
|
|
@@ -9129,7 +9163,7 @@ function od(e, t) {
|
|
|
9129
9163
|
B(Lt)?.apply(this, e);
|
|
9130
9164
|
}), K(e, t);
|
|
9131
9165
|
}, g = (e) => {
|
|
9132
|
-
var t =
|
|
9166
|
+
var t = _l();
|
|
9133
9167
|
Vi(t), vi(t, (e) => B(Rt)?.(e)), R((e, n, r) => {
|
|
9134
9168
|
X(t, 1, e), Q(t, "type", n), Hi(t, r);
|
|
9135
9169
|
}, [
|
|
@@ -9146,13 +9180,13 @@ function od(e, t) {
|
|
|
9146
9180
|
}, O = (e, t = de, r = de) => {
|
|
9147
9181
|
let i = /* @__PURE__ */ M(() => t().columnDef.editorType ?? "text"), a = /* @__PURE__ */ M(() => B(Ge)?.draft[t().id]);
|
|
9148
9182
|
var o = G(), s = I(o), c = (e) => {
|
|
9149
|
-
var r =
|
|
9183
|
+
var r = vl();
|
|
9150
9184
|
Vi(r), R((e) => Ui(r, e), [() => !!B(a)]), H("change", r, (e) => n.setFullRowDraft(t().id, e.currentTarget.checked)), H("keydown", r, Ke), H("pointerdown", r, (e) => e.stopPropagation()), H("click", r, (e) => e.stopPropagation()), K(e, r);
|
|
9151
9185
|
}, l = (e) => {
|
|
9152
9186
|
let i = /* @__PURE__ */ M(() => B(lt)(t(), r()));
|
|
9153
|
-
var o =
|
|
9187
|
+
var o = bl();
|
|
9154
9188
|
Y(o, 21, () => B(i), (e) => qe(e), (e, t) => {
|
|
9155
|
-
var n =
|
|
9189
|
+
var n = yl(), r = F(n, !0);
|
|
9156
9190
|
A(n);
|
|
9157
9191
|
var i = {};
|
|
9158
9192
|
R((e, t) => {
|
|
@@ -9165,7 +9199,7 @@ function od(e, t) {
|
|
|
9165
9199
|
}, [() => String(B(a) ?? "")]), H("change", o, (e) => n.setFullRowDraft(t().id, e.currentTarget.value)), H("keydown", o, Ke), H("pointerdown", o, (e) => e.stopPropagation()), H("click", o, (e) => e.stopPropagation()), K(e, o);
|
|
9166
9200
|
}, u = (e) => {
|
|
9167
9201
|
let r = /* @__PURE__ */ M(() => B(i) === "number" ? "number" : B(i) === "date" ? "date" : B(i) === "datetime" ? "datetime-local" : B(i) === "time" ? "time" : B(i) === "password" ? "password" : "text");
|
|
9168
|
-
var o =
|
|
9202
|
+
var o = xl();
|
|
9169
9203
|
Vi(o), R((e) => {
|
|
9170
9204
|
Q(o, "type", B(r)), Hi(o, e);
|
|
9171
9205
|
}, [() => String(B(a) ?? "")]), H("input", o, (e) => n.setFullRowDraft(t().id, e.currentTarget.value)), H("keydown", o, Ke), H("pointerdown", o, (e) => e.stopPropagation()), H("click", o, (e) => e.stopPropagation()), K(e, o);
|
|
@@ -9202,11 +9236,11 @@ function od(e, t) {
|
|
|
9202
9236
|
});
|
|
9203
9237
|
}
|
|
9204
9238
|
}, c = (e) => {
|
|
9205
|
-
var t =
|
|
9239
|
+
var t = wl();
|
|
9206
9240
|
Q(t, "tabindex", -1);
|
|
9207
9241
|
var a = F(t), o = F(a);
|
|
9208
9242
|
Y(o, 19, i, (e, t) => String(e) + "_" + t, (e, t, a) => {
|
|
9209
|
-
var o =
|
|
9243
|
+
var o = Sl(), s = F(o), c = L(s);
|
|
9210
9244
|
A(o), R((e, t) => {
|
|
9211
9245
|
q(s, `${e ?? ""} `), Q(c, "aria-label", `Remove ${t ?? ""}`);
|
|
9212
9246
|
}, [() => String(B(t)), () => String(B(t))]), H("mousedown", c, (e) => e.preventDefault()), H("click", c, () => {
|
|
@@ -9220,7 +9254,7 @@ function od(e, t) {
|
|
|
9220
9254
|
var s = L(o, 2);
|
|
9221
9255
|
vi(s, (e) => B(Rt)?.(e));
|
|
9222
9256
|
var c = L(s, 2), l = (e) => {
|
|
9223
|
-
var t =
|
|
9257
|
+
var t = Cl();
|
|
9224
9258
|
H("mousedown", t, (e) => e.preventDefault()), H("click", t, () => B(Ft)()), K(e, t);
|
|
9225
9259
|
};
|
|
9226
9260
|
J(c, (e) => {
|
|
@@ -9252,7 +9286,7 @@ function od(e, t) {
|
|
|
9252
9286
|
}), K(e, a);
|
|
9253
9287
|
}, ye = (e, t = de) => {
|
|
9254
9288
|
let n = /* @__PURE__ */ M(() => B(De)[t().depth] ?? ""), r = /* @__PURE__ */ M(() => B(T).find((e) => e.id === B(n))), i = /* @__PURE__ */ M(() => typeof B(r)?.columnDef.header == "string" ? B(r).columnDef.header : B(n)), a = /* @__PURE__ */ M(() => t().getCellValueByColumnId(B(n))), o = /* @__PURE__ */ M(() => B(r) ? B(dt)(B(r), B(a), t()) : String(B(a) ?? "")), s = /* @__PURE__ */ M(() => t().leafCount ?? t().subRows?.length ?? 0);
|
|
9255
|
-
var c =
|
|
9289
|
+
var c = El(), l = F(c), u = F(l, !0);
|
|
9256
9290
|
A(l);
|
|
9257
9291
|
var d = L(l, 2), f = F(d);
|
|
9258
9292
|
A(d);
|
|
@@ -9261,7 +9295,7 @@ function od(e, t) {
|
|
|
9261
9295
|
var i = G(), a = I(i), o = (e) => {
|
|
9262
9296
|
let n = /* @__PURE__ */ M(() => t().getCellValueByColumnId(B(r).id));
|
|
9263
9297
|
var i = G(), a = I(i), o = (e) => {
|
|
9264
|
-
var i =
|
|
9298
|
+
var i = Tl(), a = F(i), o = F(a, !0);
|
|
9265
9299
|
A(a);
|
|
9266
9300
|
var s = L(a);
|
|
9267
9301
|
A(i), R((e) => {
|
|
@@ -9285,11 +9319,11 @@ function od(e, t) {
|
|
|
9285
9319
|
e.stopPropagation(), t().toggleExpanded?.();
|
|
9286
9320
|
}), K(e, c);
|
|
9287
9321
|
}, ft = (e, n = de, r = de) => {
|
|
9288
|
-
var i =
|
|
9322
|
+
var i = Dl();
|
|
9289
9323
|
qi(i, (e) => ({
|
|
9290
9324
|
class: "sv-grid-row sv-grid-detail-row",
|
|
9291
9325
|
...e
|
|
9292
|
-
}), [() =>
|
|
9326
|
+
}), [() => nm(r() + 1)]);
|
|
9293
9327
|
var a = F(i), o = F(a), s = (e) => {
|
|
9294
9328
|
var i = G();
|
|
9295
9329
|
oi(I(i), () => t.renderDetailRow, () => ({
|
|
@@ -9301,8 +9335,8 @@ function od(e, t) {
|
|
|
9301
9335
|
t.renderDetailRow && e(s);
|
|
9302
9336
|
}), A(a), A(i), R(() => Q(a, "colspan", B(T).length + +!!B(f) + +!!B(C))), K(e, i);
|
|
9303
9337
|
}, pt = (e, t = de, n = de, r = de) => {
|
|
9304
|
-
var i =
|
|
9305
|
-
var t =
|
|
9338
|
+
var i = Nl(), a = F(i), o = (e) => {
|
|
9339
|
+
var t = Ol(), r = F(t, !0);
|
|
9306
9340
|
A(t), R(() => {
|
|
9307
9341
|
Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`), q(r, n() === "top" ? "↑" : "↓");
|
|
9308
9342
|
}), K(e, t);
|
|
@@ -9311,14 +9345,14 @@ function od(e, t) {
|
|
|
9311
9345
|
B(f) && e(o);
|
|
9312
9346
|
});
|
|
9313
9347
|
var s = L(a), c = (e) => {
|
|
9314
|
-
var t =
|
|
9348
|
+
var t = kl();
|
|
9315
9349
|
R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
|
|
9316
9350
|
};
|
|
9317
9351
|
J(s, (e) => {
|
|
9318
9352
|
B(C) && e(c);
|
|
9319
9353
|
});
|
|
9320
9354
|
var l = L(s), p = (e) => {
|
|
9321
|
-
var t =
|
|
9355
|
+
var t = Al();
|
|
9322
9356
|
R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
|
|
9323
9357
|
};
|
|
9324
9358
|
J(l, (e) => {
|
|
@@ -9327,7 +9361,7 @@ function od(e, t) {
|
|
|
9327
9361
|
var m = L(l);
|
|
9328
9362
|
Y(m, 17, () => B(Ve), (e) => e.column.id, (e, n) => {
|
|
9329
9363
|
let r = /* @__PURE__ */ M(() => B(mt)(t(), B(n).column)), i = /* @__PURE__ */ M(() => B(gt)(t(), B(n).column));
|
|
9330
|
-
var a =
|
|
9364
|
+
var a = jl(), o = F(a, !0);
|
|
9331
9365
|
A(a), R((e, t, r) => {
|
|
9332
9366
|
X(a, 1, `sv-grid-cell ${B(i)}`), Q(a, "data-col-id", B(n).column.id), Q(a, "data-pinned", e), Z(a, t), q(o, r);
|
|
9333
9367
|
}, [
|
|
@@ -9337,7 +9371,7 @@ function od(e, t) {
|
|
|
9337
9371
|
]), K(e, a);
|
|
9338
9372
|
});
|
|
9339
9373
|
var h = L(m), g = (e) => {
|
|
9340
|
-
var t =
|
|
9374
|
+
var t = Ml();
|
|
9341
9375
|
R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
|
|
9342
9376
|
};
|
|
9343
9377
|
J(h, (e) => {
|
|
@@ -9346,17 +9380,17 @@ function od(e, t) {
|
|
|
9346
9380
|
X(i, 1, `sv-grid-row sv-grid-pinned-row sv-grid-pinned-row-${n()}`), Q(i, "data-pinned-row", n()), Q(i, "data-pinned-index", r());
|
|
9347
9381
|
}), K(e, i);
|
|
9348
9382
|
};
|
|
9349
|
-
var j =
|
|
9383
|
+
var j = od(), jt = I(j);
|
|
9350
9384
|
let tn;
|
|
9351
9385
|
var nn = F(jt), rn = (e) => {
|
|
9352
|
-
var t =
|
|
9386
|
+
var t = Pl(), r = L(F(t));
|
|
9353
9387
|
Vi(r), A(t), Zi(r, () => n.globalFilter, (e) => n.globalFilter = e), K(e, t);
|
|
9354
9388
|
};
|
|
9355
9389
|
J(nn, (e) => {
|
|
9356
9390
|
B(b) && e(rn);
|
|
9357
9391
|
});
|
|
9358
9392
|
var an = L(nn, 2), on = (e) => {
|
|
9359
|
-
var t =
|
|
9393
|
+
var t = Fl(), r = F(t);
|
|
9360
9394
|
let i;
|
|
9361
9395
|
A(t), R(() => {
|
|
9362
9396
|
i = X(r, 1, "sv-grid-toolbar-btn", null, i, { "is-active": n.toolPanelOpen }), Q(r, "aria-label", n.toolPanelOpen ? "Close tool panel" : "Open tool panel (columns & filters)"), Q(r, "aria-expanded", n.toolPanelOpen);
|
|
@@ -9365,52 +9399,54 @@ function od(e, t) {
|
|
|
9365
9399
|
J(an, (e) => {
|
|
9366
9400
|
B(ke) && e(on);
|
|
9367
9401
|
});
|
|
9368
|
-
var sn = L(an, 2), cn = F(sn)
|
|
9369
|
-
|
|
9402
|
+
var sn = L(an, 2), cn = F(sn);
|
|
9403
|
+
let ln;
|
|
9404
|
+
var un = F(cn);
|
|
9405
|
+
qi(un, (e) => ({
|
|
9370
9406
|
class: "sv-grid-table",
|
|
9371
9407
|
...e,
|
|
9372
9408
|
onkeydown: B(Bt),
|
|
9373
9409
|
onpaste: B(Vt),
|
|
9374
9410
|
style: `min-width: ${B(He)}px;`
|
|
9375
|
-
}), [() =>
|
|
9411
|
+
}), [() => em({
|
|
9376
9412
|
activeDescendantId: B(Qe),
|
|
9377
9413
|
rowCount: B(Oe).length,
|
|
9378
9414
|
colCount: B(T).length
|
|
9379
9415
|
})]);
|
|
9380
|
-
var
|
|
9381
|
-
Y(
|
|
9382
|
-
var i =
|
|
9416
|
+
var dn = F(un), fn = F(dn);
|
|
9417
|
+
Y(fn, 17, () => B(ee), (e) => e.id, (e, r) => {
|
|
9418
|
+
var i = Vl();
|
|
9383
9419
|
qi(i, (e) => ({
|
|
9384
9420
|
class: "sv-grid-row sv-grid-header-row sv-grid-group-header-row",
|
|
9385
9421
|
...e,
|
|
9386
9422
|
style: t.headerHeight ? `height: ${t.headerHeight}px;` : void 0
|
|
9387
|
-
}), [() =>
|
|
9423
|
+
}), [() => nm()]);
|
|
9388
9424
|
var a = F(i), o = (e) => {
|
|
9389
|
-
var t =
|
|
9425
|
+
var t = Il();
|
|
9390
9426
|
R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
|
|
9391
9427
|
};
|
|
9392
9428
|
J(a, (e) => {
|
|
9393
9429
|
B(f) && e(o);
|
|
9394
9430
|
});
|
|
9395
9431
|
var s = L(a), c = (e) => {
|
|
9396
|
-
var t =
|
|
9432
|
+
var t = Ll();
|
|
9397
9433
|
R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
|
|
9398
9434
|
};
|
|
9399
9435
|
J(s, (e) => {
|
|
9400
9436
|
B(C) && e(c);
|
|
9401
9437
|
}), Y(L(s), 17, () => B(r).cells, (e) => e.key, (e, t) => {
|
|
9402
|
-
var r =
|
|
9438
|
+
var r = Bl();
|
|
9403
9439
|
let i;
|
|
9404
9440
|
var a = F(r), o = (e) => {
|
|
9405
9441
|
var r = G(), i = I(r), a = (e) => {
|
|
9406
|
-
var r =
|
|
9442
|
+
var r = Rl();
|
|
9407
9443
|
let i;
|
|
9408
9444
|
var a = F(r), o = F(a, !0);
|
|
9409
9445
|
A(a), nt(2), A(r), R(() => {
|
|
9410
9446
|
i = X(r, 1, "sv-grid-group-toggle", null, i, { "is-collapsed": B(t).collapsed }), Q(r, "aria-expanded", !B(t).collapsed), Q(r, "aria-label", B(t).collapsed ? `Expand ${B(t).label}` : `Collapse ${B(t).label}`), Q(r, "title", B(t).collapsed ? "Expand group" : "Collapse group"), q(o, B(t).label);
|
|
9411
9447
|
}), H("click", r, () => n.toggleColumnGroup(B(t).groupId)), K(e, r);
|
|
9412
9448
|
}, o = (e) => {
|
|
9413
|
-
var n =
|
|
9449
|
+
var n = zl(), r = F(n, !0);
|
|
9414
9450
|
A(n), R(() => q(r, B(t).label)), K(e, n);
|
|
9415
9451
|
};
|
|
9416
9452
|
J(i, (e) => {
|
|
@@ -9423,22 +9459,22 @@ function od(e, t) {
|
|
|
9423
9459
|
i = X(r, 1, "sv-grid-column sv-grid-group-header-cell", null, i, { "sv-grid-group-header-placeholder": B(t).isPlaceholder }), Q(r, "colspan", B(t).colSpan), Z(r, `width: ${B(t).widthPx}px; min-width: ${B(t).widthPx}px; max-width: ${B(t).widthPx}px;`);
|
|
9424
9460
|
}), K(e, r);
|
|
9425
9461
|
}), A(i), K(e, i);
|
|
9426
|
-
}), Y(L(
|
|
9427
|
-
var a =
|
|
9462
|
+
}), Y(L(fn), 17, () => B(E), (e) => e.id, (e, n) => {
|
|
9463
|
+
var a = fu(), o = I(a);
|
|
9428
9464
|
qi(o, (e) => ({
|
|
9429
9465
|
class: "sv-grid-row sv-grid-header-row",
|
|
9430
9466
|
...e,
|
|
9431
9467
|
style: t.headerHeight ? `height: ${t.headerHeight}px;` : void 0
|
|
9432
|
-
}), [() =>
|
|
9468
|
+
}), [() => nm()]);
|
|
9433
9469
|
var s = F(o), c = (e) => {
|
|
9434
|
-
var t =
|
|
9470
|
+
var t = Hl();
|
|
9435
9471
|
R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
|
|
9436
9472
|
};
|
|
9437
9473
|
J(s, (e) => {
|
|
9438
9474
|
B(f) && e(c);
|
|
9439
9475
|
});
|
|
9440
9476
|
var g = L(s), _ = (e) => {
|
|
9441
|
-
var t =
|
|
9477
|
+
var t = Ul(), n = F(t);
|
|
9442
9478
|
A(t), R(() => {
|
|
9443
9479
|
Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`), Q(n, "aria-checked", B(yt) === "all" ? "true" : B(yt) === "some" ? "mixed" : "false");
|
|
9444
9480
|
}), H("click", n, function(...e) {
|
|
@@ -9449,7 +9485,7 @@ function od(e, t) {
|
|
|
9449
9485
|
B(C) && e(_);
|
|
9450
9486
|
});
|
|
9451
9487
|
var v = L(g), y = (e) => {
|
|
9452
|
-
var t =
|
|
9488
|
+
var t = Wl();
|
|
9453
9489
|
R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
|
|
9454
9490
|
};
|
|
9455
9491
|
J(v, (e) => {
|
|
@@ -9460,7 +9496,7 @@ function od(e, t) {
|
|
|
9460
9496
|
let i = /* @__PURE__ */ M(() => B(n).headers[B(r).item.index]);
|
|
9461
9497
|
var a = G(), o = I(a), s = (e) => {
|
|
9462
9498
|
let n = /* @__PURE__ */ M(() => B(Ee)[B(i).column.id]), a = /* @__PURE__ */ M(() => B(De).includes(B(i).column.id));
|
|
9463
|
-
var o =
|
|
9499
|
+
var o = nu(), s = (e) => (t.enableColumnReorder ?? !1) && B(oe)(e, B(i).column.id), c = (e) => (t.enableColumnReorder ?? !1) && B(se)(e, B(i).column.id), u = () => (t.enableColumnReorder ?? !1) && B(D)(B(i).column.id), d = (e) => (t.enableColumnReorder ?? !1) && B(ce)(e, B(i).column.id), f = () => (t.enableColumnReorder ?? !1) && B(le)();
|
|
9464
9500
|
qi(o, (e, n, r, a) => ({
|
|
9465
9501
|
class: "sv-grid-column",
|
|
9466
9502
|
"data-svgrid-header-col": B(i).column.id,
|
|
@@ -9483,15 +9519,15 @@ function od(e, t) {
|
|
|
9483
9519
|
() => B(ct)(B(r).column),
|
|
9484
9520
|
() => B(ne)(B(r).column.id) ?? void 0,
|
|
9485
9521
|
() => `width: ${B(r).item.size}px; min-width: ${B(r).item.size}px; max-width: ${B(r).item.size}px; ${B(te)(B(r).column.id)}`,
|
|
9486
|
-
() =>
|
|
9522
|
+
() => tm({
|
|
9487
9523
|
sortable: B(i).column.getCanSort(),
|
|
9488
9524
|
sortDirection: B(n) === "asc" ? "ascending" : B(n) === "desc" ? "descending" : "none"
|
|
9489
9525
|
})
|
|
9490
9526
|
]);
|
|
9491
9527
|
var h = F(o), g = (e) => {
|
|
9492
|
-
var t =
|
|
9528
|
+
var t = tu(), r = I(t), o = F(r), s = (e) => {
|
|
9493
9529
|
let t = /* @__PURE__ */ M(() => B(i).column.columnDef.header(B(i).getContext()));
|
|
9494
|
-
var r =
|
|
9530
|
+
var r = ql(), a = F(r), o = (e) => {
|
|
9495
9531
|
var n = G();
|
|
9496
9532
|
oi(I(n), () => B(t).snippet, () => B(t).params), K(e, n);
|
|
9497
9533
|
}, s = (e) => {
|
|
@@ -9511,10 +9547,10 @@ function od(e, t) {
|
|
|
9511
9547
|
});
|
|
9512
9548
|
var u = L(a, 2), d = (e) => {
|
|
9513
9549
|
var t = G(), r = I(t), i = (e) => {
|
|
9514
|
-
var t =
|
|
9550
|
+
var t = Gl();
|
|
9515
9551
|
fe(F(t), () => "sort-asc"), A(t), K(e, t);
|
|
9516
9552
|
}, a = (e) => {
|
|
9517
|
-
var t =
|
|
9553
|
+
var t = Kl();
|
|
9518
9554
|
fe(F(t), () => "sort-desc"), A(t), K(e, t);
|
|
9519
9555
|
};
|
|
9520
9556
|
J(r, (e) => {
|
|
@@ -9531,17 +9567,17 @@ function od(e, t) {
|
|
|
9531
9567
|
e.key !== "Enter" && e.key !== " " || B(i).column.getCanSort() && (e.preventDefault(), B(zt)(e, B(i).column.id));
|
|
9532
9568
|
}), K(e, r);
|
|
9533
9569
|
}, c = (e) => {
|
|
9534
|
-
var t =
|
|
9570
|
+
var t = Zl(), r = F(t), a = F(r, !0);
|
|
9535
9571
|
A(r);
|
|
9536
9572
|
var o = L(r, 2), s = (e) => {
|
|
9537
9573
|
var t = G(), r = I(t), i = (e) => {
|
|
9538
|
-
var t =
|
|
9574
|
+
var t = Jl();
|
|
9539
9575
|
fe(F(t), () => "sort-asc"), A(t), K(e, t);
|
|
9540
9576
|
}, a = (e) => {
|
|
9541
|
-
var t =
|
|
9577
|
+
var t = Yl();
|
|
9542
9578
|
fe(F(t), () => "sort-desc"), A(t), K(e, t);
|
|
9543
9579
|
}, o = (e) => {
|
|
9544
|
-
var t =
|
|
9580
|
+
var t = Xl();
|
|
9545
9581
|
fe(F(t), () => "sort"), A(t), K(e, t);
|
|
9546
9582
|
};
|
|
9547
9583
|
J(r, (e) => {
|
|
@@ -9556,14 +9592,14 @@ function od(e, t) {
|
|
|
9556
9592
|
typeof B(i).column.columnDef.header == "function" ? e(s) : e(c, -1);
|
|
9557
9593
|
});
|
|
9558
9594
|
var u = L(o, 2), d = (e) => {
|
|
9559
|
-
var t =
|
|
9595
|
+
var t = Ql();
|
|
9560
9596
|
fe(F(t), () => "group"), A(t), K(e, t);
|
|
9561
9597
|
};
|
|
9562
9598
|
J(u, (e) => {
|
|
9563
9599
|
B(a) && e(d);
|
|
9564
9600
|
});
|
|
9565
9601
|
var f = L(u, 2), h = (e) => {
|
|
9566
|
-
var t =
|
|
9602
|
+
var t = $l();
|
|
9567
9603
|
let n;
|
|
9568
9604
|
fe(F(t), () => "filter"), A(t), R((e) => n = X(t, 1, "sv-grid-col-menu-btn sv-grid-col-filter-btn", null, n, e), [() => ({
|
|
9569
9605
|
"is-open": B(m) === B(i).column.id,
|
|
@@ -9577,7 +9613,7 @@ function od(e, t) {
|
|
|
9577
9613
|
let v;
|
|
9578
9614
|
fe(F(_), () => "menu"), A(_), A(r);
|
|
9579
9615
|
var y = L(r, 2), b = (e) => {
|
|
9580
|
-
var t =
|
|
9616
|
+
var t = eu();
|
|
9581
9617
|
H("input", t, (e) => {
|
|
9582
9618
|
let t = e.currentTarget.value;
|
|
9583
9619
|
B(w).setColumnFilters((e) => [...e.filter((e) => e.id !== B(i).column.id), ...t ? [{
|
|
@@ -9605,31 +9641,31 @@ function od(e, t) {
|
|
|
9605
9641
|
}), K(e, a);
|
|
9606
9642
|
});
|
|
9607
9643
|
var T = L(b), E = (e) => {
|
|
9608
|
-
var t =
|
|
9644
|
+
var t = ru();
|
|
9609
9645
|
R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
|
|
9610
9646
|
};
|
|
9611
9647
|
J(T, (e) => {
|
|
9612
9648
|
B(Ie) && B(Ze) > 0 && e(E);
|
|
9613
9649
|
}), A(o);
|
|
9614
9650
|
var ee = L(o, 2), ue = (e) => {
|
|
9615
|
-
var t =
|
|
9616
|
-
qi(t, (e) => ({ ...e }), [() =>
|
|
9651
|
+
var t = du();
|
|
9652
|
+
qi(t, (e) => ({ ...e }), [() => nm()]);
|
|
9617
9653
|
var n = F(t), a = (e) => {
|
|
9618
|
-
var t =
|
|
9654
|
+
var t = iu();
|
|
9619
9655
|
R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
|
|
9620
9656
|
};
|
|
9621
9657
|
J(n, (e) => {
|
|
9622
9658
|
B(f) && e(a);
|
|
9623
9659
|
});
|
|
9624
9660
|
var o = L(n), s = (e) => {
|
|
9625
|
-
var t =
|
|
9661
|
+
var t = au();
|
|
9626
9662
|
R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
|
|
9627
9663
|
};
|
|
9628
9664
|
J(o, (e) => {
|
|
9629
9665
|
B(C) && e(s);
|
|
9630
9666
|
});
|
|
9631
9667
|
var c = L(o), l = (e) => {
|
|
9632
|
-
var t =
|
|
9668
|
+
var t = ou();
|
|
9633
9669
|
R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
|
|
9634
9670
|
};
|
|
9635
9671
|
J(c, (e) => {
|
|
@@ -9638,7 +9674,7 @@ function od(e, t) {
|
|
|
9638
9674
|
var p = L(c);
|
|
9639
9675
|
Y(p, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
|
|
9640
9676
|
let n = /* @__PURE__ */ M(() => B(i)[B(t).column.id]?.operator ?? B(Xt)(B(t).column));
|
|
9641
|
-
var a =
|
|
9677
|
+
var a = lu(), o = F(a), s = F(o);
|
|
9642
9678
|
let c;
|
|
9643
9679
|
var l = F(s), u = F(l);
|
|
9644
9680
|
{
|
|
@@ -9650,10 +9686,10 @@ function od(e, t) {
|
|
|
9650
9686
|
fe(F(d), () => "chevron-down"), A(d), A(s);
|
|
9651
9687
|
var f = L(s, 2), p = (e) => {
|
|
9652
9688
|
let a = /* @__PURE__ */ M(() => Qa(B(t).column.columnDef.editorType ?? "text"));
|
|
9653
|
-
var o =
|
|
9689
|
+
var o = cu(), s = I(o);
|
|
9654
9690
|
Vi(s);
|
|
9655
9691
|
var c = L(s, 2), l = (e) => {
|
|
9656
|
-
var n =
|
|
9692
|
+
var n = su();
|
|
9657
9693
|
Vi(n), R(() => {
|
|
9658
9694
|
Q(n, "type", B(a)), Hi(n, B(i)[B(t).column.id]?.valueTo ?? "");
|
|
9659
9695
|
}), H("input", n, (e) => B(Wt)(B(t).column.id, e.currentTarget.value)), K(e, n);
|
|
@@ -9676,7 +9712,7 @@ function od(e, t) {
|
|
|
9676
9712
|
]), H("click", s, (e) => B(en)(e, B(t).column.id)), K(e, a);
|
|
9677
9713
|
});
|
|
9678
9714
|
var m = L(p), g = (e) => {
|
|
9679
|
-
var t =
|
|
9715
|
+
var t = uu();
|
|
9680
9716
|
R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
|
|
9681
9717
|
};
|
|
9682
9718
|
J(m, (e) => {
|
|
@@ -9686,24 +9722,24 @@ function od(e, t) {
|
|
|
9686
9722
|
J(ee, (e) => {
|
|
9687
9723
|
B(x) && e(ue);
|
|
9688
9724
|
}), K(e, a);
|
|
9689
|
-
}), A(
|
|
9690
|
-
var
|
|
9691
|
-
var n =
|
|
9725
|
+
}), A(dn), ta(dn, (e) => n.theadEl = e, () => n?.theadEl);
|
|
9726
|
+
var pn = L(dn), N = (e) => {
|
|
9727
|
+
var n = pu();
|
|
9692
9728
|
Y(n, 21, () => t.pinnedTopRows, si, (e, t, n) => {
|
|
9693
9729
|
pt(e, () => B(t), () => "top", () => n);
|
|
9694
9730
|
}), A(n), K(e, n);
|
|
9695
9731
|
};
|
|
9696
|
-
J(
|
|
9697
|
-
t.pinnedTopRows && t.pinnedTopRows.length > 0 && e(
|
|
9732
|
+
J(pn, (e) => {
|
|
9733
|
+
t.pinnedTopRows && t.pinnedTopRows.length > 0 && e(N);
|
|
9698
9734
|
});
|
|
9699
|
-
var
|
|
9700
|
-
var n =
|
|
9735
|
+
var mn = L(pn), P = F(mn), hn = (e) => {
|
|
9736
|
+
var n = mu(), r = F(n), i = F(r, !0);
|
|
9701
9737
|
A(r), A(n), R(() => {
|
|
9702
9738
|
Q(r, "colspan", B(T).length + +!!B(f) + +!!B(C)), q(i, t.emptyMessage ?? "No rows to display.");
|
|
9703
9739
|
}), K(e, n);
|
|
9704
|
-
},
|
|
9705
|
-
var r =
|
|
9706
|
-
var t =
|
|
9740
|
+
}, gn = (e) => {
|
|
9741
|
+
var r = Eu(), i = I(r), s = (e) => {
|
|
9742
|
+
var t = hu(), n = F(t);
|
|
9707
9743
|
A(t), R(() => {
|
|
9708
9744
|
Z(n, `height: ${B(Re)}px; padding: 0; border: 0;`), Q(n, "colspan", B(T).length + +!!B(f) + +!!B(C));
|
|
9709
9745
|
}), K(e, t);
|
|
@@ -9718,7 +9754,7 @@ function od(e, t) {
|
|
|
9718
9754
|
var c = G(), l = I(c), p = (e) => {
|
|
9719
9755
|
ft(e, () => B(s), () => B(i));
|
|
9720
9756
|
}, m = /* @__PURE__ */ M(() => t.isDetailRow?.(B(s).original, B(i))), h = (e) => {
|
|
9721
|
-
var t =
|
|
9757
|
+
var t = gu();
|
|
9722
9758
|
qi(t, (e, t, n) => ({
|
|
9723
9759
|
class: "sv-grid-row sv-grid-group-row",
|
|
9724
9760
|
"aria-level": B(s).depth + 1,
|
|
@@ -9728,7 +9764,7 @@ function od(e, t) {
|
|
|
9728
9764
|
[Mi]: n
|
|
9729
9765
|
}), [
|
|
9730
9766
|
() => B(s).getIsExpanded?.() ? "true" : "false",
|
|
9731
|
-
() =>
|
|
9767
|
+
() => nm(B(i) + 1),
|
|
9732
9768
|
() => ({ "sv-grid-row-selected": B(_t)(B(s).id) })
|
|
9733
9769
|
]);
|
|
9734
9770
|
var n = F(t);
|
|
@@ -9738,7 +9774,7 @@ function od(e, t) {
|
|
|
9738
9774
|
}), H("click", n, () => B(s).toggleExpanded?.()), K(e, t);
|
|
9739
9775
|
}, g = /* @__PURE__ */ M(() => B(Te)(B(s))), _ = (e) => {
|
|
9740
9776
|
let c = /* @__PURE__ */ M(() => B(rt)(B(s), B(i)));
|
|
9741
|
-
var l =
|
|
9777
|
+
var l = wu();
|
|
9742
9778
|
qi(l, (e, t, n, i) => ({
|
|
9743
9779
|
class: e,
|
|
9744
9780
|
...t,
|
|
@@ -9747,7 +9783,7 @@ function od(e, t) {
|
|
|
9747
9783
|
[Mi]: i
|
|
9748
9784
|
}), [
|
|
9749
9785
|
() => `sv-grid-row ${B(c)} ${xe(B(i))}`,
|
|
9750
|
-
() =>
|
|
9786
|
+
() => nm(B(i) + 1),
|
|
9751
9787
|
() => be(B(i)),
|
|
9752
9788
|
() => ({
|
|
9753
9789
|
"sv-grid-row-selected": B(_t)(B(s).id),
|
|
@@ -9756,7 +9792,7 @@ function od(e, t) {
|
|
|
9756
9792
|
})
|
|
9757
9793
|
]);
|
|
9758
9794
|
var p = F(l), m = (e) => {
|
|
9759
|
-
var t =
|
|
9795
|
+
var t = _u(), n = F(t, !0);
|
|
9760
9796
|
A(t), R(() => {
|
|
9761
9797
|
Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`), q(n, B(i) + 1);
|
|
9762
9798
|
}), K(e, t);
|
|
@@ -9765,7 +9801,7 @@ function od(e, t) {
|
|
|
9765
9801
|
B(f) && e(m);
|
|
9766
9802
|
});
|
|
9767
9803
|
var h = L(p), g = (e) => {
|
|
9768
|
-
var t =
|
|
9804
|
+
var t = vu(), n = F(t);
|
|
9769
9805
|
A(t), R((e) => {
|
|
9770
9806
|
Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`), Q(n, "aria-checked", e);
|
|
9771
9807
|
}, [() => B(_t)(B(s).id)]), H("click", t, () => B(vt)(B(s).id)), H("click", n, (e) => {
|
|
@@ -9778,7 +9814,7 @@ function od(e, t) {
|
|
|
9778
9814
|
B(C) && e(g);
|
|
9779
9815
|
});
|
|
9780
9816
|
var _ = L(h), v = (e) => {
|
|
9781
|
-
var t =
|
|
9817
|
+
var t = yu();
|
|
9782
9818
|
R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
|
|
9783
9819
|
};
|
|
9784
9820
|
J(_, (e) => {
|
|
@@ -9787,7 +9823,7 @@ function od(e, t) {
|
|
|
9787
9823
|
var y = L(_);
|
|
9788
9824
|
Y(y, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
|
|
9789
9825
|
let r = /* @__PURE__ */ M(() => B(t).item.index), c = /* @__PURE__ */ M(() => B(Se)(B(s), B(t).column)), l = /* @__PURE__ */ M(() => B(st)(B(s).id, B(t).column.id, B(c))), u = /* @__PURE__ */ M(() => n.editingCell?.rowId === B(s).id && n.editingCell?.columnId === B(t).column.id), d = /* @__PURE__ */ M(() => !!B(Ge) && B(Ge).rowId === B(s).id && B(t).column.id in B(Ge).draft), f = /* @__PURE__ */ M(() => B(Tt)(B(i), B(r))), p = /* @__PURE__ */ M(() => B(Et) && B(Et).rowIndex === B(i) && B(Et).colIndex === B(r)), m = /* @__PURE__ */ M(() => B(it)(B(s), B(t).column)), h = /* @__PURE__ */ M(() => B(ot)(B(s), B(t).column));
|
|
9790
|
-
var g =
|
|
9826
|
+
var g = Su(), _ = (e) => B(kt)(B(i), B(r), e), v = () => B(At)(B(i), B(r)), y = () => B(Nt)(B(i), B(r)), b = () => B(Mt)(B(i), B(r)), x = (e) => B(Pt)(e, B(i), B(r), B(t).column.id);
|
|
9791
9827
|
qi(g, (e, n, a, o, s) => ({
|
|
9792
9828
|
class: `sv-grid-cell ${B(m)}`,
|
|
9793
9829
|
"data-svgrid-row": B(i),
|
|
@@ -9820,8 +9856,8 @@ function od(e, t) {
|
|
|
9820
9856
|
() => B(ne)(B(t).column.id) ?? void 0,
|
|
9821
9857
|
() => B(Dt)(B(i), B(r)) ? "true" : void 0,
|
|
9822
9858
|
() => `width: ${B(t).item.size}px; min-width: ${B(t).item.size}px; max-width: ${B(t).item.size}px; ${B(te)(B(t).column.id)}`,
|
|
9823
|
-
() =>
|
|
9824
|
-
id:
|
|
9859
|
+
() => rm({
|
|
9860
|
+
id: im("svgrid", B(i), B(r)),
|
|
9825
9861
|
rowIndex: B(i) + 1,
|
|
9826
9862
|
colIndex: B(r) + 1,
|
|
9827
9863
|
selected: B(_t)(B(s).id)
|
|
@@ -9838,14 +9874,14 @@ function od(e, t) {
|
|
|
9838
9874
|
B(d) ? e(C) : B(u) ? e(w, 1) : e(T, -1);
|
|
9839
9875
|
});
|
|
9840
9876
|
var E = L(S, 2), ee = (e) => {
|
|
9841
|
-
var t =
|
|
9877
|
+
var t = bu();
|
|
9842
9878
|
Q(t, "tabindex", -1), H("pointerdown", t, (e) => B(Ot)(e, B(i), B(r))), K(e, t);
|
|
9843
9879
|
};
|
|
9844
9880
|
J(E, (e) => {
|
|
9845
9881
|
!B(u) && B(Et) && B(Et).rowIndex === B(i) && B(Et).colIndex === B(r) && e(ee);
|
|
9846
9882
|
});
|
|
9847
9883
|
var re = L(E, 2), ie = (e) => {
|
|
9848
|
-
var t =
|
|
9884
|
+
var t = xu();
|
|
9849
9885
|
V("pointerenter", t, (e) => {
|
|
9850
9886
|
e.stopPropagation(), B(a)(e.currentTarget, B(h));
|
|
9851
9887
|
}), V("pointerleave", t, (e) => {
|
|
@@ -9862,7 +9898,7 @@ function od(e, t) {
|
|
|
9862
9898
|
})), K(e, g);
|
|
9863
9899
|
});
|
|
9864
9900
|
var b = L(y), x = (e) => {
|
|
9865
|
-
var t =
|
|
9901
|
+
var t = Cu();
|
|
9866
9902
|
R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
|
|
9867
9903
|
};
|
|
9868
9904
|
J(b, (e) => {
|
|
@@ -9878,7 +9914,7 @@ function od(e, t) {
|
|
|
9878
9914
|
}), K(e, c);
|
|
9879
9915
|
});
|
|
9880
9916
|
var l = L(c, 2), p = (e) => {
|
|
9881
|
-
var t =
|
|
9917
|
+
var t = Tu(), n = F(t);
|
|
9882
9918
|
A(t), R(() => {
|
|
9883
9919
|
Z(n, `height: ${B(ze)}px; padding: 0; border: 0;`), Q(n, "colspan", B(T).length + +!!B(f) + +!!B(C));
|
|
9884
9920
|
}), K(e, t);
|
|
@@ -9886,13 +9922,13 @@ function od(e, t) {
|
|
|
9886
9922
|
J(l, (e) => {
|
|
9887
9923
|
B(ze) > 0 && e(p);
|
|
9888
9924
|
}), K(e, r);
|
|
9889
|
-
},
|
|
9925
|
+
}, _n = (e) => {
|
|
9890
9926
|
var r = G();
|
|
9891
9927
|
Y(I(r), 19, () => B(Oe), (e) => e.id, (e, r, i) => {
|
|
9892
9928
|
var s = G(), c = I(s), l = (e) => {
|
|
9893
9929
|
ft(e, () => B(r), () => B(i));
|
|
9894
9930
|
}, p = /* @__PURE__ */ M(() => t.isDetailRow?.(B(r).original, B(i))), m = (e) => {
|
|
9895
|
-
var t =
|
|
9931
|
+
var t = Du();
|
|
9896
9932
|
qi(t, (e, t, n) => ({
|
|
9897
9933
|
class: "sv-grid-row sv-grid-group-row",
|
|
9898
9934
|
"aria-level": B(r).depth + 1,
|
|
@@ -9901,7 +9937,7 @@ function od(e, t) {
|
|
|
9901
9937
|
[Mi]: n
|
|
9902
9938
|
}), [
|
|
9903
9939
|
() => B(r).getIsExpanded?.() ? "true" : "false",
|
|
9904
|
-
() =>
|
|
9940
|
+
() => nm(B(i) + 1),
|
|
9905
9941
|
() => ({ "sv-grid-row-selected": B(_t)(B(r).id) })
|
|
9906
9942
|
]);
|
|
9907
9943
|
var n = F(t);
|
|
@@ -9911,7 +9947,7 @@ function od(e, t) {
|
|
|
9911
9947
|
}), H("click", n, () => B(r).toggleExpanded?.()), K(e, t);
|
|
9912
9948
|
}, h = /* @__PURE__ */ M(() => B(Te)(B(r))), g = (e) => {
|
|
9913
9949
|
let s = /* @__PURE__ */ M(() => B(rt)(B(r), B(i)));
|
|
9914
|
-
var c =
|
|
9950
|
+
var c = Pu();
|
|
9915
9951
|
qi(c, (e, t, n, r) => ({
|
|
9916
9952
|
class: e,
|
|
9917
9953
|
...t,
|
|
@@ -9919,7 +9955,7 @@ function od(e, t) {
|
|
|
9919
9955
|
[Mi]: r
|
|
9920
9956
|
}), [
|
|
9921
9957
|
() => `sv-grid-row ${B(s)} ${xe(B(i))}`,
|
|
9922
|
-
() =>
|
|
9958
|
+
() => nm(B(i) + 1),
|
|
9923
9959
|
() => be(B(i)),
|
|
9924
9960
|
() => ({
|
|
9925
9961
|
"sv-grid-row-selected": B(_t)(B(r).id),
|
|
@@ -9928,7 +9964,7 @@ function od(e, t) {
|
|
|
9928
9964
|
})
|
|
9929
9965
|
]);
|
|
9930
9966
|
var l = F(c), p = (e) => {
|
|
9931
|
-
var t =
|
|
9967
|
+
var t = Ou(), n = F(t, !0);
|
|
9932
9968
|
A(t), R(() => {
|
|
9933
9969
|
Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`), q(n, B(i) + 1);
|
|
9934
9970
|
}), K(e, t);
|
|
@@ -9937,7 +9973,7 @@ function od(e, t) {
|
|
|
9937
9973
|
B(f) && e(p);
|
|
9938
9974
|
});
|
|
9939
9975
|
var m = L(l), h = (e) => {
|
|
9940
|
-
var t =
|
|
9976
|
+
var t = ku(), n = F(t);
|
|
9941
9977
|
A(t), R((e) => {
|
|
9942
9978
|
Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`), Q(n, "aria-checked", e);
|
|
9943
9979
|
}, [() => B(_t)(B(r).id)]), H("click", t, () => B(vt)(B(r).id)), H("click", n, (e) => {
|
|
@@ -9950,7 +9986,7 @@ function od(e, t) {
|
|
|
9950
9986
|
B(C) && e(h);
|
|
9951
9987
|
});
|
|
9952
9988
|
var g = L(m), _ = (e) => {
|
|
9953
|
-
var t =
|
|
9989
|
+
var t = Au();
|
|
9954
9990
|
R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
|
|
9955
9991
|
};
|
|
9956
9992
|
J(g, (e) => {
|
|
@@ -9959,7 +9995,7 @@ function od(e, t) {
|
|
|
9959
9995
|
var v = L(g);
|
|
9960
9996
|
Y(v, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
|
|
9961
9997
|
let s = /* @__PURE__ */ M(() => B(t).item.index), c = /* @__PURE__ */ M(() => B(Se)(B(r), B(t).column)), l = /* @__PURE__ */ M(() => B(st)(B(r).id, B(t).column.id, B(c))), u = /* @__PURE__ */ M(() => n.editingCell?.rowId === B(r).id && n.editingCell?.columnId === B(t).column.id), d = /* @__PURE__ */ M(() => !!B(Ge) && B(Ge).rowId === B(r).id && B(t).column.id in B(Ge).draft), f = /* @__PURE__ */ M(() => B(Tt)(B(i), B(s))), p = /* @__PURE__ */ M(() => B(it)(B(r), B(t).column)), m = /* @__PURE__ */ M(() => B(at)(B(r), B(t).column)), h = /* @__PURE__ */ M(() => B(ot)(B(r), B(t).column));
|
|
9962
|
-
var g =
|
|
9998
|
+
var g = Mu(), _ = (e) => B(kt)(B(i), B(s), e), v = (e) => {
|
|
9963
9999
|
B(At)(B(i), B(s)), B(m) && B(a)(e.currentTarget, B(m));
|
|
9964
10000
|
}, y = () => B(Nt)(B(i), B(s)), b = () => B(Mt)(B(i), B(s)), x = (e) => B(Pt)(e, B(i), B(s), B(t).column.id);
|
|
9965
10001
|
qi(g, (e, n, r) => ({
|
|
@@ -9990,8 +10026,8 @@ function od(e, t) {
|
|
|
9990
10026
|
}), [
|
|
9991
10027
|
() => B(ne)(B(t).column.id) ?? void 0,
|
|
9992
10028
|
() => `width: ${B(t).item.size}px; min-width: ${B(t).item.size}px; max-width: ${B(t).item.size}px; ${B(te)(B(t).column.id)}`,
|
|
9993
|
-
() =>
|
|
9994
|
-
id:
|
|
10029
|
+
() => rm({
|
|
10030
|
+
id: im("svgrid", B(i), B(s)),
|
|
9995
10031
|
rowIndex: B(i) + 1,
|
|
9996
10032
|
colIndex: B(s) + 1,
|
|
9997
10033
|
selected: B(_t)(B(r).id)
|
|
@@ -10008,7 +10044,7 @@ function od(e, t) {
|
|
|
10008
10044
|
B(d) ? e(C) : B(u) ? e(w, 1) : e(T, -1);
|
|
10009
10045
|
});
|
|
10010
10046
|
var E = L(S, 2), ee = (e) => {
|
|
10011
|
-
var t =
|
|
10047
|
+
var t = ju();
|
|
10012
10048
|
V("pointerenter", t, (e) => {
|
|
10013
10049
|
e.stopPropagation(), B(a)(e.currentTarget, B(h));
|
|
10014
10050
|
}), V("pointerleave", t, (e) => {
|
|
@@ -10025,7 +10061,7 @@ function od(e, t) {
|
|
|
10025
10061
|
})), K(e, g);
|
|
10026
10062
|
});
|
|
10027
10063
|
var y = L(v), b = (e) => {
|
|
10028
|
-
var t =
|
|
10064
|
+
var t = Nu();
|
|
10029
10065
|
R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
|
|
10030
10066
|
};
|
|
10031
10067
|
J(y, (e) => {
|
|
@@ -10037,40 +10073,40 @@ function od(e, t) {
|
|
|
10037
10073
|
}), K(e, s);
|
|
10038
10074
|
}), K(e, r);
|
|
10039
10075
|
};
|
|
10040
|
-
J(
|
|
10041
|
-
!B(Oe).length && !(t.loading && t.loadingOverlay) ? e(
|
|
10042
|
-
}), A(
|
|
10043
|
-
var
|
|
10044
|
-
var n =
|
|
10076
|
+
J(P, (e) => {
|
|
10077
|
+
!B(Oe).length && !(t.loading && t.loadingOverlay) ? e(hn) : B(Fe) ? e(gn, 1) : e(_n, -1);
|
|
10078
|
+
}), A(mn);
|
|
10079
|
+
var vn = L(mn), yn = (e) => {
|
|
10080
|
+
var n = Fu();
|
|
10045
10081
|
Y(n, 21, () => t.pinnedBottomRows, si, (e, t, n) => {
|
|
10046
10082
|
pt(e, () => B(t), () => "bottom", () => n);
|
|
10047
10083
|
}), A(n), K(e, n);
|
|
10048
10084
|
};
|
|
10049
|
-
J(
|
|
10050
|
-
t.pinnedBottomRows && t.pinnedBottomRows.length > 0 && e(
|
|
10085
|
+
J(vn, (e) => {
|
|
10086
|
+
t.pinnedBottomRows && t.pinnedBottomRows.length > 0 && e(yn);
|
|
10051
10087
|
});
|
|
10052
|
-
var
|
|
10053
|
-
var t =
|
|
10088
|
+
var bn = L(vn), xn = (e) => {
|
|
10089
|
+
var t = Vu(), n = F(t);
|
|
10054
10090
|
qi(n, (e) => ({
|
|
10055
10091
|
class: "sv-grid-row sv-grid-summary-row",
|
|
10056
10092
|
...e
|
|
10057
|
-
}), [() =>
|
|
10093
|
+
}), [() => nm()]);
|
|
10058
10094
|
var r = F(n), i = (e) => {
|
|
10059
|
-
var t =
|
|
10095
|
+
var t = Iu();
|
|
10060
10096
|
R(() => Z(t, `width: ${B(d)}px; min-width: ${B(d)}px; max-width: ${B(d)}px; left: 0;`)), K(e, t);
|
|
10061
10097
|
};
|
|
10062
10098
|
J(r, (e) => {
|
|
10063
10099
|
B(f) && e(i);
|
|
10064
10100
|
});
|
|
10065
10101
|
var a = L(r), o = (e) => {
|
|
10066
|
-
var t =
|
|
10102
|
+
var t = Lu();
|
|
10067
10103
|
R(() => Z(t, `width: ${B(u)}px; min-width: ${B(u)}px; max-width: ${B(u)}px; left: ${B(f) ? B(d) : 0}px;`)), K(e, t);
|
|
10068
10104
|
};
|
|
10069
10105
|
J(a, (e) => {
|
|
10070
10106
|
B(C) && e(o);
|
|
10071
10107
|
});
|
|
10072
10108
|
var s = L(a), c = (e) => {
|
|
10073
|
-
var t =
|
|
10109
|
+
var t = Ru();
|
|
10074
10110
|
R(() => Z(t, `width: ${B(Xe)}px; min-width: ${B(Xe)}px; max-width: ${B(Xe)}px;`)), K(e, t);
|
|
10075
10111
|
};
|
|
10076
10112
|
J(s, (e) => {
|
|
@@ -10078,56 +10114,56 @@ function od(e, t) {
|
|
|
10078
10114
|
});
|
|
10079
10115
|
var l = L(s);
|
|
10080
10116
|
Y(l, 17, () => B(Ve), (e) => e.column.id, (e, t) => {
|
|
10081
|
-
var n =
|
|
10117
|
+
var n = zu(), r = F(n, !0);
|
|
10082
10118
|
A(n), R((e, i) => {
|
|
10083
10119
|
Q(n, "data-pinned", e), Z(n, i), q(r, B($e)[B(t).column.id] ?? "");
|
|
10084
10120
|
}, [() => B(ne)(B(t).column.id) ?? void 0, () => `width: ${B(t).item.size}px; min-width: ${B(t).item.size}px; max-width: ${B(t).item.size}px; ${B(te)(B(t).column.id)}`]), K(e, n);
|
|
10085
10121
|
});
|
|
10086
10122
|
var p = L(l), m = (e) => {
|
|
10087
|
-
var t =
|
|
10123
|
+
var t = Bu();
|
|
10088
10124
|
R(() => Z(t, `width: ${B(Ze)}px; min-width: ${B(Ze)}px; max-width: ${B(Ze)}px;`)), K(e, t);
|
|
10089
10125
|
};
|
|
10090
10126
|
J(p, (e) => {
|
|
10091
10127
|
B(Ie) && B(Ze) > 0 && e(m);
|
|
10092
10128
|
}), A(n), A(t), K(e, t);
|
|
10093
10129
|
};
|
|
10094
|
-
J(
|
|
10095
|
-
(t.enableRowSummaries ?? !0) && e(
|
|
10096
|
-
}), A(
|
|
10097
|
-
var
|
|
10098
|
-
var t =
|
|
10130
|
+
J(bn, (e) => {
|
|
10131
|
+
(t.enableRowSummaries ?? !0) && e(xn);
|
|
10132
|
+
}), A(un), ta(un, (e) => n.gridRootEl = e, () => n?.gridRootEl), A(cn), ta(cn, (e) => n.scrollContainer = e, () => n?.scrollContainer);
|
|
10133
|
+
var Sn = L(cn, 2), Cn = (e) => {
|
|
10134
|
+
var t = Hu();
|
|
10099
10135
|
R(() => Z(t, `height: ${B(c)}px;`)), K(e, t);
|
|
10100
10136
|
};
|
|
10101
|
-
J(
|
|
10102
|
-
B(et) && B(y) && e(
|
|
10137
|
+
J(Sn, (e) => {
|
|
10138
|
+
B(et) && B(y) && e(Cn);
|
|
10103
10139
|
});
|
|
10104
|
-
var
|
|
10105
|
-
var r =
|
|
10140
|
+
var wn = L(Sn, 2), Tn = (e) => {
|
|
10141
|
+
var r = Uu();
|
|
10106
10142
|
X(r, 1, "sv-grid-scrollbar sv-grid-scrollbar-vertical"), Gi(r, "orientation", "vertical"), R(() => Gi(r, "viewport-size", B(_))), R(() => Gi(r, "content-size", B(v).scrollHeight || B(Be) + B(c))), R(() => Gi(r, "value", B(v).scrollTop)), R(() => Gi(r, "step", typeof t.rowHeight == "number" ? t.rowHeight : 30)), ta(r, (e) => n.verticalScrollbarEl = e, () => n?.verticalScrollbarEl), R(() => Z(r, `top: ${B(c)}px; height: calc(100% - ${B(c) + (B(Ye) ? 16 : 0)}px);`)), K(e, r);
|
|
10107
10143
|
};
|
|
10108
|
-
J(
|
|
10109
|
-
B(et) && B(y) && e(
|
|
10144
|
+
J(wn, (e) => {
|
|
10145
|
+
B(et) && B(y) && e(Tn);
|
|
10110
10146
|
});
|
|
10111
|
-
var
|
|
10147
|
+
var En = L(wn, 2), Dn = (e) => {
|
|
10112
10148
|
let r = /* @__PURE__ */ M(() => B(He) + (B(f) ? B(d) : 0) + (B(C) ? B(u) : 0));
|
|
10113
|
-
var i =
|
|
10149
|
+
var i = Wu();
|
|
10114
10150
|
X(i, 1, "sv-grid-scrollbar sv-grid-scrollbar-horizontal"), Gi(i, "orientation", "horizontal"), R(() => Gi(i, "viewport-size", B(g))), R(() => Gi(i, "content-size", B(v).scrollWidth || B(r))), R(() => Gi(i, "value", B(v).scrollLeft)), R(() => Gi(i, "step", t.columnWidth ?? 140)), ta(i, (e) => n.horizontalScrollbarEl = e, () => n?.horizontalScrollbarEl), R(() => Z(i, `width: calc(100% - ${B(y) ? 16 : 0}px);`)), K(e, i);
|
|
10115
10151
|
};
|
|
10116
|
-
J(
|
|
10117
|
-
B(et) && B(Ye) && e(
|
|
10152
|
+
J(En, (e) => {
|
|
10153
|
+
B(et) && B(Ye) && e(Dn);
|
|
10118
10154
|
});
|
|
10119
|
-
var
|
|
10120
|
-
K(e,
|
|
10155
|
+
var On = L(En, 2), kn = (e) => {
|
|
10156
|
+
K(e, Gu());
|
|
10121
10157
|
};
|
|
10122
|
-
J(
|
|
10123
|
-
B(et) && B(y) && B(Ye) && e(
|
|
10158
|
+
J(On, (e) => {
|
|
10159
|
+
B(et) && B(y) && B(Ye) && e(kn);
|
|
10124
10160
|
}), A(sn);
|
|
10125
|
-
var
|
|
10126
|
-
|
|
10161
|
+
var An = L(sn, 2);
|
|
10162
|
+
Oc(An, { get ctrl() {
|
|
10127
10163
|
return n;
|
|
10128
10164
|
} });
|
|
10129
|
-
var
|
|
10130
|
-
var t =
|
|
10165
|
+
var jn = L(An, 2), Mn = (e) => {
|
|
10166
|
+
var t = Ku(), r = L(F(t), 2);
|
|
10131
10167
|
Vi(r), Nn(r, !0);
|
|
10132
10168
|
var i = L(r, 2), a = F(i, !0);
|
|
10133
10169
|
A(i);
|
|
@@ -10154,16 +10190,16 @@ function od(e, t) {
|
|
|
10154
10190
|
n.findOpen = !1, n.findQuery = "";
|
|
10155
10191
|
}), K(e, t);
|
|
10156
10192
|
};
|
|
10157
|
-
J(
|
|
10158
|
-
n.findOpen && e(
|
|
10193
|
+
J(jn, (e) => {
|
|
10194
|
+
n.findOpen && e(Mn);
|
|
10159
10195
|
});
|
|
10160
|
-
var
|
|
10161
|
-
var n =
|
|
10162
|
-
var n =
|
|
10196
|
+
var Fn = L(jn, 2), In = (e) => {
|
|
10197
|
+
var n = Xu(), r = L(F(n), 2), i = (e) => {
|
|
10198
|
+
var n = Yu();
|
|
10163
10199
|
Y(n, 21, () => Array(t.loadingSkeletonRows ?? 8), si, (e, t) => {
|
|
10164
|
-
var n =
|
|
10200
|
+
var n = Ju();
|
|
10165
10201
|
Y(n, 21, () => B(T), (e) => e.id, (e, t) => {
|
|
10166
|
-
var n =
|
|
10202
|
+
var n = qu();
|
|
10167
10203
|
R((e) => Z(n, e), [() => `width:${B(Ct)(B(t).id)}px`]), K(e, n);
|
|
10168
10204
|
}), A(n), K(e, n);
|
|
10169
10205
|
}), A(n), K(e, n);
|
|
@@ -10172,13 +10208,13 @@ function od(e, t) {
|
|
|
10172
10208
|
B(Oe).length === 0 && e(i);
|
|
10173
10209
|
}), nt(2), A(n), K(e, n);
|
|
10174
10210
|
};
|
|
10175
|
-
J(
|
|
10176
|
-
t.loading && t.loadingOverlay && e(
|
|
10211
|
+
J(Fn, (e) => {
|
|
10212
|
+
t.loading && t.loadingOverlay && e(In);
|
|
10177
10213
|
});
|
|
10178
|
-
var
|
|
10214
|
+
var Ln = L(Fn, 2), Rn = (e) => {
|
|
10179
10215
|
var t = G(), r = I(t), a = (e) => {
|
|
10180
10216
|
let t = /* @__PURE__ */ M(() => n.toolPanelTab);
|
|
10181
|
-
var r =
|
|
10217
|
+
var r = ad(), a = F(r), o = F(a), s = F(o, !0);
|
|
10182
10218
|
A(o);
|
|
10183
10219
|
var c = L(o, 2);
|
|
10184
10220
|
A(a);
|
|
@@ -10188,10 +10224,10 @@ function od(e, t) {
|
|
|
10188
10224
|
let p;
|
|
10189
10225
|
A(l);
|
|
10190
10226
|
var m = L(l, 2), h = (e) => {
|
|
10191
|
-
var t =
|
|
10227
|
+
var t = Qu();
|
|
10192
10228
|
Y(t, 23, () => B(Ae), (e) => e.id, (e, t, r) => {
|
|
10193
10229
|
let i = /* @__PURE__ */ M(() => !n.hiddenColumns[B(t).id]), a = /* @__PURE__ */ M(() => B(De).includes(B(t).id));
|
|
10194
|
-
var o =
|
|
10230
|
+
var o = Zu(), s = F(o), c = F(s);
|
|
10195
10231
|
Vi(c);
|
|
10196
10232
|
var l = L(c, 2), u = F(l, !0);
|
|
10197
10233
|
A(l), A(s);
|
|
@@ -10203,16 +10239,16 @@ function od(e, t) {
|
|
|
10203
10239
|
}, [() => B(je)(B(t))]), H("change", c, () => B(Me)(B(t).id)), H("click", f, () => B(Pe)(B(t).id)), H("click", m, () => B(Ne)(B(t).id, -1)), H("click", h, () => B(Ne)(B(t).id, 1)), K(e, o);
|
|
10204
10240
|
}), A(t), K(e, t);
|
|
10205
10241
|
}, g = (e) => {
|
|
10206
|
-
var t =
|
|
10242
|
+
var t = id();
|
|
10207
10243
|
Y(t, 21, () => B(Ae), (e) => e.id, (e, t) => {
|
|
10208
10244
|
var n = G(), r = I(n), a = (e) => {
|
|
10209
10245
|
let n = /* @__PURE__ */ M(() => B(i)[B(t).id]?.operator ?? B(Xt)(B(t))), r = /* @__PURE__ */ M(() => Qa(B(t).columnDef.editorType ?? "text"));
|
|
10210
|
-
var a =
|
|
10246
|
+
var a = rd();
|
|
10211
10247
|
let o;
|
|
10212
10248
|
var s = F(a), c = F(s), l = F(c, !0);
|
|
10213
10249
|
A(c);
|
|
10214
10250
|
var u = L(c, 2), d = (e) => {
|
|
10215
|
-
var n =
|
|
10251
|
+
var n = $u();
|
|
10216
10252
|
R((e) => Q(n, "aria-label", e), [() => `Clear ${B(je)(B(t))} filter`]), H("click", n, () => B(qt)(B(t).id)), K(e, n);
|
|
10217
10253
|
}, f = /* @__PURE__ */ M(() => B(Zt)(B(t).id));
|
|
10218
10254
|
J(u, (e) => {
|
|
@@ -10220,7 +10256,7 @@ function od(e, t) {
|
|
|
10220
10256
|
}), A(s);
|
|
10221
10257
|
var p = L(s, 2);
|
|
10222
10258
|
Y(p, 21, () => B(Kt)(B(t)), (e) => e.value, (e, t) => {
|
|
10223
|
-
var n =
|
|
10259
|
+
var n = ed(), r = F(n, !0);
|
|
10224
10260
|
A(n);
|
|
10225
10261
|
var i = {};
|
|
10226
10262
|
R((e) => {
|
|
@@ -10230,10 +10266,10 @@ function od(e, t) {
|
|
|
10230
10266
|
var m;
|
|
10231
10267
|
Ai(p);
|
|
10232
10268
|
var h = L(p, 2), g = (e) => {
|
|
10233
|
-
var a =
|
|
10269
|
+
var a = nd(), o = I(a);
|
|
10234
10270
|
Vi(o);
|
|
10235
10271
|
var s = L(o, 2), c = (e) => {
|
|
10236
|
-
var n =
|
|
10272
|
+
var n = td();
|
|
10237
10273
|
Vi(n), R(() => {
|
|
10238
10274
|
Q(n, "type", B(r)), Hi(n, B(i)[B(t).id]?.valueTo ?? "");
|
|
10239
10275
|
}), H("input", n, (e) => B(Wt)(B(t).id, e.currentTarget.value)), K(e, n);
|
|
@@ -10269,9 +10305,9 @@ function od(e, t) {
|
|
|
10269
10305
|
n.toolPanelOpen && e(a);
|
|
10270
10306
|
}), K(e, t);
|
|
10271
10307
|
};
|
|
10272
|
-
J(
|
|
10273
|
-
B(ke) && e(
|
|
10274
|
-
}), A(jt),
|
|
10308
|
+
J(Ln, (e) => {
|
|
10309
|
+
B(ke) && e(Rn);
|
|
10310
|
+
}), A(jt), vc(L(jt, 2), {
|
|
10275
10311
|
get ctrl() {
|
|
10276
10312
|
return n;
|
|
10277
10313
|
},
|
|
@@ -10279,12 +10315,12 @@ function od(e, t) {
|
|
|
10279
10315
|
return fe;
|
|
10280
10316
|
}
|
|
10281
10317
|
}), R(() => {
|
|
10282
|
-
tn = X(jt, 1, "sv-grid-root", null, tn, { "sv-grid-root-fill": t.containerHeight === "100%" }), Z(sn, `height: ${typeof t.containerHeight == "string" ? t.containerHeight : `${t.containerHeight ?? 520}px`}; --sg-thead-h: ${B(c)}px; --sg-pinned-row-h: ${typeof t.rowHeight == "number" ? t.rowHeight : 30}px;`), Z(cn, `overflow: auto; position: relative; height: calc(100% - ${B(et) && B(Ye) ? 16 : 0}px);`);
|
|
10318
|
+
tn = X(jt, 1, "sv-grid-root", null, tn, { "sv-grid-root-fill": t.containerHeight === "100%" }), Z(sn, `height: ${typeof t.containerHeight == "string" ? t.containerHeight : `${t.containerHeight ?? 520}px`}; --sg-thead-h: ${B(c)}px; --sg-pinned-row-h: ${typeof t.rowHeight == "number" ? t.rowHeight : 30}px;`), ln = X(cn, 1, "sv-grid-container sv-grid-container-custom-scrollbars", null, ln, { "sv-grid-has-vscroll": B(et) && B(y) }), Z(cn, `overflow: auto; position: relative; height: calc(100% - ${B(et) && B(Ye) ? 16 : 0}px);`);
|
|
10283
10319
|
}), V("scroll", cn, function(...e) {
|
|
10284
10320
|
B(tt)?.apply(this, e);
|
|
10285
|
-
}), V("dragover",
|
|
10321
|
+
}), V("dragover", mn, function(...e) {
|
|
10286
10322
|
(B(ue) ? B(_e) : void 0)?.apply(this, e);
|
|
10287
|
-
}), V("drop",
|
|
10323
|
+
}), V("drop", mn, function(...e) {
|
|
10288
10324
|
(B(ue) ? B(ve) : void 0)?.apply(this, e);
|
|
10289
10325
|
}), K(e, j);
|
|
10290
10326
|
};
|
|
@@ -10303,7 +10339,7 @@ Wr([
|
|
|
10303
10339
|
]);
|
|
10304
10340
|
//#endregion
|
|
10305
10341
|
//#region src/FlexRender.svelte
|
|
10306
|
-
function
|
|
10342
|
+
function cd(e, t) {
|
|
10307
10343
|
ft(t, !0);
|
|
10308
10344
|
let n = /* @__PURE__ */ ra(t, [
|
|
10309
10345
|
"$$slots",
|
|
@@ -10343,7 +10379,7 @@ function sd(e, t) {
|
|
|
10343
10379
|
}
|
|
10344
10380
|
//#endregion
|
|
10345
10381
|
//#region src/chart.ts
|
|
10346
|
-
var
|
|
10382
|
+
var ld = [
|
|
10347
10383
|
"#2563eb",
|
|
10348
10384
|
"#16a34a",
|
|
10349
10385
|
"#f59e0b",
|
|
@@ -10356,51 +10392,51 @@ var cd = [
|
|
|
10356
10392
|
function $(e) {
|
|
10357
10393
|
return Math.round(e * 100) / 100;
|
|
10358
10394
|
}
|
|
10359
|
-
function
|
|
10395
|
+
function ud(e, t) {
|
|
10360
10396
|
if (e <= 0) return 1;
|
|
10361
10397
|
let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
|
|
10362
10398
|
return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
|
|
10363
10399
|
}
|
|
10364
|
-
var
|
|
10400
|
+
var dd = [
|
|
10365
10401
|
"#eff6ff",
|
|
10366
10402
|
"#bfdbfe",
|
|
10367
10403
|
"#60a5fa",
|
|
10368
10404
|
"#2563eb",
|
|
10369
10405
|
"#1e3a8a"
|
|
10370
|
-
],
|
|
10406
|
+
], fd = [
|
|
10371
10407
|
"#b91c1c",
|
|
10372
10408
|
"#fca5a5",
|
|
10373
10409
|
"#f1f5f9",
|
|
10374
10410
|
"#93c5fd",
|
|
10375
10411
|
"#1d4ed8"
|
|
10376
|
-
],
|
|
10412
|
+
], pd = [
|
|
10377
10413
|
"#1c2c4d",
|
|
10378
10414
|
"#1d4ed8",
|
|
10379
10415
|
"#3b82f6",
|
|
10380
10416
|
"#60a5fa",
|
|
10381
10417
|
"#bae6fd"
|
|
10382
|
-
],
|
|
10418
|
+
], md = [
|
|
10383
10419
|
"#f87171",
|
|
10384
10420
|
"#b91c1c",
|
|
10385
10421
|
"#222b3d",
|
|
10386
10422
|
"#1d4ed8",
|
|
10387
10423
|
"#60a5fa"
|
|
10388
10424
|
];
|
|
10389
|
-
function
|
|
10425
|
+
function hd(e, t, n, r = "light") {
|
|
10390
10426
|
if (Array.isArray(e) && e.length >= 2) return e;
|
|
10391
10427
|
let i = r === "dark";
|
|
10392
|
-
return e === "diverging" || e == null && t < 0 && n > 0 ? i ?
|
|
10428
|
+
return e === "diverging" || e == null && t < 0 && n > 0 ? i ? md : fd : i ? pd : dd;
|
|
10393
10429
|
}
|
|
10394
|
-
function
|
|
10430
|
+
function gd(e, t) {
|
|
10395
10431
|
if (!e.length) return "#888";
|
|
10396
10432
|
let n = Math.max(0, Math.min(1, t));
|
|
10397
10433
|
if (e.length === 1) return e[0];
|
|
10398
|
-
let r = n * (e.length - 1), i = Math.floor(r), a = r - i, o =
|
|
10434
|
+
let r = n * (e.length - 1), i = Math.floor(r), a = r - i, o = _d(e[i]), s = _d(e[Math.min(e.length - 1, i + 1)]);
|
|
10399
10435
|
if (!o || !s) return e[i] ?? "#888";
|
|
10400
10436
|
let c = (e, t) => Math.round(e + (t - e) * a), l = (e) => e.toString(16).padStart(2, "0");
|
|
10401
10437
|
return "#" + l(c(o.r, s.r)) + l(c(o.g, s.g)) + l(c(o.b, s.b));
|
|
10402
10438
|
}
|
|
10403
|
-
function
|
|
10439
|
+
function _d(e) {
|
|
10404
10440
|
let t = /^#?([0-9a-f]{6})$/i.exec(e.trim());
|
|
10405
10441
|
if (!t) return null;
|
|
10406
10442
|
let n = parseInt(t[1], 16);
|
|
@@ -10410,8 +10446,8 @@ function gd(e) {
|
|
|
10410
10446
|
b: n & 255
|
|
10411
10447
|
};
|
|
10412
10448
|
}
|
|
10413
|
-
function
|
|
10414
|
-
let t =
|
|
10449
|
+
function vd(e) {
|
|
10450
|
+
let t = _d(e);
|
|
10415
10451
|
if (!t) return "#0f172a";
|
|
10416
10452
|
let n = (e) => {
|
|
10417
10453
|
let t = e / 255;
|
|
@@ -10419,7 +10455,7 @@ function _d(e) {
|
|
|
10419
10455
|
};
|
|
10420
10456
|
return .2126 * n(t.r) + .7152 * n(t.g) + .0722 * n(t.b) > .5 ? "#0f172a" : "#ffffff";
|
|
10421
10457
|
}
|
|
10422
|
-
function
|
|
10458
|
+
function yd(e, t) {
|
|
10423
10459
|
(!Number.isFinite(e) || e <= 0) && (e = 1), (!Number.isFinite(t) || t <= e) && (t = e * 10);
|
|
10424
10460
|
let n = Math.floor(Math.log10(e)), r = Math.ceil(Math.log10(t)), i = [];
|
|
10425
10461
|
for (let e = n; e <= r; e += 1) i.push(10 ** e);
|
|
@@ -10430,10 +10466,10 @@ function vd(e, t) {
|
|
|
10430
10466
|
ticks: i
|
|
10431
10467
|
};
|
|
10432
10468
|
}
|
|
10433
|
-
function
|
|
10469
|
+
function bd(e, t, n, r) {
|
|
10434
10470
|
return Number.isFinite(e) ? r ? e <= 0 || t <= 0 ? null : (Math.log10(e) - Math.log10(t)) / (Math.log10(n) - Math.log10(t)) : (e - t) / (n - t) : null;
|
|
10435
10471
|
}
|
|
10436
|
-
function
|
|
10472
|
+
function xd(e, t) {
|
|
10437
10473
|
if (!t) {
|
|
10438
10474
|
let t = "", n = !1;
|
|
10439
10475
|
for (let r of e) {
|
|
@@ -10450,9 +10486,9 @@ function bd(e, t) {
|
|
|
10450
10486
|
x: t.x,
|
|
10451
10487
|
y: t.y
|
|
10452
10488
|
}) : r.length && (n.push(r), r = []);
|
|
10453
|
-
return r.length && n.push(r), n.map(
|
|
10489
|
+
return r.length && n.push(r), n.map(Sd).filter(Boolean).join(" ");
|
|
10454
10490
|
}
|
|
10455
|
-
function
|
|
10491
|
+
function Sd(e) {
|
|
10456
10492
|
let t = e.length;
|
|
10457
10493
|
if (t === 0) return "";
|
|
10458
10494
|
if (t === 1) return `M${e[0].x},${e[0].y}`;
|
|
@@ -10480,7 +10516,7 @@ function xd(e) {
|
|
|
10480
10516
|
}
|
|
10481
10517
|
return a;
|
|
10482
10518
|
}
|
|
10483
|
-
function
|
|
10519
|
+
function Cd(e) {
|
|
10484
10520
|
let t = 0, n = 0, r = 0, i = 0, a = 0;
|
|
10485
10521
|
for (let o = 0; o < e.length; o += 1) {
|
|
10486
10522
|
let s = e[o];
|
|
@@ -10492,7 +10528,7 @@ function Sd(e) {
|
|
|
10492
10528
|
let s = (t * a - n * r) / o, c = (r - s * n) / t;
|
|
10493
10529
|
return e.map((e, t) => s * t + c);
|
|
10494
10530
|
}
|
|
10495
|
-
function
|
|
10531
|
+
function wd(e, t) {
|
|
10496
10532
|
if (t < 1) return e.slice();
|
|
10497
10533
|
let n = Array(e.length).fill(NaN), r = 0, i = 0;
|
|
10498
10534
|
for (let a = 0; a < e.length; a += 1) {
|
|
@@ -10505,7 +10541,7 @@ function Cd(e, t) {
|
|
|
10505
10541
|
}
|
|
10506
10542
|
return n;
|
|
10507
10543
|
}
|
|
10508
|
-
function
|
|
10544
|
+
function Td(e, t) {
|
|
10509
10545
|
let n = 2 / (Math.max(1, t) + 1), r = Array(e.length).fill(NaN), i = null;
|
|
10510
10546
|
for (let t = 0; t < e.length; t += 1) {
|
|
10511
10547
|
let a = e[t];
|
|
@@ -10517,16 +10553,16 @@ function wd(e, t) {
|
|
|
10517
10553
|
}
|
|
10518
10554
|
return r;
|
|
10519
10555
|
}
|
|
10520
|
-
function
|
|
10521
|
-
if (t === "linear") return
|
|
10556
|
+
function Ed(e, t) {
|
|
10557
|
+
if (t === "linear") return Cd(e);
|
|
10522
10558
|
let n = /^(sma|ema):(\d+)$/.exec(t);
|
|
10523
10559
|
if (!n) return e.map(() => NaN);
|
|
10524
10560
|
let r = Number(n[2]);
|
|
10525
|
-
return n[1] === "ema" ?
|
|
10561
|
+
return n[1] === "ema" ? Td(e, r) : wd(e, r);
|
|
10526
10562
|
}
|
|
10527
|
-
function
|
|
10563
|
+
function Dd(e, t, n = 4) {
|
|
10528
10564
|
(!Number.isFinite(e) || !Number.isFinite(t)) && (e = 0, t = 1), e === t && (e === 0 ? t = 1 : (e = Math.min(0, e), t = Math.max(0, t)), e === t && (t = e + 1));
|
|
10529
|
-
let r =
|
|
10565
|
+
let r = ud(ud(t - e, !1) / Math.max(1, n), !0), i = Math.floor(e / r) * r, a = Math.ceil(t / r) * r, o = [];
|
|
10530
10566
|
for (let e = i; e <= a + r * .5; e += r) o.push($(e));
|
|
10531
10567
|
return {
|
|
10532
10568
|
min: i,
|
|
@@ -10535,27 +10571,27 @@ function Ed(e, t, n = 4) {
|
|
|
10535
10571
|
ticks: o
|
|
10536
10572
|
};
|
|
10537
10573
|
}
|
|
10538
|
-
function
|
|
10574
|
+
function Od(e) {
|
|
10539
10575
|
let t = Math.abs(e);
|
|
10540
10576
|
return t >= 1e6 ? `${(e / 1e6).toFixed(t % 1e6 ? 1 : 0)}M` : t >= 1e3 ? `${(e / 1e3).toFixed(t % 1e3 ? 1 : 0)}k` : String(Math.round(e * 100) / 100);
|
|
10541
10577
|
}
|
|
10542
|
-
var
|
|
10543
|
-
function
|
|
10544
|
-
let n = t - e, r = n <= 7 *
|
|
10578
|
+
var kd = 864e5;
|
|
10579
|
+
function Ad(e, t) {
|
|
10580
|
+
let n = t - e, r = n <= 7 * kd ? kd : n <= 70 * kd ? 7 * kd : n <= 800 * kd ? 30 * kd : 365 * kd, i = [];
|
|
10545
10581
|
for (let n = Math.ceil(e / r) * r; n <= t + 1; n += r) i.push(n);
|
|
10546
10582
|
return i.length || i.push(e, t), i;
|
|
10547
10583
|
}
|
|
10548
|
-
function
|
|
10584
|
+
function jd(e, t) {
|
|
10549
10585
|
let n = new Date(e);
|
|
10550
|
-
return t <= 70 *
|
|
10586
|
+
return t <= 70 * kd ? n.toLocaleDateString(void 0, {
|
|
10551
10587
|
month: "short",
|
|
10552
10588
|
day: "numeric"
|
|
10553
|
-
}) : t <= 800 *
|
|
10589
|
+
}) : t <= 800 * kd ? n.toLocaleDateString(void 0, {
|
|
10554
10590
|
month: "short",
|
|
10555
10591
|
year: "2-digit"
|
|
10556
10592
|
}) : String(n.getFullYear());
|
|
10557
10593
|
}
|
|
10558
|
-
function
|
|
10594
|
+
function Md(e, t, n, r = [], i = !1) {
|
|
10559
10595
|
let a = Infinity, o = -Infinity, s = (e) => {
|
|
10560
10596
|
Number.isFinite(e) && (i && e <= 0 || (e < a && (a = e), e > o && (o = e)));
|
|
10561
10597
|
};
|
|
@@ -10571,10 +10607,10 @@ function jd(e, t, n, r = [], i = !1) {
|
|
|
10571
10607
|
}
|
|
10572
10608
|
else for (let e of c) for (let t of e.values) s(t);
|
|
10573
10609
|
for (let e of l) for (let t of e.values) s(t);
|
|
10574
|
-
return a === Infinity && (a = +!!i, o = i ? 10 : 1), c.length && !i && (a = Math.min(a, 0), o = Math.max(o, 0)), i ?
|
|
10610
|
+
return a === Infinity && (a = +!!i, o = i ? 10 : 1), c.length && !i && (a = Math.min(a, 0), o = Math.max(o, 0)), i ? yd(a, o) : Dd(a, o);
|
|
10575
10611
|
}
|
|
10576
|
-
function
|
|
10577
|
-
let n = e.width ?? 520, r = e.height ?? 300, i = e.palette ??
|
|
10612
|
+
function Nd(e, t = "light") {
|
|
10613
|
+
let n = e.width ?? 520, r = e.height ?? 300, i = e.palette ?? ld, a = !!(e.stacked || e.stacked100), o = e.series.map((t, n) => ({
|
|
10578
10614
|
...t,
|
|
10579
10615
|
color: t.color ?? i[n % i.length],
|
|
10580
10616
|
kind: t.type ?? (e.type === "pie" || e.type === "scatter" ? "bar" : e.type),
|
|
@@ -10652,7 +10688,7 @@ function Md(e, t = "light") {
|
|
|
10652
10688
|
});
|
|
10653
10689
|
let b = 0, x = 0;
|
|
10654
10690
|
for (let e of v) e.from < b && (b = e.from), e.to < b && (b = e.to), e.from > x && (x = e.from), e.to > x && (x = e.to);
|
|
10655
|
-
let S =
|
|
10691
|
+
let S = Dd(b, x), C = (e) => $(10 + h - (e - S.min) / (S.max - S.min || 1) * h), w = m / Math.max(1, e.categories.length), T = w * .2, E = Math.max(1, w - T), ee = v.map((n, r) => {
|
|
10656
10692
|
let i = C(Math.max(n.from, n.to)), o = C(Math.min(n.from, n.to)), c = f + w * r + T / 2, u = n.isTotal ? l : n.value >= 0 ? a : s;
|
|
10657
10693
|
return {
|
|
10658
10694
|
x: $(c),
|
|
@@ -10679,7 +10715,7 @@ function Md(e, t = "light") {
|
|
|
10679
10715
|
})), re = S.ticks.map((e) => ({
|
|
10680
10716
|
value: e,
|
|
10681
10717
|
y: C(e),
|
|
10682
|
-
label:
|
|
10718
|
+
label: Od(e)
|
|
10683
10719
|
}));
|
|
10684
10720
|
return {
|
|
10685
10721
|
...c,
|
|
@@ -10699,7 +10735,7 @@ function Md(e, t = "light") {
|
|
|
10699
10735
|
y: 16,
|
|
10700
10736
|
w: i,
|
|
10701
10737
|
h: a
|
|
10702
|
-
}, l = a / t.values.length, u = Math.max(...t.values.map((e) => Number.isFinite(e) ? e : 0)), d = t.values[0] ?? 0, f = (e) => u > 0 ? e / u * i : 0, p = 20 + i / 2, m = e.palette ??
|
|
10738
|
+
}, l = a / t.values.length, u = Math.max(...t.values.map((e) => Number.isFinite(e) ? e : 0)), d = t.values[0] ?? 0, f = (e) => u > 0 ? e / u * i : 0, p = 20 + i / 2, m = e.palette ?? ld, h = t.values.map((n, r) => {
|
|
10703
10739
|
let i = t.values[r + 1] ?? n * .8, a = f(n), o = f(i), s = 16 + l * r, c = s + l, u = `M${p - a / 2},${s} L${p + a / 2},${s} L${p + o / 2},${c} L${p - o / 2},${c} Z`, h = t.color ?? m[r % m.length];
|
|
10704
10740
|
return {
|
|
10705
10741
|
path: u,
|
|
@@ -10710,7 +10746,7 @@ function Md(e, t = "light") {
|
|
|
10710
10746
|
dropoff: r === 0 ? 0 : (t.values[r - 1] ?? n) > 0 ? 1 - n / (t.values[r - 1] ?? n) : 0,
|
|
10711
10747
|
cx: p,
|
|
10712
10748
|
cy: (s + c) / 2,
|
|
10713
|
-
textColor:
|
|
10749
|
+
textColor: vd(h)
|
|
10714
10750
|
};
|
|
10715
10751
|
});
|
|
10716
10752
|
return {
|
|
@@ -10751,7 +10787,7 @@ function Md(e, t = "light") {
|
|
|
10751
10787
|
value: e,
|
|
10752
10788
|
axis: d[t] ?? ""
|
|
10753
10789
|
};
|
|
10754
|
-
}), i = r.length ? r.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ") + " Z" : "", a = e.palette ??
|
|
10790
|
+
}), i = r.length ? r.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ") + " Z" : "", a = e.palette ?? ld;
|
|
10755
10791
|
return {
|
|
10756
10792
|
label: t.label,
|
|
10757
10793
|
color: t.color ?? a[n % a.length],
|
|
@@ -10778,7 +10814,7 @@ function Md(e, t = "light") {
|
|
|
10778
10814
|
let a = /* @__PURE__ */ new Map(), o = Infinity, s = -Infinity;
|
|
10779
10815
|
for (let e of i) a.set(e.date, e.value), Number.isFinite(e.value) && (e.value < o && (o = e.value), e.value > s && (s = e.value));
|
|
10780
10816
|
o === Infinity && (o = 0, s = 1), o === s && (s = o + 1);
|
|
10781
|
-
let l =
|
|
10817
|
+
let l = hd(e.colorScale, o, s, t), u = (e) => gd(l, (e - o) / (s - o)), d = i.map((e) => e.date).sort(), f = e.calendarStart ?? d[0] ?? "2026-01-01", p = e.calendarEnd ?? d[d.length - 1] ?? f, m = /* @__PURE__ */ new Date(f + "T00:00:00Z"), h = /* @__PURE__ */ new Date(p + "T00:00:00Z");
|
|
10782
10818
|
m.setUTCDate(m.getUTCDate() - m.getUTCDay()), h.setUTCDate(h.getUTCDate() + (6 - h.getUTCDay()));
|
|
10783
10819
|
let g = Math.round((h.getTime() - m.getTime()) / 864e5) + 1, _ = Math.ceil(g / 7), v = Math.max(1, n - 36 - 80), y = Math.max(1, r - 26 - 16), b = Math.floor(v / _), x = Math.floor(y / 7), S = Math.max(6, Math.min(b, x)), C = {
|
|
10784
10820
|
x: 36,
|
|
@@ -10806,7 +10842,7 @@ function Md(e, t = "light") {
|
|
|
10806
10842
|
return {
|
|
10807
10843
|
value: r,
|
|
10808
10844
|
color: u(r),
|
|
10809
|
-
label:
|
|
10845
|
+
label: Od(r)
|
|
10810
10846
|
};
|
|
10811
10847
|
});
|
|
10812
10848
|
return {
|
|
@@ -10894,7 +10930,7 @@ function Md(e, t = "light") {
|
|
|
10894
10930
|
y: 4,
|
|
10895
10931
|
w: i,
|
|
10896
10932
|
h: a
|
|
10897
|
-
}, s = e.palette ??
|
|
10933
|
+
}, s = e.palette ?? ld, l = [];
|
|
10898
10934
|
function u(e) {
|
|
10899
10935
|
return e.children?.length ? e.children.reduce((e, t) => e + u(t), 0) : Math.max(0, e.value ?? 0);
|
|
10900
10936
|
}
|
|
@@ -10926,7 +10962,7 @@ function Md(e, t = "light") {
|
|
|
10926
10962
|
w: $(f),
|
|
10927
10963
|
h: $(h),
|
|
10928
10964
|
color: g,
|
|
10929
|
-
textColor:
|
|
10965
|
+
textColor: vd(g),
|
|
10930
10966
|
name: e.node.name,
|
|
10931
10967
|
value: e.value,
|
|
10932
10968
|
depth: a
|
|
@@ -10939,7 +10975,7 @@ function Md(e, t = "light") {
|
|
|
10939
10975
|
w: $(f),
|
|
10940
10976
|
h: $(h),
|
|
10941
10977
|
color: g,
|
|
10942
|
-
textColor:
|
|
10978
|
+
textColor: vd(g),
|
|
10943
10979
|
name: e.node.name,
|
|
10944
10980
|
value: e.value,
|
|
10945
10981
|
depth: a
|
|
@@ -10968,7 +11004,7 @@ function Md(e, t = "light") {
|
|
|
10968
11004
|
y: 14,
|
|
10969
11005
|
w: a,
|
|
10970
11006
|
h: o
|
|
10971
|
-
}, l = e.palette ??
|
|
11007
|
+
}, l = e.palette ?? ld, u = new Map(t.map((e) => [e.id, e])), d = new Set(i.map((e) => e.target)), f = t.filter((e) => !d.has(e.id)), p = /* @__PURE__ */ new Map();
|
|
10972
11008
|
function m(e, t, n) {
|
|
10973
11009
|
if (!n.has(e)) {
|
|
10974
11010
|
n.add(e), (t > (p.get(e) ?? 0) || !p.has(e)) && p.set(e, t);
|
|
@@ -11054,7 +11090,7 @@ function Md(e, t = "light") {
|
|
|
11054
11090
|
}, d = s / e.categories.length, f = l / o.length, p = Infinity, m = -Infinity;
|
|
11055
11091
|
for (let e of o) for (let t of e.values) Number.isFinite(t) && (t < p && (p = t), t > m && (m = t));
|
|
11056
11092
|
p === Infinity && (p = 0, m = 1), p === m && (m = p + 1);
|
|
11057
|
-
let h =
|
|
11093
|
+
let h = hd(e.colorScale, p, m, t), g = (e) => gd(h, (e - p) / (m - p)), _ = [];
|
|
11058
11094
|
o.forEach((t, n) => {
|
|
11059
11095
|
t.values.forEach((r, i) => {
|
|
11060
11096
|
if (!Number.isFinite(r)) return;
|
|
@@ -11065,7 +11101,7 @@ function Md(e, t = "light") {
|
|
|
11065
11101
|
w: $(d),
|
|
11066
11102
|
h: $(f),
|
|
11067
11103
|
color: o,
|
|
11068
|
-
textColor:
|
|
11104
|
+
textColor: vd(o),
|
|
11069
11105
|
value: r,
|
|
11070
11106
|
rowLabel: t.label,
|
|
11071
11107
|
colLabel: e.categories[i] ?? ""
|
|
@@ -11084,7 +11120,7 @@ function Md(e, t = "light") {
|
|
|
11084
11120
|
return {
|
|
11085
11121
|
value: r,
|
|
11086
11122
|
color: g(r),
|
|
11087
|
-
label:
|
|
11123
|
+
label: Od(r)
|
|
11088
11124
|
};
|
|
11089
11125
|
});
|
|
11090
11126
|
return {
|
|
@@ -11145,7 +11181,7 @@ function Md(e, t = "light") {
|
|
|
11145
11181
|
...c,
|
|
11146
11182
|
plot: l
|
|
11147
11183
|
};
|
|
11148
|
-
let g =
|
|
11184
|
+
let g = Dd(u, d), _ = Dd(f, p), v = h > m, y = (e) => $(t + (e - g.min) / (g.max - g.min || 1) * a), b = (e) => $(10 + s - (e - _.min) / (_.max - _.min || 1) * s), x = (e) => v && e != null && Number.isFinite(e) ? $(4 + (e - m) / (h - m || 1) * 14) : 5, S = [];
|
|
11149
11185
|
for (let e of o) for (let t of e.points ?? []) !Number.isFinite(t.x) || !Number.isFinite(t.y) || S.push({
|
|
11150
11186
|
cx: y(t.x),
|
|
11151
11187
|
cy: b(t.y),
|
|
@@ -11158,7 +11194,7 @@ function Md(e, t = "light") {
|
|
|
11158
11194
|
});
|
|
11159
11195
|
let C = (e.referenceLines ?? []).map((e) => ({
|
|
11160
11196
|
y: b(e.value),
|
|
11161
|
-
label: e.label ??
|
|
11197
|
+
label: e.label ?? Od(e.value),
|
|
11162
11198
|
color: e.color ?? "#ef4444",
|
|
11163
11199
|
dashed: e.dashed !== !1
|
|
11164
11200
|
}));
|
|
@@ -11170,10 +11206,10 @@ function Md(e, t = "light") {
|
|
|
11170
11206
|
yTicks: _.ticks.map((e) => ({
|
|
11171
11207
|
value: e,
|
|
11172
11208
|
y: b(e),
|
|
11173
|
-
label:
|
|
11209
|
+
label: Od(e)
|
|
11174
11210
|
})),
|
|
11175
11211
|
xTicks: g.ticks.map((e) => ({
|
|
11176
|
-
label:
|
|
11212
|
+
label: Od(e),
|
|
11177
11213
|
x: y(e)
|
|
11178
11214
|
}))
|
|
11179
11215
|
};
|
|
@@ -11184,7 +11220,7 @@ function Md(e, t = "light") {
|
|
|
11184
11220
|
y: 8,
|
|
11185
11221
|
w: l,
|
|
11186
11222
|
h: u
|
|
11187
|
-
}, f = (e.referenceLines ?? []).map((e) => e.value), p = e.stacked100 ?
|
|
11223
|
+
}, f = (e.referenceLines ?? []).map((e) => e.value), p = e.stacked100 ? Dd(0, 100) : Md(o, e.categories, a, f), m = (e) => $(i + (e - p.min) / (p.max - p.min || 1) * l), h = e.categories.length, g = u / Math.max(1, h), _ = g * .2, v = g - _, y = (e) => 8 + g * e + _ / 2, b = m(Math.min(Math.max(0, p.min), p.max)), x = [];
|
|
11188
11224
|
if (a) {
|
|
11189
11225
|
let t = e.stacked100 ? e.categories.map((e, t) => o.reduce((e, n) => e + Math.abs(Number.isFinite(n.values[t]) ? n.values[t] : 0), 0) || 1) : null, n = Array(h).fill(0), r = Array(h).fill(0);
|
|
11190
11226
|
for (let i of o) i.values.forEach((a, o) => {
|
|
@@ -11221,7 +11257,7 @@ function Md(e, t = "light") {
|
|
|
11221
11257
|
});
|
|
11222
11258
|
}
|
|
11223
11259
|
let S = p.ticks.map((t) => ({
|
|
11224
|
-
label: e.stacked100 ? `${
|
|
11260
|
+
label: e.stacked100 ? `${Od(t)}%` : Od(t),
|
|
11225
11261
|
x: m(t)
|
|
11226
11262
|
})), C = e.categories.map((e, t) => ({
|
|
11227
11263
|
value: t,
|
|
@@ -11229,7 +11265,7 @@ function Md(e, t = "light") {
|
|
|
11229
11265
|
label: e
|
|
11230
11266
|
})), w = (e.referenceLines ?? []).map((e) => ({
|
|
11231
11267
|
x: m(e.value),
|
|
11232
|
-
label: e.label ??
|
|
11268
|
+
label: e.label ?? Od(e.value),
|
|
11233
11269
|
color: e.color ?? "#ef4444",
|
|
11234
11270
|
dashed: e.dashed !== !1
|
|
11235
11271
|
}));
|
|
@@ -11249,11 +11285,11 @@ function Md(e, t = "light") {
|
|
|
11249
11285
|
y: 10,
|
|
11250
11286
|
w: _,
|
|
11251
11287
|
h: v
|
|
11252
|
-
}, b = (e.referenceLines ?? []).filter((e) => e.axis !== "right").map((e) => e.value), x = (e.referenceLines ?? []).filter((e) => e.axis === "right").map((e) => e.value), S = e.yScale === "log", C = e.y2Scale === "log", w = e.stacked100 ?
|
|
11253
|
-
let r =
|
|
11288
|
+
}, b = (e.referenceLines ?? []).filter((e) => e.axis !== "right").map((e) => e.value), x = (e.referenceLines ?? []).filter((e) => e.axis === "right").map((e) => e.value), S = e.yScale === "log", C = e.y2Scale === "log", w = e.stacked100 ? Dd(0, 100) : Md(l, e.categories, a, b, S), T = d ? e.stacked100 ? Dd(0, 100) : Md(u, e.categories, a, x, C) : null, E = (e, t, n = !1) => {
|
|
11289
|
+
let r = bd(t, e.min, e.max, n);
|
|
11254
11290
|
return r === null ? NaN : $(10 + v - r * v);
|
|
11255
|
-
}, ee = (e) => E(w, e, S), te = (e) => E(T ?? w, e, C), ne = (e) => e.axis === "right" ? T ?? w : w, re = (e) => e.axis === "right" ? C : S, ie = e.categories.length, ae = _ / Math.max(1, ie), oe = e.xType === "time" ? e.categories.map((e) => Date.parse(e)) : null, se = !!oe && oe.some((e) => Number.isFinite(e)), D = se ? Math.min(...oe.filter(Number.isFinite)) : 0, ce = se && Math.max(...oe.filter(Number.isFinite)) - D || 1, le = (e) => se && Number.isFinite(oe[e]) ? $(m + (oe[e] - D) / ce * _) : $(m + ae * e + ae / 2), ue = se ?
|
|
11256
|
-
label:
|
|
11291
|
+
}, ee = (e) => E(w, e, S), te = (e) => E(T ?? w, e, C), ne = (e) => e.axis === "right" ? T ?? w : w, re = (e) => e.axis === "right" ? C : S, ie = e.categories.length, ae = _ / Math.max(1, ie), oe = e.xType === "time" ? e.categories.map((e) => Date.parse(e)) : null, se = !!oe && oe.some((e) => Number.isFinite(e)), D = se ? Math.min(...oe.filter(Number.isFinite)) : 0, ce = se && Math.max(...oe.filter(Number.isFinite)) - D || 1, le = (e) => se && Number.isFinite(oe[e]) ? $(m + (oe[e] - D) / ce * _) : $(m + ae * e + ae / 2), ue = se ? Ad(D, D + ce).map((e) => ({
|
|
11292
|
+
label: jd(e, ce),
|
|
11257
11293
|
x: $(m + (e - D) / ce * _)
|
|
11258
11294
|
})) : e.categories.map((e, t) => ({
|
|
11259
11295
|
label: e,
|
|
@@ -11342,15 +11378,15 @@ function Md(e, t = "light") {
|
|
|
11342
11378
|
defined: r
|
|
11343
11379
|
};
|
|
11344
11380
|
});
|
|
11345
|
-
let u = !!t.smooth, d =
|
|
11346
|
-
if (t.kind === "area" && c.length) if (l) f = `${u ?
|
|
11381
|
+
let u = !!t.smooth, d = xd(c, u), f = "";
|
|
11382
|
+
if (t.kind === "area" && c.length) if (l) f = `${u ? Sd(c.map((e) => ({
|
|
11347
11383
|
x: e.x,
|
|
11348
11384
|
y: e.y
|
|
11349
|
-
}))) : c.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${l[l.length - 1].x},${l[l.length - 1].y} ` +
|
|
11385
|
+
}))) : c.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${l[l.length - 1].x},${l[l.length - 1].y} ` + Sd(l.slice().reverse()).replace(/^M[^ ]+ /, "") : l.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`;
|
|
11350
11386
|
else {
|
|
11351
11387
|
let e = $(i(Math.min(Math.max(0, n.min), n.max))), t = [], r = [];
|
|
11352
11388
|
for (let e of c) e.defined ? r.push(e) : r.length && (t.push(r), r = []);
|
|
11353
|
-
r.length && t.push(r), f = t.map((t) => `${u ?
|
|
11389
|
+
r.length && t.push(r), f = t.map((t) => `${u ? Sd(t.map((e) => ({
|
|
11354
11390
|
x: e.x,
|
|
11355
11391
|
y: e.y
|
|
11356
11392
|
}))) : t.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} L${t[t.length - 1].x},${e} L${t[0].x},${e} Z`).join(" ");
|
|
@@ -11368,7 +11404,7 @@ function Md(e, t = "light") {
|
|
|
11368
11404
|
y: i(c)
|
|
11369
11405
|
}));
|
|
11370
11406
|
}
|
|
11371
|
-
e.length >= 2 && (p = `${u ?
|
|
11407
|
+
e.length >= 2 && (p = `${u ? Sd(e) : e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${u ? `L${n[n.length - 1].x},${n[n.length - 1].y} ` + Sd(n.slice().reverse()).replace(/^M[^ ]+ /, "") : n.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`);
|
|
11372
11408
|
}
|
|
11373
11409
|
pe.push({
|
|
11374
11410
|
path: d,
|
|
@@ -11382,19 +11418,19 @@ function Md(e, t = "light") {
|
|
|
11382
11418
|
let O = (e, t) => e.ticks.map((n) => ({
|
|
11383
11419
|
value: n,
|
|
11384
11420
|
y: E(e, n, t),
|
|
11385
|
-
label:
|
|
11421
|
+
label: Od(n)
|
|
11386
11422
|
})), ge = (e.referenceLines ?? []).map((e) => {
|
|
11387
11423
|
let t = e.axis === "right", n = t ? T ?? w : w, r = t ? C : S;
|
|
11388
11424
|
return {
|
|
11389
11425
|
y: E(n, e.value, r),
|
|
11390
|
-
label: e.label ??
|
|
11426
|
+
label: e.label ?? Od(e.value),
|
|
11391
11427
|
color: e.color ?? "#ef4444",
|
|
11392
11428
|
dashed: e.dashed !== !1
|
|
11393
11429
|
};
|
|
11394
11430
|
}), _e = [];
|
|
11395
11431
|
for (let t of o) {
|
|
11396
11432
|
if (!t.overlay) continue;
|
|
11397
|
-
let n = ne(t), r = re(t), i =
|
|
11433
|
+
let n = ne(t), r = re(t), i = Ed(t.values, t.overlay), a = t.overlayColor ?? t.color, o = i.map((t, i) => {
|
|
11398
11434
|
let a = Number.isFinite(t) && (!r || t > 0);
|
|
11399
11435
|
return {
|
|
11400
11436
|
x: le(i),
|
|
@@ -11403,7 +11439,7 @@ function Md(e, t = "light") {
|
|
|
11403
11439
|
value: t,
|
|
11404
11440
|
defined: a
|
|
11405
11441
|
};
|
|
11406
|
-
}), s =
|
|
11442
|
+
}), s = xd(o, !!t.smooth);
|
|
11407
11443
|
_e.push({
|
|
11408
11444
|
path: s,
|
|
11409
11445
|
areaPath: "",
|
|
@@ -11449,7 +11485,7 @@ function Md(e, t = "light") {
|
|
|
11449
11485
|
annotations: ve
|
|
11450
11486
|
};
|
|
11451
11487
|
}
|
|
11452
|
-
function
|
|
11488
|
+
function Pd(e, t) {
|
|
11453
11489
|
let n = t.reduce ?? "sum", r = Array.isArray(t.value) ? t.value : [t.value], i = (e, t) => n === "count" ? t : n === "avg" ? t ? e / t : 0 : e, a = [], o = /* @__PURE__ */ new Map(), s = (e) => {
|
|
11454
11490
|
let t = o.get(e);
|
|
11455
11491
|
return t === void 0 && (t = a.length, o.set(e, t), a.push(e)), t;
|
|
@@ -11514,13 +11550,13 @@ function Nd(e, t) {
|
|
|
11514
11550
|
}
|
|
11515
11551
|
//#endregion
|
|
11516
11552
|
//#region src/SvGridChart.svelte
|
|
11517
|
-
var Pd = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Reset zoom (or double-click the plot)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v6h6\"></path><path d=\"M21 17a9 9 0 0 0-15-6.7L3 13\"></path></svg> Reset zoom</button>"), Fd = /* @__PURE__ */ U("<div class=\"sv-grid-chart-toolbar svelte-hyytey\"><!> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download PNG\">PNG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download SVG\">SVG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Copy chart as image\"> </button></div>"), Id = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(45)\"><rect width=\"6\" height=\"6\"></rect><rect width=\"3\" height=\"6\" fill=\"rgba(255,255,255,0.35)\"></rect></pattern>"), Ld = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><path d=\"M0 0L6 6 M6 0L0 6\" stroke=\"rgba(255,255,255,0.45)\" stroke-width=\"1\"></path></pattern>"), Rd = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><circle cx=\"3\" cy=\"3\" r=\"1.2\" fill=\"rgba(255,255,255,0.55)\"></circle></pattern>"), zd = /* @__PURE__ */ W("<pattern width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(-45)\"><rect width=\"8\" height=\"8\"></rect><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"8\" stroke=\"rgba(0,0,0,0.18)\" stroke-width=\"2\"></line></pattern>"), Bd = /* @__PURE__ */ W("<defs></defs>"), Vd = /* @__PURE__ */ W("<line class=\"sv-grid-chart-gridline svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Hd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Ud = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Wd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Gd = /* @__PURE__ */ W("<!><!><!><!>", 1), Kd = /* @__PURE__ */ W("<line></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>", 1), qd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), Jd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Yd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), Xd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Zd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Qd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), $d = /* @__PURE__ */ W("<!><!><!><!><!><!>", 1), ef = /* @__PURE__ */ W("<path class=\"sv-grid-chart-band\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), tf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-area\" fill-opacity=\"0.15\" stroke=\"none\"></path>"), nf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), rf = /* @__PURE__ */ W("<circle></circle><!>", 1), af = /* @__PURE__ */ W("<g><!><!><path class=\"sv-grid-chart-linepath\" fill=\"none\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), of = /* @__PURE__ */ W("<text> </text>"), sf = /* @__PURE__ */ W("<text text-anchor=\"middle\"> </text>"), cf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-bar svelte-hyytey\" rx=\"1\"></rect><!>", 1), lf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-scatter svelte-hyytey\" fill-opacity=\"0.7\"></circle>"), uf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"end\"> </text>", 1), df = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"start\"> </text>", 1), ff = /* @__PURE__ */ W("<path class=\"sv-grid-chart-overlay svelte-hyytey\" fill=\"none\" stroke-width=\"2\" stroke-dasharray=\"6 4\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), pf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-annotation-marker svelte-hyytey\" r=\"4\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-hyytey\"> </text>", 1), mf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), hf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), gf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), _f = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), vf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-heatlabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), yf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-heatcell svelte-hyytey\"></rect><!>", 1), bf = /* @__PURE__ */ W("<stop></stop>"), xf = /* @__PURE__ */ W("<defs><linearGradient x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"></linearGradient></defs><rect class=\"sv-grid-chart-heatlegend svelte-hyytey\" width=\"10\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Sf = /* @__PURE__ */ W("<!><!><!><!>", 1), Cf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-funnel-seg svelte-hyytey\"></path><text class=\"sv-grid-chart-funnel-label svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-funnel-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), wf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-ring svelte-hyytey\"></circle>"), Tf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-radar-spoke svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\"> </text>", 1), Ef = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-dot svelte-hyytey\" r=\"3\"></circle>"), Df = /* @__PURE__ */ W("<path class=\"sv-grid-chart-radar-poly svelte-hyytey\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), Of = /* @__PURE__ */ W("<!><!><!>", 1), kf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), Af = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), jf = /* @__PURE__ */ W("<rect rx=\"2\"></rect>"), Mf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-calendar-legend svelte-hyytey\" width=\"10\" height=\"10\" rx=\"2\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Nf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">Less</text><!><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">More</text>", 1), Pf = /* @__PURE__ */ W("<!><!><!><!>", 1), Ff = /* @__PURE__ */ W("<line></line>"), If = /* @__PURE__ */ W("<path fill=\"none\" stroke-width=\"6\" stroke-linecap=\"round\" opacity=\"0.85\"></path>"), Lf = /* @__PURE__ */ W("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), Rf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke=\"var(--sg-border, #e2e8f0)\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path class=\"sv-grid-chart-gauge-needle svelte-hyytey\"></path><circle class=\"sv-grid-chart-gauge-hub svelte-hyytey\"></circle><circle class=\"sv-grid-chart-gauge-hub-dot svelte-hyytey\" r=\"2.5\"></circle><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-gauge-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), zf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-label svelte-hyytey\"> </text>"), Bf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-value svelte-hyytey\" opacity=\"0.85\"> </text>"), Vf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-treemap-cell svelte-hyytey\"></rect><!><!>", 1), Hf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-sankey-link svelte-hyytey\" fill=\"none\" stroke-opacity=\"0.35\"></path>"), Uf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-sankey-node svelte-hyytey\"></rect><text class=\"sv-grid-chart-sankey-label svelte-hyytey\"> </text>", 1), Wf = /* @__PURE__ */ W("<!><!>", 1), Gf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel on-bar svelte-hyytey\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), Kf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-slice svelte-hyytey\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), qf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-donut-total svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-donut-label svelte-hyytey\" text-anchor=\"middle\">Total</text>", 1), Jf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-cat-hit svelte-hyytey\"></rect>"), Yf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-zoom-rect svelte-hyytey\"></rect>"), Xf = /* @__PURE__ */ W("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Zf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), Qf = /* @__PURE__ */ W("<rect opacity=\"0.55\"></rect>"), $f = /* @__PURE__ */ W("<svg class=\"sv-grid-chart-brush svelte-hyytey\" width=\"100%\" role=\"img\" aria-label=\"Range brush\"><!><!><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-window svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect></svg>"), ep = /* @__PURE__ */ U("<div class=\"sv-grid-chart-empty svelte-hyytey\">No data</div>"), tp = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-dot svelte-hyytey\"></span>"), np = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row-label svelte-hyytey\"> </span>"), rp = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row svelte-hyytey\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-hyytey\"> </span></span>"), ip = /* @__PURE__ */ U("<div><span class=\"sv-grid-chart-tooltip-title svelte-hyytey\"> </span> <!></div>"), ap = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-chart-swatch svelte-hyytey\"></span> </button>"), op = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-hyytey\"> </button>"), sp = /* @__PURE__ */ U("<div class=\"sv-grid-chart-legend svelte-hyytey\"><!> <!></div>"), cp = /* @__PURE__ */ U("<th> </th>"), lp = /* @__PURE__ */ U("<td> </td>"), up = /* @__PURE__ */ U("<tr></tr>"), dp = /* @__PURE__ */ U("<div class=\"sv-grid-chart svelte-hyytey\"><!> <svg width=\"100%\" role=\"img\"><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!> <!> <!> <!> <table class=\"sv-grid-chart-sr-only svelte-hyytey\"><caption> </caption><thead><tr></tr></thead><tbody></tbody></table></div>"), fp = {
|
|
11553
|
+
var Fd = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Reset zoom (or double-click the plot)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v6h6\"></path><path d=\"M21 17a9 9 0 0 0-15-6.7L3 13\"></path></svg> Reset zoom</button>"), Id = /* @__PURE__ */ U("<div class=\"sv-grid-chart-toolbar svelte-hyytey\"><!> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download PNG\">PNG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download SVG\">SVG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Copy chart as image\"> </button></div>"), Ld = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(45)\"><rect width=\"6\" height=\"6\"></rect><rect width=\"3\" height=\"6\" fill=\"rgba(255,255,255,0.35)\"></rect></pattern>"), Rd = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><path d=\"M0 0L6 6 M6 0L0 6\" stroke=\"rgba(255,255,255,0.45)\" stroke-width=\"1\"></path></pattern>"), zd = /* @__PURE__ */ W("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><circle cx=\"3\" cy=\"3\" r=\"1.2\" fill=\"rgba(255,255,255,0.55)\"></circle></pattern>"), Bd = /* @__PURE__ */ W("<pattern width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(-45)\"><rect width=\"8\" height=\"8\"></rect><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"8\" stroke=\"rgba(0,0,0,0.18)\" stroke-width=\"2\"></line></pattern>"), Vd = /* @__PURE__ */ W("<defs></defs>"), Hd = /* @__PURE__ */ W("<line class=\"sv-grid-chart-gridline svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Ud = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Wd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Gd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Kd = /* @__PURE__ */ W("<!><!><!><!>", 1), qd = /* @__PURE__ */ W("<line></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>", 1), Jd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), Yd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Xd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), Zd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Qd = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), $d = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), ef = /* @__PURE__ */ W("<!><!><!><!><!><!>", 1), tf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-band\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), nf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-area\" fill-opacity=\"0.15\" stroke=\"none\"></path>"), rf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), af = /* @__PURE__ */ W("<circle></circle><!>", 1), of = /* @__PURE__ */ W("<g><!><!><path class=\"sv-grid-chart-linepath\" fill=\"none\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), sf = /* @__PURE__ */ W("<text> </text>"), cf = /* @__PURE__ */ W("<text text-anchor=\"middle\"> </text>"), lf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-bar svelte-hyytey\" rx=\"1\"></rect><!>", 1), uf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-scatter svelte-hyytey\" fill-opacity=\"0.7\"></circle>"), df = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"end\"> </text>", 1), ff = /* @__PURE__ */ W("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"start\"> </text>", 1), pf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-overlay svelte-hyytey\" fill=\"none\" stroke-width=\"2\" stroke-dasharray=\"6 4\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), mf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-annotation-marker svelte-hyytey\" r=\"4\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-hyytey\"> </text>", 1), hf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), gf = /* @__PURE__ */ W("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), _f = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), vf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), yf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-heatlabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), bf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-heatcell svelte-hyytey\"></rect><!>", 1), xf = /* @__PURE__ */ W("<stop></stop>"), Sf = /* @__PURE__ */ W("<defs><linearGradient x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"></linearGradient></defs><rect class=\"sv-grid-chart-heatlegend svelte-hyytey\" width=\"10\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Cf = /* @__PURE__ */ W("<!><!><!><!>", 1), wf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-funnel-seg svelte-hyytey\"></path><text class=\"sv-grid-chart-funnel-label svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-funnel-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Tf = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-ring svelte-hyytey\"></circle>"), Ef = /* @__PURE__ */ W("<line class=\"sv-grid-chart-radar-spoke svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\"> </text>", 1), Df = /* @__PURE__ */ W("<circle class=\"sv-grid-chart-radar-dot svelte-hyytey\" r=\"3\"></circle>"), Of = /* @__PURE__ */ W("<path class=\"sv-grid-chart-radar-poly svelte-hyytey\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), kf = /* @__PURE__ */ W("<!><!><!>", 1), Af = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), jf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), Mf = /* @__PURE__ */ W("<rect rx=\"2\"></rect>"), Nf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-calendar-legend svelte-hyytey\" width=\"10\" height=\"10\" rx=\"2\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Pf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">Less</text><!><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">More</text>", 1), Ff = /* @__PURE__ */ W("<!><!><!><!>", 1), If = /* @__PURE__ */ W("<line></line>"), Lf = /* @__PURE__ */ W("<path fill=\"none\" stroke-width=\"6\" stroke-linecap=\"round\" opacity=\"0.85\"></path>"), Rf = /* @__PURE__ */ W("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), zf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke=\"var(--sg-border, #e2e8f0)\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path class=\"sv-grid-chart-gauge-needle svelte-hyytey\"></path><circle class=\"sv-grid-chart-gauge-hub svelte-hyytey\"></circle><circle class=\"sv-grid-chart-gauge-hub-dot svelte-hyytey\" r=\"2.5\"></circle><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-gauge-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Bf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-label svelte-hyytey\"> </text>"), Vf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-treemap-value svelte-hyytey\" opacity=\"0.85\"> </text>"), Hf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-treemap-cell svelte-hyytey\"></rect><!><!>", 1), Uf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-sankey-link svelte-hyytey\" fill=\"none\" stroke-opacity=\"0.35\"></path>"), Wf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-sankey-node svelte-hyytey\"></rect><text class=\"sv-grid-chart-sankey-label svelte-hyytey\"> </text>", 1), Gf = /* @__PURE__ */ W("<!><!>", 1), Kf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-datalabel on-bar svelte-hyytey\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), qf = /* @__PURE__ */ W("<path class=\"sv-grid-chart-slice svelte-hyytey\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), Jf = /* @__PURE__ */ W("<text class=\"sv-grid-chart-donut-total svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-donut-label svelte-hyytey\" text-anchor=\"middle\">Total</text>", 1), Yf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-cat-hit svelte-hyytey\"></rect>"), Xf = /* @__PURE__ */ W("<rect class=\"sv-grid-chart-zoom-rect svelte-hyytey\"></rect>"), Zf = /* @__PURE__ */ W("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Qf = /* @__PURE__ */ W("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), $f = /* @__PURE__ */ W("<rect opacity=\"0.55\"></rect>"), ep = /* @__PURE__ */ W("<svg class=\"sv-grid-chart-brush svelte-hyytey\" width=\"100%\" role=\"img\" aria-label=\"Range brush\"><!><!><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-window svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect></svg>"), tp = /* @__PURE__ */ U("<div class=\"sv-grid-chart-empty svelte-hyytey\">No data</div>"), np = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-dot svelte-hyytey\"></span>"), rp = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row-label svelte-hyytey\"> </span>"), ip = /* @__PURE__ */ U("<span class=\"sv-grid-chart-tooltip-row svelte-hyytey\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-hyytey\"> </span></span>"), ap = /* @__PURE__ */ U("<div><span class=\"sv-grid-chart-tooltip-title svelte-hyytey\"> </span> <!></div>"), op = /* @__PURE__ */ U("<button type=\"button\"><span class=\"sv-grid-chart-swatch svelte-hyytey\"></span> </button>"), sp = /* @__PURE__ */ U("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-hyytey\"> </button>"), cp = /* @__PURE__ */ U("<div class=\"sv-grid-chart-legend svelte-hyytey\"><!> <!></div>"), lp = /* @__PURE__ */ U("<th> </th>"), up = /* @__PURE__ */ U("<td> </td>"), dp = /* @__PURE__ */ U("<tr></tr>"), fp = /* @__PURE__ */ U("<div class=\"sv-grid-chart svelte-hyytey\"><!> <svg width=\"100%\" role=\"img\"><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!> <!> <!> <!> <table class=\"sv-grid-chart-sr-only svelte-hyytey\"><caption> </caption><thead><tr></tr></thead><tbody></tbody></table></div>"), pp = {
|
|
11518
11554
|
hash: "svelte-hyytey",
|
|
11519
11555
|
code: ".sv-grid-chart.svelte-hyytey {position:relative;display:flex;flex-direction:column;gap:8px;width:100%;}.sv-grid-chart-svg.svelte-hyytey {display:block;width:100%;height:auto;}.sv-grid-chart-gridline.svelte-hyytey {stroke:var(--sg-border, #e2e8f0);stroke-width:1;opacity:0.6;}.sv-grid-chart-gridline.is-zero.svelte-hyytey {stroke:var(--sg-muted, #94a3b8);opacity:0.9;}.sv-grid-chart-axis.svelte-hyytey {fill:var(--sg-muted, #64748b);font-size:10px;font-family:inherit;}.sv-grid-chart-axis-title.svelte-hyytey {fill:var(--sg-muted, #64748b);font-size:11px;font-weight:600;font-family:inherit;}.sv-grid-chart-crosshair.svelte-hyytey {stroke:var(--sg-accent, #2563eb);stroke-width:1;stroke-dasharray:3 3;opacity:0.65;pointer-events:none;}.sv-grid-chart-refline.svelte-hyytey {stroke-width:1.5;opacity:0.9;pointer-events:none;}.sv-grid-chart-reflabel.svelte-hyytey {font-size:9.5px;font-weight:700;font-family:inherit;pointer-events:none;}.sv-grid-chart-overlay.svelte-hyytey {opacity:0.85;pointer-events:none;}.sv-grid-chart-annotation-marker.svelte-hyytey {pointer-events:none;}.sv-grid-chart-annotation-label.svelte-hyytey {font-size:10px;font-weight:700;font-family:inherit;pointer-events:none;}\n /* Heatmap cells. Stroke uses the border token (not bg) so the cell\n separators stay visible in BOTH light and dark themes - on dark mode\n a bg-colored stroke disappeared into the navy cells. */.sv-grid-chart-heatcell.svelte-hyytey {stroke:var(--sg-border, #cbd5e1);stroke-width:1;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-svg.is-clickable.svelte-hyytey .sv-grid-chart-heatcell:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-heatcell.svelte-hyytey:hover {opacity:0.85;}.sv-grid-chart-heatlabel.svelte-hyytey {font-size:10px;font-weight:600;font-family:inherit;pointer-events:none;user-select:none;}\n /* Legend gradient bar gets a visible outline + axis labels next to it\n pull from the regular axis class so they follow the theme. */.sv-grid-chart-heatlegend.svelte-hyytey {stroke:var(--sg-border, #cbd5e1);stroke-width:1;}\n /* Funnel segments + labels. */.sv-grid-chart-funnel-seg.svelte-hyytey {stroke:var(--sg-bg, #ffffff);stroke-width:2;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-svg.is-clickable.svelte-hyytey .sv-grid-chart-funnel-seg:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-funnel-seg.svelte-hyytey:hover {opacity:0.88;}.sv-grid-chart-funnel-label.svelte-hyytey {font-size:11px;font-weight:700;font-family:inherit;pointer-events:none;}.sv-grid-chart-funnel-value.svelte-hyytey {font-size:10px;font-family:inherit;opacity:0.85;pointer-events:none;}\n /* Radar grid + polygons. */.sv-grid-chart-radar-ring.svelte-hyytey {fill:none;stroke:var(--sg-border, #e2e8f0);stroke-width:1;opacity:0.6;}.sv-grid-chart-radar-spoke.svelte-hyytey {stroke:var(--sg-border, #e2e8f0);stroke-width:1;opacity:0.6;}.sv-grid-chart-radar-poly.svelte-hyytey {transition:opacity 100ms ease;pointer-events:none;}.sv-grid-chart-radar-dot.svelte-hyytey {transition:r 100ms ease;cursor:default;}.sv-grid-chart-radar-dot.svelte-hyytey:hover {r:4.5;}\n /* Calendar heatmap cells. Blank cells get a faint outline so the grid\n still reads on days with no data. */.sv-grid-chart-calendar-cell.svelte-hyytey {stroke:var(--sg-border, #e2e8f0);stroke-width:0.5;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-calendar-cell.is-blank.svelte-hyytey {stroke-opacity:0.5;}.sv-grid-chart-calendar-cell.svelte-hyytey:hover {opacity:0.85;}.sv-grid-chart-calendar-legend.svelte-hyytey {stroke:var(--sg-border, #cbd5e1);stroke-width:0.5;}\n /* Gauge centre readout. */.sv-grid-chart-gauge-value.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:22px;font-weight:800;font-family:inherit;pointer-events:none;}\n /* Gauge tick marks: faint minors, stronger majors. */.sv-grid-chart-gauge-tick.svelte-hyytey {stroke:var(--sg-muted, #94a3b8);stroke-width:1;opacity:0.4;}.sv-grid-chart-gauge-tick.is-major.svelte-hyytey {stroke-width:2;opacity:0.7;}\n /* Pointer needle + hub. */.sv-grid-chart-gauge-needle.svelte-hyytey {stroke:var(--sg-bg, #ffffff);stroke-width:0.75;stroke-linejoin:round;}.sv-grid-chart-gauge-hub.svelte-hyytey {fill:var(--sg-fg, #0f172a);stroke:var(--sg-bg, #ffffff);stroke-width:2;}.sv-grid-chart-gauge-hub-dot.svelte-hyytey {fill:var(--sg-bg, #ffffff);}\n /* Tree-map cells. White separators give the squarified rects breathing\n room without distracting from the data. */.sv-grid-chart-treemap-cell.svelte-hyytey {stroke:var(--sg-bg, #ffffff);stroke-width:1;transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-svg.is-clickable.svelte-hyytey .sv-grid-chart-treemap-cell:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-treemap-cell.svelte-hyytey:hover {opacity:0.88;}.sv-grid-chart-treemap-label.svelte-hyytey {font-size:11px;font-weight:600;font-family:inherit;pointer-events:none;}.sv-grid-chart-treemap-value.svelte-hyytey {font-size:10px;font-family:inherit;pointer-events:none;}\n /* Sankey nodes + links. Links use stroke not fill so per-ribbon width\n comes from stroke-width directly. */.sv-grid-chart-sankey-node.svelte-hyytey {transition:opacity 100ms ease;cursor:default;}.sv-grid-chart-sankey-node.svelte-hyytey:hover {opacity:0.88;}.sv-grid-chart-sankey-link.svelte-hyytey {transition:stroke-opacity 100ms ease;cursor:default;}.sv-grid-chart-sankey-link.svelte-hyytey:hover {stroke-opacity:0.6;}.sv-grid-chart-sankey-label.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:11px;font-weight:600;font-family:inherit;pointer-events:none;}\n /* Brush mini-map: a compact secondary chart with a draggable window. */.sv-grid-chart-brush.svelte-hyytey {display:block;width:100%;height:auto;margin-top:4px;border-top:1px solid var(--sg-border, #e2e8f0);user-select:none;touch-action:none;}.sv-grid-chart-brush-mask.svelte-hyytey {fill:var(--sg-bg, #ffffff);fill-opacity:0.65;pointer-events:none;}.sv-grid-chart-brush-window.svelte-hyytey {fill:var(--sg-accent, #2563eb);fill-opacity:0.10;stroke:var(--sg-accent, #2563eb);stroke-width:1;cursor:grab;}.sv-grid-chart-brush-window.svelte-hyytey:active {cursor:grabbing;}.sv-grid-chart-brush-handle.svelte-hyytey {fill:var(--sg-accent, #2563eb);fill-opacity:0.4;cursor:ew-resize;}.sv-grid-chart-brush-handle.svelte-hyytey:hover {fill-opacity:0.7;}.sv-grid-chart-scatter.svelte-hyytey {transition:opacity 0.2s ease;stroke-width:1;}.is-clickable.svelte-hyytey .sv-grid-chart-scatter:where(.svelte-hyytey),\n .sv-grid-chart-scatter.svelte-hyytey:hover {cursor:pointer;}.sv-grid-chart-cat-hit.svelte-hyytey {fill:transparent;}.sv-grid-chart-cat-hit.svelte-hyytey:focus-visible,\n .sv-grid-chart-slice.svelte-hyytey:focus-visible {outline:2px solid var(--sg-accent, #2563eb);outline-offset:1px;}.sv-grid-chart-datalabel.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:9.5px;font-weight:600;font-variant-numeric:tabular-nums;pointer-events:none;}.sv-grid-chart-datalabel.on-bar.svelte-hyytey {fill:#fff;}.sv-grid-chart-donut-total.svelte-hyytey {fill:var(--sg-fg, #0f172a);font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;}.sv-grid-chart-donut-label.svelte-hyytey {fill:var(--sg-muted, #64748b);font-size:10px;}.sv-grid-chart-bar.svelte-hyytey {transition:x 0.3s ease, y 0.3s ease, width 0.3s ease, height 0.3s ease;}.sv-grid-chart-dot.svelte-hyytey {transition:cx 0.3s ease, cy 0.3s ease;}.is-clickable.svelte-hyytey .sv-grid-chart-cat-hit:where(.svelte-hyytey),\n .is-clickable.svelte-hyytey .sv-grid-chart-slice:where(.svelte-hyytey) {cursor:pointer;}.sv-grid-chart-empty.svelte-hyytey {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--sg-muted, #94a3b8);font-size:13px;pointer-events:none;}\n\n /* Toolbar above the chart: reset-zoom, PNG / SVG / Copy. */.sv-grid-chart-toolbar.svelte-hyytey {display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap;}.sv-grid-chart-tool.svelte-hyytey {display:inline-flex;align-items:center;gap:4px;border:1px solid var(--sg-border, #cbd5e1);background:var(--sg-bg, #ffffff);color:var(--sg-fg, #1e293b);font-size:11px;font-weight:500;padding:3px 8px;border-radius:4px;cursor:pointer;transition:background-color 100ms ease, border-color 100ms ease;}.sv-grid-chart-tool.svelte-hyytey:hover {background:var(--sg-row-hover-bg, #f1f5f9);border-color:var(--sg-accent, #2563eb);}\n\n /* Drag-to-zoom: translucent accent rectangle over the plot. */.sv-grid-chart-svg.is-zoomable.svelte-hyytey {cursor:crosshair;}.sv-grid-chart-svg.is-dragging.svelte-hyytey {cursor:crosshair;user-select:none;}.sv-grid-chart-zoom-rect.svelte-hyytey {fill:var(--sg-accent, #2563eb);fill-opacity:0.12;stroke:var(--sg-accent, #2563eb);stroke-width:1;stroke-dasharray:3 3;pointer-events:none;}.sv-grid-chart-tooltip.svelte-hyytey {position:absolute;z-index:10;transform:translate(-50%, calc(-100% - 12px));pointer-events:none;white-space:nowrap;padding:6px 9px;border-radius:6px;background:var(--sg-fg, #0f172a);color:var(--sg-bg, #fff);font-size:11.5px;line-height:1.4;box-shadow:0 6px 18px rgba(0, 0, 0, 0.28);display:flex;flex-direction:column;gap:1px;}.sv-grid-chart-tooltip.is-below.svelte-hyytey {transform:translate(-50%, 16px);}.sv-grid-chart-tooltip-title.svelte-hyytey {opacity:0.75;font-size:10.5px;margin-bottom:1px;}.sv-grid-chart-tooltip-row.svelte-hyytey {display:flex;align-items:center;gap:6px;}.sv-grid-chart-tooltip-dot.svelte-hyytey {width:8px;height:8px;border-radius:2px;flex-shrink:0;}.sv-grid-chart-tooltip-row-label.svelte-hyytey {opacity:0.85;}.sv-grid-chart-tooltip-row-value.svelte-hyytey {margin-left:auto;padding-left:10px;font-weight:700;font-variant-numeric:tabular-nums;}.sv-grid-chart-legend.svelte-hyytey {display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--sg-fg, #0f172a);}.sv-grid-chart-legend-item.svelte-hyytey {display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:inherit;font:inherit;padding:1px 2px;border-radius:4px;cursor:pointer;}.sv-grid-chart-legend-item.svelte-hyytey:disabled {cursor:default;}.sv-grid-chart-legend-item.is-off.svelte-hyytey {color:var(--sg-muted, #94a3b8);text-decoration:line-through;}.sv-grid-chart-legend-item.is-isolated.svelte-hyytey {background:var(--sg-header-bg, #f1f5f9);font-weight:700;}.sv-grid-chart-legend-more.svelte-hyytey {border:1px dashed var(--sg-border, #cbd5e1);background:transparent;color:var(--sg-muted, #64748b);font:inherit;font-size:11px;padding:1px 7px;border-radius:999px;cursor:pointer;}.sv-grid-chart-legend-more.svelte-hyytey:hover {color:var(--sg-fg, #0f172a);border-color:var(--sg-accent, #2563eb);}.sv-grid-chart-sr-only.svelte-hyytey {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}.sv-grid-chart-swatch.svelte-hyytey {width:12px;height:12px;border-radius:3px;border:1.5px solid transparent;display:inline-block;box-sizing:border-box;}"
|
|
11520
11556
|
};
|
|
11521
|
-
function
|
|
11522
|
-
ft(t, !0), _i(e,
|
|
11523
|
-
let n = oa(t, "legend", 3, !0), r = oa(t, "interactive", 3, !0), i = oa(t, "dataLabels", 3, !1), a = oa(t, "zoomable", 3, !1), o = oa(t, "brush", 3, !1), s = oa(t, "brushHeight", 3, 88), c = /* @__PURE__ */ M(() => t.toolbar ?? (a() || !!t.onDrill)), l = (e) => t.formatValue ? t.formatValue(e) : Number.isFinite(e) ? e.toLocaleString(void 0, { maximumFractionDigits: 2 }) : String(e), u = /* @__PURE__ */ N(yn(/* @__PURE__ */ new Set())), d = /* @__PURE__ */ N(null), f = /* @__PURE__ */ N(null), p = /* @__PURE__ */ M(() => t.spec.palette ??
|
|
11557
|
+
function mp(e, t) {
|
|
11558
|
+
ft(t, !0), _i(e, pp);
|
|
11559
|
+
let n = oa(t, "legend", 3, !0), r = oa(t, "interactive", 3, !0), i = oa(t, "dataLabels", 3, !1), a = oa(t, "zoomable", 3, !1), o = oa(t, "brush", 3, !1), s = oa(t, "brushHeight", 3, 88), c = /* @__PURE__ */ M(() => t.toolbar ?? (a() || !!t.onDrill)), l = (e) => t.formatValue ? t.formatValue(e) : Number.isFinite(e) ? e.toLocaleString(void 0, { maximumFractionDigits: 2 }) : String(e), u = /* @__PURE__ */ N(yn(/* @__PURE__ */ new Set())), d = /* @__PURE__ */ N(null), f = /* @__PURE__ */ N(null), p = /* @__PURE__ */ M(() => t.spec.palette ?? ld), m = `svgc-${Math.random().toString(36).slice(2, 8)}`, h = /* @__PURE__ */ M(() => t.spec.series.map((e, t) => ({
|
|
11524
11560
|
...e,
|
|
11525
11561
|
color: e.color ?? B(p)[t % B(p).length]
|
|
11526
11562
|
}))), g = /* @__PURE__ */ M(() => t.spec.series.map((e, n) => e.pattern ? e.pattern : t.spec.patternFallback ? [
|
|
@@ -11609,7 +11645,7 @@ function pp(e, t) {
|
|
|
11609
11645
|
referenceLines: void 0,
|
|
11610
11646
|
annotations: void 0,
|
|
11611
11647
|
series: B(h).filter((e) => !B(y).has(e.label))
|
|
11612
|
-
})), D = /* @__PURE__ */ M(() => B(oe) ?
|
|
11648
|
+
})), D = /* @__PURE__ */ M(() => B(oe) ? Nd(B(se)) : null), ce = /* @__PURE__ */ M(() => {
|
|
11613
11649
|
let e = t.spec.categories.length;
|
|
11614
11650
|
return !B(b) || e === 0 ? {
|
|
11615
11651
|
t0: 0,
|
|
@@ -11679,7 +11715,7 @@ function pp(e, t) {
|
|
|
11679
11715
|
rowIds: e.rowIds ? i(e.rowIds) : void 0
|
|
11680
11716
|
}))
|
|
11681
11717
|
};
|
|
11682
|
-
}), he = /* @__PURE__ */ N(!1), O = /* @__PURE__ */ M(() =>
|
|
11718
|
+
}), he = /* @__PURE__ */ N(!1), O = /* @__PURE__ */ M(() => Nd(B(me), B(he) ? "dark" : "light")), ge = /* @__PURE__ */ M(() => t.spec.type !== "pie" && t.spec.type !== "heatmap" && t.spec.type !== "funnel" && t.spec.type !== "radar" && t.spec.type !== "calendar" && t.spec.type !== "gauge" && t.spec.type !== "treemap" && t.spec.type !== "sankey"), _e = /* @__PURE__ */ M(() => t.spec.type === "scatter"), ve = /* @__PURE__ */ M(() => t.spec.type === "heatmap"), ye = /* @__PURE__ */ M(() => t.spec.type === "funnel"), be = /* @__PURE__ */ M(() => t.spec.type === "radar"), xe = /* @__PURE__ */ M(() => t.spec.type === "calendar"), Se = /* @__PURE__ */ M(() => t.spec.type === "gauge"), Ce = /* @__PURE__ */ M(() => t.spec.type === "treemap"), we = /* @__PURE__ */ M(() => t.spec.type === "sankey"), Te = /* @__PURE__ */ M(() => B(O).orientation === "horizontal"), Ee = /* @__PURE__ */ M(() => (B(Te) ? B(O).plot.h : B(O).plot.w) / Math.max(1, B(me).categories.length)), De = (e) => B(f) && B(f) !== e ? .18 : 1, Oe = /* @__PURE__ */ M(() => t.spec.type === "pie" ? t.spec.categories.map((e, t) => ({
|
|
11683
11719
|
label: e,
|
|
11684
11720
|
color: B(p)[t % B(p).length],
|
|
11685
11721
|
off: B(u).has(e)
|
|
@@ -11951,9 +11987,9 @@ function pp(e, t) {
|
|
|
11951
11987
|
}
|
|
11952
11988
|
setTimeout(() => P(tt, "idle"), 1500);
|
|
11953
11989
|
}
|
|
11954
|
-
var ct =
|
|
11955
|
-
var t =
|
|
11956
|
-
var t =
|
|
11990
|
+
var ct = fp(), lt = F(ct), ut = (e) => {
|
|
11991
|
+
var t = Id(), n = F(t), r = (e) => {
|
|
11992
|
+
var t = Fd();
|
|
11957
11993
|
H("click", t, S), K(e, t);
|
|
11958
11994
|
};
|
|
11959
11995
|
J(n, (e) => {
|
|
@@ -11968,25 +12004,25 @@ function pp(e, t) {
|
|
|
11968
12004
|
var dt = L(lt, 2);
|
|
11969
12005
|
let mt;
|
|
11970
12006
|
var ht = F(dt), gt = (e) => {
|
|
11971
|
-
var t =
|
|
12007
|
+
var t = Vd();
|
|
11972
12008
|
Y(t, 21, () => B(v), (e) => e.id, (e, t) => {
|
|
11973
12009
|
var n = G(), r = I(n), i = (e) => {
|
|
11974
|
-
var n =
|
|
12010
|
+
var n = Ld(), r = F(n);
|
|
11975
12011
|
nt(), A(n), R(() => {
|
|
11976
12012
|
Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
|
|
11977
12013
|
}), K(e, n);
|
|
11978
12014
|
}, a = (e) => {
|
|
11979
|
-
var n =
|
|
12015
|
+
var n = Rd(), r = F(n);
|
|
11980
12016
|
nt(), A(n), R(() => {
|
|
11981
12017
|
Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
|
|
11982
12018
|
}), K(e, n);
|
|
11983
12019
|
}, o = (e) => {
|
|
11984
|
-
var n =
|
|
12020
|
+
var n = zd(), r = F(n);
|
|
11985
12021
|
nt(), A(n), R(() => {
|
|
11986
12022
|
Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
|
|
11987
12023
|
}), K(e, n);
|
|
11988
12024
|
}, s = (e) => {
|
|
11989
|
-
var n =
|
|
12025
|
+
var n = Bd(), r = F(n);
|
|
11990
12026
|
nt(), A(n), R(() => {
|
|
11991
12027
|
Q(n, "id", B(t).id), Q(r, "fill", B(t).color);
|
|
11992
12028
|
}), K(e, n);
|
|
@@ -12000,22 +12036,22 @@ function pp(e, t) {
|
|
|
12000
12036
|
B(v).length && e(gt);
|
|
12001
12037
|
});
|
|
12002
12038
|
var _t = L(ht), vt = (e) => {
|
|
12003
|
-
var n =
|
|
12039
|
+
var n = Kd(), r = I(n);
|
|
12004
12040
|
Y(r, 17, () => B(O).valueTicks, (e) => e.label + e.x, (e, t) => {
|
|
12005
|
-
var n =
|
|
12041
|
+
var n = Hd(), r = I(n), i = L(r), a = F(i, !0);
|
|
12006
12042
|
A(i), R(() => {
|
|
12007
12043
|
Q(r, "x1", B(t).x), Q(r, "y1", B(O).plot.y), Q(r, "x2", B(t).x), Q(r, "y2", B(O).plot.y + B(O).plot.h), Q(i, "x", B(t).x), Q(i, "y", B(O).plot.y + B(O).plot.h + 14), q(a, B(t).label);
|
|
12008
12044
|
}), K(e, n);
|
|
12009
12045
|
});
|
|
12010
12046
|
var i = L(r);
|
|
12011
12047
|
Y(i, 17, () => B(O).catTicks, (e) => e.value, (e, t) => {
|
|
12012
|
-
var n =
|
|
12048
|
+
var n = Ud(), r = F(n, !0);
|
|
12013
12049
|
A(n), R((e) => {
|
|
12014
12050
|
Q(n, "x", B(O).plot.x - 6), Q(n, "y", B(t).y + 3), q(r, e);
|
|
12015
12051
|
}, [() => Ie(B(t).label, 18)]), K(e, n);
|
|
12016
12052
|
});
|
|
12017
12053
|
var a = L(i), o = (e) => {
|
|
12018
|
-
var n =
|
|
12054
|
+
var n = Wd();
|
|
12019
12055
|
Q(n, "x", 13);
|
|
12020
12056
|
var r = F(n, !0);
|
|
12021
12057
|
A(n), R(() => {
|
|
@@ -12026,7 +12062,7 @@ function pp(e, t) {
|
|
|
12026
12062
|
t.spec.yAxisTitle && e(o);
|
|
12027
12063
|
});
|
|
12028
12064
|
var s = L(a), c = (e) => {
|
|
12029
|
-
var n =
|
|
12065
|
+
var n = Gd(), r = F(n, !0);
|
|
12030
12066
|
A(n), R(() => {
|
|
12031
12067
|
Q(n, "x", B(O).plot.x + B(O).plot.w / 2), Q(n, "y", B(O).height - 3), q(r, t.spec.xAxisTitle);
|
|
12032
12068
|
}), K(e, n);
|
|
@@ -12035,9 +12071,9 @@ function pp(e, t) {
|
|
|
12035
12071
|
t.spec.xAxisTitle && e(c);
|
|
12036
12072
|
}), K(e, n);
|
|
12037
12073
|
}, yt = (e) => {
|
|
12038
|
-
var n =
|
|
12074
|
+
var n = ef(), r = I(n);
|
|
12039
12075
|
Y(r, 17, () => B(O).yTicks, (e) => e.value, (e, t) => {
|
|
12040
|
-
var n =
|
|
12076
|
+
var n = qd(), r = I(n);
|
|
12041
12077
|
let i;
|
|
12042
12078
|
var a = L(r), o = F(a, !0);
|
|
12043
12079
|
A(a), R((e) => {
|
|
@@ -12047,7 +12083,7 @@ function pp(e, t) {
|
|
|
12047
12083
|
var i = L(r), a = (e) => {
|
|
12048
12084
|
var t = G();
|
|
12049
12085
|
Y(I(t), 17, () => B(O).y2Ticks, (e) => e.value, (e, t) => {
|
|
12050
|
-
var n =
|
|
12086
|
+
var n = Jd(), r = F(n, !0);
|
|
12051
12087
|
A(n), R((e) => {
|
|
12052
12088
|
Q(n, "x", B(O).plot.x + B(O).plot.w + 6), Q(n, "y", B(t).y + 3), q(r, e);
|
|
12053
12089
|
}, [() => Le(B(t).value, B(t).label)]), K(e, n);
|
|
@@ -12059,12 +12095,12 @@ function pp(e, t) {
|
|
|
12059
12095
|
var o = L(i);
|
|
12060
12096
|
Y(o, 17, () => B(O).xTicks, (e) => e.label + e.x, (e, t) => {
|
|
12061
12097
|
var n = G(), r = I(n), i = (e) => {
|
|
12062
|
-
var n =
|
|
12098
|
+
var n = Yd(), r = F(n, !0);
|
|
12063
12099
|
A(n), R((e) => {
|
|
12064
12100
|
Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y + B(O).plot.h + 12), Q(n, "transform", `rotate(-40 ${B(t).x} ${B(O).plot.y + B(O).plot.h + 12})`), q(r, e);
|
|
12065
12101
|
}, [() => Ie(B(t).label)]), K(e, n);
|
|
12066
12102
|
}, a = (e) => {
|
|
12067
|
-
var n =
|
|
12103
|
+
var n = Xd(), r = F(n, !0);
|
|
12068
12104
|
A(n), R((e) => {
|
|
12069
12105
|
Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y + B(O).plot.h + 16), q(r, e);
|
|
12070
12106
|
}, [() => Ie(B(t).label, 16)]), K(e, n);
|
|
@@ -12074,7 +12110,7 @@ function pp(e, t) {
|
|
|
12074
12110
|
}), K(e, n);
|
|
12075
12111
|
});
|
|
12076
12112
|
var s = L(o), c = (e) => {
|
|
12077
|
-
var n =
|
|
12113
|
+
var n = Zd();
|
|
12078
12114
|
Q(n, "x", 13);
|
|
12079
12115
|
var r = F(n, !0);
|
|
12080
12116
|
A(n), R(() => {
|
|
@@ -12085,7 +12121,7 @@ function pp(e, t) {
|
|
|
12085
12121
|
t.spec.yAxisTitle && e(c);
|
|
12086
12122
|
});
|
|
12087
12123
|
var l = L(s), u = (e) => {
|
|
12088
|
-
var n =
|
|
12124
|
+
var n = Qd(), r = F(n, !0);
|
|
12089
12125
|
A(n), R(() => {
|
|
12090
12126
|
Q(n, "x", B(O).width - 5), Q(n, "y", B(O).plot.y + B(O).plot.h / 2), Q(n, "transform", `rotate(90 ${B(O).width - 5} ${B(O).plot.y + B(O).plot.h / 2})`), q(r, t.spec.y2AxisTitle);
|
|
12091
12127
|
}), K(e, n);
|
|
@@ -12094,7 +12130,7 @@ function pp(e, t) {
|
|
|
12094
12130
|
t.spec.y2AxisTitle && e(u);
|
|
12095
12131
|
});
|
|
12096
12132
|
var d = L(l), f = (e) => {
|
|
12097
|
-
var n =
|
|
12133
|
+
var n = $d(), r = F(n, !0);
|
|
12098
12134
|
A(n), R(() => {
|
|
12099
12135
|
Q(n, "x", B(O).plot.x + B(O).plot.w / 2), Q(n, "y", B(O).height - 3), q(r, t.spec.xAxisTitle);
|
|
12100
12136
|
}), K(e, n);
|
|
@@ -12108,8 +12144,8 @@ function pp(e, t) {
|
|
|
12108
12144
|
});
|
|
12109
12145
|
var bt = L(_t);
|
|
12110
12146
|
Y(bt, 19, () => B(O).lines, (e, t) => e.label + t, (e, t) => {
|
|
12111
|
-
var n =
|
|
12112
|
-
var n =
|
|
12147
|
+
var n = of(), r = F(n), a = (e) => {
|
|
12148
|
+
var n = tf();
|
|
12113
12149
|
R(() => {
|
|
12114
12150
|
Q(n, "d", B(t).bandPath), Q(n, "fill", B(t).color);
|
|
12115
12151
|
}), K(e, n);
|
|
@@ -12118,7 +12154,7 @@ function pp(e, t) {
|
|
|
12118
12154
|
B(t).bandPath && e(a);
|
|
12119
12155
|
});
|
|
12120
12156
|
var o = L(r), s = (e) => {
|
|
12121
|
-
var n =
|
|
12157
|
+
var n = nf();
|
|
12122
12158
|
R(() => {
|
|
12123
12159
|
Q(n, "d", B(t).areaPath), Q(n, "fill", B(_)[B(t).label] ?? B(t).color);
|
|
12124
12160
|
}), K(e, n);
|
|
@@ -12129,10 +12165,10 @@ function pp(e, t) {
|
|
|
12129
12165
|
var c = L(o);
|
|
12130
12166
|
Y(L(c), 17, () => B(t).points, si, (e, n, r) => {
|
|
12131
12167
|
var a = G(), o = I(a), s = (e) => {
|
|
12132
|
-
var a =
|
|
12168
|
+
var a = af(), o = I(a);
|
|
12133
12169
|
let s;
|
|
12134
12170
|
var c = L(o), u = (e) => {
|
|
12135
|
-
var t =
|
|
12171
|
+
var t = rf(), r = F(t, !0);
|
|
12136
12172
|
A(t), R((e) => {
|
|
12137
12173
|
Q(t, "x", B(n).x), Q(t, "y", B(n).y - 7), q(r, e);
|
|
12138
12174
|
}, [() => l(B(n).value)]), K(e, t);
|
|
@@ -12152,15 +12188,15 @@ function pp(e, t) {
|
|
|
12152
12188
|
});
|
|
12153
12189
|
var xt = L(bt);
|
|
12154
12190
|
Y(xt, 17, () => B(O).bars, si, (e, n) => {
|
|
12155
|
-
var r =
|
|
12156
|
-
var r =
|
|
12191
|
+
var r = lf(), a = I(r), o = L(a), s = (e) => {
|
|
12192
|
+
var r = sf();
|
|
12157
12193
|
let i;
|
|
12158
12194
|
var a = F(r, !0);
|
|
12159
12195
|
A(r), R((e) => {
|
|
12160
12196
|
i = X(r, 0, "sv-grid-chart-datalabel svelte-hyytey", null, i, { "on-bar": t.spec.stacked || t.spec.stacked100 }), Q(r, "x", t.spec.stacked || t.spec.stacked100 ? B(n).x + B(n).w / 2 : B(n).value >= 0 ? B(n).x + B(n).w + 3 : B(n).x - 3), Q(r, "y", B(n).y + B(n).h / 2 + 3), Q(r, "text-anchor", t.spec.stacked || t.spec.stacked100 ? "middle" : B(n).value >= 0 ? "start" : "end"), q(a, e);
|
|
12161
12197
|
}, [() => l(B(n).value)]), K(e, r);
|
|
12162
12198
|
}, c = (e) => {
|
|
12163
|
-
var r =
|
|
12199
|
+
var r = cf();
|
|
12164
12200
|
let i;
|
|
12165
12201
|
var a = F(r, !0);
|
|
12166
12202
|
A(r), R((e) => {
|
|
@@ -12175,28 +12211,28 @@ function pp(e, t) {
|
|
|
12175
12211
|
});
|
|
12176
12212
|
var St = L(xt);
|
|
12177
12213
|
Y(St, 17, () => B(O).scatterPoints, si, (e, t) => {
|
|
12178
|
-
var n =
|
|
12214
|
+
var n = uf();
|
|
12179
12215
|
R((e) => {
|
|
12180
12216
|
Q(n, "cx", B(t).cx), Q(n, "cy", B(t).cy), Q(n, "r", B(t).r), Q(n, "fill", B(t).color), Q(n, "stroke", B(t).color), Z(n, e);
|
|
12181
12217
|
}, [() => `opacity:${De(B(t).series)}`]), H("mousemove", n, (e) => Je(e.clientX, e.clientY, B(t))), V("mouseleave", n, Ke), K(e, n);
|
|
12182
12218
|
});
|
|
12183
12219
|
var Ct = L(St);
|
|
12184
12220
|
Y(Ct, 17, () => B(O).referenceLines, si, (e, t) => {
|
|
12185
|
-
var n =
|
|
12221
|
+
var n = df(), r = I(n), i = L(r), a = F(i, !0);
|
|
12186
12222
|
A(i), R(() => {
|
|
12187
12223
|
Q(r, "x1", B(O).plot.x), Q(r, "y1", B(t).y), Q(r, "x2", B(O).plot.x + B(O).plot.w), Q(r, "y2", B(t).y), Q(r, "stroke", B(t).color), Q(r, "stroke-dasharray", B(t).dashed ? "5 4" : void 0), Q(i, "x", B(O).plot.x + B(O).plot.w - 3), Q(i, "y", B(t).y - 3), Q(i, "fill", B(t).color), q(a, B(t).label);
|
|
12188
12224
|
}), K(e, n);
|
|
12189
12225
|
});
|
|
12190
12226
|
var wt = L(Ct);
|
|
12191
12227
|
Y(wt, 17, () => B(O).referenceLinesV, si, (e, t) => {
|
|
12192
|
-
var n =
|
|
12228
|
+
var n = ff(), r = I(n), i = L(r), a = F(i, !0);
|
|
12193
12229
|
A(i), R(() => {
|
|
12194
12230
|
Q(r, "x1", B(t).x), Q(r, "y1", B(O).plot.y), Q(r, "x2", B(t).x), Q(r, "y2", B(O).plot.y + B(O).plot.h), Q(r, "stroke", B(t).color), Q(r, "stroke-dasharray", B(t).dashed ? "5 4" : void 0), Q(i, "x", B(t).x + 3), Q(i, "y", B(O).plot.y + 9), Q(i, "fill", B(t).color), q(a, B(t).label);
|
|
12195
12231
|
}), K(e, n);
|
|
12196
12232
|
});
|
|
12197
12233
|
var Tt = L(wt);
|
|
12198
12234
|
Y(Tt, 19, () => B(O).overlays, (e, t) => e.label + t, (e, t) => {
|
|
12199
|
-
var n =
|
|
12235
|
+
var n = pf();
|
|
12200
12236
|
R(() => {
|
|
12201
12237
|
Q(n, "d", B(t).path), Q(n, "stroke", B(t).color);
|
|
12202
12238
|
}), K(e, n);
|
|
@@ -12204,7 +12240,7 @@ function pp(e, t) {
|
|
|
12204
12240
|
var Et = L(Tt);
|
|
12205
12241
|
Y(Et, 19, () => B(O).annotations, (e, t) => e.label + t, (e, t) => {
|
|
12206
12242
|
let n = /* @__PURE__ */ M(() => B(t).placement === "left" ? -8 : B(t).placement === "right" ? 8 : 0), r = /* @__PURE__ */ M(() => B(t).placement === "bottom" ? 14 : B(t).placement === "top" ? -8 : 0), i = /* @__PURE__ */ M(() => B(t).placement === "left" ? "end" : B(t).placement === "right" ? "start" : "middle");
|
|
12207
|
-
var a =
|
|
12243
|
+
var a = mf(), o = I(a), s = L(o), c = F(s, !0);
|
|
12208
12244
|
A(s), R(() => {
|
|
12209
12245
|
Q(o, "cx", B(t).x), Q(o, "cy", B(t).y), Q(o, "fill", B(t).color), Q(s, "x", B(t).x + B(n)), Q(s, "y", B(t).y + B(r)), Q(s, "text-anchor", B(i)), Q(s, "fill", B(t).color), q(c, B(t).label);
|
|
12210
12246
|
}), K(e, a);
|
|
@@ -12212,13 +12248,13 @@ function pp(e, t) {
|
|
|
12212
12248
|
var Dt = L(Et), Ot = (e) => {
|
|
12213
12249
|
var t = G(), n = I(t), r = (e) => {
|
|
12214
12250
|
let t = /* @__PURE__ */ M(() => B(O).plot.y + B(Ee) * B(Ve) + B(Ee) / 2);
|
|
12215
|
-
var n =
|
|
12251
|
+
var n = hf();
|
|
12216
12252
|
R(() => {
|
|
12217
12253
|
Q(n, "x1", B(O).plot.x), Q(n, "y1", B(t)), Q(n, "x2", B(O).plot.x + B(O).plot.w), Q(n, "y2", B(t));
|
|
12218
12254
|
}), K(e, n);
|
|
12219
12255
|
}, i = (e) => {
|
|
12220
12256
|
let t = /* @__PURE__ */ M(() => B(O).lines[0]?.points[B(Ve)]), n = /* @__PURE__ */ M(() => B(t) && Number.isFinite(B(t).x) ? B(t).x : B(O).plot.x + B(Ee) * B(Ve) + B(Ee) / 2);
|
|
12221
|
-
var r =
|
|
12257
|
+
var r = gf();
|
|
12222
12258
|
R(() => {
|
|
12223
12259
|
Q(r, "x1", B(n)), Q(r, "y1", B(O).plot.y), Q(r, "x2", B(n)), Q(r, "y2", B(O).plot.y + B(O).plot.h);
|
|
12224
12260
|
}), K(e, r);
|
|
@@ -12231,24 +12267,24 @@ function pp(e, t) {
|
|
|
12231
12267
|
B(ge) && B(Ve) !== null && e(Ot);
|
|
12232
12268
|
});
|
|
12233
12269
|
var kt = L(Dt), At = (e) => {
|
|
12234
|
-
var n =
|
|
12270
|
+
var n = Cf(), r = I(n);
|
|
12235
12271
|
Y(r, 17, () => B(O).heatmapRowTicks, (e) => e.value, (e, t) => {
|
|
12236
|
-
var n =
|
|
12272
|
+
var n = _f(), r = F(n, !0);
|
|
12237
12273
|
A(n), R((e) => {
|
|
12238
12274
|
Q(n, "x", B(O).plot.x - 8), Q(n, "y", B(t).y + 3), q(r, e);
|
|
12239
12275
|
}, [() => Ie(B(t).label, 22)]), K(e, n);
|
|
12240
12276
|
});
|
|
12241
12277
|
var a = L(r);
|
|
12242
12278
|
Y(a, 19, () => B(O).heatmapColTicks, (e, t) => e.label + t, (e, t) => {
|
|
12243
|
-
var n =
|
|
12279
|
+
var n = vf(), r = F(n, !0);
|
|
12244
12280
|
A(n), R((e) => {
|
|
12245
12281
|
Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y + B(O).plot.h + 14), q(r, e);
|
|
12246
12282
|
}, [() => Ie(B(t).label, 14)]), K(e, n);
|
|
12247
12283
|
});
|
|
12248
12284
|
var o = L(a);
|
|
12249
12285
|
Y(o, 17, () => B(O).heatmapCells, si, (e, n) => {
|
|
12250
|
-
var r =
|
|
12251
|
-
var t =
|
|
12286
|
+
var r = bf(), a = I(r), o = L(a), s = (e) => {
|
|
12287
|
+
var t = yf(), r = F(t, !0);
|
|
12252
12288
|
A(t), R((e) => {
|
|
12253
12289
|
Q(t, "x", B(n).x + B(n).w / 2), Q(t, "y", B(n).y + B(n).h / 2 + 3), Q(t, "fill", B(n).textColor), q(r, e);
|
|
12254
12290
|
}, [() => l(B(n).value)]), K(e, t);
|
|
@@ -12261,9 +12297,9 @@ function pp(e, t) {
|
|
|
12261
12297
|
});
|
|
12262
12298
|
var s = L(o), c = (e) => {
|
|
12263
12299
|
let t = /* @__PURE__ */ M(() => B(O).plot.x + B(O).plot.w + 14), n = /* @__PURE__ */ M(() => B(O).plot.h - 20), r = /* @__PURE__ */ M(() => B(O).heatmapLegend);
|
|
12264
|
-
var i =
|
|
12300
|
+
var i = Sf(), a = I(i), o = F(a);
|
|
12265
12301
|
Y(o, 21, () => B(r), si, (e, t, n) => {
|
|
12266
|
-
var i =
|
|
12302
|
+
var i = xf();
|
|
12267
12303
|
R(() => {
|
|
12268
12304
|
Q(i, "offset", `${n / (B(r).length - 1) * 100}%`), Q(i, "stop-color", B(t).color);
|
|
12269
12305
|
}), K(e, i);
|
|
@@ -12285,7 +12321,7 @@ function pp(e, t) {
|
|
|
12285
12321
|
var j = L(kt), jt = (e) => {
|
|
12286
12322
|
var n = G();
|
|
12287
12323
|
Y(I(n), 17, () => B(O).funnelSegments, si, (e, n, r) => {
|
|
12288
|
-
var i =
|
|
12324
|
+
var i = wf(), a = I(i), o = L(a), s = F(o, !0);
|
|
12289
12325
|
A(o);
|
|
12290
12326
|
var c = L(o), u = F(c);
|
|
12291
12327
|
A(c), R((e, r, i, l) => {
|
|
@@ -12303,10 +12339,10 @@ function pp(e, t) {
|
|
|
12303
12339
|
});
|
|
12304
12340
|
var Mt = L(j), Nt = (e) => {
|
|
12305
12341
|
let t = /* @__PURE__ */ M(() => B(O).radarCenter);
|
|
12306
|
-
var n =
|
|
12342
|
+
var n = kf(), r = I(n);
|
|
12307
12343
|
Y(r, 17, () => B(O).radarRings, si, (e, n, r) => {
|
|
12308
12344
|
let i = /* @__PURE__ */ M(() => B(t).r * ((r + 1) / B(O).radarRings.length));
|
|
12309
|
-
var a =
|
|
12345
|
+
var a = Tf();
|
|
12310
12346
|
R(() => {
|
|
12311
12347
|
Q(a, "cx", B(t).cx), Q(a, "cy", B(t).cy), Q(a, "r", B(i));
|
|
12312
12348
|
}), K(e, a);
|
|
@@ -12314,14 +12350,14 @@ function pp(e, t) {
|
|
|
12314
12350
|
var i = L(r);
|
|
12315
12351
|
Y(i, 17, () => B(O).radarAxes, si, (e, n) => {
|
|
12316
12352
|
let r = /* @__PURE__ */ M(() => B(n).x - B(t).cx), i = /* @__PURE__ */ M(() => B(n).y - B(t).cy), a = /* @__PURE__ */ M(() => B(t).cx + B(r) * 1.08), o = /* @__PURE__ */ M(() => B(t).cy + B(i) * 1.08);
|
|
12317
|
-
var s =
|
|
12353
|
+
var s = Ef(), c = I(s), l = L(c), u = F(l, !0);
|
|
12318
12354
|
A(l), R((e) => {
|
|
12319
12355
|
Q(c, "x1", B(t).cx), Q(c, "y1", B(t).cy), Q(c, "x2", B(n).x), Q(c, "y2", B(n).y), Q(l, "x", B(a)), Q(l, "y", B(o) + 3), Q(l, "text-anchor", e), q(u, B(n).label);
|
|
12320
12356
|
}, [() => Math.abs(B(r)) < 1 ? "middle" : B(r) > 0 ? "start" : "end"]), K(e, s);
|
|
12321
12357
|
}), Y(L(i), 17, () => B(O).radarSeries, si, (e, t) => {
|
|
12322
|
-
var n =
|
|
12358
|
+
var n = Of(), r = I(n);
|
|
12323
12359
|
Y(L(r), 17, () => B(t).points, si, (e, n) => {
|
|
12324
|
-
var r =
|
|
12360
|
+
var r = Df();
|
|
12325
12361
|
R(() => {
|
|
12326
12362
|
Q(r, "cx", B(n).x), Q(r, "cy", B(n).y), Q(r, "fill", B(t).color);
|
|
12327
12363
|
}), H("mousemove", r, (e) => Ze(e.clientX, e.clientY, B(t).label, B(n).axis, B(n).value, B(t).color)), V("mouseleave", r, Ke), K(e, r);
|
|
@@ -12334,9 +12370,9 @@ function pp(e, t) {
|
|
|
12334
12370
|
B(be) && B(O).radarCenter && e(Nt);
|
|
12335
12371
|
});
|
|
12336
12372
|
var Pt = L(Mt), Ft = (e) => {
|
|
12337
|
-
var t =
|
|
12373
|
+
var t = Ff(), n = I(t);
|
|
12338
12374
|
Y(n, 17, () => B(O).calendarMonthTicks, si, (e, t) => {
|
|
12339
|
-
var n =
|
|
12375
|
+
var n = Af(), r = F(n, !0);
|
|
12340
12376
|
A(n), R(() => {
|
|
12341
12377
|
Q(n, "x", B(t).x), Q(n, "y", B(O).plot.y - 8), q(r, B(t).label);
|
|
12342
12378
|
}), K(e, n);
|
|
@@ -12353,7 +12389,7 @@ function pp(e, t) {
|
|
|
12353
12389
|
5
|
|
12354
12390
|
][n]), i = /* @__PURE__ */ M(() => B(O).calendarCells[B(r)]);
|
|
12355
12391
|
var a = G(), o = I(a), s = (e) => {
|
|
12356
|
-
var n =
|
|
12392
|
+
var n = jf(), r = F(n, !0);
|
|
12357
12393
|
A(n), R(() => {
|
|
12358
12394
|
Q(n, "x", B(O).plot.x - 6), Q(n, "y", B(i).y + B(i).size / 2 + 3), q(r, t);
|
|
12359
12395
|
}), K(e, n);
|
|
@@ -12364,7 +12400,7 @@ function pp(e, t) {
|
|
|
12364
12400
|
});
|
|
12365
12401
|
var i = L(r);
|
|
12366
12402
|
Y(i, 17, () => B(O).calendarCells, si, (e, t) => {
|
|
12367
|
-
var n =
|
|
12403
|
+
var n = Mf();
|
|
12368
12404
|
let r;
|
|
12369
12405
|
R((e) => {
|
|
12370
12406
|
r = X(n, 0, "sv-grid-chart-calendar-cell svelte-hyytey", null, r, { "is-blank": !B(t).defined }), Q(n, "x", B(t).x + 1), Q(n, "y", B(t).y + 1), Q(n, "width", B(t).size - 2), Q(n, "height", B(t).size - 2), Q(n, "fill", B(t).defined ? B(t).color : "transparent"), Q(n, "aria-label", e);
|
|
@@ -12375,9 +12411,9 @@ function pp(e, t) {
|
|
|
12375
12411
|
});
|
|
12376
12412
|
var a = L(i), o = (e) => {
|
|
12377
12413
|
let t = /* @__PURE__ */ M(() => B(O).plot.x + B(O).plot.w + 12), n = /* @__PURE__ */ M(() => B(O).plot.y + 4);
|
|
12378
|
-
var r =
|
|
12414
|
+
var r = Pf(), i = I(r), a = L(i);
|
|
12379
12415
|
Y(a, 17, () => B(O).calendarLegend, si, (e, r, i) => {
|
|
12380
|
-
var a =
|
|
12416
|
+
var a = Nf(), o = I(a), s = L(o), c = F(s, !0);
|
|
12381
12417
|
A(s), R(() => {
|
|
12382
12418
|
Q(o, "x", B(t)), Q(o, "y", B(n) + 6 + i * 13), Q(o, "fill", B(r).color), Q(s, "x", B(t) + 14), Q(s, "y", B(n) + 14 + i * 13), q(c, B(r).label);
|
|
12383
12419
|
}), K(e, a);
|
|
@@ -12396,9 +12432,9 @@ function pp(e, t) {
|
|
|
12396
12432
|
});
|
|
12397
12433
|
var It = L(Pt), Lt = (e) => {
|
|
12398
12434
|
let t = /* @__PURE__ */ M(() => B(O).gauge);
|
|
12399
|
-
var n =
|
|
12435
|
+
var n = zf(), r = I(n);
|
|
12400
12436
|
Y(r, 17, () => B(t).ticks, si, (e, t) => {
|
|
12401
|
-
var n =
|
|
12437
|
+
var n = If();
|
|
12402
12438
|
let r;
|
|
12403
12439
|
R(() => {
|
|
12404
12440
|
r = X(n, 0, "sv-grid-chart-gauge-tick svelte-hyytey", null, r, { "is-major": B(t).major }), Q(n, "x1", B(t).x1), Q(n, "y1", B(t).y1), Q(n, "x2", B(t).x2), Q(n, "y2", B(t).y2);
|
|
@@ -12406,13 +12442,13 @@ function pp(e, t) {
|
|
|
12406
12442
|
});
|
|
12407
12443
|
var i = L(r), a = L(i);
|
|
12408
12444
|
Y(a, 17, () => B(t).rangePaths, si, (e, t) => {
|
|
12409
|
-
var n =
|
|
12445
|
+
var n = Lf();
|
|
12410
12446
|
R(() => {
|
|
12411
12447
|
Q(n, "d", B(t).path), Q(n, "stroke", B(t).color);
|
|
12412
12448
|
}), K(e, n);
|
|
12413
12449
|
});
|
|
12414
12450
|
var o = L(a), s = L(o), c = (e) => {
|
|
12415
|
-
var n =
|
|
12451
|
+
var n = Rf();
|
|
12416
12452
|
R(() => {
|
|
12417
12453
|
Q(n, "x1", B(t).target.x1), Q(n, "y1", B(t).target.y1), Q(n, "x2", B(t).target.x2), Q(n, "y2", B(t).target.y2);
|
|
12418
12454
|
}), K(e, n);
|
|
@@ -12439,8 +12475,8 @@ function pp(e, t) {
|
|
|
12439
12475
|
var Rt = L(It), zt = (e) => {
|
|
12440
12476
|
var t = G();
|
|
12441
12477
|
Y(I(t), 17, () => B(O).treemapCells, si, (e, t) => {
|
|
12442
|
-
var n =
|
|
12443
|
-
var n =
|
|
12478
|
+
var n = Hf(), r = I(n), i = L(r), a = (e) => {
|
|
12479
|
+
var n = Bf(), r = F(n, !0);
|
|
12444
12480
|
A(n), R((e) => {
|
|
12445
12481
|
Q(n, "x", B(t).x + 4), Q(n, "y", B(t).y + 12), Q(n, "fill", B(t).textColor), q(r, e);
|
|
12446
12482
|
}, [() => Ie(B(t).name, Math.max(3, Math.floor(B(t).w / 7)))]), K(e, n);
|
|
@@ -12449,7 +12485,7 @@ function pp(e, t) {
|
|
|
12449
12485
|
B(t).w > 36 && B(t).h > 18 && e(a);
|
|
12450
12486
|
});
|
|
12451
12487
|
var o = L(i), s = (e) => {
|
|
12452
|
-
var n =
|
|
12488
|
+
var n = Vf(), r = F(n, !0);
|
|
12453
12489
|
A(n), R((e) => {
|
|
12454
12490
|
Q(n, "x", B(t).x + 4), Q(n, "y", B(t).y + 24), Q(n, "fill", B(t).textColor), q(r, e);
|
|
12455
12491
|
}, [() => l(B(t).value)]), K(e, n);
|
|
@@ -12468,9 +12504,9 @@ function pp(e, t) {
|
|
|
12468
12504
|
B(Ce) && e(zt);
|
|
12469
12505
|
});
|
|
12470
12506
|
var Bt = L(Rt), Vt = (e) => {
|
|
12471
|
-
var t =
|
|
12507
|
+
var t = Gf(), n = I(t);
|
|
12472
12508
|
Y(n, 17, () => B(O).sankeyLinks, si, (e, t) => {
|
|
12473
|
-
var n =
|
|
12509
|
+
var n = Uf();
|
|
12474
12510
|
R((e) => {
|
|
12475
12511
|
Q(n, "d", B(t).path), Q(n, "stroke", B(t).color), Q(n, "stroke-width", B(t).width), Q(n, "aria-label", e);
|
|
12476
12512
|
}, [() => `${B(t).source} -> ${B(t).target}: ${l(B(t).value)}`]), H("mousemove", n, (e) => He(e.clientX, e.clientY, `${B(t).source} -> ${B(t).target}`, [{
|
|
@@ -12478,7 +12514,7 @@ function pp(e, t) {
|
|
|
12478
12514
|
value: l(B(t).value)
|
|
12479
12515
|
}])), V("mouseleave", n, Ke), K(e, n);
|
|
12480
12516
|
}), Y(L(n), 17, () => B(O).sankeyNodes, si, (e, t) => {
|
|
12481
|
-
var n =
|
|
12517
|
+
var n = Wf(), r = I(n), i = L(r), a = F(i, !0);
|
|
12482
12518
|
A(i), R((e) => {
|
|
12483
12519
|
Q(r, "x", B(t).x), Q(r, "y", B(t).y), Q(r, "width", B(t).w), Q(r, "height", B(t).h), Q(r, "fill", B(t).color), Q(r, "aria-label", e), Q(i, "x", B(t).column === 0 ? B(t).x + B(t).w + 4 : B(t).x - 4), Q(i, "y", B(t).y + B(t).h / 2 + 3), Q(i, "text-anchor", B(t).column === 0 ? "start" : "end"), q(a, B(t).label);
|
|
12484
12520
|
}, [() => `${B(t).label}: in ${l(B(t).totalIn)}, out ${l(B(t).totalOut)}`]), H("mousemove", r, (e) => He(e.clientX, e.clientY, B(t).label, [{
|
|
@@ -12495,8 +12531,8 @@ function pp(e, t) {
|
|
|
12495
12531
|
});
|
|
12496
12532
|
var Ht = L(Bt);
|
|
12497
12533
|
Y(Ht, 17, () => B(O).slices, si, (e, n, r) => {
|
|
12498
|
-
var a =
|
|
12499
|
-
var t =
|
|
12534
|
+
var a = qf(), o = I(a), s = L(o), c = (e) => {
|
|
12535
|
+
var t = Kf(), r = F(t);
|
|
12500
12536
|
A(t), R((e) => {
|
|
12501
12537
|
Q(t, "x", B(n).cx), Q(t, "y", B(n).cy), q(r, `${e ?? ""}%`);
|
|
12502
12538
|
}, [() => B(n).percent.toFixed(0)]), K(e, t);
|
|
@@ -12511,7 +12547,7 @@ function pp(e, t) {
|
|
|
12511
12547
|
}), V("blur", o, Ke), H("click", o, () => k(B(n).label, B(n).label, B(n).value, r)), H("keydown", o, (e) => et(e, B(n).label, B(n).value)), K(e, a);
|
|
12512
12548
|
});
|
|
12513
12549
|
var Ut = L(Ht), Wt = (e) => {
|
|
12514
|
-
var t =
|
|
12550
|
+
var t = Jf(), n = I(t), r = F(n, !0);
|
|
12515
12551
|
A(n);
|
|
12516
12552
|
var i = L(n);
|
|
12517
12553
|
R((e) => {
|
|
@@ -12525,7 +12561,7 @@ function pp(e, t) {
|
|
|
12525
12561
|
var n = G();
|
|
12526
12562
|
Y(I(n), 19, () => B(me).categories, (e, t) => e + t, (e, n, i) => {
|
|
12527
12563
|
let a = /* @__PURE__ */ M(() => B(O).lines[0]?.points), o = /* @__PURE__ */ M(() => B(a)?.[B(i)]?.x), s = /* @__PURE__ */ M(() => !B(Te) && B(a) && B(a).length === B(me).categories.length && Number.isFinite(B(o))), c = /* @__PURE__ */ M(() => B(s) && B(i) > 0 ? B(a)[B(i) - 1].x : null), l = /* @__PURE__ */ M(() => B(s) && B(i) < B(a).length - 1 ? B(a)[B(i) + 1].x : null), u = /* @__PURE__ */ M(() => B(s) ? B(c) == null ? B(O).plot.x : (B(c) + B(o)) / 2 : B(O).plot.x + B(Ee) * B(i)), d = /* @__PURE__ */ M(() => B(s) ? B(l) == null ? B(O).plot.x + B(O).plot.w : (B(o) + B(l)) / 2 : B(O).plot.x + B(Ee) * (B(i) + 1));
|
|
12528
|
-
var f =
|
|
12564
|
+
var f = Yf();
|
|
12529
12565
|
R((e, n) => {
|
|
12530
12566
|
Q(f, "x", B(Te) ? B(O).plot.x : B(u)), Q(f, "y", B(Te) ? B(O).plot.y + B(Ee) * B(i) : B(O).plot.y), Q(f, "width", e), Q(f, "height", B(Te) ? B(Ee) : B(O).plot.h), Q(f, "role", t.onSelect ? "button" : "img"), Q(f, "tabindex", r() ? B(i) === 0 ? 0 : -1 : void 0), Q(f, "data-cat-index", B(i)), Q(f, "aria-label", n);
|
|
12531
12567
|
}, [() => B(Te) ? B(O).plot.w : Math.max(0, B(d) - B(u)), () => `${B(n)}: ${Ue(B(i)).map((e) => `${e.label} ${e.value}`).join(", ")}`]), H("mousemove", f, (e) => We(e.clientX, e.clientY, B(i))), V("mouseleave", f, Ke), V("focus", f, (e) => Ge(e.currentTarget, B(i))), V("blur", f, Ke), H("click", f, () => k(B(n), "", 0, B(i))), H("keydown", f, (e) => $e(e, B(i))), K(e, f);
|
|
@@ -12535,7 +12571,7 @@ function pp(e, t) {
|
|
|
12535
12571
|
B(ge) && !B(_e) && e(Kt);
|
|
12536
12572
|
});
|
|
12537
12573
|
var qt = L(Gt), Jt = (e) => {
|
|
12538
|
-
var t =
|
|
12574
|
+
var t = Xf();
|
|
12539
12575
|
R(() => {
|
|
12540
12576
|
Q(t, "x", B(E).x), Q(t, "y", B(E).y), Q(t, "width", B(E).w), Q(t, "height", B(E).h);
|
|
12541
12577
|
}), K(e, t);
|
|
@@ -12545,10 +12581,10 @@ function pp(e, t) {
|
|
|
12545
12581
|
}), A(dt), ta(dt, (e) => P(C, e), () => B(C));
|
|
12546
12582
|
var Yt = L(dt, 2), Xt = (e) => {
|
|
12547
12583
|
let t = /* @__PURE__ */ M(() => B(D).plot.x + B(ce).t0 * B(D).plot.w), n = /* @__PURE__ */ M(() => (B(ce).t1 - B(ce).t0) * B(D).plot.w);
|
|
12548
|
-
var r =
|
|
12584
|
+
var r = ep(), i = F(r);
|
|
12549
12585
|
Y(i, 17, () => B(D).lines, si, (e, t) => {
|
|
12550
|
-
var n =
|
|
12551
|
-
var n =
|
|
12586
|
+
var n = Qf(), r = I(n), i = (e) => {
|
|
12587
|
+
var n = Zf();
|
|
12552
12588
|
R(() => {
|
|
12553
12589
|
Q(n, "d", B(t).areaPath), Q(n, "fill", B(t).color);
|
|
12554
12590
|
}), K(e, n);
|
|
@@ -12563,7 +12599,7 @@ function pp(e, t) {
|
|
|
12563
12599
|
});
|
|
12564
12600
|
var a = L(i);
|
|
12565
12601
|
Y(a, 17, () => B(D).bars, si, (e, t) => {
|
|
12566
|
-
var n =
|
|
12602
|
+
var n = $f();
|
|
12567
12603
|
R(() => {
|
|
12568
12604
|
Q(n, "x", B(t).x), Q(n, "y", B(t).y), Q(n, "width", B(t).w), Q(n, "height", B(t).h), Q(n, "fill", B(t).color);
|
|
12569
12605
|
}), K(e, n);
|
|
@@ -12577,25 +12613,25 @@ function pp(e, t) {
|
|
|
12577
12613
|
B(oe) && B(D) && e(Xt);
|
|
12578
12614
|
});
|
|
12579
12615
|
var Zt = L(Yt, 2), Qt = (e) => {
|
|
12580
|
-
K(e,
|
|
12616
|
+
K(e, tp());
|
|
12581
12617
|
};
|
|
12582
12618
|
J(Zt, (e) => {
|
|
12583
12619
|
B(Me) && e(Qt);
|
|
12584
12620
|
});
|
|
12585
12621
|
var $t = L(Zt, 2), en = (e) => {
|
|
12586
|
-
var t =
|
|
12622
|
+
var t = ap();
|
|
12587
12623
|
let n;
|
|
12588
12624
|
var r = F(t), i = F(r, !0);
|
|
12589
12625
|
A(r), Y(L(r, 2), 17, () => B(Be).rows, si, (e, t) => {
|
|
12590
|
-
var n =
|
|
12591
|
-
var n =
|
|
12626
|
+
var n = ip(), r = F(n), i = (e) => {
|
|
12627
|
+
var n = np();
|
|
12592
12628
|
R(() => Z(n, `background:${B(t).color}`)), K(e, n);
|
|
12593
12629
|
};
|
|
12594
12630
|
J(r, (e) => {
|
|
12595
12631
|
B(t).color && e(i);
|
|
12596
12632
|
});
|
|
12597
12633
|
var a = L(r, 2), o = (e) => {
|
|
12598
|
-
var n =
|
|
12634
|
+
var n = rp(), r = F(n, !0);
|
|
12599
12635
|
A(n), R(() => q(r, B(t).label)), K(e, n);
|
|
12600
12636
|
};
|
|
12601
12637
|
J(a, (e) => {
|
|
@@ -12611,9 +12647,9 @@ function pp(e, t) {
|
|
|
12611
12647
|
B(Be) && e(en);
|
|
12612
12648
|
});
|
|
12613
12649
|
var tn = L($t, 2), nn = (e) => {
|
|
12614
|
-
var t =
|
|
12650
|
+
var t = cp(), n = F(t);
|
|
12615
12651
|
Y(n, 17, () => B(je), (e) => e.label, (e, t) => {
|
|
12616
|
-
var n =
|
|
12652
|
+
var n = op();
|
|
12617
12653
|
let i;
|
|
12618
12654
|
var a = F(n), o = L(a);
|
|
12619
12655
|
A(n), R(() => {
|
|
@@ -12624,7 +12660,7 @@ function pp(e, t) {
|
|
|
12624
12660
|
}), H("click", n, () => Ne(B(t).label)), H("dblclick", n, () => Pe(B(t).label)), V("pointerenter", n, () => r() && P(f, B(t).label, !0)), V("pointerleave", n, () => P(f, null)), K(e, n);
|
|
12625
12661
|
});
|
|
12626
12662
|
var i = L(n, 2), a = (e) => {
|
|
12627
|
-
var t =
|
|
12663
|
+
var t = sp(), n = F(t, !0);
|
|
12628
12664
|
A(t), R(() => q(n, B(ke) ? "Show less" : `+${B(Oe).length - 10} more`)), H("click", t, () => P(ke, !B(ke))), K(e, t);
|
|
12629
12665
|
};
|
|
12630
12666
|
J(i, (e) => {
|
|
@@ -12638,14 +12674,14 @@ function pp(e, t) {
|
|
|
12638
12674
|
A(an);
|
|
12639
12675
|
var sn = L(an), cn = F(sn);
|
|
12640
12676
|
Y(cn, 20, () => B(Fe).cols, (e) => e, (e, t) => {
|
|
12641
|
-
var n =
|
|
12677
|
+
var n = lp(), r = F(n, !0);
|
|
12642
12678
|
A(n), R(() => q(r, t)), K(e, n);
|
|
12643
12679
|
}), A(cn), A(sn);
|
|
12644
12680
|
var ln = L(sn);
|
|
12645
12681
|
Y(ln, 21, () => B(Fe).rows, si, (e, t) => {
|
|
12646
|
-
var n =
|
|
12682
|
+
var n = dp();
|
|
12647
12683
|
Y(n, 21, () => B(t), si, (e, t) => {
|
|
12648
|
-
var n =
|
|
12684
|
+
var n = up(), r = F(n, !0);
|
|
12649
12685
|
A(n), R(() => q(r, B(t))), K(e, n);
|
|
12650
12686
|
}), A(n), K(e, n);
|
|
12651
12687
|
}), A(ln), A(rn), A(ct), ta(ct, (e) => P(Re, e), () => B(Re)), R(() => {
|
|
@@ -12668,16 +12704,16 @@ Wr([
|
|
|
12668
12704
|
]);
|
|
12669
12705
|
//#endregion
|
|
12670
12706
|
//#region src/chart-export.ts
|
|
12671
|
-
function
|
|
12707
|
+
function hp(e) {
|
|
12672
12708
|
return e instanceof SVGSVGElement ? e : e.querySelector("svg.sv-grid-chart-svg") ?? e.querySelector("svg");
|
|
12673
12709
|
}
|
|
12674
|
-
function
|
|
12710
|
+
function gp(e, t, n) {
|
|
12675
12711
|
return getComputedStyle(e).getPropertyValue(t).trim() || n;
|
|
12676
12712
|
}
|
|
12677
|
-
function
|
|
12678
|
-
let n =
|
|
12713
|
+
function _p(e, t = {}) {
|
|
12714
|
+
let n = hp(e);
|
|
12679
12715
|
if (!n) throw Error("chartToSvgString: no <svg> found");
|
|
12680
|
-
let r =
|
|
12716
|
+
let r = gp(n, "--sg-fg", "#0f172a"), i = gp(n, "--sg-muted", "#64748b"), a = gp(n, "--sg-border", "#e2e8f0"), o = t.background ?? gp(n, "--sg-bg", "#ffffff"), s = n.viewBox.baseVal, c = s && s.width ? s.width : n.clientWidth || 520, l = s && s.height ? s.height : n.clientHeight || 300, u = n.cloneNode(!0);
|
|
12681
12717
|
u.setAttribute("width", String(c)), u.setAttribute("height", String(l)), u.setAttribute("xmlns", "http://www.w3.org/2000/svg"), u.querySelectorAll(".sv-grid-chart-hit").forEach((e) => e.remove());
|
|
12682
12718
|
let d = document.createElementNS("http://www.w3.org/2000/svg", "style");
|
|
12683
12719
|
d.textContent = `
|
|
@@ -12692,16 +12728,16 @@ function gp(e, t = {}) {
|
|
|
12692
12728
|
let f = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
12693
12729
|
return f.setAttribute("x", "0"), f.setAttribute("y", "0"), f.setAttribute("width", String(c)), f.setAttribute("height", String(l)), f.setAttribute("fill", o), u.insertBefore(f, d.nextSibling), new XMLSerializer().serializeToString(u);
|
|
12694
12730
|
}
|
|
12695
|
-
function
|
|
12731
|
+
function vp(e, t) {
|
|
12696
12732
|
let n = document.createElement("a");
|
|
12697
12733
|
n.href = e, n.download = t, document.body.appendChild(n), n.click(), n.remove();
|
|
12698
12734
|
}
|
|
12699
|
-
function
|
|
12700
|
-
let r =
|
|
12701
|
-
|
|
12735
|
+
function yp(e, t = "chart.svg", n = {}) {
|
|
12736
|
+
let r = _p(e, n), i = URL.createObjectURL(new Blob([r], { type: "image/svg+xml" }));
|
|
12737
|
+
vp(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
|
|
12702
12738
|
}
|
|
12703
|
-
function
|
|
12704
|
-
let n =
|
|
12739
|
+
function bp(e, t = {}) {
|
|
12740
|
+
let n = _p(e, t), r = t.scale ?? 2, i = hp(e), a = i.viewBox.baseVal, o = (a && a.width ? a.width : i.clientWidth || 520) * r, s = (a && a.height ? a.height : i.clientHeight || 300) * r;
|
|
12705
12741
|
return new Promise((e, t) => {
|
|
12706
12742
|
let r = URL.createObjectURL(new Blob([n], { type: "image/svg+xml" })), i = new Image();
|
|
12707
12743
|
i.onload = () => {
|
|
@@ -12718,13 +12754,13 @@ function yp(e, t = {}) {
|
|
|
12718
12754
|
}, i.src = r;
|
|
12719
12755
|
});
|
|
12720
12756
|
}
|
|
12721
|
-
async function
|
|
12722
|
-
let r = await
|
|
12723
|
-
|
|
12757
|
+
async function xp(e, t = "chart.png", n = {}) {
|
|
12758
|
+
let r = await bp(e, n), i = URL.createObjectURL(r);
|
|
12759
|
+
vp(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
|
|
12724
12760
|
}
|
|
12725
12761
|
//#endregion
|
|
12726
12762
|
//#region src/spreadsheet.ts
|
|
12727
|
-
function
|
|
12763
|
+
function Sp(e, t, n) {
|
|
12728
12764
|
let r = [], i = /* @__PURE__ */ new Set();
|
|
12729
12765
|
for (let a = 0; a < e.length; a += 1) {
|
|
12730
12766
|
let o = e[a];
|
|
@@ -12752,60 +12788,60 @@ function xp(e, t, n) {
|
|
|
12752
12788
|
}
|
|
12753
12789
|
return r;
|
|
12754
12790
|
}
|
|
12755
|
-
var
|
|
12791
|
+
var Cp = [
|
|
12756
12792
|
"top",
|
|
12757
12793
|
"right",
|
|
12758
12794
|
"bottom",
|
|
12759
12795
|
"left"
|
|
12760
|
-
],
|
|
12761
|
-
function
|
|
12796
|
+
], wp = "data-svgrid-sheet";
|
|
12797
|
+
function Tp(e) {
|
|
12762
12798
|
return e ? `${e.width ?? 2}px ${e.style ?? "solid"} ${e.color ?? "currentColor"}` : null;
|
|
12763
12799
|
}
|
|
12764
|
-
function
|
|
12800
|
+
function Ep(e, t, n) {
|
|
12765
12801
|
return e.querySelector(`td[data-svgrid-row="${t}"][data-col-id="${CSS.escape(n)}"]`);
|
|
12766
12802
|
}
|
|
12767
|
-
var
|
|
12768
|
-
function
|
|
12769
|
-
for (let t of e.querySelectorAll(`td[${
|
|
12803
|
+
var Dp = "sv-cell-border-overlay";
|
|
12804
|
+
function Op(e, t) {
|
|
12805
|
+
for (let t of e.querySelectorAll(`td[${wp}]`)) {
|
|
12770
12806
|
t.removeAttribute("colspan"), t.removeAttribute("rowspan"), t.style.display === "none" && (t.style.display = "");
|
|
12771
|
-
let e = t.querySelector(`:scope > .${
|
|
12772
|
-
e && e.remove(), t.classList.remove("sv-merge-edge-right", "sv-merge-edge-bottom", "sv-merge-in-range"), t.removeAttribute(
|
|
12807
|
+
let e = t.querySelector(`:scope > .${Dp}`);
|
|
12808
|
+
e && e.remove(), t.classList.remove("sv-merge-edge-right", "sv-merge-edge-bottom", "sv-merge-in-range"), t.removeAttribute(wp);
|
|
12773
12809
|
}
|
|
12774
12810
|
let n = t.columnOrder, r = /* @__PURE__ */ new Map();
|
|
12775
12811
|
for (let e = 0; e < n.length; e += 1) r.set(n[e], e);
|
|
12776
12812
|
for (let i of t.merges ?? []) {
|
|
12777
12813
|
let t = r.get(i.columnId);
|
|
12778
12814
|
if (t === void 0) continue;
|
|
12779
|
-
let a = Math.max(1, i.rowspan ?? 1), o = Math.max(1, i.colspan ?? 1), s =
|
|
12815
|
+
let a = Math.max(1, i.rowspan ?? 1), o = Math.max(1, i.colspan ?? 1), s = Ep(e, i.rowIndex, i.columnId);
|
|
12780
12816
|
if (!s) continue;
|
|
12781
|
-
o > 1 && s.setAttribute("colspan", String(o)), a > 1 && s.setAttribute("rowspan", String(a)), s.setAttribute(
|
|
12817
|
+
o > 1 && s.setAttribute("colspan", String(o)), a > 1 && s.setAttribute("rowspan", String(a)), s.setAttribute(wp, "");
|
|
12782
12818
|
for (let r = 0; r < a; r += 1) for (let a = 0; a < o; a += 1) {
|
|
12783
12819
|
if (r === 0 && a === 0) continue;
|
|
12784
12820
|
let o = n[t + a];
|
|
12785
12821
|
if (!o) continue;
|
|
12786
|
-
let s =
|
|
12787
|
-
s && (s.style.display = "none", s.setAttribute(
|
|
12822
|
+
let s = Ep(e, i.rowIndex + r, o);
|
|
12823
|
+
s && (s.style.display = "none", s.setAttribute(wp, ""));
|
|
12788
12824
|
}
|
|
12789
|
-
let c = n[t + o - 1], l = c ?
|
|
12825
|
+
let c = n[t + o - 1], l = c ? Ep(e, i.rowIndex, c) : null, u = Ep(e, i.rowIndex + a - 1, i.columnId), d = c ? Ep(e, i.rowIndex + a - 1, c) : null, f = l?.getAttribute("data-range-right") === "true" || d?.getAttribute("data-range-right") === "true", p = u?.getAttribute("data-range-bottom") === "true" || d?.getAttribute("data-range-bottom") === "true", m = l?.getAttribute("data-selected-range") === "true" || u?.getAttribute("data-selected-range") === "true" || d?.getAttribute("data-selected-range") === "true" || s.getAttribute("data-selected-range") === "true";
|
|
12790
12826
|
s.classList.toggle("sv-merge-edge-right", f), s.classList.toggle("sv-merge-edge-bottom", p), s.classList.toggle("sv-merge-in-range", m);
|
|
12791
12827
|
}
|
|
12792
12828
|
for (let n of t.borders ?? []) {
|
|
12793
|
-
let t =
|
|
12829
|
+
let t = Ep(e, n.rowIndex, n.columnId);
|
|
12794
12830
|
if (!t) continue;
|
|
12795
12831
|
let r = !1, i = document.createElement("div");
|
|
12796
|
-
i.className =
|
|
12797
|
-
for (let e of
|
|
12798
|
-
let t =
|
|
12832
|
+
i.className = Dp, i.style.cssText = "position:absolute;inset:0;pointer-events:none;box-sizing:border-box;z-index:1;";
|
|
12833
|
+
for (let e of Cp) {
|
|
12834
|
+
let t = Tp(n[e]);
|
|
12799
12835
|
t && (i.style.setProperty(`border-${e}`, t), r = !0);
|
|
12800
12836
|
}
|
|
12801
|
-
r && (getComputedStyle(t).position === "static" && (t.style.position = "relative"), t.appendChild(i), t.setAttribute(
|
|
12837
|
+
r && (getComputedStyle(t).position === "static" && (t.style.position = "relative"), t.appendChild(i), t.setAttribute(wp, ""));
|
|
12802
12838
|
}
|
|
12803
12839
|
}
|
|
12804
|
-
function
|
|
12840
|
+
function kp(e, t) {
|
|
12805
12841
|
let n = t, r = 0;
|
|
12806
12842
|
function i() {
|
|
12807
12843
|
r ||= requestAnimationFrame(() => {
|
|
12808
|
-
r = 0,
|
|
12844
|
+
r = 0, Op(e, n);
|
|
12809
12845
|
});
|
|
12810
12846
|
}
|
|
12811
12847
|
let a = new MutationObserver(i);
|
|
@@ -12834,8 +12870,8 @@ function Op(e, t) {
|
|
|
12834
12870
|
}
|
|
12835
12871
|
//#endregion
|
|
12836
12872
|
//#region src/row-resize.ts
|
|
12837
|
-
var
|
|
12838
|
-
function
|
|
12873
|
+
var Ap = "sv-grid-row-resize-handle";
|
|
12874
|
+
function jp(e, t) {
|
|
12839
12875
|
let n = t, r = null;
|
|
12840
12876
|
function i(e) {
|
|
12841
12877
|
let t = e.querySelector("[data-svgrid-row]")?.dataset.svgridRow;
|
|
@@ -12858,7 +12894,7 @@ function Ap(e, t) {
|
|
|
12858
12894
|
function s(e) {
|
|
12859
12895
|
if (n.disabled) return;
|
|
12860
12896
|
let t = e.target;
|
|
12861
|
-
if (!t?.classList.contains(
|
|
12897
|
+
if (!t?.classList.contains(Ap)) return;
|
|
12862
12898
|
let s = t.closest("tr.sv-grid-row");
|
|
12863
12899
|
if (!s) return;
|
|
12864
12900
|
let c = i(s);
|
|
@@ -12885,14 +12921,14 @@ function Ap(e, t) {
|
|
|
12885
12921
|
for (let e of t) {
|
|
12886
12922
|
if (e.classList.contains("sv-grid-header-row") || e.classList.contains("sv-grid-row-spacer")) continue;
|
|
12887
12923
|
let t = e.querySelector(".sv-grid-cell.sv-row-gutter");
|
|
12888
|
-
if (!t || t.querySelector(`:scope > .${
|
|
12924
|
+
if (!t || t.querySelector(`:scope > .${Ap}`)) continue;
|
|
12889
12925
|
getComputedStyle(t).position === "static" && (t.style.position = "relative"), t.style.overflow = "visible";
|
|
12890
12926
|
let n = document.createElement("div");
|
|
12891
|
-
n.className =
|
|
12927
|
+
n.className = Ap, n.setAttribute("role", "separator"), n.setAttribute("aria-orientation", "horizontal"), n.setAttribute("aria-label", "Resize row"), n.style.cssText = "position:absolute;left:0;right:0;bottom:0;height:5px;cursor:row-resize;user-select:none;z-index:60;pointer-events:auto;", t.appendChild(n);
|
|
12892
12928
|
}
|
|
12893
12929
|
}
|
|
12894
12930
|
function l() {
|
|
12895
|
-
e.querySelectorAll(`.${
|
|
12931
|
+
e.querySelectorAll(`.${Ap}`).forEach((e) => e.remove());
|
|
12896
12932
|
}
|
|
12897
12933
|
e.addEventListener("pointerdown", s, { capture: !0 });
|
|
12898
12934
|
let u = new MutationObserver(() => c());
|
|
@@ -12911,7 +12947,7 @@ function Ap(e, t) {
|
|
|
12911
12947
|
}
|
|
12912
12948
|
//#endregion
|
|
12913
12949
|
//#region src/hyperformula-adapter.ts
|
|
12914
|
-
function
|
|
12950
|
+
function Mp(e) {
|
|
12915
12951
|
let { hyperformula: t, rows: n, fields: r } = e, i = e.sheetId ?? 0, a = /* @__PURE__ */ new Map();
|
|
12916
12952
|
r.forEach((e, t) => a.set(e, t));
|
|
12917
12953
|
for (let e = 0; e < n.length; e += 1) {
|
|
@@ -12968,7 +13004,7 @@ function jp(e) {
|
|
|
12968
13004
|
}
|
|
12969
13005
|
//#endregion
|
|
12970
13006
|
//#region src/collaboration.ts
|
|
12971
|
-
function
|
|
13007
|
+
function Np(e) {
|
|
12972
13008
|
let t = typeof BroadcastChannel < "u" ? new BroadcastChannel(e) : null;
|
|
12973
13009
|
return {
|
|
12974
13010
|
post(e) {
|
|
@@ -12981,7 +13017,7 @@ function Mp(e) {
|
|
|
12981
13017
|
}
|
|
12982
13018
|
};
|
|
12983
13019
|
}
|
|
12984
|
-
function
|
|
13020
|
+
function Pp(e) {
|
|
12985
13021
|
let { user: t, transport: n } = e, r = e.peerTimeoutMs ?? 15e3, i = /* @__PURE__ */ new Map(), a = null, o = !1, s = () => [...i.values()].sort((e, t) => e.name.localeCompare(t.name)), c = () => e.onPeersChange?.(s());
|
|
12986
13022
|
function l(e, n) {
|
|
12987
13023
|
e.id !== t.id && (i.set(e.id, {
|
|
@@ -13053,7 +13089,7 @@ function Np(e) {
|
|
|
13053
13089
|
}
|
|
13054
13090
|
//#endregion
|
|
13055
13091
|
//#region src/server-data-source.ts
|
|
13056
|
-
function
|
|
13092
|
+
function Fp(e, t) {
|
|
13057
13093
|
let n = {
|
|
13058
13094
|
rows: [],
|
|
13059
13095
|
total: 0,
|
|
@@ -13111,7 +13147,7 @@ function Pp(e, t) {
|
|
|
13111
13147
|
}
|
|
13112
13148
|
//#endregion
|
|
13113
13149
|
//#region src/named-views.ts
|
|
13114
|
-
function
|
|
13150
|
+
function Ip(e = []) {
|
|
13115
13151
|
let t = [...e];
|
|
13116
13152
|
return {
|
|
13117
13153
|
read: () => t,
|
|
@@ -13120,7 +13156,7 @@ function Fp(e = []) {
|
|
|
13120
13156
|
}
|
|
13121
13157
|
};
|
|
13122
13158
|
}
|
|
13123
|
-
function
|
|
13159
|
+
function Lp(e) {
|
|
13124
13160
|
let t = typeof localStorage < "u";
|
|
13125
13161
|
return {
|
|
13126
13162
|
read() {
|
|
@@ -13139,8 +13175,8 @@ function Ip(e) {
|
|
|
13139
13175
|
}
|
|
13140
13176
|
};
|
|
13141
13177
|
}
|
|
13142
|
-
function
|
|
13143
|
-
let n = t.storage ??
|
|
13178
|
+
function Rp(e, t = {}) {
|
|
13179
|
+
let n = t.storage ?? Ip(), r = () => n.read(), i = (e) => r().find((t) => t.name === e);
|
|
13144
13180
|
return {
|
|
13145
13181
|
list: () => r().slice().sort((e, t) => e.createdAt - t.createdAt),
|
|
13146
13182
|
has: (e) => !!i(e),
|
|
@@ -13169,7 +13205,7 @@ function Lp(e, t = {}) {
|
|
|
13169
13205
|
}
|
|
13170
13206
|
};
|
|
13171
13207
|
}
|
|
13172
|
-
function
|
|
13208
|
+
function zp(e, t, n = {}) {
|
|
13173
13209
|
let r = n.name ?? "__autosave";
|
|
13174
13210
|
!n.skipRestore && t.has(r) && t.load(r);
|
|
13175
13211
|
let i = Math.max(100, n.intervalMs ?? 800), a = JSON.stringify(e.getState()), o = setInterval(() => {
|
|
@@ -13185,13 +13221,13 @@ function Rp(e, t, n = {}) {
|
|
|
13185
13221
|
}
|
|
13186
13222
|
//#endregion
|
|
13187
13223
|
//#region src/virtualization/virtualizer.ts
|
|
13188
|
-
function
|
|
13224
|
+
function Bp(e, t, n) {
|
|
13189
13225
|
return Math.min(Math.max(e, t), n);
|
|
13190
13226
|
}
|
|
13191
|
-
function
|
|
13227
|
+
function Vp(e, t) {
|
|
13192
13228
|
return e.count === t.count && e.estimateSize === t.estimateSize && (e.overscan ?? 6) === (t.overscan ?? 6) && e.viewportHeight === t.viewportHeight && (e.scrollOffset ?? 0) === (t.scrollOffset ?? 0);
|
|
13193
13229
|
}
|
|
13194
|
-
function
|
|
13230
|
+
function Hp(e, t) {
|
|
13195
13231
|
if (e.totalSize !== t.totalSize || e.startIndex !== t.startIndex || e.endIndex !== t.endIndex || e.viewportHeight !== t.viewportHeight || e.items.length !== t.items.length) return !1;
|
|
13196
13232
|
for (let n = 0; n < e.items.length; n += 1) {
|
|
13197
13233
|
let r = e.items[n], i = t.items[n];
|
|
@@ -13199,7 +13235,7 @@ function Vp(e, t) {
|
|
|
13199
13235
|
}
|
|
13200
13236
|
return !0;
|
|
13201
13237
|
}
|
|
13202
|
-
function
|
|
13238
|
+
function Up(e, t, n) {
|
|
13203
13239
|
let r = [];
|
|
13204
13240
|
for (let i = e; i <= t; i += 1) {
|
|
13205
13241
|
let t = i * n;
|
|
@@ -13213,7 +13249,7 @@ function Hp(e, t, n) {
|
|
|
13213
13249
|
}
|
|
13214
13250
|
return r;
|
|
13215
13251
|
}
|
|
13216
|
-
function
|
|
13252
|
+
function Wp(e, t, n) {
|
|
13217
13253
|
let r = [];
|
|
13218
13254
|
for (let i = e; i <= t; i += 1) {
|
|
13219
13255
|
let t = n[i] ?? 0, a = n[i + 1] ?? t;
|
|
@@ -13227,10 +13263,10 @@ function Up(e, t, n) {
|
|
|
13227
13263
|
}
|
|
13228
13264
|
return r;
|
|
13229
13265
|
}
|
|
13230
|
-
function
|
|
13266
|
+
function Gp(e, t) {
|
|
13231
13267
|
let n = Math.max(e.count, 0), r = Math.max(e.overscan ?? 6, 0), i = Math.max(e.viewportHeight, 0);
|
|
13232
13268
|
if (typeof e.estimateSize == "function" && t) {
|
|
13233
|
-
let a = t[n] ?? 0, o = Math.max(a - i, 0), s =
|
|
13269
|
+
let a = t[n] ?? 0, o = Math.max(a - i, 0), s = Bp(e.scrollOffset ?? 0, 0, o), c = 0, l = n;
|
|
13234
13270
|
for (; c < l;) {
|
|
13235
13271
|
let e = c + l >>> 1;
|
|
13236
13272
|
(t[e + 1] ?? 0) <= s ? c = e + 1 : l = e;
|
|
@@ -13240,9 +13276,9 @@ function Wp(e, t) {
|
|
|
13240
13276
|
let e = c + l >>> 1;
|
|
13241
13277
|
(t[e] ?? 0) < d ? c = e + 1 : l = e;
|
|
13242
13278
|
}
|
|
13243
|
-
let f = Math.max(c - 1, u), p = n === 0 ? 0 :
|
|
13279
|
+
let f = Math.max(c - 1, u), p = n === 0 ? 0 : Bp(u - r, 0, n - 1), m = n === 0 ? -1 : Bp(f + r, 0, n - 1);
|
|
13244
13280
|
return {
|
|
13245
|
-
items: m >= p ?
|
|
13281
|
+
items: m >= p ? Wp(p, m, t) : [],
|
|
13246
13282
|
totalSize: a,
|
|
13247
13283
|
startIndex: p,
|
|
13248
13284
|
endIndex: m,
|
|
@@ -13250,9 +13286,9 @@ function Wp(e, t) {
|
|
|
13250
13286
|
viewportHeight: i
|
|
13251
13287
|
};
|
|
13252
13288
|
}
|
|
13253
|
-
let a = Math.max(typeof e.estimateSize == "number" ? e.estimateSize : 1, 1), o = n * a, s = Math.max(o - i, 0), c =
|
|
13289
|
+
let a = Math.max(typeof e.estimateSize == "number" ? e.estimateSize : 1, 1), o = n * a, s = Math.max(o - i, 0), c = Bp(e.scrollOffset ?? 0, 0, s), l = Math.floor(c / a), u = Math.ceil(i / a), d = Math.min(l + u, Math.max(n - 1, 0)), f = n === 0 ? 0 : Bp(l - r, 0, n - 1), p = n === 0 ? -1 : Bp(d + r, 0, n - 1);
|
|
13254
13290
|
return {
|
|
13255
|
-
items: p >= f ?
|
|
13291
|
+
items: p >= f ? Up(f, p, a) : [],
|
|
13256
13292
|
totalSize: o,
|
|
13257
13293
|
startIndex: f,
|
|
13258
13294
|
endIndex: p,
|
|
@@ -13260,7 +13296,7 @@ function Wp(e, t) {
|
|
|
13260
13296
|
viewportHeight: i
|
|
13261
13297
|
};
|
|
13262
13298
|
}
|
|
13263
|
-
function
|
|
13299
|
+
function Kp(e) {
|
|
13264
13300
|
let t = e, n = null;
|
|
13265
13301
|
function r() {
|
|
13266
13302
|
if (typeof t.estimateSize != "function") return null;
|
|
@@ -13275,13 +13311,13 @@ function Gp(e) {
|
|
|
13275
13311
|
offsets: i
|
|
13276
13312
|
}, i;
|
|
13277
13313
|
}
|
|
13278
|
-
let i =
|
|
13314
|
+
let i = Gp(t, r()), a = /* @__PURE__ */ new Set();
|
|
13279
13315
|
function o() {
|
|
13280
13316
|
a.forEach((e) => e());
|
|
13281
13317
|
}
|
|
13282
13318
|
function s() {
|
|
13283
|
-
let e =
|
|
13284
|
-
|
|
13319
|
+
let e = Gp(t, r());
|
|
13320
|
+
Hp(i, e) || (i = e, o());
|
|
13285
13321
|
}
|
|
13286
13322
|
return {
|
|
13287
13323
|
setOptions(e) {
|
|
@@ -13289,7 +13325,7 @@ function Gp(e) {
|
|
|
13289
13325
|
...t,
|
|
13290
13326
|
...e
|
|
13291
13327
|
};
|
|
13292
|
-
|
|
13328
|
+
Vp(t, n) || (t = n, s());
|
|
13293
13329
|
},
|
|
13294
13330
|
setScrollOffset(e) {
|
|
13295
13331
|
(t.scrollOffset ?? 0) !== e && (t = {
|
|
@@ -13304,7 +13340,7 @@ function Gp(e) {
|
|
|
13304
13340
|
}, s());
|
|
13305
13341
|
},
|
|
13306
13342
|
scrollToIndex(e) {
|
|
13307
|
-
let n =
|
|
13343
|
+
let n = Bp(e, 0, Math.max(t.count - 1, 0)), a = i.totalSize, o;
|
|
13308
13344
|
if (typeof t.estimateSize == "function") {
|
|
13309
13345
|
let e = r();
|
|
13310
13346
|
if (e) o = e[n] ?? 0;
|
|
@@ -13314,7 +13350,7 @@ function Gp(e) {
|
|
|
13314
13350
|
o = e;
|
|
13315
13351
|
}
|
|
13316
13352
|
} else o = n * Math.max(t.estimateSize, 1);
|
|
13317
|
-
let c = Math.max(a - t.viewportHeight, 0), l =
|
|
13353
|
+
let c = Math.max(a - t.viewportHeight, 0), l = Bp(o, 0, c);
|
|
13318
13354
|
(t.scrollOffset ?? 0) !== l && (t = {
|
|
13319
13355
|
...t,
|
|
13320
13356
|
scrollOffset: l
|
|
@@ -13351,8 +13387,8 @@ function Gp(e) {
|
|
|
13351
13387
|
}
|
|
13352
13388
|
//#endregion
|
|
13353
13389
|
//#region src/virtualization/svelte-virtualizer.svelte.ts
|
|
13354
|
-
function
|
|
13355
|
-
let t =
|
|
13390
|
+
function qp(e) {
|
|
13391
|
+
let t = Kp(e), n = /* @__PURE__ */ N(0);
|
|
13356
13392
|
return t.subscribe(() => {
|
|
13357
13393
|
P(n, B(n) + 1);
|
|
13358
13394
|
}), {
|
|
@@ -13372,8 +13408,8 @@ function Kp(e) {
|
|
|
13372
13408
|
}
|
|
13373
13409
|
//#endregion
|
|
13374
13410
|
//#region src/virtualization/column-virtualizer.ts
|
|
13375
|
-
function
|
|
13376
|
-
let t =
|
|
13411
|
+
function Jp(e) {
|
|
13412
|
+
let t = Kp({
|
|
13377
13413
|
count: e.count,
|
|
13378
13414
|
estimateSize: e.estimateSize ?? 140,
|
|
13379
13415
|
viewportHeight: e.viewportWidth,
|
|
@@ -13392,7 +13428,7 @@ function qp(e) {
|
|
|
13392
13428
|
}
|
|
13393
13429
|
//#endregion
|
|
13394
13430
|
//#region src/editors/cell-editors.ts
|
|
13395
|
-
function
|
|
13431
|
+
function Yp(e) {
|
|
13396
13432
|
return !e || typeof e == "function" ? [] : e.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
13397
13433
|
value: e,
|
|
13398
13434
|
label: String(e)
|
|
@@ -13402,7 +13438,7 @@ function Jp(e) {
|
|
|
13402
13438
|
color: e.color
|
|
13403
13439
|
});
|
|
13404
13440
|
}
|
|
13405
|
-
function
|
|
13441
|
+
function Xp(e, t, n) {
|
|
13406
13442
|
if (e === "number") {
|
|
13407
13443
|
let e = Number(t);
|
|
13408
13444
|
return Number.isFinite(e) ? e : null;
|
|
@@ -13432,14 +13468,14 @@ function Yp(e, t, n) {
|
|
|
13432
13468
|
}
|
|
13433
13469
|
//#endregion
|
|
13434
13470
|
//#region src/filtering/excel-filters.ts
|
|
13435
|
-
var
|
|
13436
|
-
function
|
|
13471
|
+
var Zp = /[̀-ͯ]/g;
|
|
13472
|
+
function Qp(e, t) {
|
|
13437
13473
|
if (!e) return "";
|
|
13438
|
-
let n = e.normalize("NFD").replace(
|
|
13474
|
+
let n = e.normalize("NFD").replace(Zp, "");
|
|
13439
13475
|
return t ? n.toLocaleLowerCase(t) : n.toLowerCase();
|
|
13440
13476
|
}
|
|
13441
|
-
function
|
|
13442
|
-
let r = String(e ?? ""), i =
|
|
13477
|
+
function $p(e, t, n) {
|
|
13478
|
+
let r = String(e ?? ""), i = Qp(r, n?.locale), a = Qp(String(t.value ?? ""), n?.locale);
|
|
13443
13479
|
switch (t.operator) {
|
|
13444
13480
|
case "contains": return i.includes(a);
|
|
13445
13481
|
case "equals": return i === a;
|
|
@@ -13463,7 +13499,7 @@ function Qp(e, t, n) {
|
|
|
13463
13499
|
}
|
|
13464
13500
|
//#endregion
|
|
13465
13501
|
//#region src/a11y.ts
|
|
13466
|
-
function
|
|
13502
|
+
function em(e = {}) {
|
|
13467
13503
|
return {
|
|
13468
13504
|
role: "grid",
|
|
13469
13505
|
tabindex: 0,
|
|
@@ -13472,33 +13508,33 @@ function $p(e = {}) {
|
|
|
13472
13508
|
...e.colCount === void 0 ? {} : { "aria-colcount": e.colCount }
|
|
13473
13509
|
};
|
|
13474
13510
|
}
|
|
13475
|
-
function
|
|
13511
|
+
function tm(e = {}) {
|
|
13476
13512
|
let { sortable: t = !1, sortDirection: n = "none" } = e;
|
|
13477
13513
|
return {
|
|
13478
13514
|
role: "columnheader",
|
|
13479
13515
|
...t ? { "aria-sort": n } : {}
|
|
13480
13516
|
};
|
|
13481
13517
|
}
|
|
13482
|
-
function
|
|
13518
|
+
function nm(e) {
|
|
13483
13519
|
return {
|
|
13484
13520
|
role: "row",
|
|
13485
13521
|
...e === void 0 ? {} : { "aria-rowindex": e }
|
|
13486
13522
|
};
|
|
13487
13523
|
}
|
|
13488
|
-
function
|
|
13524
|
+
function rm(e = {}) {
|
|
13489
13525
|
let { colIndex: t, rowIndex: n, selected: r = !1, id: i } = e;
|
|
13490
13526
|
return {
|
|
13491
13527
|
role: "gridcell",
|
|
13492
13528
|
...i ? { id: i } : {},
|
|
13493
13529
|
...t === void 0 ? {} : { "aria-colindex": t },
|
|
13494
13530
|
...n === void 0 ? {} : { "aria-rowindex": n },
|
|
13495
|
-
|
|
13531
|
+
"aria-selected": r
|
|
13496
13532
|
};
|
|
13497
13533
|
}
|
|
13498
|
-
function
|
|
13534
|
+
function im(e, t, n) {
|
|
13499
13535
|
return `${e}_cell_${t}_${n}`;
|
|
13500
13536
|
}
|
|
13501
13537
|
//#endregion
|
|
13502
|
-
export {
|
|
13538
|
+
export { ld as DEFAULT_PALETTE, cd as FlexRender, sd as SvGrid, mp as SvGridChart, $p as applyExcelFilter, o as applyGroupAggregate, zp as attachAutoSavedView, Np as broadcastChannelTransport, Nd as buildChart, xd as buildLinePath, Oa as buildSparkline, bp as chartToPngBlob, _p as chartToSvgString, l as columnFilteringFeature, d as columnGroupingFeature, is as computeColumnGroupMeta, vo as computeColumnStat, Ed as computeOverlay, Co as contrastText, Pp as createCollaboration, Jp as createColumnVirtualizer, _ as createCoreRowModel, x as createExpandedRowModel, v as createFilteredRowModel, ca as createGrid, la as createGridState, b as createGroupedRowModel, Mp as createHyperFormulaSheet, Rp as createNamedViews, y as createPaginatedRowModel, Fp as createServerDataSource, S as createSortedRowModel, sa as createSvGrid, sa as createTable, ua as createSvGridState, qp as createSvelteVirtualizer, Kp as createVirtualizer, xp as downloadChartPng, yp as downloadChartSvg, Td as exponentialMovingAverage, g as filterFns, a as formatNumericWithConfig, rm as getGridCellA11yProps, im as getGridCellDomId, tm as getGridHeaderA11yProps, em as getGridRootA11yProps, nm as getGridRowA11yProps, Ao as getKeyboardIntent, jo as getNextActiveCell, as as hiddenLeavesForCollapse, ts as inferCellDataType, wo as lerpColor, Cd as linearTrend, Lp as localStorageViews, Ip as memoryViews, yd as niceLogScale, Dd as niceScale, Yp as normalizeEditorOptions, Qp as normalizeForFilter, Xp as parseEditorValue, vd as pickContrastText, wa as renderComponent, Ta as renderSnippet, Eo as resolveCellFormat, ns as resolveColumnTypes, e as resolveDatePattern, Xo as rowDropZone, p as rowExpandingFeature, u as rowPaginationFeature, jp as rowResize, f as rowSelectionFeature, c as rowSortingFeature, Pd as rowsToChartSpec, gd as sampleGradient, wd as simpleMovingAverage, h as sortFns, Sp as spansToMerges, kp as spreadsheetLayout, fa as subscribeGrid, pa as subscribeSvGrid, m as tableFeatures, Da as toSparklineValues };
|
|
13503
13539
|
|
|
13504
|
-
;(function(){try{if(typeof document==='undefined')return;var s=document.createElement('style');s.setAttribute('data-svgrid','');s.textContent=".sv-grid-root{position:relative}.sv-grid-sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sv-grid-loading-overlay{z-index:18;pointer-events:auto;background:color-mix(in srgb, var(--sg-bg,#fff) 35%, transparent);position:absolute;inset:0}.sv-grid-loading-bar{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);height:3px;position:absolute;top:0;left:0;right:0;overflow:hidden}.sv-grid-loading-bar:before{content:\"\";background:var(--sg-accent,#2563eb);width:40%;animation:1.1s ease-in-out infinite sv-grid-loading-slide;position:absolute;inset:0}@keyframes sv-grid-loading-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}.sv-grid-skeleton{top:var(--sg-thead-h,40px);padding:0;position:absolute;left:0;right:0;overflow:hidden}.sv-grid-skeleton-row{height:var(--sg-pinned-row-h,36px);border-bottom:1px solid var(--sg-border,#e2e8f0);align-items:center;display:flex}.sv-grid-skeleton-cell{box-sizing:border-box;flex-shrink:0;padding:0 12px}.sv-grid-skeleton-bar{background:linear-gradient(90deg, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 25%, color-mix(in srgb, var(--sg-muted,#94a3b8) 32%, transparent) 50%, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 75%);background-size:200% 100%;border-radius:4px;width:70%;height:10px;animation:1.3s linear infinite sv-grid-shimmer;display:block}@keyframes sv-grid-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.sv-grid-toolbar{align-items:center;gap:8px;padding:6px 2px;display:flex}.sv-grid-toolbar-btn{border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex}.sv-grid-toolbar-btn:hover{border-color:var(--sg-accent,#2563eb);color:var(--sg-accent,#2563eb)}.sv-grid-toolbar-btn.is-active{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:#fff}.sv-grid-tool-panel{z-index:901;background:var(--sg-bg,#fff);border-left:1px solid var(--sg-border,#e2e8f0);flex-direction:column;width:250px;display:flex;position:absolute;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0000001f}.sv-grid-tool-panel-head{text-transform:uppercase;letter-spacing:.05em;color:var(--sg-muted,#64748b);border-bottom:1px solid var(--sg-border,#e2e8f0);justify-content:space-between;align-items:center;padding:8px 12px;font-size:12px;font-weight:700;display:flex}.sv-grid-tool-panel-close{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;font-size:14px}.sv-grid-tool-panel-list{flex:1;margin:0;padding:6px;list-style:none;overflow-y:auto}.sv-grid-tool-panel-item{border-radius:5px;justify-content:space-between;align-items:center;gap:6px;padding:3px 6px;display:flex}.sv-grid-tool-panel-item:hover{background:var(--sg-row-hover-bg,#94a3b81a)}.sv-grid-tool-panel-vis{min-width:0;color:var(--sg-fg,#0f172a);cursor:pointer;flex:1;align-items:center;gap:8px;font-size:13px;display:flex}.sv-grid-tool-panel-vis input{accent-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-tool-panel-actions{flex-shrink:0;gap:2px;display:inline-flex}.sv-grid-tool-panel-btn{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;font-size:13px}.sv-grid-tool-panel-btn:hover:not(:disabled){background:var(--sg-row-hover-bg,#94a3b82e);color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-btn:disabled{opacity:.35;cursor:default}.sv-grid-tool-panel-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;padding:6px 6px 0;display:flex}.sv-grid-tool-panel-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px 8px;font-size:12px;font-weight:600}.sv-grid-tool-panel-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-filters{flex-direction:column;flex:1;gap:8px;padding:6px;display:flex;overflow-y:auto}.sv-grid-tp-filter{border:1px solid var(--sg-border,#e2e8f0);border-radius:6px;flex-direction:column;gap:4px;padding:6px;display:flex}.sv-grid-tp-filter.is-filtered{border-color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-head{justify-content:space-between;align-items:center;display:flex}.sv-grid-tp-filter-name{color:var(--sg-fg,#0f172a);font-size:12px;font-weight:600}.sv-grid-tp-filter-clear{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:11px}.sv-grid-tp-filter-clear:hover{color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-op,.sv-grid-tp-filter-input{box-sizing:border-box;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);width:100%;color:var(--sg-fg,#0f172a);border-radius:5px;padding:4px 6px;font-size:12px}.sv-grid-root-fill{flex-direction:column;height:100%;min-height:0;display:flex}.sv-grid-root-fill>.sv-grid-shell{flex:1 1 0;min-height:0;height:auto!important}.sv-grid-shell{border-bottom:1px solid var(--sg-border,#cbd5e1);position:relative}.sv-grid-table{table-layout:fixed;border-collapse:separate;border-spacing:0}.sv-grid-table:focus{outline:none}.sv-grid-column,.sv-grid-cell{box-sizing:border-box;text-overflow:ellipsis;white-space:nowrap;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);-webkit-user-select:none;user-select:none;overflow:hidden}.sv-grid-cell-active,.sv-grid-cell-has-fill-handle{position:relative}.sv-grid-cell-has-fill-handle{overflow:visible}.sv-grid-detail-row{height:auto!important}.sv-grid-detail-cell{text-overflow:clip;white-space:normal;background:var(--sg-bg,#fff);-webkit-user-select:text;user-select:text;height:auto;padding:0;overflow:visible}.sv-grid-cell[data-pinned=left],.sv-grid-column[data-pinned=left]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 70%, var(--sg-accent,#2563eb) 8%));box-shadow:inset -1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), 8px 0 12px -6px #0f172a38}.sv-grid-cell[data-pinned=right],.sv-grid-column[data-pinned=right]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 70%, var(--sg-accent,#2563eb) 8%));box-shadow:inset 1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), -8px 0 12px -6px #0f172a38}.sv-grid-head .sv-grid-column[data-pinned=left],.sv-grid-head .sv-grid-column[data-pinned=right]{background:var(--sg-pinned-header-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 60%, var(--sg-accent,#2563eb) 14%));font-weight:600}.sv-grid-row-alt>.sv-grid-cell{background:var(--sg-row-alt-bg,#f8fafc)}.sv-grid-row-alt>.sv-grid-cell[data-pinned]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 70%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row-selected>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent), color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 70%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row:hover>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent), color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 70%, var(--sg-accent,#2563eb) 8%))}.sv-grid-column{position:relative}.sv-grid-cell[data-align=left],.sv-grid-column[data-align=left]{padding-left:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=right]{text-align:right;padding-right:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=center]{text-align:center}.sv-grid-column[data-align=right]{padding-right:var(--sg-cell-px,7px)}.sv-grid-column[data-align=right] .sv-grid-header-sort{justify-content:flex-end}.sv-grid-column[data-align=center] .sv-grid-header-sort{justify-content:center}.sv-grid-resize-handle{cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2;width:5px;height:100%;transition:background-color .1s;position:absolute;top:0;right:0}.sv-grid-resize-handle:hover,.sv-grid-resize-handle.is-resizing{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 30%, transparent)}.sv-grid-row-resize-handle{transition:background-color .1s}.sv-grid-row-resize-handle:hover,.sv-grid-row-resize-handle.is-resizing{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 30%, transparent)}.sv-grid-head{z-index:35;background:var(--sg-header-bg,#f5f7fb);position:sticky;top:0}.sv-grid-head .sv-grid-column{background:var(--sg-header-bg,#f5f7fb);color:var(--sg-header-label-color,var(--sg-header-fg,var(--sg-fg,#0f172a)));font-weight:var(--sg-header-weight,600);font-size:var(--sg-header-size,inherit);text-transform:var(--sg-header-transform,none);letter-spacing:var(--sg-header-tracking,normal)}.sv-grid-column[draggable=true]{cursor:grab}.sv-grid-column[draggable=true]:active{cursor:grabbing}.sv-grid-column.is-dragging{opacity:.55}.sv-grid-column.is-drag-target-before,.sv-grid-column.is-drag-target-after{position:relative}.sv-grid-column.is-drag-target-before:before,.sv-grid-column.is-drag-target-after:after{content:\"\";pointer-events:none;z-index:7;background:linear-gradient(#6366f1,#8b5cf6);border-radius:2px;width:3px;animation:.7s ease-in-out infinite alternate sg-drop-pulse;position:absolute;top:4px;bottom:4px;box-shadow:0 0 6px #6366f1}.sv-grid-column.is-drag-target-before:before{left:-2px}.sv-grid-column.is-drag-target-after:after{right:-2px}@keyframes sg-drop-pulse{0%{opacity:.55}to{opacity:1}}.sv-grid-row-draggable{cursor:grab}.sv-grid-row-draggable:active{cursor:grabbing}.sv-grid-row-draggable .sv-grid-row-number-cell{padding-left:14px;position:relative}.sv-grid-row-draggable .sv-grid-row-number-cell:before{content:\"⠇\";color:var(--sg-muted,#94a3b8);opacity:.4;pointer-events:none;font-size:13px;line-height:1;transition:opacity .12s;position:absolute;top:50%;left:3px;transform:translateY(-50%)}.sv-grid-row-draggable:hover .sv-grid-row-number-cell:before{opacity:1}.sv-grid-row-dropzone-over{outline:2px dashed var(--sg-accent,#6366f1);outline-offset:-2px;background:color-mix(in srgb, var(--sg-accent,#6366f1) 10%, transparent)}.sv-grid-row-drop-before>td{box-shadow:inset 0 2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-row-drop-after>td{box-shadow:inset 0 -2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-pinned-row td{z-index:4;background:var(--sg-pinned-bg,oklab(98.3416% .00101131 -.00809926));border-bottom:1px solid var(--sg-pinned-border,oklab(58.5404% .0252827 -.202483/.24));font-weight:600;position:sticky}.sv-grid-pinned-row-top td{top:var(--sg-thead-h,36px)}.sv-grid-pinned-row-bottom td{border-top:1px solid var(--sg-pinned-border,oklab(58.5404% .0252827 -.202483/.24));bottom:0}.sv-grid-pinned-row-top[data-pinned-index=\"1\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px))}.sv-grid-pinned-row-top[data-pinned-index=\"2\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-top[data-pinned-index=\"3\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row-bottom[data-pinned-index=\"1\"] td{bottom:var(--sg-pinned-row-h,32px)}.sv-grid-pinned-row-bottom[data-pinned-index=\"2\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-bottom[data-pinned-index=\"3\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row td[data-pinned]{z-index:5}.sv-grid-group-header-row{background:var(--sg-header-bg,#eef2f8)}.sv-grid-group-header-cell{box-sizing:border-box;border-bottom:1px solid var(--sg-border,#d8dee9);border-right:1px solid var(--sg-border,#e2e8f0);text-align:center;color:var(--sg-header-fg,#475569);text-transform:uppercase;letter-spacing:.04em;padding:4px 8px;font-size:11.5px;font-weight:700}.sv-grid-group-header-placeholder{background:0 0;border-right-color:#0000}.sv-grid-group-header-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block;overflow:hidden}.sv-grid-group-toggle{max-width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;padding:2px 6px;display:inline-flex}.sv-grid-group-toggle:hover{background:color-mix(in srgb, var(--sg-accent,#2563eb) 12%, transparent);color:var(--sg-accent,#2563eb)}.sv-grid-group-caret{flex-shrink:0;transition:transform .14s}.sv-grid-group-toggle.is-collapsed .sv-grid-group-caret{transform:rotate(-90deg)}.sv-grid-foot{z-index:6;background:var(--sg-header-bg,#f5f7fb);position:sticky;bottom:0}.sv-grid-container{scrollbar-width:auto;-ms-overflow-style:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-padding-top:var(--sg-thead-h,36px)}.sv-grid-container.sv-grid-container-custom-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.sv-grid-container.sv-grid-container-custom-scrollbars::-webkit-scrollbar{display:none}.sv-grid-scrollbar{z-index:40;position:absolute}.sv-grid-scrollbar-vertical{top:0;width:16px;height:calc(100% - 16px);inset-inline-end:0}.sv-grid-scrollbar-corner{top:0;background:var(--sg-header-bg,#f5f7fb);z-index:41;pointer-events:none;border-bottom:1px solid #0f172a14;width:16px;position:absolute;inset-inline-end:0}.sv-grid-scrollbar-corner-br{inset-inline-end:0;background:var(--sg-header-bg,#eef2f8);z-index:42;pointer-events:none;width:16px;height:16px;position:absolute;bottom:0;box-shadow:inset 0 0 0 1px #0f172a0d}.sv-grid-scrollbar-horizontal{inset-inline-start:0;width:calc(100% - 16px);height:16px;bottom:0}.sv-grid-selection-column,.sv-grid-selection-cell{text-align:center;z-index:4;padding-inline:6px;position:sticky}.sv-grid-row-number-column,.sv-grid-row-number-cell{text-align:right;z-index:4;background:var(--sg-header-bg,#f5f7fb);color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;padding-inline:8px;position:sticky;left:0}.sv-grid-row-number-head{color:inherit}.sv-grid-filter-row-control{flex-direction:row;align-items:center;gap:4px;display:flex}.sv-grid-filter-operator{box-sizing:border-box;flex:2 1 0;min-width:0}.sv-grid-filter-value{box-sizing:border-box;flex:3 1 0;min-width:0}.sv-grid-filter-value.sv-grid-filter-value-pulse{animation:.7s ease-out sv-grid-filter-pulse}@keyframes sv-grid-filter-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 55%, transparent)}70%{box-shadow:0 0 0 6px color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}to{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}}.sv-grid-checkbox{border:1px solid var(--sg-input-border,#8794a8);background:var(--sg-input-bg,#fff);width:16px;height:16px;color:var(--sg-accent,#0b63f3);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;margin:0 auto;transition:border-color .12s,background-color .12s;display:inline-flex;position:relative}.sv-grid-fr-editor{box-sizing:border-box;width:100%}select.sv-grid-fr-editor{height:100%;min-height:26px}.sv-grid-fr-checkbox{width:16px;height:16px;accent-color:var(--sg-accent,#3b82f6);cursor:pointer}.sv-grid-cell-editor-color{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:2px}.sv-grid-cell-editor-color::-webkit-color-swatch-wrapper{padding:0}.sv-grid-cell-editor-color::-webkit-color-swatch{border:0;border-radius:4px}.sv-grid-cell-editor-color::-moz-color-swatch{border:0;border-radius:4px}.sv-grid-rating-editor{align-items:center;gap:1px;height:100%;display:inline-flex}.sv-grid-rating-star{cursor:pointer;color:var(--sg-rating-empty,#cbd5e1);background:0 0;border:0;padding:0 1px;font-size:18px;line-height:1;transition:color 80ms,transform 80ms}.sv-grid-rating-star-on{color:var(--sg-rating-on,#f59e0b)}.sv-grid-rating-star:hover{color:var(--sg-rating-hover,#fbbf24);transform:scale(1.12)}.sv-grid-rating-clear{color:var(--sg-muted,#94a3b8);cursor:pointer;background:0 0;border:0;margin-left:4px;font-size:14px}.sv-grid-rating-clear:hover{color:var(--sg-fg,#0f172a)}.sv-grid-checkbox[aria-checked=true],.sv-grid-checkbox[aria-checked=mixed]{border-color:var(--sg-accent,#0b63f3);background:var(--sg-selection-bg,#eaf2ff)}.sv-grid-checkbox[aria-checked=true]:after{content:\"\";border-bottom:2px solid;border-right:2px solid;width:5px;height:9px;transform:rotate(40deg)translate(-1px,-1px)}.sv-grid-checkbox[aria-checked=mixed]:after{content:\"\";background:currentColor;border-radius:1px;width:8px;height:2px}.sv-grid-checkbox:focus-visible{outline:2px solid var(--sg-accent,#0b63f3);outline-offset:1px}.sv-grid-checkbox-readonly{cursor:default;pointer-events:none}@keyframes sv-grid-cell-flash-kf{0%{background-color:var(--sg-cell-flash,color-mix(in oklab, var(--sg-accent,#3b82f6) 42%, transparent))}to{background-color:#0000}}.sv-grid-cell-flash{animation:.7s ease-out sv-grid-cell-flash-kf}@media (prefers-reduced-motion:reduce){.sv-grid-cell-flash{animation:none}}.sv-grid-cell-active,.sv-grid-cell-editing{z-index:20;box-shadow:inset 0 0 0 2px var(--sg-accent,#0b63f3);outline:none;position:relative;overflow:visible}.sv-grid-cell-note-corner{background:linear-gradient(45deg, transparent 50%, var(--sg-note-corner,#f59e0b) 50%);cursor:help;z-index:6;width:12px;height:12px;position:absolute;top:0;right:0}.sv-grid-cell-note-corner:before{content:\"\";position:absolute;inset:-3px -3px 0 0}.sv-grid-fill-handle{background:var(--sg-accent,#0b63f3);border:1px solid var(--sg-bg,#fff);box-sizing:border-box;cursor:crosshair;z-index:15;touch-action:none;width:9px;height:9px;position:absolute;bottom:0;right:0}.sv-grid-fill-handle:hover{transform-origin:100% 100%;transform:scale(1.3)}.sv-grid-cell[data-fill-preview=true]{box-shadow:inset 0 0 0 2px var(--sg-fill-preview-border,color-mix(in srgb, var(--sg-accent,#0b63f3) 50%, transparent));background:var(--sg-fill-preview-bg,color-mix(in srgb, var(--sg-accent,#0b63f3) 8%, transparent))}.sv-grid-cell-editing{padding:0}.sv-grid-cell[data-selected-range=true]{background:var(--sg-selection-bg,#eef4ff);--sv-range-top:0 0 0 transparent;--sv-range-bottom:0 0 0 transparent;--sv-range-left:0 0 0 transparent;--sv-range-right:0 0 0 transparent;box-shadow:var(--sv-range-top), var(--sv-range-bottom), var(--sv-range-left), var(--sv-range-right)}.sv-grid-cell[data-range-top=true]{--sv-range-top:inset 0 2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-bottom=true]{--sv-range-bottom:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-left=true]{--sv-range-left:inset 2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-right=true]{--sv-range-right:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-top=true],.sv-grid-cell[data-range-bottom=true],.sv-grid-cell[data-range-left=true],.sv-grid-cell[data-range-right=true],.sv-grid-cell.sv-merge-edge-right,.sv-grid-cell.sv-merge-edge-bottom{z-index:3;position:relative}.sv-grid-cell.sv-merge-edge-right{box-shadow:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-edge-bottom{box-shadow:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-in-range{background:var(--sg-selection-bg,#eef4ff)}.sv-grid-cell-editor{background:var(--sg-input-bg,#fff);box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit;border:0;outline:none;padding:0 8px;position:absolute;inset:0}.sv-grid-global-filter input:focus,.sv-grid-filter-value:focus,.sv-grid-column-filter:focus,.sv-grid-menu-search:focus,.sv-grid-menu-condition-value:focus,.sv-grid-menu-operator:focus{outline:2px solid var(--sg-accent,#0b63f3);outline-offset:-2px;border-color:var(--sg-accent,#0b63f3)}.sv-grid-cell-editor-number,.sv-grid-cell-editor-date,.sv-grid-cell-editor-datetime{width:100%;height:100%}.sv-grid-cell-editor-list{appearance:auto;width:100%;height:100%;font:inherit;color:inherit;background:var(--sg-input-bg,#fff);box-sizing:border-box;border:0;padding:0 6px}.sv-grid-cell-editor-list[multiple]{z-index:5;border:1px solid var(--sg-accent,#0b63f3);background:var(--sg-input-bg,#fff);height:auto;min-height:100%;max-height:220px;padding:4px;position:absolute;top:0;left:0;right:0;box-shadow:0 8px 24px #0f172a2e}.sv-grid-cell-editor-chips{background:var(--sg-header-bg,var(--sg-bg,#fff));min-height:calc(100% + 2px);color:var(--sg-fg,#0f172a);box-sizing:border-box;z-index:1000;border:1px solid var(--sg-accent,#2563eb);border-radius:var(--sg-radius,6px);align-items:flex-start;padding:4px 6px;display:flex;position:absolute;top:-1px;left:-1px;right:-1px;overflow:visible;box-shadow:0 12px 28px #00000073}.sv-grid-cell-editing:has(.sv-grid-cell-editor-chips){outline:none}.sv-grid-chips-row{flex-wrap:wrap;align-items:center;gap:4px;width:100%;display:flex}.sv-grid-chip-input{min-width:60px;font:inherit;color:inherit;background:0 0;border:0;outline:none;flex:80px;padding:2px 4px}.sv-grid-chip-picker{min-width:80px;font:inherit;color:inherit;background:var(--sg-bg,#fff);border:1px solid #0f172a26;border-radius:4px;flex:100px;padding:2px 4px}.sv-grid-chip-commit{text-transform:uppercase;letter-spacing:.04em;color:#fff;background:var(--sg-accent,#0b63f3);cursor:pointer;border:0;border-radius:4px;padding:3px 8px;font-size:11px}.sv-grid-chip-commit:hover{filter:brightness(1.1)}.sv-grid-chips-display{vertical-align:middle;flex-wrap:nowrap;align-items:center;gap:4px;max-width:100%;display:inline-flex}.sv-grid-sparkline{vertical-align:middle;display:inline-block;overflow:visible}.sv-grid-cf-bg{z-index:0;pointer-events:none;position:absolute;inset:0}.sv-grid-cf-bar{z-index:0;opacity:.85;pointer-events:none;border-radius:0 2px 2px 0;position:absolute;top:0;bottom:0;left:0}.sv-grid-cell-cf{position:relative}.sv-grid-status-bar{color:var(--sg-fg);background:var(--sg-header-bg,#f1f5f9);border:1px solid var(--sg-border,#e2e8f0);border-top:0;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:18px;padding:6px 14px;font-size:12px;display:flex}.sv-grid-status-item{font-variant-numeric:tabular-nums;font-weight:600}.sv-grid-status-label{color:var(--sg-muted,#64748b);margin-right:5px;font-weight:400}.sv-grid-cf-content{z-index:1;position:relative}.sv-grid-cf-icon{margin-right:5px;font-size:.95em}.sv-grid-chip{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);color:var(--sg-fg,inherit);border:1px solid color-mix(in srgb, var(--sg-accent,#2563eb) 35%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.85em;line-height:1.4;display:inline-flex}.sv-grid-chip-removable{padding-right:2px}.sv-grid-chip-remove{background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:16px;height:16px;color:inherit;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex}.sv-grid-chip-remove:hover{color:#fff;background:#dc2626b3}.sv-grid-icon{flex:none;width:1em;height:1em;display:block}.sv-grid-header-cell{width:100%;min-width:0;min-height:var(--sg-header-min-height,auto);align-items:center;gap:2px;display:flex}.sv-grid-header-sort{min-width:0;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:4px;padding:2px;display:flex}.sv-grid-header-custom{text-align:left;cursor:pointer;outline:none;flex:auto;align-items:center;gap:4px;min-width:0;padding:2px;display:flex}.sv-grid-header-label{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}.sv-grid-header-icon{color:var(--sg-muted,#5b6b85);flex:none;font-size:13px;display:inline-flex}.sv-grid-header-icon-hint{opacity:0;transition:opacity .12s}.sv-grid-column:hover .sv-grid-header-icon-hint{opacity:.4}.sv-grid-header-icon-flag{color:var(--sg-accent,#0b63f3)}.sv-grid-col-menu-btn{width:0;height:22px;color:var(--sg-muted,#5b6b85);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;font-size:15px;transition:width .14s,opacity .14s,background-color .12s;display:inline-flex;overflow:hidden}.sv-grid-column:hover .sv-grid-col-menu-btn,.sv-grid-col-menu-btn.is-open,.sv-grid-col-menu-btn:focus-visible,.sv-grid-col-filter-btn.is-active{opacity:1;pointer-events:auto;width:22px}.sv-grid-col-menu-btn:hover,.sv-grid-col-menu-btn.is-open{background:var(--sg-row-hover-bg,#e2e8f3)}.sv-grid-filter-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:24px;color:var(--sg-fg,#334155);cursor:pointer;border-radius:4px;flex:none;align-items:center;gap:2px;padding:0 4px;font-size:13px;display:inline-flex}.sv-grid-filter-operator-btn.is-open{border-color:var(--sg-accent,#0b63f3)}.sv-grid-caret{color:var(--sg-muted,#94a3b8);font-size:9px;display:inline-flex}.sv-grid-menu-backdrop{z-index:900;background:0 0;position:fixed;inset:0}.sv-grid-menu{z-index:901;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);max-height:calc(100vh - 24px);color:var(--sg-fg,#1f2937);border-radius:8px;padding:4px;font-size:13px;position:fixed;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-column-menu{width:260px}.sv-grid-menu-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;margin:-2px -2px 4px;padding:2px 2px 0;display:flex}.sv-grid-menu-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px;font-size:12px;font-weight:600}.sv-grid-menu-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-menu-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-operator-menu{width:184px}.sv-grid-context-menu{min-width:180px}.sv-grid-comment-editor{width:240px;padding:8px}.sv-grid-comment-textarea{resize:vertical;border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;min-height:60px;color:var(--sg-fg,#0f172a);font:inherit;border-radius:4px;outline:none;padding:6px 8px;font-size:13px}.sv-grid-comment-textarea:focus{border-color:var(--sg-accent,#6366f1)}.sv-grid-comment-actions{align-items:center;gap:6px;margin-top:8px;display:flex}.sv-grid-comment-spacer{flex:auto}.sv-grid-comment-actions button{border:1px solid var(--sg-border,#cbd5e1);background:var(--sg-bg,#fff);color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;border-radius:4px;padding:4px 10px;font-size:12px}.sv-grid-comment-save{border-color:var(--sg-accent,#6366f1)!important;background:var(--sg-accent,#6366f1)!important;color:#fff!important}.sv-grid-comment-remove{color:var(--sg-danger,#dc2626)!important}.sv-grid-menu-item{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;padding:7px 10px;display:flex}.sv-grid-menu-item:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-item[aria-checked=true]{background:var(--sg-selection-bg,#eaf2ff);color:var(--sg-accent,#0b63f3)}.sv-grid-menu-sep{background:var(--sg-border,#e6ebf2);height:1px;margin:4px 6px}.sv-grid-menu-filter{padding:4px 6px 6px}.sv-grid-menu-filter-head{color:var(--sg-muted,#475569);align-items:center;gap:6px;padding:2px 0 6px;font-weight:600;display:flex}.sv-grid-menu-search{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);width:100%;height:28px;font:inherit;border-radius:5px;margin-bottom:6px;padding:0 8px}.sv-grid-menu-filter-row{gap:4px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-group{gap:2px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:28px;color:var(--sg-fg,#475569);cursor:pointer;border-radius:4px;flex:1 1 0;justify-content:center;align-items:center;padding:0;transition:background-color .1s,color .1s,border-color .1s;display:inline-flex}.sv-grid-menu-operator-btn:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-operator-btn.is-active{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-condition-value{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);min-width:0;height:28px;font:inherit;border-radius:5px;flex:1 1 0;padding:0 8px}.sv-grid-menu-add-cond{color:var(--sg-accent,#3b82f6);border:1px dashed var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;border-radius:5px;align-self:flex-start;margin-top:2px;padding:3px 8px;font-size:11.5px;font-weight:600}.sv-grid-menu-add-cond:hover{background:color-mix(in oklab, var(--sg-accent,#3b82f6) 8%, transparent);border-style:solid}.sv-grid-menu-join{align-items:center;gap:2px;margin:2px 0;display:inline-flex}.sv-grid-menu-join button{color:var(--sg-muted,#64748b);border:1px solid var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;padding:2px 10px;font-size:11px;font-weight:700}.sv-grid-menu-join button:first-child{border-radius:5px 0 0 5px}.sv-grid-menu-join button:nth-child(2){border-left:0;border-radius:0}.sv-grid-menu-join button.is-on{background:var(--sg-accent,#3b82f6);color:#fff;border-color:var(--sg-accent,#3b82f6)}.sv-grid-menu-join-x{margin-left:auto;font-size:14px;line-height:1;border-radius:5px!important;padding:2px 7px!important}.sv-grid-facet-list{border:1px solid var(--sg-border,#eaeef4);border-radius:5px;max-height:200px;overflow:auto}.sv-grid-facet{cursor:pointer;align-items:center;gap:8px;padding:4px 8px;display:flex}.sv-grid-facet:hover{background:var(--sg-row-hover-bg,#f4f6fa)}.sv-grid-facet-all{border-bottom:1px solid var(--sg-border,#eaeef4);font-weight:600}.sv-grid-facet input{flex:none}.sv-grid-facet-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-facet-empty,.sv-grid-facet-note{color:var(--sg-muted,#94a3b8);padding:6px 8px;font-size:12px}.sv-grid-menu-actions{justify-content:flex-end;gap:6px;padding-top:8px;display:flex}.sv-grid-menu-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#334155);font:inherit;cursor:pointer;border-radius:5px;padding:5px 10px}.sv-grid-menu-btn-primary{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-item:disabled,.sv-grid-menu-btn:disabled{opacity:.4;cursor:default}.sv-grid-menu-item:disabled:hover{background:0 0}.sv-grid-group-row>.sv-grid-cell{background:var(--sg-header-bg,#eef2f8);cursor:pointer;font-weight:600}.sv-grid-row-selected>.sv-grid-cell{background:var(--sg-selection-bg,#eaf2ff)}.sv-grid-group-cell{padding:0 12px}.sv-grid-group-content{align-items:center;gap:6px;display:inline-flex}.sv-grid-group-toggle{color:var(--sg-fg,#334155);cursor:pointer;background:0 0;border:0;padding:0 4px 0 0;font-size:11px;line-height:1}.sv-grid-group-count{color:var(--sg-muted,#64748b);margin-left:6px;font-size:12px;font-weight:400}.sv-grid-group-agg{color:var(--sg-fg);white-space:nowrap;margin-left:10px;font-size:12px;font-weight:600}.sv-grid-group-agg-label{color:var(--sg-muted,#64748b);margin-right:4px;font-weight:400}.sv-grid-group-agg-label:after{content:\":\"}.sv-grid-group-child-indent{width:18px;display:inline-block}.sv-grid-tooltip{z-index:10000;color:#f1f5f9;border-radius:var(--sg-radius,6px);pointer-events:none;white-space:pre-wrap;word-wrap:break-word;background:#0f172a;max-width:280px;padding:8px 10px;font-size:12px;line-height:1.45;position:fixed;box-shadow:0 8px 24px #0f172a47}[data-theme=dark] .sv-grid-tooltip{color:#0f172a;background:#f1f5f9}.sv-grid-cell-editor-textarea{border:1px solid var(--sg-accent,#6366f1);background:var(--sg-bg,#fff);width:100%;min-height:80px;color:var(--sg-fg,#0f172a);resize:vertical;box-shadow:var(--sg-focus-ring,0 0 0 2px #6366f166);border-radius:4px;outline:none;padding:6px 8px;font-family:inherit;font-size:13px;line-height:1.4}.sv-grid-autocomplete{width:100%;position:relative}.sv-grid-autocomplete-list{z-index:30;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);border-radius:var(--sg-radius,6px);max-height:220px;margin-top:2px;padding:4px;position:absolute;top:100%;left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-autocomplete-option{text-align:left;width:100%;color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:4px;padding:5px 8px;font-size:13px;display:block;overflow:hidden}.sv-grid-autocomplete-option:hover,.sv-grid-autocomplete-option[aria-selected=true]{background:var(--sg-row-hover-bg,#6366f11a)}.sv-grid-find{z-index:60;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-border,#cbd5e1);border-radius:8px;align-items:center;gap:4px;min-width:280px;padding:6px 8px;display:inline-flex;position:absolute;top:8px;right:8px;box-shadow:0 10px 25px #0f172a2e}.sv-grid-find-icon{width:14px;height:14px;color:var(--sg-muted,#94a3b8);flex:none;margin-left:2px}.sv-grid-find-input{min-width:0;color:inherit;background:0 0;border:0;outline:none;flex:1;padding:2px 6px;font-size:13px}.sv-grid-find-input::placeholder{color:var(--sg-muted,#94a3b8)}.sv-grid-find-count{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 4px;font-size:11px}.sv-grid-find-step,.sv-grid-find-close{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.sv-grid-find-step:hover:not(:disabled),.sv-grid-find-close:hover{background:var(--sg-row-hover-bg,#94a3b81f);color:var(--sg-fg,#0f172a)}.sv-grid-find-step:disabled{opacity:.3;cursor:default}\n/*$vite$:1*/";document.head.appendChild(s)}catch(e){}})();
|
|
13540
|
+
;(function(){try{if(typeof document==='undefined')return;var s=document.createElement('style');s.setAttribute('data-svgrid','');s.textContent=".sv-grid-root{position:relative}.sv-grid-sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sv-grid-loading-overlay{z-index:18;pointer-events:auto;background:color-mix(in srgb, var(--sg-bg,#fff) 35%, transparent);position:absolute;inset:0}.sv-grid-loading-bar{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);height:3px;position:absolute;top:0;left:0;right:0;overflow:hidden}.sv-grid-loading-bar:before{content:\"\";background:var(--sg-accent,#2563eb);width:40%;animation:1.1s ease-in-out infinite sv-grid-loading-slide;position:absolute;inset:0}@keyframes sv-grid-loading-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}.sv-grid-skeleton{top:var(--sg-thead-h,40px);padding:0;position:absolute;left:0;right:0;overflow:hidden}.sv-grid-skeleton-row{height:var(--sg-pinned-row-h,36px);border-bottom:1px solid var(--sg-border,#e2e8f0);align-items:center;display:flex}.sv-grid-skeleton-cell{box-sizing:border-box;flex-shrink:0;padding:0 12px}.sv-grid-skeleton-bar{background:linear-gradient(90deg, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 25%, color-mix(in srgb, var(--sg-muted,#94a3b8) 32%, transparent) 50%, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 75%);background-size:200% 100%;border-radius:4px;width:70%;height:10px;animation:1.3s linear infinite sv-grid-shimmer;display:block}@keyframes sv-grid-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.sv-grid-toolbar{align-items:center;gap:8px;padding:6px 2px;display:flex}.sv-grid-toolbar-btn{border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex}.sv-grid-toolbar-btn:hover{border-color:var(--sg-accent,#2563eb);color:var(--sg-accent,#2563eb)}.sv-grid-toolbar-btn.is-active{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:#fff}.sv-grid-tool-panel{z-index:901;background:var(--sg-bg,#fff);border-left:1px solid var(--sg-border,#e2e8f0);flex-direction:column;width:250px;display:flex;position:absolute;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0000001f}.sv-grid-tool-panel-head{text-transform:uppercase;letter-spacing:.05em;color:var(--sg-muted,#64748b);border-bottom:1px solid var(--sg-border,#e2e8f0);justify-content:space-between;align-items:center;padding:8px 12px;font-size:12px;font-weight:700;display:flex}.sv-grid-tool-panel-close{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;font-size:14px}.sv-grid-tool-panel-list{flex:1;margin:0;padding:6px;list-style:none;overflow-y:auto}.sv-grid-tool-panel-item{border-radius:5px;justify-content:space-between;align-items:center;gap:6px;padding:3px 6px;display:flex}.sv-grid-tool-panel-item:hover{background:var(--sg-row-hover-bg,#94a3b81a)}.sv-grid-tool-panel-vis{min-width:0;color:var(--sg-fg,#0f172a);cursor:pointer;flex:1;align-items:center;gap:8px;font-size:13px;display:flex}.sv-grid-tool-panel-vis input{accent-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-tool-panel-actions{flex-shrink:0;gap:2px;display:inline-flex}.sv-grid-tool-panel-btn{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;font-size:13px}.sv-grid-tool-panel-btn:hover:not(:disabled){background:var(--sg-row-hover-bg,#94a3b82e);color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-btn:disabled{opacity:.35;cursor:default}.sv-grid-tool-panel-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;padding:6px 6px 0;display:flex}.sv-grid-tool-panel-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px 8px;font-size:12px;font-weight:600}.sv-grid-tool-panel-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-filters{flex-direction:column;flex:1;gap:8px;padding:6px;display:flex;overflow-y:auto}.sv-grid-tp-filter{border:1px solid var(--sg-border,#e2e8f0);border-radius:6px;flex-direction:column;gap:4px;padding:6px;display:flex}.sv-grid-tp-filter.is-filtered{border-color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-head{justify-content:space-between;align-items:center;display:flex}.sv-grid-tp-filter-name{color:var(--sg-fg,#0f172a);font-size:12px;font-weight:600}.sv-grid-tp-filter-clear{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:11px}.sv-grid-tp-filter-clear:hover{color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-op,.sv-grid-tp-filter-input{box-sizing:border-box;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);width:100%;color:var(--sg-fg,#0f172a);border-radius:5px;padding:4px 6px;font-size:12px}.sv-grid-root-fill{flex-direction:column;height:100%;min-height:0;display:flex}.sv-grid-root-fill>.sv-grid-shell{flex:1 1 0;min-height:0;height:auto!important}.sv-grid-shell{border-bottom:1px solid var(--sg-border,#cbd5e1);position:relative}.sv-grid-table{table-layout:fixed;border-collapse:separate;border-spacing:0}.sv-grid-table:focus{outline:none}.sv-grid-column,.sv-grid-cell{box-sizing:border-box;text-overflow:ellipsis;white-space:nowrap;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);-webkit-user-select:none;user-select:none;border-right:1px solid var(--sg-border,#e2e8f0);border-bottom:1px solid var(--sg-border,#e2e8f0);overflow:hidden}.sv-grid-table tr>:last-child.sv-grid-column,.sv-grid-table tr>:last-child.sv-grid-cell{border-right:0}.sv-grid-table tbody tr:hover>.sv-grid-cell{background:var(--sg-row-hover-bg,#eef2ff)}.sv-grid-cell-active,.sv-grid-cell-has-fill-handle{position:relative}.sv-grid-cell-has-fill-handle{overflow:visible}.sv-grid-detail-row{height:auto!important}.sv-grid-detail-cell{text-overflow:clip;white-space:normal;background:var(--sg-bg,#fff);-webkit-user-select:text;user-select:text;height:auto;padding:0;overflow:visible}.sv-grid-cell[data-pinned=left],.sv-grid-column[data-pinned=left]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));box-shadow:inset -1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), 8px 0 12px -6px #0f172a38}.sv-grid-cell[data-pinned=right],.sv-grid-column[data-pinned=right]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));box-shadow:inset 1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), -8px 0 12px -6px #0f172a38}.sv-grid-head .sv-grid-column[data-pinned=left],.sv-grid-head .sv-grid-column[data-pinned=right]{background:var(--sg-pinned-header-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 86%, var(--sg-accent,#2563eb) 14%));font-weight:600}.sv-grid-row-alt>.sv-grid-cell{background:var(--sg-row-alt-bg,#f8fafc)}.sv-grid-row-alt>.sv-grid-cell[data-pinned]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row-selected>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent), color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row:hover>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent), color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-column{position:relative}.sv-grid-cell[data-align=left],.sv-grid-column[data-align=left]{padding-left:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=right]{text-align:right;padding-right:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=center]{text-align:center}.sv-grid-column[data-align=right]{padding-right:var(--sg-cell-px,7px)}.sv-grid-column[data-align=right] .sv-grid-header-sort{justify-content:flex-end}.sv-grid-has-vscroll .sv-grid-table tr>:last-child.sv-grid-cell[data-align=right],.sv-grid-has-vscroll .sv-grid-table tr>:last-child.sv-grid-column[data-align=right]{padding-right:calc(var(--sg-cell-px,7px) + 16px)}.sv-grid-column[data-align=center] .sv-grid-header-sort{justify-content:center}.sv-grid-resize-handle{cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2;width:5px;height:100%;transition:background-color .1s;position:absolute;top:0;right:0}.sv-grid-resize-handle:after{content:\"\";background:var(--sg-fg,#0f172a);opacity:0;border-radius:1px;width:2px;margin:auto 2px;transition:background-color .1s,opacity .1s;position:absolute;inset:0}.sv-grid-column:hover .sv-grid-resize-handle:after{opacity:.3}.sv-grid-column:hover .sv-grid-resize-handle:hover:after,.sv-grid-resize-handle.is-resizing:after{background:var(--sg-accent,#2563eb);opacity:1}.sv-grid-row-resize-handle{transition:background-color .1s}.sv-grid-row-resize-handle:hover,.sv-grid-row-resize-handle.is-resizing{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 30%, transparent)}.sv-grid-head{z-index:35;background:var(--sg-header-bg,#f5f7fb);position:sticky;top:0}.sv-grid-head .sv-grid-column{background:var(--sg-header-bg,#f5f7fb);color:var(--sg-header-label-color,var(--sg-header-fg,var(--sg-fg,#0f172a)));font-weight:var(--sg-header-weight,600);font-size:var(--sg-header-size,inherit);text-transform:var(--sg-header-transform,none);letter-spacing:var(--sg-header-tracking,normal)}.sv-grid-column[draggable=true]{cursor:grab}.sv-grid-column[draggable=true]:active{cursor:grabbing}.sv-grid-column.is-dragging{opacity:.55}.sv-grid-column.is-drag-target-before,.sv-grid-column.is-drag-target-after{position:relative}.sv-grid-column.is-drag-target-before:before,.sv-grid-column.is-drag-target-after:after{content:\"\";pointer-events:none;z-index:7;background:linear-gradient(#6366f1,#8b5cf6);border-radius:2px;width:3px;animation:.7s ease-in-out infinite alternate sg-drop-pulse;position:absolute;top:4px;bottom:4px;box-shadow:0 0 6px #6366f1}.sv-grid-column.is-drag-target-before:before{left:-2px}.sv-grid-column.is-drag-target-after:after{right:-2px}@keyframes sg-drop-pulse{0%{opacity:.55}to{opacity:1}}.sv-grid-row-draggable{cursor:grab}.sv-grid-row-draggable:active{cursor:grabbing}.sv-grid-row-draggable .sv-grid-row-number-cell{padding-left:14px;position:relative}.sv-grid-row-draggable .sv-grid-row-number-cell:before{content:\"⠇\";color:var(--sg-muted,#94a3b8);opacity:.4;pointer-events:none;font-size:13px;line-height:1;transition:opacity .12s;position:absolute;top:50%;left:3px;transform:translateY(-50%)}.sv-grid-row-draggable:hover .sv-grid-row-number-cell:before{opacity:1}.sv-grid-row-dropzone-over{outline:2px dashed var(--sg-accent,#6366f1);outline-offset:-2px;background:color-mix(in srgb, var(--sg-accent,#6366f1) 10%, transparent)}.sv-grid-row-drop-before>td{box-shadow:inset 0 2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-row-drop-after>td{box-shadow:inset 0 -2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-pinned-row td{z-index:4;background:var(--sg-pinned-bg,oklab(98.3416% .00101131 -.00809926));border-bottom:1px solid var(--sg-pinned-border,oklab(58.5404% .0252827 -.202483/.24));font-weight:600;position:sticky}.sv-grid-pinned-row-top td{top:var(--sg-thead-h,36px)}.sv-grid-pinned-row-bottom td{border-top:1px solid var(--sg-pinned-border,oklab(58.5404% .0252827 -.202483/.24));bottom:0}.sv-grid-pinned-row-top[data-pinned-index=\"1\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px))}.sv-grid-pinned-row-top[data-pinned-index=\"2\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-top[data-pinned-index=\"3\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row-bottom[data-pinned-index=\"1\"] td{bottom:var(--sg-pinned-row-h,32px)}.sv-grid-pinned-row-bottom[data-pinned-index=\"2\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-bottom[data-pinned-index=\"3\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row td[data-pinned]{z-index:5}.sv-grid-group-header-row{background:var(--sg-header-bg,#eef2f8)}.sv-grid-group-header-cell{box-sizing:border-box;border-bottom:1px solid var(--sg-border,#d8dee9);border-right:1px solid var(--sg-border,#e2e8f0);text-align:center;color:var(--sg-header-fg,#475569);text-transform:uppercase;letter-spacing:.04em;padding:4px 8px;font-size:11.5px;font-weight:700}.sv-grid-group-header-placeholder{background:0 0;border-right-color:#0000}.sv-grid-group-header-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block;overflow:hidden}.sv-grid-group-toggle{max-width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;padding:2px 6px;display:inline-flex}.sv-grid-group-toggle:hover{background:color-mix(in srgb, var(--sg-accent,#2563eb) 12%, transparent);color:var(--sg-accent,#2563eb)}.sv-grid-group-caret{flex-shrink:0;transition:transform .14s}.sv-grid-group-toggle.is-collapsed .sv-grid-group-caret{transform:rotate(-90deg)}.sv-grid-foot{z-index:6;background:var(--sg-header-bg,#f5f7fb);position:sticky;bottom:0}.sv-grid-container{scrollbar-width:auto;-ms-overflow-style:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-padding-top:var(--sg-thead-h,36px)}.sv-grid-container.sv-grid-container-custom-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.sv-grid-container.sv-grid-container-custom-scrollbars::-webkit-scrollbar{display:none}.sv-grid-scrollbar{z-index:40;position:absolute}.sv-grid-scrollbar-vertical{top:0;width:16px;height:calc(100% - 16px);inset-inline-end:0}.sv-grid-scrollbar-corner{top:0;background:var(--sg-header-bg,#f5f7fb);z-index:41;pointer-events:none;border-bottom:1px solid #0f172a14;width:16px;position:absolute;inset-inline-end:0}.sv-grid-scrollbar-corner-br{inset-inline-end:0;background:var(--sg-header-bg,#eef2f8);z-index:42;pointer-events:none;width:16px;height:16px;position:absolute;bottom:0;box-shadow:inset 0 0 0 1px #0f172a0d}.sv-grid-scrollbar-horizontal{inset-inline-start:0;width:calc(100% - 16px);height:16px;bottom:0}.sv-grid-selection-column,.sv-grid-selection-cell{text-align:center;z-index:4;padding-inline:6px;position:sticky}.sv-grid-row-number-column,.sv-grid-row-number-cell{text-align:right;z-index:4;background:var(--sg-header-bg,#f5f7fb);color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;padding-inline:8px;position:sticky;left:0}.sv-grid-row-number-head{color:inherit}.sv-grid-filter-row-control{flex-direction:row;align-items:center;gap:4px;display:flex}.sv-grid-filter-operator{box-sizing:border-box;flex:2 1 0;min-width:0}.sv-grid-filter-value{box-sizing:border-box;flex:3 1 0;min-width:0}.sv-grid-filter-value.sv-grid-filter-value-pulse{animation:.7s ease-out sv-grid-filter-pulse}@keyframes sv-grid-filter-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 55%, transparent)}70%{box-shadow:0 0 0 6px color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}to{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}}.sv-grid-checkbox{border:1px solid var(--sg-input-border,#8794a8);background:var(--sg-input-bg,#fff);width:16px;height:16px;color:var(--sg-accent,#0b63f3);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;margin:0 auto;transition:border-color .12s,background-color .12s;display:inline-flex;position:relative}.sv-grid-fr-editor{box-sizing:border-box;width:100%}select.sv-grid-fr-editor{height:100%;min-height:26px}.sv-grid-fr-checkbox{width:16px;height:16px;accent-color:var(--sg-accent,#3b82f6);cursor:pointer}.sv-grid-cell-editor-color{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:2px}.sv-grid-cell-editor-color::-webkit-color-swatch-wrapper{padding:0}.sv-grid-cell-editor-color::-webkit-color-swatch{border:0;border-radius:4px}.sv-grid-cell-editor-color::-moz-color-swatch{border:0;border-radius:4px}.sv-grid-rating-editor{align-items:center;gap:1px;height:100%;display:inline-flex}.sv-grid-rating-star{cursor:pointer;color:var(--sg-rating-empty,#cbd5e1);background:0 0;border:0;padding:0 1px;font-size:18px;line-height:1;transition:color 80ms,transform 80ms}.sv-grid-rating-star-on{color:var(--sg-rating-on,#f59e0b)}.sv-grid-rating-star:hover{color:var(--sg-rating-hover,#fbbf24);transform:scale(1.12)}.sv-grid-rating-clear{color:var(--sg-muted,#94a3b8);cursor:pointer;background:0 0;border:0;margin-left:4px;font-size:14px}.sv-grid-rating-clear:hover{color:var(--sg-fg,#0f172a)}.sv-grid-checkbox[aria-checked=true],.sv-grid-checkbox[aria-checked=mixed]{border-color:var(--sg-accent,#2563eb);background:var(--sg-accent,#2563eb);color:var(--sg-on-accent,#fff)}.sv-grid-checkbox[aria-checked=true]:after{content:\"\";border-bottom:2px solid;border-right:2px solid;width:5px;height:9px;transform:rotate(40deg)translate(-1px,-1px)}.sv-grid-checkbox[aria-checked=mixed]:after{content:\"\";background:currentColor;border-radius:1px;width:8px;height:2px}.sv-grid-checkbox:focus-visible{outline:2px solid var(--sg-accent,#0b63f3);outline-offset:1px}.sv-grid-checkbox-readonly{cursor:default;pointer-events:none}@keyframes sv-grid-cell-flash-kf{0%{background-color:var(--sg-cell-flash,color-mix(in oklab, var(--sg-accent,#3b82f6) 42%, transparent))}to{background-color:#0000}}.sv-grid-cell-flash{animation:.7s ease-out sv-grid-cell-flash-kf}@media (prefers-reduced-motion:reduce){.sv-grid-cell-flash{animation:none}}.sv-grid-cell-active,.sv-grid-cell-editing{z-index:20;box-shadow:inset 0 0 0 2px var(--sg-accent,#0b63f3);outline:none;position:relative;overflow:visible}.sv-grid-cell-note-corner{background:linear-gradient(45deg, transparent 50%, var(--sg-note-corner,#f59e0b) 50%);cursor:help;z-index:6;width:12px;height:12px;position:absolute;top:0;right:0}.sv-grid-cell-note-corner:before{content:\"\";position:absolute;inset:-3px -3px 0 0}.sv-grid-fill-handle{background:var(--sg-accent,#0b63f3);border:1px solid var(--sg-bg,#fff);box-sizing:border-box;cursor:crosshair;z-index:15;touch-action:none;width:9px;height:9px;position:absolute;bottom:0;right:0}.sv-grid-fill-handle:hover{transform-origin:100% 100%;transform:scale(1.3)}.sv-grid-cell[data-fill-preview=true]{box-shadow:inset 0 0 0 2px var(--sg-fill-preview-border,color-mix(in srgb, var(--sg-accent,#0b63f3) 50%, transparent));background:var(--sg-fill-preview-bg,color-mix(in srgb, var(--sg-accent,#0b63f3) 8%, transparent))}.sv-grid-cell-editing{padding:0}.sv-grid-cell[data-selected-range=true]{background:var(--sg-selection-bg,#eef4ff);--sv-range-top:0 0 0 transparent;--sv-range-bottom:0 0 0 transparent;--sv-range-left:0 0 0 transparent;--sv-range-right:0 0 0 transparent;box-shadow:var(--sv-range-top), var(--sv-range-bottom), var(--sv-range-left), var(--sv-range-right)}.sv-grid-cell[data-range-top=true]{--sv-range-top:inset 0 2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-bottom=true]{--sv-range-bottom:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-left=true]{--sv-range-left:inset 2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-right=true]{--sv-range-right:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-top=true],.sv-grid-cell[data-range-bottom=true],.sv-grid-cell[data-range-left=true],.sv-grid-cell[data-range-right=true],.sv-grid-cell.sv-merge-edge-right,.sv-grid-cell.sv-merge-edge-bottom{z-index:3;position:relative}.sv-grid-cell.sv-merge-edge-right{box-shadow:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-edge-bottom{box-shadow:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-in-range{background:var(--sg-selection-bg,#eef4ff)}.sv-grid-cell-editor{background:var(--sg-input-bg,#fff);box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit;border:0;outline:none;padding:0 8px;position:absolute;inset:0}.sv-grid-column-filter,.sv-grid-filter-value,.sv-grid-global-filter input,.sv-grid-menu-search,.sv-grid-menu-condition-value{background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,#cbd5e1);box-sizing:border-box;font:inherit;border-radius:5px;padding:0 8px}.sv-grid-column-filter{width:100%;height:28px;font-size:.8125rem}.sv-grid-column-filter::placeholder,.sv-grid-filter-value::placeholder,.sv-grid-menu-search::placeholder,.sv-grid-global-filter input::placeholder,.sv-grid-cell-editor::placeholder{color:var(--sg-muted,#64748b);opacity:.7}.sv-grid-global-filter input:focus,.sv-grid-filter-value:focus,.sv-grid-column-filter:focus,.sv-grid-menu-search:focus,.sv-grid-menu-condition-value:focus,.sv-grid-menu-operator:focus,.sv-grid-cell-editor:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent);outline:none}.sv-grid-cell-editor-number,.sv-grid-cell-editor-date,.sv-grid-cell-editor-datetime{width:100%;height:100%}.sv-grid-cell-editor-list{appearance:auto;width:100%;height:100%;font:inherit;color:inherit;background:var(--sg-input-bg,#fff);box-sizing:border-box;border:0;padding:0 6px}.sv-grid-cell-editor-list[multiple]{z-index:5;border:1px solid var(--sg-accent,#0b63f3);background:var(--sg-input-bg,#fff);height:auto;min-height:100%;max-height:220px;padding:4px;position:absolute;top:0;left:0;right:0;box-shadow:0 8px 24px #0f172a2e}.sv-grid-cell-editor-chips{background:var(--sg-header-bg,var(--sg-bg,#fff));min-height:calc(100% + 2px);color:var(--sg-fg,#0f172a);box-sizing:border-box;z-index:1000;border:1px solid var(--sg-accent,#2563eb);border-radius:var(--sg-radius,6px);align-items:flex-start;padding:4px 6px;display:flex;position:absolute;top:-1px;left:-1px;right:-1px;overflow:visible;box-shadow:0 12px 28px #00000073}.sv-grid-cell-editing:has(.sv-grid-cell-editor-chips){outline:none}.sv-grid-chips-row{flex-wrap:wrap;align-items:center;gap:4px;width:100%;display:flex}.sv-grid-chip-input{min-width:60px;font:inherit;color:inherit;background:0 0;border:0;outline:none;flex:80px;padding:2px 4px}.sv-grid-chip-picker{min-width:80px;font:inherit;color:inherit;background:var(--sg-bg,#fff);border:1px solid #0f172a26;border-radius:4px;flex:100px;padding:2px 4px}.sv-grid-chip-commit{text-transform:uppercase;letter-spacing:.04em;color:#fff;background:var(--sg-accent,#0b63f3);cursor:pointer;border:0;border-radius:4px;padding:3px 8px;font-size:11px}.sv-grid-chip-commit:hover{filter:brightness(1.1)}.sv-grid-chips-display{vertical-align:middle;flex-wrap:nowrap;align-items:center;gap:4px;max-width:100%;display:inline-flex}.sv-grid-sparkline{vertical-align:middle;display:inline-block;overflow:visible}.sv-grid-cf-bg{z-index:0;pointer-events:none;position:absolute;inset:0}.sv-grid-cf-bar{z-index:0;opacity:.85;pointer-events:none;border-radius:0 2px 2px 0;position:absolute;top:0;bottom:0;left:0}.sv-grid-cell-cf{position:relative}.sv-grid-status-bar{color:var(--sg-fg);background:var(--sg-header-bg,#f1f5f9);border:1px solid var(--sg-border,#e2e8f0);border-top:0;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:18px;padding:6px 14px;font-size:12px;display:flex}.sv-grid-status-item{font-variant-numeric:tabular-nums;font-weight:600}.sv-grid-status-label{color:var(--sg-muted,#64748b);margin-right:5px;font-weight:400}.sv-grid-cf-content{z-index:1;position:relative}.sv-grid-cf-icon{margin-right:5px;font-size:.95em}.sv-grid-chip{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);color:var(--sg-fg,inherit);border:1px solid color-mix(in srgb, var(--sg-accent,#2563eb) 35%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.85em;line-height:1.4;display:inline-flex}.sv-grid-chip-removable{padding-right:2px}.sv-grid-chip-remove{background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:16px;height:16px;color:inherit;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex}.sv-grid-chip-remove:hover{color:#fff;background:#dc2626b3}.sv-grid-icon{flex:none;width:1em;height:1em;display:block}.sv-grid-header-cell{width:100%;min-width:0;min-height:var(--sg-header-min-height,auto);align-items:center;gap:2px;display:flex}.sv-grid-header-sort{min-width:0;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:4px;padding:2px;display:flex}.sv-grid-header-custom{text-align:left;cursor:pointer;outline:none;flex:auto;align-items:center;gap:4px;min-width:0;padding:2px;display:flex}.sv-grid-header-label{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}.sv-grid-header-icon{color:var(--sg-muted,#5b6b85);flex:none;font-size:13px;display:inline-flex}.sv-grid-header-icon-hint{opacity:0;transition:opacity .12s}.sv-grid-column:hover .sv-grid-header-icon-hint{opacity:.4}.sv-grid-header-icon-flag{color:var(--sg-accent,#0b63f3)}.sv-grid-col-menu-btn{width:0;height:22px;color:var(--sg-muted,#5b6b85);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;font-size:15px;transition:width .14s,opacity .14s,background-color .12s;display:inline-flex;overflow:hidden}.sv-grid-column:hover .sv-grid-col-menu-btn,.sv-grid-col-menu-btn.is-open,.sv-grid-col-menu-btn:focus-visible,.sv-grid-col-filter-btn.is-active{opacity:1;pointer-events:auto;width:22px}.sv-grid-col-menu-btn:hover,.sv-grid-col-menu-btn.is-open{background:var(--sg-row-hover-bg,#e2e8f3)}.sv-grid-filter-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:24px;color:var(--sg-fg,#334155);cursor:pointer;border-radius:4px;flex:none;align-items:center;gap:2px;padding:0 4px;font-size:13px;display:inline-flex}.sv-grid-filter-operator-btn.is-open{border-color:var(--sg-accent,#0b63f3)}.sv-grid-caret{color:var(--sg-muted,#94a3b8);font-size:9px;display:inline-flex}.sv-grid-menu-backdrop{z-index:900;background:0 0;position:fixed;inset:0}.sv-grid-menu{z-index:901;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);max-height:calc(100vh - 24px);color:var(--sg-fg,#1f2937);border-radius:8px;padding:4px;font-size:13px;position:fixed;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-column-menu{width:260px}.sv-grid-menu-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;margin:-2px -2px 4px;padding:2px 2px 0;display:flex}.sv-grid-menu-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px;font-size:12px;font-weight:600}.sv-grid-menu-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-menu-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-operator-menu{width:184px}.sv-grid-context-menu{min-width:180px}.sv-grid-comment-editor{width:240px;padding:8px}.sv-grid-comment-textarea{resize:vertical;border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;min-height:60px;color:var(--sg-fg,#0f172a);font:inherit;border-radius:4px;outline:none;padding:6px 8px;font-size:13px}.sv-grid-comment-textarea:focus{border-color:var(--sg-accent,#6366f1)}.sv-grid-comment-actions{align-items:center;gap:6px;margin-top:8px;display:flex}.sv-grid-comment-spacer{flex:auto}.sv-grid-comment-actions button{border:1px solid var(--sg-border,#cbd5e1);background:var(--sg-bg,#fff);color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;border-radius:4px;padding:4px 10px;font-size:12px}.sv-grid-comment-save{border-color:var(--sg-accent,#6366f1)!important;background:var(--sg-accent,#6366f1)!important;color:#fff!important}.sv-grid-comment-remove{color:var(--sg-danger,#dc2626)!important}.sv-grid-menu-item{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;padding:7px 10px;display:flex}.sv-grid-menu-item:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-item[aria-checked=true]{background:var(--sg-selection-bg,#eaf2ff);color:var(--sg-accent,#0b63f3)}.sv-grid-menu-sep{background:var(--sg-border,#e6ebf2);height:1px;margin:4px 6px}.sv-grid-menu-filter{padding:4px 6px 6px}.sv-grid-menu-filter-head{color:var(--sg-muted,#475569);align-items:center;gap:6px;padding:2px 0 6px;font-weight:600;display:flex}.sv-grid-menu-search{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);width:100%;height:28px;font:inherit;border-radius:5px;margin-bottom:6px;padding:0 8px}.sv-grid-menu-filter-row{gap:4px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-group{gap:2px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:28px;color:var(--sg-fg,#475569);cursor:pointer;border-radius:4px;flex:1 1 0;justify-content:center;align-items:center;padding:0;transition:background-color .1s,color .1s,border-color .1s;display:inline-flex}.sv-grid-menu-operator-btn:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-operator-btn.is-active{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-condition-value{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);min-width:0;height:28px;font:inherit;border-radius:5px;flex:1 1 0;padding:0 8px}.sv-grid-menu-add-cond{color:var(--sg-accent,#3b82f6);border:1px dashed var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;border-radius:5px;align-self:flex-start;margin-top:2px;padding:3px 8px;font-size:11.5px;font-weight:600}.sv-grid-menu-add-cond:hover{background:color-mix(in oklab, var(--sg-accent,#3b82f6) 8%, transparent);border-style:solid}.sv-grid-menu-join{align-items:center;gap:2px;margin:2px 0;display:inline-flex}.sv-grid-menu-join button{color:var(--sg-muted,#64748b);border:1px solid var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;padding:2px 10px;font-size:11px;font-weight:700}.sv-grid-menu-join button:first-child{border-radius:5px 0 0 5px}.sv-grid-menu-join button:nth-child(2){border-left:0;border-radius:0}.sv-grid-menu-join button.is-on{background:var(--sg-accent,#3b82f6);color:#fff;border-color:var(--sg-accent,#3b82f6)}.sv-grid-menu-join-x{margin-left:auto;font-size:14px;line-height:1;border-radius:5px!important;padding:2px 7px!important}.sv-grid-facet-list{border:1px solid var(--sg-border,#eaeef4);border-radius:5px;max-height:200px;overflow:auto}.sv-grid-facet{cursor:pointer;align-items:center;gap:8px;padding:4px 8px;display:flex}.sv-grid-facet:hover{background:var(--sg-row-hover-bg,#f4f6fa)}.sv-grid-facet-all{border-bottom:1px solid var(--sg-border,#eaeef4);font-weight:600}.sv-grid-facet input{flex:none}.sv-grid-facet-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-facet-empty,.sv-grid-facet-note{color:var(--sg-muted,#94a3b8);padding:6px 8px;font-size:12px}.sv-grid-menu-actions{justify-content:flex-end;gap:6px;padding-top:8px;display:flex}.sv-grid-menu-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#334155);font:inherit;cursor:pointer;border-radius:5px;padding:5px 10px}.sv-grid-menu-btn-primary{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-item:disabled,.sv-grid-menu-btn:disabled{opacity:.4;cursor:default}.sv-grid-menu-item:disabled:hover{background:0 0}.sv-grid-group-row>.sv-grid-cell{background:var(--sg-header-bg,#eef2f8);cursor:pointer;font-weight:600}.sv-grid-row-selected>.sv-grid-cell{background:var(--sg-selection-bg,#eaf2ff)}.sv-grid-group-cell{padding:0 12px}.sv-grid-group-content{align-items:center;gap:6px;display:inline-flex}.sv-grid-group-toggle{color:var(--sg-fg,#334155);cursor:pointer;background:0 0;border:0;padding:0 4px 0 0;font-size:11px;line-height:1}.sv-grid-group-count{color:var(--sg-muted,#64748b);margin-left:6px;font-size:12px;font-weight:400}.sv-grid-group-agg{color:var(--sg-fg);white-space:nowrap;margin-left:10px;font-size:12px;font-weight:600}.sv-grid-group-agg-label{color:var(--sg-muted,#64748b);margin-right:4px;font-weight:400}.sv-grid-group-agg-label:after{content:\":\"}.sv-grid-group-child-indent{width:18px;display:inline-block}.sv-grid-tooltip{z-index:10000;color:#f1f5f9;border-radius:var(--sg-radius,6px);pointer-events:none;white-space:pre-wrap;word-wrap:break-word;background:#0f172a;max-width:280px;padding:8px 10px;font-size:12px;line-height:1.45;position:fixed;box-shadow:0 8px 24px #0f172a47}[data-theme=dark] .sv-grid-tooltip{color:#0f172a;background:#f1f5f9}.sv-grid-cell-editor-textarea{border:1px solid var(--sg-accent,#6366f1);background:var(--sg-bg,#fff);width:100%;min-height:80px;color:var(--sg-fg,#0f172a);resize:vertical;box-shadow:var(--sg-focus-ring,0 0 0 2px #6366f166);border-radius:4px;outline:none;padding:6px 8px;font-family:inherit;font-size:13px;line-height:1.4}.sv-grid-autocomplete{width:100%;position:relative}.sv-grid-autocomplete-list{z-index:30;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);border-radius:var(--sg-radius,6px);max-height:220px;margin-top:2px;padding:4px;position:absolute;top:100%;left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-autocomplete-option{text-align:left;width:100%;color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:4px;padding:5px 8px;font-size:13px;display:block;overflow:hidden}.sv-grid-autocomplete-option:hover,.sv-grid-autocomplete-option[aria-selected=true]{background:var(--sg-row-hover-bg,#6366f11a)}.sv-grid-find{z-index:60;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-border,#cbd5e1);border-radius:8px;align-items:center;gap:4px;min-width:280px;padding:6px 8px;display:inline-flex;position:absolute;top:8px;right:8px;box-shadow:0 10px 25px #0f172a2e}.sv-grid-find-icon{width:14px;height:14px;color:var(--sg-muted,#94a3b8);flex:none;margin-left:2px}.sv-grid-find-input{min-width:0;color:inherit;background:0 0;border:0;outline:none;flex:1;padding:2px 6px;font-size:13px}.sv-grid-find-input::placeholder{color:var(--sg-muted,#94a3b8)}.sv-grid-find-count{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 4px;font-size:11px}.sv-grid-find-step,.sv-grid-find-close{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.sv-grid-find-step:hover:not(:disabled),.sv-grid-find-close:hover{background:var(--sg-row-hover-bg,#94a3b81f);color:var(--sg-fg,#0f172a)}.sv-grid-find-step:disabled{opacity:.3;cursor:default}.sv-grid-pagination{border:1px solid var(--sg-border,#e2e8f0);border-radius:0 0 var(--sg-radius,6px) var(--sg-radius,6px);background:var(--sg-header-bg,#f1f5f9);color:var(--sg-fg,#0f172a);border-top:0;justify-content:flex-end;align-items:center;gap:24px;margin-top:0;padding:12px 16px;font-size:13px;display:flex}.sv-grid-pagination-pagesize{color:var(--sg-muted,#64748b);align-items:center;gap:8px;display:inline-flex}.sv-grid-pagination-pagesize select{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;appearance:none;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 12px) 12px,calc(100% - 8px) 12px;background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-radius:5px;padding:0 22px 0 8px;font-size:13px}.sv-grid-pagination-pagesize select:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent);outline:none}.sv-grid-pagination-range{color:var(--sg-fg,#0f172a)}.sv-grid-pagination-nav{align-items:center;gap:4px;display:inline-flex}.sv-grid-pagination-btn{width:28px;height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:16px;transition:background-color .1s,color .1s;display:inline-flex}.sv-grid-pagination-btn:hover:not(:disabled){background:var(--sg-input-bg,#fff);color:var(--sg-accent,#2563eb)}.sv-grid-pagination-btn:disabled{color:var(--sg-muted,#64748b);opacity:.4;cursor:default}.sv-grid-pagination-label{color:var(--sg-fg,#0f172a);margin:0 8px}.sv-grid-no-scroll .sv-grid-scrollbar-corner,.sv-grid-no-scroll .sv-grid-scrollbar{display:none}.sv-grid-scrollbar-corner,.sv-grid-scrollbar-corner-br{border-bottom-color:var(--sg-border,#e2e8f0)}.sv-grid-menu-operator-select{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;appearance:none;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 12px) 12px,calc(100% - 8px) 12px;background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-radius:5px;margin-bottom:6px;padding:0 22px 0 8px;font-size:13px}.sv-grid-menu-operator-select:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 40%, transparent);outline:none}.sv-grid-menu-operator-btn.is-active{color:var(--sg-on-accent,#fff)}.sv-grid-filter-menu{width:260px}.sv-grid-choose-columns-menu{width:240px}.sv-grid-choose-columns-menu .sv-grid-facet-list{max-height:280px}.sv-grid-facet input[type=checkbox]{accent-color:var(--sg-accent,#2563eb);cursor:pointer;width:14px;height:14px}.sv-grid-menu-item-chevron{opacity:.55;margin-left:auto;transform:rotate(-90deg)}.sv-grid-menu-item.is-open .sv-grid-menu-item-chevron{opacity:1}.sv-grid-menu-search{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5'/%3E%3C/svg%3E\");background-position:8px;background-repeat:no-repeat;background-size:14px 14px;padding-left:28px}.sv-grid-menu-filter>*+*{margin-top:6px}.sv-grid-col-filter-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-row-number-column,.sv-grid-row-number-cell{border-right-color:var(--sg-header-bg,#f1f5f9)}.sv-grid-group-row>.sv-grid-cell{color:var(--sg-header-fg,#0f172a)}.sv-grid-filter-operator-btn{opacity:.85}.sv-grid-filter-operator-btn:hover{opacity:1;border-color:var(--sg-accent,#2563eb)}.sv-grid-filter-operator-btn.is-open{opacity:1}\n/*$vite$:1*/";document.head.appendChild(s)}catch(e){}})();
|