@oneclick.dev/cms-core-modules 0.0.110 → 0.0.111
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/{Acquisition-Dt2rREU8.js → Acquisition-DgzDQH51.js} +1 -1
- package/dist/{Acquisition-DNCy8nQz.mjs → Acquisition-FV3QpaUX.mjs} +2 -2
- package/dist/{Audience-Bs7b0TNm.js → Audience-BSgNvcVb.js} +1 -1
- package/dist/{Audience-CUeMVYRy.mjs → Audience-ka0b7YPE.mjs} +2 -2
- package/dist/{ContentEditor-D9-1SJ5F.mjs → ContentEditor-pZPfo0qN.mjs} +4384 -4282
- package/dist/{ContentEditor-BprPiHMJ.js → ContentEditor-tYkh4vRV.js} +42 -42
- package/dist/{Create-89z41K73.js → Create--MOBOTA-.js} +1 -1
- package/dist/{Create-BCklc_T1.mjs → Create-BXNLRQag.mjs} +1 -1
- package/dist/DateFormatter-CSAbE3BC.js +1 -0
- package/dist/{DateFormatter-DUxlo8X8.mjs → DateFormatter-qbhRYxI_.mjs} +226 -222
- package/dist/{Detail-CNlljBfH.mjs → Detail-ChD5XurA.mjs} +1 -1
- package/dist/{Detail-C857g62L.js → Detail-RISEJJab.js} +1 -1
- package/dist/{Find-DIISO5GO.mjs → Find-zN_dKz4p.mjs} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -0
- package/dist/{Overview-Di84CsR5.mjs → Overview-98nkJUWN.mjs} +162 -157
- package/dist/{Overview-C-Jb_BxY.mjs → Overview-BR_y8x3W.mjs} +1 -1
- package/dist/{Overview-DC9io1bk.js → Overview-CX-n6W7d.js} +1 -1
- package/dist/Overview-Dl8cMlsr.js +1 -0
- package/dist/{Overview-BKAti8nc.mjs → Overview-MpgkLB6m.mjs} +36 -36
- package/dist/{SeoHealth-az1YuNF2.js → SeoHealth-C5npw7mE.js} +1 -1
- package/dist/{SeoHealth-MC3lSCOY.mjs → SeoHealth-bVQj_Xgm.mjs} +29 -29
- package/dist/{TableView-DXHhJ-jm.mjs → TableView-Bf1fdJrD.mjs} +1838 -1822
- package/dist/TableView-DNcXyIMu.js +4 -0
- package/dist/{agenda-IOqtALWf.js → agenda-BaJu3-1c.js} +1 -1
- package/dist/{agenda-DcatSSYQ.mjs → agenda-BwVY_8oM.mjs} +3 -3
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-CI0B4xVj.js → exceptions-B6P9UiCj.js} +1 -1
- package/dist/{exceptions-YCQkHa6a.mjs → exceptions-De9-FvdP.mjs} +67 -67
- package/dist/{index-CpzDEMeC.mjs → index-B8GvmAwh.mjs} +438 -478
- package/dist/{index-wjkEPsNx.mjs → index-BIF2RB7k.mjs} +1212 -1316
- package/dist/index-ByRsp77L.js +70 -0
- package/dist/{index-BhWvXMOp.mjs → index-CFzn2Lus.mjs} +5 -9
- package/dist/{index-BFLV54kw.mjs → index-CkVwMqpn.mjs} +1114 -1100
- package/dist/index-DL6orwdK.js +35 -0
- package/dist/index-DUlYrnXH.js +58 -0
- package/dist/index-DZV720u-.mjs +439 -0
- package/dist/index-D_nfGegA.js +184 -0
- package/dist/index-DtSvAFLL.js +54 -0
- package/dist/{index-D30apIn-.mjs → index-L54VBzwJ.mjs} +2 -3
- package/dist/{index-BzWmWCo5.mjs → index-hH3e-IYz.mjs} +267 -267
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +15 -15
- package/dist/math-BJ-oX_IM.mjs +80 -0
- package/dist/math-emotyaF6.js +1 -0
- package/dist/{resources-CYOb5Bl6.mjs → resources-DwYxn2Vi.mjs} +1 -1
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +1 -2
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +1 -0
- package/package.json +2 -2
- package/dist/DateFormatter-CYAD4GBN.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +0 -1255
- package/dist/Overview-UoZHUMUz.js +0 -1
- package/dist/TableView-DQW0A1oG.js +0 -4
- package/dist/array-CbATeQbk.js +0 -1
- package/dist/array-DT5pE8Gm.mjs +0 -108
- package/dist/index-A2kp8Isi.js +0 -75
- package/dist/index-B5aBwdxY.js +0 -54
- package/dist/index-BiT55eU0.js +0 -58
- package/dist/index-G7cIlnGN.js +0 -158
- package/dist/index-V78huaSJ.mjs +0 -442
- package/dist/index-vHmvbEwa.js +0 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
1
|
+
import { defineComponent as Xt, toRefs as Di, ref as Ct, reactive as Ai, watch as pt, watchEffect as Fi, toRaw as oe, onMounted as Vt, onUnmounted as jt, provide as kt, openBlock as qt, createElementBlock as Gt, renderSlot as Ui, inject as ke, computed as An, nextTick as be } from "vue";
|
|
2
|
+
import { h as _e, g as Fn, E as Zt, G as Yi, c as Pi, b as Ni, d as Li, B as Bi, l as L, j as gt, k as bt, p as He, a as Ii, C as Oi, S as zi, r as ae, o as Ri, I as Un, D as we, $ as Ee, Y as mt, P as Wi, F as Yn, f as $i, Z as it, K as Hi, H as Ei, V as Xe, a0 as Xi, W as Vi, U as ji, T as ht, M as se, u as qi, v as ft, L as Gi, y as Zi, q as Ut, N as Qt, R as Qi, m as Pn, i as Nn, X as Ln, _ as Ji, n as Me } from "./index-CkVwMqpn.mjs";
|
|
3
|
+
function Ki(t) {
|
|
4
4
|
let e;
|
|
5
5
|
for (; e = t.sourceEvent; ) t = e;
|
|
6
6
|
return t;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
if (t =
|
|
8
|
+
function It(t, e) {
|
|
9
|
+
if (t = Ki(t), e === void 0 && (e = t.currentTarget), e) {
|
|
10
10
|
var n = e.ownerSVGElement || e;
|
|
11
11
|
if (n.createSVGPoint) {
|
|
12
12
|
var i = n.createSVGPoint();
|
|
@@ -19,51 +19,56 @@ function Wt(t, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return [t.pageX, t.pageY];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Bn(t) {
|
|
23
|
+
return t === null ? NaN : +t;
|
|
24
|
+
}
|
|
25
|
+
const tr = _e(Fn), Jt = tr.right;
|
|
26
|
+
_e(Bn).center;
|
|
27
|
+
function er(t, e) {
|
|
23
28
|
let n, i;
|
|
24
29
|
for (const r of t)
|
|
25
30
|
r != null && (n === void 0 ? r >= r && (n = i = r) : (n > r && (n = r), i < r && (i = r)));
|
|
26
31
|
return [n, i];
|
|
27
32
|
}
|
|
28
|
-
class
|
|
29
|
-
constructor(e, n =
|
|
33
|
+
class Ve extends Map {
|
|
34
|
+
constructor(e, n = rr) {
|
|
30
35
|
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), e != null) for (const [i, r] of e) this.set(i, r);
|
|
31
36
|
}
|
|
32
37
|
get(e) {
|
|
33
|
-
return super.get(
|
|
38
|
+
return super.get(je(this, e));
|
|
34
39
|
}
|
|
35
40
|
has(e) {
|
|
36
|
-
return super.has(
|
|
41
|
+
return super.has(je(this, e));
|
|
37
42
|
}
|
|
38
43
|
set(e, n) {
|
|
39
|
-
return super.set(
|
|
44
|
+
return super.set(nr(this, e), n);
|
|
40
45
|
}
|
|
41
46
|
delete(e) {
|
|
42
|
-
return super.delete(
|
|
47
|
+
return super.delete(ir(this, e));
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
|
-
function
|
|
50
|
+
function je({ _intern: t, _key: e }, n) {
|
|
46
51
|
const i = e(n);
|
|
47
52
|
return t.has(i) ? t.get(i) : n;
|
|
48
53
|
}
|
|
49
|
-
function
|
|
54
|
+
function nr({ _intern: t, _key: e }, n) {
|
|
50
55
|
const i = e(n);
|
|
51
56
|
return t.has(i) ? t.get(i) : (t.set(i, n), n);
|
|
52
57
|
}
|
|
53
|
-
function
|
|
58
|
+
function ir({ _intern: t, _key: e }, n) {
|
|
54
59
|
const i = e(n);
|
|
55
60
|
return t.has(i) && (n = t.get(i), t.delete(i)), n;
|
|
56
61
|
}
|
|
57
|
-
function
|
|
62
|
+
function rr(t) {
|
|
58
63
|
return t !== null && typeof t == "object" ? t.valueOf() : t;
|
|
59
64
|
}
|
|
60
|
-
const
|
|
65
|
+
const or = Math.sqrt(50), ar = Math.sqrt(10), sr = Math.sqrt(2);
|
|
61
66
|
function Ot(t, e, n) {
|
|
62
|
-
const i = (e - t) / Math.max(0, n), r = Math.floor(Math.log10(i)), o = i / Math.pow(10, r), a = o >=
|
|
67
|
+
const i = (e - t) / Math.max(0, n), r = Math.floor(Math.log10(i)), o = i / Math.pow(10, r), a = o >= or ? 10 : o >= ar ? 5 : o >= sr ? 2 : 1;
|
|
63
68
|
let s, c, l;
|
|
64
69
|
return r < 0 ? (l = Math.pow(10, -r) / a, s = Math.round(t * l), c = Math.round(e * l), s / l < t && ++s, c / l > e && --c, l = -l) : (l = Math.pow(10, r) * a, s = Math.round(t / l), c = Math.round(e / l), s * l < t && ++s, c * l > e && --c), c < s && 0.5 <= n && n < 2 ? Ot(t, e, n * 2) : [s, c, l];
|
|
65
70
|
}
|
|
66
|
-
function
|
|
71
|
+
function de(t, e, n) {
|
|
67
72
|
if (e = +e, t = +t, n = +n, !(n > 0)) return [];
|
|
68
73
|
if (t === e) return [t];
|
|
69
74
|
const i = e < t, [r, o, a] = i ? Ot(e, t, n) : Ot(t, e, n);
|
|
@@ -76,15 +81,15 @@ function me(t, e, n) {
|
|
|
76
81
|
else for (let l = 0; l < s; ++l) c[l] = (r + l) * a;
|
|
77
82
|
return c;
|
|
78
83
|
}
|
|
79
|
-
function
|
|
84
|
+
function ge(t, e, n) {
|
|
80
85
|
return e = +e, t = +t, n = +n, Ot(t, e, n)[2];
|
|
81
86
|
}
|
|
82
|
-
function
|
|
87
|
+
function me(t, e, n) {
|
|
83
88
|
e = +e, t = +t, n = +n;
|
|
84
|
-
const i = e < t, r = i ?
|
|
89
|
+
const i = e < t, r = i ? ge(e, t, n) : ge(t, e, n);
|
|
85
90
|
return (i ? -1 : 1) * (r < 0 ? 1 / -r : r);
|
|
86
91
|
}
|
|
87
|
-
function
|
|
92
|
+
function cr(t, e, n = Bn) {
|
|
88
93
|
if (!(!(i = t.length) || isNaN(e = +e))) {
|
|
89
94
|
if (e <= 0 || i < 2) return +n(t[0], 0, t);
|
|
90
95
|
if (e >= 1) return +n(t[i - 1], i - 1, t);
|
|
@@ -92,25 +97,25 @@ function gr(t, e, n = Ni) {
|
|
|
92
97
|
return a + (s - a) * (r - o);
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
|
-
function*
|
|
100
|
+
function* lr(t) {
|
|
96
101
|
for (const e of t)
|
|
97
102
|
yield* e;
|
|
98
103
|
}
|
|
99
|
-
function
|
|
100
|
-
return Array.from(
|
|
104
|
+
function ur(t) {
|
|
105
|
+
return Array.from(lr(t));
|
|
101
106
|
}
|
|
102
|
-
function
|
|
107
|
+
function hr(t, e, n) {
|
|
103
108
|
t = +t, e = +e, n = (r = arguments.length) < 2 ? (e = t, t = 0, 1) : r < 3 ? 1 : +n;
|
|
104
109
|
for (var i = -1, r = Math.max(0, Math.ceil((e - t) / n)) | 0, o = new Array(r); ++i < r; )
|
|
105
110
|
o[i] = t + i * n;
|
|
106
111
|
return o;
|
|
107
112
|
}
|
|
108
|
-
function
|
|
113
|
+
function Te(t, e) {
|
|
109
114
|
return t = +t, e = +e, function(n) {
|
|
110
115
|
return Math.round(t * (1 - n) + e * n);
|
|
111
116
|
};
|
|
112
117
|
}
|
|
113
|
-
function
|
|
118
|
+
function fr(t, e) {
|
|
114
119
|
e === void 0 && (e = t, t = Zt);
|
|
115
120
|
for (var n = 0, i = e.length - 1, r = e[0], o = new Array(i < 0 ? 0 : i); n < i; ) o[n] = t(r, r = e[++n]);
|
|
116
121
|
return function(a) {
|
|
@@ -118,12 +123,12 @@ function yr(t, e) {
|
|
|
118
123
|
return o[s](a - s);
|
|
119
124
|
};
|
|
120
125
|
}
|
|
121
|
-
const
|
|
122
|
-
var
|
|
126
|
+
const qe = (t) => +t;
|
|
127
|
+
var D;
|
|
123
128
|
(function(t) {
|
|
124
129
|
t.X = "x", t.Y = "y";
|
|
125
|
-
})(
|
|
126
|
-
function
|
|
130
|
+
})(D || (D = {}));
|
|
131
|
+
function X(t, e) {
|
|
127
132
|
switch (arguments.length) {
|
|
128
133
|
case 0:
|
|
129
134
|
break;
|
|
@@ -151,20 +156,20 @@ function In(t, e) {
|
|
|
151
156
|
}
|
|
152
157
|
return this;
|
|
153
158
|
}
|
|
154
|
-
const
|
|
155
|
-
function
|
|
156
|
-
var t = new
|
|
159
|
+
const Ge = /* @__PURE__ */ Symbol("implicit");
|
|
160
|
+
function Ce() {
|
|
161
|
+
var t = new Ve(), e = [], n = [], i = Ge;
|
|
157
162
|
function r(o) {
|
|
158
163
|
let a = t.get(o);
|
|
159
164
|
if (a === void 0) {
|
|
160
|
-
if (i !==
|
|
165
|
+
if (i !== Ge) return i;
|
|
161
166
|
t.set(o, a = e.push(o) - 1);
|
|
162
167
|
}
|
|
163
168
|
return n[a % n.length];
|
|
164
169
|
}
|
|
165
170
|
return r.domain = function(o) {
|
|
166
171
|
if (!arguments.length) return e.slice();
|
|
167
|
-
e = [], t = new
|
|
172
|
+
e = [], t = new Ve();
|
|
168
173
|
for (const a of o)
|
|
169
174
|
t.has(a) || t.set(a, e.push(a) - 1);
|
|
170
175
|
return r;
|
|
@@ -173,19 +178,19 @@ function De() {
|
|
|
173
178
|
}, r.unknown = function(o) {
|
|
174
179
|
return arguments.length ? (i = o, r) : i;
|
|
175
180
|
}, r.copy = function() {
|
|
176
|
-
return
|
|
177
|
-
},
|
|
181
|
+
return Ce(e, n).unknown(i);
|
|
182
|
+
}, X.apply(r, arguments), r;
|
|
178
183
|
}
|
|
179
|
-
function
|
|
180
|
-
var t =
|
|
184
|
+
function Se() {
|
|
185
|
+
var t = Ce().unknown(void 0), e = t.domain, n = t.range, i = 0, r = 1, o, a, s = !1, c = 0, l = 0, d = 0.5;
|
|
181
186
|
delete t.unknown;
|
|
182
187
|
function h() {
|
|
183
|
-
var u = e().length, f = r < i,
|
|
184
|
-
o = (m -
|
|
185
|
-
var
|
|
186
|
-
return
|
|
188
|
+
var u = e().length, f = r < i, y = f ? r : i, m = f ? i : r;
|
|
189
|
+
o = (m - y) / Math.max(1, u - c + l * 2), s && (o = Math.floor(o)), y += (m - y - o * (u - c)) * d, a = o * (1 - c), s && (y = Math.round(y), a = Math.round(a));
|
|
190
|
+
var b = hr(u).map(function(w) {
|
|
191
|
+
return y + o * w;
|
|
187
192
|
});
|
|
188
|
-
return n(f ?
|
|
193
|
+
return n(f ? b.reverse() : b);
|
|
189
194
|
}
|
|
190
195
|
return t.domain = function(u) {
|
|
191
196
|
return arguments.length ? (e(u), h()) : e();
|
|
@@ -208,78 +213,78 @@ function Ae() {
|
|
|
208
213
|
}, t.align = function(u) {
|
|
209
214
|
return arguments.length ? (d = Math.max(0, Math.min(1, u)), h()) : d;
|
|
210
215
|
}, t.copy = function() {
|
|
211
|
-
return
|
|
212
|
-
},
|
|
216
|
+
return Se(e(), [i, r]).round(s).paddingInner(c).paddingOuter(l).align(d);
|
|
217
|
+
}, X.apply(h(), arguments);
|
|
213
218
|
}
|
|
214
|
-
function
|
|
219
|
+
function On(t) {
|
|
215
220
|
var e = t.copy;
|
|
216
221
|
return t.padding = t.paddingOuter, delete t.paddingInner, delete t.paddingOuter, t.copy = function() {
|
|
217
|
-
return
|
|
222
|
+
return On(e());
|
|
218
223
|
}, t;
|
|
219
224
|
}
|
|
220
|
-
function
|
|
221
|
-
return
|
|
225
|
+
function dr() {
|
|
226
|
+
return On(Se.apply(null, arguments).paddingInner(1));
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function gr(t) {
|
|
224
229
|
return function() {
|
|
225
230
|
return t;
|
|
226
231
|
};
|
|
227
232
|
}
|
|
228
|
-
function
|
|
233
|
+
function pe(t) {
|
|
229
234
|
return +t;
|
|
230
235
|
}
|
|
231
|
-
var
|
|
232
|
-
function
|
|
236
|
+
var Ze = [0, 1];
|
|
237
|
+
function R(t) {
|
|
233
238
|
return t;
|
|
234
239
|
}
|
|
235
|
-
function
|
|
240
|
+
function ve(t, e) {
|
|
236
241
|
return (e -= t = +t) ? function(n) {
|
|
237
242
|
return (n - t) / e;
|
|
238
|
-
} :
|
|
243
|
+
} : gr(isNaN(e) ? NaN : 0.5);
|
|
239
244
|
}
|
|
240
|
-
function
|
|
245
|
+
function mr(t, e) {
|
|
241
246
|
var n;
|
|
242
247
|
return t > e && (n = t, t = e, e = n), function(i) {
|
|
243
248
|
return Math.max(t, Math.min(e, i));
|
|
244
249
|
};
|
|
245
250
|
}
|
|
246
|
-
function
|
|
251
|
+
function pr(t, e, n) {
|
|
247
252
|
var i = t[0], r = t[1], o = e[0], a = e[1];
|
|
248
|
-
return r < i ? (i =
|
|
253
|
+
return r < i ? (i = ve(r, i), o = n(a, o)) : (i = ve(i, r), o = n(o, a)), function(s) {
|
|
249
254
|
return o(i(s));
|
|
250
255
|
};
|
|
251
256
|
}
|
|
252
|
-
function
|
|
257
|
+
function vr(t, e, n) {
|
|
253
258
|
var i = Math.min(t.length, e.length) - 1, r = new Array(i), o = new Array(i), a = -1;
|
|
254
259
|
for (t[i] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < i; )
|
|
255
|
-
r[a] =
|
|
260
|
+
r[a] = ve(t[a], t[a + 1]), o[a] = n(e[a], e[a + 1]);
|
|
256
261
|
return function(s) {
|
|
257
|
-
var c =
|
|
262
|
+
var c = Jt(t, s, 1, i) - 1;
|
|
258
263
|
return o[c](r[c](s));
|
|
259
264
|
};
|
|
260
265
|
}
|
|
261
|
-
function
|
|
266
|
+
function Dt(t, e) {
|
|
262
267
|
return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
|
|
263
268
|
}
|
|
264
269
|
function Kt() {
|
|
265
|
-
var t =
|
|
270
|
+
var t = Ze, e = Ze, n = Zt, i, r, o, a = R, s, c, l;
|
|
266
271
|
function d() {
|
|
267
272
|
var u = Math.min(t.length, e.length);
|
|
268
|
-
return a !==
|
|
273
|
+
return a !== R && (a = mr(t[0], t[u - 1])), s = u > 2 ? vr : pr, c = l = null, h;
|
|
269
274
|
}
|
|
270
275
|
function h(u) {
|
|
271
276
|
return u == null || isNaN(u = +u) ? o : (c || (c = s(t.map(i), e, n)))(i(a(u)));
|
|
272
277
|
}
|
|
273
278
|
return h.invert = function(u) {
|
|
274
|
-
return a(r((l || (l = s(e, t.map(i),
|
|
279
|
+
return a(r((l || (l = s(e, t.map(i), Yi)))(u)));
|
|
275
280
|
}, h.domain = function(u) {
|
|
276
|
-
return arguments.length ? (t = Array.from(u,
|
|
281
|
+
return arguments.length ? (t = Array.from(u, pe), d()) : t.slice();
|
|
277
282
|
}, h.range = function(u) {
|
|
278
283
|
return arguments.length ? (e = Array.from(u), d()) : e.slice();
|
|
279
284
|
}, h.rangeRound = function(u) {
|
|
280
|
-
return e = Array.from(u), n =
|
|
285
|
+
return e = Array.from(u), n = Te, d();
|
|
281
286
|
}, h.clamp = function(u) {
|
|
282
|
-
return arguments.length ? (a = u ? !0 :
|
|
287
|
+
return arguments.length ? (a = u ? !0 : R, d()) : a !== R;
|
|
283
288
|
}, h.interpolate = function(u) {
|
|
284
289
|
return arguments.length ? (n = u, d()) : n;
|
|
285
290
|
}, h.unknown = function(u) {
|
|
@@ -289,12 +294,12 @@ function Kt() {
|
|
|
289
294
|
};
|
|
290
295
|
}
|
|
291
296
|
function zn() {
|
|
292
|
-
return Kt()(
|
|
297
|
+
return Kt()(R, R);
|
|
293
298
|
}
|
|
294
|
-
function
|
|
299
|
+
function yr(t) {
|
|
295
300
|
return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
|
|
296
301
|
}
|
|
297
|
-
function
|
|
302
|
+
function zt(t, e) {
|
|
298
303
|
if (!isFinite(t) || t === 0) return null;
|
|
299
304
|
var n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf("e"), i = t.slice(0, n);
|
|
300
305
|
return [
|
|
@@ -302,28 +307,28 @@ function Rt(t, e) {
|
|
|
302
307
|
+t.slice(n + 1)
|
|
303
308
|
];
|
|
304
309
|
}
|
|
305
|
-
function
|
|
306
|
-
return t =
|
|
310
|
+
function vt(t) {
|
|
311
|
+
return t = zt(Math.abs(t)), t ? t[1] : NaN;
|
|
307
312
|
}
|
|
308
|
-
function
|
|
313
|
+
function xr(t, e) {
|
|
309
314
|
return function(n, i) {
|
|
310
315
|
for (var r = n.length, o = [], a = 0, s = t[0], c = 0; r > 0 && s > 0 && (c + s + 1 > i && (s = Math.max(1, i - c)), o.push(n.substring(r -= s, r + s)), !((c += s + 1) > i)); )
|
|
311
316
|
s = t[a = (a + 1) % t.length];
|
|
312
317
|
return o.reverse().join(e);
|
|
313
318
|
};
|
|
314
319
|
}
|
|
315
|
-
function
|
|
320
|
+
function kr(t) {
|
|
316
321
|
return function(e) {
|
|
317
322
|
return e.replace(/[0-9]/g, function(n) {
|
|
318
323
|
return t[+n];
|
|
319
324
|
});
|
|
320
325
|
};
|
|
321
326
|
}
|
|
322
|
-
var
|
|
323
|
-
function
|
|
324
|
-
if (!(e =
|
|
327
|
+
var br = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
328
|
+
function St(t) {
|
|
329
|
+
if (!(e = br.exec(t))) throw new Error("invalid format: " + t);
|
|
325
330
|
var e;
|
|
326
|
-
return new
|
|
331
|
+
return new De({
|
|
327
332
|
fill: e[1],
|
|
328
333
|
align: e[2],
|
|
329
334
|
sign: e[3],
|
|
@@ -336,14 +341,14 @@ function Dt(t) {
|
|
|
336
341
|
type: e[10]
|
|
337
342
|
});
|
|
338
343
|
}
|
|
339
|
-
|
|
340
|
-
function
|
|
344
|
+
St.prototype = De.prototype;
|
|
345
|
+
function De(t) {
|
|
341
346
|
this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
|
|
342
347
|
}
|
|
343
|
-
|
|
348
|
+
De.prototype.toString = function() {
|
|
344
349
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
345
350
|
};
|
|
346
|
-
function
|
|
351
|
+
function _r(t) {
|
|
347
352
|
t: for (var e = t.length, n = 1, i = -1, r; n < e; ++n)
|
|
348
353
|
switch (t[n]) {
|
|
349
354
|
case ".":
|
|
@@ -359,87 +364,87 @@ function Dr(t) {
|
|
|
359
364
|
}
|
|
360
365
|
return i > 0 ? t.slice(0, i) + t.slice(r + 1) : t;
|
|
361
366
|
}
|
|
362
|
-
var
|
|
363
|
-
function
|
|
364
|
-
var n =
|
|
365
|
-
if (!n) return
|
|
366
|
-
var i = n[0], r = n[1], o = r - (
|
|
367
|
-
return o === a ? i : o > a ? i + new Array(o - a + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + new Array(1 - o).join("0") +
|
|
367
|
+
var Rt;
|
|
368
|
+
function wr(t, e) {
|
|
369
|
+
var n = zt(t, e);
|
|
370
|
+
if (!n) return Rt = void 0, t.toPrecision(e);
|
|
371
|
+
var i = n[0], r = n[1], o = r - (Rt = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, a = i.length;
|
|
372
|
+
return o === a ? i : o > a ? i + new Array(o - a + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + new Array(1 - o).join("0") + zt(t, Math.max(0, e + o - 1))[0];
|
|
368
373
|
}
|
|
369
|
-
function
|
|
370
|
-
var n =
|
|
374
|
+
function Qe(t, e) {
|
|
375
|
+
var n = zt(t, e);
|
|
371
376
|
if (!n) return t + "";
|
|
372
377
|
var i = n[0], r = n[1];
|
|
373
378
|
return r < 0 ? "0." + new Array(-r).join("0") + i : i.length > r + 1 ? i.slice(0, r + 1) + "." + i.slice(r + 1) : i + new Array(r - i.length + 2).join("0");
|
|
374
379
|
}
|
|
375
|
-
const
|
|
380
|
+
const Je = {
|
|
376
381
|
"%": (t, e) => (t * 100).toFixed(e),
|
|
377
382
|
b: (t) => Math.round(t).toString(2),
|
|
378
383
|
c: (t) => t + "",
|
|
379
|
-
d:
|
|
384
|
+
d: yr,
|
|
380
385
|
e: (t, e) => t.toExponential(e),
|
|
381
386
|
f: (t, e) => t.toFixed(e),
|
|
382
387
|
g: (t, e) => t.toPrecision(e),
|
|
383
388
|
o: (t) => Math.round(t).toString(8),
|
|
384
|
-
p: (t, e) =>
|
|
385
|
-
r:
|
|
386
|
-
s:
|
|
389
|
+
p: (t, e) => Qe(t * 100, e),
|
|
390
|
+
r: Qe,
|
|
391
|
+
s: wr,
|
|
387
392
|
X: (t) => Math.round(t).toString(16).toUpperCase(),
|
|
388
393
|
x: (t) => Math.round(t).toString(16)
|
|
389
394
|
};
|
|
390
|
-
function
|
|
395
|
+
function Ke(t) {
|
|
391
396
|
return t;
|
|
392
397
|
}
|
|
393
|
-
var
|
|
394
|
-
function
|
|
395
|
-
var e = t.grouping === void 0 || t.thousands === void 0 ?
|
|
398
|
+
var tn = Array.prototype.map, en = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
399
|
+
function Mr(t) {
|
|
400
|
+
var e = t.grouping === void 0 || t.thousands === void 0 ? Ke : xr(tn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", i = t.currency === void 0 ? "" : t.currency[1] + "", r = t.decimal === void 0 ? "." : t.decimal + "", o = t.numerals === void 0 ? Ke : kr(tn.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", s = t.minus === void 0 ? "−" : t.minus + "", c = t.nan === void 0 ? "NaN" : t.nan + "";
|
|
396
401
|
function l(h, u) {
|
|
397
|
-
h =
|
|
398
|
-
var f = h.fill,
|
|
399
|
-
|
|
400
|
-
var
|
|
401
|
-
|
|
402
|
-
function
|
|
403
|
-
var
|
|
404
|
-
if (
|
|
405
|
-
|
|
402
|
+
h = St(h);
|
|
403
|
+
var f = h.fill, y = h.align, m = h.sign, b = h.symbol, w = h.zero, P = h.width, F = h.comma, S = h.precision, Y = h.trim, p = h.type;
|
|
404
|
+
p === "n" ? (F = !0, p = "g") : Je[p] || (S === void 0 && (S = 12), Y = !0, p = "g"), (w || f === "0" && y === "=") && (w = !0, f = "0", y = "=");
|
|
405
|
+
var C = (u && u.prefix !== void 0 ? u.prefix : "") + (b === "$" ? n : b === "#" && /[boxX]/.test(p) ? "0" + p.toLowerCase() : ""), V = (b === "$" ? i : /[%p]/.test(p) ? a : "") + (u && u.suffix !== void 0 ? u.suffix : ""), q = Je[p], G = /[defgprs%]/.test(p);
|
|
406
|
+
S = S === void 0 ? 6 : /[gprs]/.test(p) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
|
|
407
|
+
function j(k) {
|
|
408
|
+
var I = C, O = V, et, Ft, ct;
|
|
409
|
+
if (p === "c")
|
|
410
|
+
O = q(k) + O, k = "";
|
|
406
411
|
else {
|
|
407
412
|
k = +k;
|
|
408
|
-
var
|
|
409
|
-
if (k = isNaN(k) ? c :
|
|
410
|
-
for (
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
+
var lt = k < 0 || 1 / k < 0;
|
|
414
|
+
if (k = isNaN(k) ? c : q(Math.abs(k), S), Y && (k = _r(k)), lt && +k == 0 && m !== "+" && (lt = !1), I = (lt ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + I, O = (p === "s" && !isNaN(k) && Rt !== void 0 ? en[8 + Rt / 3] : "") + O + (lt && m === "(" ? ")" : ""), G) {
|
|
415
|
+
for (et = -1, Ft = k.length; ++et < Ft; )
|
|
416
|
+
if (ct = k.charCodeAt(et), 48 > ct || ct > 57) {
|
|
417
|
+
O = (ct === 46 ? r + k.slice(et + 1) : k.slice(et)) + O, k = k.slice(0, et);
|
|
413
418
|
break;
|
|
414
419
|
}
|
|
415
420
|
}
|
|
416
421
|
}
|
|
417
|
-
|
|
418
|
-
var
|
|
419
|
-
switch (
|
|
422
|
+
F && !w && (k = e(k, 1 / 0));
|
|
423
|
+
var ut = I.length + k.length + O.length, E = ut < P ? new Array(P - ut + 1).join(f) : "";
|
|
424
|
+
switch (F && w && (k = e(E + k, E.length ? P - O.length : 1 / 0), E = ""), y) {
|
|
420
425
|
case "<":
|
|
421
|
-
k =
|
|
426
|
+
k = I + k + O + E;
|
|
422
427
|
break;
|
|
423
428
|
case "=":
|
|
424
|
-
k =
|
|
429
|
+
k = I + E + k + O;
|
|
425
430
|
break;
|
|
426
431
|
case "^":
|
|
427
|
-
k =
|
|
432
|
+
k = E.slice(0, ut = E.length >> 1) + I + k + O + E.slice(ut);
|
|
428
433
|
break;
|
|
429
434
|
default:
|
|
430
|
-
k =
|
|
435
|
+
k = E + I + k + O;
|
|
431
436
|
break;
|
|
432
437
|
}
|
|
433
438
|
return o(k);
|
|
434
439
|
}
|
|
435
|
-
return
|
|
440
|
+
return j.toString = function() {
|
|
436
441
|
return h + "";
|
|
437
|
-
},
|
|
442
|
+
}, j;
|
|
438
443
|
}
|
|
439
444
|
function d(h, u) {
|
|
440
|
-
var f = Math.max(-8, Math.min(8, Math.floor(
|
|
441
|
-
return function(
|
|
442
|
-
return m(
|
|
445
|
+
var f = Math.max(-8, Math.min(8, Math.floor(vt(u) / 3))) * 3, y = Math.pow(10, -f), m = l((h = St(h), h.type = "f", h), { suffix: en[8 + f / 3] });
|
|
446
|
+
return function(b) {
|
|
447
|
+
return m(y * b);
|
|
443
448
|
};
|
|
444
449
|
}
|
|
445
450
|
return {
|
|
@@ -447,60 +452,60 @@ function Fr(t) {
|
|
|
447
452
|
formatPrefix: d
|
|
448
453
|
};
|
|
449
454
|
}
|
|
450
|
-
var
|
|
451
|
-
|
|
455
|
+
var Yt, Ae, Rn;
|
|
456
|
+
Tr({
|
|
452
457
|
thousands: ",",
|
|
453
458
|
grouping: [3],
|
|
454
459
|
currency: ["$", ""]
|
|
455
460
|
});
|
|
456
|
-
function
|
|
457
|
-
return
|
|
461
|
+
function Tr(t) {
|
|
462
|
+
return Yt = Mr(t), Ae = Yt.format, Rn = Yt.formatPrefix, Yt;
|
|
458
463
|
}
|
|
459
|
-
function
|
|
460
|
-
return Math.max(0, -
|
|
464
|
+
function Cr(t) {
|
|
465
|
+
return Math.max(0, -vt(Math.abs(t)));
|
|
461
466
|
}
|
|
462
|
-
function
|
|
463
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(
|
|
467
|
+
function Sr(t, e) {
|
|
468
|
+
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(vt(e) / 3))) * 3 - vt(Math.abs(t)));
|
|
464
469
|
}
|
|
465
|
-
function
|
|
466
|
-
return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0,
|
|
470
|
+
function Dr(t, e) {
|
|
471
|
+
return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, vt(e) - vt(t)) + 1;
|
|
467
472
|
}
|
|
468
|
-
function
|
|
469
|
-
var r =
|
|
470
|
-
switch (i =
|
|
473
|
+
function Ar(t, e, n, i) {
|
|
474
|
+
var r = me(t, e, n), o;
|
|
475
|
+
switch (i = St(i ?? ",f"), i.type) {
|
|
471
476
|
case "s": {
|
|
472
477
|
var a = Math.max(Math.abs(t), Math.abs(e));
|
|
473
|
-
return i.precision == null && !isNaN(o =
|
|
478
|
+
return i.precision == null && !isNaN(o = Sr(r, a)) && (i.precision = o), Rn(i, a);
|
|
474
479
|
}
|
|
475
480
|
case "":
|
|
476
481
|
case "e":
|
|
477
482
|
case "g":
|
|
478
483
|
case "p":
|
|
479
484
|
case "r": {
|
|
480
|
-
i.precision == null && !isNaN(o =
|
|
485
|
+
i.precision == null && !isNaN(o = Dr(r, Math.max(Math.abs(t), Math.abs(e)))) && (i.precision = o - (i.type === "e"));
|
|
481
486
|
break;
|
|
482
487
|
}
|
|
483
488
|
case "f":
|
|
484
489
|
case "%": {
|
|
485
|
-
i.precision == null && !isNaN(o =
|
|
490
|
+
i.precision == null && !isNaN(o = Cr(r)) && (i.precision = o - (i.type === "%") * 2);
|
|
486
491
|
break;
|
|
487
492
|
}
|
|
488
493
|
}
|
|
489
|
-
return
|
|
494
|
+
return Ae(i);
|
|
490
495
|
}
|
|
491
|
-
function
|
|
496
|
+
function ot(t) {
|
|
492
497
|
var e = t.domain;
|
|
493
498
|
return t.ticks = function(n) {
|
|
494
499
|
var i = e();
|
|
495
|
-
return
|
|
500
|
+
return de(i[0], i[i.length - 1], n ?? 10);
|
|
496
501
|
}, t.tickFormat = function(n, i) {
|
|
497
502
|
var r = e();
|
|
498
|
-
return
|
|
503
|
+
return Ar(r[0], r[r.length - 1], n ?? 10, i);
|
|
499
504
|
}, t.nice = function(n) {
|
|
500
505
|
n == null && (n = 10);
|
|
501
506
|
var i = e(), r = 0, o = i.length - 1, a = i[r], s = i[o], c, l, d = 10;
|
|
502
507
|
for (s < a && (l = a, a = s, s = l, l = r, r = o, o = l); d-- > 0; ) {
|
|
503
|
-
if (l =
|
|
508
|
+
if (l = ge(a, s, n), l === c)
|
|
504
509
|
return i[r] = a, i[o] = s, e(i);
|
|
505
510
|
if (l > 0)
|
|
506
511
|
a = Math.floor(a / l) * l, s = Math.ceil(s / l) * l;
|
|
@@ -513,59 +518,59 @@ function st(t) {
|
|
|
513
518
|
return t;
|
|
514
519
|
}, t;
|
|
515
520
|
}
|
|
516
|
-
function
|
|
521
|
+
function Wn() {
|
|
517
522
|
var t = zn();
|
|
518
523
|
return t.copy = function() {
|
|
519
|
-
return
|
|
520
|
-
},
|
|
524
|
+
return Dt(t, Wn());
|
|
525
|
+
}, X.apply(t, arguments), ot(t);
|
|
521
526
|
}
|
|
522
|
-
function
|
|
527
|
+
function $n(t) {
|
|
523
528
|
var e;
|
|
524
529
|
function n(i) {
|
|
525
530
|
return i == null || isNaN(i = +i) ? e : i;
|
|
526
531
|
}
|
|
527
532
|
return n.invert = n, n.domain = n.range = function(i) {
|
|
528
|
-
return arguments.length ? (t = Array.from(i,
|
|
533
|
+
return arguments.length ? (t = Array.from(i, pe), n) : t.slice();
|
|
529
534
|
}, n.unknown = function(i) {
|
|
530
535
|
return arguments.length ? (e = i, n) : e;
|
|
531
536
|
}, n.copy = function() {
|
|
532
|
-
return
|
|
533
|
-
}, t = arguments.length ? Array.from(t,
|
|
537
|
+
return $n(t).unknown(e);
|
|
538
|
+
}, t = arguments.length ? Array.from(t, pe) : [0, 1], ot(n);
|
|
534
539
|
}
|
|
535
|
-
function
|
|
540
|
+
function Hn(t, e) {
|
|
536
541
|
t = t.slice();
|
|
537
542
|
var n = 0, i = t.length - 1, r = t[n], o = t[i], a;
|
|
538
543
|
return o < r && (a = n, n = i, i = a, a = r, r = o, o = a), t[n] = e.floor(r), t[i] = e.ceil(o), t;
|
|
539
544
|
}
|
|
540
|
-
function
|
|
545
|
+
function nn(t) {
|
|
541
546
|
return Math.log(t);
|
|
542
547
|
}
|
|
543
|
-
function
|
|
548
|
+
function rn(t) {
|
|
544
549
|
return Math.exp(t);
|
|
545
550
|
}
|
|
546
|
-
function
|
|
551
|
+
function Fr(t) {
|
|
547
552
|
return -Math.log(-t);
|
|
548
553
|
}
|
|
549
|
-
function
|
|
554
|
+
function Ur(t) {
|
|
550
555
|
return -Math.exp(-t);
|
|
551
556
|
}
|
|
552
|
-
function
|
|
557
|
+
function Yr(t) {
|
|
553
558
|
return isFinite(t) ? +("1e" + t) : t < 0 ? 0 : t;
|
|
554
559
|
}
|
|
555
|
-
function
|
|
556
|
-
return t === 10 ?
|
|
560
|
+
function Pr(t) {
|
|
561
|
+
return t === 10 ? Yr : t === Math.E ? Math.exp : (e) => Math.pow(t, e);
|
|
557
562
|
}
|
|
558
|
-
function
|
|
563
|
+
function Nr(t) {
|
|
559
564
|
return t === Math.E ? Math.log : t === 10 && Math.log10 || t === 2 && Math.log2 || (t = Math.log(t), (e) => Math.log(e) / t);
|
|
560
565
|
}
|
|
561
|
-
function
|
|
566
|
+
function on(t) {
|
|
562
567
|
return (e, n) => -t(-e, n);
|
|
563
568
|
}
|
|
564
|
-
function
|
|
565
|
-
const e = t(
|
|
569
|
+
function Lr(t) {
|
|
570
|
+
const e = t(nn, rn), n = e.domain;
|
|
566
571
|
let i = 10, r, o;
|
|
567
572
|
function a() {
|
|
568
|
-
return r =
|
|
573
|
+
return r = Nr(i), o = Pr(i), n()[0] < 0 ? (r = on(r), o = on(o), t(Fr, Ur)) : t(nn, rn), e;
|
|
569
574
|
}
|
|
570
575
|
return e.base = function(s) {
|
|
571
576
|
return arguments.length ? (i = +s, a()) : i;
|
|
@@ -576,103 +581,103 @@ function Er(t) {
|
|
|
576
581
|
let l = c[0], d = c[c.length - 1];
|
|
577
582
|
const h = d < l;
|
|
578
583
|
h && ([l, d] = [d, l]);
|
|
579
|
-
let u = r(l), f = r(d),
|
|
580
|
-
const
|
|
581
|
-
let
|
|
582
|
-
if (!(i % 1) && f - u <
|
|
584
|
+
let u = r(l), f = r(d), y, m;
|
|
585
|
+
const b = s == null ? 10 : +s;
|
|
586
|
+
let w = [];
|
|
587
|
+
if (!(i % 1) && f - u < b) {
|
|
583
588
|
if (u = Math.floor(u), f = Math.ceil(f), l > 0) {
|
|
584
589
|
for (; u <= f; ++u)
|
|
585
|
-
for (
|
|
586
|
-
if (m = u < 0 ?
|
|
590
|
+
for (y = 1; y < i; ++y)
|
|
591
|
+
if (m = u < 0 ? y / o(-u) : y * o(u), !(m < l)) {
|
|
587
592
|
if (m > d) break;
|
|
588
|
-
|
|
593
|
+
w.push(m);
|
|
589
594
|
}
|
|
590
595
|
} else for (; u <= f; ++u)
|
|
591
|
-
for (
|
|
592
|
-
if (m = u > 0 ?
|
|
596
|
+
for (y = i - 1; y >= 1; --y)
|
|
597
|
+
if (m = u > 0 ? y / o(-u) : y * o(u), !(m < l)) {
|
|
593
598
|
if (m > d) break;
|
|
594
|
-
|
|
599
|
+
w.push(m);
|
|
595
600
|
}
|
|
596
|
-
|
|
601
|
+
w.length * 2 < b && (w = de(l, d, b));
|
|
597
602
|
} else
|
|
598
|
-
|
|
599
|
-
return h ?
|
|
603
|
+
w = de(u, f, Math.min(f - u, b)).map(o);
|
|
604
|
+
return h ? w.reverse() : w;
|
|
600
605
|
}, e.tickFormat = (s, c) => {
|
|
601
|
-
if (s == null && (s = 10), c == null && (c = i === 10 ? "s" : ","), typeof c != "function" && (!(i % 1) && (c =
|
|
606
|
+
if (s == null && (s = 10), c == null && (c = i === 10 ? "s" : ","), typeof c != "function" && (!(i % 1) && (c = St(c)).precision == null && (c.trim = !0), c = Ae(c)), s === 1 / 0) return c;
|
|
602
607
|
const l = Math.max(1, i * s / e.ticks().length);
|
|
603
608
|
return (d) => {
|
|
604
609
|
let h = d / o(Math.round(r(d)));
|
|
605
610
|
return h * i < i - 0.5 && (h *= i), h <= l ? c(d) : "";
|
|
606
611
|
};
|
|
607
|
-
}, e.nice = () => n(
|
|
612
|
+
}, e.nice = () => n(Hn(n(), {
|
|
608
613
|
floor: (s) => o(Math.floor(r(s))),
|
|
609
614
|
ceil: (s) => o(Math.ceil(r(s)))
|
|
610
615
|
})), e;
|
|
611
616
|
}
|
|
612
|
-
function
|
|
613
|
-
const t =
|
|
614
|
-
return t.copy = () =>
|
|
617
|
+
function En() {
|
|
618
|
+
const t = Lr(Kt()).domain([1, 10]);
|
|
619
|
+
return t.copy = () => Dt(t, En()).base(t.base()), X.apply(t, arguments), t;
|
|
615
620
|
}
|
|
616
|
-
function
|
|
621
|
+
function an(t) {
|
|
617
622
|
return function(e) {
|
|
618
623
|
return Math.sign(e) * Math.log1p(Math.abs(e / t));
|
|
619
624
|
};
|
|
620
625
|
}
|
|
621
|
-
function
|
|
626
|
+
function sn(t) {
|
|
622
627
|
return function(e) {
|
|
623
628
|
return Math.sign(e) * Math.expm1(Math.abs(e)) * t;
|
|
624
629
|
};
|
|
625
630
|
}
|
|
626
|
-
function
|
|
627
|
-
var e = 1, n = t(
|
|
631
|
+
function Br(t) {
|
|
632
|
+
var e = 1, n = t(an(e), sn(e));
|
|
628
633
|
return n.constant = function(i) {
|
|
629
|
-
return arguments.length ? t(
|
|
630
|
-
},
|
|
634
|
+
return arguments.length ? t(an(e = +i), sn(e)) : e;
|
|
635
|
+
}, ot(n);
|
|
631
636
|
}
|
|
632
|
-
function
|
|
633
|
-
var t =
|
|
637
|
+
function Xn() {
|
|
638
|
+
var t = Br(Kt());
|
|
634
639
|
return t.copy = function() {
|
|
635
|
-
return
|
|
636
|
-
},
|
|
640
|
+
return Dt(t, Xn()).constant(t.constant());
|
|
641
|
+
}, X.apply(t, arguments);
|
|
637
642
|
}
|
|
638
|
-
function
|
|
643
|
+
function cn(t) {
|
|
639
644
|
return function(e) {
|
|
640
645
|
return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t);
|
|
641
646
|
};
|
|
642
647
|
}
|
|
643
|
-
function
|
|
648
|
+
function Ir(t) {
|
|
644
649
|
return t < 0 ? -Math.sqrt(-t) : Math.sqrt(t);
|
|
645
650
|
}
|
|
646
|
-
function
|
|
651
|
+
function Or(t) {
|
|
647
652
|
return t < 0 ? -t * t : t * t;
|
|
648
653
|
}
|
|
649
|
-
function
|
|
650
|
-
var e = t(
|
|
654
|
+
function zr(t) {
|
|
655
|
+
var e = t(R, R), n = 1;
|
|
651
656
|
function i() {
|
|
652
|
-
return n === 1 ? t(
|
|
657
|
+
return n === 1 ? t(R, R) : n === 0.5 ? t(Ir, Or) : t(cn(n), cn(1 / n));
|
|
653
658
|
}
|
|
654
659
|
return e.exponent = function(r) {
|
|
655
660
|
return arguments.length ? (n = +r, i()) : n;
|
|
656
|
-
},
|
|
661
|
+
}, ot(e);
|
|
657
662
|
}
|
|
658
|
-
function
|
|
659
|
-
var t =
|
|
663
|
+
function Fe() {
|
|
664
|
+
var t = zr(Kt());
|
|
660
665
|
return t.copy = function() {
|
|
661
|
-
return
|
|
662
|
-
},
|
|
666
|
+
return Dt(t, Fe()).exponent(t.exponent());
|
|
667
|
+
}, X.apply(t, arguments), t;
|
|
663
668
|
}
|
|
664
|
-
function
|
|
665
|
-
return
|
|
669
|
+
function Rr() {
|
|
670
|
+
return Fe.apply(null, arguments).exponent(0.5);
|
|
666
671
|
}
|
|
667
|
-
function
|
|
672
|
+
function Vn() {
|
|
668
673
|
var t = [], e = [], n = [], i;
|
|
669
674
|
function r() {
|
|
670
675
|
var a = 0, s = Math.max(1, e.length);
|
|
671
|
-
for (n = new Array(s - 1); ++a < s; ) n[a - 1] =
|
|
676
|
+
for (n = new Array(s - 1); ++a < s; ) n[a - 1] = cr(t, a / s);
|
|
672
677
|
return o;
|
|
673
678
|
}
|
|
674
679
|
function o(a) {
|
|
675
|
-
return a == null || isNaN(a = +a) ? i : e[
|
|
680
|
+
return a == null || isNaN(a = +a) ? i : e[Jt(n, a)];
|
|
676
681
|
}
|
|
677
682
|
return o.invertExtent = function(a) {
|
|
678
683
|
var s = e.indexOf(a);
|
|
@@ -684,7 +689,7 @@ function qn() {
|
|
|
684
689
|
if (!arguments.length) return t.slice();
|
|
685
690
|
t = [];
|
|
686
691
|
for (let s of a) s != null && !isNaN(s = +s) && t.push(s);
|
|
687
|
-
return t.sort(
|
|
692
|
+
return t.sort(Fn), r();
|
|
688
693
|
}, o.range = function(a) {
|
|
689
694
|
return arguments.length ? (e = Array.from(a), r()) : e.slice();
|
|
690
695
|
}, o.unknown = function(a) {
|
|
@@ -692,13 +697,13 @@ function qn() {
|
|
|
692
697
|
}, o.quantiles = function() {
|
|
693
698
|
return n.slice();
|
|
694
699
|
}, o.copy = function() {
|
|
695
|
-
return
|
|
696
|
-
},
|
|
700
|
+
return Vn().domain(t).range(e).unknown(i);
|
|
701
|
+
}, X.apply(o, arguments);
|
|
697
702
|
}
|
|
698
|
-
function
|
|
703
|
+
function jn() {
|
|
699
704
|
var t = 0, e = 1, n = 1, i = [0.5], r = [0, 1], o;
|
|
700
705
|
function a(c) {
|
|
701
|
-
return c != null && c <= c ? r[
|
|
706
|
+
return c != null && c <= c ? r[Jt(i, c, 0, n)] : o;
|
|
702
707
|
}
|
|
703
708
|
function s() {
|
|
704
709
|
var c = -1;
|
|
@@ -717,13 +722,13 @@ function Zn() {
|
|
|
717
722
|
}, a.thresholds = function() {
|
|
718
723
|
return i.slice();
|
|
719
724
|
}, a.copy = function() {
|
|
720
|
-
return
|
|
721
|
-
},
|
|
725
|
+
return jn().domain([t, e]).range(r).unknown(o);
|
|
726
|
+
}, X.apply(ot(a), arguments);
|
|
722
727
|
}
|
|
723
|
-
function
|
|
728
|
+
function qn() {
|
|
724
729
|
var t = [0.5], e = [0, 1], n, i = 1;
|
|
725
730
|
function r(o) {
|
|
726
|
-
return o != null && o <= o ? e[
|
|
731
|
+
return o != null && o <= o ? e[Jt(t, o, 0, i)] : n;
|
|
727
732
|
}
|
|
728
733
|
return r.domain = function(o) {
|
|
729
734
|
return arguments.length ? (t = Array.from(o), i = Math.min(t.length, e.length - 1), r) : t.slice();
|
|
@@ -735,11 +740,11 @@ function Qn() {
|
|
|
735
740
|
}, r.unknown = function(o) {
|
|
736
741
|
return arguments.length ? (n = o, r) : n;
|
|
737
742
|
}, r.copy = function() {
|
|
738
|
-
return
|
|
739
|
-
},
|
|
743
|
+
return qn().domain(t).range(e).unknown(n);
|
|
744
|
+
}, X.apply(r, arguments);
|
|
740
745
|
}
|
|
741
|
-
const
|
|
742
|
-
function
|
|
746
|
+
const ce = /* @__PURE__ */ new Date(), le = /* @__PURE__ */ new Date();
|
|
747
|
+
function N(t, e, n, i) {
|
|
743
748
|
function r(o) {
|
|
744
749
|
return t(o = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+o)), o;
|
|
745
750
|
}
|
|
@@ -754,7 +759,7 @@ function W(t, e, n, i) {
|
|
|
754
759
|
c.push(l = /* @__PURE__ */ new Date(+o)), e(o, s), t(o);
|
|
755
760
|
while (l < o && o < a);
|
|
756
761
|
return c;
|
|
757
|
-
}, r.filter = (o) =>
|
|
762
|
+
}, r.filter = (o) => N((a) => {
|
|
758
763
|
if (a >= a) for (; t(a), !o(a); ) a.setTime(a - 1);
|
|
759
764
|
}, (a, s) => {
|
|
760
765
|
if (a >= a)
|
|
@@ -764,642 +769,642 @@ function W(t, e, n, i) {
|
|
|
764
769
|
else for (; --s >= 0; )
|
|
765
770
|
for (; e(a, 1), !o(a); )
|
|
766
771
|
;
|
|
767
|
-
}), n && (r.count = (o, a) => (
|
|
772
|
+
}), n && (r.count = (o, a) => (ce.setTime(+o), le.setTime(+a), t(ce), t(le), Math.floor(n(ce, le))), r.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? r.filter(i ? (a) => i(a) % o === 0 : (a) => r.count(0, a) % o === 0) : r)), r;
|
|
768
773
|
}
|
|
769
|
-
const
|
|
774
|
+
const Wt = N(() => {
|
|
770
775
|
}, (t, e) => {
|
|
771
776
|
t.setTime(+t + e);
|
|
772
777
|
}, (t, e) => e - t);
|
|
773
|
-
|
|
778
|
+
Wt.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? N((e) => {
|
|
774
779
|
e.setTime(Math.floor(e / t) * t);
|
|
775
780
|
}, (e, n) => {
|
|
776
781
|
e.setTime(+e + n * t);
|
|
777
|
-
}, (e, n) => (n - e) / t) :
|
|
778
|
-
|
|
779
|
-
const
|
|
782
|
+
}, (e, n) => (n - e) / t) : Wt);
|
|
783
|
+
Wt.range;
|
|
784
|
+
const Z = 1e3, H = Z * 60, Q = H * 60, J = Q * 24, Ue = J * 7, ln = J * 30, ue = J * 365, rt = N((t) => {
|
|
780
785
|
t.setTime(t - t.getMilliseconds());
|
|
781
786
|
}, (t, e) => {
|
|
782
|
-
t.setTime(+t + e *
|
|
783
|
-
}, (t, e) => (e - t) /
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
t.setTime(t - t.getMilliseconds() - t.getSeconds() *
|
|
787
|
+
t.setTime(+t + e * Z);
|
|
788
|
+
}, (t, e) => (e - t) / Z, (t) => t.getUTCSeconds());
|
|
789
|
+
rt.range;
|
|
790
|
+
const Ye = N((t) => {
|
|
791
|
+
t.setTime(t - t.getMilliseconds() - t.getSeconds() * Z);
|
|
787
792
|
}, (t, e) => {
|
|
788
|
-
t.setTime(+t + e *
|
|
789
|
-
}, (t, e) => (e - t) /
|
|
790
|
-
|
|
791
|
-
const
|
|
793
|
+
t.setTime(+t + e * H);
|
|
794
|
+
}, (t, e) => (e - t) / H, (t) => t.getMinutes());
|
|
795
|
+
Ye.range;
|
|
796
|
+
const Pe = N((t) => {
|
|
792
797
|
t.setUTCSeconds(0, 0);
|
|
793
798
|
}, (t, e) => {
|
|
794
|
-
t.setTime(+t + e *
|
|
795
|
-
}, (t, e) => (e - t) /
|
|
796
|
-
|
|
797
|
-
const
|
|
798
|
-
t.setTime(t - t.getMilliseconds() - t.getSeconds() *
|
|
799
|
+
t.setTime(+t + e * H);
|
|
800
|
+
}, (t, e) => (e - t) / H, (t) => t.getUTCMinutes());
|
|
801
|
+
Pe.range;
|
|
802
|
+
const Ne = N((t) => {
|
|
803
|
+
t.setTime(t - t.getMilliseconds() - t.getSeconds() * Z - t.getMinutes() * H);
|
|
799
804
|
}, (t, e) => {
|
|
800
|
-
t.setTime(+t + e *
|
|
801
|
-
}, (t, e) => (e - t) /
|
|
802
|
-
|
|
803
|
-
const
|
|
805
|
+
t.setTime(+t + e * Q);
|
|
806
|
+
}, (t, e) => (e - t) / Q, (t) => t.getHours());
|
|
807
|
+
Ne.range;
|
|
808
|
+
const Le = N((t) => {
|
|
804
809
|
t.setUTCMinutes(0, 0, 0);
|
|
805
810
|
}, (t, e) => {
|
|
806
|
-
t.setTime(+t + e *
|
|
807
|
-
}, (t, e) => (e - t) /
|
|
808
|
-
|
|
809
|
-
const
|
|
811
|
+
t.setTime(+t + e * Q);
|
|
812
|
+
}, (t, e) => (e - t) / Q, (t) => t.getUTCHours());
|
|
813
|
+
Le.range;
|
|
814
|
+
const At = N(
|
|
810
815
|
(t) => t.setHours(0, 0, 0, 0),
|
|
811
816
|
(t, e) => t.setDate(t.getDate() + e),
|
|
812
|
-
(t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) *
|
|
817
|
+
(t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * H) / J,
|
|
813
818
|
(t) => t.getDate() - 1
|
|
814
819
|
);
|
|
815
|
-
|
|
816
|
-
const te =
|
|
820
|
+
At.range;
|
|
821
|
+
const te = N((t) => {
|
|
817
822
|
t.setUTCHours(0, 0, 0, 0);
|
|
818
823
|
}, (t, e) => {
|
|
819
824
|
t.setUTCDate(t.getUTCDate() + e);
|
|
820
|
-
}, (t, e) => (e - t) /
|
|
825
|
+
}, (t, e) => (e - t) / J, (t) => t.getUTCDate() - 1);
|
|
821
826
|
te.range;
|
|
822
|
-
const
|
|
827
|
+
const Gn = N((t) => {
|
|
823
828
|
t.setUTCHours(0, 0, 0, 0);
|
|
824
829
|
}, (t, e) => {
|
|
825
830
|
t.setUTCDate(t.getUTCDate() + e);
|
|
826
|
-
}, (t, e) => (e - t) /
|
|
827
|
-
|
|
828
|
-
function
|
|
829
|
-
return
|
|
831
|
+
}, (t, e) => (e - t) / J, (t) => Math.floor(t / J));
|
|
832
|
+
Gn.range;
|
|
833
|
+
function at(t) {
|
|
834
|
+
return N((e) => {
|
|
830
835
|
e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
|
|
831
836
|
}, (e, n) => {
|
|
832
837
|
e.setDate(e.getDate() + n * 7);
|
|
833
|
-
}, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) *
|
|
838
|
+
}, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * H) / Ue);
|
|
834
839
|
}
|
|
835
|
-
const ee =
|
|
840
|
+
const ee = at(0), $t = at(1), Wr = at(2), $r = at(3), yt = at(4), Hr = at(5), Er = at(6);
|
|
836
841
|
ee.range;
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
function
|
|
844
|
-
return
|
|
842
|
+
$t.range;
|
|
843
|
+
Wr.range;
|
|
844
|
+
$r.range;
|
|
845
|
+
yt.range;
|
|
846
|
+
Hr.range;
|
|
847
|
+
Er.range;
|
|
848
|
+
function st(t) {
|
|
849
|
+
return N((e) => {
|
|
845
850
|
e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
|
|
846
851
|
}, (e, n) => {
|
|
847
852
|
e.setUTCDate(e.getUTCDate() + n * 7);
|
|
848
|
-
}, (e, n) => (n - e) /
|
|
853
|
+
}, (e, n) => (n - e) / Ue);
|
|
849
854
|
}
|
|
850
|
-
const ne =
|
|
855
|
+
const ne = st(0), Ht = st(1), Xr = st(2), Vr = st(3), xt = st(4), jr = st(5), qr = st(6);
|
|
851
856
|
ne.range;
|
|
852
857
|
Ht.range;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
const
|
|
858
|
+
Xr.range;
|
|
859
|
+
Vr.range;
|
|
860
|
+
xt.range;
|
|
861
|
+
jr.range;
|
|
862
|
+
qr.range;
|
|
863
|
+
const Be = N((t) => {
|
|
859
864
|
t.setDate(1), t.setHours(0, 0, 0, 0);
|
|
860
865
|
}, (t, e) => {
|
|
861
866
|
t.setMonth(t.getMonth() + e);
|
|
862
867
|
}, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
|
|
863
|
-
|
|
864
|
-
const
|
|
868
|
+
Be.range;
|
|
869
|
+
const Ie = N((t) => {
|
|
865
870
|
t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
|
|
866
871
|
}, (t, e) => {
|
|
867
872
|
t.setUTCMonth(t.getUTCMonth() + e);
|
|
868
873
|
}, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
|
|
869
|
-
|
|
870
|
-
const
|
|
874
|
+
Ie.range;
|
|
875
|
+
const K = N((t) => {
|
|
871
876
|
t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
|
|
872
877
|
}, (t, e) => {
|
|
873
878
|
t.setFullYear(t.getFullYear() + e);
|
|
874
879
|
}, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
|
|
875
|
-
|
|
880
|
+
K.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : N((e) => {
|
|
876
881
|
e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
877
882
|
}, (e, n) => {
|
|
878
883
|
e.setFullYear(e.getFullYear() + n * t);
|
|
879
884
|
});
|
|
880
|
-
|
|
881
|
-
const
|
|
885
|
+
K.range;
|
|
886
|
+
const tt = N((t) => {
|
|
882
887
|
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
883
888
|
}, (t, e) => {
|
|
884
889
|
t.setUTCFullYear(t.getUTCFullYear() + e);
|
|
885
890
|
}, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
|
|
886
|
-
|
|
891
|
+
tt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : N((e) => {
|
|
887
892
|
e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
888
893
|
}, (e, n) => {
|
|
889
894
|
e.setUTCFullYear(e.getUTCFullYear() + n * t);
|
|
890
895
|
});
|
|
891
|
-
|
|
892
|
-
function
|
|
896
|
+
tt.range;
|
|
897
|
+
function Zn(t, e, n, i, r, o) {
|
|
893
898
|
const a = [
|
|
894
|
-
[
|
|
895
|
-
[
|
|
896
|
-
[
|
|
897
|
-
[
|
|
898
|
-
[o, 1,
|
|
899
|
-
[o, 5, 5 *
|
|
900
|
-
[o, 15, 15 *
|
|
901
|
-
[o, 30, 30 *
|
|
902
|
-
[r, 1,
|
|
903
|
-
[r, 3, 3 *
|
|
904
|
-
[r, 6, 6 *
|
|
905
|
-
[r, 12, 12 *
|
|
906
|
-
[i, 1,
|
|
907
|
-
[i, 2, 2 *
|
|
908
|
-
[n, 1,
|
|
909
|
-
[e, 1,
|
|
910
|
-
[e, 3, 3 *
|
|
911
|
-
[t, 1,
|
|
899
|
+
[rt, 1, Z],
|
|
900
|
+
[rt, 5, 5 * Z],
|
|
901
|
+
[rt, 15, 15 * Z],
|
|
902
|
+
[rt, 30, 30 * Z],
|
|
903
|
+
[o, 1, H],
|
|
904
|
+
[o, 5, 5 * H],
|
|
905
|
+
[o, 15, 15 * H],
|
|
906
|
+
[o, 30, 30 * H],
|
|
907
|
+
[r, 1, Q],
|
|
908
|
+
[r, 3, 3 * Q],
|
|
909
|
+
[r, 6, 6 * Q],
|
|
910
|
+
[r, 12, 12 * Q],
|
|
911
|
+
[i, 1, J],
|
|
912
|
+
[i, 2, 2 * J],
|
|
913
|
+
[n, 1, Ue],
|
|
914
|
+
[e, 1, ln],
|
|
915
|
+
[e, 3, 3 * ln],
|
|
916
|
+
[t, 1, ue]
|
|
912
917
|
];
|
|
913
918
|
function s(l, d, h) {
|
|
914
919
|
const u = d < l;
|
|
915
920
|
u && ([l, d] = [d, l]);
|
|
916
|
-
const f = h && typeof h.range == "function" ? h : c(l, d, h),
|
|
917
|
-
return u ?
|
|
921
|
+
const f = h && typeof h.range == "function" ? h : c(l, d, h), y = f ? f.range(l, +d + 1) : [];
|
|
922
|
+
return u ? y.reverse() : y;
|
|
918
923
|
}
|
|
919
924
|
function c(l, d, h) {
|
|
920
|
-
const u = Math.abs(d - l) / h, f =
|
|
921
|
-
if (f === a.length) return t.every(
|
|
922
|
-
if (f === 0) return
|
|
923
|
-
const [
|
|
924
|
-
return
|
|
925
|
+
const u = Math.abs(d - l) / h, f = _e(([, , b]) => b).right(a, u);
|
|
926
|
+
if (f === a.length) return t.every(me(l / ue, d / ue, h));
|
|
927
|
+
if (f === 0) return Wt.every(Math.max(me(l, d, h), 1));
|
|
928
|
+
const [y, m] = a[u / a[f - 1][2] < a[f][2] / u ? f - 1 : f];
|
|
929
|
+
return y.every(m);
|
|
925
930
|
}
|
|
926
931
|
return [s, c];
|
|
927
932
|
}
|
|
928
|
-
const [
|
|
929
|
-
function
|
|
933
|
+
const [Gr, Zr] = Zn(tt, Ie, ne, Gn, Le, Pe), [Qr, Jr] = Zn(K, Be, ee, At, Ne, Ye);
|
|
934
|
+
function he(t) {
|
|
930
935
|
if (0 <= t.y && t.y < 100) {
|
|
931
936
|
var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
|
|
932
937
|
return e.setFullYear(t.y), e;
|
|
933
938
|
}
|
|
934
939
|
return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
|
|
935
940
|
}
|
|
936
|
-
function
|
|
941
|
+
function fe(t) {
|
|
937
942
|
if (0 <= t.y && t.y < 100) {
|
|
938
943
|
var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
|
|
939
944
|
return e.setUTCFullYear(t.y), e;
|
|
940
945
|
}
|
|
941
946
|
return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
|
|
942
947
|
}
|
|
943
|
-
function
|
|
948
|
+
function _t(t, e, n) {
|
|
944
949
|
return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
|
|
945
950
|
}
|
|
946
|
-
function
|
|
947
|
-
var e = t.dateTime, n = t.date, i = t.time, r = t.periods, o = t.days, a = t.shortDays, s = t.months, c = t.shortMonths, l =
|
|
948
|
-
a:
|
|
949
|
-
A:
|
|
950
|
-
b:
|
|
951
|
-
B:
|
|
951
|
+
function Kr(t) {
|
|
952
|
+
var e = t.dateTime, n = t.date, i = t.time, r = t.periods, o = t.days, a = t.shortDays, s = t.months, c = t.shortMonths, l = wt(r), d = Mt(r), h = wt(o), u = Mt(o), f = wt(a), y = Mt(a), m = wt(s), b = Mt(s), w = wt(c), P = Mt(c), F = {
|
|
953
|
+
a: ct,
|
|
954
|
+
A: lt,
|
|
955
|
+
b: ut,
|
|
956
|
+
B: E,
|
|
952
957
|
c: null,
|
|
953
|
-
d:
|
|
954
|
-
e:
|
|
955
|
-
f:
|
|
956
|
-
g:
|
|
957
|
-
G:
|
|
958
|
-
H:
|
|
959
|
-
I:
|
|
960
|
-
j:
|
|
961
|
-
L:
|
|
962
|
-
m:
|
|
963
|
-
M:
|
|
964
|
-
p:
|
|
965
|
-
q:
|
|
966
|
-
Q:
|
|
967
|
-
s:
|
|
968
|
-
S:
|
|
969
|
-
u:
|
|
970
|
-
U:
|
|
971
|
-
V:
|
|
972
|
-
w:
|
|
973
|
-
W:
|
|
958
|
+
d: mn,
|
|
959
|
+
e: mn,
|
|
960
|
+
f: wo,
|
|
961
|
+
g: Po,
|
|
962
|
+
G: Lo,
|
|
963
|
+
H: ko,
|
|
964
|
+
I: bo,
|
|
965
|
+
j: _o,
|
|
966
|
+
L: Qn,
|
|
967
|
+
m: Mo,
|
|
968
|
+
M: To,
|
|
969
|
+
p: ki,
|
|
970
|
+
q: bi,
|
|
971
|
+
Q: yn,
|
|
972
|
+
s: xn,
|
|
973
|
+
S: Co,
|
|
974
|
+
u: So,
|
|
975
|
+
U: Do,
|
|
976
|
+
V: Ao,
|
|
977
|
+
w: Fo,
|
|
978
|
+
W: Uo,
|
|
974
979
|
x: null,
|
|
975
980
|
X: null,
|
|
976
|
-
y:
|
|
977
|
-
Y:
|
|
978
|
-
Z:
|
|
979
|
-
"%":
|
|
980
|
-
},
|
|
981
|
-
a:
|
|
982
|
-
A:
|
|
983
|
-
b:
|
|
984
|
-
B:
|
|
981
|
+
y: Yo,
|
|
982
|
+
Y: No,
|
|
983
|
+
Z: Bo,
|
|
984
|
+
"%": vn
|
|
985
|
+
}, S = {
|
|
986
|
+
a: _i,
|
|
987
|
+
A: wi,
|
|
988
|
+
b: Mi,
|
|
989
|
+
B: Ti,
|
|
985
990
|
c: null,
|
|
986
|
-
d:
|
|
987
|
-
e:
|
|
988
|
-
f:
|
|
989
|
-
g:
|
|
990
|
-
G:
|
|
991
|
-
H:
|
|
992
|
-
I:
|
|
993
|
-
j:
|
|
994
|
-
L:
|
|
995
|
-
m:
|
|
996
|
-
M:
|
|
997
|
-
p:
|
|
998
|
-
q:
|
|
999
|
-
Q:
|
|
1000
|
-
s:
|
|
1001
|
-
S:
|
|
1002
|
-
u:
|
|
1003
|
-
U:
|
|
1004
|
-
V:
|
|
1005
|
-
w:
|
|
1006
|
-
W:
|
|
991
|
+
d: pn,
|
|
992
|
+
e: pn,
|
|
993
|
+
f: Ro,
|
|
994
|
+
g: Zo,
|
|
995
|
+
G: Jo,
|
|
996
|
+
H: Io,
|
|
997
|
+
I: Oo,
|
|
998
|
+
j: zo,
|
|
999
|
+
L: Kn,
|
|
1000
|
+
m: Wo,
|
|
1001
|
+
M: $o,
|
|
1002
|
+
p: Ci,
|
|
1003
|
+
q: Si,
|
|
1004
|
+
Q: yn,
|
|
1005
|
+
s: xn,
|
|
1006
|
+
S: Ho,
|
|
1007
|
+
u: Eo,
|
|
1008
|
+
U: Xo,
|
|
1009
|
+
V: Vo,
|
|
1010
|
+
w: jo,
|
|
1011
|
+
W: qo,
|
|
1007
1012
|
x: null,
|
|
1008
1013
|
X: null,
|
|
1009
|
-
y:
|
|
1010
|
-
Y:
|
|
1011
|
-
Z:
|
|
1012
|
-
"%":
|
|
1013
|
-
},
|
|
1014
|
-
a:
|
|
1015
|
-
A:
|
|
1014
|
+
y: Go,
|
|
1015
|
+
Y: Qo,
|
|
1016
|
+
Z: Ko,
|
|
1017
|
+
"%": vn
|
|
1018
|
+
}, Y = {
|
|
1019
|
+
a: G,
|
|
1020
|
+
A: j,
|
|
1016
1021
|
b: k,
|
|
1017
|
-
B:
|
|
1018
|
-
c:
|
|
1019
|
-
d:
|
|
1020
|
-
e:
|
|
1021
|
-
f:
|
|
1022
|
-
g:
|
|
1023
|
-
G:
|
|
1024
|
-
H:
|
|
1025
|
-
I:
|
|
1026
|
-
j:
|
|
1027
|
-
L:
|
|
1028
|
-
m:
|
|
1029
|
-
M:
|
|
1030
|
-
p:
|
|
1031
|
-
q:
|
|
1032
|
-
Q:
|
|
1033
|
-
s:
|
|
1034
|
-
S:
|
|
1035
|
-
u:
|
|
1036
|
-
U:
|
|
1037
|
-
V:
|
|
1038
|
-
w:
|
|
1039
|
-
W:
|
|
1040
|
-
x:
|
|
1041
|
-
X:
|
|
1042
|
-
y:
|
|
1043
|
-
Y:
|
|
1044
|
-
Z:
|
|
1045
|
-
"%":
|
|
1022
|
+
B: I,
|
|
1023
|
+
c: O,
|
|
1024
|
+
d: dn,
|
|
1025
|
+
e: dn,
|
|
1026
|
+
f: po,
|
|
1027
|
+
g: fn,
|
|
1028
|
+
G: hn,
|
|
1029
|
+
H: gn,
|
|
1030
|
+
I: gn,
|
|
1031
|
+
j: ho,
|
|
1032
|
+
L: mo,
|
|
1033
|
+
m: uo,
|
|
1034
|
+
M: fo,
|
|
1035
|
+
p: q,
|
|
1036
|
+
q: lo,
|
|
1037
|
+
Q: yo,
|
|
1038
|
+
s: xo,
|
|
1039
|
+
S: go,
|
|
1040
|
+
u: ro,
|
|
1041
|
+
U: oo,
|
|
1042
|
+
V: ao,
|
|
1043
|
+
w: io,
|
|
1044
|
+
W: so,
|
|
1045
|
+
x: et,
|
|
1046
|
+
X: Ft,
|
|
1047
|
+
y: fn,
|
|
1048
|
+
Y: hn,
|
|
1049
|
+
Z: co,
|
|
1050
|
+
"%": vo
|
|
1046
1051
|
};
|
|
1047
|
-
|
|
1048
|
-
function v
|
|
1049
|
-
return function(
|
|
1050
|
-
var g = [], z = -1,
|
|
1051
|
-
for (
|
|
1052
|
-
|
|
1053
|
-
return g.push(
|
|
1052
|
+
F.x = p(n, F), F.X = p(i, F), F.c = p(e, F), S.x = p(n, S), S.X = p(i, S), S.c = p(e, S);
|
|
1053
|
+
function p(v, _) {
|
|
1054
|
+
return function(M) {
|
|
1055
|
+
var g = [], z = -1, A = 0, W = v.length, $, nt, $e;
|
|
1056
|
+
for (M instanceof Date || (M = /* @__PURE__ */ new Date(+M)); ++z < W; )
|
|
1057
|
+
v.charCodeAt(z) === 37 && (g.push(v.slice(A, z)), (nt = un[$ = v.charAt(++z)]) != null ? $ = v.charAt(++z) : nt = $ === "e" ? " " : "0", ($e = _[$]) && ($ = $e(M, nt)), g.push($), A = z + 1);
|
|
1058
|
+
return g.push(v.slice(A, z)), g.join("");
|
|
1054
1059
|
};
|
|
1055
1060
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return function(
|
|
1058
|
-
var g =
|
|
1059
|
-
if (z !=
|
|
1061
|
+
function C(v, _) {
|
|
1062
|
+
return function(M) {
|
|
1063
|
+
var g = _t(1900, void 0, 1), z = V(g, v, M += "", 0), A, W;
|
|
1064
|
+
if (z != M.length) return null;
|
|
1060
1065
|
if ("Q" in g) return new Date(g.Q);
|
|
1061
1066
|
if ("s" in g) return new Date(g.s * 1e3 + ("L" in g ? g.L : 0));
|
|
1062
|
-
if (
|
|
1067
|
+
if (_ && !("Z" in g) && (g.Z = 0), "p" in g && (g.H = g.H % 12 + g.p * 12), g.m === void 0 && (g.m = "q" in g ? g.q : 0), "V" in g) {
|
|
1063
1068
|
if (g.V < 1 || g.V > 53) return null;
|
|
1064
|
-
"w" in g || (g.w = 1), "Z" in g ? (
|
|
1065
|
-
} else ("W" in g || "U" in g) && ("w" in g || (g.w = "u" in g ? g.u % 7 : "W" in g ? 1 : 0),
|
|
1066
|
-
return "Z" in g ? (g.H += g.Z / 100 | 0, g.M += g.Z % 100,
|
|
1069
|
+
"w" in g || (g.w = 1), "Z" in g ? (A = fe(_t(g.y, 0, 1)), W = A.getUTCDay(), A = W > 4 || W === 0 ? Ht.ceil(A) : Ht(A), A = te.offset(A, (g.V - 1) * 7), g.y = A.getUTCFullYear(), g.m = A.getUTCMonth(), g.d = A.getUTCDate() + (g.w + 6) % 7) : (A = he(_t(g.y, 0, 1)), W = A.getDay(), A = W > 4 || W === 0 ? $t.ceil(A) : $t(A), A = At.offset(A, (g.V - 1) * 7), g.y = A.getFullYear(), g.m = A.getMonth(), g.d = A.getDate() + (g.w + 6) % 7);
|
|
1070
|
+
} else ("W" in g || "U" in g) && ("w" in g || (g.w = "u" in g ? g.u % 7 : "W" in g ? 1 : 0), W = "Z" in g ? fe(_t(g.y, 0, 1)).getUTCDay() : he(_t(g.y, 0, 1)).getDay(), g.m = 0, g.d = "W" in g ? (g.w + 6) % 7 + g.W * 7 - (W + 5) % 7 : g.w + g.U * 7 - (W + 6) % 7);
|
|
1071
|
+
return "Z" in g ? (g.H += g.Z / 100 | 0, g.M += g.Z % 100, fe(g)) : he(g);
|
|
1067
1072
|
};
|
|
1068
1073
|
}
|
|
1069
|
-
function
|
|
1070
|
-
for (var z = 0,
|
|
1071
|
-
if (g >=
|
|
1072
|
-
if (
|
|
1073
|
-
if (
|
|
1074
|
-
} else if (
|
|
1074
|
+
function V(v, _, M, g) {
|
|
1075
|
+
for (var z = 0, A = _.length, W = M.length, $, nt; z < A; ) {
|
|
1076
|
+
if (g >= W) return -1;
|
|
1077
|
+
if ($ = _.charCodeAt(z++), $ === 37) {
|
|
1078
|
+
if ($ = _.charAt(z++), nt = Y[$ in un ? _.charAt(z++) : $], !nt || (g = nt(v, M, g)) < 0) return -1;
|
|
1079
|
+
} else if ($ != M.charCodeAt(g++))
|
|
1075
1080
|
return -1;
|
|
1076
1081
|
}
|
|
1077
1082
|
return g;
|
|
1078
1083
|
}
|
|
1079
|
-
function
|
|
1080
|
-
var g = l.exec(
|
|
1081
|
-
return g ? (
|
|
1084
|
+
function q(v, _, M) {
|
|
1085
|
+
var g = l.exec(_.slice(M));
|
|
1086
|
+
return g ? (v.p = d.get(g[0].toLowerCase()), M + g[0].length) : -1;
|
|
1082
1087
|
}
|
|
1083
|
-
function
|
|
1084
|
-
var g = f.exec(
|
|
1085
|
-
return g ? (
|
|
1088
|
+
function G(v, _, M) {
|
|
1089
|
+
var g = f.exec(_.slice(M));
|
|
1090
|
+
return g ? (v.w = y.get(g[0].toLowerCase()), M + g[0].length) : -1;
|
|
1086
1091
|
}
|
|
1087
|
-
function
|
|
1088
|
-
var g = h.exec(
|
|
1089
|
-
return g ? (
|
|
1092
|
+
function j(v, _, M) {
|
|
1093
|
+
var g = h.exec(_.slice(M));
|
|
1094
|
+
return g ? (v.w = u.get(g[0].toLowerCase()), M + g[0].length) : -1;
|
|
1090
1095
|
}
|
|
1091
|
-
function k(
|
|
1092
|
-
var g =
|
|
1093
|
-
return g ? (
|
|
1096
|
+
function k(v, _, M) {
|
|
1097
|
+
var g = w.exec(_.slice(M));
|
|
1098
|
+
return g ? (v.m = P.get(g[0].toLowerCase()), M + g[0].length) : -1;
|
|
1094
1099
|
}
|
|
1095
|
-
function
|
|
1096
|
-
var g = m.exec(
|
|
1097
|
-
return g ? (
|
|
1100
|
+
function I(v, _, M) {
|
|
1101
|
+
var g = m.exec(_.slice(M));
|
|
1102
|
+
return g ? (v.m = b.get(g[0].toLowerCase()), M + g[0].length) : -1;
|
|
1098
1103
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1104
|
+
function O(v, _, M) {
|
|
1105
|
+
return V(v, e, _, M);
|
|
1101
1106
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return
|
|
1107
|
+
function et(v, _, M) {
|
|
1108
|
+
return V(v, n, _, M);
|
|
1104
1109
|
}
|
|
1105
|
-
function
|
|
1106
|
-
return
|
|
1110
|
+
function Ft(v, _, M) {
|
|
1111
|
+
return V(v, i, _, M);
|
|
1107
1112
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return a[
|
|
1113
|
+
function ct(v) {
|
|
1114
|
+
return a[v.getDay()];
|
|
1110
1115
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return o[
|
|
1116
|
+
function lt(v) {
|
|
1117
|
+
return o[v.getDay()];
|
|
1113
1118
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return c[
|
|
1119
|
+
function ut(v) {
|
|
1120
|
+
return c[v.getMonth()];
|
|
1116
1121
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return s[
|
|
1122
|
+
function E(v) {
|
|
1123
|
+
return s[v.getMonth()];
|
|
1119
1124
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return r[+(
|
|
1125
|
+
function ki(v) {
|
|
1126
|
+
return r[+(v.getHours() >= 12)];
|
|
1122
1127
|
}
|
|
1123
|
-
function
|
|
1124
|
-
return 1 + ~~(
|
|
1128
|
+
function bi(v) {
|
|
1129
|
+
return 1 + ~~(v.getMonth() / 3);
|
|
1125
1130
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return a[
|
|
1131
|
+
function _i(v) {
|
|
1132
|
+
return a[v.getUTCDay()];
|
|
1128
1133
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return o[
|
|
1134
|
+
function wi(v) {
|
|
1135
|
+
return o[v.getUTCDay()];
|
|
1131
1136
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return c[
|
|
1137
|
+
function Mi(v) {
|
|
1138
|
+
return c[v.getUTCMonth()];
|
|
1134
1139
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return s[
|
|
1140
|
+
function Ti(v) {
|
|
1141
|
+
return s[v.getUTCMonth()];
|
|
1137
1142
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return r[+(
|
|
1143
|
+
function Ci(v) {
|
|
1144
|
+
return r[+(v.getUTCHours() >= 12)];
|
|
1140
1145
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return 1 + ~~(
|
|
1146
|
+
function Si(v) {
|
|
1147
|
+
return 1 + ~~(v.getUTCMonth() / 3);
|
|
1143
1148
|
}
|
|
1144
1149
|
return {
|
|
1145
|
-
format: function(
|
|
1146
|
-
var
|
|
1147
|
-
return
|
|
1148
|
-
return
|
|
1149
|
-
},
|
|
1150
|
+
format: function(v) {
|
|
1151
|
+
var _ = p(v += "", F);
|
|
1152
|
+
return _.toString = function() {
|
|
1153
|
+
return v;
|
|
1154
|
+
}, _;
|
|
1150
1155
|
},
|
|
1151
|
-
parse: function(
|
|
1152
|
-
var
|
|
1153
|
-
return
|
|
1154
|
-
return
|
|
1155
|
-
},
|
|
1156
|
+
parse: function(v) {
|
|
1157
|
+
var _ = C(v += "", !1);
|
|
1158
|
+
return _.toString = function() {
|
|
1159
|
+
return v;
|
|
1160
|
+
}, _;
|
|
1156
1161
|
},
|
|
1157
|
-
utcFormat: function(
|
|
1158
|
-
var
|
|
1159
|
-
return
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
+
utcFormat: function(v) {
|
|
1163
|
+
var _ = p(v += "", S);
|
|
1164
|
+
return _.toString = function() {
|
|
1165
|
+
return v;
|
|
1166
|
+
}, _;
|
|
1162
1167
|
},
|
|
1163
|
-
utcParse: function(
|
|
1164
|
-
var
|
|
1165
|
-
return
|
|
1166
|
-
return
|
|
1167
|
-
},
|
|
1168
|
+
utcParse: function(v) {
|
|
1169
|
+
var _ = C(v += "", !0);
|
|
1170
|
+
return _.toString = function() {
|
|
1171
|
+
return v;
|
|
1172
|
+
}, _;
|
|
1168
1173
|
}
|
|
1169
1174
|
};
|
|
1170
1175
|
}
|
|
1171
|
-
var
|
|
1172
|
-
function
|
|
1176
|
+
var un = { "-": "", _: " ", 0: "0" }, B = /^\s*\d+/, to = /^%/, eo = /[\\^$*+?|[\]().{}]/g;
|
|
1177
|
+
function T(t, e, n) {
|
|
1173
1178
|
var i = t < 0 ? "-" : "", r = (i ? -t : t) + "", o = r.length;
|
|
1174
1179
|
return i + (o < n ? new Array(n - o + 1).join(e) + r : r);
|
|
1175
1180
|
}
|
|
1176
|
-
function
|
|
1177
|
-
return t.replace(
|
|
1178
|
-
}
|
|
1179
|
-
function Tt(t) {
|
|
1180
|
-
return new RegExp("^(?:" + t.map(co).join("|") + ")", "i");
|
|
1181
|
+
function no(t) {
|
|
1182
|
+
return t.replace(eo, "\\$&");
|
|
1181
1183
|
}
|
|
1182
1184
|
function wt(t) {
|
|
1185
|
+
return new RegExp("^(?:" + t.map(no).join("|") + ")", "i");
|
|
1186
|
+
}
|
|
1187
|
+
function Mt(t) {
|
|
1183
1188
|
return new Map(t.map((e, n) => [e.toLowerCase(), n]));
|
|
1184
1189
|
}
|
|
1185
|
-
function
|
|
1186
|
-
var i =
|
|
1190
|
+
function io(t, e, n) {
|
|
1191
|
+
var i = B.exec(e.slice(n, n + 1));
|
|
1187
1192
|
return i ? (t.w = +i[0], n + i[0].length) : -1;
|
|
1188
1193
|
}
|
|
1189
|
-
function
|
|
1190
|
-
var i =
|
|
1194
|
+
function ro(t, e, n) {
|
|
1195
|
+
var i = B.exec(e.slice(n, n + 1));
|
|
1191
1196
|
return i ? (t.u = +i[0], n + i[0].length) : -1;
|
|
1192
1197
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var i =
|
|
1198
|
+
function oo(t, e, n) {
|
|
1199
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1195
1200
|
return i ? (t.U = +i[0], n + i[0].length) : -1;
|
|
1196
1201
|
}
|
|
1197
|
-
function
|
|
1198
|
-
var i =
|
|
1202
|
+
function ao(t, e, n) {
|
|
1203
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1199
1204
|
return i ? (t.V = +i[0], n + i[0].length) : -1;
|
|
1200
1205
|
}
|
|
1201
|
-
function
|
|
1202
|
-
var i =
|
|
1206
|
+
function so(t, e, n) {
|
|
1207
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1203
1208
|
return i ? (t.W = +i[0], n + i[0].length) : -1;
|
|
1204
1209
|
}
|
|
1205
|
-
function
|
|
1206
|
-
var i =
|
|
1210
|
+
function hn(t, e, n) {
|
|
1211
|
+
var i = B.exec(e.slice(n, n + 4));
|
|
1207
1212
|
return i ? (t.y = +i[0], n + i[0].length) : -1;
|
|
1208
1213
|
}
|
|
1209
|
-
function
|
|
1210
|
-
var i =
|
|
1214
|
+
function fn(t, e, n) {
|
|
1215
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1211
1216
|
return i ? (t.y = +i[0] + (+i[0] > 68 ? 1900 : 2e3), n + i[0].length) : -1;
|
|
1212
1217
|
}
|
|
1213
|
-
function
|
|
1218
|
+
function co(t, e, n) {
|
|
1214
1219
|
var i = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
|
|
1215
1220
|
return i ? (t.Z = i[1] ? 0 : -(i[2] + (i[3] || "00")), n + i[0].length) : -1;
|
|
1216
1221
|
}
|
|
1217
|
-
function
|
|
1218
|
-
var i =
|
|
1222
|
+
function lo(t, e, n) {
|
|
1223
|
+
var i = B.exec(e.slice(n, n + 1));
|
|
1219
1224
|
return i ? (t.q = i[0] * 3 - 3, n + i[0].length) : -1;
|
|
1220
1225
|
}
|
|
1221
|
-
function
|
|
1222
|
-
var i =
|
|
1226
|
+
function uo(t, e, n) {
|
|
1227
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1223
1228
|
return i ? (t.m = i[0] - 1, n + i[0].length) : -1;
|
|
1224
1229
|
}
|
|
1225
|
-
function
|
|
1226
|
-
var i =
|
|
1230
|
+
function dn(t, e, n) {
|
|
1231
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1227
1232
|
return i ? (t.d = +i[0], n + i[0].length) : -1;
|
|
1228
1233
|
}
|
|
1229
|
-
function
|
|
1230
|
-
var i =
|
|
1234
|
+
function ho(t, e, n) {
|
|
1235
|
+
var i = B.exec(e.slice(n, n + 3));
|
|
1231
1236
|
return i ? (t.m = 0, t.d = +i[0], n + i[0].length) : -1;
|
|
1232
1237
|
}
|
|
1233
|
-
function
|
|
1234
|
-
var i =
|
|
1238
|
+
function gn(t, e, n) {
|
|
1239
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1235
1240
|
return i ? (t.H = +i[0], n + i[0].length) : -1;
|
|
1236
1241
|
}
|
|
1237
|
-
function
|
|
1238
|
-
var i =
|
|
1242
|
+
function fo(t, e, n) {
|
|
1243
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1239
1244
|
return i ? (t.M = +i[0], n + i[0].length) : -1;
|
|
1240
1245
|
}
|
|
1241
|
-
function
|
|
1242
|
-
var i =
|
|
1246
|
+
function go(t, e, n) {
|
|
1247
|
+
var i = B.exec(e.slice(n, n + 2));
|
|
1243
1248
|
return i ? (t.S = +i[0], n + i[0].length) : -1;
|
|
1244
1249
|
}
|
|
1245
|
-
function
|
|
1246
|
-
var i =
|
|
1250
|
+
function mo(t, e, n) {
|
|
1251
|
+
var i = B.exec(e.slice(n, n + 3));
|
|
1247
1252
|
return i ? (t.L = +i[0], n + i[0].length) : -1;
|
|
1248
1253
|
}
|
|
1249
|
-
function
|
|
1250
|
-
var i =
|
|
1254
|
+
function po(t, e, n) {
|
|
1255
|
+
var i = B.exec(e.slice(n, n + 6));
|
|
1251
1256
|
return i ? (t.L = Math.floor(i[0] / 1e3), n + i[0].length) : -1;
|
|
1252
1257
|
}
|
|
1253
|
-
function
|
|
1254
|
-
var i =
|
|
1258
|
+
function vo(t, e, n) {
|
|
1259
|
+
var i = to.exec(e.slice(n, n + 1));
|
|
1255
1260
|
return i ? n + i[0].length : -1;
|
|
1256
1261
|
}
|
|
1257
|
-
function
|
|
1258
|
-
var i =
|
|
1262
|
+
function yo(t, e, n) {
|
|
1263
|
+
var i = B.exec(e.slice(n));
|
|
1259
1264
|
return i ? (t.Q = +i[0], n + i[0].length) : -1;
|
|
1260
1265
|
}
|
|
1261
|
-
function
|
|
1262
|
-
var i =
|
|
1266
|
+
function xo(t, e, n) {
|
|
1267
|
+
var i = B.exec(e.slice(n));
|
|
1263
1268
|
return i ? (t.s = +i[0], n + i[0].length) : -1;
|
|
1264
1269
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return
|
|
1270
|
+
function mn(t, e) {
|
|
1271
|
+
return T(t.getDate(), e, 2);
|
|
1267
1272
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return
|
|
1273
|
+
function ko(t, e) {
|
|
1274
|
+
return T(t.getHours(), e, 2);
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1276
|
+
function bo(t, e) {
|
|
1277
|
+
return T(t.getHours() % 12 || 12, e, 2);
|
|
1273
1278
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return
|
|
1279
|
+
function _o(t, e) {
|
|
1280
|
+
return T(1 + At.count(K(t), t), e, 3);
|
|
1276
1281
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return
|
|
1282
|
+
function Qn(t, e) {
|
|
1283
|
+
return T(t.getMilliseconds(), e, 3);
|
|
1279
1284
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return
|
|
1285
|
+
function wo(t, e) {
|
|
1286
|
+
return Qn(t, e) + "000";
|
|
1282
1287
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1288
|
+
function Mo(t, e) {
|
|
1289
|
+
return T(t.getMonth() + 1, e, 2);
|
|
1285
1290
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1291
|
+
function To(t, e) {
|
|
1292
|
+
return T(t.getMinutes(), e, 2);
|
|
1288
1293
|
}
|
|
1289
|
-
function
|
|
1290
|
-
return
|
|
1294
|
+
function Co(t, e) {
|
|
1295
|
+
return T(t.getSeconds(), e, 2);
|
|
1291
1296
|
}
|
|
1292
|
-
function
|
|
1297
|
+
function So(t) {
|
|
1293
1298
|
var e = t.getDay();
|
|
1294
1299
|
return e === 0 ? 7 : e;
|
|
1295
1300
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return
|
|
1301
|
+
function Do(t, e) {
|
|
1302
|
+
return T(ee.count(K(t) - 1, t), e, 2);
|
|
1298
1303
|
}
|
|
1299
|
-
function
|
|
1304
|
+
function Jn(t) {
|
|
1300
1305
|
var e = t.getDay();
|
|
1301
|
-
return e >= 4 || e === 0 ?
|
|
1306
|
+
return e >= 4 || e === 0 ? yt(t) : yt.ceil(t);
|
|
1302
1307
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return t =
|
|
1308
|
+
function Ao(t, e) {
|
|
1309
|
+
return t = Jn(t), T(yt.count(K(t), t) + (K(t).getDay() === 4), e, 2);
|
|
1305
1310
|
}
|
|
1306
|
-
function
|
|
1311
|
+
function Fo(t) {
|
|
1307
1312
|
return t.getDay();
|
|
1308
1313
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return
|
|
1314
|
+
function Uo(t, e) {
|
|
1315
|
+
return T($t.count(K(t) - 1, t), e, 2);
|
|
1311
1316
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1317
|
+
function Yo(t, e) {
|
|
1318
|
+
return T(t.getFullYear() % 100, e, 2);
|
|
1314
1319
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return t =
|
|
1320
|
+
function Po(t, e) {
|
|
1321
|
+
return t = Jn(t), T(t.getFullYear() % 100, e, 2);
|
|
1317
1322
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return
|
|
1323
|
+
function No(t, e) {
|
|
1324
|
+
return T(t.getFullYear() % 1e4, e, 4);
|
|
1320
1325
|
}
|
|
1321
|
-
function
|
|
1326
|
+
function Lo(t, e) {
|
|
1322
1327
|
var n = t.getDay();
|
|
1323
|
-
return t = n >= 4 || n === 0 ?
|
|
1328
|
+
return t = n >= 4 || n === 0 ? yt(t) : yt.ceil(t), T(t.getFullYear() % 1e4, e, 4);
|
|
1324
1329
|
}
|
|
1325
|
-
function
|
|
1330
|
+
function Bo(t) {
|
|
1326
1331
|
var e = t.getTimezoneOffset();
|
|
1327
|
-
return (e > 0 ? "-" : (e *= -1, "+")) +
|
|
1332
|
+
return (e > 0 ? "-" : (e *= -1, "+")) + T(e / 60 | 0, "0", 2) + T(e % 60, "0", 2);
|
|
1328
1333
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return
|
|
1334
|
+
function pn(t, e) {
|
|
1335
|
+
return T(t.getUTCDate(), e, 2);
|
|
1331
1336
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return
|
|
1337
|
+
function Io(t, e) {
|
|
1338
|
+
return T(t.getUTCHours(), e, 2);
|
|
1334
1339
|
}
|
|
1335
|
-
function
|
|
1336
|
-
return
|
|
1340
|
+
function Oo(t, e) {
|
|
1341
|
+
return T(t.getUTCHours() % 12 || 12, e, 2);
|
|
1337
1342
|
}
|
|
1338
|
-
function
|
|
1339
|
-
return
|
|
1343
|
+
function zo(t, e) {
|
|
1344
|
+
return T(1 + te.count(tt(t), t), e, 3);
|
|
1340
1345
|
}
|
|
1341
|
-
function
|
|
1342
|
-
return
|
|
1346
|
+
function Kn(t, e) {
|
|
1347
|
+
return T(t.getUTCMilliseconds(), e, 3);
|
|
1343
1348
|
}
|
|
1344
|
-
function
|
|
1345
|
-
return
|
|
1349
|
+
function Ro(t, e) {
|
|
1350
|
+
return Kn(t, e) + "000";
|
|
1346
1351
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return
|
|
1352
|
+
function Wo(t, e) {
|
|
1353
|
+
return T(t.getUTCMonth() + 1, e, 2);
|
|
1349
1354
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return
|
|
1355
|
+
function $o(t, e) {
|
|
1356
|
+
return T(t.getUTCMinutes(), e, 2);
|
|
1352
1357
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1358
|
+
function Ho(t, e) {
|
|
1359
|
+
return T(t.getUTCSeconds(), e, 2);
|
|
1355
1360
|
}
|
|
1356
|
-
function
|
|
1361
|
+
function Eo(t) {
|
|
1357
1362
|
var e = t.getUTCDay();
|
|
1358
1363
|
return e === 0 ? 7 : e;
|
|
1359
1364
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
1365
|
+
function Xo(t, e) {
|
|
1366
|
+
return T(ne.count(tt(t) - 1, t), e, 2);
|
|
1362
1367
|
}
|
|
1363
|
-
function
|
|
1368
|
+
function ti(t) {
|
|
1364
1369
|
var e = t.getUTCDay();
|
|
1365
|
-
return e >= 4 || e === 0 ?
|
|
1370
|
+
return e >= 4 || e === 0 ? xt(t) : xt.ceil(t);
|
|
1366
1371
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return t =
|
|
1372
|
+
function Vo(t, e) {
|
|
1373
|
+
return t = ti(t), T(xt.count(tt(t), t) + (tt(t).getUTCDay() === 4), e, 2);
|
|
1369
1374
|
}
|
|
1370
|
-
function
|
|
1375
|
+
function jo(t) {
|
|
1371
1376
|
return t.getUTCDay();
|
|
1372
1377
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1378
|
+
function qo(t, e) {
|
|
1379
|
+
return T(Ht.count(tt(t) - 1, t), e, 2);
|
|
1375
1380
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1381
|
+
function Go(t, e) {
|
|
1382
|
+
return T(t.getUTCFullYear() % 100, e, 2);
|
|
1378
1383
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return t =
|
|
1384
|
+
function Zo(t, e) {
|
|
1385
|
+
return t = ti(t), T(t.getUTCFullYear() % 100, e, 2);
|
|
1381
1386
|
}
|
|
1382
|
-
function
|
|
1383
|
-
return
|
|
1387
|
+
function Qo(t, e) {
|
|
1388
|
+
return T(t.getUTCFullYear() % 1e4, e, 4);
|
|
1384
1389
|
}
|
|
1385
|
-
function
|
|
1390
|
+
function Jo(t, e) {
|
|
1386
1391
|
var n = t.getUTCDay();
|
|
1387
|
-
return t = n >= 4 || n === 0 ?
|
|
1392
|
+
return t = n >= 4 || n === 0 ? xt(t) : xt.ceil(t), T(t.getUTCFullYear() % 1e4, e, 4);
|
|
1388
1393
|
}
|
|
1389
|
-
function
|
|
1394
|
+
function Ko() {
|
|
1390
1395
|
return "+0000";
|
|
1391
1396
|
}
|
|
1392
|
-
function
|
|
1397
|
+
function vn() {
|
|
1393
1398
|
return "%";
|
|
1394
1399
|
}
|
|
1395
|
-
function
|
|
1400
|
+
function yn(t) {
|
|
1396
1401
|
return +t;
|
|
1397
1402
|
}
|
|
1398
|
-
function
|
|
1403
|
+
function xn(t) {
|
|
1399
1404
|
return Math.floor(+t / 1e3);
|
|
1400
1405
|
}
|
|
1401
|
-
var
|
|
1402
|
-
|
|
1406
|
+
var dt, ei, ni;
|
|
1407
|
+
ta({
|
|
1403
1408
|
dateTime: "%x, %X",
|
|
1404
1409
|
date: "%-m/%-d/%Y",
|
|
1405
1410
|
time: "%-I:%M:%S %p",
|
|
@@ -1409,44 +1414,44 @@ aa({
|
|
|
1409
1414
|
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
1410
1415
|
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
1411
1416
|
});
|
|
1412
|
-
function
|
|
1413
|
-
return
|
|
1417
|
+
function ta(t) {
|
|
1418
|
+
return dt = Kr(t), ei = dt.format, dt.parse, ni = dt.utcFormat, dt.utcParse, dt;
|
|
1414
1419
|
}
|
|
1415
|
-
function
|
|
1420
|
+
function ea(t) {
|
|
1416
1421
|
return new Date(t);
|
|
1417
1422
|
}
|
|
1418
|
-
function
|
|
1423
|
+
function na(t) {
|
|
1419
1424
|
return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
|
|
1420
1425
|
}
|
|
1421
|
-
function
|
|
1422
|
-
var d = zn(), h = d.invert, u = d.domain, f = l(".%L"),
|
|
1423
|
-
function
|
|
1424
|
-
return (c(
|
|
1425
|
-
}
|
|
1426
|
-
return d.invert = function(
|
|
1427
|
-
return new Date(h(
|
|
1428
|
-
}, d.domain = function(
|
|
1429
|
-
return arguments.length ? u(Array.from(
|
|
1430
|
-
}, d.ticks = function(
|
|
1431
|
-
var
|
|
1432
|
-
return t(
|
|
1433
|
-
}, d.tickFormat = function(
|
|
1434
|
-
return
|
|
1435
|
-
}, d.nice = function(
|
|
1436
|
-
var
|
|
1437
|
-
return (!
|
|
1426
|
+
function Oe(t, e, n, i, r, o, a, s, c, l) {
|
|
1427
|
+
var d = zn(), h = d.invert, u = d.domain, f = l(".%L"), y = l(":%S"), m = l("%I:%M"), b = l("%I %p"), w = l("%a %d"), P = l("%b %d"), F = l("%B"), S = l("%Y");
|
|
1428
|
+
function Y(p) {
|
|
1429
|
+
return (c(p) < p ? f : s(p) < p ? y : a(p) < p ? m : o(p) < p ? b : i(p) < p ? r(p) < p ? w : P : n(p) < p ? F : S)(p);
|
|
1430
|
+
}
|
|
1431
|
+
return d.invert = function(p) {
|
|
1432
|
+
return new Date(h(p));
|
|
1433
|
+
}, d.domain = function(p) {
|
|
1434
|
+
return arguments.length ? u(Array.from(p, na)) : u().map(ea);
|
|
1435
|
+
}, d.ticks = function(p) {
|
|
1436
|
+
var C = u();
|
|
1437
|
+
return t(C[0], C[C.length - 1], p ?? 10);
|
|
1438
|
+
}, d.tickFormat = function(p, C) {
|
|
1439
|
+
return C == null ? Y : l(C);
|
|
1440
|
+
}, d.nice = function(p) {
|
|
1441
|
+
var C = u();
|
|
1442
|
+
return (!p || typeof p.range != "function") && (p = e(C[0], C[C.length - 1], p ?? 10)), p ? u(Hn(C, p)) : d;
|
|
1438
1443
|
}, d.copy = function() {
|
|
1439
|
-
return
|
|
1444
|
+
return Dt(d, Oe(t, e, n, i, r, o, a, s, c, l));
|
|
1440
1445
|
}, d;
|
|
1441
1446
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1447
|
+
function ia() {
|
|
1448
|
+
return X.apply(Oe(Qr, Jr, K, Be, ee, At, Ne, Ye, rt, ei).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
1444
1449
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return
|
|
1450
|
+
function ra() {
|
|
1451
|
+
return X.apply(Oe(Gr, Zr, tt, Ie, ne, te, Le, Pe, rt, ni).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
|
|
1447
1452
|
}
|
|
1448
|
-
function
|
|
1449
|
-
var t = 0, e = 1, n, i, r, o, a =
|
|
1453
|
+
function oa() {
|
|
1454
|
+
var t = 0, e = 1, n, i, r, o, a = R, s = !1, c;
|
|
1450
1455
|
function l(h) {
|
|
1451
1456
|
return h == null || isNaN(h = +h) ? c : a(r === 0 ? 0.5 : (h = (o(h) - n) * r, s ? Math.max(0, Math.min(1, h)) : h));
|
|
1452
1457
|
}
|
|
@@ -1459,27 +1464,27 @@ function ha() {
|
|
|
1459
1464
|
};
|
|
1460
1465
|
function d(h) {
|
|
1461
1466
|
return function(u) {
|
|
1462
|
-
var f,
|
|
1463
|
-
return arguments.length ? ([f,
|
|
1467
|
+
var f, y;
|
|
1468
|
+
return arguments.length ? ([f, y] = u, a = h(f, y), l) : [a(0), a(1)];
|
|
1464
1469
|
};
|
|
1465
1470
|
}
|
|
1466
|
-
return l.range = d(Zt), l.rangeRound = d(
|
|
1471
|
+
return l.range = d(Zt), l.rangeRound = d(Te), l.unknown = function(h) {
|
|
1467
1472
|
return arguments.length ? (c = h, l) : c;
|
|
1468
1473
|
}, function(h) {
|
|
1469
1474
|
return o = h, n = h(t), i = h(e), r = n === i ? 0 : 1 / (i - n), l;
|
|
1470
1475
|
};
|
|
1471
1476
|
}
|
|
1472
|
-
function
|
|
1477
|
+
function ii(t, e) {
|
|
1473
1478
|
return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown());
|
|
1474
1479
|
}
|
|
1475
|
-
function
|
|
1476
|
-
var t =
|
|
1480
|
+
function ri() {
|
|
1481
|
+
var t = ot(oa()(R));
|
|
1477
1482
|
return t.copy = function() {
|
|
1478
|
-
return
|
|
1483
|
+
return ii(t, ri());
|
|
1479
1484
|
}, In.apply(t, arguments);
|
|
1480
1485
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var t = 0, e = 0.5, n = 1, i = 1, r, o, a, s, c, l =
|
|
1486
|
+
function aa() {
|
|
1487
|
+
var t = 0, e = 0.5, n = 1, i = 1, r, o, a, s, c, l = R, d, h = !1, u;
|
|
1483
1488
|
function f(m) {
|
|
1484
1489
|
return isNaN(m = +m) ? u : (m = 0.5 + ((m = +d(m)) - o) * (i * m < i * o ? s : c), l(h ? Math.max(0, Math.min(1, m)) : m));
|
|
1485
1490
|
}
|
|
@@ -1490,55 +1495,55 @@ function fa() {
|
|
|
1490
1495
|
}, f.interpolator = function(m) {
|
|
1491
1496
|
return arguments.length ? (l = m, f) : l;
|
|
1492
1497
|
};
|
|
1493
|
-
function
|
|
1494
|
-
return function(
|
|
1495
|
-
var
|
|
1496
|
-
return arguments.length ? ([
|
|
1498
|
+
function y(m) {
|
|
1499
|
+
return function(b) {
|
|
1500
|
+
var w, P, F;
|
|
1501
|
+
return arguments.length ? ([w, P, F] = b, l = fr(m, [w, P, F]), f) : [l(0), l(0.5), l(1)];
|
|
1497
1502
|
};
|
|
1498
1503
|
}
|
|
1499
|
-
return f.range =
|
|
1504
|
+
return f.range = y(Zt), f.rangeRound = y(Te), f.unknown = function(m) {
|
|
1500
1505
|
return arguments.length ? (u = m, f) : u;
|
|
1501
1506
|
}, function(m) {
|
|
1502
1507
|
return d = m, r = m(t), o = m(e), a = m(n), s = r === o ? 0 : 0.5 / (o - r), c = o === a ? 0 : 0.5 / (a - o), i = o < r ? -1 : 1, f;
|
|
1503
1508
|
};
|
|
1504
1509
|
}
|
|
1505
|
-
function
|
|
1506
|
-
var t =
|
|
1510
|
+
function oi() {
|
|
1511
|
+
var t = ot(aa()(R));
|
|
1507
1512
|
return t.copy = function() {
|
|
1508
|
-
return
|
|
1513
|
+
return ii(t, oi());
|
|
1509
1514
|
}, In.apply(t, arguments);
|
|
1510
1515
|
}
|
|
1511
|
-
const
|
|
1512
|
-
scaleLinear:
|
|
1513
|
-
scalePow:
|
|
1514
|
-
scaleSqrt:
|
|
1515
|
-
scaleLog:
|
|
1516
|
-
scaleSymlog:
|
|
1517
|
-
scaleIdentity:
|
|
1518
|
-
scaleTime:
|
|
1519
|
-
scaleUtc:
|
|
1520
|
-
scaleSequential:
|
|
1521
|
-
scaleDiverging:
|
|
1522
|
-
scaleQuantize:
|
|
1523
|
-
scaleQuantile:
|
|
1524
|
-
scaleThreshold:
|
|
1525
|
-
scaleOrdinal:
|
|
1526
|
-
scaleBand:
|
|
1527
|
-
scalePoint:
|
|
1516
|
+
const kn = {
|
|
1517
|
+
scaleLinear: Wn,
|
|
1518
|
+
scalePow: Fe,
|
|
1519
|
+
scaleSqrt: Rr,
|
|
1520
|
+
scaleLog: En,
|
|
1521
|
+
scaleSymlog: Xn,
|
|
1522
|
+
scaleIdentity: $n,
|
|
1523
|
+
scaleTime: ia,
|
|
1524
|
+
scaleUtc: ra,
|
|
1525
|
+
scaleSequential: ri,
|
|
1526
|
+
scaleDiverging: oi,
|
|
1527
|
+
scaleQuantize: jn,
|
|
1528
|
+
scaleQuantile: Vn,
|
|
1529
|
+
scaleThreshold: qn,
|
|
1530
|
+
scaleOrdinal: Ce,
|
|
1531
|
+
scaleBand: Se,
|
|
1532
|
+
scalePoint: dr
|
|
1528
1533
|
};
|
|
1529
|
-
var
|
|
1534
|
+
var U;
|
|
1530
1535
|
(function(t) {
|
|
1531
1536
|
t.X = "x", t.Y = "y";
|
|
1532
|
-
})(
|
|
1533
|
-
var
|
|
1537
|
+
})(U || (U = {}));
|
|
1538
|
+
var Et;
|
|
1534
1539
|
(function(t) {
|
|
1535
1540
|
t.West = "west", t.East = "east", t.North = "north", t.South = "south";
|
|
1536
|
-
})(
|
|
1537
|
-
const
|
|
1538
|
-
class
|
|
1541
|
+
})(Et || (Et = {}));
|
|
1542
|
+
const sa = Object.assign(Object.assign({}, Pi), { components: [], tooltip: void 0, crosshair: void 0, annotations: void 0, xAxis: void 0, yAxis: void 0, autoMargin: !0, xScale: void 0, xDomain: void 0, xDomainMinConstraint: void 0, xDomainMaxConstraint: void 0, xRange: void 0, yScale: void 0, yDomain: void 0, yDomainMinConstraint: void 0, yDomainMaxConstraint: void 0, yRange: void 0, yDirection: Et.North, preventEmptyDomain: null, scaleByDomain: !1 });
|
|
1543
|
+
class ca extends Ni {
|
|
1539
1544
|
constructor(e, n, i) {
|
|
1540
1545
|
var r, o;
|
|
1541
|
-
super(e), this._defaultConfig =
|
|
1546
|
+
super(e), this._defaultConfig = sa, this.datamodel = new Li(), this.config = this._defaultConfig, this._clipPathId = Bi(), this._axisMargin = { top: 0, bottom: 0, left: 0, right: 0 }, this._firstRender = !0, this._clipPath = this.svg.append("clipPath").attr("id", this._clipPathId), this._clipPath.append("rect");
|
|
1542
1547
|
const a = "saturate", s = window.location.href.replace(window.location.hash, "");
|
|
1543
1548
|
this.svg.attr("class", L`
|
|
1544
1549
|
--highlight-filter-id: url(${s}#${a}); // defining a css variable
|
|
@@ -1552,24 +1557,22 @@ class ga extends Ii {
|
|
|
1552
1557
|
// Overriding ContainerCore default get width method to work with axis auto margin
|
|
1553
1558
|
get width() {
|
|
1554
1559
|
const e = this._getMargin();
|
|
1555
|
-
return
|
|
1560
|
+
return gt(this.containerWidth - e.left - e.right, 0, Number.POSITIVE_INFINITY);
|
|
1556
1561
|
}
|
|
1557
1562
|
// Overriding ContainerCore default get height method to work with axis auto margin
|
|
1558
1563
|
get height() {
|
|
1559
1564
|
const e = this._getMargin();
|
|
1560
|
-
return
|
|
1565
|
+
return gt(this.containerHeight - e.top - e.bottom, 0, Number.POSITIVE_INFINITY);
|
|
1561
1566
|
}
|
|
1562
1567
|
setData(e, n) {
|
|
1563
|
-
var i, r, o, a
|
|
1564
|
-
const { components:
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
h.setData(e);
|
|
1569
|
-
}), (i = l.crosshair) === null || i === void 0 || i.setData(e), (r = l.xAxis) === null || r === void 0 || r.setData(e), (o = l.yAxis) === null || o === void 0 || o.setData(e), !ge(this.datamodel.data, e) && ((a = l.tooltip) === null || a === void 0 || a.hide(), (s = l.crosshair) === null || s === void 0 || s.hide()), n || this.render();
|
|
1568
|
+
var i, r, o, a;
|
|
1569
|
+
const { components: s, config: c } = this;
|
|
1570
|
+
e && (this.datamodel.data = e, s.forEach((l) => {
|
|
1571
|
+
l.setData(e);
|
|
1572
|
+
}), (i = c.crosshair) === null || i === void 0 || i.setData(e), (r = c.xAxis) === null || r === void 0 || r.setData(e), (o = c.yAxis) === null || o === void 0 || o.setData(e), (a = c.tooltip) === null || a === void 0 || a.hide(), n || this.render());
|
|
1570
1573
|
}
|
|
1571
1574
|
updateContainer(e, n) {
|
|
1572
|
-
super.updateContainer(e), this._removeAllChildren(), this.setData(this.datamodel.data, !0), e.xAxis && (this.config.xAxis.config.type =
|
|
1575
|
+
super.updateContainer(e), this._removeAllChildren(), this.setData(this.datamodel.data, !0), e.xAxis && (this.config.xAxis.config.type = D.X, this.element.appendChild(e.xAxis.element)), e.yAxis && (this.config.yAxis.config.type = D.Y, this.element.appendChild(e.yAxis.element));
|
|
1573
1576
|
for (const a of this.components)
|
|
1574
1577
|
this.element.appendChild(a.element);
|
|
1575
1578
|
const i = e.tooltip;
|
|
@@ -1591,32 +1594,32 @@ class ga extends Ii {
|
|
|
1591
1594
|
_preRender() {
|
|
1592
1595
|
const { config: e } = this;
|
|
1593
1596
|
super._preRender(), e.autoMargin && this._setAutoMargin();
|
|
1594
|
-
const n = bt([...this.components, e.xAxis, e.yAxis, e.crosshair, e.annotations])
|
|
1595
|
-
for (const
|
|
1596
|
-
|
|
1597
|
+
const n = bt([...this.components, e.xAxis, e.yAxis, e.crosshair, e.annotations]);
|
|
1598
|
+
for (const i of n)
|
|
1599
|
+
i.setSize(this.width, this.height, this.containerWidth, this.containerHeight);
|
|
1597
1600
|
this._updateScales(...this.components, e.xAxis, e.yAxis, e.crosshair);
|
|
1598
1601
|
}
|
|
1599
1602
|
_render(e) {
|
|
1600
|
-
var n, i, r, o, a
|
|
1601
|
-
const { config:
|
|
1603
|
+
var n, i, r, o, a;
|
|
1604
|
+
const { config: s } = this;
|
|
1602
1605
|
super._render();
|
|
1603
|
-
const
|
|
1604
|
-
for (const
|
|
1605
|
-
|
|
1606
|
+
const c = this._getMargin();
|
|
1607
|
+
for (const h of this.components)
|
|
1608
|
+
h.g.attr("transform", `translate(${c.left},${c.top})`).style("clip-path", h.clippable ? `url(#${this._clipPathId})` : null).style("-webkit-clip-path", h.clippable ? `url(#${this._clipPathId})` : null), h.render(e);
|
|
1606
1609
|
this._renderAxes(this._firstRender ? 0 : e);
|
|
1607
|
-
const
|
|
1608
|
-
this._clipPath.select("rect").attr("x", -
|
|
1609
|
-
const
|
|
1610
|
-
if (
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1610
|
+
const l = 2;
|
|
1611
|
+
this._clipPath.select("rect").attr("x", -l).attr("y", -l).attr("width", this.width + 2 * l).attr("height", this.height + 2 * l), (n = s.tooltip) === null || n === void 0 || n.update();
|
|
1612
|
+
const d = s.crosshair;
|
|
1613
|
+
if (d) {
|
|
1614
|
+
const h = this.components.filter((m) => !m.stacked).map((m) => m.config.y), u = this.components.filter((m) => m.stacked).map((m) => m.config.y), f = (i = this.components.find((m) => m.config.baseline)) === null || i === void 0 ? void 0 : i.config, y = f?.baseline;
|
|
1615
|
+
d.accessors = {
|
|
1613
1616
|
x: (r = this.components[0]) === null || r === void 0 ? void 0 : r.config.x,
|
|
1614
|
-
y:
|
|
1615
|
-
yStacked:
|
|
1616
|
-
baseline:
|
|
1617
|
-
},
|
|
1617
|
+
y: He(h),
|
|
1618
|
+
yStacked: He(u),
|
|
1619
|
+
baseline: y
|
|
1620
|
+
}, d.g.attr("transform", `translate(${c.left},${c.top})`).style("clip-path", `url(#${this._clipPathId})`).style("-webkit-clip-path", `url(#${this._clipPathId})`), d.hide();
|
|
1618
1621
|
}
|
|
1619
|
-
(o =
|
|
1622
|
+
(o = s.annotations) === null || o === void 0 || o.g.attr("transform", `translate(${c.left},${c.top})`), (a = s.annotations) === null || a === void 0 || a.render(), this._firstRender = !1;
|
|
1620
1623
|
}
|
|
1621
1624
|
_updateScales(...e) {
|
|
1622
1625
|
const n = bt(e || this.components);
|
|
@@ -1624,27 +1627,27 @@ class ga extends Ii {
|
|
|
1624
1627
|
}
|
|
1625
1628
|
_setScales(...e) {
|
|
1626
1629
|
const { config: n } = this;
|
|
1627
|
-
e && (n.xScale && e.forEach((i) => i.setScale(
|
|
1630
|
+
e && (n.xScale && e.forEach((i) => i.setScale(U.X, n.xScale)), n.yScale && e.forEach((i) => i.setScale(U.Y, n.yScale)));
|
|
1628
1631
|
}
|
|
1629
1632
|
_updateScalesDomain(...e) {
|
|
1630
1633
|
const { config: n } = this;
|
|
1631
1634
|
if (!e)
|
|
1632
1635
|
return;
|
|
1633
1636
|
const i = e.filter((r) => !r.config.excludeFromDomainCalculation);
|
|
1634
|
-
Object.values(
|
|
1637
|
+
Object.values(U).forEach((r) => {
|
|
1635
1638
|
var o, a, s, c, l, d, h, u;
|
|
1636
|
-
const [f,
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
+
const [f, y] = er(ur(i.map((Y) => Y.getDataExtent(r, n.scaleByDomain)))), m = r === U.Y ? n.yDomain : n.xDomain, b = r === U.Y ? n.yDomainMinConstraint : n.xDomainMinConstraint, w = r === U.Y ? n.yDomainMaxConstraint : n.xDomainMaxConstraint, P = (a = (o = m?.[0]) !== null && o !== void 0 ? o : f) !== null && a !== void 0 ? a : 0, F = (c = (s = m?.[1]) !== null && s !== void 0 ? s : y) !== null && c !== void 0 ? c : 1, S = [
|
|
1640
|
+
gt(P, (l = b?.[0]) !== null && l !== void 0 ? l : Number.NEGATIVE_INFINITY, (d = b?.[1]) !== null && d !== void 0 ? d : Number.POSITIVE_INFINITY),
|
|
1641
|
+
gt(F, (h = w?.[0]) !== null && h !== void 0 ? h : Number.NEGATIVE_INFINITY, (u = w?.[1]) !== null && u !== void 0 ? u : Number.POSITIVE_INFINITY)
|
|
1639
1642
|
];
|
|
1640
|
-
if (
|
|
1641
|
-
const
|
|
1642
|
-
var
|
|
1643
|
-
return ((
|
|
1643
|
+
if (S[0] === S[1]) {
|
|
1644
|
+
const Y = i.some((p) => {
|
|
1645
|
+
var C;
|
|
1646
|
+
return ((C = p.datamodel.data) === null || C === void 0 ? void 0 : C.length) > 0;
|
|
1644
1647
|
});
|
|
1645
|
-
(n.preventEmptyDomain || n.preventEmptyDomain === null && (!
|
|
1648
|
+
(n.preventEmptyDomain || n.preventEmptyDomain === null && (!Y || r === U.Y)) && (S[1] = S[0] + 1);
|
|
1646
1649
|
}
|
|
1647
|
-
e.forEach((
|
|
1650
|
+
e.forEach((Y) => Y.setScaleDomain(r, S));
|
|
1648
1651
|
});
|
|
1649
1652
|
}
|
|
1650
1653
|
_updateScalesRange(...e) {
|
|
@@ -1652,14 +1655,20 @@ class ga extends Ii {
|
|
|
1652
1655
|
const { config: c } = this;
|
|
1653
1656
|
if (!e)
|
|
1654
1657
|
return;
|
|
1655
|
-
const l = c.yDirection ===
|
|
1658
|
+
const l = c.yDirection === Et.South, d = [(n = c.padding.left) !== null && n !== void 0 ? n : 0, this.width - ((i = c.padding.right) !== null && i !== void 0 ? i : 0)], h = [this.height - ((r = c.padding.bottom) !== null && r !== void 0 ? r : 0), (o = c.padding.top) !== null && o !== void 0 ? o : 0];
|
|
1656
1659
|
l && h.reverse();
|
|
1657
1660
|
for (const f of e)
|
|
1658
|
-
f.setSize(this.width, this.height, this.containerWidth, this.containerHeight), f.setScaleRange(
|
|
1659
|
-
const u =
|
|
1661
|
+
f.setSize(this.width, this.height, this.containerWidth, this.containerHeight), f.setScaleRange(U.X, (a = c.xRange) !== null && a !== void 0 ? a : d), f.setScaleRange(U.Y, (s = c.yRange) !== null && s !== void 0 ? s : h);
|
|
1662
|
+
const u = e.map((f) => f.bleed).reduce((f, y) => {
|
|
1663
|
+
for (const m of Object.keys(f)) {
|
|
1664
|
+
const b = m;
|
|
1665
|
+
f[b] < y[b] && (f[b] = y[b]);
|
|
1666
|
+
}
|
|
1667
|
+
return f;
|
|
1668
|
+
}, { top: 0, bottom: 0, left: 0, right: 0 });
|
|
1660
1669
|
for (const f of e)
|
|
1661
|
-
f.setScaleRange(
|
|
1662
|
-
|
|
1670
|
+
f.setScaleRange(U.X, [d[0] + u.left, d[1] - u.right]), f.setScaleRange(
|
|
1671
|
+
U.Y,
|
|
1663
1672
|
l ? [h[0] + u.top, h[1] - u.bottom] : [h[0] - u.bottom, h[1] + u.top]
|
|
1664
1673
|
// if Y axis is directed upwards
|
|
1665
1674
|
);
|
|
@@ -1693,15 +1702,6 @@ class ga extends Ii {
|
|
|
1693
1702
|
right: e.right + this._axisMargin.right
|
|
1694
1703
|
};
|
|
1695
1704
|
}
|
|
1696
|
-
_getBleed(e) {
|
|
1697
|
-
return e.map((n) => n.bleed).reduce((n, i) => {
|
|
1698
|
-
for (const r of Object.keys(n)) {
|
|
1699
|
-
const o = r;
|
|
1700
|
-
n[o] < i[o] && (n[o] = i[o]);
|
|
1701
|
-
}
|
|
1702
|
-
return n;
|
|
1703
|
-
}, { top: 0, bottom: 0, left: 0, right: 0 });
|
|
1704
|
-
}
|
|
1705
1705
|
destroy() {
|
|
1706
1706
|
const { components: e, config: { tooltip: n, crosshair: i, annotations: r, xAxis: o, yAxis: a } } = this;
|
|
1707
1707
|
super.destroy();
|
|
@@ -1710,13 +1710,13 @@ class ga extends Ii {
|
|
|
1710
1710
|
n?.destroy(), i?.destroy(), r?.destroy(), o?.destroy(), a?.destroy();
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1713
|
+
const ze = Object.assign(Object.assign({}, Ii), { x: void 0, y: void 0, id: (t, e) => {
|
|
1714
1714
|
var n;
|
|
1715
1715
|
return (n = t.id) !== null && n !== void 0 ? n : `${e}`;
|
|
1716
1716
|
}, color: (t) => t.color, xScale: void 0, yScale: void 0, excludeFromDomainCalculation: !1 });
|
|
1717
|
-
class
|
|
1717
|
+
class ai extends Oi {
|
|
1718
1718
|
constructor() {
|
|
1719
|
-
super(...arguments), this.datamodel = new
|
|
1719
|
+
super(...arguments), this.datamodel = new zi(), this.clippable = !0, this.stacked = !1, this._defaultConfig = ze, this._xScale = kn.scaleLinear(), this._yScale = kn.scaleLinear();
|
|
1720
1720
|
}
|
|
1721
1721
|
get xScale() {
|
|
1722
1722
|
return this.config.xScale || this._xScale;
|
|
@@ -1730,21 +1730,21 @@ class li extends $i {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
setScaleDomain(e, n) {
|
|
1732
1732
|
var i, r;
|
|
1733
|
-
e ===
|
|
1733
|
+
e === U.X && ((i = this._xScale) === null || i === void 0 || i.domain(n)), e === U.Y && ((r = this._yScale) === null || r === void 0 || r.domain(n));
|
|
1734
1734
|
}
|
|
1735
1735
|
setScaleRange(e, n) {
|
|
1736
1736
|
var i, r;
|
|
1737
|
-
e ===
|
|
1737
|
+
e === U.X && ((i = this._xScale) === null || i === void 0 || i.range(n)), e === U.Y && ((r = this._yScale) === null || r === void 0 || r.range(n));
|
|
1738
1738
|
}
|
|
1739
1739
|
setScale(e, n) {
|
|
1740
|
-
n && e ===
|
|
1740
|
+
n && e === U.X && (this._xScale = n), n && e === U.Y && (this._yScale = n);
|
|
1741
1741
|
}
|
|
1742
1742
|
getDataExtent(e, n) {
|
|
1743
1743
|
const { config: i, datamodel: r } = this;
|
|
1744
1744
|
switch (e) {
|
|
1745
|
-
case
|
|
1745
|
+
case U.X:
|
|
1746
1746
|
return this.getXDataExtent();
|
|
1747
|
-
case
|
|
1747
|
+
case U.Y:
|
|
1748
1748
|
return this.getYDataExtent(n);
|
|
1749
1749
|
default:
|
|
1750
1750
|
return ae(r.data, i[e]);
|
|
@@ -1754,36 +1754,35 @@ class li extends $i {
|
|
|
1754
1754
|
const { config: e, datamodel: n } = this;
|
|
1755
1755
|
return ae(n.data, e.x);
|
|
1756
1756
|
}
|
|
1757
|
-
/** Some components override this method to provide custom data extent calculation */
|
|
1758
1757
|
getYDataExtent(e) {
|
|
1759
|
-
const { config: n, datamodel: i } = this, r =
|
|
1760
|
-
return ae(
|
|
1758
|
+
const { config: n, datamodel: i } = this, r = e ? Ri(i.data, this.xScale.domain(), n.x) : i.data, o = Un(n.y) ? n.y : [n.y];
|
|
1759
|
+
return ae(r, ...o);
|
|
1761
1760
|
}
|
|
1762
1761
|
}
|
|
1763
|
-
var
|
|
1762
|
+
var x;
|
|
1764
1763
|
(function(t) {
|
|
1765
1764
|
t.Top = "top", t.Bottom = "bottom", t.Left = "left", t.Right = "right", t.Center = "center", t.Auto = "auto";
|
|
1766
|
-
})(
|
|
1767
|
-
var
|
|
1765
|
+
})(x || (x = {}));
|
|
1766
|
+
var bn;
|
|
1768
1767
|
(function(t) {
|
|
1769
1768
|
t.Absolute = "absolute", t.Fixed = "fixed";
|
|
1770
|
-
})(
|
|
1771
|
-
var
|
|
1769
|
+
})(bn || (bn = {}));
|
|
1770
|
+
var _n;
|
|
1772
1771
|
(function(t) {
|
|
1773
|
-
t.Inside = "inside", t.Outside = "outside"
|
|
1774
|
-
})(
|
|
1775
|
-
var
|
|
1772
|
+
t.Inside = "inside", t.Outside = "outside";
|
|
1773
|
+
})(_n || (_n = {}));
|
|
1774
|
+
var wn;
|
|
1776
1775
|
(function(t) {
|
|
1777
1776
|
t.Horizontal = "horizontal", t.Vertical = "vertical";
|
|
1778
|
-
})(
|
|
1779
|
-
const
|
|
1777
|
+
})(wn || (wn = {}));
|
|
1778
|
+
const la = {
|
|
1780
1779
|
components: [],
|
|
1781
1780
|
container: void 0,
|
|
1782
1781
|
followCursor: !0,
|
|
1783
1782
|
allowHover: !1,
|
|
1784
|
-
horizontalPlacement:
|
|
1783
|
+
horizontalPlacement: x.Auto,
|
|
1785
1784
|
horizontalShift: 0,
|
|
1786
|
-
verticalPlacement:
|
|
1785
|
+
verticalPlacement: x.Top,
|
|
1787
1786
|
verticalShift: 0,
|
|
1788
1787
|
attributes: {},
|
|
1789
1788
|
triggers: {},
|
|
@@ -1808,7 +1807,7 @@ const ma = {
|
|
|
1808
1807
|
border: solid 1px var(--vis-tooltip-border-color);
|
|
1809
1808
|
background-color: var(--vis-tooltip-background-color);
|
|
1810
1809
|
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
1811
|
-
`,
|
|
1810
|
+
`, ua = ie, ha = we`
|
|
1812
1811
|
:root {
|
|
1813
1812
|
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
1814
1813
|
--vis-tooltip-border-color: #e5e9f7;
|
|
@@ -1839,36 +1838,36 @@ const ma = {
|
|
|
1839
1838
|
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
1840
1839
|
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
1841
1840
|
}
|
|
1842
|
-
`,
|
|
1841
|
+
`, si = L`
|
|
1843
1842
|
bottom: unset;
|
|
1844
1843
|
position: fixed;
|
|
1845
|
-
`,
|
|
1844
|
+
`, Pt = L`
|
|
1846
1845
|
opacity: 1;
|
|
1847
|
-
`,
|
|
1846
|
+
`, Nt = L`
|
|
1848
1847
|
display: none;
|
|
1849
|
-
`,
|
|
1848
|
+
`, ci = L`
|
|
1850
1849
|
label: non-interactive;
|
|
1851
1850
|
pointer-events: none;
|
|
1852
1851
|
user-select: none;
|
|
1853
|
-
`,
|
|
1852
|
+
`, fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1854
1853
|
__proto__: null,
|
|
1855
|
-
hidden:
|
|
1856
|
-
nonInteractive:
|
|
1857
|
-
positionFixed:
|
|
1854
|
+
hidden: Nt,
|
|
1855
|
+
nonInteractive: ci,
|
|
1856
|
+
positionFixed: si,
|
|
1858
1857
|
root: ie,
|
|
1859
|
-
show:
|
|
1860
|
-
tooltip:
|
|
1861
|
-
variables:
|
|
1858
|
+
show: Pt,
|
|
1859
|
+
tooltip: ua,
|
|
1860
|
+
variables: ha
|
|
1862
1861
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1863
|
-
class
|
|
1862
|
+
class li {
|
|
1864
1863
|
constructor(e = {}) {
|
|
1865
|
-
this._defaultConfig =
|
|
1864
|
+
this._defaultConfig = la, this.config = this._defaultConfig, this._setUpEventsThrottled = Ee(this._setUpEvents, 500), this._setContainerPositionThrottled = Ee(this._setContainerPosition, 500), this._isShown = !1, this.element = document.createElement("div"), this.div = mt(this.element).attr("class", ie).classed(Pt, !1).classed(Nt, !0), this.setConfig(e), this.components = this.config.components, this._mutationObserver = new MutationObserver(() => {
|
|
1866
1865
|
this._isShown && (!this.config.followCursor && this._hoveredElement ? this.placeByElement(this._hoveredElement) : this._position && this.place({ x: this._position[0], y: this._position[1] }));
|
|
1867
1866
|
}), this._mutationObserver.observe(this.div.node(), { childList: !0, subtree: !0 });
|
|
1868
1867
|
}
|
|
1869
1868
|
setConfig(e) {
|
|
1870
1869
|
var n;
|
|
1871
|
-
this.prevConfig = this.config, this.config =
|
|
1870
|
+
this.prevConfig = this.config, this.config = Wi(this._defaultConfig, e), this.prevConfig.horizontalPlacement !== this.config.horizontalPlacement && this.overrideHorizontalPlacement(void 0), this.config.container && this.config.container !== ((n = this.prevConfig) === null || n === void 0 ? void 0 : n.container) && this.setContainer(this.config.container), this._setUpAttributes();
|
|
1872
1871
|
}
|
|
1873
1872
|
setContainer(e) {
|
|
1874
1873
|
var n;
|
|
@@ -1891,8 +1890,8 @@ class fi {
|
|
|
1891
1890
|
this.render(e), this.place(n);
|
|
1892
1891
|
}
|
|
1893
1892
|
_hide() {
|
|
1894
|
-
this.div.classed(
|
|
1895
|
-
this.div.classed(
|
|
1893
|
+
this.div.classed(Pt, !1).on("transitionend", () => {
|
|
1894
|
+
this.div.classed(Nt, !this._isShown);
|
|
1896
1895
|
}), this._isShown = !1;
|
|
1897
1896
|
}
|
|
1898
1897
|
/** Hides the tooltip after `hideDelay` */
|
|
@@ -1900,7 +1899,7 @@ class fi {
|
|
|
1900
1899
|
window.clearTimeout(this._showDelayTimeoutId), this.config.hideDelay ? (window.clearTimeout(this._hideDelayTimeoutId), this._hideDelayTimeoutId = setTimeout(() => this._hide(), this.config.hideDelay)) : this._hide();
|
|
1901
1900
|
}
|
|
1902
1901
|
_display() {
|
|
1903
|
-
window.clearTimeout(this._hideDelayTimeoutId), this.div.classed(
|
|
1902
|
+
window.clearTimeout(this._hideDelayTimeoutId), this.div.classed(Nt, !1).classed(Pt, !0), this._isShown = !0;
|
|
1904
1903
|
}
|
|
1905
1904
|
/** Simply display the tooltip with its previous content on position, taking into account `showDelay` */
|
|
1906
1905
|
display() {
|
|
@@ -1913,47 +1912,47 @@ class fi {
|
|
|
1913
1912
|
console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");
|
|
1914
1913
|
return;
|
|
1915
1914
|
}
|
|
1916
|
-
const { config: n } = this, i = this.element.offsetWidth, r = this.element.offsetHeight, o = this._overriddenHorizontalPlacement || (n.horizontalPlacement ===
|
|
1915
|
+
const { config: n } = this, i = this.element.offsetWidth, r = this.element.offsetHeight, o = this._overriddenHorizontalPlacement || (n.horizontalPlacement === x.Auto ? x.Center : n.horizontalPlacement), a = n.verticalPlacement === x.Auto ? e.y - r < 0 ? x.Bottom : x.Top : n.verticalPlacement, s = 5, c = o === x.Left ? -i - s - n.horizontalShift : o === x.Center ? -i / 2 : s + n.horizontalShift, l = a === x.Bottom ? s + n.verticalShift : a === x.Center ? -r / 2 : -s - n.verticalShift - r, [d, h] = this._constraintPosToContainer(e.x + c, e.y + l, i, r);
|
|
1917
1916
|
this._applyPosition(d, h, r);
|
|
1918
1917
|
}
|
|
1919
1918
|
placeByElement(e) {
|
|
1920
1919
|
const { config: n } = this;
|
|
1921
1920
|
this._hoveredElement = e;
|
|
1922
|
-
const i = 5, r = this.element.offsetWidth, o = this.element.offsetHeight, a = this.isContainerBody(), s = a ? window.innerWidth : this._container.scrollWidth, c = e.getBoundingClientRect(), l = a ? [c.x, c.y] :
|
|
1921
|
+
const i = 5, r = this.element.offsetWidth, o = this.element.offsetHeight, a = this.isContainerBody(), s = a ? window.innerWidth : this._container.scrollWidth, c = e.getBoundingClientRect(), l = a ? [c.x, c.y] : It({
|
|
1923
1922
|
clientX: c.x,
|
|
1924
1923
|
clientY: c.y,
|
|
1925
1924
|
pageX: c.x,
|
|
1926
1925
|
pageY: c.y
|
|
1927
|
-
}, this._container), d = this._overriddenHorizontalPlacement || (n.horizontalPlacement ===
|
|
1926
|
+
}, this._container), d = this._overriddenHorizontalPlacement || (n.horizontalPlacement === x.Auto ? l[0] - r < 0 ? x.Right : l[0] + r > s ? x.Left : x.Center : n.horizontalPlacement);
|
|
1928
1927
|
let h = 0;
|
|
1929
1928
|
switch (d) {
|
|
1930
|
-
case
|
|
1929
|
+
case x.Left:
|
|
1931
1930
|
h = -r - i - n.horizontalShift;
|
|
1932
1931
|
break;
|
|
1933
|
-
case
|
|
1932
|
+
case x.Right:
|
|
1934
1933
|
h = c.width + i + n.horizontalShift;
|
|
1935
1934
|
break;
|
|
1936
|
-
case
|
|
1935
|
+
case x.Center:
|
|
1937
1936
|
default:
|
|
1938
1937
|
h = (-r + c.width) / 2;
|
|
1939
1938
|
break;
|
|
1940
1939
|
}
|
|
1941
|
-
const u = n.verticalPlacement ===
|
|
1940
|
+
const u = n.verticalPlacement === x.Auto ? d !== x.Center ? x.Center : l[1] - o < 0 ? x.Bottom : x.Top : n.verticalPlacement;
|
|
1942
1941
|
let f = -o;
|
|
1943
1942
|
switch (u) {
|
|
1944
|
-
case
|
|
1943
|
+
case x.Center:
|
|
1945
1944
|
f += (o + c.height) / 2;
|
|
1946
1945
|
break;
|
|
1947
|
-
case
|
|
1946
|
+
case x.Bottom:
|
|
1948
1947
|
f += o + c.height + i + n.verticalShift;
|
|
1949
1948
|
break;
|
|
1950
|
-
case
|
|
1949
|
+
case x.Top:
|
|
1951
1950
|
default:
|
|
1952
1951
|
f += -i - n.verticalShift;
|
|
1953
1952
|
break;
|
|
1954
1953
|
}
|
|
1955
|
-
const [
|
|
1956
|
-
this._applyPosition(
|
|
1954
|
+
const [y, m] = this._constraintPosToContainer(l[0] + h, l[1] + f, r, o);
|
|
1955
|
+
this._applyPosition(y, m, o);
|
|
1957
1956
|
}
|
|
1958
1957
|
isContainerBody() {
|
|
1959
1958
|
return this._container === document.body;
|
|
@@ -1968,14 +1967,14 @@ class fi {
|
|
|
1968
1967
|
render(e) {
|
|
1969
1968
|
var n;
|
|
1970
1969
|
const { config: i, prevConfig: r } = this;
|
|
1971
|
-
e instanceof HTMLElement ? this.div.select(":first-child").node() !== e && this.div.html("").append(() => e) : e
|
|
1970
|
+
e instanceof HTMLElement ? this.div.select(":first-child").node() !== e && this.div.html("").append(() => e) : e && this.div.html(e), this.div.classed((n = i.className) !== null && n !== void 0 ? n : "", !!i.className).classed(ci, !i.allowHover), r?.className && r.className !== i.className && this.div.classed(r.className, !1), this.display();
|
|
1972
1971
|
}
|
|
1973
1972
|
_applyPosition(e, n, i) {
|
|
1974
1973
|
const r = this.isContainerBody(), o = r ? window.innerHeight : this._container.scrollHeight;
|
|
1975
|
-
this.div.classed(
|
|
1974
|
+
this.div.classed(si, r).style("top", r ? `${n}px` : "unset").style("bottom", r ? "unset" : `${o - n - i}px`).style("left", `${e}px`);
|
|
1976
1975
|
}
|
|
1977
1976
|
_constraintPosToContainer(e, n, i, r) {
|
|
1978
|
-
const o = this.isContainerBody(), a = o ? window.innerHeight : this._container.scrollHeight, s = o ? window.innerWidth : this._container.scrollWidth, c = 10, l = e > s - i - c, d = e < c, h = l ? s - i - c : d ? c : e, u = 10, f = n > a - r - u,
|
|
1977
|
+
const o = this.isContainerBody(), a = o ? window.innerHeight : this._container.scrollHeight, s = o ? window.innerWidth : this._container.scrollWidth, c = 10, l = e > s - i - c, d = e < c, h = l ? s - i - c : d ? c : e, u = 10, f = n > a - r - u, y = n < u, m = f ? a - r - u : y ? u : n;
|
|
1979
1978
|
return [
|
|
1980
1979
|
s < i ? 0 : h,
|
|
1981
1980
|
a < r ? 0 : m
|
|
@@ -1988,20 +1987,20 @@ class fi {
|
|
|
1988
1987
|
_setUpEvents() {
|
|
1989
1988
|
const { config: e } = this;
|
|
1990
1989
|
this.components.forEach((n) => {
|
|
1991
|
-
const i =
|
|
1990
|
+
const i = mt(n.element);
|
|
1992
1991
|
i.on("mousemove.tooltip", (r) => {
|
|
1993
|
-
const
|
|
1994
|
-
for (const
|
|
1995
|
-
const
|
|
1996
|
-
if (!
|
|
1992
|
+
const o = r.composedPath && r.composedPath() || r.path || [r.target];
|
|
1993
|
+
for (const a of Object.keys(e.triggers)) {
|
|
1994
|
+
const s = e.triggers[a];
|
|
1995
|
+
if (!s)
|
|
1997
1996
|
continue;
|
|
1998
|
-
const
|
|
1999
|
-
for (const
|
|
2000
|
-
if (
|
|
1997
|
+
const c = i.selectAll(`.${a}`).nodes();
|
|
1998
|
+
for (const l of o) {
|
|
1999
|
+
if (l === i.node())
|
|
2001
2000
|
break;
|
|
2002
|
-
if (
|
|
2003
|
-
const
|
|
2004
|
-
|
|
2001
|
+
if (l.classList.contains(a)) {
|
|
2002
|
+
const d = c.indexOf(l), h = mt(l).datum(), u = s(h, d, c), [f, y] = this.isContainerBody() ? [r.clientX, r.clientY] : It(r, this._container);
|
|
2003
|
+
u === null ? this.hide() : (this.render(u), e.followCursor ? this.place({ x: f, y }) : this.placeByElement(l)), r.stopPropagation();
|
|
2005
2004
|
return;
|
|
2006
2005
|
}
|
|
2007
2006
|
}
|
|
@@ -2023,39 +2022,39 @@ class fi {
|
|
|
2023
2022
|
this._mutationObserver.disconnect(), window.clearTimeout(this._hideDelayTimeoutId), window.clearTimeout(this._showDelayTimeoutId), (e = this.div) === null || e === void 0 || e.remove();
|
|
2024
2023
|
}
|
|
2025
2024
|
}
|
|
2026
|
-
|
|
2027
|
-
function
|
|
2025
|
+
li.selectors = fa;
|
|
2026
|
+
function da(t) {
|
|
2028
2027
|
return t;
|
|
2029
2028
|
}
|
|
2030
|
-
var
|
|
2031
|
-
function
|
|
2029
|
+
var Lt = 1, Bt = 2, ye = 3, Tt = 4, Mn = 1e-6;
|
|
2030
|
+
function ga(t) {
|
|
2032
2031
|
return "translate(" + t + ",0)";
|
|
2033
2032
|
}
|
|
2034
|
-
function
|
|
2033
|
+
function ma(t) {
|
|
2035
2034
|
return "translate(0," + t + ")";
|
|
2036
2035
|
}
|
|
2037
|
-
function
|
|
2036
|
+
function pa(t) {
|
|
2038
2037
|
return (e) => +t(e);
|
|
2039
2038
|
}
|
|
2040
|
-
function
|
|
2039
|
+
function va(t, e) {
|
|
2041
2040
|
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
|
|
2042
2041
|
}
|
|
2043
|
-
function
|
|
2042
|
+
function ya() {
|
|
2044
2043
|
return !this.__axis;
|
|
2045
2044
|
}
|
|
2046
2045
|
function re(t, e) {
|
|
2047
|
-
var n = [], i = null, r = null, o = 6, a = 6, s = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = t ===
|
|
2046
|
+
var n = [], i = null, r = null, o = 6, a = 6, s = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = t === Lt || t === Tt ? -1 : 1, d = t === Tt || t === Bt ? "x" : "y", h = t === Lt || t === ye ? ga : ma;
|
|
2048
2047
|
function u(f) {
|
|
2049
|
-
var
|
|
2050
|
-
|
|
2051
|
-
return isFinite(k =
|
|
2052
|
-
}),
|
|
2053
|
-
var
|
|
2054
|
-
return h((
|
|
2055
|
-
})),
|
|
2056
|
-
return h(
|
|
2057
|
-
}),
|
|
2058
|
-
this.__axis =
|
|
2048
|
+
var y = i ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), m = r ?? (e.tickFormat ? e.tickFormat.apply(e, n) : da), b = Math.max(o, 0) + s, w = e.range(), P = +w[0] + c, F = +w[w.length - 1] + c, S = (e.bandwidth ? va : pa)(e.copy(), c), Y = f.selection ? f.selection() : f, p = Y.selectAll(".domain").data([null]), C = Y.selectAll(".tick").data(y, e).order(), V = C.exit(), q = C.enter().append("g").attr("class", "tick"), G = C.select("line"), j = C.select("text");
|
|
2049
|
+
p = p.merge(p.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), C = C.merge(q), G = G.merge(q.append("line").attr("stroke", "currentColor").attr(d + "2", l * o)), j = j.merge(q.append("text").attr("fill", "currentColor").attr(d, l * b).attr("dy", t === Lt ? "0em" : t === ye ? "0.71em" : "0.32em")), f !== Y && (p = p.transition(f), C = C.transition(f), G = G.transition(f), j = j.transition(f), V = V.transition(f).attr("opacity", Mn).attr("transform", function(k) {
|
|
2050
|
+
return isFinite(k = S(k)) ? h(k + c) : this.getAttribute("transform");
|
|
2051
|
+
}), q.attr("opacity", Mn).attr("transform", function(k) {
|
|
2052
|
+
var I = this.parentNode.__axis;
|
|
2053
|
+
return h((I && isFinite(I = I(k)) ? I : S(k)) + c);
|
|
2054
|
+
})), V.remove(), p.attr("d", t === Tt || t === Bt ? a ? "M" + l * a + "," + P + "H" + c + "V" + F + "H" + l * a : "M" + c + "," + P + "V" + F : a ? "M" + P + "," + l * a + "V" + c + "H" + F + "V" + l * a : "M" + P + "," + c + "H" + F), C.attr("opacity", 1).attr("transform", function(k) {
|
|
2055
|
+
return h(S(k) + c);
|
|
2056
|
+
}), G.attr(d + "2", l * o), j.attr(d, l * b).text(m), Y.filter(ya).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Bt ? "start" : t === Tt ? "end" : "middle"), Y.each(function() {
|
|
2057
|
+
this.__axis = S;
|
|
2059
2058
|
});
|
|
2060
2059
|
}
|
|
2061
2060
|
return u.scale = function(f) {
|
|
@@ -2080,64 +2079,57 @@ function re(t, e) {
|
|
|
2080
2079
|
return arguments.length ? (c = +f, u) : c;
|
|
2081
2080
|
}, u;
|
|
2082
2081
|
}
|
|
2083
|
-
function
|
|
2084
|
-
return re(Nt, t);
|
|
2085
|
-
}
|
|
2086
|
-
function Un(t) {
|
|
2082
|
+
function Tn(t) {
|
|
2087
2083
|
return re(Lt, t);
|
|
2088
2084
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return re(
|
|
2085
|
+
function Cn(t) {
|
|
2086
|
+
return re(Bt, t);
|
|
2091
2087
|
}
|
|
2092
|
-
function
|
|
2093
|
-
return re(
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
const n = "--vis-", i = Object.entries(t);
|
|
2098
|
-
return Object.fromEntries(i.map(([r]) => [Gi(r.replace(n, "")), r]));
|
|
2099
|
-
}
|
|
2100
|
-
function Sa(t, e) {
|
|
2101
|
-
we({
|
|
2102
|
-
":root": t,
|
|
2103
|
-
[`body.theme-dark .${e}`]: Object.keys(t).filter((n) => n.includes("--vis-dark")).map((n) => ({
|
|
2104
|
-
[n.replace("--vis-dark", "--vis")]: `var(${n})`
|
|
2105
|
-
}))
|
|
2106
|
-
});
|
|
2088
|
+
function Sn(t) {
|
|
2089
|
+
return re(ye, t);
|
|
2090
|
+
}
|
|
2091
|
+
function Dn(t) {
|
|
2092
|
+
return re(Tt, t);
|
|
2107
2093
|
}
|
|
2108
|
-
const
|
|
2094
|
+
const xa = Object.assign(Object.assign({}, ze), { 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: $i.Middle, tickTextFitMode: Yn.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 }), ui = L`
|
|
2109
2095
|
label: axis-component;
|
|
2110
|
-
`,
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2096
|
+
`, ka = we`
|
|
2097
|
+
:root {
|
|
2098
|
+
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
2099
|
+
/* --vis-axis-font-family: */
|
|
2100
|
+
--vis-axis-tick-color: #e8e9ef;
|
|
2101
|
+
/* --vis-axis-domain-color: // Undefined by default to allow fallback to var(--vis-axis-tick-color) */
|
|
2102
|
+
--vis-axis-grid-color: #e8e9ef;
|
|
2103
|
+
--vis-axis-label-color: #6c778c;
|
|
2104
|
+
--vis-axis-tick-label-color: #6c778c;
|
|
2105
|
+
--vis-axis-tick-label-font-size: 12px;
|
|
2106
|
+
--vis-axis-tick-label-cursor: default;
|
|
2107
|
+
--vis-axis-tick-label-text-decoration: none;
|
|
2108
|
+
--vis-axis-label-font-size: 14px;
|
|
2109
|
+
--vis-axis-tick-line-width: 1px;
|
|
2110
|
+
--vis-axis-tick-label-hide-transition: opacity 400ms ease-in-out;
|
|
2111
|
+
--vis-axis-grid-line-width: 1px;
|
|
2112
|
+
/* --vis-axis-domain-line-width: // Undefined by default to allow fallback to var(--vis-axis-grid-line-width) */
|
|
2113
|
+
|
|
2114
|
+
--vis-dark-axis-tick-color: #6c778c;
|
|
2115
|
+
/* --vis-dark-axis-domain-color: // Undefined by default to allow fallback to var(--vis-dark-axis-tick-color) */
|
|
2116
|
+
--vis-dark-axis-tick-label-color: #e8e9ef;
|
|
2117
|
+
--vis-dark-axis-grid-color: #6c778c;
|
|
2118
|
+
--vis-dark-axis-label-color: #fefefe;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
body.theme-dark ${`.${ui}`} {
|
|
2122
|
+
--vis-axis-tick-color: var(--vis-dark-axis-tick-color);
|
|
2123
|
+
--vis-axis-domain-color: var(--vis-dark-axis-domain-color);
|
|
2124
|
+
--vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
|
|
2125
|
+
--vis-axis-grid-color: var(--vis-dark-axis-grid-color);
|
|
2126
|
+
--vis-axis-label-color: var(--vis-dark-axis-label-color);
|
|
2127
|
+
}
|
|
2128
|
+
`, Re = L`
|
|
2137
2129
|
label: hide-tick-line;
|
|
2138
|
-
`,
|
|
2130
|
+
`, We = L`
|
|
2139
2131
|
label: hide-domain;
|
|
2140
|
-
`,
|
|
2132
|
+
`, hi = L`
|
|
2141
2133
|
label: axis;
|
|
2142
2134
|
|
|
2143
2135
|
user-select: none;
|
|
@@ -2145,21 +2137,20 @@ const He = L`
|
|
|
2145
2137
|
.domain {
|
|
2146
2138
|
stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
|
|
2147
2139
|
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
2148
|
-
stroke-dasharray: var(--vis-axis-domain-line-dasharray, var(--vis-axis-grid-line-dasharray));
|
|
2149
2140
|
}
|
|
2150
2141
|
|
|
2151
|
-
&${`.${
|
|
2142
|
+
&${`.${Re}`} {
|
|
2152
2143
|
.tick > line {
|
|
2153
2144
|
opacity: 0;
|
|
2154
2145
|
}
|
|
2155
2146
|
}
|
|
2156
2147
|
|
|
2157
|
-
&${`.${
|
|
2148
|
+
&${`.${We}`} {
|
|
2158
2149
|
.domain {
|
|
2159
2150
|
opacity: 0;
|
|
2160
2151
|
}
|
|
2161
2152
|
}
|
|
2162
|
-
`,
|
|
2153
|
+
`, fi = L`
|
|
2163
2154
|
label: grid;
|
|
2164
2155
|
|
|
2165
2156
|
.domain {
|
|
@@ -2169,14 +2160,12 @@ const He = L`
|
|
|
2169
2160
|
line {
|
|
2170
2161
|
stroke: var(--vis-axis-grid-color);
|
|
2171
2162
|
stroke-width: var(--vis-axis-grid-line-width);
|
|
2172
|
-
stroke-dasharray: var(--vis-axis-grid-line-dasharray);
|
|
2173
2163
|
}
|
|
2174
|
-
`,
|
|
2164
|
+
`, di = L`
|
|
2175
2165
|
label: tick;
|
|
2176
2166
|
|
|
2177
2167
|
stroke: none;
|
|
2178
2168
|
font-size: var(--vis-axis-tick-label-font-size);
|
|
2179
|
-
font-weight: var(--vis-axis-tick-label-weight);
|
|
2180
2169
|
|
|
2181
2170
|
line {
|
|
2182
2171
|
stroke: var(--vis-axis-tick-color);
|
|
@@ -2190,39 +2179,34 @@ const He = L`
|
|
|
2190
2179
|
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
2191
2180
|
stroke: none;
|
|
2192
2181
|
}
|
|
2193
|
-
`,
|
|
2194
|
-
label: tick-text-exiting;
|
|
2195
|
-
`, be = L`
|
|
2182
|
+
`, xe = L`
|
|
2196
2183
|
label: label;
|
|
2197
2184
|
fill: var(--vis-axis-label-color);
|
|
2198
2185
|
font-size: var(--vis-axis-label-font-size);
|
|
2199
|
-
font-weight: var(--vis-axis-label-weight);
|
|
2200
2186
|
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
2201
2187
|
text-anchor: middle;
|
|
2202
|
-
`,
|
|
2188
|
+
`, gi = L`
|
|
2203
2189
|
label: tick-label;
|
|
2204
|
-
`,
|
|
2190
|
+
`, mi = L`
|
|
2205
2191
|
label: tick-label-hideable;
|
|
2206
2192
|
opacity: 0;
|
|
2207
2193
|
transition: var(--vis-axis-tick-label-hide-transition);
|
|
2208
|
-
`,
|
|
2194
|
+
`, ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2209
2195
|
__proto__: null,
|
|
2210
|
-
axis:
|
|
2211
|
-
|
|
2212
|
-
grid:
|
|
2213
|
-
hideDomain:
|
|
2214
|
-
hideTickLine:
|
|
2215
|
-
label:
|
|
2216
|
-
root:
|
|
2217
|
-
tick:
|
|
2218
|
-
tickLabel:
|
|
2219
|
-
tickLabelHideable:
|
|
2220
|
-
tickTextExiting: _e,
|
|
2221
|
-
variables: Da
|
|
2196
|
+
axis: hi,
|
|
2197
|
+
globalStyles: ka,
|
|
2198
|
+
grid: fi,
|
|
2199
|
+
hideDomain: We,
|
|
2200
|
+
hideTickLine: Re,
|
|
2201
|
+
label: xe,
|
|
2202
|
+
root: ui,
|
|
2203
|
+
tick: di,
|
|
2204
|
+
tickLabel: gi,
|
|
2205
|
+
tickLabelHideable: mi
|
|
2222
2206
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2223
|
-
class
|
|
2207
|
+
class pi extends ai {
|
|
2224
2208
|
constructor(e) {
|
|
2225
|
-
super(), this._defaultConfig =
|
|
2209
|
+
super(), this._defaultConfig = xa, this.config = this._defaultConfig, this._defaultNumTicks = 3, this.events = {}, e && this.setConfig(e), this.axisGroup = this.g.append("g"), this.gridGroup = this.g.append("g").attr("class", fi);
|
|
2226
2210
|
}
|
|
2227
2211
|
/** Renders axis to an invisible grouped to calculate automatic chart margins */
|
|
2228
2212
|
preRender() {
|
|
@@ -2231,7 +2215,7 @@ class xi extends li {
|
|
|
2231
2215
|
}
|
|
2232
2216
|
getPosition() {
|
|
2233
2217
|
const { config: { type: e, position: n } } = this;
|
|
2234
|
-
return n ?? (e ===
|
|
2218
|
+
return n ?? (e === D.X ? x.Bottom : x.Left);
|
|
2235
2219
|
}
|
|
2236
2220
|
_getAxisSize(e) {
|
|
2237
2221
|
return e.node().getBBox();
|
|
@@ -2239,22 +2223,22 @@ class xi extends li {
|
|
|
2239
2223
|
_getRequiredMargin(e = this._axisSizeBBox) {
|
|
2240
2224
|
const { config: { type: n, position: i } } = this;
|
|
2241
2225
|
switch (n) {
|
|
2242
|
-
case
|
|
2226
|
+
case D.X: {
|
|
2243
2227
|
const o = this._axisSizeBBox.x + this._axisSizeBBox.width, a = this._axisSizeBBox.x < 0 ? Math.abs(this._axisSizeBBox.x) : 0, s = o - this._width > 1 ? o - this._width : 0;
|
|
2244
2228
|
switch (i) {
|
|
2245
|
-
case
|
|
2229
|
+
case x.Top:
|
|
2246
2230
|
return { top: e.height, left: a, right: s };
|
|
2247
|
-
case
|
|
2231
|
+
case x.Bottom:
|
|
2248
2232
|
default:
|
|
2249
2233
|
return { bottom: e.height, left: a, right: s };
|
|
2250
2234
|
}
|
|
2251
2235
|
}
|
|
2252
|
-
case
|
|
2236
|
+
case D.Y: {
|
|
2253
2237
|
const r = e.height > this._height ? (e.height - this._height) / 2 : 0, o = r, a = r;
|
|
2254
2238
|
switch (i) {
|
|
2255
|
-
case
|
|
2239
|
+
case x.Right:
|
|
2256
2240
|
return { right: e.width, top: o, bottom: a };
|
|
2257
|
-
case
|
|
2241
|
+
case x.Left:
|
|
2258
2242
|
default:
|
|
2259
2243
|
return { left: e.width, top: o, bottom: a };
|
|
2260
2244
|
}
|
|
@@ -2268,19 +2252,19 @@ class xi extends li {
|
|
|
2268
2252
|
getOffset(e) {
|
|
2269
2253
|
const { config: { type: n, position: i } } = this;
|
|
2270
2254
|
switch (n) {
|
|
2271
|
-
case
|
|
2255
|
+
case D.X:
|
|
2272
2256
|
switch (i) {
|
|
2273
|
-
case
|
|
2257
|
+
case x.Top:
|
|
2274
2258
|
return { top: e.top, left: e.left };
|
|
2275
|
-
case
|
|
2259
|
+
case x.Bottom:
|
|
2276
2260
|
default:
|
|
2277
2261
|
return { top: e.top + this._height, left: e.left };
|
|
2278
2262
|
}
|
|
2279
|
-
case
|
|
2263
|
+
case D.Y:
|
|
2280
2264
|
switch (i) {
|
|
2281
|
-
case
|
|
2265
|
+
case x.Right:
|
|
2282
2266
|
return { top: e.top, left: e.left + this._width };
|
|
2283
|
-
case
|
|
2267
|
+
case x.Left:
|
|
2284
2268
|
default:
|
|
2285
2269
|
return { top: e.top, left: e.left };
|
|
2286
2270
|
}
|
|
@@ -2289,121 +2273,82 @@ class xi extends li {
|
|
|
2289
2273
|
_render(e = this.config.duration, n = this.axisGroup) {
|
|
2290
2274
|
const { config: i } = this;
|
|
2291
2275
|
if (this._renderAxis(n, e), this._renderAxisLabel(n), i.gridLine) {
|
|
2292
|
-
const r = this._buildGrid();
|
|
2293
|
-
this.gridGroup.selectAll("*").interrupt(),
|
|
2276
|
+
const r = this._buildGrid().tickFormat(() => "");
|
|
2277
|
+
r.tickValues(this._getConfiguredTickValues()), this.gridGroup.selectAll("*").interrupt(), it(this.gridGroup, e).call(r).style("opacity", 1);
|
|
2294
2278
|
} else
|
|
2295
|
-
|
|
2279
|
+
it(this.gridGroup, e).style("opacity", 0);
|
|
2296
2280
|
i.tickTextAlign && this._alignTickLabels(), this._resolveTickLabelOverlap(n);
|
|
2297
2281
|
}
|
|
2298
2282
|
_buildAxis() {
|
|
2299
2283
|
const { config: { type: e, position: n, tickPadding: i } } = this, r = this._getNumTicks();
|
|
2300
2284
|
switch (e) {
|
|
2301
|
-
case
|
|
2285
|
+
case D.X:
|
|
2302
2286
|
switch (n) {
|
|
2303
|
-
case
|
|
2304
|
-
return
|
|
2305
|
-
case
|
|
2287
|
+
case x.Top:
|
|
2288
|
+
return Tn(this.xScale).ticks(r).tickPadding(i);
|
|
2289
|
+
case x.Bottom:
|
|
2306
2290
|
default:
|
|
2307
|
-
return
|
|
2291
|
+
return Sn(this.xScale).ticks(r).tickPadding(i);
|
|
2308
2292
|
}
|
|
2309
|
-
case
|
|
2293
|
+
case D.Y:
|
|
2310
2294
|
switch (n) {
|
|
2311
|
-
case
|
|
2312
|
-
return
|
|
2313
|
-
case
|
|
2295
|
+
case x.Right:
|
|
2296
|
+
return Cn(this.yScale).ticks(r).tickPadding(i);
|
|
2297
|
+
case x.Left:
|
|
2314
2298
|
default:
|
|
2315
|
-
return
|
|
2299
|
+
return Dn(this.yScale).ticks(r).tickPadding(i);
|
|
2316
2300
|
}
|
|
2317
2301
|
}
|
|
2318
2302
|
}
|
|
2319
2303
|
_buildGrid() {
|
|
2320
|
-
const { config: e } = this;
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
case y.Bottom:
|
|
2330
|
-
default: {
|
|
2331
|
-
n = Yn(this.xScale);
|
|
2332
|
-
break;
|
|
2333
|
-
}
|
|
2304
|
+
const { config: { type: e, position: n } } = this, i = this._getNumTicks();
|
|
2305
|
+
switch (e) {
|
|
2306
|
+
case D.X:
|
|
2307
|
+
switch (n) {
|
|
2308
|
+
case x.Top:
|
|
2309
|
+
return Tn(this.xScale).ticks(i * 2).tickSize(-this._height).tickSizeOuter(0);
|
|
2310
|
+
case x.Bottom:
|
|
2311
|
+
default:
|
|
2312
|
+
return Sn(this.xScale).ticks(i * 2).tickSize(-this._height).tickSizeOuter(0);
|
|
2334
2313
|
}
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
case
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
}
|
|
2343
|
-
case y.Left:
|
|
2344
|
-
default: {
|
|
2345
|
-
n = Bn(this.yScale);
|
|
2346
|
-
break;
|
|
2347
|
-
}
|
|
2314
|
+
case D.Y:
|
|
2315
|
+
switch (n) {
|
|
2316
|
+
case x.Right:
|
|
2317
|
+
return Cn(this.yScale).ticks(i * 2).tickSize(-this._width).tickSizeOuter(0);
|
|
2318
|
+
case x.Left:
|
|
2319
|
+
default:
|
|
2320
|
+
return Dn(this.yScale).ticks(i * 2).tickSize(-this._width).tickSizeOuter(0);
|
|
2348
2321
|
}
|
|
2349
|
-
n.tickSize(-this._width);
|
|
2350
2322
|
}
|
|
2351
|
-
n.tickSizeOuter(0).tickFormat(() => "");
|
|
2352
|
-
const i = this._getNumTicks() * 2, r = n.scale(), o = r.domain(), a = () => {
|
|
2353
|
-
if (!e.minMaxTicksOnlyShowGridLines)
|
|
2354
|
-
return o;
|
|
2355
|
-
const c = r.ticks(i);
|
|
2356
|
-
if (c.length < 2)
|
|
2357
|
-
return o;
|
|
2358
|
-
const l = +c[1] - +c[0], d = o[1];
|
|
2359
|
-
return +d - +c[c.length - 1] > l / 2 ? [...c, d] : c;
|
|
2360
|
-
}, s = e.tickValues ? this._getConfiguredTickValues() : this._shouldRenderMinMaxTicksOnly() ? a() : r.ticks(i);
|
|
2361
|
-
return n.tickValues(s), n;
|
|
2362
2323
|
}
|
|
2363
2324
|
_renderAxis(e = this.axisGroup, n = this.config.duration) {
|
|
2364
|
-
const { config: i } = this, r = this._buildAxis(), o =
|
|
2365
|
-
r.tickValues(
|
|
2366
|
-
const
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
let D = (P = (b = i.tickFormat) === null || b === void 0 ? void 0 : b.call(i, p, m, a)) !== null && P !== void 0 ? P : `${p}`;
|
|
2376
|
-
const M = _[m];
|
|
2377
|
-
if (!this._tickTextStyleCached) {
|
|
2378
|
-
const w = getComputedStyle(M);
|
|
2379
|
-
this._tickTextStyleCached = {
|
|
2380
|
-
fontSize: Number.parseFloat(w.fontSize),
|
|
2381
|
-
fontFamily: w.fontFamily,
|
|
2382
|
-
fontWidthToHeightRatio: Zi()
|
|
2383
|
-
};
|
|
2384
|
-
}
|
|
2385
|
-
const [U, v] = this._getTickTextOffset(u, h, this._tickTextStyleCached.fontSize), T = {
|
|
2386
|
-
verticalAlign: i.type === S.X ? qe.Top : qe.Middle,
|
|
2387
|
-
width: f,
|
|
2325
|
+
const { config: i } = this, r = this._buildAxis(), o = this._getConfiguredTickValues() || r.scale().ticks(this._getNumTicks());
|
|
2326
|
+
r.tickValues(o), e.selectAll("*").interrupt(), it(e, n).call(r);
|
|
2327
|
+
const a = e.selectAll("g.tick");
|
|
2328
|
+
a.classed(di, !0).style("font-size", i.tickTextFontSize);
|
|
2329
|
+
const s = e.selectAll("g.tick > text").filter((c) => o.some((l) => Hi(c, l))).classed(gi, !0).classed(mi, !!i.tickTextHideOverlapping).style("fill", i.tickTextColor);
|
|
2330
|
+
if (s.nodes().forEach((c) => Ei(c)), s.each((c, l, d) => {
|
|
2331
|
+
var h, u;
|
|
2332
|
+
let f = (u = (h = i.tickFormat) === null || h === void 0 ? void 0 : h.call(i, c, l, o)) !== null && u !== void 0 ? u : `${c}`;
|
|
2333
|
+
const y = d[l], m = i.tickTextWidth || (i.type === D.X ? this._containerWidth / (a.size() + 1) : this._containerWidth / 5), b = getComputedStyle(y), w = Number.parseFloat(b.fontSize), P = b.fontFamily, F = {
|
|
2334
|
+
verticalAlign: i.type === D.X ? Xe.Top : Xe.Middle,
|
|
2335
|
+
width: m,
|
|
2388
2336
|
textRotationAngle: i.tickTextAngle,
|
|
2389
2337
|
separator: i.tickTextSeparator,
|
|
2390
|
-
wordBreak: i.tickTextForceWordBreak
|
|
2391
|
-
x: U,
|
|
2392
|
-
y: v
|
|
2338
|
+
wordBreak: i.tickTextForceWordBreak
|
|
2393
2339
|
};
|
|
2394
|
-
if (i.tickTextFitMode ===
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2340
|
+
if (i.tickTextFitMode === Yn.Trim) {
|
|
2341
|
+
const Y = mt(y).text(f);
|
|
2342
|
+
Xi(Y, m, i.tickTextTrimType, !0, w, 0.58), f = mt(y).text();
|
|
2397
2343
|
}
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
ot(e.select(".domain"), n).attr("d", p);
|
|
2344
|
+
Vi(y, { text: f, fontFamily: P, fontSize: w }, F);
|
|
2345
|
+
}), e.classed(hi, !0).classed(Re, !i.tickLine).classed(We, !i.domainLine), i.fullSize) {
|
|
2346
|
+
const c = this._getFullDomainPath(0);
|
|
2347
|
+
it(e.select(".domain"), n).attr("d", c);
|
|
2403
2348
|
}
|
|
2404
2349
|
}
|
|
2405
2350
|
_resolveTickLabelOverlap(e = this.axisGroup) {
|
|
2406
|
-
const { config: n } = this, i = e.selectAll(
|
|
2351
|
+
const { config: n } = this, i = e.selectAll("g.tick > text");
|
|
2407
2352
|
if (!n.tickTextHideOverlapping) {
|
|
2408
2353
|
i.style("opacity", null);
|
|
2409
2354
|
return;
|
|
@@ -2430,7 +2375,7 @@ class xi extends li {
|
|
|
2430
2375
|
const h = a[d];
|
|
2431
2376
|
if (h._visible) {
|
|
2432
2377
|
const f = h.getBoundingClientRect();
|
|
2433
|
-
if (
|
|
2378
|
+
if (ji(l, f, -5)) {
|
|
2434
2379
|
h._visible = !1;
|
|
2435
2380
|
break;
|
|
2436
2381
|
}
|
|
@@ -2439,124 +2384,96 @@ class xi extends li {
|
|
|
2439
2384
|
});
|
|
2440
2385
|
e.each((i, r, o) => {
|
|
2441
2386
|
const a = o[r];
|
|
2442
|
-
|
|
2387
|
+
mt(a).style("opacity", a._visible ? 1 : 0);
|
|
2443
2388
|
});
|
|
2444
2389
|
}
|
|
2445
2390
|
_getNumTicks() {
|
|
2446
2391
|
const { config: { type: e, numTicks: n } } = this;
|
|
2447
2392
|
if (n)
|
|
2448
2393
|
return n;
|
|
2449
|
-
if (e ===
|
|
2394
|
+
if (e === D.X) {
|
|
2450
2395
|
const i = this.xScale.range(), r = i[1] - i[0];
|
|
2451
2396
|
return Math.floor(r / 175);
|
|
2452
2397
|
}
|
|
2453
|
-
if (e ===
|
|
2398
|
+
if (e === D.Y) {
|
|
2454
2399
|
const i = this.yScale.range(), r = Math.abs(i[0] - i[1]);
|
|
2455
2400
|
return Math.pow(r, 0.85) / 25;
|
|
2456
2401
|
}
|
|
2457
2402
|
return this._defaultNumTicks;
|
|
2458
2403
|
}
|
|
2459
2404
|
_getConfiguredTickValues() {
|
|
2460
|
-
const { config: e } = this, n = e.type ===
|
|
2461
|
-
return e.tickValues ? e.tickValues.filter((r) => r >= i[0] && r <= i[1]) : null;
|
|
2462
|
-
}
|
|
2463
|
-
_shouldRenderMinMaxTicksOnly() {
|
|
2464
|
-
const { config: e } = this;
|
|
2465
|
-
return e.minMaxTicksOnly || e.type === S.X && this._width < e.minMaxTicksOnlyWhenWidthIsLess;
|
|
2405
|
+
const { config: e } = this, n = e.type === D.X ? this.xScale : this.yScale, i = n?.domain();
|
|
2406
|
+
return e.tickValues ? e.tickValues.filter((r) => r >= i[0] && r <= i[1]) : e.minMaxTicksOnly || e.type === D.X && this._width < e.minMaxTicksOnlyWhenWidthIsLess ? i : null;
|
|
2466
2407
|
}
|
|
2467
2408
|
_getFullDomainPath(e = 0) {
|
|
2468
2409
|
const { config: { type: n } } = this;
|
|
2469
2410
|
switch (n) {
|
|
2470
|
-
case
|
|
2411
|
+
case D.X:
|
|
2471
2412
|
return `M0.5, ${e} V0.5 H${this._width + 0.5} V${e}`;
|
|
2472
|
-
case
|
|
2413
|
+
case D.Y:
|
|
2473
2414
|
return `M${-e}, ${this._height + 0.5} H0.5 V0.5 H${-e}`;
|
|
2474
2415
|
}
|
|
2475
2416
|
}
|
|
2476
2417
|
_renderAxisLabel(e = this.axisGroup) {
|
|
2477
2418
|
var n;
|
|
2478
|
-
const { type: i, label: r, labelMargin: o, labelFontSize: a
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
u.text(r);
|
|
2483
|
-
let f = !1;
|
|
2484
|
-
if (s === rt.Wrap) {
|
|
2485
|
-
const M = i === S.Y ? this._height : this._width;
|
|
2486
|
-
u.node().getComputedTextLength() > M && (Ki(u, M), f = !0);
|
|
2487
|
-
}
|
|
2488
|
-
let p = l, m = d;
|
|
2489
|
-
if (s === rt.Wrap) {
|
|
2490
|
-
const M = u.node().getBBox();
|
|
2491
|
-
p = M.width, m = M.height;
|
|
2492
|
-
} else {
|
|
2493
|
-
const M = i === S.X ? p : m, U = getComputedStyle(u.node()), v = Number.parseFloat(U.fontSize);
|
|
2494
|
-
Ze(u, M, this.config.labelTextTrimType, !0, v);
|
|
2495
|
-
const T = u.node().getBBox();
|
|
2496
|
-
p = T.width, m = T.height;
|
|
2497
|
-
}
|
|
2498
|
-
const _ = i === S.X ? this._width / 2 : i === S.Y && s === rt.Wrap && f ? c === y.Left ? -l - m / 2 - 10 : l : Math.pow(-1, +(c === y.Left)) * l, b = i === S.Y ? this._height / 2 : i === S.X && s === rt.Wrap ? c === y.Top ? -d - m / 2 : d : Math.pow(-1, +(c === y.Top)) * d, P = i === S.X ? 0 : Math.pow(-1, +(c === y.Left)) * o, D = i === S.X ? Math.pow(-1, +(c === y.Top)) * o : 0;
|
|
2499
|
-
u.attr("transform", `translate(${_ + P},${b + D}) rotate(${h})`);
|
|
2419
|
+
const { type: i, label: r, labelMargin: o, labelFontSize: a } = this.config;
|
|
2420
|
+
e.selectAll(`.${xe}`).remove();
|
|
2421
|
+
const s = this.getPosition(), { width: c, height: l } = (n = this._axisRawBBox) !== null && n !== void 0 ? n : e.node().getBBox(), d = i === D.X ? this._width / 2 : Math.pow(-1, +(s === x.Left)) * c, h = i === D.X ? Math.pow(-1, +(s === x.Top)) * l : this._height / 2, u = i === D.X ? 0 : Math.pow(-1, +(s === x.Left)) * o, f = i === D.X ? Math.pow(-1, +(s === x.Top)) * o : 0, y = i === D.Y ? -90 : 0;
|
|
2422
|
+
e.append("text").attr("class", xe).text(r).attr("dy", `${this._getLabelDY()}em`).attr("transform", `translate(${d + u},${h + f}) rotate(${y})`).style("font-size", a).style("fill", this.config.labelColor);
|
|
2500
2423
|
}
|
|
2501
2424
|
_getLabelDY() {
|
|
2502
2425
|
const { type: e, position: n } = this.config;
|
|
2503
2426
|
switch (e) {
|
|
2504
|
-
case
|
|
2427
|
+
case D.X:
|
|
2505
2428
|
switch (n) {
|
|
2506
|
-
case
|
|
2429
|
+
case x.Top:
|
|
2507
2430
|
return 0;
|
|
2508
|
-
case
|
|
2431
|
+
case x.Bottom:
|
|
2509
2432
|
default:
|
|
2510
2433
|
return 0.75;
|
|
2511
2434
|
}
|
|
2512
|
-
case
|
|
2435
|
+
case D.Y:
|
|
2513
2436
|
switch (n) {
|
|
2514
|
-
case
|
|
2437
|
+
case x.Right:
|
|
2515
2438
|
return 0.75;
|
|
2516
|
-
case
|
|
2439
|
+
case x.Left:
|
|
2517
2440
|
default:
|
|
2518
2441
|
return -0.25;
|
|
2519
2442
|
}
|
|
2520
2443
|
}
|
|
2521
2444
|
}
|
|
2522
|
-
_getTickTextOffset(e, n, i) {
|
|
2523
|
-
var r;
|
|
2524
|
-
const { config: o } = this, a = ((r = o.tickTextAngle) !== null && r !== void 0 ? r : 0) / 180 * Math.PI, s = n + o.tickPadding;
|
|
2525
|
-
if (o.type === S.X) {
|
|
2526
|
-
const c = e === y.Bottom ? 1 : -1;
|
|
2527
|
-
return [
|
|
2528
|
-
c * s * Math.sin(a),
|
|
2529
|
-
c * (s + i / 2) * Math.cos(a)
|
|
2530
|
-
];
|
|
2531
|
-
} else {
|
|
2532
|
-
const c = e === y.Right ? 1 : -1;
|
|
2533
|
-
return [
|
|
2534
|
-
c * s * Math.cos(a),
|
|
2535
|
-
c * s * Math.sin(a)
|
|
2536
|
-
];
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2539
2445
|
_alignTickLabels() {
|
|
2540
|
-
const { config: { type: e, tickTextAlign: n, tickTextAngle: i, position: r } } = this, o = this.g.selectAll("g.tick > text"), a =
|
|
2446
|
+
const { config: { type: e, tickTextAlign: n, tickTextAngle: i, position: r } } = this, o = this.g.selectAll("g.tick > text"), a = this._getTickTextAnchor(n), s = e === D.X ? 0 : this._getYTickTextTranslate(n, r), c = i ? `translate(${s},0) rotate(${i})` : `translate(${s},0)`;
|
|
2541
2447
|
o.attr("transform", c).attr("text-anchor", a);
|
|
2542
2448
|
}
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2449
|
+
_getTickTextAnchor(e) {
|
|
2450
|
+
switch (e) {
|
|
2451
|
+
case ht.Left:
|
|
2452
|
+
return "start";
|
|
2453
|
+
case ht.Right:
|
|
2454
|
+
return "end";
|
|
2455
|
+
case ht.Center:
|
|
2456
|
+
return "middle";
|
|
2457
|
+
default:
|
|
2458
|
+
return null;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
_getYTickTextTranslate(e, n = x.Left) {
|
|
2462
|
+
const r = this._axisRawBBox.width - 9;
|
|
2546
2463
|
switch (e) {
|
|
2547
|
-
case
|
|
2548
|
-
return n ===
|
|
2549
|
-
case
|
|
2550
|
-
return n ===
|
|
2551
|
-
case
|
|
2552
|
-
return n ===
|
|
2464
|
+
case ht.Left:
|
|
2465
|
+
return n === x.Left ? r * -1 : 0;
|
|
2466
|
+
case ht.Right:
|
|
2467
|
+
return n === x.Left ? 0 : r;
|
|
2468
|
+
case ht.Center:
|
|
2469
|
+
return n === x.Left ? r * -0.5 : r * 0.5;
|
|
2553
2470
|
default:
|
|
2554
2471
|
return 0;
|
|
2555
2472
|
}
|
|
2556
2473
|
}
|
|
2557
2474
|
}
|
|
2558
|
-
|
|
2559
|
-
const
|
|
2475
|
+
pi.selectors = ba;
|
|
2476
|
+
const _a = Object.assign(Object.assign({}, ze), { 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 }), wa = we`
|
|
2560
2477
|
:root {
|
|
2561
2478
|
--vis-crosshair-line-stroke-color: #888;
|
|
2562
2479
|
--vis-crosshair-line-stroke-width: 1px;
|
|
@@ -2565,114 +2482,93 @@ const Fa = Object.assign(Object.assign({}, Ee), { yStacked: void 0, baseline: nu
|
|
|
2565
2482
|
--vis-crosshair-circle-stroke-width: 1px;
|
|
2566
2483
|
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
2567
2484
|
}
|
|
2568
|
-
`,
|
|
2485
|
+
`, Ma = L`
|
|
2569
2486
|
label: crosshair-component;
|
|
2570
|
-
`,
|
|
2487
|
+
`, vi = L`
|
|
2571
2488
|
stroke: var(--vis-crosshair-line-stroke-color);
|
|
2572
2489
|
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
2573
2490
|
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
2574
2491
|
pointer-events: none;
|
|
2575
|
-
`,
|
|
2492
|
+
`, yi = L`
|
|
2576
2493
|
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
2577
2494
|
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
2578
2495
|
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
2579
2496
|
pointer-events: none;
|
|
2580
|
-
`,
|
|
2497
|
+
`, Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2581
2498
|
__proto__: null,
|
|
2582
|
-
circle:
|
|
2583
|
-
globalStyles:
|
|
2584
|
-
line:
|
|
2585
|
-
root:
|
|
2499
|
+
circle: yi,
|
|
2500
|
+
globalStyles: wa,
|
|
2501
|
+
line: vi,
|
|
2502
|
+
root: Ma
|
|
2586
2503
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2587
|
-
class
|
|
2504
|
+
class xi extends ai {
|
|
2588
2505
|
constructor(e) {
|
|
2589
|
-
super(), this.clippable = !0, this._defaultConfig =
|
|
2506
|
+
super(), this.clippable = !0, this._defaultConfig = _a, this.config = this._defaultConfig, this.x = 0, this.show = !1, this._animFrameId = null, this._accessors = {
|
|
2590
2507
|
x: void 0,
|
|
2591
2508
|
y: void 0,
|
|
2592
2509
|
yStacked: void 0,
|
|
2593
2510
|
baseline: void 0
|
|
2594
|
-
}, e && this.setConfig(e), this.g.style("opacity", 0), this.line = this.g.append("line").attr("class",
|
|
2511
|
+
}, e && this.setConfig(e), this.g.style("opacity", this.show ? 1 : 0), this.line = this.g.append("line").attr("class", vi);
|
|
2595
2512
|
}
|
|
2596
2513
|
set accessors(e) {
|
|
2597
2514
|
this._accessors = e;
|
|
2598
2515
|
}
|
|
2599
2516
|
get accessors() {
|
|
2600
2517
|
var e;
|
|
2601
|
-
const { config: n } = this, i = !!(n.x || n.y || n.yStacked), r = i ? n.x : this._accessors.x, o = i ? n.y : this._accessors.y, a = o ?
|
|
2518
|
+
const { config: n } = this, i = !!(n.x || n.y || n.yStacked), r = i ? n.x : this._accessors.x, o = i ? n.y : this._accessors.y, a = o ? Un(o) ? o : [o] : void 0, s = i ? n.yStacked : this._accessors.yStacked, c = (e = n.baseline) !== null && e !== void 0 ? e : this._accessors.baseline;
|
|
2602
2519
|
return { x: r, y: a, yStacked: s, baseline: c };
|
|
2603
2520
|
}
|
|
2604
|
-
_isContainerInViewport() {
|
|
2605
|
-
var e;
|
|
2606
|
-
if (!(!((e = this.container) === null || e === void 0) && e.node()))
|
|
2607
|
-
return !1;
|
|
2608
|
-
const n = this.container.node().getBoundingClientRect(), i = window.innerWidth || document.documentElement.clientWidth, r = window.innerHeight || document.documentElement.clientHeight, o = Math.max(0, Math.min(n.right, i) - Math.max(n.left, 0)), a = Math.max(0, Math.min(n.bottom, r) - Math.max(n.top, 0)), s = n.width * n.height, c = o * a;
|
|
2609
|
-
return s > 0 && c / s >= 0.35;
|
|
2610
|
-
}
|
|
2611
2521
|
setContainer(e) {
|
|
2612
|
-
this.container
|
|
2522
|
+
this.container = e, this.container.on("mousemove.crosshair", this._onMouseMove.bind(this)), this.container.on("mouseout.crosshair", this._onMouseOut.bind(this));
|
|
2613
2523
|
}
|
|
2614
2524
|
_render(e) {
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
let p, m;
|
|
2618
|
-
s.snapToData && (!this.accessors.y && !this.accessors.yStacked && (!((i = c.data) === null || i === void 0) && i.length) && console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"), !(!((r = c.data) === null || r === void 0) && r.length) && this._mouseEvent && console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"), p = Qe(c.data, u, this.accessors.x), m = c.data.indexOf(p));
|
|
2619
|
-
const _ = this.xScale.range(), b = this.yScale.range(), P = s.snapToData && p ? mt(Math.round(this.xScale(it(p, this.accessors.x, m))), 0, this._width) : mt(h, _[0], _[1]), D = h >= _[0] && h <= _[1], M = this._yPx >= Math.min(b[0], b[1]) && this._yPx <= Math.max(b[0], b[1]);
|
|
2620
|
-
let U = s.skipRangeCheck ? !!this._xPx : this._xPx ? D && M : D;
|
|
2621
|
-
s.hideWhenFarFromPointer && Math.abs(P - +h) >= s.hideWhenFarFromPointerDistance && (U = !1);
|
|
2622
|
-
const v = (o = s.tooltip) !== null && o !== void 0 ? o : this.tooltip;
|
|
2623
|
-
if (U && v && this._isContainerInViewport()) {
|
|
2624
|
-
const w = v.getContainer() || this.container.node(), I = v.isContainerBody(), k = this.accessors.x ? it(p, this.accessors.x, m) : void 0;
|
|
2625
|
-
if (d) {
|
|
2626
|
-
const N = this.container.node().getBoundingClientRect(), E = (I ? h + N.left : h) + this._containerMargin.left, Z = this._height / 2 + (I ? N.top : 0), ut = [E, Z];
|
|
2627
|
-
this._showTooltip(p, k, ut, f);
|
|
2628
|
-
} else if (this._mouseEvent) {
|
|
2629
|
-
const N = I ? [this._mouseEvent.clientX, this._mouseEvent.clientY] : Wt(this._mouseEvent, w);
|
|
2630
|
-
this._showTooltip(p, k, N, f);
|
|
2631
|
-
}
|
|
2632
|
-
} else
|
|
2633
|
-
this._hideTooltip();
|
|
2634
|
-
if (this._mouseEvent && ((a = s.onCrosshairMove) === null || a === void 0 || a.call(s, U ? this.xScale.invert(this._xPx) : void 0, p, m, this._mouseEvent), this._mouseEvent = void 0), ot(this.g, l).style("opacity", U ? 1 : 0), !isFinite(h))
|
|
2525
|
+
const { config: n } = this;
|
|
2526
|
+
if (n.snapToData && !this.datum)
|
|
2635
2527
|
return;
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
this._xPx = void 0, this._yPx = void 0, this._mouseEvent = void 0, (i = (n = this.config).onCrosshairMove) === null || i === void 0 || i.call(n, void 0, void 0, void 0, e), this._render();
|
|
2647
|
-
});
|
|
2528
|
+
const i = se(e) ? e : n.duration;
|
|
2529
|
+
it(this.g, i).style("opacity", this.show ? 1 : 0), this.line.attr("y1", 0).attr("y1", this._height), it(this.line, i, qe).attr("x1", this.x).attr("x2", this.x);
|
|
2530
|
+
const r = this.getCircleData(), o = this.g.selectAll("circle").data(r, (s, c) => {
|
|
2531
|
+
var l;
|
|
2532
|
+
return (l = s.id) !== null && l !== void 0 ? l : c;
|
|
2533
|
+
}), a = o.enter().append("circle").attr("class", yi).attr("r", 0).attr("cx", this.x).attr("cy", (s) => s.y).style("fill", (s) => s.color).style("stroke", (s) => s.strokeColor).style("stroke-width", (s) => s.strokeWidth);
|
|
2534
|
+
it(a.merge(o), i, qe).attr("cx", this.x).attr("cy", (s) => s.y).attr("r", 4).style("opacity", (s) => s.opacity).style("fill", (s) => s.color).style("stroke", (s) => s.strokeColor).style("stroke-width", (s) => s.strokeWidth), o.exit().remove();
|
|
2535
|
+
}
|
|
2536
|
+
hide() {
|
|
2537
|
+
this._onMouseOut();
|
|
2648
2538
|
}
|
|
2649
2539
|
_onMouseMove(e) {
|
|
2650
|
-
var n;
|
|
2651
|
-
const { datamodel:
|
|
2652
|
-
!this.accessors.x && (!((n =
|
|
2653
|
-
const [
|
|
2654
|
-
|
|
2540
|
+
var n, i;
|
|
2541
|
+
const { config: r, datamodel: o, element: a } = this;
|
|
2542
|
+
!this.accessors.x && (!((n = o.data) === null || n === void 0) && n.length) && console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");
|
|
2543
|
+
const [s] = It(e, a), c = this.xScale.range();
|
|
2544
|
+
if (r.snapToData) {
|
|
2545
|
+
!this.accessors.y && !this.accessors.yStacked && (!((i = o.data) === null || i === void 0) && i.length) && console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object");
|
|
2546
|
+
const l = this.xScale, d = l.invert(s);
|
|
2547
|
+
if (this.datum = qi(o.data, d, this.accessors.x), this.datumIndex = o.data.indexOf(this.datum), !this.datum)
|
|
2548
|
+
return;
|
|
2549
|
+
this.x = gt(Math.round(l(ft(this.datum, this.accessors.x, this.datumIndex))), 0, this._width), this.show = this.x >= 0 && this.x <= this._width && (!r.hideWhenFarFromPointer || Math.abs(this.x - s) < r.hideWhenFarFromPointerDistance);
|
|
2550
|
+
} else
|
|
2551
|
+
this.x = gt(s, c[0], c[1]), this.show = s >= c[0] - 2 && s <= c[1] + 2;
|
|
2552
|
+
window.cancelAnimationFrame(this._animFrameId), this._animFrameId = window.requestAnimationFrame(() => {
|
|
2655
2553
|
this._render();
|
|
2656
|
-
});
|
|
2657
|
-
}
|
|
2658
|
-
_onMouseOut(e) {
|
|
2659
|
-
var n;
|
|
2660
|
-
(!e || !(!((n = this.container) === null || n === void 0) && n.node().contains(e.relatedTarget))) && this.hide(e);
|
|
2554
|
+
}), this.show ? this._showTooltip(e) : this._hideTooltip();
|
|
2661
2555
|
}
|
|
2662
|
-
|
|
2663
|
-
this.
|
|
2556
|
+
_onMouseOut() {
|
|
2557
|
+
this.show = !1, window.cancelAnimationFrame(this._animFrameId), this._animFrameId = window.requestAnimationFrame(() => {
|
|
2558
|
+
this._render();
|
|
2559
|
+
}), this._hideTooltip();
|
|
2664
2560
|
}
|
|
2665
|
-
_showTooltip(e
|
|
2666
|
-
var
|
|
2667
|
-
const { config:
|
|
2668
|
-
if (!
|
|
2561
|
+
_showTooltip(e) {
|
|
2562
|
+
var n;
|
|
2563
|
+
const { config: i } = this, r = (n = i.tooltip) !== null && n !== void 0 ? n : this.tooltip;
|
|
2564
|
+
if (!r)
|
|
2669
2565
|
return;
|
|
2670
|
-
const [
|
|
2671
|
-
if (
|
|
2672
|
-
const
|
|
2673
|
-
|
|
2566
|
+
const o = r.getContainer() || this.container.node(), [a, s] = r.isContainerBody() ? [e.clientX, e.clientY] : It(e, o), c = i.template(this.datum, this.xScale.invert(this.x));
|
|
2567
|
+
if (r.config.followCursor = !0, !r.config.horizontalPlacement || r.config.horizontalPlacement === x.Auto) {
|
|
2568
|
+
const l = r.isContainerBody() ? a - this.container.node().getBoundingClientRect().left : a;
|
|
2569
|
+
r.overrideHorizontalPlacement(l > this._containerWidth / 2 ? x.Left : x.Right);
|
|
2674
2570
|
}
|
|
2675
|
-
|
|
2571
|
+
c && r.show(c, { x: a, y: s });
|
|
2676
2572
|
}
|
|
2677
2573
|
_hideTooltip() {
|
|
2678
2574
|
var e;
|
|
@@ -2683,33 +2579,129 @@ class bi extends li {
|
|
|
2683
2579
|
getYDataExtent() {
|
|
2684
2580
|
return [void 0, void 0];
|
|
2685
2581
|
}
|
|
2686
|
-
getCircleData(
|
|
2687
|
-
var
|
|
2688
|
-
const { config:
|
|
2689
|
-
if (
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2582
|
+
getCircleData() {
|
|
2583
|
+
var e, n;
|
|
2584
|
+
const { config: i, datamodel: { data: r } } = this;
|
|
2585
|
+
if (Gi(i.getCircles))
|
|
2586
|
+
return i.getCircles(this.xScale.invert(this.x), r, this.yScale);
|
|
2587
|
+
if (i.snapToData && this.datum) {
|
|
2588
|
+
const o = (e = this.accessors.y) !== null && e !== void 0 ? e : [], a = (n = this.accessors.yStacked) !== null && n !== void 0 ? n : [], s = ft(this.datum, this.accessors.baseline, this.datumIndex) || 0, c = Zi(this.datum, this.datumIndex, ...a).map((d, h, u) => ({
|
|
2589
|
+
y: this.yScale(d + s),
|
|
2590
|
+
opacity: se(ft(this.datum, a[h])) ? 1 : 0,
|
|
2591
|
+
color: Ut(this.datum, i.color, h),
|
|
2592
|
+
strokeColor: i.strokeColor ? Ut(this.datum, i.strokeColor, h) : void 0,
|
|
2593
|
+
strokeWidth: i.strokeWidth ? ft(this.datum, i.strokeWidth, h) : void 0
|
|
2594
|
+
})), l = o.map((d, h) => {
|
|
2595
|
+
const u = ft(this.datum, d);
|
|
2698
2596
|
return {
|
|
2699
|
-
y: this.yScale(
|
|
2700
|
-
opacity:
|
|
2701
|
-
color:
|
|
2702
|
-
strokeColor:
|
|
2703
|
-
strokeWidth:
|
|
2597
|
+
y: this.yScale(u),
|
|
2598
|
+
opacity: se(u) ? 1 : 0,
|
|
2599
|
+
color: Ut(this.datum, i.color, c.length + h),
|
|
2600
|
+
strokeColor: i.strokeColor ? Ut(this.datum, i.strokeColor, h) : void 0,
|
|
2601
|
+
strokeWidth: i.strokeWidth ? ft(this.datum, i.strokeWidth, h) : void 0
|
|
2704
2602
|
};
|
|
2705
2603
|
});
|
|
2706
|
-
return
|
|
2604
|
+
return c.concat(l);
|
|
2707
2605
|
}
|
|
2708
2606
|
return [];
|
|
2709
2607
|
}
|
|
2710
2608
|
}
|
|
2711
|
-
|
|
2712
|
-
const
|
|
2609
|
+
xi.selectors = Ta;
|
|
2610
|
+
const Ua = /* @__PURE__ */ Xt({
|
|
2611
|
+
__name: "index",
|
|
2612
|
+
props: {
|
|
2613
|
+
components: {},
|
|
2614
|
+
xScale: { type: [Object, Function] },
|
|
2615
|
+
xDomain: {},
|
|
2616
|
+
xDomainMinConstraint: {},
|
|
2617
|
+
xDomainMaxConstraint: {},
|
|
2618
|
+
xRange: {},
|
|
2619
|
+
yScale: { type: [Object, Function] },
|
|
2620
|
+
yDomain: {},
|
|
2621
|
+
yDomainMinConstraint: {},
|
|
2622
|
+
yDomainMaxConstraint: {},
|
|
2623
|
+
yRange: {},
|
|
2624
|
+
yDirection: {},
|
|
2625
|
+
xAxis: {},
|
|
2626
|
+
yAxis: {},
|
|
2627
|
+
autoMargin: { type: Boolean },
|
|
2628
|
+
tooltip: {},
|
|
2629
|
+
crosshair: {},
|
|
2630
|
+
preventEmptyDomain: { type: [Boolean, null] },
|
|
2631
|
+
scaleByDomain: { type: Boolean },
|
|
2632
|
+
annotations: {},
|
|
2633
|
+
duration: {},
|
|
2634
|
+
margin: {},
|
|
2635
|
+
padding: {},
|
|
2636
|
+
sizing: {},
|
|
2637
|
+
width: {},
|
|
2638
|
+
height: {},
|
|
2639
|
+
svgDefs: {},
|
|
2640
|
+
ariaLabel: {},
|
|
2641
|
+
data: {}
|
|
2642
|
+
},
|
|
2643
|
+
setup(t, { expose: e }) {
|
|
2644
|
+
const n = t, { data: i } = Di(n), r = Qt(n), o = Ct(), a = Ai({
|
|
2645
|
+
components: [],
|
|
2646
|
+
annotations: void 0,
|
|
2647
|
+
crosshair: void 0,
|
|
2648
|
+
tooltip: void 0,
|
|
2649
|
+
xAxis: void 0,
|
|
2650
|
+
yAxis: void 0
|
|
2651
|
+
}), s = Ct();
|
|
2652
|
+
return pt(i, () => {
|
|
2653
|
+
o.value && o.value.setData(i.value, !0);
|
|
2654
|
+
}), Fi(() => {
|
|
2655
|
+
var c;
|
|
2656
|
+
a.components.map((l) => l.config), (c = o.value) == null || c.updateContainer({ ...oe(r.value), ...oe(a) });
|
|
2657
|
+
}), Vt(() => {
|
|
2658
|
+
s.value && (o.value = new ca(s.value, { ...oe(a) }, i.value));
|
|
2659
|
+
}), jt(() => {
|
|
2660
|
+
var c;
|
|
2661
|
+
return (c = o.value) == null ? void 0 : c.destroy();
|
|
2662
|
+
}), kt(Qi, {
|
|
2663
|
+
data: i,
|
|
2664
|
+
update: (c) => a.components = [...a.components, c],
|
|
2665
|
+
destroy: () => {
|
|
2666
|
+
var c;
|
|
2667
|
+
return a.components = (c = a.components) == null ? void 0 : c.filter((l) => !l.isDestroyed());
|
|
2668
|
+
}
|
|
2669
|
+
}), kt(Pn, {
|
|
2670
|
+
data: i,
|
|
2671
|
+
update: (c) => a[`${c.config.type}Axis`] = c,
|
|
2672
|
+
destroy: (c) => {
|
|
2673
|
+
a[`${c}Axis`] = void 0;
|
|
2674
|
+
}
|
|
2675
|
+
}), kt(Nn, {
|
|
2676
|
+
data: i,
|
|
2677
|
+
update: (c) => a.crosshair = c,
|
|
2678
|
+
destroy: () => {
|
|
2679
|
+
a.crosshair = void 0;
|
|
2680
|
+
}
|
|
2681
|
+
}), kt(Ln, {
|
|
2682
|
+
data: i,
|
|
2683
|
+
update: (c) => a.tooltip = c,
|
|
2684
|
+
destroy: () => {
|
|
2685
|
+
a.tooltip = void 0;
|
|
2686
|
+
}
|
|
2687
|
+
}), kt(Ji, {
|
|
2688
|
+
data: i,
|
|
2689
|
+
update: (c) => a.annotations = c,
|
|
2690
|
+
destroy: () => {
|
|
2691
|
+
a.annotations = void 0;
|
|
2692
|
+
}
|
|
2693
|
+
}), e({
|
|
2694
|
+
component: o
|
|
2695
|
+
}), (c, l) => (qt(), Gt("div", {
|
|
2696
|
+
"data-vis-xy-container": "",
|
|
2697
|
+
ref_key: "elRef",
|
|
2698
|
+
ref: s,
|
|
2699
|
+
class: "unovis-xy-container"
|
|
2700
|
+
}, [
|
|
2701
|
+
Ui(c.$slots, "default")
|
|
2702
|
+
], 512));
|
|
2703
|
+
}
|
|
2704
|
+
}), Ca = { "data-vis-axis": "" }, Ya = /* @__PURE__ */ Xt({
|
|
2713
2705
|
__name: "index",
|
|
2714
2706
|
props: {
|
|
2715
2707
|
position: {},
|
|
@@ -2718,14 +2710,11 @@ const Ba = { "data-vis-axis": "" }, Ra = /* @__PURE__ */ Vt({
|
|
|
2718
2710
|
label: {},
|
|
2719
2711
|
labelFontSize: {},
|
|
2720
2712
|
labelMargin: {},
|
|
2721
|
-
labelTextFitMode: {},
|
|
2722
|
-
labelTextTrimType: {},
|
|
2723
2713
|
labelColor: {},
|
|
2724
2714
|
gridLine: { type: Boolean },
|
|
2725
2715
|
tickLine: { type: Boolean },
|
|
2726
2716
|
domainLine: { type: Boolean },
|
|
2727
2717
|
minMaxTicksOnly: { type: Boolean },
|
|
2728
|
-
minMaxTicksOnlyShowGridLines: { type: Boolean },
|
|
2729
2718
|
minMaxTicksOnlyWhenWidthIsLess: {},
|
|
2730
2719
|
tickFormat: { type: Function },
|
|
2731
2720
|
tickValues: {},
|
|
@@ -2741,10 +2730,10 @@ const Ba = { "data-vis-axis": "" }, Ra = /* @__PURE__ */ Vt({
|
|
|
2741
2730
|
tickTextAngle: {},
|
|
2742
2731
|
tickTextHideOverlapping: { type: Boolean },
|
|
2743
2732
|
tickPadding: {},
|
|
2744
|
-
x: {
|
|
2745
|
-
y: {
|
|
2733
|
+
x: {},
|
|
2734
|
+
y: {},
|
|
2746
2735
|
id: { type: Function },
|
|
2747
|
-
color: {
|
|
2736
|
+
color: {},
|
|
2748
2737
|
xScale: { type: [Object, Function] },
|
|
2749
2738
|
yScale: { type: [Object, Function] },
|
|
2750
2739
|
excludeFromDomainCalculation: { type: Boolean },
|
|
@@ -2754,48 +2743,51 @@ const Ba = { "data-vis-axis": "" }, Ra = /* @__PURE__ */ Vt({
|
|
|
2754
2743
|
data: {}
|
|
2755
2744
|
},
|
|
2756
2745
|
setup(t, { expose: e }) {
|
|
2757
|
-
const n =
|
|
2758
|
-
return
|
|
2759
|
-
|
|
2746
|
+
const n = ke(Pn), i = t, r = An(() => n.data.value ?? i.data), o = Qt(i), a = Ct();
|
|
2747
|
+
return Vt(() => {
|
|
2748
|
+
be(() => {
|
|
2760
2749
|
var s;
|
|
2761
|
-
a.value = new
|
|
2750
|
+
a.value = new pi(o.value), (s = a.value) == null || s.setData(r.value), n.update(a.value);
|
|
2762
2751
|
});
|
|
2763
2752
|
}), jt(() => {
|
|
2764
2753
|
var s;
|
|
2765
2754
|
(s = a.value) == null || s.destroy(), n.destroy(i.type);
|
|
2766
|
-
}),
|
|
2755
|
+
}), pt(o, (s, c) => {
|
|
2767
2756
|
var l;
|
|
2768
|
-
|
|
2769
|
-
}),
|
|
2757
|
+
Me(s, c) || (l = a.value) == null || l.setConfig(o.value);
|
|
2758
|
+
}), pt(r, () => {
|
|
2770
2759
|
var s;
|
|
2771
2760
|
(s = a.value) == null || s.setData(r.value);
|
|
2772
2761
|
}), e({
|
|
2773
2762
|
component: a
|
|
2774
|
-
}), (s, c) => (
|
|
2763
|
+
}), (s, c) => (qt(), Gt("div", Ca));
|
|
2775
2764
|
}
|
|
2776
|
-
}),
|
|
2765
|
+
}), Sa = { "data-vis-crosshair": "" }, Pa = /* @__PURE__ */ Xt({
|
|
2777
2766
|
__name: "index",
|
|
2767
|
+
props: {
|
|
2768
|
+
data: {}
|
|
2769
|
+
},
|
|
2778
2770
|
setup(t, { expose: e }) {
|
|
2779
|
-
const n =
|
|
2780
|
-
return
|
|
2781
|
-
|
|
2771
|
+
const n = ke(Nn), i = t, r = An(() => n.data.value ?? i.data), o = Qt(i), a = Ct();
|
|
2772
|
+
return Vt(() => {
|
|
2773
|
+
be(() => {
|
|
2782
2774
|
var s;
|
|
2783
|
-
a.value = new
|
|
2775
|
+
a.value = new xi(o.value), (s = a.value) == null || s.setData(r.value), n.update(a.value);
|
|
2784
2776
|
});
|
|
2785
2777
|
}), jt(() => {
|
|
2786
2778
|
var s;
|
|
2787
2779
|
(s = a.value) == null || s.destroy(), n.destroy();
|
|
2788
|
-
}),
|
|
2780
|
+
}), pt(o, (s, c) => {
|
|
2789
2781
|
var l;
|
|
2790
|
-
|
|
2791
|
-
}),
|
|
2782
|
+
Me(s, c) || (l = a.value) == null || l.setConfig(o.value);
|
|
2783
|
+
}), pt(r, () => {
|
|
2792
2784
|
var s;
|
|
2793
2785
|
(s = a.value) == null || s.setData(r.value);
|
|
2794
2786
|
}), e({
|
|
2795
2787
|
component: a
|
|
2796
|
-
}), (s, c) => (
|
|
2788
|
+
}), (s, c) => (qt(), Gt("div", Sa));
|
|
2797
2789
|
}
|
|
2798
|
-
}),
|
|
2790
|
+
}), Da = { "data-vis-tooltip": "" }, Na = /* @__PURE__ */ Xt({
|
|
2799
2791
|
__name: "index",
|
|
2800
2792
|
props: {
|
|
2801
2793
|
components: {},
|
|
@@ -2814,127 +2806,31 @@ const Ba = { "data-vis-axis": "" }, Ra = /* @__PURE__ */ Vt({
|
|
|
2814
2806
|
data: {}
|
|
2815
2807
|
},
|
|
2816
2808
|
setup(t, { expose: e }) {
|
|
2817
|
-
const n =
|
|
2818
|
-
return
|
|
2819
|
-
|
|
2820
|
-
r.value = new
|
|
2809
|
+
const n = ke(Ln), i = Qt(t), r = Ct();
|
|
2810
|
+
return Vt(() => {
|
|
2811
|
+
be(() => {
|
|
2812
|
+
r.value = new li(i.value), n.update(r.value);
|
|
2821
2813
|
});
|
|
2822
2814
|
}), jt(() => {
|
|
2823
2815
|
var o;
|
|
2824
2816
|
(o = r.value) == null || o.destroy(), n.destroy();
|
|
2825
|
-
}),
|
|
2817
|
+
}), pt(i, (o, a) => {
|
|
2826
2818
|
var s;
|
|
2827
|
-
|
|
2819
|
+
Me(o, a) || (s = r.value) == null || s.setConfig(i.value);
|
|
2828
2820
|
}), e({
|
|
2829
2821
|
component: r
|
|
2830
|
-
}), (o, a) => (
|
|
2831
|
-
}
|
|
2832
|
-
}), za = /* @__PURE__ */ Vt({
|
|
2833
|
-
__name: "index",
|
|
2834
|
-
props: {
|
|
2835
|
-
components: {},
|
|
2836
|
-
xScale: { type: [Object, Function] },
|
|
2837
|
-
xDomain: {},
|
|
2838
|
-
xDomainMinConstraint: {},
|
|
2839
|
-
xDomainMaxConstraint: {},
|
|
2840
|
-
xRange: {},
|
|
2841
|
-
yScale: { type: [Object, Function] },
|
|
2842
|
-
yDomain: {},
|
|
2843
|
-
yDomainMinConstraint: {},
|
|
2844
|
-
yDomainMaxConstraint: {},
|
|
2845
|
-
yRange: {},
|
|
2846
|
-
yDirection: {},
|
|
2847
|
-
xAxis: {},
|
|
2848
|
-
yAxis: {},
|
|
2849
|
-
autoMargin: { type: Boolean },
|
|
2850
|
-
tooltip: {},
|
|
2851
|
-
crosshair: {},
|
|
2852
|
-
preventEmptyDomain: { type: [Boolean, null] },
|
|
2853
|
-
scaleByDomain: { type: Boolean },
|
|
2854
|
-
annotations: {},
|
|
2855
|
-
clipPathExtend: {},
|
|
2856
|
-
onRenderComplete: { type: Function },
|
|
2857
|
-
duration: {},
|
|
2858
|
-
margin: {},
|
|
2859
|
-
padding: {},
|
|
2860
|
-
sizing: {},
|
|
2861
|
-
width: {},
|
|
2862
|
-
height: {},
|
|
2863
|
-
svgDefs: {},
|
|
2864
|
-
ariaLabel: {},
|
|
2865
|
-
data: {}
|
|
2866
|
-
},
|
|
2867
|
-
setup(t, { expose: e }) {
|
|
2868
|
-
const n = t, { data: i } = Pi(n), r = Jt(n), o = St(), a = Ui({
|
|
2869
|
-
components: [],
|
|
2870
|
-
annotations: void 0,
|
|
2871
|
-
crosshair: void 0,
|
|
2872
|
-
tooltip: void 0,
|
|
2873
|
-
xAxis: void 0,
|
|
2874
|
-
yAxis: void 0
|
|
2875
|
-
}), s = St();
|
|
2876
|
-
return vt(i, () => {
|
|
2877
|
-
o.value && o.value.setData(i.value, !0);
|
|
2878
|
-
}), Yi(() => {
|
|
2879
|
-
var c;
|
|
2880
|
-
a.components.map((l) => l.config), (c = o.value) == null || c.updateContainer({ ...oe(r.value), ...oe(a) });
|
|
2881
|
-
}), Xt(() => {
|
|
2882
|
-
s.value && (o.value = new ga(s.value, { ...oe(a) }, i.value));
|
|
2883
|
-
}), jt(() => {
|
|
2884
|
-
var c;
|
|
2885
|
-
return (c = o.value) == null ? void 0 : c.destroy();
|
|
2886
|
-
}), _t(rr, {
|
|
2887
|
-
data: i,
|
|
2888
|
-
update: (c) => a.components = [...a.components, c],
|
|
2889
|
-
destroy: () => {
|
|
2890
|
-
var c;
|
|
2891
|
-
return a.components = (c = a.components) == null ? void 0 : c.filter((l) => !l.isDestroyed());
|
|
2892
|
-
}
|
|
2893
|
-
}), _t(Wn, {
|
|
2894
|
-
data: i,
|
|
2895
|
-
update: (c) => a[`${c.config.type}Axis`] = c,
|
|
2896
|
-
destroy: (c) => {
|
|
2897
|
-
a[`${c}Axis`] = void 0;
|
|
2898
|
-
}
|
|
2899
|
-
}), _t(On, {
|
|
2900
|
-
data: i,
|
|
2901
|
-
update: (c) => a.crosshair = c,
|
|
2902
|
-
destroy: () => {
|
|
2903
|
-
a.crosshair = void 0;
|
|
2904
|
-
}
|
|
2905
|
-
}), _t(Rn, {
|
|
2906
|
-
data: i,
|
|
2907
|
-
update: (c) => a.tooltip = c,
|
|
2908
|
-
destroy: () => {
|
|
2909
|
-
a.tooltip = void 0;
|
|
2910
|
-
}
|
|
2911
|
-
}), _t(or, {
|
|
2912
|
-
data: i,
|
|
2913
|
-
update: (c) => a.annotations = c,
|
|
2914
|
-
destroy: () => {
|
|
2915
|
-
a.annotations = void 0;
|
|
2916
|
-
}
|
|
2917
|
-
}), e({
|
|
2918
|
-
component: o
|
|
2919
|
-
}), (c, l) => (Gt(), qt("div", {
|
|
2920
|
-
"data-vis-xy-container": "",
|
|
2921
|
-
ref_key: "elRef",
|
|
2922
|
-
ref: s,
|
|
2923
|
-
class: "unovis-xy-container"
|
|
2924
|
-
}, [
|
|
2925
|
-
Bi(c.$slots, "default")
|
|
2926
|
-
], 512));
|
|
2822
|
+
}), (o, a) => (qt(), Gt("div", Da));
|
|
2927
2823
|
}
|
|
2928
2824
|
});
|
|
2929
2825
|
export {
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2826
|
+
Ua as $,
|
|
2827
|
+
Pa as A,
|
|
2828
|
+
Et as D,
|
|
2829
|
+
Ya as O,
|
|
2830
|
+
ai as X,
|
|
2831
|
+
wn as a,
|
|
2832
|
+
ze as b,
|
|
2833
|
+
Se as c,
|
|
2834
|
+
hr as r,
|
|
2835
|
+
Na as z
|
|
2940
2836
|
};
|