vue-chrts 0.0.39 → 0.0.40
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/vue-chrts.js +125 -128
- package/dist/vue-chrts.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/vue-chrts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as mc, computed as
|
|
1
|
+
import { getCurrentInstance as mc, computed as Me, camelize as vo, defineComponent as At, toRefs as _c, ref as Dt, reactive as yc, createElementBlock as Z, watch as mt, watchEffect as xc, toRaw as Ei, onMounted as oe, onUnmounted as se, provide as Oe, openBlock as X, renderSlot as Qs, inject as on, nextTick as Ae, Fragment as Pn, renderList as Js, createElementVNode as dn, toDisplayString as mo, createCommentVNode as wn, normalizeStyle as bc, resolveComponent as wc, normalizeClass as Ks, createVNode as Vt, unref as Q, withCtx as _o, createBlock as yo, mergeProps as kc, createApp as Tc } from "vue";
|
|
2
2
|
var Gi = "http://www.w3.org/1999/xhtml";
|
|
3
3
|
const xo = {
|
|
4
4
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -294,9 +294,9 @@ function vu(t, e, n) {
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
function mu(t, e, n) {
|
|
297
|
-
return arguments.length > 1 ? this.each((e == null ? pu : typeof e == "function" ? vu : gu)(t, e, n ?? "")) :
|
|
297
|
+
return arguments.length > 1 ? this.each((e == null ? pu : typeof e == "function" ? vu : gu)(t, e, n ?? "")) : xe(this.node(), t);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function xe(t, e) {
|
|
300
300
|
return t.style.getPropertyValue(e) || oa(t).getComputedStyle(t, null).getPropertyValue(e);
|
|
301
301
|
}
|
|
302
302
|
function _u(t) {
|
|
@@ -596,10 +596,10 @@ var Ye;
|
|
|
596
596
|
(function(t) {
|
|
597
597
|
t[t.SVG = 0] = "SVG", t[t.HTML = 1] = "HTML";
|
|
598
598
|
})(Ye || (Ye = {}));
|
|
599
|
-
var
|
|
599
|
+
var be;
|
|
600
600
|
(function(t) {
|
|
601
601
|
t.Fit = "fit", t.Extend = "extend", t.FitWidth = "fit_width";
|
|
602
|
-
})(
|
|
602
|
+
})(be || (be = {}));
|
|
603
603
|
function Ve(t, e) {
|
|
604
604
|
return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
605
605
|
}
|
|
@@ -1005,12 +1005,12 @@ var Zt = function(t) {
|
|
|
1005
1005
|
return !1;
|
|
1006
1006
|
}, Xe = typeof window < "u" ? window : {}, pn = /* @__PURE__ */ new WeakMap(), Ao = /auto|scroll/, Dh = /^tb|vertical/, Rh = /msie|trident/i.test(Xe.navigator && Xe.navigator.userAgent), bt = function(t) {
|
|
1007
1007
|
return parseFloat(t || "0");
|
|
1008
|
-
},
|
|
1008
|
+
}, ve = function(t, e, n) {
|
|
1009
1009
|
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new Nh((n ? e : t) || 0, (n ? t : e) || 0);
|
|
1010
1010
|
}, $o = Zt({
|
|
1011
|
-
devicePixelContentBoxSize:
|
|
1012
|
-
borderBoxSize:
|
|
1013
|
-
contentBoxSize:
|
|
1011
|
+
devicePixelContentBoxSize: ve(),
|
|
1012
|
+
borderBoxSize: ve(),
|
|
1013
|
+
contentBoxSize: ve(),
|
|
1014
1014
|
contentRect: new pa(0, 0, 0, 0)
|
|
1015
1015
|
}), va = function(t, e) {
|
|
1016
1016
|
if (e === void 0 && (e = !1), pn.has(t) && !e)
|
|
@@ -1018,9 +1018,9 @@ var Zt = function(t) {
|
|
|
1018
1018
|
if (ga(t))
|
|
1019
1019
|
return pn.set(t, $o), $o;
|
|
1020
1020
|
var n = getComputedStyle(t), i = Or(t) && t.ownerSVGElement && t.getBBox(), r = !Rh && n.boxSizing === "border-box", o = Dh.test(n.writingMode || ""), s = !i && Ao.test(n.overflowY || ""), a = !i && Ao.test(n.overflowX || ""), l = i ? 0 : bt(n.paddingTop), c = i ? 0 : bt(n.paddingRight), h = i ? 0 : bt(n.paddingBottom), u = i ? 0 : bt(n.paddingLeft), f = i ? 0 : bt(n.borderTopWidth), d = i ? 0 : bt(n.borderRightWidth), g = i ? 0 : bt(n.borderBottomWidth), p = i ? 0 : bt(n.borderLeftWidth), v = u + c, m = l + h, y = p + d, _ = f + g, k = a ? t.offsetHeight - _ - t.clientHeight : 0, w = s ? t.offsetWidth - y - t.clientWidth : 0, b = r ? v + y : 0, T = r ? m + _ : 0, L = i ? i.width : bt(n.width) - b - w, R = i ? i.height : bt(n.height) - T - k, it = L + v + w + y, M = R + m + k + _, B = Zt({
|
|
1021
|
-
devicePixelContentBoxSize:
|
|
1022
|
-
borderBoxSize:
|
|
1023
|
-
contentBoxSize:
|
|
1021
|
+
devicePixelContentBoxSize: ve(Math.round(L * devicePixelRatio), Math.round(R * devicePixelRatio), o),
|
|
1022
|
+
borderBoxSize: ve(it, M, o),
|
|
1023
|
+
contentBoxSize: ve(L, R, o),
|
|
1024
1024
|
contentRect: new pa(u, l, L, R)
|
|
1025
1025
|
});
|
|
1026
1026
|
return pn.set(t, B), B;
|
|
@@ -1236,7 +1236,7 @@ const jh = globalThis.ResizeObserver || Gh, xa = {
|
|
|
1236
1236
|
left: 0,
|
|
1237
1237
|
right: 0
|
|
1238
1238
|
},
|
|
1239
|
-
sizing:
|
|
1239
|
+
sizing: be.Fit,
|
|
1240
1240
|
width: void 0,
|
|
1241
1241
|
height: void 0,
|
|
1242
1242
|
svgDefs: void 0,
|
|
@@ -1288,7 +1288,7 @@ class Ze {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
_onResize() {
|
|
1290
1290
|
const { config: e } = this;
|
|
1291
|
-
(e.sizing ===
|
|
1291
|
+
(e.sizing === be.Fit || e.sizing === be.FitWidth) && this.render(0);
|
|
1292
1292
|
}
|
|
1293
1293
|
_setUpResizeObserver() {
|
|
1294
1294
|
if (this._resizeObserver)
|
|
@@ -1381,9 +1381,9 @@ function mn(t, e) {
|
|
|
1381
1381
|
function sf(t, e) {
|
|
1382
1382
|
return t.map(e).join("");
|
|
1383
1383
|
}
|
|
1384
|
-
var pi = 1,
|
|
1384
|
+
var pi = 1, we = 1, Ta = 0, nt = 0, U = 0, $e = "";
|
|
1385
1385
|
function gi(t, e, n, i, r, o, s) {
|
|
1386
|
-
return { value: t, root: e, parent: n, type: i, props: r, children: o, line: pi, column:
|
|
1386
|
+
return { value: t, root: e, parent: n, type: i, props: r, children: o, line: pi, column: we, length: s, return: "" };
|
|
1387
1387
|
}
|
|
1388
1388
|
function Re(t, e) {
|
|
1389
1389
|
return nf(gi("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
@@ -1392,10 +1392,10 @@ function af() {
|
|
|
1392
1392
|
return U;
|
|
1393
1393
|
}
|
|
1394
1394
|
function lf() {
|
|
1395
|
-
return U = nt > 0 ? G($e, --nt) : 0,
|
|
1395
|
+
return U = nt > 0 ? G($e, --nt) : 0, we--, U === 10 && (we = 1, pi--), U;
|
|
1396
1396
|
}
|
|
1397
1397
|
function at() {
|
|
1398
|
-
return U = nt < Ta ? G($e, nt++) : 0,
|
|
1398
|
+
return U = nt < Ta ? G($e, nt++) : 0, we++, U === 10 && (we = 1, pi++), U;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ct() {
|
|
1401
1401
|
return G($e, nt);
|
|
@@ -1445,7 +1445,7 @@ function Je(t) {
|
|
|
1445
1445
|
return 0;
|
|
1446
1446
|
}
|
|
1447
1447
|
function Sa(t) {
|
|
1448
|
-
return pi =
|
|
1448
|
+
return pi = we = 1, Ta = kt($e = t), nt = 0, [];
|
|
1449
1449
|
}
|
|
1450
1450
|
function Ca(t) {
|
|
1451
1451
|
return $e = "", t;
|
|
@@ -1617,7 +1617,7 @@ function pf(t, e, n) {
|
|
|
1617
1617
|
function Po(t, e, n, i) {
|
|
1618
1618
|
return gi(t, e, n, Rr, Qe(t, 0, i), Qe(t, i + 1, -1), i);
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function me(t, e) {
|
|
1621
1621
|
for (var n = "", i = Fr(t), r = 0; r < i; r++)
|
|
1622
1622
|
n += e(t[r], r, t, e) || "";
|
|
1623
1623
|
return n;
|
|
@@ -1632,11 +1632,11 @@ function gf(t, e, n, i) {
|
|
|
1632
1632
|
case ba:
|
|
1633
1633
|
return "";
|
|
1634
1634
|
case wa:
|
|
1635
|
-
return t.return = t.value + "{" +
|
|
1635
|
+
return t.return = t.value + "{" + me(t.children, i) + "}";
|
|
1636
1636
|
case Dr:
|
|
1637
1637
|
t.value = t.props.join(",");
|
|
1638
1638
|
}
|
|
1639
|
-
return kt(n =
|
|
1639
|
+
return kt(n = me(t.children, i)) ? t.return = t.value + "{" + n + "}" : "";
|
|
1640
1640
|
}
|
|
1641
1641
|
function vf(t) {
|
|
1642
1642
|
var e = Fr(t);
|
|
@@ -1853,7 +1853,7 @@ var Tf = function(e, n, i, r) {
|
|
|
1853
1853
|
e.return = Ma(e.value, e.length);
|
|
1854
1854
|
break;
|
|
1855
1855
|
case wa:
|
|
1856
|
-
return
|
|
1856
|
+
return me([Re(e, {
|
|
1857
1857
|
value: D(e.value, "@", "@" + O)
|
|
1858
1858
|
})], r);
|
|
1859
1859
|
case Dr:
|
|
@@ -1862,12 +1862,12 @@ var Tf = function(e, n, i, r) {
|
|
|
1862
1862
|
// :read-(only|write)
|
|
1863
1863
|
case ":read-only":
|
|
1864
1864
|
case ":read-write":
|
|
1865
|
-
return
|
|
1865
|
+
return me([Re(e, {
|
|
1866
1866
|
props: [D(o, /:(read-\w+)/, ":" + Wn + "$1")]
|
|
1867
1867
|
})], r);
|
|
1868
1868
|
// :placeholder
|
|
1869
1869
|
case "::placeholder":
|
|
1870
|
-
return
|
|
1870
|
+
return me([Re(e, {
|
|
1871
1871
|
props: [D(o, /:(plac\w+)/, ":" + O + "input-$1")]
|
|
1872
1872
|
}), Re(e, {
|
|
1873
1873
|
props: [D(o, /:(plac\w+)/, ":" + Wn + "$1")]
|
|
@@ -1903,7 +1903,7 @@ var Tf = function(e, n, i, r) {
|
|
|
1903
1903
|
var h, u = [gf, mf(function(p) {
|
|
1904
1904
|
h.insert(p);
|
|
1905
1905
|
})], f = vf(c.concat(r, u)), d = function(v) {
|
|
1906
|
-
return
|
|
1906
|
+
return me(df(v), f);
|
|
1907
1907
|
};
|
|
1908
1908
|
l = function(v, m, y, _) {
|
|
1909
1909
|
h = y, d(v ? v + "{" + m.styles + "}" : m.styles), _ && (g.inserted[m.name] = !0);
|
|
@@ -2216,7 +2216,7 @@ var Rf = function(e) {
|
|
|
2216
2216
|
return n;
|
|
2217
2217
|
}, Ea = Rf({
|
|
2218
2218
|
key: "css"
|
|
2219
|
-
}),
|
|
2219
|
+
}), ae = Ea.injectGlobal, N = Ea.css;
|
|
2220
2220
|
function Pf(t) {
|
|
2221
2221
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2222
2222
|
}
|
|
@@ -2320,7 +2320,7 @@ function Oa(t, e) {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
function ln() {
|
|
2322
2322
|
}
|
|
2323
|
-
var Ke = 0.7, Vn = 1 / Ke,
|
|
2323
|
+
var Ke = 0.7, Vn = 1 / Ke, _e = "\\s*([+-]?\\d+)\\s*", tn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Mt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Hf = /^#([0-9a-f]{3,8})$/, Uf = new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`), Wf = new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`), Yf = new RegExp(`^rgba\\(${_e},${_e},${_e},${tn}\\)$`), Vf = new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${tn}\\)$`), Xf = new RegExp(`^hsl\\(${tn},${Mt},${Mt}\\)$`), qf = new RegExp(`^hsla\\(${tn},${Mt},${Mt},${tn}\\)$`), Vo = {
|
|
2324
2324
|
aliceblue: 15792383,
|
|
2325
2325
|
antiquewhite: 16444375,
|
|
2326
2326
|
aqua: 65535,
|
|
@@ -2666,7 +2666,7 @@ const Ra = (globalThis == null ? void 0 : globalThis.UNOVIS_FONT_W2H_RATIO_DEFAU
|
|
|
2666
2666
|
marginTop: 0,
|
|
2667
2667
|
marginBottom: 0
|
|
2668
2668
|
};
|
|
2669
|
-
|
|
2669
|
+
ae`
|
|
2670
2670
|
:root {
|
|
2671
2671
|
label: vis-root-styles;
|
|
2672
2672
|
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
@@ -2771,7 +2771,7 @@ function ts(t, e, n) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
return n != null && t.push({ name: e, value: n }), t;
|
|
2773
2773
|
}
|
|
2774
|
-
var
|
|
2774
|
+
var ke = 0, Be = 0, Fe = 0, za = 1e3, qn, He, Gn = 0, re = 0, vi = 0, nn = typeof performance == "object" && performance.now ? performance : Date, Ia = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
|
|
2775
2775
|
setTimeout(t, 17);
|
|
2776
2776
|
};
|
|
2777
2777
|
function zr() {
|
|
@@ -2798,17 +2798,17 @@ function Ba(t, e, n) {
|
|
|
2798
2798
|
return i.restart(t, e, n), i;
|
|
2799
2799
|
}
|
|
2800
2800
|
function cd() {
|
|
2801
|
-
zr(), ++
|
|
2801
|
+
zr(), ++ke;
|
|
2802
2802
|
for (var t = qn, e; t; )
|
|
2803
2803
|
(e = re - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
|
|
2804
|
-
--
|
|
2804
|
+
--ke;
|
|
2805
2805
|
}
|
|
2806
2806
|
function es() {
|
|
2807
|
-
re = (Gn = nn.now()) + vi,
|
|
2807
|
+
re = (Gn = nn.now()) + vi, ke = Be = 0;
|
|
2808
2808
|
try {
|
|
2809
2809
|
cd();
|
|
2810
2810
|
} finally {
|
|
2811
|
-
|
|
2811
|
+
ke = 0, hd(), re = 0;
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
2814
|
function ud() {
|
|
@@ -2821,10 +2821,10 @@ function hd() {
|
|
|
2821
2821
|
He = t, or(i);
|
|
2822
2822
|
}
|
|
2823
2823
|
function or(t) {
|
|
2824
|
-
if (!
|
|
2824
|
+
if (!ke) {
|
|
2825
2825
|
Be && (Be = clearTimeout(Be));
|
|
2826
2826
|
var e = t - re;
|
|
2827
|
-
e > 24 ? (t < 1 / 0 && (Be = setTimeout(es, t - nn.now() - vi)), Fe && (Fe = clearInterval(Fe))) : (Fe || (Gn = nn.now(), Fe = setInterval(ud, za)),
|
|
2827
|
+
e > 24 ? (t < 1 / 0 && (Be = setTimeout(es, t - nn.now() - vi)), Fe && (Fe = clearInterval(Fe))) : (Fe || (Gn = nn.now(), Fe = setInterval(ud, za)), ke = 1, Ia(es));
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
2830
|
function ns(t, e, n) {
|
|
@@ -3337,7 +3337,7 @@ function fp() {
|
|
|
3337
3337
|
function dp(t, e) {
|
|
3338
3338
|
var n, i, r;
|
|
3339
3339
|
return function() {
|
|
3340
|
-
var o =
|
|
3340
|
+
var o = xe(this, t), s = (this.style.removeProperty(t), xe(this, t));
|
|
3341
3341
|
return o === s ? null : o === n && s === i ? r : r = e(n = o, i = s);
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
@@ -3349,15 +3349,15 @@ function qa(t) {
|
|
|
3349
3349
|
function pp(t, e, n) {
|
|
3350
3350
|
var i, r = n + "", o;
|
|
3351
3351
|
return function() {
|
|
3352
|
-
var s =
|
|
3352
|
+
var s = xe(this, t);
|
|
3353
3353
|
return s === r ? null : s === i ? o : o = e(i = s, n);
|
|
3354
3354
|
};
|
|
3355
3355
|
}
|
|
3356
3356
|
function gp(t, e, n) {
|
|
3357
3357
|
var i, r, o;
|
|
3358
3358
|
return function() {
|
|
3359
|
-
var s =
|
|
3360
|
-
return a == null && (l = a = (this.style.removeProperty(t),
|
|
3359
|
+
var s = xe(this, t), a = n(this), l = a + "";
|
|
3360
|
+
return a == null && (l = a = (this.style.removeProperty(t), xe(this, t))), s === l ? null : s === i && l === r ? o : (r = l, o = e(i = s, a));
|
|
3361
3361
|
};
|
|
3362
3362
|
}
|
|
3363
3363
|
function vp(t, e) {
|
|
@@ -3719,7 +3719,7 @@ function Qn(t, e) {
|
|
|
3719
3719
|
+t.slice(n + 1)
|
|
3720
3720
|
];
|
|
3721
3721
|
}
|
|
3722
|
-
function
|
|
3722
|
+
function Te(t) {
|
|
3723
3723
|
return t = Qn(Math.abs(t)), t ? t[1] : NaN;
|
|
3724
3724
|
}
|
|
3725
3725
|
function Bp(t, e) {
|
|
@@ -3817,22 +3817,22 @@ function Vp(t) {
|
|
|
3817
3817
|
var b = p === "$" ? n : p === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : "", T = p === "$" ? i : /[%p]/.test(w) ? s : "", L = us[w], R = /[defgprs%]/.test(w);
|
|
3818
3818
|
_ = _ === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
3819
3819
|
function it(M) {
|
|
3820
|
-
var B = b, W = T, zt, fn,
|
|
3820
|
+
var B = b, W = T, zt, fn, fe;
|
|
3821
3821
|
if (w === "c")
|
|
3822
3822
|
W = L(M) + W, M = "";
|
|
3823
3823
|
else {
|
|
3824
3824
|
M = +M;
|
|
3825
|
-
var
|
|
3826
|
-
if (M = isNaN(M) ? l : L(Math.abs(M), _), k && (M = Wp(M)),
|
|
3825
|
+
var de = M < 0 || 1 / M < 0;
|
|
3826
|
+
if (M = isNaN(M) ? l : L(Math.abs(M), _), k && (M = Wp(M)), de && +M == 0 && g !== "+" && (de = !1), B = (de ? g === "(" ? g : a : g === "-" || g === "(" ? "" : g) + B, W = (w === "s" ? ds[8 + Ja / 3] : "") + W + (de && g === "(" ? ")" : ""), R) {
|
|
3827
3827
|
for (zt = -1, fn = M.length; ++zt < fn; )
|
|
3828
|
-
if (
|
|
3829
|
-
W = (
|
|
3828
|
+
if (fe = M.charCodeAt(zt), 48 > fe || fe > 57) {
|
|
3829
|
+
W = (fe === 46 ? r + M.slice(zt + 1) : M.slice(zt)) + W, M = M.slice(0, zt);
|
|
3830
3830
|
break;
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
3833
|
}
|
|
3834
3834
|
y && !v && (M = e(M, 1 / 0));
|
|
3835
|
-
var
|
|
3835
|
+
var pe = B.length + M.length + W.length, dt = pe < m ? new Array(m - pe + 1).join(f) : "";
|
|
3836
3836
|
switch (y && v && (M = e(dt + M, dt.length ? m - W.length : 1 / 0), dt = ""), d) {
|
|
3837
3837
|
case "<":
|
|
3838
3838
|
M = B + M + W + dt;
|
|
@@ -3841,7 +3841,7 @@ function Vp(t) {
|
|
|
3841
3841
|
M = B + dt + M + W;
|
|
3842
3842
|
break;
|
|
3843
3843
|
case "^":
|
|
3844
|
-
M = dt.slice(0,
|
|
3844
|
+
M = dt.slice(0, pe = dt.length >> 1) + B + M + W + dt.slice(pe);
|
|
3845
3845
|
break;
|
|
3846
3846
|
default:
|
|
3847
3847
|
M = dt + B + M + W;
|
|
@@ -3854,7 +3854,7 @@ function Vp(t) {
|
|
|
3854
3854
|
}, it;
|
|
3855
3855
|
}
|
|
3856
3856
|
function h(u, f) {
|
|
3857
|
-
var d = c((u = rn(u), u.type = "f", u)), g = Math.max(-8, Math.min(8, Math.floor(
|
|
3857
|
+
var d = c((u = rn(u), u.type = "f", u)), g = Math.max(-8, Math.min(8, Math.floor(Te(f) / 3))) * 3, p = Math.pow(10, -g), v = ds[8 + g / 3];
|
|
3858
3858
|
return function(m) {
|
|
3859
3859
|
return d(p * m) + v;
|
|
3860
3860
|
};
|
|
@@ -3874,13 +3874,13 @@ function Xp(t) {
|
|
|
3874
3874
|
return bn = Vp(t), Gr = bn.format, Ka = bn.formatPrefix, bn;
|
|
3875
3875
|
}
|
|
3876
3876
|
function qp(t) {
|
|
3877
|
-
return Math.max(0, -
|
|
3877
|
+
return Math.max(0, -Te(Math.abs(t)));
|
|
3878
3878
|
}
|
|
3879
3879
|
function Gp(t, e) {
|
|
3880
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(
|
|
3880
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Te(e) / 3))) * 3 - Te(Math.abs(t)));
|
|
3881
3881
|
}
|
|
3882
3882
|
function jp(t, e) {
|
|
3883
|
-
return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0,
|
|
3883
|
+
return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Te(e) - Te(t)) + 1;
|
|
3884
3884
|
}
|
|
3885
3885
|
function Zp(t, e, n, i) {
|
|
3886
3886
|
var r = Qi(t, e, n), o;
|
|
@@ -3905,7 +3905,7 @@ function Zp(t, e, n, i) {
|
|
|
3905
3905
|
}
|
|
3906
3906
|
return Gr(i);
|
|
3907
3907
|
}
|
|
3908
|
-
function
|
|
3908
|
+
function le(t) {
|
|
3909
3909
|
var e = t.domain;
|
|
3910
3910
|
return t.ticks = function(n) {
|
|
3911
3911
|
var i = e();
|
|
@@ -3934,7 +3934,7 @@ function tl() {
|
|
|
3934
3934
|
var t = Qa();
|
|
3935
3935
|
return t.copy = function() {
|
|
3936
3936
|
return cn(t, tl());
|
|
3937
|
-
}, yt.apply(t, arguments),
|
|
3937
|
+
}, yt.apply(t, arguments), le(t);
|
|
3938
3938
|
}
|
|
3939
3939
|
function el(t) {
|
|
3940
3940
|
var e;
|
|
@@ -3947,7 +3947,7 @@ function el(t) {
|
|
|
3947
3947
|
return arguments.length ? (e = i, n) : e;
|
|
3948
3948
|
}, n.copy = function() {
|
|
3949
3949
|
return el(t).unknown(e);
|
|
3950
|
-
}, t = arguments.length ? Array.from(t, ur) : [0, 1],
|
|
3950
|
+
}, t = arguments.length ? Array.from(t, ur) : [0, 1], le(n);
|
|
3951
3951
|
}
|
|
3952
3952
|
function nl(t, e) {
|
|
3953
3953
|
t = t.slice();
|
|
@@ -4044,7 +4044,7 @@ function ig(t) {
|
|
|
4044
4044
|
var e = 1, n = t(ms(e), _s(e));
|
|
4045
4045
|
return n.constant = function(i) {
|
|
4046
4046
|
return arguments.length ? t(ms(e = +i), _s(e)) : e;
|
|
4047
|
-
},
|
|
4047
|
+
}, le(n);
|
|
4048
4048
|
}
|
|
4049
4049
|
function rl() {
|
|
4050
4050
|
var t = ig(_i());
|
|
@@ -4070,7 +4070,7 @@ function sg(t) {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
return e.exponent = function(r) {
|
|
4072
4072
|
return arguments.length ? (n = +r, i()) : n;
|
|
4073
|
-
},
|
|
4073
|
+
}, le(e);
|
|
4074
4074
|
}
|
|
4075
4075
|
function jr() {
|
|
4076
4076
|
var t = sg(_i());
|
|
@@ -4135,7 +4135,7 @@ function sl() {
|
|
|
4135
4135
|
return i.slice();
|
|
4136
4136
|
}, s.copy = function() {
|
|
4137
4137
|
return sl().domain([t, e]).range(r).unknown(o);
|
|
4138
|
-
}, yt.apply(
|
|
4138
|
+
}, yt.apply(le(s), arguments);
|
|
4139
4139
|
}
|
|
4140
4140
|
function al() {
|
|
4141
4141
|
var t = [0.5], e = [0, 1], n, i = 1;
|
|
@@ -4242,34 +4242,34 @@ const ll = V((t) => {
|
|
|
4242
4242
|
t.setUTCDate(t.getUTCDate() + e);
|
|
4243
4243
|
}, (t, e) => (e - t) / Ft, (t) => Math.floor(t / Ft));
|
|
4244
4244
|
ll.range;
|
|
4245
|
-
function
|
|
4245
|
+
function ce(t) {
|
|
4246
4246
|
return V((e) => {
|
|
4247
4247
|
e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
|
|
4248
4248
|
}, (e, n) => {
|
|
4249
4249
|
e.setDate(e.getDate() + n * 7);
|
|
4250
4250
|
}, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ft) / Zr);
|
|
4251
4251
|
}
|
|
4252
|
-
const xi =
|
|
4252
|
+
const xi = ce(0), Kn = ce(1), lg = ce(2), cg = ce(3), Se = ce(4), ug = ce(5), hg = ce(6);
|
|
4253
4253
|
xi.range;
|
|
4254
4254
|
Kn.range;
|
|
4255
4255
|
lg.range;
|
|
4256
4256
|
cg.range;
|
|
4257
|
-
|
|
4257
|
+
Se.range;
|
|
4258
4258
|
ug.range;
|
|
4259
4259
|
hg.range;
|
|
4260
|
-
function
|
|
4260
|
+
function ue(t) {
|
|
4261
4261
|
return V((e) => {
|
|
4262
4262
|
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
|
|
4263
4263
|
}, (e, n) => {
|
|
4264
4264
|
e.setUTCDate(e.getUTCDate() + n * 7);
|
|
4265
4265
|
}, (e, n) => (n - e) / Zr);
|
|
4266
4266
|
}
|
|
4267
|
-
const bi =
|
|
4267
|
+
const bi = ue(0), ti = ue(1), fg = ue(2), dg = ue(3), Ce = ue(4), pg = ue(5), gg = ue(6);
|
|
4268
4268
|
bi.range;
|
|
4269
4269
|
ti.range;
|
|
4270
4270
|
fg.range;
|
|
4271
4271
|
dg.range;
|
|
4272
|
-
|
|
4272
|
+
Ce.range;
|
|
4273
4273
|
pg.range;
|
|
4274
4274
|
gg.range;
|
|
4275
4275
|
const eo = V((t) => {
|
|
@@ -4362,8 +4362,8 @@ function Pe(t, e, n) {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
function xg(t) {
|
|
4364
4364
|
var e = t.dateTime, n = t.date, i = t.time, r = t.periods, o = t.days, s = t.shortDays, a = t.months, l = t.shortMonths, c = Le(r), h = ze(r), u = Le(o), f = ze(o), d = Le(s), g = ze(s), p = Le(a), v = ze(a), m = Le(l), y = ze(l), _ = {
|
|
4365
|
-
a:
|
|
4366
|
-
A:
|
|
4365
|
+
a: de,
|
|
4366
|
+
A: pe,
|
|
4367
4367
|
b: dt,
|
|
4368
4368
|
B: lc,
|
|
4369
4369
|
c: null,
|
|
@@ -4455,7 +4455,7 @@ function xg(t) {
|
|
|
4455
4455
|
w: Tg,
|
|
4456
4456
|
W: Ag,
|
|
4457
4457
|
x: fn,
|
|
4458
|
-
X:
|
|
4458
|
+
X: fe,
|
|
4459
4459
|
y: ks,
|
|
4460
4460
|
Y: ws,
|
|
4461
4461
|
Z: $g,
|
|
@@ -4519,13 +4519,13 @@ function xg(t) {
|
|
|
4519
4519
|
function fn(C, A, $) {
|
|
4520
4520
|
return L(C, n, A, $);
|
|
4521
4521
|
}
|
|
4522
|
-
function
|
|
4522
|
+
function fe(C, A, $) {
|
|
4523
4523
|
return L(C, i, A, $);
|
|
4524
4524
|
}
|
|
4525
|
-
function
|
|
4525
|
+
function de(C) {
|
|
4526
4526
|
return s[C.getDay()];
|
|
4527
4527
|
}
|
|
4528
|
-
function
|
|
4528
|
+
function pe(C) {
|
|
4529
4529
|
return o[C.getDay()];
|
|
4530
4530
|
}
|
|
4531
4531
|
function dt(C) {
|
|
@@ -4715,10 +4715,10 @@ function Gg(t, e) {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
function hl(t) {
|
|
4717
4717
|
var e = t.getDay();
|
|
4718
|
-
return e >= 4 || e === 0 ?
|
|
4718
|
+
return e >= 4 || e === 0 ? Se(t) : Se.ceil(t);
|
|
4719
4719
|
}
|
|
4720
4720
|
function jg(t, e) {
|
|
4721
|
-
return t = hl(t), E(
|
|
4721
|
+
return t = hl(t), E(Se.count(Pt(t), t) + (Pt(t).getDay() === 4), e, 2);
|
|
4722
4722
|
}
|
|
4723
4723
|
function Zg(t) {
|
|
4724
4724
|
return t.getDay();
|
|
@@ -4737,7 +4737,7 @@ function t0(t, e) {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
function e0(t, e) {
|
|
4739
4739
|
var n = t.getDay();
|
|
4740
|
-
return t = n >= 4 || n === 0 ?
|
|
4740
|
+
return t = n >= 4 || n === 0 ? Se(t) : Se.ceil(t), E(t.getFullYear() % 1e4, e, 4);
|
|
4741
4741
|
}
|
|
4742
4742
|
function n0(t) {
|
|
4743
4743
|
var e = t.getTimezoneOffset();
|
|
@@ -4779,10 +4779,10 @@ function h0(t, e) {
|
|
|
4779
4779
|
}
|
|
4780
4780
|
function dl(t) {
|
|
4781
4781
|
var e = t.getUTCDay();
|
|
4782
|
-
return e >= 4 || e === 0 ?
|
|
4782
|
+
return e >= 4 || e === 0 ? Ce(t) : Ce.ceil(t);
|
|
4783
4783
|
}
|
|
4784
4784
|
function f0(t, e) {
|
|
4785
|
-
return t = dl(t), E(
|
|
4785
|
+
return t = dl(t), E(Ce.count(Lt(t), t) + (Lt(t).getUTCDay() === 4), e, 2);
|
|
4786
4786
|
}
|
|
4787
4787
|
function d0(t) {
|
|
4788
4788
|
return t.getUTCDay();
|
|
@@ -4801,7 +4801,7 @@ function m0(t, e) {
|
|
|
4801
4801
|
}
|
|
4802
4802
|
function _0(t, e) {
|
|
4803
4803
|
var n = t.getUTCDay();
|
|
4804
|
-
return t = n >= 4 || n === 0 ?
|
|
4804
|
+
return t = n >= 4 || n === 0 ? Ce(t) : Ce.ceil(t), E(t.getUTCFullYear() % 1e4, e, 4);
|
|
4805
4805
|
}
|
|
4806
4806
|
function y0() {
|
|
4807
4807
|
return "+0000";
|
|
@@ -4815,7 +4815,7 @@ function $s(t) {
|
|
|
4815
4815
|
function Es(t) {
|
|
4816
4816
|
return Math.floor(+t / 1e3);
|
|
4817
4817
|
}
|
|
4818
|
-
var
|
|
4818
|
+
var ge, pl, gl;
|
|
4819
4819
|
x0({
|
|
4820
4820
|
dateTime: "%x, %X",
|
|
4821
4821
|
date: "%-m/%-d/%Y",
|
|
@@ -4827,7 +4827,7 @@ x0({
|
|
|
4827
4827
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
4828
4828
|
});
|
|
4829
4829
|
function x0(t) {
|
|
4830
|
-
return
|
|
4830
|
+
return ge = xg(t), pl = ge.format, ge.parse, gl = ge.utcFormat, ge.utcParse, ge;
|
|
4831
4831
|
}
|
|
4832
4832
|
function b0(t) {
|
|
4833
4833
|
return new Date(t);
|
|
@@ -4890,7 +4890,7 @@ function vl(t, e) {
|
|
|
4890
4890
|
return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown());
|
|
4891
4891
|
}
|
|
4892
4892
|
function ml() {
|
|
4893
|
-
var t =
|
|
4893
|
+
var t = le(S0()(et));
|
|
4894
4894
|
return t.copy = function() {
|
|
4895
4895
|
return vl(t, ml());
|
|
4896
4896
|
}, ja.apply(t, arguments);
|
|
@@ -4920,7 +4920,7 @@ function C0() {
|
|
|
4920
4920
|
};
|
|
4921
4921
|
}
|
|
4922
4922
|
function _l() {
|
|
4923
|
-
var t =
|
|
4923
|
+
var t = le(C0()(et));
|
|
4924
4924
|
return t.copy = function() {
|
|
4925
4925
|
return vl(t, _l());
|
|
4926
4926
|
}, ja.apply(t, arguments);
|
|
@@ -5130,7 +5130,7 @@ const yl = {
|
|
|
5130
5130
|
class $0 {
|
|
5131
5131
|
constructor(e = Ye.SVG) {
|
|
5132
5132
|
var n, i;
|
|
5133
|
-
this.type = Ye.SVG, this.datamodel = new Yr(), this.sizing =
|
|
5133
|
+
this.type = Ye.SVG, this.datamodel = new Yr(), this.sizing = be.Fit, this.events = {}, this._defaultConfig = yl, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._setUpComponentEventsThrottled = Un(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = Un(this._setCustomAttributes, 500), e === Ye.SVG ? this.element = document.createElementNS("http://www.w3.org/2000/svg", "g") : this.element = document.createElement("div"), this.uid = Na(), this.g = J(this.element);
|
|
5134
5134
|
const r = (i = (n = this.constructor) === null || n === void 0 ? void 0 : n.selectors) === null || i === void 0 ? void 0 : i.root;
|
|
5135
5135
|
r && this.g.attr("class", r);
|
|
5136
5136
|
}
|
|
@@ -5293,7 +5293,7 @@ const N0 = {
|
|
|
5293
5293
|
border: solid 1px var(--vis-tooltip-border-color);
|
|
5294
5294
|
background-color: var(--vis-tooltip-background-color);
|
|
5295
5295
|
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
5296
|
-
`, O0 = ki, D0 =
|
|
5296
|
+
`, O0 = ki, D0 = ae`
|
|
5297
5297
|
:root {
|
|
5298
5298
|
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
5299
5299
|
--vis-tooltip-border-color: #e5e9f7;
|
|
@@ -6578,7 +6578,7 @@ function xv(t, e, n) {
|
|
|
6578
6578
|
var i = [[t.x, t.y]];
|
|
6579
6579
|
return e.x1 != null && i.push([e.x1, e.y1]), e.x2 != null && i.push([e.x2, e.y2]), i.push([e.x, e.y]), yv(i, n).map(_v);
|
|
6580
6580
|
}
|
|
6581
|
-
var bv = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,
|
|
6581
|
+
var bv = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, ye = {
|
|
6582
6582
|
M: ["x", "y"],
|
|
6583
6583
|
L: ["x", "y"],
|
|
6584
6584
|
H: ["x"],
|
|
@@ -6590,8 +6590,8 @@ var bv = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, xe = {
|
|
|
6590
6590
|
A: ["rx", "ry", "xAxisRotation", "largeArcFlag", "sweepFlag", "x", "y"],
|
|
6591
6591
|
Z: []
|
|
6592
6592
|
};
|
|
6593
|
-
Object.keys(
|
|
6594
|
-
|
|
6593
|
+
Object.keys(ye).forEach(function(t) {
|
|
6594
|
+
ye[t.toLowerCase()] = ye[t];
|
|
6595
6595
|
});
|
|
6596
6596
|
function mr(t, e) {
|
|
6597
6597
|
for (var n = Array(t), i = 0; i < t; i++)
|
|
@@ -6599,7 +6599,7 @@ function mr(t, e) {
|
|
|
6599
6599
|
return n;
|
|
6600
6600
|
}
|
|
6601
6601
|
function wv(t) {
|
|
6602
|
-
return "".concat(t.type).concat(
|
|
6602
|
+
return "".concat(t.type).concat(ye[t.type].map(function(e) {
|
|
6603
6603
|
return t[e];
|
|
6604
6604
|
}).join(","));
|
|
6605
6605
|
}
|
|
@@ -6652,7 +6652,7 @@ function Us(t, e, n) {
|
|
|
6652
6652
|
}
|
|
6653
6653
|
function Ws(t) {
|
|
6654
6654
|
for (var e = (t || "").match(bv) || [], n = [], i, r, o = 0; o < e.length; ++o)
|
|
6655
|
-
if (i =
|
|
6655
|
+
if (i = ye[e[o]], i) {
|
|
6656
6656
|
r = {
|
|
6657
6657
|
type: e[o]
|
|
6658
6658
|
};
|
|
@@ -6690,7 +6690,7 @@ function Sv(t, e, n) {
|
|
|
6690
6690
|
if (f === 0)
|
|
6691
6691
|
return i;
|
|
6692
6692
|
for (var d = 0; d < h.length; ++d) {
|
|
6693
|
-
var g = i[d], p = r[d], v = h[d], m = Wl(
|
|
6693
|
+
var g = i[d], p = r[d], v = h[d], m = Wl(ye[v.type]), y;
|
|
6694
6694
|
try {
|
|
6695
6695
|
for (m.s(); !(y = m.n()).done; ) {
|
|
6696
6696
|
var _ = y.value;
|
|
@@ -6761,7 +6761,7 @@ const _r = {
|
|
|
6761
6761
|
[z.Step]: hv,
|
|
6762
6762
|
[z.StepAfter]: dv,
|
|
6763
6763
|
[z.StepBefore]: fv
|
|
6764
|
-
}, Cv = Object.assign(Object.assign({}, hn), { curveType: z.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Mv =
|
|
6764
|
+
}, Cv = Object.assign(Object.assign({}, hn), { curveType: z.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Mv = ae`
|
|
6765
6765
|
:root {
|
|
6766
6766
|
--vis-line-cursor: default;
|
|
6767
6767
|
--vis-line-stroke-dasharray: none;
|
|
@@ -7230,7 +7230,7 @@ function tm(t, e, n, i) {
|
|
|
7230
7230
|
}
|
|
7231
7231
|
const em = Object.assign(Object.assign({}, hn), { position: void 0, type: void 0, label: void 0, labelFontSize: null, gridLine: !0, tickLine: !0, domainLine: !0, numTicks: void 0, minMaxTicksOnly: !1, minMaxTicksOnlyWhenWidthIsLess: 250, tickTextWidth: void 0, tickTextSeparator: void 0, tickTextForceWordBreak: !1, tickTextTrimType: Kt.Middle, tickTextFitMode: ai.Wrap, tickTextFontSize: null, tickTextAlign: void 0, tickTextColor: null, tickTextAngle: void 0, labelMargin: 8, labelColor: null, tickFormat: void 0, tickValues: void 0, fullSize: !0, tickPadding: 8, tickTextHideOverlapping: void 0 }), Vl = N`
|
|
7232
7232
|
label: axis-component;
|
|
7233
|
-
`, nm =
|
|
7233
|
+
`, nm = ae`
|
|
7234
7234
|
:root {
|
|
7235
7235
|
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
7236
7236
|
/* --vis-axis-font-family: */
|
|
@@ -7679,7 +7679,7 @@ function lm(t, e, n) {
|
|
|
7679
7679
|
}
|
|
7680
7680
|
const fo = N`
|
|
7681
7681
|
label: bullet-legend-component;
|
|
7682
|
-
`, cm =
|
|
7682
|
+
`, cm = ae`
|
|
7683
7683
|
:root {
|
|
7684
7684
|
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
7685
7685
|
/* --vis-legend-font-family: */
|
|
@@ -7775,7 +7775,7 @@ class tc {
|
|
|
7775
7775
|
}
|
|
7776
7776
|
}
|
|
7777
7777
|
tc.selectors = um;
|
|
7778
|
-
const hm = Object.assign(Object.assign({}, hn), { yStacked: void 0, baseline: null, duration: 100, tooltip: void 0, template: (t, e) => "", hideWhenFarFromPointer: !0, hideWhenFarFromPointerDistance: 100, snapToData: !0, getCircles: void 0, color: void 0, strokeColor: void 0, strokeWidth: void 0 }), fm =
|
|
7778
|
+
const hm = Object.assign(Object.assign({}, hn), { yStacked: void 0, baseline: null, duration: 100, tooltip: void 0, template: (t, e) => "", hideWhenFarFromPointer: !0, hideWhenFarFromPointerDistance: 100, snapToData: !0, getCircles: void 0, color: void 0, strokeColor: void 0, strokeWidth: void 0 }), fm = ae`
|
|
7779
7779
|
:root {
|
|
7780
7780
|
--vis-crosshair-line-stroke-color: #888;
|
|
7781
7781
|
--vis-crosshair-line-stroke-width: 1px;
|
|
@@ -7911,7 +7911,7 @@ class ic extends wi {
|
|
|
7911
7911
|
ic.selectors = pm;
|
|
7912
7912
|
const gm = Object.assign(Object.assign({}, hn), { color: void 0, curveType: z.MonotoneX, baseline: () => 0, opacity: 1, cursor: null, minHeight1Px: !1 }), rc = N`
|
|
7913
7913
|
label: area-component;
|
|
7914
|
-
`, vm =
|
|
7914
|
+
`, vm = ae`
|
|
7915
7915
|
:root {
|
|
7916
7916
|
--vis-area-cursor: default;
|
|
7917
7917
|
--vis-area-fill-opacity: 1;
|
|
@@ -7991,9 +7991,9 @@ const po = Symbol("componentAccessorKey"), oc = Symbol("tooltipAccessorKey"), sc
|
|
|
7991
7991
|
function Ne(t, e) {
|
|
7992
7992
|
return Ge(t, e);
|
|
7993
7993
|
}
|
|
7994
|
-
function
|
|
7994
|
+
function he(t) {
|
|
7995
7995
|
const e = mc(), n = e.attrs;
|
|
7996
|
-
return
|
|
7996
|
+
return Me(() => {
|
|
7997
7997
|
const i = {}, r = (e == null ? void 0 : e.vnode.props) ?? {};
|
|
7998
7998
|
return Object.keys(r).forEach((o) => {
|
|
7999
7999
|
i[vo(o)] = t[vo(o)];
|
|
@@ -8034,7 +8034,7 @@ const ym = /* @__PURE__ */ At({
|
|
|
8034
8034
|
data: {}
|
|
8035
8035
|
},
|
|
8036
8036
|
setup(t, { expose: e }) {
|
|
8037
|
-
const n = t, { data: i } = _c(n), r =
|
|
8037
|
+
const n = t, { data: i } = _c(n), r = he(n), o = Dt(), s = yc({
|
|
8038
8038
|
components: [],
|
|
8039
8039
|
annotations: void 0,
|
|
8040
8040
|
crosshair: void 0,
|
|
@@ -8047,9 +8047,9 @@ const ym = /* @__PURE__ */ At({
|
|
|
8047
8047
|
}), xc(() => {
|
|
8048
8048
|
var l;
|
|
8049
8049
|
s.components.map((c) => c.config), (l = o.value) == null || l.updateContainer({ ...Ei(r.value), ...Ei(s) });
|
|
8050
|
-
}),
|
|
8050
|
+
}), oe(() => {
|
|
8051
8051
|
a.value && (o.value = new A0(a.value, { ...Ei(s) }, i.value));
|
|
8052
|
-
}),
|
|
8052
|
+
}), se(() => {
|
|
8053
8053
|
var l;
|
|
8054
8054
|
return (l = o.value) == null ? void 0 : l.destroy();
|
|
8055
8055
|
}), Oe(po, {
|
|
@@ -8115,13 +8115,13 @@ const ym = /* @__PURE__ */ At({
|
|
|
8115
8115
|
data: {}
|
|
8116
8116
|
},
|
|
8117
8117
|
setup(t, { expose: e }) {
|
|
8118
|
-
const n = on(po), i = t, r =
|
|
8119
|
-
return
|
|
8118
|
+
const n = on(po), i = t, r = Me(() => n.data.value ?? i.data), o = he(i), s = Dt();
|
|
8119
|
+
return oe(() => {
|
|
8120
8120
|
Ae(() => {
|
|
8121
8121
|
var a;
|
|
8122
8122
|
s.value = new $i(o.value), (a = s.value) == null || a.setData(r.value), n.update(s.value);
|
|
8123
8123
|
});
|
|
8124
|
-
}),
|
|
8124
|
+
}), se(() => {
|
|
8125
8125
|
var a;
|
|
8126
8126
|
(a = s.value) == null || a.destroy(), n.destroy();
|
|
8127
8127
|
}), mt(o, (a, l) => {
|
|
@@ -8176,13 +8176,13 @@ const ym = /* @__PURE__ */ At({
|
|
|
8176
8176
|
data: {}
|
|
8177
8177
|
},
|
|
8178
8178
|
setup(t, { expose: e }) {
|
|
8179
|
-
const n = on(ac), i = t, r =
|
|
8180
|
-
return
|
|
8179
|
+
const n = on(ac), i = t, r = Me(() => n.data.value ?? i.data), o = he(i), s = Dt();
|
|
8180
|
+
return oe(() => {
|
|
8181
8181
|
Ae(() => {
|
|
8182
8182
|
var a;
|
|
8183
8183
|
s.value = new Ql(o.value), (a = s.value) == null || a.setData(r.value), n.update(s.value);
|
|
8184
8184
|
});
|
|
8185
|
-
}),
|
|
8185
|
+
}), se(() => {
|
|
8186
8186
|
var a;
|
|
8187
8187
|
(a = s.value) == null || a.destroy(), n.destroy(i.type);
|
|
8188
8188
|
}), mt(o, (a, l) => {
|
|
@@ -8201,13 +8201,13 @@ const ym = /* @__PURE__ */ At({
|
|
|
8201
8201
|
data: {}
|
|
8202
8202
|
},
|
|
8203
8203
|
setup(t, { expose: e }) {
|
|
8204
|
-
const n = on(sc), i = t, r =
|
|
8205
|
-
return
|
|
8204
|
+
const n = on(sc), i = t, r = Me(() => n.data.value ?? i.data), o = he(i), s = Dt();
|
|
8205
|
+
return oe(() => {
|
|
8206
8206
|
Ae(() => {
|
|
8207
8207
|
var a;
|
|
8208
8208
|
s.value = new ic(o.value), (a = s.value) == null || a.setData(r.value), n.update(s.value);
|
|
8209
8209
|
});
|
|
8210
|
-
}),
|
|
8210
|
+
}), se(() => {
|
|
8211
8211
|
var a;
|
|
8212
8212
|
(a = s.value) == null || a.destroy(), n.destroy();
|
|
8213
8213
|
}), mt(o, (a, l) => {
|
|
@@ -8243,13 +8243,13 @@ const ym = /* @__PURE__ */ At({
|
|
|
8243
8243
|
data: {}
|
|
8244
8244
|
},
|
|
8245
8245
|
setup(t, { expose: e }) {
|
|
8246
|
-
const n = on(po), i = t, r =
|
|
8247
|
-
return
|
|
8246
|
+
const n = on(po), i = t, r = Me(() => n.data.value ?? i.data), o = he(i), s = Dt();
|
|
8247
|
+
return oe(() => {
|
|
8248
8248
|
Ae(() => {
|
|
8249
8249
|
var a;
|
|
8250
8250
|
s.value = new Mi(o.value), (a = s.value) == null || a.setData(r.value), n.update(s.value);
|
|
8251
8251
|
});
|
|
8252
|
-
}),
|
|
8252
|
+
}), se(() => {
|
|
8253
8253
|
var a;
|
|
8254
8254
|
(a = s.value) == null || a.destroy(), n.destroy();
|
|
8255
8255
|
}), mt(o, (a, l) => {
|
|
@@ -8279,12 +8279,12 @@ const ym = /* @__PURE__ */ At({
|
|
|
8279
8279
|
data: {}
|
|
8280
8280
|
},
|
|
8281
8281
|
setup(t, { expose: e }) {
|
|
8282
|
-
const n = on(oc), i =
|
|
8283
|
-
return
|
|
8282
|
+
const n = on(oc), i = he(t), r = Dt();
|
|
8283
|
+
return oe(() => {
|
|
8284
8284
|
Ae(() => {
|
|
8285
8285
|
r.value = new wl(i.value), n.update(r.value);
|
|
8286
8286
|
});
|
|
8287
|
-
}),
|
|
8287
|
+
}), se(() => {
|
|
8288
8288
|
var o;
|
|
8289
8289
|
(o = r.value) == null || o.destroy(), n.destroy();
|
|
8290
8290
|
}), mt(i, (o, s) => {
|
|
@@ -8310,13 +8310,13 @@ const ym = /* @__PURE__ */ At({
|
|
|
8310
8310
|
},
|
|
8311
8311
|
setup(t, { expose: e }) {
|
|
8312
8312
|
const n = t;
|
|
8313
|
-
|
|
8314
|
-
const i =
|
|
8315
|
-
return
|
|
8313
|
+
Me(() => n.data);
|
|
8314
|
+
const i = he(n), r = Dt(), o = Dt();
|
|
8315
|
+
return oe(() => {
|
|
8316
8316
|
Ae(() => {
|
|
8317
8317
|
o.value && (r.value = new tc(o.value, { ...i.value, renderIntoProvidedDomNode: !0 }));
|
|
8318
8318
|
});
|
|
8319
|
-
}),
|
|
8319
|
+
}), se(() => {
|
|
8320
8320
|
var s;
|
|
8321
8321
|
(s = r.value) == null || s.destroy();
|
|
8322
8322
|
}), mt(i, (s, a) => {
|
|
@@ -8397,18 +8397,15 @@ const Em = { class: "flex flex-col" }, Nm = { class: "flex items-center mr-2 mt-
|
|
|
8397
8397
|
paginationPoisition: {}
|
|
8398
8398
|
},
|
|
8399
8399
|
setup(t) {
|
|
8400
|
-
const e = t, n = Object.values(e.categories).map((s) => s.color), i =
|
|
8401
|
-
const a =
|
|
8400
|
+
const e = t, n = Object.values(e.categories).map((s) => s.color), i = (s) => {
|
|
8401
|
+
const a = Tc(Fm, {
|
|
8402
8402
|
data: s,
|
|
8403
8403
|
categories: e.categories
|
|
8404
|
-
});
|
|
8405
|
-
if (!document)
|
|
8406
|
-
return;
|
|
8407
|
-
const l = document.createElement("div");
|
|
8404
|
+
}), l = document.createElement("div");
|
|
8408
8405
|
a.mount(l);
|
|
8409
8406
|
const c = l.innerHTML;
|
|
8410
8407
|
return a.unmount(), c;
|
|
8411
|
-
}
|
|
8408
|
+
};
|
|
8412
8409
|
function r(s) {
|
|
8413
8410
|
var a;
|
|
8414
8411
|
return {
|
|
@@ -8425,7 +8422,7 @@ const Em = { class: "flex flex-col" }, Nm = { class: "flex items-center mr-2 mt-
|
|
|
8425
8422
|
`
|
|
8426
8423
|
).join("");
|
|
8427
8424
|
return (s, a) => {
|
|
8428
|
-
const l =
|
|
8425
|
+
const l = wc("ClientOnly");
|
|
8429
8426
|
return X(), Z("div", {
|
|
8430
8427
|
class: Ks(["flex flex-col space-y-4", {
|
|
8431
8428
|
"flex-col-reverse": e.paginationPoisition === "top"
|
|
@@ -8443,7 +8440,7 @@ const Em = { class: "flex flex-col" }, Nm = { class: "flex items-center mr-2 mt-
|
|
|
8443
8440
|
"vertical-placement": Q(S).Top
|
|
8444
8441
|
}, null, 8, ["horizontal-placement", "vertical-placement"])),
|
|
8445
8442
|
(X(!0), Z(Pn, null, Js(Object.keys(e.categories), (c, h) => (X(), Z(Pn, { key: h }, [
|
|
8446
|
-
Vt(Q(bm),
|
|
8443
|
+
Vt(Q(bm), kc({
|
|
8447
8444
|
x: (u, f) => f,
|
|
8448
8445
|
ref_for: !0
|
|
8449
8446
|
}, r(c), {
|
|
@@ -8481,8 +8478,8 @@ const Em = { class: "flex flex-col" }, Nm = { class: "flex items-center mr-2 mt-
|
|
|
8481
8478
|
s.hideTooltip ? wn("", !0) : (X(), yo(Q(Tm), {
|
|
8482
8479
|
key: 0,
|
|
8483
8480
|
color: "#666",
|
|
8484
|
-
template: i
|
|
8485
|
-
}
|
|
8481
|
+
template: i
|
|
8482
|
+
}))
|
|
8486
8483
|
]),
|
|
8487
8484
|
_: 1
|
|
8488
8485
|
})
|
package/dist/vue-chrts.umd.cjs
CHANGED
|
@@ -365,9 +365,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
365
365
|
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
366
366
|
stroke-width: var(--vis-area-hover-stroke-width);
|
|
367
367
|
}
|
|
368
|
-
`,Om=Object.freeze(Object.defineProperty({__proto__:null,area:Qr,globalStyles:Nm,root:Rl},Symbol.toStringTag,{value:"Module"}));class pi extends qn{constructor(e){super(),this._defaultConfig=Em,this.config=this._defaultConfig,this.stacked=!0,this.events={[pi.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=vt(e)?e:n.duration,o=Lr[n.curveType];this._areaGen=Kg().x(p=>p.x).y0(p=>p.y0).y1(p=>{const _=Math.abs(p.y1-p.y0)<1;return p.y1-(_&&n.minHeight1Px?1:0)}).curve(o);const s=It(n.y)?n.y:[n.y],a=i.map((p,_)=>this.xScale(Y(p,n.x,_))),l=zu(i,n.baseline,s,this._prevNegative);this._prevNegative=l.map(p=>!!p.isMostlyNegative);const c=l.map(p=>p.map((_,v)=>({y0:this.yScale(_[0]),y1:this.yScale(_[1]),x:a[v]}))),h=c.length-1,u=c.reverse(),f=this.g.selectAll(`.${Qr}`).data(u),d=f.enter().append("path").attr("class",Qr).attr("d",p=>this._areaGen(p)||this._emptyPath()).style("opacity",0).style("fill",(p,_)=>Tt(i,n.color,h-_)),g=at(d.merge(f),r).style("opacity",(p,_)=>p.some(x=>x.y0-x.y1!==0)?Y(i,n.opacity,h-_):0).style("fill",(p,_)=>Tt(i,n.color,h-_)).style("cursor",(p,_)=>un(i,n.cursor,h-_));r?g.attrTween("d",(_,v,x)=>{const y=Z(x[v]).attr("d"),T=this._areaGen(_)||this._emptyPath();return pl(y,T)}):g.attr("d",p=>this._areaGen(p)||this._emptyPath()),at(f.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=It(n.y)?n.y:[n.y],o=e?yo(i.data,this.xScale.domain(),n.x):i.data;return Bu(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}}pi.selectors=Om;const Jr=Symbol("componentAccessorKey"),Fl=Symbol("tooltipAccessorKey"),Pl=Symbol("crosshairAccessorKey"),Bl=Symbol("axisAccessorKey"),Dm=Symbol("annotationsAccessorKey");function ye(t,e){return Ce(t,e)}function ie(t){const e=m.getCurrentInstance(),n=e.attrs;return m.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[m.camelize(o)]=t[m.camelize(o)]}),{...i,...n}})}const Rm=m.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=m.toRefs(n),r=ie(n),o=m.ref(),s=m.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=m.ref();return m.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),m.watchEffect(()=>{var l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({...m.toRaw(r.value),...m.toRaw(s)})}),m.onMounted(()=>{a.value&&(o.value=new Wg(a.value,{...m.toRaw(s)},i.value))}),m.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),m.provide(Jr,{data:i,update:l=>s.components=[...s.components,l],destroy:()=>{var l;return s.components=(l=s.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),m.provide(Bl,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),m.provide(Pl,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),m.provide(Fl,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),m.provide(Dm,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[m.renderSlot(l.$slots,"default")],512))}}),Fm={"data-vis-component":""},Pm=m.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Jr),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new pi(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Fm))}}),Bm={"data-vis-axis":""},Ll=m.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Bl),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Ml(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Bm))}}),Lm={"data-vis-crosshair":""},zm=m.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=m.inject(Pl),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Dl(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Lm))}}),Im={"data-vis-component":""},Um=m.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Jr),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new ri(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Im))}}),Hm={"data-vis-tooltip":""},Wm=m.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(t,{expose:e}){const n=m.inject(Fl),i=ie(t),r=m.ref();return m.onMounted(()=>{m.nextTick(()=>{r.value=new Ba(i.value),n.update(r.value)})}),m.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),m.watch(i,(o,s)=>{var a;ye(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(m.openBlock(),m.createElementBlock("div",Hm))}}),Ym=m.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;m.computed(()=>n.data);const i=ie(n),r=m.ref(),o=m.ref();return m.onMounted(()=>{m.nextTick(()=>{o.value&&(r.value=new El(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),m.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),m.watch(i,(s,a)=>{var l;ye(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:o},null,512))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Vm={class:"flex flex-col"},Xm={class:"flex items-center mr-2 mt-2"},qm={class:"font-semibold capitalize text-white/75"},Gm={class:"flex items-center gap-2"},jm={class:"font-normal"},Zm=m.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function e(i){var r;return((r=n.categories[i])==null?void 0:r.color)??"#f00"}const n=t;return(i,r)=>(m.openBlock(),m.createElementBlock("div",Vm,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.entries(i.data),([o,s])=>{var a;return m.openBlock(),m.createElementBlock(m.Fragment,{key:o},[m.createElementVNode("div",Xm,[m.createElementVNode("span",qm,m.toDisplayString(o)+":",1)]),m.createElementVNode("div",Gm,[(a=n.categories[o])!=null&&a.color?(m.openBlock(),m.createElementBlock("span",{key:0,style:m.normalizeStyle({backgroundColor:e(o)}),class:"w-2 h-2"},null,4)):m.createCommentVNode("",!0),m.createElementVNode("span",jm,m.toDisplayString(s),1)])],64)}),128))]))}}),Qm={key:0,class:"flex items center justify-end"},Jm=m.defineComponent({__name:"Area",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{},yFormatter:{},curveType:{},xNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},yNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},hideLegend:{type:Boolean},hideTooltip:{type:Boolean},gridLineX:{type:Boolean},domainLineX:{type:Boolean},gridLineY:{type:Boolean},domainLineY:{type:Boolean},paginationPoisition:{}},setup(t){const e=t,n=Object.values(e.categories).map(s=>s.color),i=m.computed(()=>s=>{const a=m.createApp(Zm,{data:s,categories:e.categories});if(!document)return;const l=document.createElement("div");a.mount(l);const c=l.innerHTML;return a.unmount(),c});function r(s){var a;return{y:l=>Number(l[s]),color:((a=e.categories[s])==null?void 0:a.color)??"#3b82f6"}}const o=n.map((s,a)=>`
|
|
368
|
+
`,Om=Object.freeze(Object.defineProperty({__proto__:null,area:Qr,globalStyles:Nm,root:Rl},Symbol.toStringTag,{value:"Module"}));class pi extends qn{constructor(e){super(),this._defaultConfig=Em,this.config=this._defaultConfig,this.stacked=!0,this.events={[pi.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=vt(e)?e:n.duration,o=Lr[n.curveType];this._areaGen=Kg().x(p=>p.x).y0(p=>p.y0).y1(p=>{const _=Math.abs(p.y1-p.y0)<1;return p.y1-(_&&n.minHeight1Px?1:0)}).curve(o);const s=It(n.y)?n.y:[n.y],a=i.map((p,_)=>this.xScale(Y(p,n.x,_))),l=zu(i,n.baseline,s,this._prevNegative);this._prevNegative=l.map(p=>!!p.isMostlyNegative);const c=l.map(p=>p.map((_,v)=>({y0:this.yScale(_[0]),y1:this.yScale(_[1]),x:a[v]}))),h=c.length-1,u=c.reverse(),f=this.g.selectAll(`.${Qr}`).data(u),d=f.enter().append("path").attr("class",Qr).attr("d",p=>this._areaGen(p)||this._emptyPath()).style("opacity",0).style("fill",(p,_)=>Tt(i,n.color,h-_)),g=at(d.merge(f),r).style("opacity",(p,_)=>p.some(x=>x.y0-x.y1!==0)?Y(i,n.opacity,h-_):0).style("fill",(p,_)=>Tt(i,n.color,h-_)).style("cursor",(p,_)=>un(i,n.cursor,h-_));r?g.attrTween("d",(_,v,x)=>{const y=Z(x[v]).attr("d"),T=this._areaGen(_)||this._emptyPath();return pl(y,T)}):g.attr("d",p=>this._areaGen(p)||this._emptyPath()),at(f.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=It(n.y)?n.y:[n.y],o=e?yo(i.data,this.xScale.domain(),n.x):i.data;return Bu(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}}pi.selectors=Om;const Jr=Symbol("componentAccessorKey"),Fl=Symbol("tooltipAccessorKey"),Pl=Symbol("crosshairAccessorKey"),Bl=Symbol("axisAccessorKey"),Dm=Symbol("annotationsAccessorKey");function ye(t,e){return Ce(t,e)}function ie(t){const e=m.getCurrentInstance(),n=e.attrs;return m.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[m.camelize(o)]=t[m.camelize(o)]}),{...i,...n}})}const Rm=m.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=m.toRefs(n),r=ie(n),o=m.ref(),s=m.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=m.ref();return m.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),m.watchEffect(()=>{var l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({...m.toRaw(r.value),...m.toRaw(s)})}),m.onMounted(()=>{a.value&&(o.value=new Wg(a.value,{...m.toRaw(s)},i.value))}),m.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),m.provide(Jr,{data:i,update:l=>s.components=[...s.components,l],destroy:()=>{var l;return s.components=(l=s.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),m.provide(Bl,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),m.provide(Pl,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),m.provide(Fl,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),m.provide(Dm,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[m.renderSlot(l.$slots,"default")],512))}}),Fm={"data-vis-component":""},Pm=m.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Jr),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new pi(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Fm))}}),Bm={"data-vis-axis":""},Ll=m.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Bl),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Ml(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Bm))}}),Lm={"data-vis-crosshair":""},zm=m.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=m.inject(Pl),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new Dl(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Lm))}}),Im={"data-vis-component":""},Um=m.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(Jr),i=t,r=m.computed(()=>n.data.value??i.data),o=ie(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new ri(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;ye(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Im))}}),Hm={"data-vis-tooltip":""},Wm=m.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(t,{expose:e}){const n=m.inject(Fl),i=ie(t),r=m.ref();return m.onMounted(()=>{m.nextTick(()=>{r.value=new Ba(i.value),n.update(r.value)})}),m.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),m.watch(i,(o,s)=>{var a;ye(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(m.openBlock(),m.createElementBlock("div",Hm))}}),Ym=m.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;m.computed(()=>n.data);const i=ie(n),r=m.ref(),o=m.ref();return m.onMounted(()=>{m.nextTick(()=>{o.value&&(r.value=new El(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),m.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),m.watch(i,(s,a)=>{var l;ye(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:o},null,512))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Vm={class:"flex flex-col"},Xm={class:"flex items-center mr-2 mt-2"},qm={class:"font-semibold capitalize text-white/75"},Gm={class:"flex items-center gap-2"},jm={class:"font-normal"},Zm=m.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function e(i){var r;return((r=n.categories[i])==null?void 0:r.color)??"#f00"}const n=t;return(i,r)=>(m.openBlock(),m.createElementBlock("div",Vm,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.entries(i.data),([o,s])=>{var a;return m.openBlock(),m.createElementBlock(m.Fragment,{key:o},[m.createElementVNode("div",Xm,[m.createElementVNode("span",qm,m.toDisplayString(o)+":",1)]),m.createElementVNode("div",Gm,[(a=n.categories[o])!=null&&a.color?(m.openBlock(),m.createElementBlock("span",{key:0,style:m.normalizeStyle({backgroundColor:e(o)}),class:"w-2 h-2"},null,4)):m.createCommentVNode("",!0),m.createElementVNode("span",jm,m.toDisplayString(s),1)])],64)}),128))]))}}),Qm={key:0,class:"flex items center justify-end"},Jm=m.defineComponent({__name:"Area",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{},yFormatter:{},curveType:{},xNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},yNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},hideLegend:{type:Boolean},hideTooltip:{type:Boolean},gridLineX:{type:Boolean},domainLineX:{type:Boolean},gridLineY:{type:Boolean},domainLineY:{type:Boolean},paginationPoisition:{}},setup(t){const e=t,n=Object.values(e.categories).map(s=>s.color),i=s=>{const a=m.createApp(Zm,{data:s,categories:e.categories}),l=document.createElement("div");a.mount(l);const c=l.innerHTML;return a.unmount(),c};function r(s){var a;return{y:l=>Number(l[s]),color:((a=e.categories[s])==null?void 0:a.color)??"#3b82f6"}}const o=n.map((s,a)=>`
|
|
369
369
|
<linearGradient id="gradient${a}-${s}" gradientTransform="rotate(90)">
|
|
370
370
|
<stop offset="0%" stop-color="${s}" stop-opacity="1" />
|
|
371
371
|
<stop offset="100%" stop-color="${s}" stop-opacity="0" />
|
|
372
372
|
</linearGradient>
|
|
373
|
-
`).join("");return(s,a)=>{const l=m.resolveComponent("ClientOnly");return m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["flex flex-col space-y-4",{"flex-col-reverse":e.paginationPoisition==="top"}])},[m.createVNode(m.unref(Rm),{data:s.data,height:s.height,"svg-defs":m.unref(o)},{default:m.withCtx(()=>[s.hideTooltip?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(m.unref(Wm),{key:0,"horizontal-placement":m.unref(C).Right,"vertical-placement":m.unref(C).Top},null,8,["horizontal-placement","vertical-placement"])),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.keys(e.categories),(c,h)=>(m.openBlock(),m.createElementBlock(m.Fragment,{key:h},[m.createVNode(m.unref(Pm),m.mergeProps({x:(u,f)=>f,ref_for:!0},r(c),{color:`url(#gradient${h}-${m.unref(n)[h]})`,opacity:.5,"curve-type":s.curveType??m.unref(L).MonotoneX}),null,16,["x","color","curve-type"]),m.createVNode(m.unref(Um),{x:(u,f)=>f,y:u=>u[c],color:m.unref(n)[h],"curve-type":s.curveType??m.unref(L).MonotoneX},null,8,["x","y","color","curve-type"])],64))),128)),m.createVNode(m.unref(Ll),{type:"x","tick-format":s.xFormatter,"num-ticks":s.xNumTicks,label:s.xLabel,"grid-line":s.gridLineX,"domain-line":s.domainLineX,"tick-line":!!s.gridLineX},null,8,["tick-format","num-ticks","label","grid-line","domain-line","tick-line"]),m.createVNode(m.unref(Ll),{type:"y","num-ticks":s.yNumTicks??s.data.length,"tick-format":s.yFormatter,label:s.yLabel,"grid-line":s.gridLineY,"domain-line":s.domainLineY,"tick-line":!!s.gridLineY},null,8,["num-ticks","tick-format","label","grid-line","domain-line","tick-line"]),m.createVNode(l,null,{default:m.withCtx(()=>[s.hideTooltip?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(m.unref(zm),{key:0,color:"#666",template:i
|
|
373
|
+
`).join("");return(s,a)=>{const l=m.resolveComponent("ClientOnly");return m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["flex flex-col space-y-4",{"flex-col-reverse":e.paginationPoisition==="top"}])},[m.createVNode(m.unref(Rm),{data:s.data,height:s.height,"svg-defs":m.unref(o)},{default:m.withCtx(()=>[s.hideTooltip?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(m.unref(Wm),{key:0,"horizontal-placement":m.unref(C).Right,"vertical-placement":m.unref(C).Top},null,8,["horizontal-placement","vertical-placement"])),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.keys(e.categories),(c,h)=>(m.openBlock(),m.createElementBlock(m.Fragment,{key:h},[m.createVNode(m.unref(Pm),m.mergeProps({x:(u,f)=>f,ref_for:!0},r(c),{color:`url(#gradient${h}-${m.unref(n)[h]})`,opacity:.5,"curve-type":s.curveType??m.unref(L).MonotoneX}),null,16,["x","color","curve-type"]),m.createVNode(m.unref(Um),{x:(u,f)=>f,y:u=>u[c],color:m.unref(n)[h],"curve-type":s.curveType??m.unref(L).MonotoneX},null,8,["x","y","color","curve-type"])],64))),128)),m.createVNode(m.unref(Ll),{type:"x","tick-format":s.xFormatter,"num-ticks":s.xNumTicks,label:s.xLabel,"grid-line":s.gridLineX,"domain-line":s.domainLineX,"tick-line":!!s.gridLineX},null,8,["tick-format","num-ticks","label","grid-line","domain-line","tick-line"]),m.createVNode(m.unref(Ll),{type:"y","num-ticks":s.yNumTicks??s.data.length,"tick-format":s.yFormatter,label:s.yLabel,"grid-line":s.gridLineY,"domain-line":s.domainLineY,"tick-line":!!s.gridLineY},null,8,["num-ticks","tick-format","label","grid-line","domain-line","tick-line"]),m.createVNode(l,null,{default:m.withCtx(()=>[s.hideTooltip?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(m.unref(zm),{key:0,color:"#666",template:i}))]),_:1})]),_:1},8,["data","height","svg-defs"]),s.hideLegend?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("div",Qm,[m.createVNode(m.unref(Ym),{items:Object.values(s.categories)},null,8,["items"])]))],2)}}});var zl=(t=>(t.Top="top",t.Bottom="bottom",t))(zl||{});const Km=((t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n})(m.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(t){return(e,n)=>(m.openBlock(),m.createElementBlock("button",{class:m.normalizeClass(["button",`button--${e.variant||"primary"}`,`button--${e.size||"medium"}`])},[m.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-52b6ec0c"]]);Ct.Area=Jm,Ct.Button=Km,Ct.PaginationPosition=zl,Object.defineProperty(Ct,Symbol.toStringTag,{value:"Module"})});
|