@graphysdk/react 1.9.0-beta.1788853316769 → 1.9.0-beta.1788867107838
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/editable.browser.mjs +283 -290
- package/dist/index.browser.mjs +165 -172
- package/package.json +3 -3
package/dist/index.browser.mjs
CHANGED
|
@@ -5594,7 +5594,7 @@ Sl.every = function(e) {
|
|
|
5594
5594
|
return (r - t) / e;
|
|
5595
5595
|
}) : Sl;
|
|
5596
5596
|
};
|
|
5597
|
-
var Qoe = Sl.range, Yr = 1e3,
|
|
5597
|
+
var Qoe = Sl.range, Yr = 1e3, Yt = Yr * 60, Kr = Yt * 60, oi = Kr * 24, $h = oi * 7, jg = oi * 30, lu = oi * 365, Hi = ct(function(e) {
|
|
5598
5598
|
e.setTime(e - e.getMilliseconds());
|
|
5599
5599
|
}, function(e, t) {
|
|
5600
5600
|
e.setTime(+e + t * Yr);
|
|
@@ -5605,27 +5605,27 @@ var Qoe = Sl.range, Yr = 1e3, $t = Yr * 60, Kr = $t * 60, oi = Kr * 24, $h = oi
|
|
|
5605
5605
|
}), Joe = Hi.range, lw = ct(function(e) {
|
|
5606
5606
|
e.setTime(e - e.getMilliseconds() - e.getSeconds() * Yr);
|
|
5607
5607
|
}, function(e, t) {
|
|
5608
|
-
e.setTime(+e + t *
|
|
5608
|
+
e.setTime(+e + t * Yt);
|
|
5609
5609
|
}, function(e, t) {
|
|
5610
|
-
return (t - e) /
|
|
5610
|
+
return (t - e) / Yt;
|
|
5611
5611
|
}, function(e) {
|
|
5612
5612
|
return e.getMinutes();
|
|
5613
5613
|
}), Zoe = lw.range, cw = ct(function(e) {
|
|
5614
|
-
e.setTime(e - e.getMilliseconds() - e.getSeconds() * Yr - e.getMinutes() *
|
|
5614
|
+
e.setTime(e - e.getMilliseconds() - e.getSeconds() * Yr - e.getMinutes() * Yt);
|
|
5615
5615
|
}, function(e, t) {
|
|
5616
5616
|
e.setTime(+e + t * Kr);
|
|
5617
5617
|
}, function(e, t) {
|
|
5618
5618
|
return (t - e) / Kr;
|
|
5619
5619
|
}, function(e) {
|
|
5620
5620
|
return e.getHours();
|
|
5621
|
-
}), eae = cw.range, gc = ct((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) *
|
|
5621
|
+
}), eae = cw.range, gc = ct((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * Yt) / oi, (e) => e.getDate() - 1), tae = gc.range;
|
|
5622
5622
|
function bi(e) {
|
|
5623
5623
|
return ct(function(t) {
|
|
5624
5624
|
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
|
|
5625
5625
|
}, function(t, r) {
|
|
5626
5626
|
t.setDate(t.getDate() + r * 7);
|
|
5627
5627
|
}, function(t, r) {
|
|
5628
|
-
return (r - t - (r.getTimezoneOffset() - t.getTimezoneOffset()) *
|
|
5628
|
+
return (r - t - (r.getTimezoneOffset() - t.getTimezoneOffset()) * Yt) / $h;
|
|
5629
5629
|
});
|
|
5630
5630
|
}
|
|
5631
5631
|
var Yh = bi(0), Tl = bi(1), bD = bi(2), xD = bi(3), mo = bi(4), wD = bi(5), AD = bi(6), rae = Yh.range, nae = Tl.range, iae = bD.range, oae = xD.range, aae = mo.range, sae = wD.range, lae = AD.range, uw = ct(function(e) {
|
|
@@ -5655,9 +5655,9 @@ bn.every = function(e) {
|
|
|
5655
5655
|
var uae = bn.range, Kh = ct(function(e) {
|
|
5656
5656
|
e.setUTCSeconds(0, 0);
|
|
5657
5657
|
}, function(e, t) {
|
|
5658
|
-
e.setTime(+e + t *
|
|
5658
|
+
e.setTime(+e + t * Yt);
|
|
5659
5659
|
}, function(e, t) {
|
|
5660
|
-
return (t - e) /
|
|
5660
|
+
return (t - e) / Yt;
|
|
5661
5661
|
}, function(e) {
|
|
5662
5662
|
return e.getUTCMinutes();
|
|
5663
5663
|
}), dae = Kh.range, pc = ct(function(e) {
|
|
@@ -5836,22 +5836,22 @@ function mw(e, t, r, n, i, o) {
|
|
|
5836
5836
|
[
|
|
5837
5837
|
o,
|
|
5838
5838
|
1,
|
|
5839
|
-
|
|
5839
|
+
Yt
|
|
5840
5840
|
],
|
|
5841
5841
|
[
|
|
5842
5842
|
o,
|
|
5843
5843
|
5,
|
|
5844
|
-
5 *
|
|
5844
|
+
5 * Yt
|
|
5845
5845
|
],
|
|
5846
5846
|
[
|
|
5847
5847
|
o,
|
|
5848
5848
|
15,
|
|
5849
|
-
15 *
|
|
5849
|
+
15 * Yt
|
|
5850
5850
|
],
|
|
5851
5851
|
[
|
|
5852
5852
|
o,
|
|
5853
5853
|
30,
|
|
5854
|
-
30 *
|
|
5854
|
+
30 * Yt
|
|
5855
5855
|
],
|
|
5856
5856
|
[
|
|
5857
5857
|
i,
|
|
@@ -6530,7 +6530,7 @@ var Pi = (e) => {
|
|
|
6530
6530
|
...e?.id === void 0 ? {} : { id: e.id },
|
|
6531
6531
|
...Object.keys(t).length === 0 ? {} : { when: t }
|
|
6532
6532
|
};
|
|
6533
|
-
}, _n = (e) => e?.layer === void 0 ? {} : { layer: e.layer }, te = (e) => e?.id === void 0 ? {} : { id: e.id },
|
|
6533
|
+
}, _n = (e) => e?.layer === void 0 ? {} : { layer: e.layer }, te = (e) => e?.id === void 0 ? {} : { id: e.id }, er = (e) => e?.annotation === void 0 ? {} : { annotation: e.annotation }, ae = {
|
|
6534
6534
|
geom: Object.assign((e, t) => ({
|
|
6535
6535
|
...Pi(t),
|
|
6536
6536
|
select: {
|
|
@@ -6944,7 +6944,7 @@ var Pi = (e) => {
|
|
|
6944
6944
|
...te(t),
|
|
6945
6945
|
select: {
|
|
6946
6946
|
target: "annotation",
|
|
6947
|
-
...
|
|
6947
|
+
...er(t)
|
|
6948
6948
|
},
|
|
6949
6949
|
declarations: e
|
|
6950
6950
|
}), {
|
|
@@ -6953,7 +6953,7 @@ var Pi = (e) => {
|
|
|
6953
6953
|
select: {
|
|
6954
6954
|
target: "annotation",
|
|
6955
6955
|
kind: "shape",
|
|
6956
|
-
...
|
|
6956
|
+
...er(t)
|
|
6957
6957
|
},
|
|
6958
6958
|
declarations: e
|
|
6959
6959
|
}),
|
|
@@ -6962,7 +6962,7 @@ var Pi = (e) => {
|
|
|
6962
6962
|
select: {
|
|
6963
6963
|
target: "annotation",
|
|
6964
6964
|
kind: "arrow",
|
|
6965
|
-
...
|
|
6965
|
+
...er(t)
|
|
6966
6966
|
},
|
|
6967
6967
|
declarations: e
|
|
6968
6968
|
}),
|
|
@@ -6971,7 +6971,7 @@ var Pi = (e) => {
|
|
|
6971
6971
|
select: {
|
|
6972
6972
|
target: "annotation",
|
|
6973
6973
|
kind: "differenceArrow",
|
|
6974
|
-
...
|
|
6974
|
+
...er(t)
|
|
6975
6975
|
},
|
|
6976
6976
|
declarations: e
|
|
6977
6977
|
}), { label: (e, t) => ({
|
|
@@ -6980,7 +6980,7 @@ var Pi = (e) => {
|
|
|
6980
6980
|
target: "annotation",
|
|
6981
6981
|
kind: "differenceArrow",
|
|
6982
6982
|
part: "label",
|
|
6983
|
-
...
|
|
6983
|
+
...er(t)
|
|
6984
6984
|
},
|
|
6985
6985
|
declarations: e
|
|
6986
6986
|
}) }),
|
|
@@ -6989,7 +6989,7 @@ var Pi = (e) => {
|
|
|
6989
6989
|
select: {
|
|
6990
6990
|
target: "annotation",
|
|
6991
6991
|
kind: "text",
|
|
6992
|
-
...
|
|
6992
|
+
...er(t)
|
|
6993
6993
|
},
|
|
6994
6994
|
declarations: e
|
|
6995
6995
|
}),
|
|
@@ -6998,7 +6998,7 @@ var Pi = (e) => {
|
|
|
6998
6998
|
select: {
|
|
6999
6999
|
target: "annotation",
|
|
7000
7000
|
kind: "image",
|
|
7001
|
-
...
|
|
7001
|
+
...er(t)
|
|
7002
7002
|
},
|
|
7003
7003
|
declarations: e
|
|
7004
7004
|
}),
|
|
@@ -7007,7 +7007,7 @@ var Pi = (e) => {
|
|
|
7007
7007
|
select: {
|
|
7008
7008
|
target: "annotation",
|
|
7009
7009
|
kind: "pinnedNumber",
|
|
7010
|
-
...
|
|
7010
|
+
...er(t)
|
|
7011
7011
|
},
|
|
7012
7012
|
declarations: e
|
|
7013
7013
|
}), { label: (e, t) => ({
|
|
@@ -7016,7 +7016,7 @@ var Pi = (e) => {
|
|
|
7016
7016
|
target: "annotation",
|
|
7017
7017
|
kind: "pinnedNumber",
|
|
7018
7018
|
part: "label",
|
|
7019
|
-
...
|
|
7019
|
+
...er(t)
|
|
7020
7020
|
},
|
|
7021
7021
|
declarations: e
|
|
7022
7022
|
}) }),
|
|
@@ -7025,7 +7025,7 @@ var Pi = (e) => {
|
|
|
7025
7025
|
select: {
|
|
7026
7026
|
target: "annotation",
|
|
7027
7027
|
kind: "comment",
|
|
7028
|
-
...
|
|
7028
|
+
...er(t)
|
|
7029
7029
|
},
|
|
7030
7030
|
declarations: e
|
|
7031
7031
|
}), { label: (e, t) => ({
|
|
@@ -7034,7 +7034,7 @@ var Pi = (e) => {
|
|
|
7034
7034
|
target: "annotation",
|
|
7035
7035
|
kind: "comment",
|
|
7036
7036
|
part: "label",
|
|
7037
|
-
...
|
|
7037
|
+
...er(t)
|
|
7038
7038
|
},
|
|
7039
7039
|
declarations: e
|
|
7040
7040
|
}) })
|
|
@@ -8798,8 +8798,8 @@ var fO = /* @__PURE__ */ new Set(["label", "group"]), mO = class {
|
|
|
8798
8798
|
for (var k = n(s(E, T, _, !0), 4), C = k[0], G = k[1], K = k[2], Q = k[3], re = C.length, se = Math.max(2, ~~(N * re)), J = new Float64Array(re), oe = new Float64Array(re), ie = new Float64Array(re).fill(1), le = -1; ++le <= y; ) {
|
|
8799
8799
|
for (var V = [0, se - 1], $ = 0; $ < re; ++$) {
|
|
8800
8800
|
for (var X = C[$], B = V[0], ce = V[1], ee = X - C[B] > C[ce] - X ? B : ce, xe = 0, fe = 0, He = 0, nt = 0, tt = 0, Ye = 1 / Math.abs(C[ee] - X || 1), bt = B; bt <= ce; ++bt) {
|
|
8801
|
-
var xt = C[bt], rt = G[bt], Ie = M(Math.abs(X - xt) * Ye) * ie[bt],
|
|
8802
|
-
xe += Ie, fe +=
|
|
8801
|
+
var xt = C[bt], rt = G[bt], Ie = M(Math.abs(X - xt) * Ye) * ie[bt], Zt = xt * Ie;
|
|
8802
|
+
xe += Ie, fe += Zt, He += rt * Ie, nt += rt * Zt, tt += xt * Zt;
|
|
8803
8803
|
}
|
|
8804
8804
|
var zm = n(f(fe / xe, He / xe, nt / xe, tt / xe), 2);
|
|
8805
8805
|
J[$] = zm[0] + zm[1] * X, oe[$] = Math.abs(G[$] - J[$]), R(C, $ + 1, V);
|
|
@@ -8872,11 +8872,11 @@ var fO = /* @__PURE__ */ new Set(["label", "group"]), mO = class {
|
|
|
8872
8872
|
for (V = 0; V < re; )
|
|
8873
8873
|
$ = C[V], X = G[V++], B = $ * $, se += (B - se) / V, J += (B * $ - J) / V, oe += (B * B - oe) / V, ie += ($ * X - ie) / V, le += (B * X - le) / V;
|
|
8874
8874
|
var ce = 0, ee = 0, xe = N ? +N[0] : 1 / 0, fe = N ? +N[1] : -1 / 0;
|
|
8875
|
-
l(E, T, _, function(Ie,
|
|
8876
|
-
ee++, ce += (
|
|
8875
|
+
l(E, T, _, function(Ie, Zt) {
|
|
8876
|
+
ee++, ce += (Zt - ce) / ee, N || (Ie < xe && (xe = Ie), Ie > fe && (fe = Ie));
|
|
8877
8877
|
});
|
|
8878
|
-
var He = oe - se * se, nt = se * He - J * J, tt = (le * se - ie * J) / nt, Ye = (ie * He - le * J) / nt, bt = -tt * se, xt = function(
|
|
8879
|
-
return
|
|
8878
|
+
var He = oe - se * se, nt = se * He - J * J, tt = (le * se - ie * J) / nt, Ye = (ie * He - le * J) / nt, bt = -tt * se, xt = function(Zt) {
|
|
8879
|
+
return Zt = Zt - K, tt * Zt * Zt + Ye * Zt + bt + Q;
|
|
8880
8880
|
}, rt = h(xe, fe, xt);
|
|
8881
8881
|
return rt.a = tt, rt.b = Ye - 2 * tt * K, rt.c = bt - Ye * K + tt * K * K + Q, rt.predict = xt, rt.rSquared = c(E, T, _, ce, xt), rt;
|
|
8882
8882
|
}
|
|
@@ -9712,35 +9712,35 @@ function $n(e) {
|
|
|
9712
9712
|
return e = Jn(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
9713
9713
|
}
|
|
9714
9714
|
function bp(e, t, r, n) {
|
|
9715
|
-
return n <= 0 ? e = t = r = NaN : r <= 0 || r >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new
|
|
9715
|
+
return n <= 0 ? e = t = r = NaN : r <= 0 || r >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new or(e, t, r, n);
|
|
9716
9716
|
}
|
|
9717
9717
|
function Gw(e) {
|
|
9718
|
-
if (e instanceof
|
|
9719
|
-
if (e instanceof wi || (e = Na(e)), !e) return new
|
|
9720
|
-
if (e instanceof
|
|
9718
|
+
if (e instanceof or) return new or(e.h, e.s, e.l, e.opacity);
|
|
9719
|
+
if (e instanceof wi || (e = Na(e)), !e) return new or();
|
|
9720
|
+
if (e instanceof or) return e;
|
|
9721
9721
|
e = e.rgb();
|
|
9722
9722
|
var t = e.r / 255, r = e.g / 255, n = e.b / 255, i = Math.min(t, r, n), o = Math.max(t, r, n), a = NaN, s = o - i, l = (o + i) / 2;
|
|
9723
|
-
return s ? (t === o ? a = (r - n) / s + (r < n) * 6 : r === o ? a = (n - t) / s + 2 : a = (t - r) / s + 4, s /= l < 0.5 ? o + i : 2 - o - i, a *= 60) : s = l > 0 && l < 1 ? 0 : a, new
|
|
9723
|
+
return s ? (t === o ? a = (r - n) / s + (r < n) * 6 : r === o ? a = (n - t) / s + 2 : a = (t - r) / s + 4, s /= l < 0.5 ? o + i : 2 - o - i, a *= 60) : s = l > 0 && l < 1 ? 0 : a, new or(a, s, l, e.opacity);
|
|
9724
9724
|
}
|
|
9725
9725
|
function bd(e, t, r, n) {
|
|
9726
|
-
return arguments.length === 1 ? Gw(e) : new
|
|
9726
|
+
return arguments.length === 1 ? Gw(e) : new or(e, t, r, n ?? 1);
|
|
9727
9727
|
}
|
|
9728
|
-
function
|
|
9728
|
+
function or(e, t, r, n) {
|
|
9729
9729
|
this.h = +e, this.s = +t, this.l = +r, this.opacity = +n;
|
|
9730
9730
|
}
|
|
9731
|
-
ns(
|
|
9731
|
+
ns(or, bd, xc(wi, {
|
|
9732
9732
|
brighter(e) {
|
|
9733
|
-
return e = e == null ? El : Math.pow(El, e), new
|
|
9733
|
+
return e = e == null ? El : Math.pow(El, e), new or(this.h, this.s, this.l * e, this.opacity);
|
|
9734
9734
|
},
|
|
9735
9735
|
darker(e) {
|
|
9736
|
-
return e = e == null ? La : Math.pow(La, e), new
|
|
9736
|
+
return e = e == null ? La : Math.pow(La, e), new or(this.h, this.s, this.l * e, this.opacity);
|
|
9737
9737
|
},
|
|
9738
9738
|
rgb() {
|
|
9739
9739
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, r = this.l, n = r + (r < 0.5 ? r : 1 - r) * t, i = 2 * r - n;
|
|
9740
9740
|
return new vt(uu(e >= 240 ? e - 240 : e + 120, i, n), uu(e, i, n), uu(e < 120 ? e + 240 : e - 120, i, n), this.opacity);
|
|
9741
9741
|
},
|
|
9742
9742
|
clamp() {
|
|
9743
|
-
return new
|
|
9743
|
+
return new or(xp(this.h), ks(this.s), ks(this.l), Cl(this.opacity));
|
|
9744
9744
|
},
|
|
9745
9745
|
displayable() {
|
|
9746
9746
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -11427,7 +11427,7 @@ var x1 = [
|
|
|
11427
11427
|
pr.plum,
|
|
11428
11428
|
pr.green,
|
|
11429
11429
|
pr.dark_purple
|
|
11430
|
-
],
|
|
11430
|
+
], rr = {
|
|
11431
11431
|
green: "#B2DDC9",
|
|
11432
11432
|
cyan: "#A2D5E2",
|
|
11433
11433
|
blue: "#AAC4FF",
|
|
@@ -11438,15 +11438,15 @@ var x1 = [
|
|
|
11438
11438
|
orange: "#FFDEB4",
|
|
11439
11439
|
yellow: "#FDF7C3"
|
|
11440
11440
|
}, h3 = [
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11441
|
+
rr.green,
|
|
11442
|
+
rr.purple,
|
|
11443
|
+
rr.red,
|
|
11444
|
+
rr.cyan,
|
|
11445
|
+
rr.pink,
|
|
11446
|
+
rr.blue,
|
|
11447
|
+
rr.orange,
|
|
11448
|
+
rr.plum,
|
|
11449
|
+
rr.yellow
|
|
11450
11450
|
], Ba = {
|
|
11451
11451
|
brick900: "#6E0500",
|
|
11452
11452
|
brick800: "#881D11",
|
|
@@ -11550,8 +11550,8 @@ var x1 = [
|
|
|
11550
11550
|
pink50: "#FFF4FC"
|
|
11551
11551
|
}, f3 = [Ba.brick100, Ba.brick900], m3 = [
|
|
11552
11552
|
Ba.grey200,
|
|
11553
|
-
|
|
11554
|
-
|
|
11553
|
+
rr.green,
|
|
11554
|
+
rr.red,
|
|
11555
11555
|
Ba.grey200
|
|
11556
11556
|
], Up = {
|
|
11557
11557
|
dark: {
|
|
@@ -13164,14 +13164,14 @@ var WV = class extends vi {
|
|
|
13164
13164
|
color: "color",
|
|
13165
13165
|
strokeWidth: "pixels",
|
|
13166
13166
|
lineType: "lineType"
|
|
13167
|
-
},
|
|
13167
|
+
}, $t = {
|
|
13168
13168
|
fontFamily: "fontFamily",
|
|
13169
13169
|
fontSize: "pixels",
|
|
13170
13170
|
fontWeight: "fontWeight",
|
|
13171
13171
|
lineHeight: "multiplier",
|
|
13172
13172
|
textColor: "color"
|
|
13173
13173
|
}, Ls = {
|
|
13174
|
-
|
|
13174
|
+
...$t,
|
|
13175
13175
|
paddingInline: "pixels",
|
|
13176
13176
|
paddingBlock: "pixels",
|
|
13177
13177
|
background: "color",
|
|
@@ -13189,17 +13189,12 @@ var WV = class extends vi {
|
|
|
13189
13189
|
..._s,
|
|
13190
13190
|
length: "pixels"
|
|
13191
13191
|
},
|
|
13192
|
-
axisLabel:
|
|
13192
|
+
axisLabel: $t,
|
|
13193
13193
|
tickLabel: {
|
|
13194
|
-
|
|
13194
|
+
...$t,
|
|
13195
13195
|
offset: "pixels"
|
|
13196
13196
|
},
|
|
13197
|
-
ruleLabel:
|
|
13198
|
-
fontFamily: "fontFamily",
|
|
13199
|
-
fontSize: "pixels",
|
|
13200
|
-
fontWeight: "fontWeight",
|
|
13201
|
-
lineHeight: "multiplier"
|
|
13202
|
-
},
|
|
13197
|
+
ruleLabel: $t,
|
|
13203
13198
|
dataLabel: Ls,
|
|
13204
13199
|
graph: {
|
|
13205
13200
|
background: "color",
|
|
@@ -13222,12 +13217,12 @@ var WV = class extends vi {
|
|
|
13222
13217
|
paddingBlock: "pixels",
|
|
13223
13218
|
shadow: "shadow"
|
|
13224
13219
|
},
|
|
13225
|
-
tooltipText:
|
|
13220
|
+
tooltipText: $t,
|
|
13226
13221
|
tooltipPrimaryRow: { background: "color" },
|
|
13227
13222
|
headline: { gap: "pixels" },
|
|
13228
13223
|
legend: { gap: "pixels" },
|
|
13229
13224
|
legendItem: {
|
|
13230
|
-
|
|
13225
|
+
...$t,
|
|
13231
13226
|
paddingInline: "pixels",
|
|
13232
13227
|
paddingBlock: "pixels",
|
|
13233
13228
|
background: "color",
|
|
@@ -13240,7 +13235,7 @@ var WV = class extends vi {
|
|
|
13240
13235
|
strokeWidth: "pixels"
|
|
13241
13236
|
},
|
|
13242
13237
|
directLabel: {
|
|
13243
|
-
|
|
13238
|
+
...$t,
|
|
13244
13239
|
strokeWidth: "pixels",
|
|
13245
13240
|
lineType: "lineType"
|
|
13246
13241
|
},
|
|
@@ -13287,12 +13282,12 @@ var WV = class extends vi {
|
|
|
13287
13282
|
shadow: "shadow"
|
|
13288
13283
|
}
|
|
13289
13284
|
}, C1 = {
|
|
13290
|
-
number:
|
|
13291
|
-
numberCenter:
|
|
13292
|
-
caption:
|
|
13293
|
-
label:
|
|
13285
|
+
number: $t,
|
|
13286
|
+
numberCenter: $t,
|
|
13287
|
+
caption: $t,
|
|
13288
|
+
label: $t,
|
|
13294
13289
|
swatch: { size: "pixels" },
|
|
13295
|
-
trend:
|
|
13290
|
+
trend: $t,
|
|
13296
13291
|
trendUp: { textColor: "color" },
|
|
13297
13292
|
trendDown: { textColor: "color" },
|
|
13298
13293
|
trendFlat: { textColor: "color" }
|
|
@@ -17128,7 +17123,7 @@ var wu = {
|
|
|
17128
17123
|
"fontWeight",
|
|
17129
17124
|
"lineHeight",
|
|
17130
17125
|
"textColor"
|
|
17131
|
-
], xn = (e) => e.fontSize * e.lineHeight,
|
|
17126
|
+
], xn = (e) => e.fontSize * e.lineHeight, qt = (e, t) => ({
|
|
17132
17127
|
family: e.fontFamily ?? t,
|
|
17133
17128
|
size: e.fontSize,
|
|
17134
17129
|
weight: e.fontWeight
|
|
@@ -17157,13 +17152,11 @@ var wu = {
|
|
|
17157
17152
|
...s === void 0 ? {} : { borderWidth: s }
|
|
17158
17153
|
};
|
|
17159
17154
|
}, V8 = (e, t, r) => {
|
|
17160
|
-
const n =
|
|
17161
|
-
return {
|
|
17162
|
-
|
|
17163
|
-
|
|
17164
|
-
|
|
17165
|
-
lineHeight: n.lineHeight
|
|
17166
|
-
};
|
|
17155
|
+
const n = e.ruleLabel(t), { textColor: i, ...o } = Ft(n, r, e.graph.get("fontFamily"));
|
|
17156
|
+
return n.getSource("textColor") === "authored" ? {
|
|
17157
|
+
...o,
|
|
17158
|
+
textColor: i
|
|
17159
|
+
} : o;
|
|
17167
17160
|
}, H8 = (e, t) => {
|
|
17168
17161
|
const r = e.tooltip.box, n = e.graph.get("fontFamily");
|
|
17169
17162
|
return {
|
|
@@ -22226,7 +22219,7 @@ function ZA(e) {
|
|
|
22226
22219
|
let t;
|
|
22227
22220
|
return () => (t === void 0 && (t = e()), t);
|
|
22228
22221
|
}
|
|
22229
|
-
var
|
|
22222
|
+
var Xt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, OG = (e, t) => (r) => t(e(r)), ds = (...e) => e.reduce(OG), xo = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
|
|
22230
22223
|
const n = t - e;
|
|
22231
22224
|
return n === 0 ? 1 : (r - e) / n;
|
|
22232
22225
|
}, Zf = class {
|
|
@@ -22251,7 +22244,7 @@ var Kt = /* @__NO_SIDE_EFFECTS__ */ (e) => e, OG = (e, t) => (r) => t(e(r)), ds
|
|
|
22251
22244
|
clear() {
|
|
22252
22245
|
this.subscriptions.length = 0;
|
|
22253
22246
|
}
|
|
22254
|
-
}, Vt = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3,
|
|
22247
|
+
}, Vt = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Kt = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
22255
22248
|
function eS(e, t) {
|
|
22256
22249
|
return t ? e * (1e3 / t) : 0;
|
|
22257
22250
|
}
|
|
@@ -22267,7 +22260,7 @@ function HG(e, t, r, n, i) {
|
|
|
22267
22260
|
return a;
|
|
22268
22261
|
}
|
|
22269
22262
|
function hs(e, t, r, n) {
|
|
22270
|
-
if (e === t && r === n) return
|
|
22263
|
+
if (e === t && r === n) return Xt;
|
|
22271
22264
|
const i = (o) => HG(o, 0, 1, e, r);
|
|
22272
22265
|
return (o) => o === 0 || o === 1 ? o : tS(i(o), t, n);
|
|
22273
22266
|
}
|
|
@@ -22276,7 +22269,7 @@ function dS(e, t) {
|
|
|
22276
22269
|
return uS(e) ? e[BG(0, e.length, t)] : e;
|
|
22277
22270
|
}
|
|
22278
22271
|
var hS = (e) => Array.isArray(e) && typeof e[0] == "number", Jv = {
|
|
22279
|
-
linear:
|
|
22272
|
+
linear: Xt,
|
|
22280
22273
|
easeIn: WG,
|
|
22281
22274
|
easeInOut: cS,
|
|
22282
22275
|
easeOut: GG,
|
|
@@ -22362,7 +22355,7 @@ function fS(e, t) {
|
|
|
22362
22355
|
steps: a
|
|
22363
22356
|
};
|
|
22364
22357
|
}
|
|
22365
|
-
var { schedule: Re, cancel: tn, state: ht, steps: Cu } = /* @__PURE__ */ fS(typeof requestAnimationFrame < "u" ? requestAnimationFrame :
|
|
22358
|
+
var { schedule: Re, cancel: tn, state: ht, steps: Cu } = /* @__PURE__ */ fS(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Xt, !0), il;
|
|
22366
22359
|
function $G() {
|
|
22367
22360
|
il = void 0;
|
|
22368
22361
|
}
|
|
@@ -22604,7 +22597,7 @@ function MS(e, t = 100, r) {
|
|
|
22604
22597
|
return {
|
|
22605
22598
|
type: "keyframes",
|
|
22606
22599
|
ease: (o) => n.next(i * o).value / t,
|
|
22607
|
-
duration:
|
|
22600
|
+
duration: Kt(i)
|
|
22608
22601
|
};
|
|
22609
22602
|
}
|
|
22610
22603
|
var vU = 5;
|
|
@@ -22637,7 +22630,7 @@ function yU({ duration: e = Ue.duration, bounce: t = Ue.bounce, velocity: r = Ue
|
|
|
22637
22630
|
let i, o;
|
|
22638
22631
|
_c(e <= Vt(Ue.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
22639
22632
|
let a = 1 - t;
|
|
22640
|
-
a = Br(Ue.minDamping, Ue.maxDamping, a), e = Br(Ue.minDuration, Ue.maxDuration,
|
|
22633
|
+
a = Br(Ue.minDamping, Ue.maxDamping, a), e = Br(Ue.minDuration, Ue.maxDuration, Kt(e)), a < 1 ? (i = (c) => {
|
|
22641
22634
|
const u = c * a, d = u * e, h = u - r, f = Wd(c, a), m = Math.exp(-d);
|
|
22642
22635
|
return oy - h / f * m;
|
|
22643
22636
|
}, o = (c) => {
|
|
@@ -22715,8 +22708,8 @@ function ja(e = Ue.visualDuration, t = Ue.bounce) {
|
|
|
22715
22708
|
value: o
|
|
22716
22709
|
}, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: f } = SU({
|
|
22717
22710
|
...r,
|
|
22718
|
-
velocity: -
|
|
22719
|
-
}), m = h || 0, g = c / (2 * Math.sqrt(l * u)), p = a - o, y =
|
|
22711
|
+
velocity: -Kt(r.velocity || 0)
|
|
22712
|
+
}), m = h || 0, g = c / (2 * Math.sqrt(l * u)), p = a - o, y = Kt(Math.sqrt(l / u)), x = Math.abs(p) < 5;
|
|
22720
22713
|
n || (n = x ? Ue.restSpeed.granular : Ue.restSpeed.default), i || (i = x ? Ue.restDelta.granular : Ue.restDelta.default);
|
|
22721
22714
|
let A;
|
|
22722
22715
|
if (g < 1) {
|
|
@@ -22795,7 +22788,7 @@ function TU(e, t, r) {
|
|
|
22795
22788
|
const n = [], i = r || en.mix || AS, o = e.length - 1;
|
|
22796
22789
|
for (let a = 0; a < o; a++) {
|
|
22797
22790
|
let s = i(e[a], e[a + 1]);
|
|
22798
|
-
t && (s = ds(Array.isArray(t) ? t[a] ||
|
|
22791
|
+
t && (s = ds(Array.isArray(t) ? t[a] || Xt : t, s)), n.push(s);
|
|
22799
22792
|
}
|
|
22800
22793
|
return n;
|
|
22801
22794
|
}
|
|
@@ -22932,14 +22925,14 @@ var lm = class {
|
|
|
22932
22925
|
return this.finished.then(e, t);
|
|
22933
22926
|
}
|
|
22934
22927
|
get duration() {
|
|
22935
|
-
return
|
|
22928
|
+
return Kt(this.calculatedDuration);
|
|
22936
22929
|
}
|
|
22937
22930
|
get iterationDuration() {
|
|
22938
22931
|
const { delay: e = 0 } = this.options || {};
|
|
22939
|
-
return this.duration +
|
|
22932
|
+
return this.duration + Kt(e);
|
|
22940
22933
|
}
|
|
22941
22934
|
get time() {
|
|
22942
|
-
return
|
|
22935
|
+
return Kt(this.currentTime);
|
|
22943
22936
|
}
|
|
22944
22937
|
set time(e) {
|
|
22945
22938
|
e = Vt(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver?.start(!1);
|
|
@@ -22950,7 +22943,7 @@ var lm = class {
|
|
|
22950
22943
|
set speed(e) {
|
|
22951
22944
|
this.updateTime(St.now());
|
|
22952
22945
|
const t = this.playbackSpeed !== e;
|
|
22953
|
-
this.playbackSpeed = e, t && (this.time =
|
|
22946
|
+
this.playbackSpeed = e, t && (this.time = Kt(this.currentTime));
|
|
22954
22947
|
}
|
|
22955
22948
|
play() {
|
|
22956
22949
|
if (this.isStopped) return;
|
|
@@ -23267,14 +23260,14 @@ var OS = class extends lm {
|
|
|
23267
23260
|
}
|
|
23268
23261
|
get duration() {
|
|
23269
23262
|
const e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
23270
|
-
return
|
|
23263
|
+
return Kt(Number(e));
|
|
23271
23264
|
}
|
|
23272
23265
|
get iterationDuration() {
|
|
23273
23266
|
const { delay: e = 0 } = this.options || {};
|
|
23274
|
-
return this.duration +
|
|
23267
|
+
return this.duration + Kt(e);
|
|
23275
23268
|
}
|
|
23276
23269
|
get time() {
|
|
23277
|
-
return
|
|
23270
|
+
return Kt(Number(this.animation.currentTime) || 0);
|
|
23278
23271
|
}
|
|
23279
23272
|
set time(e) {
|
|
23280
23273
|
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = Vt(e);
|
|
@@ -23295,7 +23288,7 @@ var OS = class extends lm {
|
|
|
23295
23288
|
this.manualStartTime = this.animation.startTime = e;
|
|
23296
23289
|
}
|
|
23297
23290
|
attachTimeline({ timeline: e, observe: t }) {
|
|
23298
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && GU() ? (this.animation.timeline = e,
|
|
23291
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && GU() ? (this.animation.timeline = e, Xt) : t(this);
|
|
23299
23292
|
}
|
|
23300
23293
|
}, BS = {
|
|
23301
23294
|
anticipate: aS,
|
|
@@ -23387,7 +23380,7 @@ var ZU = 40, ej = class extends lm {
|
|
|
23387
23380
|
}) : new cm(u);
|
|
23388
23381
|
f.finished.then(() => {
|
|
23389
23382
|
this.notifyFinished();
|
|
23390
|
-
}).catch(
|
|
23383
|
+
}).catch(Xt), this.pendingTimeline && (this.stopTimeline = f.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = f;
|
|
23391
23384
|
}
|
|
23392
23385
|
get finished() {
|
|
23393
23386
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -24073,18 +24066,18 @@ var KS = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
|
|
|
24073
24066
|
function Oj(e) {
|
|
24074
24067
|
return QA(e) && "offsetHeight" in e;
|
|
24075
24068
|
}
|
|
24076
|
-
var { schedule: bm, cancel: Dle } = /* @__PURE__ */ fS(queueMicrotask, !1),
|
|
24069
|
+
var { schedule: bm, cancel: Dle } = /* @__PURE__ */ fS(queueMicrotask, !1), nr = {
|
|
24077
24070
|
x: !1,
|
|
24078
24071
|
y: !1
|
|
24079
24072
|
};
|
|
24080
24073
|
function XS() {
|
|
24081
|
-
return
|
|
24074
|
+
return nr.x || nr.y;
|
|
24082
24075
|
}
|
|
24083
24076
|
function Bj(e) {
|
|
24084
|
-
return e === "x" || e === "y" ?
|
|
24085
|
-
|
|
24086
|
-
}) :
|
|
24087
|
-
|
|
24077
|
+
return e === "x" || e === "y" ? nr[e] ? null : (nr[e] = !0, () => {
|
|
24078
|
+
nr[e] = !1;
|
|
24079
|
+
}) : nr.x || nr.y ? null : (nr.x = nr.y = !0, () => {
|
|
24080
|
+
nr.x = nr.y = !1;
|
|
24088
24081
|
});
|
|
24089
24082
|
}
|
|
24090
24083
|
function qS(e, t) {
|
|
@@ -25022,7 +25015,7 @@ function Iy() {
|
|
|
25022
25015
|
function _y(e, t) {
|
|
25023
25016
|
e.min = t.min, e.max = t.max;
|
|
25024
25017
|
}
|
|
25025
|
-
function
|
|
25018
|
+
function tr(e, t) {
|
|
25026
25019
|
_y(e.x, t.x), _y(e.y, t.y);
|
|
25027
25020
|
}
|
|
25028
25021
|
function Ly(e, t) {
|
|
@@ -25131,7 +25124,7 @@ function Hz(e, t, r, n, i, o) {
|
|
|
25131
25124
|
function Yy(e, t) {
|
|
25132
25125
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
25133
25126
|
}
|
|
25134
|
-
var Wz = /* @__PURE__ */ AT(0, 0.5, sS), Gz = /* @__PURE__ */ AT(0.5, 0.95,
|
|
25127
|
+
var Wz = /* @__PURE__ */ AT(0, 0.5, sS), Gz = /* @__PURE__ */ AT(0.5, 0.95, Xt);
|
|
25135
25128
|
function AT(e, t, r) {
|
|
25136
25129
|
return (n) => n < e ? 0 : n > t ? 1 : r(xo(e, t, n));
|
|
25137
25130
|
}
|
|
@@ -25431,16 +25424,16 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25431
25424
|
}
|
|
25432
25425
|
removeElementScroll(a) {
|
|
25433
25426
|
const s = Ze();
|
|
25434
|
-
if (
|
|
25427
|
+
if (tr(s, a), this.scroll?.wasRoot) return s;
|
|
25435
25428
|
for (let l = 0; l < this.path.length; l++) {
|
|
25436
25429
|
const c = this.path[l], { scroll: u, options: d } = c;
|
|
25437
|
-
c !== this.root && u && d.layoutScroll && (u.wasRoot &&
|
|
25430
|
+
c !== this.root && u && d.layoutScroll && (u.wasRoot && tr(s, a), Ki(s.x, u.offset.x), Ki(s.y, u.offset.y));
|
|
25438
25431
|
}
|
|
25439
25432
|
return s;
|
|
25440
25433
|
}
|
|
25441
25434
|
applyTransform(a, s = !1) {
|
|
25442
25435
|
const l = Ze();
|
|
25443
|
-
|
|
25436
|
+
tr(l, a);
|
|
25444
25437
|
for (let c = 0; c < this.path.length; c++) {
|
|
25445
25438
|
const u = this.path[c];
|
|
25446
25439
|
!s && u.options.layoutScroll && u.scroll && u !== u.root && Xi(l, {
|
|
@@ -25452,13 +25445,13 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25452
25445
|
}
|
|
25453
25446
|
removeTransform(a) {
|
|
25454
25447
|
const s = Ze();
|
|
25455
|
-
|
|
25448
|
+
tr(s, a);
|
|
25456
25449
|
for (let l = 0; l < this.path.length; l++) {
|
|
25457
25450
|
const c = this.path[l];
|
|
25458
25451
|
if (!c.instance || !Wn(c.latestValues)) continue;
|
|
25459
25452
|
rh(c.latestValues) && c.updateSnapshot();
|
|
25460
25453
|
const u = Ze();
|
|
25461
|
-
|
|
25454
|
+
tr(u, c.measurePageBox()), Vy(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
25462
25455
|
}
|
|
25463
25456
|
return Wn(this.latestValues) && Vy(s, this.latestValues), s;
|
|
25464
25457
|
}
|
|
@@ -25487,7 +25480,7 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25487
25480
|
if (!this.layout || !(c || u)) return;
|
|
25488
25481
|
this.resolvedRelativeTargetAt = ht.timestamp;
|
|
25489
25482
|
const d = this.getClosestProjectingParent();
|
|
25490
|
-
d && this.linkedParentVersion !== d.layoutVersion && !d.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (d && d.layout ? this.createRelativeTarget(d, this.layout.layoutBox, d.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Ze(), this.targetWithTransforms = Ze()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Lz(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) :
|
|
25483
|
+
d && this.linkedParentVersion !== d.layoutVersion && !d.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (d && d.layout ? this.createRelativeTarget(d, this.layout.layoutBox, d.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Ze(), this.targetWithTransforms = Ze()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Lz(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : tr(this.target, this.layout.layoutBox), sT(this.target, this.targetDelta)) : tr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? this.createRelativeTarget(d, this.target, d.target) : this.relativeParent = this.relativeTarget = void 0), Mr.value && Gn.calculatedTargetDeltas++);
|
|
25491
25484
|
}
|
|
25492
25485
|
getClosestProjectingParent() {
|
|
25493
25486
|
if (!(!this.parent || rh(this.parent.latestValues) || aT(this.parent.latestValues)))
|
|
@@ -25497,7 +25490,7 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25497
25490
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
25498
25491
|
}
|
|
25499
25492
|
createRelativeTarget(a, s, l) {
|
|
25500
|
-
this.relativeParent = a, this.linkedParentVersion = a.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ze(), this.relativeTargetOrigin = Ze(), Gl(this.relativeTargetOrigin, s, l),
|
|
25493
|
+
this.relativeParent = a, this.linkedParentVersion = a.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Ze(), this.relativeTargetOrigin = Ze(), Gl(this.relativeTargetOrigin, s, l), tr(this.relativeTarget, this.relativeTargetOrigin);
|
|
25501
25494
|
}
|
|
25502
25495
|
removeRelativeTarget() {
|
|
25503
25496
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -25508,7 +25501,7 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25508
25501
|
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), s && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === ht.timestamp && (l = !1), l) return;
|
|
25509
25502
|
const { layout: c, layoutId: u } = this.options;
|
|
25510
25503
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u)) return;
|
|
25511
|
-
|
|
25504
|
+
tr(this.layoutCorrected, this.layout.layoutBox);
|
|
25512
25505
|
const d = this.treeScale.x, h = this.treeScale.y;
|
|
25513
25506
|
lz(this.layoutCorrected, this.treeScale, this.path, s), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = Ze());
|
|
25514
25507
|
const { target: f } = a;
|
|
@@ -25542,7 +25535,7 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25542
25535
|
let y;
|
|
25543
25536
|
this.mixTargetDelta = (x) => {
|
|
25544
25537
|
const A = x / 1e3;
|
|
25545
|
-
Qy(d.x, a.x, A), Qy(d.y, a.y, A), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Gl(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), o$(this.relativeTarget, this.relativeTargetOrigin, h, A), y && Bz(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = Ze()),
|
|
25538
|
+
Qy(d.x, a.x, A), Qy(d.y, a.y, A), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Gl(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), o$(this.relativeTarget, this.relativeTargetOrigin, h, A), y && Bz(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = Ze()), tr(y, this.relativeTarget)), f && (this.animationValues = u, Hz(u, c, this.latestValues, A, p, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
|
|
25546
25539
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
25547
25540
|
}
|
|
25548
25541
|
startAnimation(a) {
|
|
@@ -25582,7 +25575,7 @@ function MT({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
25582
25575
|
const h = Tt(this.layout.layoutBox.y);
|
|
25583
25576
|
l.y.min = a.target.y.min, l.y.max = l.y.min + h;
|
|
25584
25577
|
}
|
|
25585
|
-
|
|
25578
|
+
tr(s, l), Xi(s, u), ga(this.projectionDeltaWithTransform, this.layoutCorrected, s, u);
|
|
25586
25579
|
}
|
|
25587
25580
|
}
|
|
25588
25581
|
registerSharedNode(a, s) {
|
|
@@ -25773,7 +25766,7 @@ var s$ = {
|
|
|
25773
25766
|
0.1,
|
|
25774
25767
|
1
|
|
25775
25768
|
]
|
|
25776
|
-
}, Zy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), e0 = Zy("applewebkit/") && !Zy("chrome/") ? Math.round :
|
|
25769
|
+
}, Zy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), e0 = Zy("applewebkit/") && !Zy("chrome/") ? Math.round : Xt;
|
|
25777
25770
|
function t0(e) {
|
|
25778
25771
|
e.min = e0(e.min), e.max = e0(e.max);
|
|
25779
25772
|
}
|
|
@@ -26393,7 +26386,7 @@ function K$(e, t) {
|
|
|
26393
26386
|
y: 0
|
|
26394
26387
|
};
|
|
26395
26388
|
n === e[0] && e.length > 2 && i.timestamp - n.timestamp > Vt(t) * 2 && (n = e[1]);
|
|
26396
|
-
const o =
|
|
26389
|
+
const o = Kt(i.timestamp - n.timestamp);
|
|
26397
26390
|
if (o === 0) return {
|
|
26398
26391
|
x: 0,
|
|
26399
26392
|
y: 0
|
|
@@ -26697,11 +26690,11 @@ function iY(e, t = 10) {
|
|
|
26697
26690
|
}
|
|
26698
26691
|
var oY = class extends Pn {
|
|
26699
26692
|
constructor(e) {
|
|
26700
|
-
super(e), this.removeGroupControls =
|
|
26693
|
+
super(e), this.removeGroupControls = Xt, this.removeListeners = Xt, this.controls = new rY(e);
|
|
26701
26694
|
}
|
|
26702
26695
|
mount() {
|
|
26703
26696
|
const { dragControls: e } = this.node.getProps();
|
|
26704
|
-
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
26697
|
+
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Xt;
|
|
26705
26698
|
}
|
|
26706
26699
|
update() {
|
|
26707
26700
|
const { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
|
|
@@ -26714,7 +26707,7 @@ var oY = class extends Pn {
|
|
|
26714
26707
|
e && Re.update(() => e(t, r), !1, !0);
|
|
26715
26708
|
}, aY = class extends Pn {
|
|
26716
26709
|
constructor() {
|
|
26717
|
-
super(...arguments), this.removePointerDownListener =
|
|
26710
|
+
super(...arguments), this.removePointerDownListener = Xt;
|
|
26718
26711
|
}
|
|
26719
26712
|
onPointerDown(e) {
|
|
26720
26713
|
this.session = new BT(e, this.createPanHandlers(), {
|
|
@@ -28535,7 +28528,7 @@ var kK = "cartesian-bar.hover_border__9720w50", KT = (e, t, r) => {
|
|
|
28535
28528
|
function WK(e, t) {
|
|
28536
28529
|
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : C0(e) && C0(t) ? P0(e) && P0(t) ? R0(e, t) : HK(e, t) : R0({ entries: () => Object.entries(e) }, { entries: () => Object.entries(t) });
|
|
28537
28530
|
}
|
|
28538
|
-
function
|
|
28531
|
+
function Qt(e) {
|
|
28539
28532
|
const t = Jo.useRef(void 0);
|
|
28540
28533
|
return (r) => {
|
|
28541
28534
|
const n = e(r);
|
|
@@ -28718,7 +28711,7 @@ var D = {
|
|
|
28718
28711
|
headingSm: 1.8,
|
|
28719
28712
|
headingMd: 2.2,
|
|
28720
28713
|
headingLg: 2.8
|
|
28721
|
-
},
|
|
28714
|
+
}, ir = {
|
|
28722
28715
|
xxs: 1,
|
|
28723
28716
|
xs: 1,
|
|
28724
28717
|
sm: 1.3,
|
|
@@ -28751,21 +28744,21 @@ var D = {
|
|
|
28751
28744
|
fontSizeMd: Ar(wr.md),
|
|
28752
28745
|
fontSizeLg: Ar(wr.lg),
|
|
28753
28746
|
fontSizeXl: Ar(wr.xl),
|
|
28754
|
-
fontLineHeightXxs:
|
|
28755
|
-
fontLineHeightXs:
|
|
28756
|
-
fontLineHeightSm:
|
|
28757
|
-
fontLineHeightMd:
|
|
28758
|
-
fontLineHeightLg:
|
|
28759
|
-
fontLineHeightXl:
|
|
28747
|
+
fontLineHeightXxs: ir.xxs.toString(),
|
|
28748
|
+
fontLineHeightXs: ir.xs.toString(),
|
|
28749
|
+
fontLineHeightSm: ir.sm.toString(),
|
|
28750
|
+
fontLineHeightMd: ir.md.toString(),
|
|
28751
|
+
fontLineHeightLg: ir.lg.toString(),
|
|
28752
|
+
fontLineHeightXl: ir.xl.toString()
|
|
28760
28753
|
}, JT = {
|
|
28761
28754
|
fontSizeEditorBody: Ar(wr.editorBody),
|
|
28762
28755
|
fontSizeHeadingSm: Ar(wr.headingSm),
|
|
28763
28756
|
fontSizeHeadingMd: Ar(wr.headingMd),
|
|
28764
28757
|
fontSizeHeadingLg: Ar(wr.headingLg),
|
|
28765
|
-
fontLineHeightEditorBody:
|
|
28766
|
-
fontLineHeightHeadingSm:
|
|
28767
|
-
fontLineHeightHeadingMd:
|
|
28768
|
-
fontLineHeightHeadingLg:
|
|
28758
|
+
fontLineHeightEditorBody: ir.editorBody.toString(),
|
|
28759
|
+
fontLineHeightHeadingSm: ir.headingSm.toString(),
|
|
28760
|
+
fontLineHeightHeadingMd: ir.headingMd.toString(),
|
|
28761
|
+
fontLineHeightHeadingLg: ir.headingLg.toString()
|
|
28769
28762
|
}, ye = (e, t, r, n = D.fontFamily) => `${e} ${t}/${r} ${n}`, zK = ({ weight: e, size: t, lineHeight: r }) => ye(D[e], D[t], D[r]), ZT = {
|
|
28770
28763
|
fontLegendLabel: zK(Vc.fontLegendLabel),
|
|
28771
28764
|
fontUITooltip: ye(D.fontWeightMedium, D.fontSizeMd, D.fontLineHeightMd),
|
|
@@ -28798,7 +28791,7 @@ var D = {
|
|
|
28798
28791
|
fontEditorControlValue: ye(D.fontWeightMedium, D.fontSizeSm, D.fontLineHeightSm),
|
|
28799
28792
|
fontEditorSectionTitle: ye(D.fontWeightSemibold, D.fontSizeSm, D.fontLineHeightSm),
|
|
28800
28793
|
fontEditorCaption: ye(D.fontWeightMedium, D.fontSizeXxs, D.fontLineHeightXxs)
|
|
28801
|
-
}, $K =
|
|
28794
|
+
}, $K = ir.sm, YK = /^(\d*\.?\d+)(px|em)$/, eM = /^\d*\.?\d+$/, KK = 1, XK = 1e3, qK = {
|
|
28802
28795
|
normal: 400,
|
|
28803
28796
|
bold: 700
|
|
28804
28797
|
}, QK = (e) => {
|
|
@@ -29465,7 +29458,7 @@ var WX = "swatch_root__1uv26hu0", GX = 2, UX = 12, jX = 12, _0 = 1, L0 = 2, zX =
|
|
|
29465
29458
|
vectorEffect: "non-scaling-stroke"
|
|
29466
29459
|
});
|
|
29467
29460
|
}, ZX = fr(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: i, panelWidth: o }) {
|
|
29468
|
-
const a = Si(), s = sn(), { guides: l, numberFormat: c, layers: u, colorScale: d } = he(
|
|
29461
|
+
const a = Si(), s = sn(), { guides: l, numberFormat: c, layers: u, colorScale: d } = he(Qt((L) => ({
|
|
29469
29462
|
guides: L.guides,
|
|
29470
29463
|
numberFormat: L.config.numberFormat,
|
|
29471
29464
|
layers: L.spec.layers,
|
|
@@ -29484,7 +29477,7 @@ var WX = "swatch_root__1uv26hu0", GX = 2, UX = 12, jX = 12, _0 = 1, L0 = 2, zX =
|
|
|
29484
29477
|
c,
|
|
29485
29478
|
n,
|
|
29486
29479
|
t
|
|
29487
|
-
]), { fonts: g } = No(), p = pX(t.id), y = W(() =>
|
|
29480
|
+
]), { fonts: g } = No(), p = pX(t.id), y = W(() => qt(p, g.familyDefault), [p, g.familyDefault]), x = W(() => m === null ? null : vf(m, OX(o, f !== null), (L) => a.measureText(L, y).width), [
|
|
29488
29481
|
m,
|
|
29489
29482
|
o,
|
|
29490
29483
|
f,
|
|
@@ -29496,7 +29489,7 @@ var WX = "swatch_root__1uv26hu0", GX = 2, UX = 12, jX = 12, _0 = 1, L0 = 2, zX =
|
|
|
29496
29489
|
a
|
|
29497
29490
|
]), M = Fe(t), R = t.data.getFirst();
|
|
29498
29491
|
if (!R) return null;
|
|
29499
|
-
const w = M.get("color", R), O = Sh(w), b = IX(t, r), S = b ? Se(R) : Te(R);
|
|
29492
|
+
const w = M.get("color", R), O = p.textColor ?? Sh(w), b = IX(t, r), S = b ? Se(R) : Te(R);
|
|
29500
29493
|
return S === null ? null : /* @__PURE__ */ Y("g", {
|
|
29501
29494
|
"data-geom": "rule",
|
|
29502
29495
|
className: EX,
|
|
@@ -30794,7 +30787,7 @@ var Uq = () => {
|
|
|
30794
30787
|
i.update(r);
|
|
30795
30788
|
}, [i, r]), i;
|
|
30796
30789
|
}, RM = Je(null), $q = ({ children: e }) => {
|
|
30797
|
-
const { layers: t, coordSystem: r } = he(
|
|
30790
|
+
const { layers: t, coordSystem: r } = he(Qt((s) => ({
|
|
30798
30791
|
layers: s.layers,
|
|
30799
30792
|
coordSystem: s.coordSystem
|
|
30800
30793
|
}))), n = zq(t, r), [i] = Pe(() => Uq()), o = ge(null), a = ge(null);
|
|
@@ -33588,13 +33581,13 @@ ${i.stack}` : ""}`), j(this, "code", void 0), this.code = t, typeof Error.captur
|
|
|
33588
33581
|
constructor(e, t) {
|
|
33589
33582
|
super(ps.MISSING_DATA, e, t);
|
|
33590
33583
|
}
|
|
33591
|
-
},
|
|
33584
|
+
}, Jt = class extends vs {
|
|
33592
33585
|
constructor(e, t, r) {
|
|
33593
33586
|
super(ps.FORMAT_ERROR, `${e}
|
|
33594
33587
|
Locale: ${t}
|
|
33595
33588
|
`, r), j(this, "descriptor", void 0), j(this, "locale", void 0), this.locale = t;
|
|
33596
33589
|
}
|
|
33597
|
-
}, Yu = class extends
|
|
33590
|
+
}, Yu = class extends Jt {
|
|
33598
33591
|
constructor(e, t, r, n) {
|
|
33599
33592
|
super(`${e}
|
|
33600
33593
|
MessageID: ${r?.id}
|
|
@@ -33787,7 +33780,7 @@ function yJ(e, t, r, n = {}) {
|
|
|
33787
33780
|
try {
|
|
33788
33781
|
return ys(e, "date", t, n).format(i);
|
|
33789
33782
|
} catch (o) {
|
|
33790
|
-
e.onError(new
|
|
33783
|
+
e.onError(new Jt("Error formatting date.", e.locale, o));
|
|
33791
33784
|
}
|
|
33792
33785
|
return String(i);
|
|
33793
33786
|
}
|
|
@@ -33796,7 +33789,7 @@ function bJ(e, t, r, n = {}) {
|
|
|
33796
33789
|
try {
|
|
33797
33790
|
return ys(e, "time", t, n).format(i);
|
|
33798
33791
|
} catch (o) {
|
|
33799
|
-
e.onError(new
|
|
33792
|
+
e.onError(new Jt("Error formatting time.", e.locale, o));
|
|
33800
33793
|
}
|
|
33801
33794
|
return String(i);
|
|
33802
33795
|
}
|
|
@@ -33805,7 +33798,7 @@ function xJ(e, t, r, n, i = {}) {
|
|
|
33805
33798
|
try {
|
|
33806
33799
|
return ys(e, "dateTimeRange", t, i).formatRange(o, a);
|
|
33807
33800
|
} catch (s) {
|
|
33808
|
-
e.onError(new
|
|
33801
|
+
e.onError(new Jt("Error formatting date time range.", e.locale, s));
|
|
33809
33802
|
}
|
|
33810
33803
|
return String(o);
|
|
33811
33804
|
}
|
|
@@ -33814,7 +33807,7 @@ function wJ(e, t, r, n = {}) {
|
|
|
33814
33807
|
try {
|
|
33815
33808
|
return ys(e, "date", t, n).formatToParts(i);
|
|
33816
33809
|
} catch (o) {
|
|
33817
|
-
e.onError(new
|
|
33810
|
+
e.onError(new Jt("Error formatting date.", e.locale, o));
|
|
33818
33811
|
}
|
|
33819
33812
|
return [];
|
|
33820
33813
|
}
|
|
@@ -33823,7 +33816,7 @@ function AJ(e, t, r, n = {}) {
|
|
|
33823
33816
|
try {
|
|
33824
33817
|
return ys(e, "time", t, n).formatToParts(i);
|
|
33825
33818
|
} catch (o) {
|
|
33826
|
-
e.onError(new
|
|
33819
|
+
e.onError(new Jt("Error formatting time.", e.locale, o));
|
|
33827
33820
|
}
|
|
33828
33821
|
return [];
|
|
33829
33822
|
}
|
|
@@ -33841,7 +33834,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
|
|
|
33841
33834
|
try {
|
|
33842
33835
|
return r(e, o).of(n);
|
|
33843
33836
|
} catch (a) {
|
|
33844
|
-
t(new
|
|
33837
|
+
t(new Jt("Error formatting display name.", e, a));
|
|
33845
33838
|
}
|
|
33846
33839
|
}
|
|
33847
33840
|
var MJ = ["type", "style"], q0 = Date.now();
|
|
@@ -33873,7 +33866,7 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
|
33873
33866
|
value: a[l.value] || l.value
|
|
33874
33867
|
});
|
|
33875
33868
|
} catch (a) {
|
|
33876
|
-
t(new
|
|
33869
|
+
t(new Jt("Error formatting list.", e, a));
|
|
33877
33870
|
}
|
|
33878
33871
|
return n;
|
|
33879
33872
|
}
|
|
@@ -33886,7 +33879,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
33886
33879
|
try {
|
|
33887
33880
|
return r(e, o).select(n);
|
|
33888
33881
|
} catch (a) {
|
|
33889
|
-
t(new
|
|
33882
|
+
t(new Jt("Error formatting plural.", e, a));
|
|
33890
33883
|
}
|
|
33891
33884
|
return "other";
|
|
33892
33885
|
}
|
|
@@ -33902,7 +33895,7 @@ Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
|
33902
33895
|
try {
|
|
33903
33896
|
return IJ(e, t, i).format(r, n);
|
|
33904
33897
|
} catch (o) {
|
|
33905
|
-
e.onError(new
|
|
33898
|
+
e.onError(new Jt("Error formatting relative time.", e.locale, o));
|
|
33906
33899
|
}
|
|
33907
33900
|
return String(r);
|
|
33908
33901
|
}
|
|
@@ -33938,7 +33931,7 @@ function DJ(e, t, r, n = {}) {
|
|
|
33938
33931
|
try {
|
|
33939
33932
|
return eE(e, t, n).format(r);
|
|
33940
33933
|
} catch (i) {
|
|
33941
|
-
e.onError(new
|
|
33934
|
+
e.onError(new Jt("Error formatting number.", e.locale, i));
|
|
33942
33935
|
}
|
|
33943
33936
|
return String(r);
|
|
33944
33937
|
}
|
|
@@ -33946,7 +33939,7 @@ function NJ(e, t, r, n = {}) {
|
|
|
33946
33939
|
try {
|
|
33947
33940
|
return eE(e, t, n).formatToParts(r);
|
|
33948
33941
|
} catch (i) {
|
|
33949
|
-
e.onError(new
|
|
33942
|
+
e.onError(new Jt("Error formatting number.", e.locale, i));
|
|
33950
33943
|
}
|
|
33951
33944
|
return [];
|
|
33952
33945
|
}
|
|
@@ -35571,7 +35564,7 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35571
35564
|
boundary: [],
|
|
35572
35565
|
padding: Pee
|
|
35573
35566
|
}, Iee = () => {
|
|
35574
|
-
const e = he(
|
|
35567
|
+
const e = he(Qt((x) => ({
|
|
35575
35568
|
layers: x.layers,
|
|
35576
35569
|
coordSystem: x.coordSystem,
|
|
35577
35570
|
scales: x.scales,
|
|
@@ -35732,7 +35725,7 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35732
35725
|
coordKey: null,
|
|
35733
35726
|
introEndsAtMs: 0
|
|
35734
35727
|
}, Wm = Je(fl), Fee = ({ intro: e, children: t }) => {
|
|
35735
|
-
const { layers: r, coordSystem: n, scales: i } = he(
|
|
35728
|
+
const { layers: r, coordSystem: n, scales: i } = he(Qt((a) => ({
|
|
35736
35729
|
layers: a.layers,
|
|
35737
35730
|
coordSystem: a.coordSystem,
|
|
35738
35731
|
scales: a.scales
|
|
@@ -35817,7 +35810,7 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35817
35810
|
return t;
|
|
35818
35811
|
}, [e]);
|
|
35819
35812
|
}, Uee = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (i) => {
|
|
35820
|
-
const o = i.position === "top" || i.position === "bottom", a = Qe(i.scaleAestheticKey), { offset: s, ...l } = t[a], c = i.ticksVisible ? Math.max(s, r[a].length) : s, u =
|
|
35813
|
+
const o = i.position === "top" || i.position === "bottom", a = Qe(i.scaleAestheticKey), { offset: s, ...l } = t[a], c = i.ticksVisible ? Math.max(s, r[a].length) : s, u = qt(l, n), d = i.ticks.map((f) => e.measureText(f.formattedLabel, u)), h = i.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
|
|
35821
35814
|
if (o) {
|
|
35822
35815
|
if (i.labelRotation !== 0) {
|
|
35823
35816
|
const f = d.map((m) => m.width);
|
|
@@ -35827,13 +35820,13 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35827
35820
|
}
|
|
35828
35821
|
return db(d.map((f) => f.width), h) + c;
|
|
35829
35822
|
}, db = (e, t) => Math.min(Math.max(...e), t), jee = ({ axisLabelStyles: e }) => (t) => xn(e[Qe(t.scaleAestheticKey)]), IE = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, i, o) => {
|
|
35830
|
-
const a = t[n][i], s = e.measureText(o,
|
|
35823
|
+
const a = t[n][i], s = e.measureText(o, qt(a, r));
|
|
35831
35824
|
return {
|
|
35832
35825
|
...s,
|
|
35833
35826
|
width: s.width + a.paddingInline * 2,
|
|
35834
35827
|
height: s.height + a.paddingBlock * 2
|
|
35835
35828
|
};
|
|
35836
|
-
}, zee = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r,
|
|
35829
|
+
}, zee = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, qt(n, t)), $ee = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: i }) => (o, a) => {
|
|
35837
35830
|
const s = _E(o, i[a], e, t, r);
|
|
35838
35831
|
return {
|
|
35839
35832
|
width: LE(s.map((l) => l.width)) + Math.max(0, s.length - 1) * n,
|
|
@@ -35842,7 +35835,7 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35842
35835
|
}, Yee = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (i, o) => _E(i, n[o], e, t, r).map((a) => a.width), Kee = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, i, o = !1) => {
|
|
35843
35836
|
const a = eA(r[i], o);
|
|
35844
35837
|
return {
|
|
35845
|
-
width: e.measureText(n,
|
|
35838
|
+
width: e.measureText(n, qt(a, t)).width,
|
|
35846
35839
|
height: xn(a)
|
|
35847
35840
|
};
|
|
35848
35841
|
}, Xee = (e) => {
|
|
@@ -35861,7 +35854,7 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35861
35854
|
let i = 0, o = 0;
|
|
35862
35855
|
for (const a of e.segments) if (a.kind === "text") {
|
|
35863
35856
|
const s = Qee(t, a.textRole);
|
|
35864
|
-
i += r.measureText(a.text,
|
|
35857
|
+
i += r.measureText(a.text, qt(s, n)).width, o = Math.max(o, Jee(s));
|
|
35865
35858
|
} else
|
|
35866
35859
|
i += a.size, o = Math.max(o, a.size);
|
|
35867
35860
|
return {
|
|
@@ -35893,10 +35886,10 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35893
35886
|
if (o.display === "direct") {
|
|
35894
35887
|
const g = xn(n);
|
|
35895
35888
|
if (a) return g;
|
|
35896
|
-
const p =
|
|
35889
|
+
const p = qt(n, t), y = o.items.map((x) => e.measureText(x.formattedLabel, p).width);
|
|
35897
35890
|
return Math.max(...y);
|
|
35898
35891
|
}
|
|
35899
|
-
const { item: s, swatch: l } = r, c = xn(s), u =
|
|
35892
|
+
const { item: s, swatch: l } = r, c = xn(s), u = qt(s, t), d = 2 * (s.paddingBlock + s.borderWidth), h = 2 * (s.paddingInline + s.borderWidth), f = o.aesthetics.includes("size");
|
|
35900
35893
|
if (a) {
|
|
35901
35894
|
const g = f ? Math.max(0, ...o.items.map((p) => ec(p.visual, l.size, !0))) : l.size;
|
|
35902
35895
|
return Math.max(c, g) + d;
|
|
@@ -35906,7 +35899,7 @@ var wee = "tooltip_rows__1aumv52", Aee = "tooltip_row__1aumv53", See = "tooltip_
|
|
|
35906
35899
|
return y + (y > 0 ? i : 0) + p;
|
|
35907
35900
|
});
|
|
35908
35901
|
return Math.max(...m) + h;
|
|
35909
|
-
}, rte = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, i) => e.measureText(n,
|
|
35902
|
+
}, rte = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, i) => e.measureText(n, qt(t[i], r)), nte = Object.freeze({}), ite = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = nte }) => {
|
|
35910
35903
|
const i = kE(), o = Kc(), a = PE(), s = Gm(), l = Um(), c = RE(), u = Ve(), d = ge(n);
|
|
35911
35904
|
return d.current = n, W(() => {
|
|
35912
35905
|
if (!e) return null;
|
|
@@ -36127,7 +36120,7 @@ var FE = Je(null), Ite = ({ panelRect: e, children: t }) => {
|
|
|
36127
36120
|
start: r(e.start),
|
|
36128
36121
|
end: r(e.end)
|
|
36129
36122
|
}) ?? t.color, Lte = (e) => {
|
|
36130
|
-
const { formattingLocale: t } = dt(), r = Si(), { fonts: n } = No(), i = gn((p) => wa(p, "difference-arrow-endpoint-drag")), o = zA(), a = CE(), { differenceArrows: s, mainAxis: l, parsingLocale: c } = he(
|
|
36123
|
+
const { formattingLocale: t } = dt(), r = Si(), { fonts: n } = No(), i = gn((p) => wa(p, "difference-arrow-endpoint-drag")), o = zA(), a = CE(), { differenceArrows: s, mainAxis: l, parsingLocale: c } = he(Qt((p) => ({
|
|
36131
36124
|
differenceArrows: p.annotations.differenceArrows,
|
|
36132
36125
|
mainAxis: p.coordSystem.type === "cartesian" ? p.coordSystem.mainAxis : "x",
|
|
36133
36126
|
parsingLocale: p.config.parsingLocale
|
|
@@ -36199,7 +36192,7 @@ var FE = Je(null), Ite = ({ panelRect: e, children: t }) => {
|
|
|
36199
36192
|
}, Dte = (e, t) => {
|
|
36200
36193
|
const r = /* @__PURE__ */ new Map();
|
|
36201
36194
|
return (n, i) => {
|
|
36202
|
-
const o =
|
|
36195
|
+
const o = qt(i, t), a = `${o.family}|${o.size}|${o.weight}|${n}`, s = r.get(a);
|
|
36203
36196
|
if (s !== void 0) return s;
|
|
36204
36197
|
const { width: l } = e.measureText(n, o);
|
|
36205
36198
|
return r.set(a, l), l;
|
|
@@ -36743,7 +36736,7 @@ var tne = "pill-content_bubble__1rqnt0m0", Zu = "\0", rne = (e, t) => {
|
|
|
36743
36736
|
visibleCount: d.length,
|
|
36744
36737
|
hasOverflow: !1
|
|
36745
36738
|
};
|
|
36746
|
-
const M =
|
|
36739
|
+
const M = qt(l.item, a.fonts.familyDefault), R = xn(l.item), w = 2 * (l.item.paddingInline + l.item.borderWidth), O = 2 * (l.item.paddingBlock + l.item.borderWidth), b = (T) => h ? gne(T, R, l.swatch.size, O) : gb({
|
|
36747
36740
|
label: T.formattedLabel,
|
|
36748
36741
|
swatchInlineSize: pne(T, l.swatch.size),
|
|
36749
36742
|
textMeasurer: o,
|
|
@@ -36880,7 +36873,7 @@ var tne = "pill-content_bubble__1rqnt0m0", Zu = "\0", rne = (e, t) => {
|
|
|
36880
36873
|
const o = n(i.geom, r.type);
|
|
36881
36874
|
return o ? o.guideMode ?? null : null;
|
|
36882
36875
|
}, zE = 1, $E = "4 3", Sne = ({ panelRect: e }) => {
|
|
36883
|
-
const { coordSystem: t, layers: r, scales: n } = he(
|
|
36876
|
+
const { coordSystem: t, layers: r, scales: n } = he(Qt((l) => ({
|
|
36884
36877
|
coordSystem: l.coordSystem,
|
|
36885
36878
|
layers: l.layers,
|
|
36886
36879
|
scales: l.scales
|
|
@@ -37562,7 +37555,7 @@ var wie = "callouts_miniText__1rlvxtx2", bb = {
|
|
|
37562
37555
|
});
|
|
37563
37556
|
};
|
|
37564
37557
|
function Sie(e) {
|
|
37565
|
-
const t = Si(), { formattingLocale: r } = dt(), n = XE(), i = he(
|
|
37558
|
+
const t = Si(), { formattingLocale: r } = dt(), n = XE(), i = he(Qt((l) => ({
|
|
37566
37559
|
pinnedNumbers: l.annotations.pinnedNumbers,
|
|
37567
37560
|
comments: l.annotations.comments,
|
|
37568
37561
|
coordSystem: l.coordSystem,
|
|
@@ -37600,7 +37593,7 @@ function Sie(e) {
|
|
|
37600
37593
|
]);
|
|
37601
37594
|
}
|
|
37602
37595
|
var Tie = (e, t, r, n) => t !== "comment" ? r : vf(r, 140, (i) => e.measureText(i, n).width), xb = "callouts", Mie = ({ panelRect: e }) => {
|
|
37603
|
-
const { pinnedNumbers: t, comments: r } = he(
|
|
37596
|
+
const { pinnedNumbers: t, comments: r } = he(Qt((f) => ({
|
|
37604
37597
|
pinnedNumbers: f.annotations.pinnedNumbers,
|
|
37605
37598
|
comments: f.annotations.comments
|
|
37606
37599
|
}))), n = he((f) => f.coordSystem), i = sn(), o = zA(), a = XE(), s = Sie(e), { store: l } = Ti(), c = W(() => {
|
|
@@ -37797,7 +37790,7 @@ var Bie = "data-labels_label__15wb5l32", QE = ({ x: e, y: t, width: r, height: n
|
|
|
37797
37790
|
if (r !== void 0)
|
|
37798
37791
|
return Lb(t ? e.background : void 0, r);
|
|
37799
37792
|
}, Hie = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", Wie = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
37800
|
-
const i = Si(), o = No(), a = he(
|
|
37793
|
+
const i = Si(), o = No(), a = he(Qt((h) => ({
|
|
37801
37794
|
layers: h.layers,
|
|
37802
37795
|
coordSystem: h.coordSystem,
|
|
37803
37796
|
axes: h.guides.axes,
|
|
@@ -38296,7 +38289,7 @@ var coe = 4, uoe = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
|
|
|
38296
38289
|
}, doe = ({ observation: e, anchor: t, panelRect: r, fill: n, dotRadius: i, readSegmentY: o, formatYValue: a, labelStyle: s, familyDefault: l }) => {
|
|
38297
38290
|
const c = Si(), u = t.x, d = sr(t.y), h = o(e), f = U(h) ? a(h, e) : null, m = W(() => {
|
|
38298
38291
|
if (f === null) return null;
|
|
38299
|
-
const g = c.measureText(f,
|
|
38292
|
+
const g = c.measureText(f, qt(s, l));
|
|
38300
38293
|
return {
|
|
38301
38294
|
width: g.width + s.paddingInline * 2,
|
|
38302
38295
|
height: g.height + s.paddingBlock * 2
|
|
@@ -38328,7 +38321,7 @@ var coe = 4, uoe = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
|
|
|
38328
38321
|
const r = e[ke.group];
|
|
38329
38322
|
return `${String(r ?? "")}\0${t}`;
|
|
38330
38323
|
}, foe = ({ layer: e, coordSystem: t, panelRect: r }) => {
|
|
38331
|
-
const { primary: n, group: i, related: o } = xa(
|
|
38324
|
+
const { primary: n, group: i, related: o } = xa(Qt((d) => ({
|
|
38332
38325
|
primary: d.hover.primary,
|
|
38333
38326
|
group: d.hover.group,
|
|
38334
38327
|
related: d.hover.related
|
|
@@ -38366,7 +38359,7 @@ var coe = 4, uoe = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
|
|
|
38366
38359
|
};
|
|
38367
38360
|
}, [e, t]);
|
|
38368
38361
|
}, goe = "var(--hoverDimOpacity__1rzsuvz0)", poe = "var(--hoverDimFilter__1rzsuvz1)", voe = "geom-layers.renderer_svg__1rzsuvz2", yoe = "geom-layers.renderer_geomGroup__1rzsuvz3", boe = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
38369
|
-
const { layers: n, coordSystem: i } = he(
|
|
38362
|
+
const { layers: n, coordSystem: i } = he(Qt((o) => ({
|
|
38370
38363
|
layers: o.layers,
|
|
38371
38364
|
coordSystem: o.coordSystem
|
|
38372
38365
|
})));
|
|
@@ -38685,7 +38678,7 @@ var coe = 4, uoe = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
|
|
|
38685
38678
|
})
|
|
38686
38679
|
})
|
|
38687
38680
|
}) }) }), Noe = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: i = "readonly" }) => {
|
|
38688
|
-
const o = oE(), { axes: a, legends: s, layers: l, numberFormat: c, parsingLocale: u, appearance: d, annotations: h, coordSystem: f, headline: m, headlineConfig: g, content: p, overflowStrategy: y, layoutConfig: x } = he(
|
|
38681
|
+
const o = oE(), { axes: a, legends: s, layers: l, numberFormat: c, parsingLocale: u, appearance: d, annotations: h, coordSystem: f, headline: m, headlineConfig: g, content: p, overflowStrategy: y, layoutConfig: x } = he(Qt((Ie) => ({
|
|
38689
38682
|
axes: Ie.guides.axes,
|
|
38690
38683
|
legends: Ie.guides.legends.drawn,
|
|
38691
38684
|
layers: Ie.layers,
|