@kanaries/graphic-walker 0.2.1 → 0.2.2
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var vJ = Object.defineProperty;
|
|
2
2
|
var yJ = (e, t, n) => t in e ? vJ(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Ut = (e, t, n) => (yJ(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as De from "react";
|
|
5
|
-
import I, { useState as cr, forwardRef as BE, memo as $E, useRef as ut, useDebugValue as n3, useContext as cu, createElement as xJ, createContext as wJ, useEffect as
|
|
5
|
+
import I, { useState as cr, forwardRef as BE, memo as $E, useRef as ut, useDebugValue as n3, useContext as cu, createElement as xJ, createContext as wJ, useEffect as Gt, useMemo as qt, useCallback as Ec, useLayoutEffect as Xj, useReducer as SJ } from "react";
|
|
6
6
|
import EJ, { unstable_batchedUpdates as Bj, flushSync as OJ } from "react-dom";
|
|
7
7
|
function _J({
|
|
8
8
|
title: e,
|
|
@@ -4831,7 +4831,7 @@ function g2(e) {
|
|
|
4831
4831
|
}
|
|
4832
4832
|
var Lte = function(t, n) {
|
|
4833
4833
|
var r = ut();
|
|
4834
|
-
return
|
|
4834
|
+
return Gt(function() {
|
|
4835
4835
|
r.current = n ? r.current : t;
|
|
4836
4836
|
}, [t, n]), r.current;
|
|
4837
4837
|
};
|
|
@@ -4854,7 +4854,7 @@ function Rn(e) {
|
|
|
4854
4854
|
return o.getFixedT(null, u.nsMode === "fallback" ? d : d[0], f);
|
|
4855
4855
|
}
|
|
4856
4856
|
var g = cr(p), m = Dte(g, 2), v = m[0], y = m[1], w = d.join(), b = Lte(w), x = ut(!0);
|
|
4857
|
-
|
|
4857
|
+
Gt(function() {
|
|
4858
4858
|
var _ = u.bindI18n, S = u.bindI18nStore;
|
|
4859
4859
|
x.current = !0, !h && !c && z3(o, d, function() {
|
|
4860
4860
|
x.current && y(p);
|
|
@@ -4871,7 +4871,7 @@ function Rn(e) {
|
|
|
4871
4871
|
};
|
|
4872
4872
|
}, [o, w]);
|
|
4873
4873
|
var O = ut(!0);
|
|
4874
|
-
|
|
4874
|
+
Gt(function() {
|
|
4875
4875
|
x.current && !O.current && y(p), O.current = !1;
|
|
4876
4876
|
}, [o, f]);
|
|
4877
4877
|
var E = [v, o, h];
|
|
@@ -4898,7 +4898,7 @@ const Fte = mt.div`
|
|
|
4898
4898
|
}
|
|
4899
4899
|
`, Pte = (e) => {
|
|
4900
4900
|
const { onWidthChange: t, onHeightChange: n, width: r, height: i } = e, [a, o] = cr(!1), { t: s } = Rn("translation", { keyPrefix: "main.tabpanel.settings.size_setting" });
|
|
4901
|
-
return
|
|
4901
|
+
return Gt(() => {
|
|
4902
4902
|
if (a) {
|
|
4903
4903
|
const l = () => {
|
|
4904
4904
|
o(!1);
|
|
@@ -7772,16 +7772,16 @@ function Yre(e, t) {
|
|
|
7772
7772
|
}
|
|
7773
7773
|
class Ure {
|
|
7774
7774
|
constructor() {
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7775
|
+
Ut(this, "datasets", []);
|
|
7776
|
+
Ut(this, "dataSources", []);
|
|
7777
|
+
Ut(this, "dsIndex", 0);
|
|
7778
|
+
Ut(this, "tmpDSName", "");
|
|
7779
|
+
Ut(this, "tmpDSRawFields", []);
|
|
7780
|
+
Ut(this, "tmpDataSource", []);
|
|
7781
|
+
Ut(this, "showDSPanel", !1);
|
|
7782
|
+
Ut(this, "showInsightBoard", !1);
|
|
7783
|
+
Ut(this, "vizEmbededMenu", { show: !1, position: [0, 0] });
|
|
7784
|
+
Ut(this, "filters", {});
|
|
7785
7785
|
this.datasets = [], this.dataSources = [], jZ(this, {
|
|
7786
7786
|
dataSources: gn.ref,
|
|
7787
7787
|
tmpDataSource: gn.ref,
|
|
@@ -8379,10 +8379,10 @@ function ID() {
|
|
|
8379
8379
|
const vie = 20;
|
|
8380
8380
|
class AD {
|
|
8381
8381
|
constructor(t) {
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8382
|
+
Ut(this, "visId");
|
|
8383
|
+
Ut(this, "snapshots");
|
|
8384
|
+
Ut(this, "cursor");
|
|
8385
|
+
Ut(this, "batchFlag", !1);
|
|
8386
8386
|
this.visId = t.visId, this.snapshots = [{
|
|
8387
8387
|
name: t.name,
|
|
8388
8388
|
encodings: t.encodings,
|
|
@@ -8453,15 +8453,16 @@ class AD {
|
|
|
8453
8453
|
}
|
|
8454
8454
|
class yie {
|
|
8455
8455
|
constructor(t) {
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8456
|
+
Ut(this, "commonStore");
|
|
8457
|
+
Ut(this, "draggableFieldState");
|
|
8458
|
+
Ut(this, "reactions", []);
|
|
8459
|
+
Ut(this, "visualConfig");
|
|
8460
|
+
Ut(this, "visList", []);
|
|
8461
|
+
Ut(this, "visIndex", 0);
|
|
8462
|
+
Ut(this, "canUndo", !1);
|
|
8463
|
+
Ut(this, "canRedo", !1);
|
|
8464
|
+
Ut(this, "editingFilterIdx", null);
|
|
8465
|
+
Ut(this, "__dangerous_is_inside_useMutable__", !1);
|
|
8465
8466
|
this.commonStore = t, this.draggableFieldState = V2(), this.visualConfig = ID(), this.visList.push(new AD({
|
|
8466
8467
|
name: ["main.tablist.autoTitle", { idx: 1 }],
|
|
8467
8468
|
visId: Zi(),
|
|
@@ -8476,13 +8477,16 @@ class yie {
|
|
|
8476
8477
|
}));
|
|
8477
8478
|
}
|
|
8478
8479
|
useMutable(t) {
|
|
8480
|
+
if (this.__dangerous_is_inside_useMutable__)
|
|
8481
|
+
throw new Error("A recursive call of useMutable() is detected, this is prevented because update will be overwritten by parent execution context.");
|
|
8482
|
+
this.__dangerous_is_inside_useMutable__ = !0;
|
|
8479
8483
|
const { encodings: n, config: r } = lie({
|
|
8480
8484
|
encodings: this.visList[this.visIndex].encodings,
|
|
8481
8485
|
config: this.visList[this.visIndex].config
|
|
8482
8486
|
}, (i) => {
|
|
8483
8487
|
t(i);
|
|
8484
8488
|
});
|
|
8485
|
-
this.visList[this.visIndex].encodings = n, this.visList[this.visIndex].config = r, this.canUndo = this.visList[this.visIndex].canUndo, this.canRedo = this.visList[this.visIndex].canRedo, this.visualConfig = r, this.draggableFieldState = n;
|
|
8489
|
+
this.visList[this.visIndex].encodings = n, this.visList[this.visIndex].config = r, this.canUndo = this.visList[this.visIndex].canUndo, this.canRedo = this.visList[this.visIndex].canRedo, this.visualConfig = r, this.draggableFieldState = n, this.__dangerous_is_inside_useMutable__ = !1;
|
|
8486
8490
|
}
|
|
8487
8491
|
undo() {
|
|
8488
8492
|
var t;
|
|
@@ -8692,20 +8696,26 @@ class yie {
|
|
|
8692
8696
|
}
|
|
8693
8697
|
appendField(t, n) {
|
|
8694
8698
|
os.includes(t) || typeof n > "u" || t !== "filters" && this.useMutable(({ encodings: r }) => {
|
|
8695
|
-
const i = vn(n);
|
|
8699
|
+
const i = { ...vn(n) };
|
|
8696
8700
|
i.dragId = Zi(), r[t].push(i);
|
|
8697
8701
|
});
|
|
8698
8702
|
}
|
|
8699
8703
|
renderSpec(t) {
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8704
|
+
var r, i, a, o, s, l, u, c, f, d;
|
|
8705
|
+
const n = this.visList[this.visIndex];
|
|
8706
|
+
if (n) {
|
|
8707
|
+
const h = n.encodings.fields;
|
|
8708
|
+
if (this.clearState(), ((i = (r = t.geomType) == null ? void 0 : r.length) != null ? i : 0) > 0 && this.setVisualConfig("geoms", t.geomType.map((p) => bie(p))), ((o = (a = t.facets) == null ? void 0 : a.length) != null ? o : 0) > 0) {
|
|
8709
|
+
const p = (t.facets || []).concat(t.highFacets || []);
|
|
8710
|
+
for (let g of p)
|
|
8711
|
+
this.appendField("rows", h.find((m) => m.fid === g));
|
|
8712
|
+
}
|
|
8713
|
+
if (t.position) {
|
|
8714
|
+
const [p, g] = t.position;
|
|
8715
|
+
p && this.appendField("columns", h.find((m) => m.fid === p)), g && this.appendField("rows", h.find((m) => m.fid === g));
|
|
8716
|
+
}
|
|
8717
|
+
((l = (s = t.color) == null ? void 0 : s.length) != null ? l : 0) > 0 && this.appendField("color", h.find((p) => p.fid === t.color[0])), ((c = (u = t.size) == null ? void 0 : u.length) != null ? c : 0) > 0 && this.appendField("size", h.find((p) => p.fid === t.size[0])), ((d = (f = t.opacity) == null ? void 0 : f.length) != null ? d : 0) > 0 && this.appendField("opacity", h.find((p) => p.fid === t.opacity[0]));
|
|
8718
|
+
}
|
|
8709
8719
|
}
|
|
8710
8720
|
destroy() {
|
|
8711
8721
|
this.reactions.forEach((t) => {
|
|
@@ -8716,7 +8726,7 @@ class yie {
|
|
|
8716
8726
|
const zG = new Ure(), xie = new yie(zG), Qb = {
|
|
8717
8727
|
commonStore: zG,
|
|
8718
8728
|
vizStore: xie
|
|
8719
|
-
}, XG = I.createContext(Qb), wie = (e) => (
|
|
8729
|
+
}, XG = I.createContext(Qb), wie = (e) => (Gt(() => () => {
|
|
8720
8730
|
Qb.vizStore.destroy(), Qb.commonStore.destroy();
|
|
8721
8731
|
}, []), I.createElement(XG.Provider, { value: Qb }, e.children));
|
|
8722
8732
|
function en() {
|
|
@@ -9658,7 +9668,7 @@ function Cl(e) {
|
|
|
9658
9668
|
function hV(e) {
|
|
9659
9669
|
return e && rt(e[Symbol.iterator]);
|
|
9660
9670
|
}
|
|
9661
|
-
function
|
|
9671
|
+
function Mt(e) {
|
|
9662
9672
|
return typeof e == "number";
|
|
9663
9673
|
}
|
|
9664
9674
|
function pV(e) {
|
|
@@ -9744,7 +9754,7 @@ function Oe(e) {
|
|
|
9744
9754
|
function YN(e) {
|
|
9745
9755
|
return e == null || e === "" ? null : !e || e === "false" || e === "0" ? !1 : !!e;
|
|
9746
9756
|
}
|
|
9747
|
-
const tae = (e) =>
|
|
9757
|
+
const tae = (e) => Mt(e) || Cl(e) ? e : Date.parse(e);
|
|
9748
9758
|
function UN(e, t) {
|
|
9749
9759
|
return t = t || tae, e == null || e === "" ? null : t(e);
|
|
9750
9760
|
}
|
|
@@ -17771,7 +17781,7 @@ function Ik(e, t) {
|
|
|
17771
17781
|
const rv = "symbol", Jce = "discrete", qce = "gradient", Qce = (e) => he(e) ? e.map((t) => String(t)) : String(e), efe = (e, t) => e[1] - t[1], tfe = (e, t) => t[1] - e[1];
|
|
17772
17782
|
function Ak(e, t, n) {
|
|
17773
17783
|
let r;
|
|
17774
|
-
return
|
|
17784
|
+
return Mt(t) && (e.bins && (t = Math.max(t, e.bins.length)), n != null && (t = Math.min(t, Math.floor(Cm(e.domain()) / n || 1)))), Ae(t) && (r = t.step, t = t.interval), Ne(t) && (t = e.type === Ic ? Oh(t) : e.type == Ac ? _h(t) : de("Only time and utc scales accept interval strings."), r && (t = t.every(r))), t;
|
|
17775
17785
|
}
|
|
17776
17786
|
function X4(e, t, n) {
|
|
17777
17787
|
let r = e.range(), i = r[0], a = ft(r), o = efe;
|
|
@@ -20247,7 +20257,7 @@ function YB(e) {
|
|
|
20247
20257
|
}
|
|
20248
20258
|
const Whe = 1e-9;
|
|
20249
20259
|
function c5(e, t, n) {
|
|
20250
|
-
return e === t ? !0 : n === "path" ? UB(e, t) : e instanceof Date && t instanceof Date ? +e == +t :
|
|
20260
|
+
return e === t ? !0 : n === "path" ? UB(e, t) : e instanceof Date && t instanceof Date ? +e == +t : Mt(e) && Mt(t) ? Math.abs(e - t) <= Whe : !e || !t || !Ae(e) && !Ae(t) ? e == t : jhe(e, t);
|
|
20251
20261
|
}
|
|
20252
20262
|
function UB(e, t) {
|
|
20253
20263
|
return c5(Wd(e), Wd(t));
|
|
@@ -23052,7 +23062,7 @@ function Rme(e, t, n, r) {
|
|
|
23052
23062
|
let i = r.scale || t.scale, a = r.translate || t.translate;
|
|
23053
23063
|
if (rt(i) && (i = i(n, r)), rt(a) && (a = a(n, r)), (i === 1 || i == null) && !a)
|
|
23054
23064
|
return;
|
|
23055
|
-
const o = (
|
|
23065
|
+
const o = (Mt(i) ? i : i[0]) || 1, s = (Mt(i) ? i : i[1]) || 1, l = a && a[0] || 0, u = a && a[1] || 0;
|
|
23056
23066
|
e.forEach(pY(t, o, s, l, u));
|
|
23057
23067
|
}
|
|
23058
23068
|
function pY(e, t, n, r, i) {
|
|
@@ -27846,7 +27856,7 @@ function vr(e) {
|
|
|
27846
27856
|
const t = Kr();
|
|
27847
27857
|
(t.type !== $r || t.value !== e) && Hx(t);
|
|
27848
27858
|
}
|
|
27849
|
-
function
|
|
27859
|
+
function Ht(e) {
|
|
27850
27860
|
return Tt.type === $r && Tt.value === e;
|
|
27851
27861
|
}
|
|
27852
27862
|
function GS(e) {
|
|
@@ -27854,8 +27864,8 @@ function GS(e) {
|
|
|
27854
27864
|
}
|
|
27855
27865
|
function Bye() {
|
|
27856
27866
|
const e = [];
|
|
27857
|
-
for (ce = Tt.start, vr("["); !
|
|
27858
|
-
|
|
27867
|
+
for (ce = Tt.start, vr("["); !Ht("]"); )
|
|
27868
|
+
Ht(",") ? (Kr(), e.push(null)) : (e.push(Wc()), Ht("]") || vr(","));
|
|
27859
27869
|
return Kr(), Zye(e);
|
|
27860
27870
|
}
|
|
27861
27871
|
function IP() {
|
|
@@ -27874,8 +27884,8 @@ function $ye() {
|
|
|
27874
27884
|
}
|
|
27875
27885
|
function Yye() {
|
|
27876
27886
|
var e = [], t, n, r, i = {}, a = String;
|
|
27877
|
-
for (ce = Tt.start, vr("{"); !
|
|
27878
|
-
t = $ye(), t.key.type === jY ? n = t.key.name : n = a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? xt({}, Oye) : i[r] = !0, e.push(t),
|
|
27887
|
+
for (ce = Tt.start, vr("{"); !Ht("}"); )
|
|
27888
|
+
t = $ye(), t.key.type === jY ? n = t.key.name : n = a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? xt({}, Oye) : i[r] = !0, e.push(t), Ht("}") || vr(",");
|
|
27879
27889
|
return vr("}"), zye(e);
|
|
27880
27890
|
}
|
|
27881
27891
|
function Uye() {
|
|
@@ -27888,11 +27898,11 @@ const Hye = {
|
|
|
27888
27898
|
};
|
|
27889
27899
|
function Kye() {
|
|
27890
27900
|
var e, t, n;
|
|
27891
|
-
if (
|
|
27901
|
+
if (Ht("("))
|
|
27892
27902
|
return Uye();
|
|
27893
|
-
if (
|
|
27903
|
+
if (Ht("["))
|
|
27894
27904
|
return Bye();
|
|
27895
|
-
if (
|
|
27905
|
+
if (Ht("{"))
|
|
27896
27906
|
return Yye();
|
|
27897
27907
|
if (e = Tt.type, ce = Tt.start, e === Mc || Hye[Tt.value])
|
|
27898
27908
|
n = oT(Kr().value);
|
|
@@ -27901,14 +27911,14 @@ function Kye() {
|
|
|
27901
27911
|
else {
|
|
27902
27912
|
if (e === yu)
|
|
27903
27913
|
throw new Error(Vg);
|
|
27904
|
-
e === $x ? (t = Kr(), t.value = t.value === "true", n = Hp(t)) : e === Yx ? (t = Kr(), t.value = null, n = Hp(t)) :
|
|
27914
|
+
e === $x ? (t = Kr(), t.value = t.value === "true", n = Hp(t)) : e === Yx ? (t = Kr(), t.value = null, n = Hp(t)) : Ht("/") || Ht("/=") ? (n = Hp(Wye()), XY()) : Hx(Kr());
|
|
27905
27915
|
}
|
|
27906
27916
|
return n;
|
|
27907
27917
|
}
|
|
27908
27918
|
function Jye() {
|
|
27909
27919
|
const e = [];
|
|
27910
|
-
if (vr("("), !
|
|
27911
|
-
for (; ce < br && (e.push(Wc()), !
|
|
27920
|
+
if (vr("("), !Ht(")"))
|
|
27921
|
+
for (; ce < br && (e.push(Wc()), !Ht(")")); )
|
|
27912
27922
|
vr(",");
|
|
27913
27923
|
return vr(")"), e;
|
|
27914
27924
|
}
|
|
@@ -27928,11 +27938,11 @@ function e1e() {
|
|
|
27928
27938
|
function t1e() {
|
|
27929
27939
|
var e, t, n;
|
|
27930
27940
|
for (e = Kye(); ; )
|
|
27931
|
-
if (
|
|
27941
|
+
if (Ht("."))
|
|
27932
27942
|
n = Qye(), e = kP(".", e, n);
|
|
27933
|
-
else if (
|
|
27943
|
+
else if (Ht("("))
|
|
27934
27944
|
t = Jye(), e = Gye(e, t);
|
|
27935
|
-
else if (
|
|
27945
|
+
else if (Ht("["))
|
|
27936
27946
|
n = e1e(), e = kP("[", e, n);
|
|
27937
27947
|
else
|
|
27938
27948
|
break;
|
|
@@ -27940,7 +27950,7 @@ function t1e() {
|
|
|
27940
27950
|
}
|
|
27941
27951
|
function AP() {
|
|
27942
27952
|
const e = t1e();
|
|
27943
|
-
if (Tt.type === $r && (
|
|
27953
|
+
if (Tt.type === $r && (Ht("++") || Ht("--")))
|
|
27944
27954
|
throw new Error(Vg);
|
|
27945
27955
|
return e;
|
|
27946
27956
|
}
|
|
@@ -27949,9 +27959,9 @@ function bv() {
|
|
|
27949
27959
|
if (Tt.type !== $r && Tt.type !== yu)
|
|
27950
27960
|
t = AP();
|
|
27951
27961
|
else {
|
|
27952
|
-
if (
|
|
27962
|
+
if (Ht("++") || Ht("--"))
|
|
27953
27963
|
throw new Error(Vg);
|
|
27954
|
-
if (
|
|
27964
|
+
if (Ht("+") || Ht("-") || Ht("~") || Ht("!"))
|
|
27955
27965
|
e = Kr(), t = bv(), t = Xye(e.value, t);
|
|
27956
27966
|
else {
|
|
27957
27967
|
if (GS("delete") || GS("void") || GS("typeof"))
|
|
@@ -28027,11 +28037,11 @@ function n1e() {
|
|
|
28027
28037
|
}
|
|
28028
28038
|
function Wc() {
|
|
28029
28039
|
var e, t, n;
|
|
28030
|
-
return e = n1e(),
|
|
28040
|
+
return e = n1e(), Ht("?") && (Kr(), t = Wc(), vr(":"), n = Wc(), e = Vye(e, t, n)), e;
|
|
28031
28041
|
}
|
|
28032
28042
|
function sT() {
|
|
28033
28043
|
const e = Wc();
|
|
28034
|
-
if (
|
|
28044
|
+
if (Ht(","))
|
|
28035
28045
|
throw new Error(Vg);
|
|
28036
28046
|
return e;
|
|
28037
28047
|
}
|
|
@@ -28687,7 +28697,7 @@ const Bg = {
|
|
|
28687
28697
|
isDefined(e) {
|
|
28688
28698
|
return e !== void 0;
|
|
28689
28699
|
},
|
|
28690
|
-
isNumber:
|
|
28700
|
+
isNumber: Mt,
|
|
28691
28701
|
isObject: Ae,
|
|
28692
28702
|
isRegExp: pV,
|
|
28693
28703
|
isString: Ne,
|
|
@@ -30173,7 +30183,7 @@ function X2e(e, t) {
|
|
|
30173
30183
|
let r = e.update;
|
|
30174
30184
|
e.init && (r ? de("Signals can not include both init and update expressions.") : (r = e.init, n.initonly = !0)), r && (r = Lo(r, t), n.update = r.$expr, n.params = r.$params), e.on && e.on.forEach((i) => G2e(i, t, n.id));
|
|
30175
30185
|
}
|
|
30176
|
-
const
|
|
30186
|
+
const Wt = (e) => (t, n, r) => ew(e, n, t || void 0, r), D6 = Wt("aggregate"), B2e = Wt("axisticks"), L6 = Wt("bound"), Ka = Wt("collect"), r9 = Wt("compare"), $2e = Wt("datajoin"), F6 = Wt("encode"), Y2e = Wt("expression"), U2e = Wt("facet"), H2e = Wt("field"), K2e = Wt("key"), J2e = Wt("legendentries"), q2e = Wt("load"), Q2e = Wt("mark"), eSe = Wt("multiextent"), tSe = Wt("multivalues"), nSe = Wt("overlap"), rSe = Wt("params"), P6 = Wt("prefacet"), iSe = Wt("projection"), aSe = Wt("proxy"), oSe = Wt("relay"), M6 = Wt("render"), sSe = Wt("scale"), uf = Wt("sieve"), lSe = Wt("sortitems"), W6 = Wt("viewlayout"), uSe = Wt("values");
|
|
30177
30187
|
let cSe = 0;
|
|
30178
30188
|
const j6 = {
|
|
30179
30189
|
min: "min",
|
|
@@ -32219,7 +32229,7 @@ const eOe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
32219
32229
|
isDate: Cl,
|
|
32220
32230
|
isFunction: rt,
|
|
32221
32231
|
isIterable: hV,
|
|
32222
|
-
isNumber:
|
|
32232
|
+
isNumber: Mt,
|
|
32223
32233
|
isObject: Ae,
|
|
32224
32234
|
isRegExp: pV,
|
|
32225
32235
|
isString: Ne,
|
|
@@ -32981,7 +32991,7 @@ Set.prototype.toJSON = function() {
|
|
|
32981
32991
|
};
|
|
32982
32992
|
const Xt = PT;
|
|
32983
32993
|
function dt(e) {
|
|
32984
|
-
if (
|
|
32994
|
+
if (Mt(e))
|
|
32985
32995
|
return e;
|
|
32986
32996
|
const t = Ne(e) ? e : PT(e);
|
|
32987
32997
|
if (t.length < 250)
|
|
@@ -33064,7 +33074,7 @@ function lC(e) {
|
|
|
33064
33074
|
function VT(e, t) {
|
|
33065
33075
|
return e === void 0 || t === void 0 ? !0 : GT(lC(e), lC(t));
|
|
33066
33076
|
}
|
|
33067
|
-
function
|
|
33077
|
+
function Pt(e) {
|
|
33068
33078
|
return be(e).length === 0;
|
|
33069
33079
|
}
|
|
33070
33080
|
const be = Object.keys, yr = Object.values, eu = Object.entries;
|
|
@@ -33082,7 +33092,7 @@ function c1(e, t) {
|
|
|
33082
33092
|
if (t.length === 0)
|
|
33083
33093
|
return !0;
|
|
33084
33094
|
const n = t.shift();
|
|
33085
|
-
return n in e && c1(e[n], t) && delete e[n],
|
|
33095
|
+
return n in e && c1(e[n], t) && delete e[n], Pt(e);
|
|
33086
33096
|
}
|
|
33087
33097
|
function r0(e) {
|
|
33088
33098
|
return e.charAt(0).toUpperCase() + e.substr(1);
|
|
@@ -33137,7 +33147,7 @@ function Kg(e) {
|
|
|
33137
33147
|
return (e % 360 + 360) % 360;
|
|
33138
33148
|
}
|
|
33139
33149
|
function lw(e) {
|
|
33140
|
-
return
|
|
33150
|
+
return Mt(e) ? !0 : !isNaN(e) && !isNaN(parseFloat(e));
|
|
33141
33151
|
}
|
|
33142
33152
|
var i0 = globalThis && globalThis.__rest || function(e, t) {
|
|
33143
33153
|
var n = {};
|
|
@@ -33766,7 +33776,7 @@ function y9(e) {
|
|
|
33766
33776
|
}
|
|
33767
33777
|
return e;
|
|
33768
33778
|
}
|
|
33769
|
-
function
|
|
33779
|
+
function Kt(e) {
|
|
33770
33780
|
if (l0(e)) {
|
|
33771
33781
|
const { expr: t } = e, n = qT(e, ["expr"]);
|
|
33772
33782
|
return Object.assign({ signal: t }, n);
|
|
@@ -33785,7 +33795,7 @@ function Ts(e) {
|
|
|
33785
33795
|
function v_e(e, t, n) {
|
|
33786
33796
|
for (const r of n) {
|
|
33787
33797
|
const i = zc(r, t.markDef, t.config);
|
|
33788
|
-
i !== void 0 && (e[r] =
|
|
33798
|
+
i !== void 0 && (e[r] = Kt(i));
|
|
33789
33799
|
}
|
|
33790
33800
|
return e;
|
|
33791
33801
|
}
|
|
@@ -34108,12 +34118,12 @@ const j7 = [
|
|
|
34108
34118
|
"december"
|
|
34109
34119
|
], CCe = j7.map((e) => e.substr(0, 3)), Z7 = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"], NCe = Z7.map((e) => e.substr(0, 3));
|
|
34110
34120
|
function RCe(e) {
|
|
34111
|
-
if (lw(e) && (e = +e),
|
|
34121
|
+
if (lw(e) && (e = +e), Mt(e))
|
|
34112
34122
|
return e > 4 && ye(d1("quarter", e)), e - 1;
|
|
34113
34123
|
throw new Error(d1("quarter", e));
|
|
34114
34124
|
}
|
|
34115
34125
|
function kCe(e) {
|
|
34116
|
-
if (lw(e) && (e = +e),
|
|
34126
|
+
if (lw(e) && (e = +e), Mt(e))
|
|
34117
34127
|
return e - 1;
|
|
34118
34128
|
{
|
|
34119
34129
|
const t = e.toLowerCase(), n = j7.indexOf(t);
|
|
@@ -34126,7 +34136,7 @@ function kCe(e) {
|
|
|
34126
34136
|
}
|
|
34127
34137
|
}
|
|
34128
34138
|
function TCe(e) {
|
|
34129
|
-
if (lw(e) && (e = +e),
|
|
34139
|
+
if (lw(e) && (e = +e), Mt(e))
|
|
34130
34140
|
return e % 7;
|
|
34131
34141
|
{
|
|
34132
34142
|
const t = e.toLowerCase(), n = Z7.indexOf(t);
|
|
@@ -34145,14 +34155,14 @@ function tI(e, t) {
|
|
|
34145
34155
|
n.push(r);
|
|
34146
34156
|
} else if (e.quarter !== void 0) {
|
|
34147
34157
|
const r = t ? RCe(e.quarter) : e.quarter;
|
|
34148
|
-
n.push(
|
|
34158
|
+
n.push(Mt(r) ? r * 3 : `${r}*3`);
|
|
34149
34159
|
} else
|
|
34150
34160
|
n.push(0);
|
|
34151
34161
|
if (e.date !== void 0)
|
|
34152
34162
|
n.push(e.date);
|
|
34153
34163
|
else if (e.day !== void 0) {
|
|
34154
34164
|
const r = t ? TCe(e.day) : e.day;
|
|
34155
|
-
n.push(
|
|
34165
|
+
n.push(Mt(r) ? r + 1 : `${r}+1`);
|
|
34156
34166
|
} else
|
|
34157
34167
|
n.push(1);
|
|
34158
34168
|
for (const r of ["hours", "minutes", "seconds", "milliseconds"]) {
|
|
@@ -34818,7 +34828,7 @@ function xI({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i,
|
|
|
34818
34828
|
return rt(u) && (u = u()), u && Object.assign(Object.assign({}, u), l ? { offset: l } : {});
|
|
34819
34829
|
}
|
|
34820
34830
|
function bg(e, t) {
|
|
34821
|
-
return ht(["x", "x2"], e) && t === "width" ? { field: { group: "width" } } : ht(["y", "y2"], e) && t === "height" ? { field: { group: "height" } } :
|
|
34831
|
+
return ht(["x", "x2"], e) && t === "width" ? { field: { group: "width" } } : ht(["y", "y2"], e) && t === "height" ? { field: { group: "height" } } : Kt(t);
|
|
34822
34832
|
}
|
|
34823
34833
|
function $c(e) {
|
|
34824
34834
|
return e && e !== "number" && e !== "time";
|
|
@@ -35068,7 +35078,7 @@ function xo(e) {
|
|
|
35068
35078
|
return la(e) && !g1(e) || gC(e);
|
|
35069
35079
|
}
|
|
35070
35080
|
function gC(e) {
|
|
35071
|
-
return ns(e) &&
|
|
35081
|
+
return ns(e) && Mt(e.datum);
|
|
35072
35082
|
}
|
|
35073
35083
|
function Ke(e) {
|
|
35074
35084
|
return Ee(e) || ns(e);
|
|
@@ -35252,8 +35262,8 @@ function Cn(e) {
|
|
|
35252
35262
|
return e.condition;
|
|
35253
35263
|
}
|
|
35254
35264
|
function xU(e, t, n, r = {}) {
|
|
35255
|
-
if (Ne(e) ||
|
|
35256
|
-
const i = Ne(e) ? "string" :
|
|
35265
|
+
if (Ne(e) || Mt(e) || hu(e)) {
|
|
35266
|
+
const i = Ne(e) ? "string" : Mt(e) ? "number" : "boolean";
|
|
35257
35267
|
return ye(Z_e(t, i, e)), { value: e };
|
|
35258
35268
|
}
|
|
35259
35269
|
return Ke(e) ? b1(e, t, n, r) : d0(e) ? Object.assign(Object.assign({}, e), {
|
|
@@ -35280,7 +35290,7 @@ function ZNe(e) {
|
|
|
35280
35290
|
if (t)
|
|
35281
35291
|
return e;
|
|
35282
35292
|
const { datum: n } = e;
|
|
35283
|
-
return t =
|
|
35293
|
+
return t = Mt(n) ? "quantitative" : Ne(n) ? "nominal" : pf(n) ? "temporal" : void 0, Object.assign(Object.assign({}, e), { type: t });
|
|
35284
35294
|
}
|
|
35285
35295
|
function CI(e, t, { compositeMark: n = !1 } = {}) {
|
|
35286
35296
|
const { aggregate: r, timeUnit: i, bin: a, field: o } = e, s = Object.assign({}, e);
|
|
@@ -35397,7 +35407,7 @@ function Nw(e, { timeUnit: t, type: n, wrapTime: r, undefinedIfExprNotRequired:
|
|
|
35397
35407
|
var a;
|
|
35398
35408
|
const o = t && ((a = Sr(t)) === null || a === void 0 ? void 0 : a.unit);
|
|
35399
35409
|
let s = o || n === "temporal", l;
|
|
35400
|
-
return l0(e) ? l = e.expr : We(e) ? l = e.signal : pf(e) ? (s = !0, l = Jg(e)) : (Ne(e) ||
|
|
35410
|
+
return l0(e) ? l = e.expr : We(e) ? l = e.signal : pf(e) ? (s = !0, l = Jg(e)) : (Ne(e) || Mt(e)) && s && (l = `datetime(${Xt(e)})`, LCe(o) && (Mt(e) && e < 1e4 || Ne(e) && isNaN(Date.parse(e))) && (l = Jg({ [o]: e }))), l ? r && s ? `time(${l})` : l : i ? void 0 : Xt(e);
|
|
35401
35411
|
}
|
|
35402
35412
|
function wU(e, t) {
|
|
35403
35413
|
const { type: n } = e;
|
|
@@ -36040,7 +36050,7 @@ var Ov = globalThis && globalThis.__rest || function(e, t) {
|
|
|
36040
36050
|
};
|
|
36041
36051
|
const v1 = "boxplot", qNe = ["box", "median", "outliers", "rule", "ticks"], QNe = new Rw(v1, DU);
|
|
36042
36052
|
function AU(e) {
|
|
36043
|
-
return
|
|
36053
|
+
return Mt(e) ? "tukey" : e;
|
|
36044
36054
|
}
|
|
36045
36055
|
function DU(e, { config: t }) {
|
|
36046
36056
|
var n, r;
|
|
@@ -36144,7 +36154,7 @@ function DU(e, { config: t }) {
|
|
|
36144
36154
|
}, J = Ov(C, ["tooltip"]), { scale: X, axis: ne } = m, q = kI(m), j = Ri(ne, ["title"]), pe = kU(u, "outliers", t.boxplot, {
|
|
36145
36155
|
transform: [{ filter: `(${ie} < ${Y}) || (${ie} > ${K})` }],
|
|
36146
36156
|
mark: "point",
|
|
36147
|
-
encoding: Object.assign(Object.assign(Object.assign({ [v]: Object.assign(Object.assign(Object.assign({ field: m.field, type: m.type }, q !== void 0 ? { title: q } : {}), X !== void 0 ? { scale: X } : {}),
|
|
36157
|
+
encoding: Object.assign(Object.assign(Object.assign({ [v]: Object.assign(Object.assign(Object.assign({ field: m.field, type: m.type }, q !== void 0 ? { title: q } : {}), X !== void 0 ? { scale: X } : {}), Pt(j) ? {} : { axis: j }) }, J), _ ? { color: _ } : {}), E ? { tooltip: E } : {})
|
|
36148
36158
|
})[0];
|
|
36149
36159
|
let ge;
|
|
36150
36160
|
const Se = [...h, ...p, z];
|
|
@@ -36675,7 +36685,7 @@ function SRe(e, t, n) {
|
|
|
36675
36685
|
if (e[u] !== void 0)
|
|
36676
36686
|
if (u === "spacing") {
|
|
36677
36687
|
const c = e[u];
|
|
36678
|
-
o[u] =
|
|
36688
|
+
o[u] = Mt(c) ? c : {
|
|
36679
36689
|
row: (r = c.row) !== null && r !== void 0 ? r : s,
|
|
36680
36690
|
column: (i = c.column) !== null && i !== void 0 ? i : s
|
|
36681
36691
|
};
|
|
@@ -36998,21 +37008,21 @@ function LRe(e) {
|
|
|
36998
37008
|
delete e[t];
|
|
36999
37009
|
FRe(e);
|
|
37000
37010
|
for (const t in e)
|
|
37001
|
-
Ae(e[t]) &&
|
|
37002
|
-
return
|
|
37011
|
+
Ae(e[t]) && Pt(e[t]) && delete e[t];
|
|
37012
|
+
return Pt(e) ? void 0 : e;
|
|
37003
37013
|
}
|
|
37004
37014
|
function FRe(e) {
|
|
37005
37015
|
const { titleMarkConfig: t, subtitleMarkConfig: n, subtitle: r } = O7(e.title);
|
|
37006
|
-
|
|
37016
|
+
Pt(t) || (e.style["group-title"] = Object.assign(
|
|
37007
37017
|
Object.assign({}, e.style["group-title"]),
|
|
37008
37018
|
t
|
|
37009
|
-
)),
|
|
37019
|
+
)), Pt(n) || (e.style["group-subtitle"] = Object.assign(Object.assign({}, e.style["group-subtitle"]), n)), Pt(r) ? delete e.title : e.title = r;
|
|
37010
37020
|
}
|
|
37011
37021
|
function PRe(e, t, n, r) {
|
|
37012
37022
|
const i = r ? e[t][r] : e[t];
|
|
37013
37023
|
t === "view" && (n = "cell");
|
|
37014
37024
|
const a = Object.assign(Object.assign({}, i), e.style[n != null ? n : t]);
|
|
37015
|
-
|
|
37025
|
+
Pt(a) || (e.style[n != null ? n : t] = a), r || delete e[t];
|
|
37016
37026
|
}
|
|
37017
37027
|
function Iw(e) {
|
|
37018
37028
|
return "layer" in e;
|
|
@@ -37448,7 +37458,7 @@ function Y9({ parentEncoding: e, encoding: t = {}, layer: n }) {
|
|
|
37448
37458
|
}
|
|
37449
37459
|
} else
|
|
37450
37460
|
r = t;
|
|
37451
|
-
return !r ||
|
|
37461
|
+
return !r || Pt(r) ? void 0 : r;
|
|
37452
37462
|
}
|
|
37453
37463
|
function U9(e) {
|
|
37454
37464
|
const { parentProjection: t, projection: n } = e;
|
|
@@ -37885,7 +37895,7 @@ function Dke(e, t, n, r) {
|
|
|
37885
37895
|
function GI(e) {
|
|
37886
37896
|
return e.map((t) => (t.on && !t.on.length && delete t.on, t));
|
|
37887
37897
|
}
|
|
37888
|
-
class
|
|
37898
|
+
class jt {
|
|
37889
37899
|
constructor(t, n) {
|
|
37890
37900
|
this.debugName = n, this._children = [], this._parent = null, t && (this.parent = t);
|
|
37891
37901
|
}
|
|
@@ -37933,7 +37943,7 @@ class Zt {
|
|
|
37933
37943
|
this._parent = n, n.addChild(this, r), t.parent = this;
|
|
37934
37944
|
}
|
|
37935
37945
|
}
|
|
37936
|
-
class Wr extends
|
|
37946
|
+
class Wr extends jt {
|
|
37937
37947
|
constructor(t, n, r, i) {
|
|
37938
37948
|
super(t, n), this.type = r, this.refCounts = i, this._source = this._name = n, this.refCounts && !(this._name in this.refCounts) && (this.refCounts[this._name] = 0);
|
|
37939
37949
|
}
|
|
@@ -37969,7 +37979,7 @@ var q9 = globalThis && globalThis.__rest || function(e, t) {
|
|
|
37969
37979
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
37970
37980
|
return n;
|
|
37971
37981
|
};
|
|
37972
|
-
class ko extends
|
|
37982
|
+
class ko extends jt {
|
|
37973
37983
|
constructor(t, n) {
|
|
37974
37984
|
super(t), this.formula = n;
|
|
37975
37985
|
}
|
|
@@ -37993,7 +38003,7 @@ class ko extends Zt {
|
|
|
37993
38003
|
}
|
|
37994
38004
|
return i;
|
|
37995
38005
|
}, {});
|
|
37996
|
-
return
|
|
38006
|
+
return Pt(r) ? null : new ko(t, r);
|
|
37997
38007
|
}
|
|
37998
38008
|
static makeFromTransform(t, n) {
|
|
37999
38009
|
const r = Object.assign({}, n), { timeUnit: i } = r, a = q9(r, ["timeUnit"]), o = Sr(i), s = Object.assign(Object.assign({}, a), { timeUnit: o });
|
|
@@ -38106,7 +38116,7 @@ const Pke = {
|
|
|
38106
38116
|
const m = { type: "E", field: g };
|
|
38107
38117
|
m.signals = Object.assign({}, u(m, "data")), a.items.push(m), a.hasField[g] = m, a.hasSelectionId = a.hasSelectionId || g === Mo;
|
|
38108
38118
|
}
|
|
38109
|
-
d && (t.init = d.map((g) => a.items.map((m) => Ae(g) ? g[m.channel] !== void 0 ? g[m.channel] : g[m.field] : g))),
|
|
38119
|
+
d && (t.init = d.map((g) => a.items.map((m) => Ae(g) ? g[m.channel] !== void 0 ? g[m.channel] : g[m.field] : g))), Pt(s) || (a.timeUnit = new ko(null, s));
|
|
38110
38120
|
},
|
|
38111
38121
|
signals: (e, t, n) => {
|
|
38112
38122
|
const r = t.name + g0;
|
|
@@ -38346,7 +38356,7 @@ function VI(e, t = "text") {
|
|
|
38346
38356
|
function Dw(e, t, n = "datum") {
|
|
38347
38357
|
if (e) {
|
|
38348
38358
|
if (Ya(e))
|
|
38349
|
-
return
|
|
38359
|
+
return Kt(e.value);
|
|
38350
38360
|
if (Ke(e)) {
|
|
38351
38361
|
const { format: r, formatType: i } = m1(e);
|
|
38352
38362
|
return wI({ fieldOrDatumDef: e, format: r, formatType: i, expr: n, config: t });
|
|
@@ -38430,12 +38440,12 @@ function zke(e) {
|
|
|
38430
38440
|
const o = kt("description", n, r);
|
|
38431
38441
|
if (o != null)
|
|
38432
38442
|
return {
|
|
38433
|
-
description:
|
|
38443
|
+
description: Kt(o)
|
|
38434
38444
|
};
|
|
38435
38445
|
if (r.aria === !1)
|
|
38436
38446
|
return {};
|
|
38437
38447
|
const s = fH(t, i, r);
|
|
38438
|
-
if (!
|
|
38448
|
+
if (!Pt(s))
|
|
38439
38449
|
return {
|
|
38440
38450
|
description: {
|
|
38441
38451
|
signal: eu(s).map(([l, u], c) => `"${c > 0 ? "; " : ""}${l}: " + (${u})`).join(" + ")
|
|
@@ -38445,7 +38455,7 @@ function zke(e) {
|
|
|
38445
38455
|
function Dn(e, t, n = {}) {
|
|
38446
38456
|
const { markDef: r, encoding: i, config: a } = t, { vgChannel: o } = n;
|
|
38447
38457
|
let { defaultRef: s, defaultValue: l } = n;
|
|
38448
|
-
s === void 0 && (l != null || (l = kt(e, r, a, { vgChannel: o, ignoreVgConfig: !0 })), l !== void 0 && (s =
|
|
38458
|
+
s === void 0 && (l != null || (l = kt(e, r, a, { vgChannel: o, ignoreVgConfig: !0 })), l !== void 0 && (s = Kt(l)));
|
|
38449
38459
|
const u = i[e];
|
|
38450
38460
|
return Mh(t, u, o != null ? o : e, (c) => xI({
|
|
38451
38461
|
channel: e,
|
|
@@ -38460,7 +38470,7 @@ function Dn(e, t, n = {}) {
|
|
|
38460
38470
|
}
|
|
38461
38471
|
function dH(e, t = { filled: void 0 }) {
|
|
38462
38472
|
var n, r, i, a;
|
|
38463
|
-
const { markDef: o, encoding: s, config: l } = e, { type: u } = o, c = (n = t.filled) !== null && n !== void 0 ? n : kt("filled", o, l), f = ht(["bar", "point", "circle", "square", "geoshape"], u) ? "transparent" : void 0, d = (i = (r = kt(c === !0 ? "color" : void 0, o, l, { vgChannel: "fill" })) !== null && r !== void 0 ? r : l.mark[c === !0 && "color"]) !== null && i !== void 0 ? i : f, h = (a = kt(c === !1 ? "color" : void 0, o, l, { vgChannel: "stroke" })) !== null && a !== void 0 ? a : l.mark[c === !1 && "color"], p = c ? "fill" : "stroke", g = Object.assign(Object.assign({}, d ? { fill:
|
|
38473
|
+
const { markDef: o, encoding: s, config: l } = e, { type: u } = o, c = (n = t.filled) !== null && n !== void 0 ? n : kt("filled", o, l), f = ht(["bar", "point", "circle", "square", "geoshape"], u) ? "transparent" : void 0, d = (i = (r = kt(c === !0 ? "color" : void 0, o, l, { vgChannel: "fill" })) !== null && r !== void 0 ? r : l.mark[c === !0 && "color"]) !== null && i !== void 0 ? i : f, h = (a = kt(c === !1 ? "color" : void 0, o, l, { vgChannel: "stroke" })) !== null && a !== void 0 ? a : l.mark[c === !1 && "color"], p = c ? "fill" : "stroke", g = Object.assign(Object.assign({}, d ? { fill: Kt(d) } : {}), h ? { stroke: Kt(h) } : {});
|
|
38464
38474
|
return o.color && (c ? o.fill : o.stroke) && ye(L7("property", { fill: "fill" in o, stroke: "stroke" in o })), Object.assign(Object.assign(Object.assign(Object.assign({}, g), Dn("color", e, {
|
|
38465
38475
|
vgChannel: p,
|
|
38466
38476
|
defaultValue: c ? d : h
|
|
@@ -38472,7 +38482,7 @@ function dH(e, t = { filled: void 0 }) {
|
|
|
38472
38482
|
}
|
|
38473
38483
|
function Xke(e) {
|
|
38474
38484
|
const { encoding: t, mark: n } = e, r = t.order;
|
|
38475
|
-
return !ku(n) && Ya(r) ? Mh(e, r, "zindex", (i) =>
|
|
38485
|
+
return !ku(n) && Ya(r) ? Mh(e, r, "zindex", (i) => Kt(i.value)) : {};
|
|
38476
38486
|
}
|
|
38477
38487
|
function Qg({ channel: e, markDef: t, encoding: n = {}, model: r, bandPosition: i }) {
|
|
38478
38488
|
const a = `${e}Offset`, o = t[a], s = n[a];
|
|
@@ -38485,7 +38495,7 @@ function Qg({ channel: e, markDef: t, encoding: n = {}, model: r, bandPosition:
|
|
|
38485
38495
|
scaleName: r.scaleName(a),
|
|
38486
38496
|
scale: r.getScaleComponent(a),
|
|
38487
38497
|
stack: null,
|
|
38488
|
-
defaultRef:
|
|
38498
|
+
defaultRef: Kt(o),
|
|
38489
38499
|
bandPosition: i
|
|
38490
38500
|
});
|
|
38491
38501
|
return { offsetType: "encoding", offset: u };
|
|
@@ -38697,7 +38707,7 @@ function Kke(e, t, n, r, i) {
|
|
|
38697
38707
|
}
|
|
38698
38708
|
if (n) {
|
|
38699
38709
|
const o = n.get("range");
|
|
38700
|
-
if (Ru(o) &&
|
|
38710
|
+
if (Ru(o) && Mt(o.step))
|
|
38701
38711
|
return { value: o.step - 2 };
|
|
38702
38712
|
}
|
|
38703
38713
|
return { value: y1(r.view, e) - 2 };
|
|
@@ -38707,7 +38717,7 @@ function Jke(e, t, n) {
|
|
|
38707
38717
|
let g;
|
|
38708
38718
|
(i.size || r.size) && (p ? g = Dn("size", n, {
|
|
38709
38719
|
vgChannel: c,
|
|
38710
|
-
defaultRef:
|
|
38720
|
+
defaultRef: Kt(r.size)
|
|
38711
38721
|
}) : ye(iCe(r.type)));
|
|
38712
38722
|
const m = !!g, v = hU({ channel: t, fieldDef: e, markDef: r, config: a, scaleType: u == null ? void 0 : u.get("type"), useVlSizeChannel: p });
|
|
38713
38723
|
g = g || {
|
|
@@ -38811,7 +38821,7 @@ function tM(e, t, n) {
|
|
|
38811
38821
|
return n ? { [t]: n } : {};
|
|
38812
38822
|
}
|
|
38813
38823
|
function e5e(e, t) {
|
|
38814
|
-
return g_e.reduce((n, r) => (!Qke.has(r) && e[r] !== void 0 && t[r] !== "ignore" && (n[r] =
|
|
38824
|
+
return g_e.reduce((n, r) => (!Qke.has(r) && e[r] !== void 0 && t[r] !== "ignore" && (n[r] = Kt(e[r])), n), {});
|
|
38815
38825
|
}
|
|
38816
38826
|
function t5e(e, { invalid: t = !1, channels: n }) {
|
|
38817
38827
|
const r = n.reduce((a, o) => {
|
|
@@ -38853,7 +38863,7 @@ function n5e(e, { invalid: t = !1, channels: n }) {
|
|
|
38853
38863
|
}
|
|
38854
38864
|
function nM(e, t) {
|
|
38855
38865
|
if (t !== void 0)
|
|
38856
|
-
return { [e]:
|
|
38866
|
+
return { [e]: Kt(t) };
|
|
38857
38867
|
}
|
|
38858
38868
|
const eE = "voronoi", gH = {
|
|
38859
38869
|
defined: (e) => e.type === "point" && e.nearest,
|
|
@@ -39124,7 +39134,7 @@ function CH(e) {
|
|
|
39124
39134
|
r.type === "MemberExpression" && _H(r) && n.add(_C(r).slice(1).join("."));
|
|
39125
39135
|
}), n;
|
|
39126
39136
|
}
|
|
39127
|
-
class Wh extends
|
|
39137
|
+
class Wh extends jt {
|
|
39128
39138
|
constructor(t, n, r) {
|
|
39129
39139
|
super(t), this.model = n, this.filter = r, this.expr = E1(this.model, this.filter, this), this._dependentFields = CH(this.expr);
|
|
39130
39140
|
}
|
|
@@ -39268,7 +39278,7 @@ function Kp(e, t, n, r = { header: !1 }) {
|
|
|
39268
39278
|
return;
|
|
39269
39279
|
if (h.encode) {
|
|
39270
39280
|
const { grid: p } = h.encode;
|
|
39271
|
-
h.encode = Object.assign({}, p ? { grid: p } : {}),
|
|
39281
|
+
h.encode = Object.assign({}, p ? { grid: p } : {}), Pt(h.encode) && delete h.encode;
|
|
39272
39282
|
}
|
|
39273
39283
|
return Object.assign(Object.assign({
|
|
39274
39284
|
scale: u,
|
|
@@ -39292,7 +39302,7 @@ function Kp(e, t, n, r = { header: !1 }) {
|
|
|
39292
39302
|
if (h.labelAlign === null && delete h.labelAlign, h.encode) {
|
|
39293
39303
|
for (const g of SU)
|
|
39294
39304
|
e.hasAxisPart(g) || delete h.encode[g];
|
|
39295
|
-
|
|
39305
|
+
Pt(h.encode) && delete h.encode;
|
|
39296
39306
|
}
|
|
39297
39307
|
const p = f5e(f, n);
|
|
39298
39308
|
return Object.assign(Object.assign(Object.assign(Object.assign({
|
|
@@ -39547,7 +39557,7 @@ function S5e(e, t) {
|
|
|
39547
39557
|
function E5e(e, t) {
|
|
39548
39558
|
return e === "rect" && g1(t) ? 1 : 0;
|
|
39549
39559
|
}
|
|
39550
|
-
class ih extends
|
|
39560
|
+
class ih extends jt {
|
|
39551
39561
|
constructor(t, n) {
|
|
39552
39562
|
super(t), this.transform = n, this._dependentFields = CH(this.transform.calculate);
|
|
39553
39563
|
}
|
|
@@ -39709,7 +39719,7 @@ function T5e(e, t) {
|
|
|
39709
39719
|
l !== void 0 && (n[s] = l);
|
|
39710
39720
|
}
|
|
39711
39721
|
}
|
|
39712
|
-
return
|
|
39722
|
+
return Pt(n) ? void 0 : n;
|
|
39713
39723
|
}
|
|
39714
39724
|
function FH(e, t, n, r, i) {
|
|
39715
39725
|
const a = {};
|
|
@@ -39776,7 +39786,7 @@ function MH(e) {
|
|
|
39776
39786
|
function WH(e, t) {
|
|
39777
39787
|
return be(e).reduce((n, r) => {
|
|
39778
39788
|
const i = e[r];
|
|
39779
|
-
return Object.assign(Object.assign({}, n), Mh(t, i, r, (a) =>
|
|
39789
|
+
return Object.assign(Object.assign({}, n), Mh(t, i, r, (a) => Kt(a.value)));
|
|
39780
39790
|
}, {});
|
|
39781
39791
|
}
|
|
39782
39792
|
function jH(e, t) {
|
|
@@ -39824,10 +39834,10 @@ function D5e(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
|
|
|
39824
39834
|
if (r === "fill" || y && r === li)
|
|
39825
39835
|
delete w.fill;
|
|
39826
39836
|
else if (w.fill.field)
|
|
39827
|
-
x ? delete w.fill : (w.fill =
|
|
39837
|
+
x ? delete w.fill : (w.fill = Kt((c = m.legend.symbolBaseFillColor) !== null && c !== void 0 ? c : "black"), w.fillOpacity = Kt(E != null ? E : 1));
|
|
39828
39838
|
else if (he(w.fill)) {
|
|
39829
39839
|
const _ = (h = (d = kC((f = g.fill) !== null && f !== void 0 ? f : g.color)) !== null && d !== void 0 ? d : p.fill) !== null && h !== void 0 ? h : y && p.color;
|
|
39830
|
-
_ && (w.fill =
|
|
39840
|
+
_ && (w.fill = Kt(_));
|
|
39831
39841
|
}
|
|
39832
39842
|
}
|
|
39833
39843
|
if (w.stroke) {
|
|
@@ -39843,11 +39853,11 @@ function D5e(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
|
|
|
39843
39853
|
if (r !== zs) {
|
|
39844
39854
|
const _ = Ee(t) && zH(n, i, t);
|
|
39845
39855
|
_ ? w.opacity = [
|
|
39846
|
-
Object.assign({ test: _ },
|
|
39847
|
-
|
|
39848
|
-
] : E && (w.opacity =
|
|
39856
|
+
Object.assign({ test: _ }, Kt(E != null ? E : 1)),
|
|
39857
|
+
Kt(m.legend.unselectedOpacity)
|
|
39858
|
+
] : E && (w.opacity = Kt(E));
|
|
39849
39859
|
}
|
|
39850
|
-
return w = Object.assign(Object.assign({}, w), e),
|
|
39860
|
+
return w = Object.assign(Object.assign({}, w), e), Pt(w) ? void 0 : w;
|
|
39851
39861
|
}
|
|
39852
39862
|
function L5e(e, { model: t, legendType: n, legendCmpt: r }) {
|
|
39853
39863
|
var i;
|
|
@@ -39856,7 +39866,7 @@ function L5e(e, { model: t, legendType: n, legendCmpt: r }) {
|
|
|
39856
39866
|
const { config: a, markDef: o, encoding: s } = t;
|
|
39857
39867
|
let l = {};
|
|
39858
39868
|
const c = ((i = r.get("gradientOpacity")) !== null && i !== void 0 ? i : a.legend.gradientOpacity) === void 0 ? GH(s.opacity) || o.opacity : void 0;
|
|
39859
|
-
return c && (l.opacity =
|
|
39869
|
+
return c && (l.opacity = Kt(c)), l = Object.assign(Object.assign({}, l), e), Pt(l) ? void 0 : l;
|
|
39860
39870
|
}
|
|
39861
39871
|
function F5e(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i }) {
|
|
39862
39872
|
const a = n.legend(r) || {}, o = n.config, s = Ee(t) ? zH(n, i, t) : void 0, l = s ? [{ test: s, value: 1 }, { value: o.legend.unselectedOpacity }] : void 0, { format: u, formatType: c } = a;
|
|
@@ -39881,7 +39891,7 @@ function F5e(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i }) {
|
|
|
39881
39891
|
config: o
|
|
39882
39892
|
})));
|
|
39883
39893
|
const d = Object.assign(Object.assign(Object.assign({}, l ? { opacity: l } : {}), f ? { text: f } : {}), e);
|
|
39884
|
-
return
|
|
39894
|
+
return Pt(d) ? void 0 : d;
|
|
39885
39895
|
}
|
|
39886
39896
|
function P5e(e, { legendCmpt: t }) {
|
|
39887
39897
|
const n = t.get("selections");
|
|
@@ -40086,9 +40096,9 @@ function U5e(e, t) {
|
|
|
40086
40096
|
const w = (r = a == null ? void 0 : a.encoding) !== null && r !== void 0 ? r : {}, b = c.get("selections"), x = {}, O = { fieldOrDatumDef: h, model: e, channel: t, legendCmpt: c, legendType: m };
|
|
40087
40097
|
for (const E of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
|
|
40088
40098
|
const _ = WH((i = w[E]) !== null && i !== void 0 ? i : {}, e), S = E in lM ? lM[E](_, O) : _;
|
|
40089
|
-
S !== void 0 && !
|
|
40099
|
+
S !== void 0 && !Pt(S) && (x[E] = Object.assign(Object.assign(Object.assign({}, (b == null ? void 0 : b.length) && Ee(h) ? { name: `${Qt(h.field)}_legend_${E}` } : {}), b != null && b.length ? { interactive: !!b } : {}), { update: S }));
|
|
40090
40100
|
}
|
|
40091
|
-
return
|
|
40101
|
+
return Pt(x) || c.set("encode", x, !!(a != null && a.encoding)), c;
|
|
40092
40102
|
}
|
|
40093
40103
|
function H5e(e) {
|
|
40094
40104
|
const { legends: t, resolve: n } = e.component;
|
|
@@ -40350,7 +40360,7 @@ function fM(e, t, n) {
|
|
|
40350
40360
|
const u = Object.assign(Object.assign(Object.assign({ bin: a, field: e.field, as: [r] }, s ? { signal: s } : {}), l ? { extentSignal: l } : {}), i ? { span: i } : {});
|
|
40351
40361
|
return { key: o, binComponent: u };
|
|
40352
40362
|
}
|
|
40353
|
-
class To extends
|
|
40363
|
+
class To extends jt {
|
|
40354
40364
|
constructor(t, n) {
|
|
40355
40365
|
super(t), this.bins = n;
|
|
40356
40366
|
}
|
|
@@ -40365,7 +40375,7 @@ class To extends Zt {
|
|
|
40365
40375
|
}
|
|
40366
40376
|
return i;
|
|
40367
40377
|
}, {});
|
|
40368
|
-
return
|
|
40378
|
+
return Pt(r) ? null : new To(t, r);
|
|
40369
40379
|
}
|
|
40370
40380
|
static makeFromTransform(t, n, r) {
|
|
40371
40381
|
const { key: i, binComponent: a } = fM(n, n.bin, r);
|
|
@@ -40432,7 +40442,7 @@ function dTe(e, t) {
|
|
|
40432
40442
|
r in e ? e[r][a] = /* @__PURE__ */ new Set([...(n = e[r][a]) !== null && n !== void 0 ? n : [], ...i[a]]) : e[r] = { [a]: i[a] };
|
|
40433
40443
|
}
|
|
40434
40444
|
}
|
|
40435
|
-
class Va extends
|
|
40445
|
+
class Va extends jt {
|
|
40436
40446
|
constructor(t, n, r) {
|
|
40437
40447
|
super(t), this.dimensions = n, this.measures = r;
|
|
40438
40448
|
}
|
|
@@ -40513,7 +40523,7 @@ class Va extends Zt {
|
|
|
40513
40523
|
};
|
|
40514
40524
|
}
|
|
40515
40525
|
}
|
|
40516
|
-
class jh extends
|
|
40526
|
+
class jh extends jt {
|
|
40517
40527
|
constructor(t, n, r, i) {
|
|
40518
40528
|
super(t), this.model = n, this.name = r, this.data = i;
|
|
40519
40529
|
for (const a of Hi) {
|
|
@@ -40674,7 +40684,7 @@ function pTe(e) {
|
|
|
40674
40684
|
var r;
|
|
40675
40685
|
if (X7(n)) {
|
|
40676
40686
|
let i = null;
|
|
40677
|
-
aI(n) ? i = wi(n.equal) : sI(n) ? i = wi(n.lte) : oI(n) ? i = wi(n.lt) : lI(n) ? i = wi(n.gt) : uI(n) ? i = wi(n.gte) : cI(n) ? i = n.range[0] : fI(n) && (i = ((r = n.oneOf) !== null && r !== void 0 ? r : n.in)[0]), i && (pf(i) ? t[n.field] = "date" :
|
|
40687
|
+
aI(n) ? i = wi(n.equal) : sI(n) ? i = wi(n.lte) : oI(n) ? i = wi(n.lt) : lI(n) ? i = wi(n.gt) : uI(n) ? i = wi(n.gte) : cI(n) ? i = n.range[0] : fI(n) && (i = ((r = n.oneOf) !== null && r !== void 0 ? r : n.in)[0]), i && (pf(i) ? t[n.field] = "date" : Mt(i) ? t[n.field] = "number" : Ne(i) && (t[n.field] = "string")), n.timeUnit && (t[n.field] = "date");
|
|
40678
40688
|
}
|
|
40679
40689
|
}), t;
|
|
40680
40690
|
}
|
|
@@ -40709,7 +40719,7 @@ function mTe(e) {
|
|
|
40709
40719
|
}
|
|
40710
40720
|
return t;
|
|
40711
40721
|
}
|
|
40712
|
-
class pr extends
|
|
40722
|
+
class pr extends jt {
|
|
40713
40723
|
constructor(t, n) {
|
|
40714
40724
|
super(t), this._parse = n;
|
|
40715
40725
|
}
|
|
@@ -40774,7 +40784,7 @@ class pr extends Zt {
|
|
|
40774
40784
|
}).filter((n) => n !== null);
|
|
40775
40785
|
}
|
|
40776
40786
|
}
|
|
40777
|
-
class ou extends
|
|
40787
|
+
class ou extends jt {
|
|
40778
40788
|
clone() {
|
|
40779
40789
|
return new ou(null);
|
|
40780
40790
|
}
|
|
@@ -40794,7 +40804,7 @@ class ou extends Zt {
|
|
|
40794
40804
|
return { type: "identifier", as: Mo };
|
|
40795
40805
|
}
|
|
40796
40806
|
}
|
|
40797
|
-
class m0 extends
|
|
40807
|
+
class m0 extends jt {
|
|
40798
40808
|
constructor(t, n) {
|
|
40799
40809
|
super(t), this.params = n;
|
|
40800
40810
|
}
|
|
@@ -40813,7 +40823,7 @@ class m0 extends Zt {
|
|
|
40813
40823
|
return Object.assign({ type: "graticule" }, this.params === !0 ? {} : this.params);
|
|
40814
40824
|
}
|
|
40815
40825
|
}
|
|
40816
|
-
class b0 extends
|
|
40826
|
+
class b0 extends jt {
|
|
40817
40827
|
constructor(t, n) {
|
|
40818
40828
|
super(t), this.params = n;
|
|
40819
40829
|
}
|
|
@@ -40834,7 +40844,7 @@ class b0 extends Zt {
|
|
|
40834
40844
|
return Object.assign({ type: "sequence" }, this.params);
|
|
40835
40845
|
}
|
|
40836
40846
|
}
|
|
40837
|
-
class Hc extends
|
|
40847
|
+
class Hc extends jt {
|
|
40838
40848
|
constructor(t) {
|
|
40839
40849
|
super(null), t != null || (t = { name: "source" });
|
|
40840
40850
|
let n;
|
|
@@ -40847,7 +40857,7 @@ class Hc extends Zt {
|
|
|
40847
40857
|
}
|
|
40848
40858
|
} else
|
|
40849
40859
|
sH(t) ? this._data = { values: [{ type: "Sphere" }] } : (aH(t) || Dl(t)) && (this._data = {});
|
|
40850
|
-
this._generator = Dl(t), t.name && (this._name = t.name), n && !
|
|
40860
|
+
this._generator = Dl(t), t.name && (this._name = t.name), n && !Pt(n) && (this._data.format = n);
|
|
40851
40861
|
}
|
|
40852
40862
|
dependentFields() {
|
|
40853
40863
|
return /* @__PURE__ */ new Set();
|
|
@@ -41002,7 +41012,7 @@ class ETe extends mf {
|
|
|
41002
41012
|
}
|
|
41003
41013
|
for (const o of a)
|
|
41004
41014
|
delete i[o];
|
|
41005
|
-
if (!
|
|
41015
|
+
if (!Pt(i)) {
|
|
41006
41016
|
this.setModified();
|
|
41007
41017
|
const o = new pr(t, i);
|
|
41008
41018
|
for (const s of n) {
|
|
@@ -41093,7 +41103,7 @@ class RTe extends mf {
|
|
|
41093
41103
|
}
|
|
41094
41104
|
}
|
|
41095
41105
|
}
|
|
41096
|
-
class bf extends
|
|
41106
|
+
class bf extends jt {
|
|
41097
41107
|
constructor(t, n) {
|
|
41098
41108
|
super(t), this.transform = n;
|
|
41099
41109
|
}
|
|
@@ -41139,7 +41149,7 @@ function kTe(e) {
|
|
|
41139
41149
|
function TTe(e) {
|
|
41140
41150
|
return he(e) && e.every((t) => Ne(t)) && e.length > 1;
|
|
41141
41151
|
}
|
|
41142
|
-
class Is extends
|
|
41152
|
+
class Is extends jt {
|
|
41143
41153
|
constructor(t, n) {
|
|
41144
41154
|
super(t), this._stack = n;
|
|
41145
41155
|
}
|
|
@@ -41244,7 +41254,7 @@ class Is extends Zt {
|
|
|
41244
41254
|
}), t;
|
|
41245
41255
|
}
|
|
41246
41256
|
}
|
|
41247
|
-
class Zh extends
|
|
41257
|
+
class Zh extends jt {
|
|
41248
41258
|
constructor(t, n) {
|
|
41249
41259
|
super(t), this.transform = n;
|
|
41250
41260
|
}
|
|
@@ -41935,7 +41945,7 @@ function qTe(e, t, n, r) {
|
|
|
41935
41945
|
if (r.scale.maxBandSize !== void 0)
|
|
41936
41946
|
return r.scale.maxBandSize;
|
|
41937
41947
|
const a = yM(t, i, r.view);
|
|
41938
|
-
return
|
|
41948
|
+
return Mt(a) ? a - 1 : new ri(() => `${a.signal} - 1`);
|
|
41939
41949
|
}
|
|
41940
41950
|
case "line":
|
|
41941
41951
|
case "trail":
|
|
@@ -41949,7 +41959,7 @@ function qTe(e, t, n, r) {
|
|
|
41949
41959
|
if (r.scale.maxSize)
|
|
41950
41960
|
return r.scale.maxSize;
|
|
41951
41961
|
const a = yM(t, i, r.view);
|
|
41952
|
-
return
|
|
41962
|
+
return Mt(a) ? Math.pow(vM * a, 2) : new ri(() => `pow(${vM} * ${a.signal}, 2)`);
|
|
41953
41963
|
}
|
|
41954
41964
|
}
|
|
41955
41965
|
throw new Error(bw("size", e));
|
|
@@ -42289,13 +42299,13 @@ class nA {
|
|
|
42289
42299
|
const n = iE(t, ["style"]), r = {};
|
|
42290
42300
|
for (const i of be(n)) {
|
|
42291
42301
|
const a = n[i];
|
|
42292
|
-
a !== void 0 && (r[i] =
|
|
42302
|
+
a !== void 0 && (r[i] = Kt(a));
|
|
42293
42303
|
}
|
|
42294
42304
|
return r;
|
|
42295
42305
|
}
|
|
42296
42306
|
assembleGroupEncodeEntry(t) {
|
|
42297
42307
|
let n = {};
|
|
42298
|
-
return this.view && (n = this.assembleEncodeFromView(this.view)), !t && (this.description && (n.description =
|
|
42308
|
+
return this.view && (n = this.assembleEncodeFromView(this.view)), !t && (this.description && (n.description = Kt(this.description)), this.type === "unit" || this.type === "layer") ? Object.assign({ width: this.getSizeSignalRef("width"), height: this.getSizeSignalRef("height") }, n != null ? n : {}) : Pt(n) ? void 0 : n;
|
|
42299
42309
|
}
|
|
42300
42310
|
assembleLayout() {
|
|
42301
42311
|
if (!this.layout)
|
|
@@ -42328,7 +42338,7 @@ class nA {
|
|
|
42328
42338
|
var t, n, r;
|
|
42329
42339
|
const i = (t = this.title) !== null && t !== void 0 ? t : {}, { encoding: a } = i, o = iE(i, ["encoding"]), s = Object.assign(Object.assign(Object.assign({}, O7(this.config.title).nonMarkTitleProperties), o), a ? { encode: { update: a } } : {});
|
|
42330
42340
|
if (s.text)
|
|
42331
|
-
return ht(["unit", "layer"], this.type) ? ht(["middle", void 0], s.anchor) && ((n = s.frame) !== null && n !== void 0 || (s.frame = "group")) : (r = s.anchor) !== null && r !== void 0 || (s.anchor = "start"),
|
|
42341
|
+
return ht(["unit", "layer"], this.type) ? ht(["middle", void 0], s.anchor) && ((n = s.frame) !== null && n !== void 0 || (s.frame = "group")) : (r = s.anchor) !== null && r !== void 0 || (s.anchor = "start"), Pt(s) ? void 0 : s;
|
|
42332
42342
|
}
|
|
42333
42343
|
assembleGroup(t = []) {
|
|
42334
42344
|
const n = {};
|
|
@@ -42446,7 +42456,7 @@ var pIe = globalThis && globalThis.__rest || function(e, t) {
|
|
|
42446
42456
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
42447
42457
|
return n;
|
|
42448
42458
|
};
|
|
42449
|
-
class Ww extends
|
|
42459
|
+
class Ww extends jt {
|
|
42450
42460
|
constructor(t, n) {
|
|
42451
42461
|
var r, i, a;
|
|
42452
42462
|
super(t), this.transform = n, this.transform = et(n);
|
|
@@ -42471,7 +42481,7 @@ class Ww extends Zt {
|
|
|
42471
42481
|
return Object.assign({ type: "kde", field: n }, r);
|
|
42472
42482
|
}
|
|
42473
42483
|
}
|
|
42474
|
-
class em extends
|
|
42484
|
+
class em extends jt {
|
|
42475
42485
|
constructor(t, n) {
|
|
42476
42486
|
super(t), this.filter = n;
|
|
42477
42487
|
}
|
|
@@ -42512,7 +42522,7 @@ class em extends Zt {
|
|
|
42512
42522
|
} : null;
|
|
42513
42523
|
}
|
|
42514
42524
|
}
|
|
42515
|
-
class jw extends
|
|
42525
|
+
class jw extends jt {
|
|
42516
42526
|
constructor(t, n) {
|
|
42517
42527
|
super(t), this.transform = n, this.transform = et(n);
|
|
42518
42528
|
const { flatten: r, as: i = [] } = this.transform;
|
|
@@ -42542,7 +42552,7 @@ class jw extends Zt {
|
|
|
42542
42552
|
};
|
|
42543
42553
|
}
|
|
42544
42554
|
}
|
|
42545
|
-
class Zw extends
|
|
42555
|
+
class Zw extends jt {
|
|
42546
42556
|
constructor(t, n) {
|
|
42547
42557
|
var r, i, a;
|
|
42548
42558
|
super(t), this.transform = n, this.transform = et(n);
|
|
@@ -42570,7 +42580,7 @@ class Zw extends Zt {
|
|
|
42570
42580
|
};
|
|
42571
42581
|
}
|
|
42572
42582
|
}
|
|
42573
|
-
class hd extends
|
|
42583
|
+
class hd extends jt {
|
|
42574
42584
|
constructor(t, n, r, i) {
|
|
42575
42585
|
super(t), this.fields = n, this.geojson = r, this.signal = i;
|
|
42576
42586
|
}
|
|
@@ -42620,7 +42630,7 @@ class hd extends Zt {
|
|
|
42620
42630
|
];
|
|
42621
42631
|
}
|
|
42622
42632
|
}
|
|
42623
|
-
class tm extends
|
|
42633
|
+
class tm extends jt {
|
|
42624
42634
|
constructor(t, n, r, i) {
|
|
42625
42635
|
super(t), this.projection = n, this.fields = r, this.as = i;
|
|
42626
42636
|
}
|
|
@@ -42663,7 +42673,7 @@ class tm extends Zt {
|
|
|
42663
42673
|
};
|
|
42664
42674
|
}
|
|
42665
42675
|
}
|
|
42666
|
-
class Sc extends
|
|
42676
|
+
class Sc extends jt {
|
|
42667
42677
|
constructor(t, n) {
|
|
42668
42678
|
super(t), this.transform = n;
|
|
42669
42679
|
}
|
|
@@ -42720,7 +42730,7 @@ var gIe = globalThis && globalThis.__rest || function(e, t) {
|
|
|
42720
42730
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
42721
42731
|
return n;
|
|
42722
42732
|
};
|
|
42723
|
-
class Gw extends
|
|
42733
|
+
class Gw extends jt {
|
|
42724
42734
|
constructor(t, n) {
|
|
42725
42735
|
var r, i, a;
|
|
42726
42736
|
super(t), this.transform = n, this.transform = et(n);
|
|
@@ -42745,7 +42755,7 @@ class Gw extends Zt {
|
|
|
42745
42755
|
return Object.assign({ type: "loess", x: r, y: n }, i);
|
|
42746
42756
|
}
|
|
42747
42757
|
}
|
|
42748
|
-
class nm extends
|
|
42758
|
+
class nm extends jt {
|
|
42749
42759
|
constructor(t, n, r) {
|
|
42750
42760
|
super(t), this.transform = n, this.secondary = r;
|
|
42751
42761
|
}
|
|
@@ -42805,7 +42815,7 @@ var mIe = globalThis && globalThis.__rest || function(e, t) {
|
|
|
42805
42815
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
42806
42816
|
return n;
|
|
42807
42817
|
};
|
|
42808
|
-
class Vw extends
|
|
42818
|
+
class Vw extends jt {
|
|
42809
42819
|
constructor(t, n) {
|
|
42810
42820
|
var r, i, a;
|
|
42811
42821
|
super(t), this.transform = n, this.transform = et(n);
|
|
@@ -42839,7 +42849,7 @@ var bIe = globalThis && globalThis.__rest || function(e, t) {
|
|
|
42839
42849
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
42840
42850
|
return n;
|
|
42841
42851
|
};
|
|
42842
|
-
class zw extends
|
|
42852
|
+
class zw extends jt {
|
|
42843
42853
|
constructor(t, n) {
|
|
42844
42854
|
var r, i, a;
|
|
42845
42855
|
super(t), this.transform = n, this.transform = et(n);
|
|
@@ -42864,7 +42874,7 @@ class zw extends Zt {
|
|
|
42864
42874
|
return Object.assign({ type: "regression", x: r, y: n }, i);
|
|
42865
42875
|
}
|
|
42866
42876
|
}
|
|
42867
|
-
class Xw extends
|
|
42877
|
+
class Xw extends jt {
|
|
42868
42878
|
constructor(t, n) {
|
|
42869
42879
|
super(t), this.transform = n;
|
|
42870
42880
|
}
|
|
@@ -42889,7 +42899,7 @@ class Xw extends Zt {
|
|
|
42889
42899
|
return Object.assign(Object.assign(Object.assign({ type: "pivot", field: t, value: n }, i !== void 0 ? { limit: i } : {}), a !== void 0 ? { op: a } : {}), r !== void 0 ? { groupby: r } : {});
|
|
42890
42900
|
}
|
|
42891
42901
|
}
|
|
42892
|
-
class Bw extends
|
|
42902
|
+
class Bw extends jt {
|
|
42893
42903
|
constructor(t, n) {
|
|
42894
42904
|
super(t), this.transform = n;
|
|
42895
42905
|
}
|
|
@@ -43711,9 +43721,9 @@ function GIe(e, t) {
|
|
|
43711
43721
|
if (!o.hasAxisPart(w))
|
|
43712
43722
|
return y;
|
|
43713
43723
|
const x = WH((b = m[w]) !== null && b !== void 0 ? b : {}, t), O = w === "labels" ? DIe(t, e, x) : x;
|
|
43714
|
-
return O !== void 0 && !
|
|
43724
|
+
return O !== void 0 && !Pt(O) && (y[w] = { update: O }), y;
|
|
43715
43725
|
}, {});
|
|
43716
|
-
return
|
|
43726
|
+
return Pt(v) || o.set("encode", v, !!a.encoding || a.labelAngle !== void 0), o;
|
|
43717
43727
|
}
|
|
43718
43728
|
function VIe({ encoding: e, size: t }) {
|
|
43719
43729
|
for (const n of ts) {
|
|
@@ -43984,7 +43994,7 @@ const cAe = {
|
|
|
43984
43994
|
})), hr("x", e, { defaultPos: "mid", vgChannel: "xc" })), hr("y", e, { defaultPos: "mid", vgChannel: "yc" })), Dn("size", e, {
|
|
43985
43995
|
defaultValue: fAe(e),
|
|
43986
43996
|
vgChannel: i
|
|
43987
|
-
})), { [a]:
|
|
43997
|
+
})), { [a]: Kt(kt("thickness", n, t)) });
|
|
43988
43998
|
}
|
|
43989
43999
|
};
|
|
43990
44000
|
function fAe(e) {
|
|
@@ -43994,7 +44004,7 @@ function fAe(e) {
|
|
|
43994
44004
|
return s;
|
|
43995
44005
|
{
|
|
43996
44006
|
const l = o ? o.get("range") : void 0;
|
|
43997
|
-
return l && Ru(l) &&
|
|
44007
|
+
return l && Ru(l) && Mt(l.step) ? l.step * 3 / 4 : y1(n.view, a) * 3 / 4;
|
|
43998
44008
|
}
|
|
43999
44009
|
}
|
|
44000
44010
|
const Eb = {
|
|
@@ -44070,7 +44080,7 @@ function pAe(e) {
|
|
|
44070
44080
|
}, n.encode.update = Object.assign(Object.assign({}, Ri(n.encode.update, ["x", "xc", "x2"])), { width: { field: { group: "width" } } }));
|
|
44071
44081
|
for (const c of uC) {
|
|
44072
44082
|
const f = zc(c, e.markDef, e.config);
|
|
44073
|
-
n.encode.update[c] ? (o[c] = n.encode.update[c], delete n.encode.update[c]) : f && (o[c] =
|
|
44083
|
+
n.encode.update[c] ? (o[c] = n.encode.update[c], delete n.encode.update[c]) : f && (o[c] = Kt(f)), f && (n.encode.update[c] = { value: 0 });
|
|
44074
44084
|
}
|
|
44075
44085
|
const l = [];
|
|
44076
44086
|
if (((t = e.stack.groupbyChannels) === null || t === void 0 ? void 0 : t.length) > 0)
|
|
@@ -44092,7 +44102,7 @@ function pAe(e) {
|
|
|
44092
44102
|
return Object.assign(Object.assign({}, c), { [f]: n.encode.update[f] });
|
|
44093
44103
|
{
|
|
44094
44104
|
const d = zc(f, e.markDef, e.config);
|
|
44095
|
-
return d !== void 0 ? Object.assign(Object.assign({}, c), { [f]:
|
|
44105
|
+
return d !== void 0 ? Object.assign(Object.assign({}, c), { [f]: Kt(d) }) : c;
|
|
44096
44106
|
}
|
|
44097
44107
|
}, o), o.stroke && (o.strokeForeground = { value: !0 }, o.strokeOffset = { value: 0 }), [
|
|
44098
44108
|
{
|
|
@@ -44477,7 +44487,7 @@ const EAe = DOe.version, OAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
|
|
|
44477
44487
|
hasIntersection: GT,
|
|
44478
44488
|
prefixGenerator: lC,
|
|
44479
44489
|
fieldIntersection: VT,
|
|
44480
|
-
isEmpty:
|
|
44490
|
+
isEmpty: Pt,
|
|
44481
44491
|
keys: be,
|
|
44482
44492
|
vals: yr,
|
|
44483
44493
|
entries: eu,
|
|
@@ -49963,7 +49973,7 @@ const sLe = (e) => {
|
|
|
49963
49973
|
name: O,
|
|
49964
49974
|
type: "quantitative"
|
|
49965
49975
|
})), [n]);
|
|
49966
|
-
|
|
49976
|
+
Gt(() => {
|
|
49967
49977
|
if (v.length > 0 && y.length > 0 && t.length > 0) {
|
|
49968
49978
|
const x = n.filter((_) => _.analyticType === "measure").map((_) => _.fid), O = v.map((_) => _.name), E = {
|
|
49969
49979
|
dimensions: r.map((_) => _.fid),
|
|
@@ -49982,7 +49992,7 @@ const sLe = (e) => {
|
|
|
49982
49992
|
s(S), u(_), g(C), h(!1);
|
|
49983
49993
|
});
|
|
49984
49994
|
}
|
|
49985
|
-
}, [n, r, i, y, a, v, y, t]),
|
|
49995
|
+
}, [n, r, i, y, a, v, y, t]), Gt(() => {
|
|
49986
49996
|
const x = o[c], O = l[c];
|
|
49987
49997
|
if (m.current && x && O) {
|
|
49988
49998
|
const E = x.type === "selection_dim_distribution" || x.type === "selection_mea_distribution", _ = aLe(x.measures, x.extendMs), S = KDe(
|
|
@@ -51041,7 +51051,7 @@ function W8(e, t) {
|
|
|
51041
51051
|
};
|
|
51042
51052
|
return c;
|
|
51043
51053
|
}
|
|
51044
|
-
var j8 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Xj :
|
|
51054
|
+
var j8 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Xj : Gt;
|
|
51045
51055
|
function Z8(e) {
|
|
51046
51056
|
var t = e.store, n = e.context, r = e.children, i = qt(function() {
|
|
51047
51057
|
var s = W8(t);
|
|
@@ -51598,7 +51608,7 @@ function B8(e, t) {
|
|
|
51598
51608
|
inputs: t,
|
|
51599
51609
|
result: e()
|
|
51600
51610
|
};
|
|
51601
|
-
return
|
|
51611
|
+
return Gt(function() {
|
|
51602
51612
|
r.current = !1, i.current = o;
|
|
51603
51613
|
}, [o]), o.result;
|
|
51604
51614
|
}
|
|
@@ -54658,7 +54668,7 @@ var M9e = function(e, t) {
|
|
|
54658
54668
|
dropAnimating: Op(o, "dropAnimating"),
|
|
54659
54669
|
userCancel: Op(o, "userCancel")
|
|
54660
54670
|
};
|
|
54661
|
-
}, Ti = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Xj :
|
|
54671
|
+
}, Ti = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Xj : Gt, AE = function() {
|
|
54662
54672
|
var t = document.querySelector("head");
|
|
54663
54673
|
return t || (process.env.NODE_ENV !== "production" ? U(!1, "Cannot find the head to append a style to") : U(!1)), t;
|
|
54664
54674
|
}, JW = function(t) {
|
|
@@ -54853,7 +54863,7 @@ function sMe() {
|
|
|
54853
54863
|
}
|
|
54854
54864
|
function lMe() {
|
|
54855
54865
|
var e = bt(sMe, []);
|
|
54856
|
-
return
|
|
54866
|
+
return Gt(function() {
|
|
54857
54867
|
return function() {
|
|
54858
54868
|
requestAnimationFrame(e.clean);
|
|
54859
54869
|
};
|
|
@@ -54879,7 +54889,7 @@ function fMe(e) {
|
|
|
54879
54889
|
var t = bt(function() {
|
|
54880
54890
|
return cMe(e);
|
|
54881
54891
|
}, [e]), n = ut(null);
|
|
54882
|
-
|
|
54892
|
+
Gt(function() {
|
|
54883
54893
|
var a = document.createElement("div");
|
|
54884
54894
|
return n.current = a, a.id = t, a.setAttribute("aria-live", "assertive"), a.setAttribute("aria-atomic", "true"), $e(a.style, uMe), cm().appendChild(a), function() {
|
|
54885
54895
|
setTimeout(function() {
|
|
@@ -54928,7 +54938,7 @@ function gMe(e) {
|
|
|
54928
54938
|
uniqueId: r
|
|
54929
54939
|
});
|
|
54930
54940
|
}, [r, t]);
|
|
54931
|
-
return
|
|
54941
|
+
return Gt(function() {
|
|
54932
54942
|
var o = document.createElement("div");
|
|
54933
54943
|
return o.id = i, o.textContent = n, o.style.display = "none", cm().appendChild(o), function() {
|
|
54934
54944
|
var l = cm();
|
|
@@ -54990,7 +55000,7 @@ function GA(e) {
|
|
|
54990
55000
|
}
|
|
54991
55001
|
function E0(e, t) {
|
|
54992
55002
|
GA(function() {
|
|
54993
|
-
|
|
55003
|
+
Gt(function() {
|
|
54994
55004
|
try {
|
|
54995
55005
|
e();
|
|
54996
55006
|
} catch (n) {
|
|
@@ -55010,7 +55020,7 @@ function wMe() {
|
|
|
55010
55020
|
}
|
|
55011
55021
|
function VA(e) {
|
|
55012
55022
|
var t = ut(e);
|
|
55013
|
-
return
|
|
55023
|
+
return Gt(function() {
|
|
55014
55024
|
t.current = e;
|
|
55015
55025
|
}), t;
|
|
55016
55026
|
}
|
|
@@ -55913,7 +55923,7 @@ function lWe(e) {
|
|
|
55913
55923
|
registry: p,
|
|
55914
55924
|
customSensors: r,
|
|
55915
55925
|
enableDefaultSensors: e.enableDefaultSensors !== !1
|
|
55916
|
-
}),
|
|
55926
|
+
}), Gt(function() {
|
|
55917
55927
|
return w;
|
|
55918
55928
|
}, [w]), I.createElement(t2.Provider, {
|
|
55919
55929
|
value: _
|
|
@@ -56237,7 +56247,7 @@ function RWe(e) {
|
|
|
56237
56247
|
var t = ut(null), n = Ve(function() {
|
|
56238
56248
|
!t.current || (clearTimeout(t.current), t.current = null);
|
|
56239
56249
|
}, []), r = e.animate, i = e.onTransitionEnd, a = e.onClose, o = e.contextId, s = cr(e.animate === "open"), l = s[0], u = s[1];
|
|
56240
|
-
|
|
56250
|
+
Gt(function() {
|
|
56241
56251
|
return l ? r !== "open" ? (n(), u(!1), FE) : t.current ? FE : (t.current = setTimeout(function() {
|
|
56242
56252
|
t.current = null, u(!1);
|
|
56243
56253
|
}), n) : FE;
|
|
@@ -58678,7 +58688,7 @@ const RZe = mt.div`
|
|
|
58678
58688
|
display: grid;
|
|
58679
58689
|
grid-template-columns: repeat(${(e) => e.colSize}, 1fr);
|
|
58680
58690
|
grid-template-rows: repeat(${(e) => e.rowSize}, 1fr);
|
|
58681
|
-
`, VE = "geom",
|
|
58691
|
+
`, VE = "geom", Zt = {
|
|
58682
58692
|
dragId: "",
|
|
58683
58693
|
fid: "",
|
|
58684
58694
|
name: "",
|
|
@@ -58692,7 +58702,7 @@ function TZe(e) {
|
|
|
58692
58702
|
function IZe(e) {
|
|
58693
58703
|
const t = TZe(e.geomType), n = {};
|
|
58694
58704
|
return Object.keys(e).filter((r) => t.has(r)).forEach((r) => {
|
|
58695
|
-
e[r] !==
|
|
58705
|
+
e[r] !== Zt && (n[r] = {
|
|
58696
58706
|
field: e[r].fid,
|
|
58697
58707
|
title: e[r].name,
|
|
58698
58708
|
type: e[r].semanticType
|
|
@@ -58719,7 +58729,7 @@ function mj(e) {
|
|
|
58719
58729
|
let v = g;
|
|
58720
58730
|
if (g === "auto") {
|
|
58721
58731
|
const b = [];
|
|
58722
|
-
t !==
|
|
58732
|
+
t !== Zt && b.push(t.semanticType), n !== Zt && b.push(n.semanticType), v = NZe(b);
|
|
58723
58733
|
}
|
|
58724
58734
|
let y = IZe({ geomType: v, x: t, y: n, color: r, opacity: i, size: a, shape: o, row: u, column: c, xOffset: f, yOffset: d, theta: s, radius: l });
|
|
58725
58735
|
return h && AZe(y, m), DZe(y, p), {
|
|
@@ -58733,7 +58743,7 @@ function mj(e) {
|
|
|
58733
58743
|
}
|
|
58734
58744
|
const LZe = (e) => {
|
|
58735
58745
|
const { dataSource: t = [], rows: n = [], columns: r = [], defaultAggregate: i = !0, stack: a = "stack", geomType: o, color: s, opacity: l, size: u, theta: c, radius: f, shape: d, onGeomClick: h, showActions: p, interactiveScale: g, layoutMode: m, width: v, height: y } = e, [w, b] = cr([]);
|
|
58736
|
-
|
|
58746
|
+
Gt(() => {
|
|
58737
58747
|
const L = kZe.subscribe(([A, T]) => {
|
|
58738
58748
|
h && h(A, T);
|
|
58739
58749
|
});
|
|
@@ -58742,13 +58752,13 @@ const LZe = (e) => {
|
|
|
58742
58752
|
};
|
|
58743
58753
|
}, []);
|
|
58744
58754
|
const x = qt(() => n.filter((L) => L.analyticType === "dimension"), [n]), O = qt(() => r.filter((L) => L.analyticType === "dimension"), [r]), E = qt(() => n.filter((L) => L.analyticType === "measure"), [n]), _ = qt(() => r.filter((L) => L.analyticType === "measure"), [r]), S = qt(() => x.slice(0, -1), [x]), C = qt(() => O.slice(0, -1), [O]), N = qt(() => E.length === 0 ? x.slice(-1) : E, [x, E]), k = qt(() => _.length === 0 ? O.slice(-1) : _, [x, E]), R = qt(() => [...n, ...r, s, l, u].filter((L) => Boolean(L)).map((L) => L.fid), [n, r, s, l, u]);
|
|
58745
|
-
return
|
|
58755
|
+
return Gt(() => {
|
|
58746
58756
|
b((L) => {
|
|
58747
58757
|
const A = Math.max(1, N.length * k.length);
|
|
58748
58758
|
return new Array(A).fill(null).map((F, B) => L[B] || I.createRef());
|
|
58749
58759
|
});
|
|
58750
|
-
}, [N, k]),
|
|
58751
|
-
const L = n.length > 0 ? n[n.length - 1] :
|
|
58760
|
+
}, [N, k]), Gt(() => {
|
|
58761
|
+
const L = n.length > 0 ? n[n.length - 1] : Zt, A = r.length > 0 ? r[r.length - 1] : Zt, T = n.slice(0, -1).filter((H) => H.analyticType === "dimension"), F = r.slice(0, -1).filter((H) => H.analyticType === "dimension"), B = T.length > 0 ? T[T.length - 1] : Zt, $ = F.length > 0 ? F[F.length - 1] : Zt, G = {
|
|
58752
58762
|
data: {
|
|
58753
58763
|
values: t
|
|
58754
58764
|
},
|
|
@@ -58765,20 +58775,20 @@ const LZe = (e) => {
|
|
|
58765
58775
|
select: "interval",
|
|
58766
58776
|
bind: "scales"
|
|
58767
58777
|
}), N.length <= 1 && k.length <= 1) {
|
|
58768
|
-
m === "fixed" && (B ===
|
|
58778
|
+
m === "fixed" && (B === Zt && $ === Zt && (G.autosize = "fit"), G.width = v, G.height = y);
|
|
58769
58779
|
const H = mj({
|
|
58770
58780
|
x: A,
|
|
58771
58781
|
y: L,
|
|
58772
|
-
color: s ||
|
|
58773
|
-
opacity: l ||
|
|
58774
|
-
size: u ||
|
|
58775
|
-
shape: d ||
|
|
58776
|
-
theta: c ||
|
|
58777
|
-
radius: f ||
|
|
58782
|
+
color: s || Zt,
|
|
58783
|
+
opacity: l || Zt,
|
|
58784
|
+
size: u || Zt,
|
|
58785
|
+
shape: d || Zt,
|
|
58786
|
+
theta: c || Zt,
|
|
58787
|
+
radius: f || Zt,
|
|
58778
58788
|
row: B,
|
|
58779
58789
|
column: $,
|
|
58780
|
-
xOffset:
|
|
58781
|
-
yOffset:
|
|
58790
|
+
xOffset: Zt,
|
|
58791
|
+
yOffset: Zt,
|
|
58782
58792
|
defaultAggregated: i,
|
|
58783
58793
|
stack: a,
|
|
58784
58794
|
geomType: o
|
|
@@ -58799,18 +58809,18 @@ const LZe = (e) => {
|
|
|
58799
58809
|
for (let H = 0; H < N.length; H++)
|
|
58800
58810
|
for (let V = 0; V < k.length; V++) {
|
|
58801
58811
|
const Y = mj({
|
|
58802
|
-
x: k[V] ||
|
|
58803
|
-
y: N[H] ||
|
|
58804
|
-
color: s ||
|
|
58805
|
-
opacity: l ||
|
|
58806
|
-
size: u ||
|
|
58807
|
-
shape: d ||
|
|
58808
|
-
theta: c ||
|
|
58809
|
-
radius: f ||
|
|
58812
|
+
x: k[V] || Zt,
|
|
58813
|
+
y: N[H] || Zt,
|
|
58814
|
+
color: s || Zt,
|
|
58815
|
+
opacity: l || Zt,
|
|
58816
|
+
size: u || Zt,
|
|
58817
|
+
shape: d || Zt,
|
|
58818
|
+
theta: c || Zt,
|
|
58819
|
+
radius: f || Zt,
|
|
58810
58820
|
row: B,
|
|
58811
58821
|
column: $,
|
|
58812
|
-
xOffset:
|
|
58813
|
-
yOffset:
|
|
58822
|
+
xOffset: Zt,
|
|
58823
|
+
yOffset: Zt,
|
|
58814
58824
|
defaultAggregated: i,
|
|
58815
58825
|
stack: a,
|
|
58816
58826
|
geomType: o
|
|
@@ -58859,9 +58869,9 @@ const LZe = (e) => {
|
|
|
58859
58869
|
n.showEmbededMenu([L.pageX, L.pageY]), n.setFilters(R);
|
|
58860
58870
|
});
|
|
58861
58871
|
}, []), { dataSource: S } = f, [C, N] = cr(S), k = ut(null);
|
|
58862
|
-
return
|
|
58872
|
+
return Gt(() => {
|
|
58863
58873
|
N(S);
|
|
58864
|
-
}, [S]),
|
|
58874
|
+
}, [S]), Gt(() => {
|
|
58865
58875
|
const R = d.length === 0 ? Promise.resolve(S) : nLe(S, d);
|
|
58866
58876
|
return k.current = R, R.then((L) => {
|
|
58867
58877
|
R === k.current && N(L);
|
|
@@ -59742,7 +59752,7 @@ function rGe(e) {
|
|
|
59742
59752
|
const { tabs: t, selectedKey: n, onSelected: r, allowEdit: i, onEditLabel: a } = e, [o, s] = cr([]), { t: l } = Rn(), u = Ec(() => {
|
|
59743
59753
|
s(new Array(t.length).fill(!1));
|
|
59744
59754
|
}, [t.length]);
|
|
59745
|
-
return
|
|
59755
|
+
return Gt(() => {
|
|
59746
59756
|
}, [u]), I.createElement(
|
|
59747
59757
|
"div",
|
|
59748
59758
|
{ className: "border-b border-gray-200 overflow-x-auto overflow-y-hidden", onMouseLeave: u },
|
|
@@ -62686,29 +62696,27 @@ const Zj = [], lVe = (e) => {
|
|
|
62686
62696
|
)
|
|
62687
62697
|
), MVe = (e) => {
|
|
62688
62698
|
const { dataSource: t = [], rawFields: n = [], spec: r, i18nLang: i = "en-US", i18nResources: a } = e, { commonStore: o, vizStore: s } = en(), [l, u] = cr(!0), { currentDataset: c, datasets: f, vizEmbededMenu: d } = o, { t: h, i18n: p } = Rn(), g = p.language;
|
|
62689
|
-
return
|
|
62699
|
+
return Gt(() => {
|
|
62690
62700
|
a && lVe(a);
|
|
62691
|
-
}, [a]),
|
|
62701
|
+
}, [a]), Gt(() => {
|
|
62692
62702
|
i !== g && uVe(i);
|
|
62693
|
-
}, [i, g]),
|
|
62703
|
+
}, [i, g]), Gt(() => {
|
|
62694
62704
|
t.length > 0 && o.addAndUseDS({
|
|
62695
62705
|
name: "context dataset",
|
|
62696
62706
|
dataSource: t,
|
|
62697
62707
|
rawFields: n
|
|
62698
62708
|
});
|
|
62699
|
-
}, [t, n]),
|
|
62700
|
-
r && s.renderSpec(r);
|
|
62701
|
-
}, [r]), Pt(() => {
|
|
62709
|
+
}, [t, n]), Gt(() => {
|
|
62702
62710
|
const m = c;
|
|
62703
62711
|
return m && m.dataSource.length > 0 && m.rawFields.length > 0 && (u(!1), eLe({
|
|
62704
62712
|
dataSource: m.dataSource,
|
|
62705
62713
|
fields: vn(m.rawFields)
|
|
62706
62714
|
}).then(() => {
|
|
62707
|
-
u(!0);
|
|
62715
|
+
u(!0), r && s.renderSpec(r);
|
|
62708
62716
|
})), () => {
|
|
62709
62717
|
tLe();
|
|
62710
62718
|
};
|
|
62711
|
-
}, [c]), I.createElement(
|
|
62719
|
+
}, [c, r]), I.createElement(
|
|
62712
62720
|
"div",
|
|
62713
62721
|
{ className: "App" },
|
|
62714
62722
|
I.createElement(tGe, { preWorkDone: l }),
|