@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.
Files changed (62) hide show
  1. package/dist/{Acquisition-Dt2rREU8.js → Acquisition-DgzDQH51.js} +1 -1
  2. package/dist/{Acquisition-DNCy8nQz.mjs → Acquisition-FV3QpaUX.mjs} +2 -2
  3. package/dist/{Audience-Bs7b0TNm.js → Audience-BSgNvcVb.js} +1 -1
  4. package/dist/{Audience-CUeMVYRy.mjs → Audience-ka0b7YPE.mjs} +2 -2
  5. package/dist/{ContentEditor-D9-1SJ5F.mjs → ContentEditor-pZPfo0qN.mjs} +4384 -4282
  6. package/dist/{ContentEditor-BprPiHMJ.js → ContentEditor-tYkh4vRV.js} +42 -42
  7. package/dist/{Create-89z41K73.js → Create--MOBOTA-.js} +1 -1
  8. package/dist/{Create-BCklc_T1.mjs → Create-BXNLRQag.mjs} +1 -1
  9. package/dist/DateFormatter-CSAbE3BC.js +1 -0
  10. package/dist/{DateFormatter-DUxlo8X8.mjs → DateFormatter-qbhRYxI_.mjs} +226 -222
  11. package/dist/{Detail-CNlljBfH.mjs → Detail-ChD5XurA.mjs} +1 -1
  12. package/dist/{Detail-C857g62L.js → Detail-RISEJJab.js} +1 -1
  13. package/dist/{Find-DIISO5GO.mjs → Find-zN_dKz4p.mjs} +1 -1
  14. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +1 -0
  15. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -0
  16. package/dist/{Overview-Di84CsR5.mjs → Overview-98nkJUWN.mjs} +162 -157
  17. package/dist/{Overview-C-Jb_BxY.mjs → Overview-BR_y8x3W.mjs} +1 -1
  18. package/dist/{Overview-DC9io1bk.js → Overview-CX-n6W7d.js} +1 -1
  19. package/dist/Overview-Dl8cMlsr.js +1 -0
  20. package/dist/{Overview-BKAti8nc.mjs → Overview-MpgkLB6m.mjs} +36 -36
  21. package/dist/{SeoHealth-az1YuNF2.js → SeoHealth-C5npw7mE.js} +1 -1
  22. package/dist/{SeoHealth-MC3lSCOY.mjs → SeoHealth-bVQj_Xgm.mjs} +29 -29
  23. package/dist/{TableView-DXHhJ-jm.mjs → TableView-Bf1fdJrD.mjs} +1838 -1822
  24. package/dist/TableView-DNcXyIMu.js +4 -0
  25. package/dist/{agenda-IOqtALWf.js → agenda-BaJu3-1c.js} +1 -1
  26. package/dist/{agenda-DcatSSYQ.mjs → agenda-BwVY_8oM.mjs} +3 -3
  27. package/dist/cms-core-modules.css +1 -1
  28. package/dist/{exceptions-CI0B4xVj.js → exceptions-B6P9UiCj.js} +1 -1
  29. package/dist/{exceptions-YCQkHa6a.mjs → exceptions-De9-FvdP.mjs} +67 -67
  30. package/dist/{index-CpzDEMeC.mjs → index-B8GvmAwh.mjs} +438 -478
  31. package/dist/{index-wjkEPsNx.mjs → index-BIF2RB7k.mjs} +1212 -1316
  32. package/dist/index-ByRsp77L.js +70 -0
  33. package/dist/{index-BhWvXMOp.mjs → index-CFzn2Lus.mjs} +5 -9
  34. package/dist/{index-BFLV54kw.mjs → index-CkVwMqpn.mjs} +1114 -1100
  35. package/dist/index-DL6orwdK.js +35 -0
  36. package/dist/index-DUlYrnXH.js +58 -0
  37. package/dist/index-DZV720u-.mjs +439 -0
  38. package/dist/index-D_nfGegA.js +184 -0
  39. package/dist/index-DtSvAFLL.js +54 -0
  40. package/dist/{index-D30apIn-.mjs → index-L54VBzwJ.mjs} +2 -3
  41. package/dist/{index-BzWmWCo5.mjs → index-hH3e-IYz.mjs} +267 -267
  42. package/dist/index.cjs.js +1 -1
  43. package/dist/index.mjs +15 -15
  44. package/dist/math-BJ-oX_IM.mjs +80 -0
  45. package/dist/math-emotyaF6.js +1 -0
  46. package/dist/{resources-CYOb5Bl6.mjs → resources-DwYxn2Vi.mjs} +1 -1
  47. package/dist/src/contentManager/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +1 -2
  48. package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +1 -0
  49. package/package.json +2 -2
  50. package/dist/DateFormatter-CYAD4GBN.js +0 -1
  51. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
  52. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +0 -1255
  53. package/dist/Overview-UoZHUMUz.js +0 -1
  54. package/dist/TableView-DQW0A1oG.js +0 -4
  55. package/dist/array-CbATeQbk.js +0 -1
  56. package/dist/array-DT5pE8Gm.mjs +0 -108
  57. package/dist/index-A2kp8Isi.js +0 -75
  58. package/dist/index-B5aBwdxY.js +0 -54
  59. package/dist/index-BiT55eU0.js +0 -58
  60. package/dist/index-G7cIlnGN.js +0 -158
  61. package/dist/index-V78huaSJ.mjs +0 -442
  62. package/dist/index-vHmvbEwa.js +0 -35
@@ -1,11 +1,11 @@
1
- import { defineComponent as wt, inject as Tt, computed as Nt, ref as Pt, onMounted as At, nextTick as Ot, onUnmounted as Ct, watch as I, openBlock as Mt, createElementBlock as Dt } from "vue";
2
- import { n as S, H as jt, P as H, L as K, y as G, s as O, D as tt, a1 as et, E as Et, a2 as C, z as ne, q as se, A as oe, Z as Rt, R as Bt, p as Ft } from "./index-BFLV54kw.mjs";
3
- import { a as Lt, X as Ht, D } from "./index-wjkEPsNx.mjs";
4
- import { w as $t, f as k, c as It, h as yt } from "./array-DT5pE8Gm.mjs";
5
- function Gt(t) {
1
+ import { defineComponent as gt, inject as bt, computed as mt, ref as kt, onMounted as St, nextTick as wt, onUnmounted as Tt, watch as L, openBlock as Ot, createElementBlock as Nt } from "vue";
2
+ import { l as T, D as Pt, M as H, I as U, v as F, q as j, z as Ct, Y as At, A as te, Z as D, w as ee, o as ie, x as ne, R as Mt, N as jt, n as Dt } from "./index-CkVwMqpn.mjs";
3
+ import { b as Et, X as Rt, D as q } from "./index-BIF2RB7k.mjs";
4
+ import { e as k, p as Bt, g as _t } from "./math-BJ-oX_IM.mjs";
5
+ function $t(t) {
6
6
  this._context = t;
7
7
  }
8
- Gt.prototype = {
8
+ $t.prototype = {
9
9
  areaStart: function() {
10
10
  this._line = 0;
11
11
  },
@@ -25,93 +25,91 @@ Gt.prototype = {
25
25
  break;
26
26
  case 1:
27
27
  this._point = 2;
28
- // falls through
28
+ // proceed
29
29
  default:
30
30
  this._context.lineTo(t, e);
31
31
  break;
32
32
  }
33
33
  }
34
34
  };
35
- function ht(t) {
36
- return new Gt(t);
35
+ function ot(t) {
36
+ return new $t(t);
37
37
  }
38
- function Xt(t) {
38
+ function Ht(t) {
39
39
  return t[0];
40
40
  }
41
- function Yt(t) {
41
+ function Lt(t) {
42
42
  return t[1];
43
43
  }
44
- function ct(t, e) {
45
- var i = k(!0), n = null, s = ht, o = null, l = $t(r);
46
- t = typeof t == "function" ? t : t === void 0 ? Xt : k(t), e = typeof e == "function" ? e : e === void 0 ? Yt : k(e);
47
- function r(h) {
48
- var c, y = (h = It(h)).length, a, _ = !1, g;
49
- for (n == null && (o = s(g = l())), c = 0; c <= y; ++c)
50
- !(c < y && i(a = h[c], c, h)) === _ && ((_ = !_) ? o.lineStart() : o.lineEnd()), _ && o.point(+t(a, c, h), +e(a, c, h));
51
- if (g) return o = null, g + "" || null;
44
+ function Ft() {
45
+ var t = Ht, e = Lt, i = k(!0), n = null, s = ot, o = null;
46
+ function a(r) {
47
+ var l, y = r.length, _, h = !1, c;
48
+ for (n == null && (o = s(c = Bt())), l = 0; l <= y; ++l)
49
+ !(l < y && i(_ = r[l], l, r)) === h && ((h = !h) ? o.lineStart() : o.lineEnd()), h && o.point(+t(_, l, r), +e(_, l, r));
50
+ if (c) return o = null, c + "" || null;
52
51
  }
53
- return r.x = function(h) {
54
- return arguments.length ? (t = typeof h == "function" ? h : k(+h), r) : t;
55
- }, r.y = function(h) {
56
- return arguments.length ? (e = typeof h == "function" ? h : k(+h), r) : e;
57
- }, r.defined = function(h) {
58
- return arguments.length ? (i = typeof h == "function" ? h : k(!!h), r) : i;
59
- }, r.curve = function(h) {
60
- return arguments.length ? (s = h, n != null && (o = s(n)), r) : s;
61
- }, r.context = function(h) {
62
- return arguments.length ? (h == null ? n = o = null : o = s(n = h), r) : n;
63
- }, r;
52
+ return a.x = function(r) {
53
+ return arguments.length ? (t = typeof r == "function" ? r : k(+r), a) : t;
54
+ }, a.y = function(r) {
55
+ return arguments.length ? (e = typeof r == "function" ? r : k(+r), a) : e;
56
+ }, a.defined = function(r) {
57
+ return arguments.length ? (i = typeof r == "function" ? r : k(!!r), a) : i;
58
+ }, a.curve = function(r) {
59
+ return arguments.length ? (s = r, n != null && (o = s(n)), a) : s;
60
+ }, a.context = function(r) {
61
+ return arguments.length ? (r == null ? n = o = null : o = s(n = r), a) : n;
62
+ }, a;
64
63
  }
65
- function re(t, e, i) {
66
- var n = null, s = k(!0), o = null, l = ht, r = null, h = $t(c);
67
- t = typeof t == "function" ? t : t === void 0 ? Xt : k(+t), e = typeof e == "function" ? e : e === void 0 ? k(0) : k(+e), i = typeof i == "function" ? i : i === void 0 ? Yt : k(+i);
68
- function c(a) {
69
- var _, g, d, x = (a = It(a)).length, u, f = !1, v, p = new Array(x), b = new Array(x);
70
- for (o == null && (r = l(v = h())), _ = 0; _ <= x; ++_) {
71
- if (!(_ < x && s(u = a[_], _, a)) === f)
72
- if (f = !f)
73
- g = _, r.areaStart(), r.lineStart();
64
+ function se() {
65
+ var t = Ht, e = null, i = k(0), n = Lt, s = k(!0), o = null, a = ot, r = null;
66
+ function l(_) {
67
+ var h, c, v, g = _.length, m, u = !1, f, d = new Array(g), p = new Array(g);
68
+ for (o == null && (r = a(f = Bt())), h = 0; h <= g; ++h) {
69
+ if (!(h < g && s(m = _[h], h, _)) === u)
70
+ if (u = !u)
71
+ c = h, r.areaStart(), r.lineStart();
74
72
  else {
75
- for (r.lineEnd(), r.lineStart(), d = _ - 1; d >= g; --d)
76
- r.point(p[d], b[d]);
73
+ for (r.lineEnd(), r.lineStart(), v = h - 1; v >= c; --v)
74
+ r.point(d[v], p[v]);
77
75
  r.lineEnd(), r.areaEnd();
78
76
  }
79
- f && (p[_] = +t(u, _, a), b[_] = +e(u, _, a), r.point(n ? +n(u, _, a) : p[_], i ? +i(u, _, a) : b[_]));
77
+ u && (d[h] = +t(m, h, _), p[h] = +i(m, h, _), r.point(e ? +e(m, h, _) : d[h], n ? +n(m, h, _) : p[h]));
80
78
  }
81
- if (v) return r = null, v + "" || null;
79
+ if (f) return r = null, f + "" || null;
82
80
  }
83
81
  function y() {
84
- return ct().defined(s).curve(l).context(o);
82
+ return Ft().defined(s).curve(a).context(o);
85
83
  }
86
- return c.x = function(a) {
87
- return arguments.length ? (t = typeof a == "function" ? a : k(+a), n = null, c) : t;
88
- }, c.x0 = function(a) {
89
- return arguments.length ? (t = typeof a == "function" ? a : k(+a), c) : t;
90
- }, c.x1 = function(a) {
91
- return arguments.length ? (n = a == null ? null : typeof a == "function" ? a : k(+a), c) : n;
92
- }, c.y = function(a) {
93
- return arguments.length ? (e = typeof a == "function" ? a : k(+a), i = null, c) : e;
94
- }, c.y0 = function(a) {
95
- return arguments.length ? (e = typeof a == "function" ? a : k(+a), c) : e;
96
- }, c.y1 = function(a) {
97
- return arguments.length ? (i = a == null ? null : typeof a == "function" ? a : k(+a), c) : i;
98
- }, c.lineX0 = c.lineY0 = function() {
99
- return y().x(t).y(e);
100
- }, c.lineY1 = function() {
84
+ return l.x = function(_) {
85
+ return arguments.length ? (t = typeof _ == "function" ? _ : k(+_), e = null, l) : t;
86
+ }, l.x0 = function(_) {
87
+ return arguments.length ? (t = typeof _ == "function" ? _ : k(+_), l) : t;
88
+ }, l.x1 = function(_) {
89
+ return arguments.length ? (e = _ == null ? null : typeof _ == "function" ? _ : k(+_), l) : e;
90
+ }, l.y = function(_) {
91
+ return arguments.length ? (i = typeof _ == "function" ? _ : k(+_), n = null, l) : i;
92
+ }, l.y0 = function(_) {
93
+ return arguments.length ? (i = typeof _ == "function" ? _ : k(+_), l) : i;
94
+ }, l.y1 = function(_) {
95
+ return arguments.length ? (n = _ == null ? null : typeof _ == "function" ? _ : k(+_), l) : n;
96
+ }, l.lineX0 = l.lineY0 = function() {
101
97
  return y().x(t).y(i);
102
- }, c.lineX1 = function() {
103
- return y().x(n).y(e);
104
- }, c.defined = function(a) {
105
- return arguments.length ? (s = typeof a == "function" ? a : k(!!a), c) : s;
106
- }, c.curve = function(a) {
107
- return arguments.length ? (l = a, o != null && (r = l(o)), c) : l;
108
- }, c.context = function(a) {
109
- return arguments.length ? (a == null ? o = r = null : r = l(o = a), c) : o;
110
- }, c;
98
+ }, l.lineY1 = function() {
99
+ return y().x(t).y(n);
100
+ }, l.lineX1 = function() {
101
+ return y().x(e).y(i);
102
+ }, l.defined = function(_) {
103
+ return arguments.length ? (s = typeof _ == "function" ? _ : k(!!_), l) : s;
104
+ }, l.curve = function(_) {
105
+ return arguments.length ? (a = _, o != null && (r = a(o)), l) : a;
106
+ }, l.context = function(_) {
107
+ return arguments.length ? (_ == null ? o = r = null : r = a(o = _), l) : o;
108
+ }, l;
111
109
  }
112
- function T() {
110
+ function w() {
113
111
  }
114
- function X(t, e, i) {
112
+ function I(t, e, i) {
115
113
  t._context.bezierCurveTo(
116
114
  (2 * t._x0 + t._x1) / 3,
117
115
  (2 * t._y0 + t._y1) / 3,
@@ -121,10 +119,10 @@ function X(t, e, i) {
121
119
  (t._y0 + 4 * t._y1 + i) / 6
122
120
  );
123
121
  }
124
- function Z(t) {
122
+ function G(t) {
125
123
  this._context = t;
126
124
  }
127
- Z.prototype = {
125
+ G.prototype = {
128
126
  areaStart: function() {
129
127
  this._line = 0;
130
128
  },
@@ -137,8 +135,8 @@ Z.prototype = {
137
135
  lineEnd: function() {
138
136
  switch (this._point) {
139
137
  case 3:
140
- X(this, this._x1, this._y1);
141
- // falls through
138
+ I(this, this._x1, this._y1);
139
+ // proceed
142
140
  case 2:
143
141
  this._context.lineTo(this._x1, this._y1);
144
142
  break;
@@ -155,23 +153,23 @@ Z.prototype = {
155
153
  break;
156
154
  case 2:
157
155
  this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
158
- // falls through
156
+ // proceed
159
157
  default:
160
- X(this, t, e);
158
+ I(this, t, e);
161
159
  break;
162
160
  }
163
161
  this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
164
162
  }
165
163
  };
166
- function ae(t) {
167
- return new Z(t);
164
+ function oe(t) {
165
+ return new G(t);
168
166
  }
169
- function Vt(t) {
167
+ function It(t) {
170
168
  this._context = t;
171
169
  }
172
- Vt.prototype = {
173
- areaStart: T,
174
- areaEnd: T,
170
+ It.prototype = {
171
+ areaStart: w,
172
+ areaEnd: w,
175
173
  lineStart: function() {
176
174
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
177
175
  },
@@ -203,19 +201,19 @@ Vt.prototype = {
203
201
  this._point = 3, this._x4 = t, this._y4 = e, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + e) / 6);
204
202
  break;
205
203
  default:
206
- X(this, t, e);
204
+ I(this, t, e);
207
205
  break;
208
206
  }
209
207
  this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
210
208
  }
211
209
  };
212
- function le(t) {
213
- return new Vt(t);
210
+ function re(t) {
211
+ return new It(t);
214
212
  }
215
- function zt(t) {
213
+ function Xt(t) {
216
214
  this._context = t;
217
215
  }
218
- zt.prototype = {
216
+ Xt.prototype = {
219
217
  areaStart: function() {
220
218
  this._line = 0;
221
219
  },
@@ -243,31 +241,31 @@ zt.prototype = {
243
241
  break;
244
242
  case 3:
245
243
  this._point = 4;
246
- // falls through
244
+ // proceed
247
245
  default:
248
- X(this, t, e);
246
+ I(this, t, e);
249
247
  break;
250
248
  }
251
249
  this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e;
252
250
  }
253
251
  };
254
- function he(t) {
255
- return new zt(t);
252
+ function ae(t) {
253
+ return new Xt(t);
256
254
  }
257
- function Wt(t, e) {
258
- this._basis = new Z(t), this._beta = e;
255
+ function Yt(t, e) {
256
+ this._basis = new G(t), this._beta = e;
259
257
  }
260
- Wt.prototype = {
258
+ Yt.prototype = {
261
259
  lineStart: function() {
262
260
  this._x = [], this._y = [], this._basis.lineStart();
263
261
  },
264
262
  lineEnd: function() {
265
263
  var t = this._x, e = this._y, i = t.length - 1;
266
264
  if (i > 0)
267
- for (var n = t[0], s = e[0], o = t[i] - n, l = e[i] - s, r = -1, h; ++r <= i; )
268
- h = r / i, this._basis.point(
269
- this._beta * t[r] + (1 - this._beta) * (n + h * o),
270
- this._beta * e[r] + (1 - this._beta) * (s + h * l)
265
+ for (var n = t[0], s = e[0], o = t[i] - n, a = e[i] - s, r = -1, l; ++r <= i; )
266
+ l = r / i, this._basis.point(
267
+ this._beta * t[r] + (1 - this._beta) * (n + l * o),
268
+ this._beta * e[r] + (1 - this._beta) * (s + l * a)
271
269
  );
272
270
  this._x = this._y = null, this._basis.lineEnd();
273
271
  },
@@ -275,15 +273,15 @@ Wt.prototype = {
275
273
  this._x.push(+t), this._y.push(+e);
276
274
  }
277
275
  };
278
- const ce = (function t(e) {
276
+ const le = (function t(e) {
279
277
  function i(n) {
280
- return e === 1 ? new Z(n) : new Wt(n, e);
278
+ return e === 1 ? new G(n) : new Yt(n, e);
281
279
  }
282
280
  return i.beta = function(n) {
283
281
  return t(+n);
284
282
  }, i;
285
283
  })(0.85);
286
- function Y(t, e, i) {
284
+ function X(t, e, i) {
287
285
  t._context.bezierCurveTo(
288
286
  t._x1 + t._k * (t._x2 - t._x0),
289
287
  t._y1 + t._k * (t._y2 - t._y0),
@@ -293,10 +291,10 @@ function Y(t, e, i) {
293
291
  t._y2
294
292
  );
295
293
  }
296
- function _t(t, e) {
294
+ function rt(t, e) {
297
295
  this._context = t, this._k = (1 - e) / 6;
298
296
  }
299
- _t.prototype = {
297
+ rt.prototype = {
300
298
  areaStart: function() {
301
299
  this._line = 0;
302
300
  },
@@ -312,7 +310,7 @@ _t.prototype = {
312
310
  this._context.lineTo(this._x2, this._y2);
313
311
  break;
314
312
  case 3:
315
- Y(this, this._x1, this._y1);
313
+ X(this, this._x1, this._y1);
316
314
  break;
317
315
  }
318
316
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -327,28 +325,28 @@ _t.prototype = {
327
325
  break;
328
326
  case 2:
329
327
  this._point = 3;
330
- // falls through
328
+ // proceed
331
329
  default:
332
- Y(this, t, e);
330
+ X(this, t, e);
333
331
  break;
334
332
  }
335
333
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
336
334
  }
337
335
  };
338
- const _e = (function t(e) {
336
+ const he = (function t(e) {
339
337
  function i(n) {
340
- return new _t(n, e);
338
+ return new rt(n, e);
341
339
  }
342
340
  return i.tension = function(n) {
343
341
  return t(+n);
344
342
  }, i;
345
343
  })(0);
346
- function ut(t, e) {
344
+ function at(t, e) {
347
345
  this._context = t, this._k = (1 - e) / 6;
348
346
  }
349
- ut.prototype = {
350
- areaStart: T,
351
- areaEnd: T,
347
+ at.prototype = {
348
+ areaStart: w,
349
+ areaEnd: w,
352
350
  lineStart: function() {
353
351
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
354
352
  },
@@ -380,24 +378,24 @@ ut.prototype = {
380
378
  this._point = 3, this._x5 = t, this._y5 = e;
381
379
  break;
382
380
  default:
383
- Y(this, t, e);
381
+ X(this, t, e);
384
382
  break;
385
383
  }
386
384
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
387
385
  }
388
386
  };
389
- const ue = (function t(e) {
387
+ const _e = (function t(e) {
390
388
  function i(n) {
391
- return new ut(n, e);
389
+ return new at(n, e);
392
390
  }
393
391
  return i.tension = function(n) {
394
392
  return t(+n);
395
393
  }, i;
396
394
  })(0);
397
- function ft(t, e) {
395
+ function lt(t, e) {
398
396
  this._context = t, this._k = (1 - e) / 6;
399
397
  }
400
- ft.prototype = {
398
+ lt.prototype = {
401
399
  areaStart: function() {
402
400
  this._line = 0;
403
401
  },
@@ -423,38 +421,38 @@ ft.prototype = {
423
421
  break;
424
422
  case 3:
425
423
  this._point = 4;
426
- // falls through
424
+ // proceed
427
425
  default:
428
- Y(this, t, e);
426
+ X(this, t, e);
429
427
  break;
430
428
  }
431
429
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
432
430
  }
433
431
  };
434
- const fe = (function t(e) {
432
+ const ce = (function t(e) {
435
433
  function i(n) {
436
- return new ft(n, e);
434
+ return new lt(n, e);
437
435
  }
438
436
  return i.tension = function(n) {
439
437
  return t(+n);
440
438
  }, i;
441
439
  })(0);
442
- function pt(t, e, i) {
443
- var n = t._x1, s = t._y1, o = t._x2, l = t._y2;
444
- if (t._l01_a > yt) {
445
- var r = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, h = 3 * t._l01_a * (t._l01_a + t._l12_a);
446
- n = (n * r - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / h, s = (s * r - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / h;
440
+ function ht(t, e, i) {
441
+ var n = t._x1, s = t._y1, o = t._x2, a = t._y2;
442
+ if (t._l01_a > _t) {
443
+ var r = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, l = 3 * t._l01_a * (t._l01_a + t._l12_a);
444
+ n = (n * r - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / l, s = (s * r - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / l;
447
445
  }
448
- if (t._l23_a > yt) {
449
- var c = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, y = 3 * t._l23_a * (t._l23_a + t._l12_a);
450
- o = (o * c + t._x1 * t._l23_2a - e * t._l12_2a) / y, l = (l * c + t._y1 * t._l23_2a - i * t._l12_2a) / y;
446
+ if (t._l23_a > _t) {
447
+ var y = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, _ = 3 * t._l23_a * (t._l23_a + t._l12_a);
448
+ o = (o * y + t._x1 * t._l23_2a - e * t._l12_2a) / _, a = (a * y + t._y1 * t._l23_2a - i * t._l12_2a) / _;
451
449
  }
452
- t._context.bezierCurveTo(n, s, o, l, t._x2, t._y2);
450
+ t._context.bezierCurveTo(n, s, o, a, t._x2, t._y2);
453
451
  }
454
- function Zt(t, e) {
452
+ function zt(t, e) {
455
453
  this._context = t, this._alpha = e;
456
454
  }
457
- Zt.prototype = {
455
+ zt.prototype = {
458
456
  areaStart: function() {
459
457
  this._line = 0;
460
458
  },
@@ -489,28 +487,28 @@ Zt.prototype = {
489
487
  break;
490
488
  case 2:
491
489
  this._point = 3;
492
- // falls through
490
+ // proceed
493
491
  default:
494
- pt(this, t, e);
492
+ ht(this, t, e);
495
493
  break;
496
494
  }
497
495
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
498
496
  }
499
497
  };
500
- const pe = (function t(e) {
498
+ const ue = (function t(e) {
501
499
  function i(n) {
502
- return e ? new Zt(n, e) : new _t(n, 0);
500
+ return e ? new zt(n, e) : new rt(n, 0);
503
501
  }
504
502
  return i.alpha = function(n) {
505
503
  return t(+n);
506
504
  }, i;
507
505
  })(0.5);
508
- function qt(t, e) {
506
+ function Gt(t, e) {
509
507
  this._context = t, this._alpha = e;
510
508
  }
511
- qt.prototype = {
512
- areaStart: T,
513
- areaEnd: T,
509
+ Gt.prototype = {
510
+ areaStart: w,
511
+ areaEnd: w,
514
512
  lineStart: function() {
515
513
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
516
514
  },
@@ -546,24 +544,24 @@ qt.prototype = {
546
544
  this._point = 3, this._x5 = t, this._y5 = e;
547
545
  break;
548
546
  default:
549
- pt(this, t, e);
547
+ ht(this, t, e);
550
548
  break;
551
549
  }
552
550
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
553
551
  }
554
552
  };
555
- const ye = (function t(e) {
553
+ const fe = (function t(e) {
556
554
  function i(n) {
557
- return e ? new qt(n, e) : new ut(n, 0);
555
+ return e ? new Gt(n, e) : new at(n, 0);
558
556
  }
559
557
  return i.alpha = function(n) {
560
558
  return t(+n);
561
559
  }, i;
562
560
  })(0.5);
563
- function Qt(t, e) {
561
+ function Vt(t, e) {
564
562
  this._context = t, this._alpha = e;
565
563
  }
566
- Qt.prototype = {
564
+ Vt.prototype = {
567
565
  areaStart: function() {
568
566
  this._line = 0;
569
567
  },
@@ -593,28 +591,28 @@ Qt.prototype = {
593
591
  break;
594
592
  case 3:
595
593
  this._point = 4;
596
- // falls through
594
+ // proceed
597
595
  default:
598
- pt(this, t, e);
596
+ ht(this, t, e);
599
597
  break;
600
598
  }
601
599
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = e;
602
600
  }
603
601
  };
604
- const de = (function t(e) {
602
+ const pe = (function t(e) {
605
603
  function i(n) {
606
- return e ? new Qt(n, e) : new ft(n, 0);
604
+ return e ? new Vt(n, e) : new lt(n, 0);
607
605
  }
608
606
  return i.alpha = function(n) {
609
607
  return t(+n);
610
608
  }, i;
611
609
  })(0.5);
612
- function Ut(t) {
610
+ function Zt(t) {
613
611
  this._context = t;
614
612
  }
615
- Ut.prototype = {
616
- areaStart: T,
617
- areaEnd: T,
613
+ Zt.prototype = {
614
+ areaStart: w,
615
+ areaEnd: w,
618
616
  lineStart: function() {
619
617
  this._point = 0;
620
618
  },
@@ -625,28 +623,28 @@ Ut.prototype = {
625
623
  t = +t, e = +e, this._point ? this._context.lineTo(t, e) : (this._point = 1, this._context.moveTo(t, e));
626
624
  }
627
625
  };
628
- function ve(t) {
629
- return new Ut(t);
626
+ function ye(t) {
627
+ return new Zt(t);
630
628
  }
631
- function dt(t) {
629
+ function ct(t) {
632
630
  return t < 0 ? -1 : 1;
633
631
  }
634
- function vt(t, e, i) {
635
- var n = t._x1 - t._x0, s = e - t._x1, o = (t._y1 - t._y0) / (n || s < 0 && -0), l = (i - t._y1) / (s || n < 0 && -0), r = (o * s + l * n) / (n + s);
636
- return (dt(o) + dt(l)) * Math.min(Math.abs(o), Math.abs(l), 0.5 * Math.abs(r)) || 0;
632
+ function ut(t, e, i) {
633
+ var n = t._x1 - t._x0, s = e - t._x1, o = (t._y1 - t._y0) / (n || s < 0 && -0), a = (i - t._y1) / (s || n < 0 && -0), r = (o * s + a * n) / (n + s);
634
+ return (ct(o) + ct(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(r)) || 0;
637
635
  }
638
- function xt(t, e) {
636
+ function ft(t, e) {
639
637
  var i = t._x1 - t._x0;
640
638
  return i ? (3 * (t._y1 - t._y0) / i - e) / 2 : e;
641
639
  }
642
- function J(t, e, i) {
643
- var n = t._x0, s = t._y0, o = t._x1, l = t._y1, r = (o - n) / 3;
644
- t._context.bezierCurveTo(n + r, s + r * e, o - r, l - r * i, o, l);
640
+ function Q(t, e, i) {
641
+ var n = t._x0, s = t._y0, o = t._x1, a = t._y1, r = (o - n) / 3;
642
+ t._context.bezierCurveTo(n + r, s + r * e, o - r, a - r * i, o, a);
645
643
  }
646
- function V(t) {
644
+ function Y(t) {
647
645
  this._context = t;
648
646
  }
649
- V.prototype = {
647
+ Y.prototype = {
650
648
  areaStart: function() {
651
649
  this._line = 0;
652
650
  },
@@ -662,7 +660,7 @@ V.prototype = {
662
660
  this._context.lineTo(this._x1, this._y1);
663
661
  break;
664
662
  case 3:
665
- J(this, this._t0, xt(this, this._t0));
663
+ Q(this, this._t0, ft(this, this._t0));
666
664
  break;
667
665
  }
668
666
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -678,26 +676,26 @@ V.prototype = {
678
676
  this._point = 2;
679
677
  break;
680
678
  case 2:
681
- this._point = 3, J(this, xt(this, i = vt(this, t, e)), i);
679
+ this._point = 3, Q(this, ft(this, i = ut(this, t, e)), i);
682
680
  break;
683
681
  default:
684
- J(this, this._t0, i = vt(this, t, e));
682
+ Q(this, this._t0, i = ut(this, t, e));
685
683
  break;
686
684
  }
687
685
  this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = e, this._t0 = i;
688
686
  }
689
687
  }
690
688
  };
691
- function Jt(t) {
692
- this._context = new Kt(t);
689
+ function Wt(t) {
690
+ this._context = new qt(t);
693
691
  }
694
- (Jt.prototype = Object.create(V.prototype)).point = function(t, e) {
695
- V.prototype.point.call(this, e, t);
692
+ (Wt.prototype = Object.create(Y.prototype)).point = function(t, e) {
693
+ Y.prototype.point.call(this, e, t);
696
694
  };
697
- function Kt(t) {
695
+ function qt(t) {
698
696
  this._context = t;
699
697
  }
700
- Kt.prototype = {
698
+ qt.prototype = {
701
699
  moveTo: function(t, e) {
702
700
  this._context.moveTo(e, t);
703
701
  },
@@ -711,16 +709,16 @@ Kt.prototype = {
711
709
  this._context.bezierCurveTo(e, t, n, i, o, s);
712
710
  }
713
711
  };
714
- function xe(t) {
715
- return new V(t);
712
+ function de(t) {
713
+ return new Y(t);
716
714
  }
717
- function ge(t) {
718
- return new Jt(t);
715
+ function ve(t) {
716
+ return new Wt(t);
719
717
  }
720
- function te(t) {
718
+ function Qt(t) {
721
719
  this._context = t;
722
720
  }
723
- te.prototype = {
721
+ Qt.prototype = {
724
722
  areaStart: function() {
725
723
  this._line = 0;
726
724
  },
@@ -736,29 +734,29 @@ te.prototype = {
736
734
  if (this._line ? this._context.lineTo(t[0], e[0]) : this._context.moveTo(t[0], e[0]), i === 2)
737
735
  this._context.lineTo(t[1], e[1]);
738
736
  else
739
- for (var n = gt(t), s = gt(e), o = 0, l = 1; l < i; ++o, ++l)
740
- this._context.bezierCurveTo(n[0][o], s[0][o], n[1][o], s[1][o], t[l], e[l]);
737
+ for (var n = pt(t), s = pt(e), o = 0, a = 1; a < i; ++o, ++a)
738
+ this._context.bezierCurveTo(n[0][o], s[0][o], n[1][o], s[1][o], t[a], e[a]);
741
739
  (this._line || this._line !== 0 && i === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
742
740
  },
743
741
  point: function(t, e) {
744
742
  this._x.push(+t), this._y.push(+e);
745
743
  }
746
744
  };
747
- function gt(t) {
748
- var e, i = t.length - 1, n, s = new Array(i), o = new Array(i), l = new Array(i);
749
- for (s[0] = 0, o[0] = 2, l[0] = t[0] + 2 * t[1], e = 1; e < i - 1; ++e) s[e] = 1, o[e] = 4, l[e] = 4 * t[e] + 2 * t[e + 1];
750
- for (s[i - 1] = 2, o[i - 1] = 7, l[i - 1] = 8 * t[i - 1] + t[i], e = 1; e < i; ++e) n = s[e] / o[e - 1], o[e] -= n, l[e] -= n * l[e - 1];
751
- for (s[i - 1] = l[i - 1] / o[i - 1], e = i - 2; e >= 0; --e) s[e] = (l[e] - s[e + 1]) / o[e];
745
+ function pt(t) {
746
+ var e, i = t.length - 1, n, s = new Array(i), o = new Array(i), a = new Array(i);
747
+ for (s[0] = 0, o[0] = 2, a[0] = t[0] + 2 * t[1], e = 1; e < i - 1; ++e) s[e] = 1, o[e] = 4, a[e] = 4 * t[e] + 2 * t[e + 1];
748
+ for (s[i - 1] = 2, o[i - 1] = 7, a[i - 1] = 8 * t[i - 1] + t[i], e = 1; e < i; ++e) n = s[e] / o[e - 1], o[e] -= n, a[e] -= n * a[e - 1];
749
+ for (s[i - 1] = a[i - 1] / o[i - 1], e = i - 2; e >= 0; --e) s[e] = (a[e] - s[e + 1]) / o[e];
752
750
  for (o[i - 1] = (t[i] + s[i - 1]) / 2, e = 0; e < i - 1; ++e) o[e] = 2 * t[e + 1] - s[e + 1];
753
751
  return [s, o];
754
752
  }
755
- function be(t) {
756
- return new te(t);
753
+ function xe(t) {
754
+ return new Qt(t);
757
755
  }
758
- function q(t, e) {
756
+ function V(t, e) {
759
757
  this._context = t, this._t = e;
760
758
  }
761
- q.prototype = {
759
+ V.prototype = {
762
760
  areaStart: function() {
763
761
  this._line = 0;
764
762
  },
@@ -778,7 +776,7 @@ q.prototype = {
778
776
  break;
779
777
  case 1:
780
778
  this._point = 2;
781
- // falls through
779
+ // proceed
782
780
  default: {
783
781
  if (this._t <= 0)
784
782
  this._context.lineTo(this._x, e), this._context.lineTo(t, e);
@@ -792,16 +790,16 @@ q.prototype = {
792
790
  this._x = t, this._y = e;
793
791
  }
794
792
  };
795
- function me(t) {
796
- return new q(t, 0.5);
793
+ function ge(t) {
794
+ return new V(t, 0.5);
797
795
  }
798
- function ke(t) {
799
- return new q(t, 0);
796
+ function be(t) {
797
+ return new V(t, 0);
800
798
  }
801
- function Se(t) {
802
- return new q(t, 1);
799
+ function me(t) {
800
+ return new V(t, 1);
803
801
  }
804
- function bt(t, e) {
802
+ function yt(t, e) {
805
803
  var i = Object.keys(t);
806
804
  if (Object.getOwnPropertySymbols) {
807
805
  var n = Object.getOwnPropertySymbols(t);
@@ -811,26 +809,26 @@ function bt(t, e) {
811
809
  }
812
810
  return i;
813
811
  }
814
- function we(t) {
812
+ function ke(t) {
815
813
  for (var e = 1; e < arguments.length; e++) {
816
814
  var i = arguments[e] != null ? arguments[e] : {};
817
- e % 2 ? bt(Object(i), !0).forEach(function(n) {
818
- Te(t, n, i[n]);
819
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : bt(Object(i)).forEach(function(n) {
815
+ e % 2 ? yt(Object(i), !0).forEach(function(n) {
816
+ Se(t, n, i[n]);
817
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : yt(Object(i)).forEach(function(n) {
820
818
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
821
819
  });
822
820
  }
823
821
  return t;
824
822
  }
825
- function R(t) {
823
+ function E(t) {
826
824
  "@babel/helpers - typeof";
827
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? R = function(e) {
825
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? E = function(e) {
828
826
  return typeof e;
829
- } : R = function(e) {
827
+ } : E = function(e) {
830
828
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
831
- }, R(t);
829
+ }, E(t);
832
830
  }
833
- function Te(t, e, i) {
831
+ function Se(t, e, i) {
834
832
  return e in t ? Object.defineProperty(t, e, {
835
833
  value: i,
836
834
  enumerable: !0,
@@ -848,23 +846,23 @@ function z() {
848
846
  return t;
849
847
  }, z.apply(this, arguments);
850
848
  }
851
- function Ne(t, e) {
849
+ function we(t, e) {
852
850
  if (t) {
853
- if (typeof t == "string") return mt(t, e);
851
+ if (typeof t == "string") return dt(t, e);
854
852
  var i = Object.prototype.toString.call(t).slice(8, -1);
855
853
  if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
856
- if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return mt(t, e);
854
+ if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return dt(t, e);
857
855
  }
858
856
  }
859
- function mt(t, e) {
857
+ function dt(t, e) {
860
858
  (e == null || e > t.length) && (e = t.length);
861
859
  for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
862
860
  return n;
863
861
  }
864
- function ee(t, e) {
862
+ function Ut(t, e) {
865
863
  var i = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
866
864
  if (!i) {
867
- if (Array.isArray(t) || (i = Ne(t)) || e) {
865
+ if (Array.isArray(t) || (i = we(t)) || e) {
868
866
  i && (t = i);
869
867
  var n = 0, s = function() {
870
868
  };
@@ -878,8 +876,8 @@ function ee(t, e) {
878
876
  value: t[n++]
879
877
  };
880
878
  },
881
- e: function(h) {
882
- throw h;
879
+ e: function(l) {
880
+ throw l;
883
881
  },
884
882
  f: s
885
883
  };
@@ -887,36 +885,36 @@ function ee(t, e) {
887
885
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
888
886
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
889
887
  }
890
- var o = !0, l = !1, r;
888
+ var o = !0, a = !1, r;
891
889
  return {
892
890
  s: function() {
893
891
  i = i.call(t);
894
892
  },
895
893
  n: function() {
896
- var h = i.next();
897
- return o = h.done, h;
894
+ var l = i.next();
895
+ return o = l.done, l;
898
896
  },
899
- e: function(h) {
900
- l = !0, r = h;
897
+ e: function(l) {
898
+ a = !0, r = l;
901
899
  },
902
900
  f: function() {
903
901
  try {
904
902
  !o && i.return != null && i.return();
905
903
  } finally {
906
- if (l) throw r;
904
+ if (a) throw r;
907
905
  }
908
906
  }
909
907
  };
910
908
  }
911
- function Pe(t, e) {
909
+ function Te(t, e) {
912
910
  var i = [], n = [];
913
- function s(o, l) {
911
+ function s(o, a) {
914
912
  if (o.length === 1)
915
913
  i.push(o[0]), n.push(o[0]);
916
914
  else {
917
- for (var r = Array(o.length - 1), h = 0; h < r.length; h++)
918
- h === 0 && i.push(o[0]), h === r.length - 1 && n.push(o[h + 1]), r[h] = [(1 - l) * o[h][0] + l * o[h + 1][0], (1 - l) * o[h][1] + l * o[h + 1][1]];
919
- s(r, l);
915
+ for (var r = Array(o.length - 1), l = 0; l < r.length; l++)
916
+ l === 0 && i.push(o[0]), l === r.length - 1 && n.push(o[l + 1]), r[l] = [(1 - a) * o[l][0] + a * o[l + 1][0], (1 - a) * o[l][1] + a * o[l + 1][1]];
917
+ s(r, a);
920
918
  }
921
919
  }
922
920
  return t.length && s(t, e), {
@@ -924,23 +922,23 @@ function Pe(t, e) {
924
922
  right: n.reverse()
925
923
  };
926
924
  }
927
- function Ae(t) {
925
+ function Oe(t) {
928
926
  var e = {};
929
927
  return t.length === 4 && (e.x2 = t[2][0], e.y2 = t[2][1]), t.length >= 3 && (e.x1 = t[1][0], e.y1 = t[1][1]), e.x = t[t.length - 1][0], e.y = t[t.length - 1][1], t.length === 4 ? e.type = "C" : t.length === 3 ? e.type = "Q" : e.type = "L", e;
930
928
  }
931
- function Oe(t, e) {
929
+ function Ne(t, e) {
932
930
  e = e || 2;
933
931
  for (var i = [], n = t, s = 1 / e, o = 0; o < e - 1; o++) {
934
- var l = s / (1 - s * o), r = Pe(n, l);
932
+ var a = s / (1 - s * o), r = Te(n, a);
935
933
  i.push(r.left), n = r.right;
936
934
  }
937
935
  return i.push(n), i;
938
936
  }
939
- function Ce(t, e, i) {
937
+ function Pe(t, e, i) {
940
938
  var n = [[t.x, t.y]];
941
- return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]), Oe(n, i).map(Ae);
939
+ return e.x1 != null && n.push([e.x1, e.y1]), e.x2 != null && n.push([e.x2, e.y2]), n.push([e.x, e.y]), Ne(n, i).map(Oe);
942
940
  }
943
- var Me = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, j = {
941
+ var Ce = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, A = {
944
942
  M: ["x", "y"],
945
943
  L: ["x", "y"],
946
944
  H: ["x"],
@@ -952,20 +950,20 @@ var Me = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, j = {
952
950
  A: ["rx", "ry", "xAxisRotation", "largeArcFlag", "sweepFlag", "x", "y"],
953
951
  Z: []
954
952
  };
955
- Object.keys(j).forEach(function(t) {
956
- j[t.toLowerCase()] = j[t];
953
+ Object.keys(A).forEach(function(t) {
954
+ A[t.toLowerCase()] = A[t];
957
955
  });
958
- function it(t, e) {
956
+ function J(t, e) {
959
957
  for (var i = Array(t), n = 0; n < t; n++)
960
958
  i[n] = e;
961
959
  return i;
962
960
  }
963
- function De(t) {
964
- return "".concat(t.type).concat(j[t.type].map(function(e) {
961
+ function Ae(t) {
962
+ return "".concat(t.type).concat(A[t.type].map(function(e) {
965
963
  return t[e];
966
964
  }).join(","));
967
965
  }
968
- function je(t, e) {
966
+ function Me(t, e) {
969
967
  var i = {
970
968
  x1: "x",
971
969
  y1: "y",
@@ -975,88 +973,88 @@ function je(t, e) {
975
973
  if (t.type !== e.type && e.type.toUpperCase() !== "M") {
976
974
  var s = {};
977
975
  Object.keys(e).forEach(function(o) {
978
- var l = e[o], r = t[o];
979
- r === void 0 && (n.includes(o) ? r = l : (r === void 0 && i[o] && (r = t[i[o]]), r === void 0 && (r = 0))), s[o] = r;
976
+ var a = e[o], r = t[o];
977
+ r === void 0 && (n.includes(o) ? r = a : (r === void 0 && i[o] && (r = t[i[o]]), r === void 0 && (r = 0))), s[o] = r;
980
978
  }), s.type = e.type, t = s;
981
979
  }
982
980
  return t;
983
981
  }
984
- function Ee(t, e, i) {
982
+ function je(t, e, i) {
985
983
  var n = [];
986
984
  if (e.type === "L" || e.type === "Q" || e.type === "C")
987
- n = n.concat(Ce(t, e, i));
985
+ n = n.concat(Pe(t, e, i));
988
986
  else {
989
987
  var s = z({}, t);
990
- s.type === "M" && (s.type = "L"), n = n.concat(it(i - 1).map(function() {
988
+ s.type === "M" && (s.type = "L"), n = n.concat(J(i - 1).map(function() {
991
989
  return s;
992
990
  })), n.push(e);
993
991
  }
994
992
  return n;
995
993
  }
996
- function kt(t, e, i) {
997
- var n = t.length - 1, s = e.length - 1, o = n / s, l = it(s).reduce(function(h, c, y) {
998
- var a = Math.floor(o * y);
999
- if (i && a < t.length - 1 && i(t[a], t[a + 1])) {
1000
- var _ = o * y % 1 < 0.5;
1001
- h[a] && (_ ? a > 0 ? a -= 1 : a < t.length - 1 && (a += 1) : a < t.length - 1 ? a += 1 : a > 0 && (a -= 1));
994
+ function vt(t, e, i) {
995
+ var n = t.length - 1, s = e.length - 1, o = n / s, a = J(s).reduce(function(l, y, _) {
996
+ var h = Math.floor(o * _);
997
+ if (i && h < t.length - 1 && i(t[h], t[h + 1])) {
998
+ var c = o * _ % 1 < 0.5;
999
+ l[h] && (c ? h > 0 ? h -= 1 : h < t.length - 1 && (h += 1) : h < t.length - 1 ? h += 1 : h > 0 && (h -= 1));
1002
1000
  }
1003
- return h[a] = (h[a] || 0) + 1, h;
1004
- }, []), r = l.reduce(function(h, c, y) {
1005
- if (y === t.length - 1) {
1006
- var a = it(c, z({}, t[t.length - 1]));
1007
- return a[0].type === "M" && a.forEach(function(_) {
1008
- _.type = "L";
1009
- }), h.concat(a);
1001
+ return l[h] = (l[h] || 0) + 1, l;
1002
+ }, []), r = a.reduce(function(l, y, _) {
1003
+ if (_ === t.length - 1) {
1004
+ var h = J(y, z({}, t[t.length - 1]));
1005
+ return h[0].type === "M" && h.forEach(function(c) {
1006
+ c.type = "L";
1007
+ }), l.concat(h);
1010
1008
  }
1011
- return h.concat(Ee(t[y], t[y + 1], c));
1009
+ return l.concat(je(t[_], t[_ + 1], y));
1012
1010
  }, []);
1013
1011
  return r.unshift(t[0]), r;
1014
1012
  }
1015
- function St(t) {
1016
- for (var e = (t || "").match(Me) || [], i = [], n, s, o = 0; o < e.length; ++o)
1017
- if (n = j[e[o]], n) {
1013
+ function xt(t) {
1014
+ for (var e = (t || "").match(Ce) || [], i = [], n, s, o = 0; o < e.length; ++o)
1015
+ if (n = A[e[o]], n) {
1018
1016
  s = {
1019
1017
  type: e[o]
1020
1018
  };
1021
- for (var l = 0; l < n.length; ++l)
1022
- s[n[l]] = +e[o + l + 1];
1019
+ for (var a = 0; a < n.length; ++a)
1020
+ s[n[a]] = +e[o + a + 1];
1023
1021
  o += n.length, i.push(s);
1024
1022
  }
1025
1023
  return i;
1026
1024
  }
1027
- function Re(t, e, i) {
1028
- var n = t == null ? [] : t.slice(), s = e == null ? [] : e.slice(), o = R(i) === "object" ? i : {
1025
+ function De(t, e, i) {
1026
+ var n = t == null ? [] : t.slice(), s = e == null ? [] : e.slice(), o = E(i) === "object" ? i : {
1029
1027
  excludeSegment: i,
1030
1028
  snapEndsToInput: !0
1031
- }, l = o.excludeSegment, r = o.snapEndsToInput;
1029
+ }, a = o.excludeSegment, r = o.snapEndsToInput;
1032
1030
  if (!n.length && !s.length)
1033
1031
  return function() {
1034
1032
  return [];
1035
1033
  };
1036
- var h = (n.length === 0 || n[n.length - 1].type === "Z") && (s.length === 0 || s[s.length - 1].type === "Z");
1034
+ var l = (n.length === 0 || n[n.length - 1].type === "Z") && (s.length === 0 || s[s.length - 1].type === "Z");
1037
1035
  n.length > 0 && n[n.length - 1].type === "Z" && n.pop(), s.length > 0 && s[s.length - 1].type === "Z" && s.pop(), n.length ? s.length || s.push(n[0]) : n.push(s[0]);
1038
- var c = Math.abs(s.length - n.length);
1039
- c !== 0 && (s.length > n.length ? n = kt(n, s, l) : s.length < n.length && (s = kt(s, n, l))), n = n.map(function(a, _) {
1040
- return je(a, s[_]);
1036
+ var y = Math.abs(s.length - n.length);
1037
+ y !== 0 && (s.length > n.length ? n = vt(n, s, a) : s.length < n.length && (s = vt(s, n, a))), n = n.map(function(h, c) {
1038
+ return Me(h, s[c]);
1041
1039
  });
1042
- var y = n.map(function(a) {
1043
- return we({}, a);
1040
+ var _ = n.map(function(h) {
1041
+ return ke({}, h);
1044
1042
  });
1045
- return h && (y.push({
1043
+ return l && (_.push({
1046
1044
  type: "Z"
1047
1045
  }), n.push({
1048
1046
  type: "Z"
1049
- })), function(_) {
1050
- if (_ === 1 && r)
1047
+ })), function(c) {
1048
+ if (c === 1 && r)
1051
1049
  return e ?? [];
1052
- if (_ === 0)
1050
+ if (c === 0)
1053
1051
  return n;
1054
- for (var g = 0; g < y.length; ++g) {
1055
- var d = n[g], x = s[g], u = y[g], f = ee(j[u.type]), v;
1052
+ for (var v = 0; v < _.length; ++v) {
1053
+ var g = n[v], m = s[v], u = _[v], f = Ut(A[u.type]), d;
1056
1054
  try {
1057
- for (f.s(); !(v = f.n()).done; ) {
1058
- var p = v.value;
1059
- u[p] = (1 - _) * d[p] + _ * x[p], (p === "largeArcFlag" || p === "sweepFlag") && (u[p] = Math.round(u[p]));
1055
+ for (f.s(); !(d = f.n()).done; ) {
1056
+ var p = d.value;
1057
+ u[p] = (1 - c) * g[p] + c * m[p], (p === "largeArcFlag" || p === "sweepFlag") && (u[p] = Math.round(u[p]));
1060
1058
  }
1061
1059
  } catch (b) {
1062
1060
  f.e(b);
@@ -1064,63 +1062,63 @@ function Re(t, e, i) {
1064
1062
  f.f();
1065
1063
  }
1066
1064
  }
1067
- return y;
1065
+ return _;
1068
1066
  };
1069
1067
  }
1070
- function nt(t, e, i) {
1071
- var n = St(t), s = St(e), o = R(i) === "object" ? i : {
1068
+ function Jt(t, e, i) {
1069
+ var n = xt(t), s = xt(e), o = E(i) === "object" ? i : {
1072
1070
  excludeSegment: i,
1073
1071
  snapEndsToInput: !0
1074
- }, l = o.excludeSegment, r = o.snapEndsToInput;
1072
+ }, a = o.excludeSegment, r = o.snapEndsToInput;
1075
1073
  if (!n.length && !s.length)
1076
1074
  return function() {
1077
1075
  return "";
1078
1076
  };
1079
- var h = Re(n, s, {
1080
- excludeSegment: l,
1077
+ var l = De(n, s, {
1078
+ excludeSegment: a,
1081
1079
  snapEndsToInput: r
1082
1080
  });
1083
- return function(y) {
1084
- if (y === 1 && r)
1081
+ return function(_) {
1082
+ if (_ === 1 && r)
1085
1083
  return e ?? "";
1086
- var a = h(y), _ = "", g = ee(a), d;
1084
+ var h = l(_), c = "", v = Ut(h), g;
1087
1085
  try {
1088
- for (g.s(); !(d = g.n()).done; ) {
1089
- var x = d.value;
1090
- _ += De(x);
1086
+ for (v.s(); !(g = v.n()).done; ) {
1087
+ var m = g.value;
1088
+ c += Ae(m);
1091
1089
  }
1092
1090
  } catch (u) {
1093
- g.e(u);
1091
+ v.e(u);
1094
1092
  } finally {
1095
- g.f();
1093
+ v.f();
1096
1094
  }
1097
- return _;
1095
+ return c;
1098
1096
  };
1099
1097
  }
1100
- var m;
1098
+ var x;
1101
1099
  (function(t) {
1102
1100
  t.Basis = "basis", t.BasisClosed = "basisClosed", t.BasisOpen = "basisOpen", t.Bundle = "bundle", t.Cardinal = "cardinal", t.CardinalClosed = "cardinalClosed", t.CardinalOpen = "cardinalOpen", t.CatmullRom = "catmullRom", t.CatmullRomClosed = "catmullRomClosed", t.CatmullRomOpen = "catmullRomOpen", t.Linear = "linear", t.LinearClosed = "linearClosed", t.MonotoneX = "monotoneX", t.MonotoneY = "monotoneY", t.Natural = "natural", t.Step = "step", t.StepAfter = "stepAfter", t.StepBefore = "stepBefore";
1103
- })(m || (m = {}));
1104
- const W = {
1105
- [m.Basis]: ae,
1106
- [m.BasisClosed]: le,
1107
- [m.BasisOpen]: he,
1108
- [m.Bundle]: ce,
1109
- [m.Cardinal]: _e,
1110
- [m.CardinalClosed]: ue,
1111
- [m.CardinalOpen]: fe,
1112
- [m.CatmullRom]: pe,
1113
- [m.CatmullRomClosed]: ye,
1114
- [m.CatmullRomOpen]: de,
1115
- [m.Linear]: ht,
1116
- [m.LinearClosed]: ve,
1117
- [m.MonotoneX]: xe,
1118
- [m.MonotoneY]: ge,
1119
- [m.Natural]: be,
1120
- [m.Step]: me,
1121
- [m.StepAfter]: Se,
1122
- [m.StepBefore]: ke
1123
- }, Be = Object.assign(Object.assign({}, Lt), { curveType: m.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Fe = jt`
1101
+ })(x || (x = {}));
1102
+ const K = {
1103
+ [x.Basis]: oe,
1104
+ [x.BasisClosed]: re,
1105
+ [x.BasisOpen]: ae,
1106
+ [x.Bundle]: le,
1107
+ [x.Cardinal]: he,
1108
+ [x.CardinalClosed]: _e,
1109
+ [x.CardinalOpen]: ce,
1110
+ [x.CatmullRom]: ue,
1111
+ [x.CatmullRomClosed]: fe,
1112
+ [x.CatmullRomOpen]: pe,
1113
+ [x.Linear]: ot,
1114
+ [x.LinearClosed]: ye,
1115
+ [x.MonotoneX]: de,
1116
+ [x.MonotoneY]: ve,
1117
+ [x.Natural]: xe,
1118
+ [x.Step]: ge,
1119
+ [x.StepAfter]: me,
1120
+ [x.StepBefore]: be
1121
+ }, Ee = Object.assign(Object.assign({}, Et), { curveType: x.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 }), Re = Pt`
1124
1122
  :root {
1125
1123
  --vis-line-cursor: default;
1126
1124
  --vis-line-stroke-dasharray: none;
@@ -1130,54 +1128,54 @@ const W = {
1130
1128
  --vis-line-gapfill-stroke-opacity: 0.8;
1131
1129
  --vis-line-gapfill-stroke-dashoffset: 0;
1132
1130
  }
1133
- `, Le = S`
1131
+ `, Be = T`
1134
1132
  label: line-component;
1135
- `, E = S`
1133
+ `, M = T`
1136
1134
  label: line;
1137
1135
  transition: opacity 200ms;
1138
1136
  cursor: var(--vis-line-cursor);
1139
- `, st = S`
1137
+ `, tt = T`
1140
1138
  label: linePath;
1141
1139
  fill: none;
1142
1140
  stroke-dasharray: var(--vis-line-stroke-dasharray);
1143
1141
  stroke-dashoffset: var(--vis-line-stroke-dashoffset);
1144
- `, ot = S`
1142
+ `, et = T`
1145
1143
  label: lineSelectionHelper;
1146
1144
  fill: none;
1147
1145
  stroke: rgba(0, 0, 0, 0);
1148
1146
  stroke-width: 8px;
1149
- `, rt = S`
1147
+ `, it = T`
1150
1148
  opacity: 0.2;
1151
- `, at = S`
1149
+ `, nt = T`
1152
1150
  label: interpolated-path;
1153
1151
  fill: none;
1154
1152
  stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
1155
1153
  stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
1156
1154
  stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
1157
- `, He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1155
+ `, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1158
1156
  __proto__: null,
1159
- dim: rt,
1160
- globalStyles: Fe,
1161
- interpolatedPath: at,
1162
- line: E,
1163
- linePath: st,
1164
- lineSelectionHelper: ot,
1165
- root: Le
1157
+ dim: it,
1158
+ globalStyles: Re,
1159
+ interpolatedPath: nt,
1160
+ line: M,
1161
+ linePath: tt,
1162
+ lineSelectionHelper: et,
1163
+ root: Be
1166
1164
  }, Symbol.toStringTag, { value: "Module" }));
1167
- class Q extends Ht {
1165
+ class Z extends Rt {
1168
1166
  constructor(e) {
1169
- super(), this._defaultConfig = Be, this.config = this._defaultConfig, this.curve = W[m.MonotoneX], this.events = {
1170
- [Q.selectors.line]: {
1167
+ super(), this._defaultConfig = Ee, this.config = this._defaultConfig, this.curve = K[x.MonotoneX], this.events = {
1168
+ [Z.selectors.line]: {
1171
1169
  mouseover: this._highlight.bind(this),
1172
1170
  mouseleave: this._resetHighlight.bind(this)
1173
1171
  }
1174
1172
  }, e && this.setConfig(e);
1175
1173
  }
1176
1174
  get bleed() {
1177
- const { config: { lineWidth: e } } = this, i = this.yScale.domain(), s = (this.yScale.range()[0] > this.yScale.range()[1] ? D.North : D.South) === D.South, o = e > 3, l = e >= 10;
1175
+ const { config: { lineWidth: e } } = this, i = this.yScale.domain(), s = (this.yScale.range()[0] > this.yScale.range()[1] ? q.North : q.South) === q.South, o = e > 3, a = e >= 10;
1178
1176
  return {
1179
- top: !l && (!s && i[1] === 0 || s && i[0] === 0) ? 0 : e / 2,
1180
- bottom: !l && (!s && i[0] === 0 || s && i[1] === 0) ? 0 : e / 2,
1177
+ top: !a && (!s && i[1] === 0 || s && i[0] === 0) ? 0 : e / 2,
1178
+ bottom: !a && (!s && i[0] === 0 || s && i[1] === 0) ? 0 : e / 2,
1181
1179
  left: o ? e / 2 : 0,
1182
1180
  right: o ? e / 2 : 0
1183
1181
  };
@@ -1185,41 +1183,41 @@ class Q extends Ht {
1185
1183
  _render(e) {
1186
1184
  super._render(e);
1187
1185
  const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration;
1188
- this.curve = W[i.curveType], this.lineGen = ct().x((a) => a.x).y((a) => a.y).defined((a) => a.defined).curve(this.curve);
1189
- const o = K(i.y) ? i.y : [i.y], l = n.map((a, _) => this.xScale(G(a, i.x, _))), r = o.map((a) => {
1190
- const _ = n.map((f, v) => {
1191
- const p = G(f, a, v), b = (H(p) || p === null) && isFinite(p) ? p : i.fallbackValue, w = i.interpolateMissingData ? (H(p) || p === null) && isFinite(p) : isFinite(b);
1186
+ this.curve = K[i.curveType], this.lineGen = Ft().x((h) => h.x).y((h) => h.y).defined((h) => h.defined).curve(this.curve);
1187
+ const o = U(i.y) ? i.y : [i.y], a = n.map((h, c) => this.xScale(F(h, i.x, c))), r = o.map((h) => {
1188
+ const c = n.map((f, d) => {
1189
+ const p = F(f, h, d), b = (H(p) || p === null) && isFinite(p) ? p : i.fallbackValue, S = i.interpolateMissingData ? (H(p) || p === null) && isFinite(p) : isFinite(b);
1192
1190
  return {
1193
- x: l[v],
1191
+ x: a[d],
1194
1192
  y: this.yScale(b ?? 0),
1195
- defined: w,
1193
+ defined: S,
1196
1194
  value: b
1197
1195
  };
1198
- }), g = _.reduce((f, v) => v.defined || f, !1);
1199
- let d = !1;
1200
- const x = _.reduce((f, v, p) => {
1201
- !v.defined && isFinite(i.fallbackValue) && f.push(Object.assign(Object.assign({}, v), { defined: !0 })), !v.defined && !d && (d = !0);
1202
- const b = p > 0 && !_[p - 1].defined || p < _.length - 1 && !_[p + 1].defined;
1203
- return v.defined && b && (d || f.push(Object.assign(Object.assign({}, v), { defined: !1 })), f.push(v), d = !1), f;
1204
- }, []), u = g && _.some((f) => f.value !== null);
1196
+ }), v = c.reduce((f, d) => d.defined || f, !1);
1197
+ let g = !1;
1198
+ const m = c.reduce((f, d, p) => {
1199
+ !d.defined && isFinite(i.fallbackValue) && f.push(Object.assign(Object.assign({}, d), { defined: !0 })), !d.defined && !g && (g = !0);
1200
+ const b = p > 0 && !c[p - 1].defined || p < c.length - 1 && !c[p + 1].defined;
1201
+ return d.defined && b && (g || f.push(Object.assign(Object.assign({}, d), { defined: !1 })), f.push(d), g = !1), f;
1202
+ }, []), u = v && c.some((f) => f.value !== null);
1205
1203
  return {
1206
- values: _,
1207
- defined: g,
1208
- gaps: x,
1204
+ values: c,
1205
+ defined: v,
1206
+ gaps: m,
1209
1207
  visible: u
1210
1208
  };
1211
- }), h = this.g.selectAll(`.${E}`).data(r), c = h.enter().append("g").attr("class", E);
1212
- c.append("path").attr("class", st).attr("stroke", (a, _) => O(n, i.color, _)).attr("stroke-opacity", 0).attr("stroke-width", i.lineWidth), c.append("path").attr("class", ot).attr("d", this._emptyPath()), c.append("path").attr("class", at).attr("d", this._emptyPath()).style("opacity", 0);
1213
- const y = c.merge(h);
1214
- y.style("cursor", (a, _) => tt(n, i.cursor, _)), y.each((a, _, g) => {
1215
- var d;
1216
- const x = et(g[_]), u = x.select(`.${st}`), f = x.select(`.${ot}`), v = x.select(`.${at}`), p = a.visible, b = Et(n, i.lineDashArray, _), w = C(u, s).attr("stroke", O(n, i.color, _)).attr("stroke-width", i.lineWidth).attr("stroke-opacity", p ? 1 : 0).style("stroke-dasharray", (d = b?.join(" ")) !== null && d !== void 0 ? d : null), M = a.values.some((P) => !P.defined), N = this.lineGen(a.values);
1217
- if (s && !M) {
1218
- const P = u.attr("d") || this._emptyPath(), A = N || this._emptyPath();
1219
- w.attrTween("d", () => nt(P, A));
1220
- } else a.visible && w.attr("d", N);
1221
- f.attr("d", N).attr("visibility", p ? null : "hidden"), M && i.interpolateMissingData ? C(v, s).attr("d", this.lineGen(a.gaps)).attr("stroke", O(n, i.color, _)).attr("stroke-width", i.lineWidth - 1).style("opacity", 1) : v.transition().duration(s).style("opacity", 0);
1222
- }), C(h.exit(), s).style("opacity", 0).remove();
1209
+ }), l = this.g.selectAll(`.${M}`).data(r), y = l.enter().append("g").attr("class", M);
1210
+ y.append("path").attr("class", tt).attr("stroke", (h, c) => j(n, i.color, c)).attr("stroke-opacity", 0).attr("stroke-width", i.lineWidth), y.append("path").attr("class", et).attr("d", this._emptyPath()), y.append("path").attr("class", nt).attr("d", this._emptyPath()).style("opacity", 0);
1211
+ const _ = y.merge(l);
1212
+ _.style("cursor", (h, c) => Ct(n, i.cursor, c)), _.each((h, c, v) => {
1213
+ var g;
1214
+ const m = At(v[c]), u = m.select(`.${tt}`), f = m.select(`.${et}`), d = m.select(`.${nt}`), p = h.visible, b = te(n, i.lineDashArray, c), S = D(u, s).attr("stroke", j(n, i.color, c)).attr("stroke-width", i.lineWidth).attr("stroke-opacity", p ? 1 : 0).style("stroke-dasharray", (g = b?.join(" ")) !== null && g !== void 0 ? g : null), C = h.values.some((N) => !N.defined), O = this.lineGen(h.values);
1215
+ if (s && !C) {
1216
+ const N = u.attr("d") || this._emptyPath(), P = O || this._emptyPath();
1217
+ S.attrTween("d", () => Jt(N, P));
1218
+ } else h.visible && S.attr("d", O);
1219
+ f.attr("d", O).attr("visibility", p ? null : "hidden"), C && i.interpolateMissingData ? D(d, s).attr("d", this.lineGen(h.gaps)).attr("stroke", j(n, i.color, c)).attr("stroke-width", i.lineWidth - 1).style("opacity", 1) : d.transition().duration(s).style("opacity", 0);
1220
+ }), D(l.exit(), s).style("opacity", 0).remove();
1223
1221
  }
1224
1222
  _emptyPath() {
1225
1223
  const e = this.xScale.range(), i = this.yScale.range();
@@ -1227,17 +1225,17 @@ class Q extends Ht {
1227
1225
  }
1228
1226
  _highlight(e) {
1229
1227
  const { config: i } = this;
1230
- i.highlightOnHover && this.g.selectAll(`.${E}`).classed(rt, (n) => n !== e);
1228
+ i.highlightOnHover && this.g.selectAll(`.${M}`).classed(it, (n) => n !== e);
1231
1229
  }
1232
1230
  _resetHighlight() {
1233
1231
  const { config: e } = this;
1234
- e.highlightOnHover && this.g.selectAll(`.${E}`).classed(rt, !1);
1232
+ e.highlightOnHover && this.g.selectAll(`.${M}`).classed(it, !1);
1235
1233
  }
1236
1234
  }
1237
- Q.selectors = He;
1238
- const $e = Object.assign(Object.assign({}, Lt), { color: void 0, curveType: m.MonotoneX, baseline: () => 0, opacity: 1, cursor: null, line: !1, lineColor: void 0, lineWidth: 2, lineDashArray: void 0, minHeight1Px: !1, minHeight: void 0, stackMinHeight: !1 }), ie = S`
1235
+ Z.selectors = $e;
1236
+ const He = Object.assign(Object.assign({}, Et), { color: void 0, curveType: x.MonotoneX, baseline: () => 0, opacity: 1, cursor: null, minHeight1Px: !1, minHeight: void 0 }), Kt = T`
1239
1237
  label: area-component;
1240
- `, Ie = jt`
1238
+ `, Le = Pt`
1241
1239
  :root {
1242
1240
  --vis-area-cursor: default;
1243
1241
  --vis-area-fill-opacity: 1;
@@ -1252,11 +1250,11 @@ const $e = Object.assign(Object.assign({}, Lt), { color: void 0, curveType: m.Mo
1252
1250
  --vis-dark-area-stroke-color: none;
1253
1251
  }
1254
1252
 
1255
- body.theme-dark ${`.${ie}`} {
1253
+ body.theme-dark ${`.${Kt}`} {
1256
1254
  --vis-area-stroke-color: var(--vis-dark-area-stroke-color);
1257
1255
  }
1258
1256
 
1259
- `, $ = S`
1257
+ `, st = T`
1260
1258
  label: area;
1261
1259
  cursor: var(--vis-area-cursor);
1262
1260
  fill-opacity: var(--vis-area-fill-opacity);
@@ -1269,71 +1267,42 @@ const $e = Object.assign(Object.assign({}, Lt), { color: void 0, curveType: m.Mo
1269
1267
  fill-opacity: var(--vis-area-hover-fill-opacity);
1270
1268
  stroke-width: var(--vis-area-hover-stroke-width);
1271
1269
  }
1272
- `, lt = S`
1273
- label: areaLinePath;
1274
- fill: none;
1275
- stroke-dasharray: var(--vis-line-stroke-dasharray);
1276
- stroke-dashoffset: var(--vis-line-stroke-dashoffset);
1277
- `, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1270
+ `, Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1278
1271
  __proto__: null,
1279
- area: $,
1280
- areaLinePath: lt,
1281
- globalStyles: Ie,
1282
- root: ie
1272
+ area: st,
1273
+ globalStyles: Le,
1274
+ root: Kt
1283
1275
  }, Symbol.toStringTag, { value: "Module" }));
1284
- class U extends Ht {
1276
+ class W extends Rt {
1285
1277
  constructor(e) {
1286
- super(), this._defaultConfig = $e, this.config = this._defaultConfig, this.stacked = !0, this.events = {
1287
- [U.selectors.area]: {}
1278
+ super(), this._defaultConfig = He, this.config = this._defaultConfig, this.stacked = !0, this.events = {
1279
+ [W.selectors.area]: {}
1288
1280
  }, e && this.setConfig(e), this.stacked = Array.isArray(this.config.y);
1289
1281
  }
1290
- get bleed() {
1291
- const { config: { line: e, lineWidth: i } } = this;
1292
- if (!e)
1293
- return { top: 0, bottom: 0, left: 0, right: 0 };
1294
- const n = this.yScale.domain(), o = (this.yScale.range()[0] > this.yScale.range()[1] ? D.North : D.South) === D.South, l = i > 3, r = i >= 10;
1295
- return {
1296
- top: !r && (!o && n[1] === 0 || o && n[0] === 0) ? 0 : i / 2,
1297
- bottom: !r && (!o && n[0] === 0 || o && n[1] === 0) ? 0 : i / 2,
1298
- left: l ? i / 2 : 0,
1299
- right: l ? i / 2 : 0
1300
- };
1301
- }
1302
1282
  _render(e) {
1303
1283
  super._render(e);
1304
- const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration, o = W[i.curveType];
1305
- this._areaGen = re().x((u) => u.x).y0((u) => u.y0).y1((u) => u.y1).curve(o);
1306
- const l = K(i.y) ? i.y : [i.y], r = n.map((u, f) => this.xScale(G(u, i.x, f))), h = ne(n, i.baseline, l, this._prevNegative);
1307
- this._prevNegative = h.map((u) => !!u.isMostlyNegative);
1308
- const c = [], y = h.map((u) => u.map((f, v) => {
1284
+ const { config: i, datamodel: { data: n } } = this, s = H(e) ? e : i.duration, o = K[i.curveType];
1285
+ this._areaGen = se().x((u) => u.x).y0((u) => u.y0).y1((u) => u.y1).curve(o);
1286
+ const a = U(i.y) ? i.y : [i.y], r = n.map((u, f) => this.xScale(F(u, i.x, f))), l = ee(n, i.baseline, a, this._prevNegative);
1287
+ this._prevNegative = l.map((u) => !!u.isMostlyNegative);
1288
+ const y = [], _ = l.map((u) => u.map((f, d) => {
1309
1289
  var p, b;
1310
- const w = r[v], M = this.yScale(f[0]), N = this.yScale(f[1]), P = N > M, A = i.stackMinHeight && c[v] || 0, B = P ? M + A : M - A, F = P ? N + A : N - A;
1311
- let L = 0;
1312
- return (i.minHeight || i.minHeight1Px) && Math.abs(F - B) < ((p = i.minHeight) !== null && p !== void 0 ? p : 1) && (L = ((b = i.minHeight) !== null && b !== void 0 ? b : 1) - Math.abs(F - B), i.stackMinHeight && (c[v] = A + L)), {
1313
- x: w,
1314
- y0: B,
1315
- y1: P ? F + L : F - L
1290
+ const S = r[d], C = this.yScale(f[0]), O = this.yScale(f[1]), N = O > C, P = y[d] || 0, R = N ? C + P : C - P, B = N ? O + P : O - P;
1291
+ let $ = 0;
1292
+ return (i.minHeight || i.minHeight1Px) && Math.abs(B - R) < ((p = i.minHeight) !== null && p !== void 0 ? p : 1) && ($ = ((b = i.minHeight) !== null && b !== void 0 ? b : 1) - Math.abs(B - R), y[d] = P + $), {
1293
+ x: S,
1294
+ y0: R,
1295
+ y1: N ? B + $ : B - $
1316
1296
  };
1317
- })), a = y.length - 1, _ = [...y].reverse(), g = this.g.selectAll(`.${$}`).data(_), d = g.enter().append("path").attr("class", $).attr("d", (u) => this._areaGen(u) || this._emptyPath()).style("opacity", 0).style("fill", (u, f) => O(n, i.color, a - f)), x = C(d.merge(g), s).style("opacity", (u, f) => u.some((p) => p.y0 - p.y1 !== 0) ? G(n, i.opacity, a - f) : 0).style("fill", (u, f) => O(n, i.color, a - f)).style("cursor", (u, f) => tt(n, i.cursor, a - f));
1318
- s ? x.attrTween("d", (f, v, p) => {
1319
- const b = et(p[v]).attr("d"), w = this._areaGen(f) || this._emptyPath();
1320
- return nt(b, w);
1321
- }) : x.attr("d", (u) => this._areaGen(u) || this._emptyPath()), C(g.exit(), s).style("opacity", 0).remove(), i.line && this._renderLines(s, y);
1322
- }
1323
- _renderLines(e, i) {
1324
- var n;
1325
- const { config: s, datamodel: { data: o } } = this, l = i.length - 1, r = [...i].reverse(), h = (n = s.lineColor) !== null && n !== void 0 ? n : s.color, c = this.g.selectAll(`.${lt}`).data(r), y = this.g.selectAll(`.${$}`).nodes(), a = c.enter().insert("path", (d, x) => y[x + 1]).attr("class", lt).attr("stroke", (d, x) => O(o, h, l - x)).attr("stroke-width", s.lineWidth).attr("stroke-opacity", 0), _ = C(a.merge(c), e).attr("stroke", (d, x) => O(o, h, l - x)).attr("stroke-width", s.lineWidth).attr("stroke-opacity", 1).attr("cursor", (d, x) => tt(o, s.cursor, l - x)).style("stroke-dasharray", (d, x) => {
1326
- var u, f;
1327
- return (f = (u = Et(o, s.lineDashArray, x)) === null || u === void 0 ? void 0 : u.join(" ")) !== null && f !== void 0 ? f : null;
1328
- }), g = W[s.curveType];
1329
- this._lineGen = ct().x((d) => d.x).y((d) => d.y1).curve(g), e ? _.attrTween("d", (x, u, f) => {
1330
- const v = et(f[u]).attr("d") || this._emptyLinePath(), p = this._lineGen(x) || this._emptyLinePath();
1331
- return nt(v, p);
1332
- }) : _.attr("d", (d) => this._lineGen(d) || this._emptyLinePath()), C(c.exit(), e).style("opacity", 0).remove();
1297
+ })), h = _.length - 1, c = _.reverse(), v = this.g.selectAll(`.${st}`).data(c), g = v.enter().append("path").attr("class", st).attr("d", (u) => this._areaGen(u) || this._emptyPath()).style("opacity", 0).style("fill", (u, f) => j(n, i.color, h - f)), m = D(g.merge(v), s).style("opacity", (u, f) => u.some((p) => p.y0 - p.y1 !== 0) ? F(n, i.opacity, h - f) : 0).style("fill", (u, f) => j(n, i.color, h - f)).style("cursor", (u, f) => Ct(n, i.cursor, h - f));
1298
+ s ? m.attrTween("d", (f, d, p) => {
1299
+ const b = At(p[d]).attr("d"), S = this._areaGen(f) || this._emptyPath();
1300
+ return Jt(b, S);
1301
+ }) : m.attr("d", (u) => this._areaGen(u) || this._emptyPath()), D(v.exit(), s).style("opacity", 0).remove();
1333
1302
  }
1334
1303
  getYDataExtent(e) {
1335
- const { config: i, datamodel: n } = this, s = K(i.y) ? i.y : [i.y], o = this.xScale.domain(), l = e ? se(n.data, o, i.x, !0) : n.data;
1336
- return oe(l, i.baseline, ...s);
1304
+ const { config: i, datamodel: n } = this, s = U(i.y) ? i.y : [i.y], o = e ? ie(n.data, this.xScale.domain(), i.x) : n.data;
1305
+ return ne(o, i.baseline, ...s);
1337
1306
  }
1338
1307
  _emptyPath() {
1339
1308
  const e = this.xScale.range(), i = this.yScale.domain(), n = this.yScale((i[0] + i[1]) / 2), s = n;
@@ -1342,29 +1311,20 @@ class U extends Ht {
1342
1311
  { y0: n, y1: s, x: e[1] }
1343
1312
  ]);
1344
1313
  }
1345
- _emptyLinePath() {
1346
- const e = this.xScale.range(), i = this.yScale.range();
1347
- return `M${e[0]},${i[0]} L${e[1]},${i[0]}`;
1348
- }
1349
1314
  }
1350
- U.selectors = Ge;
1351
- const Xe = { "data-vis-component": "" }, qe = /* @__PURE__ */ wt({
1315
+ W.selectors = Fe;
1316
+ const Ie = { "data-vis-component": "" }, Ze = /* @__PURE__ */ gt({
1352
1317
  __name: "index",
1353
1318
  props: {
1354
- color: { type: [Function, String, Array, null] },
1319
+ color: {},
1355
1320
  curveType: {},
1356
- baseline: { type: [Function, Number, null] },
1357
- opacity: { type: [Function, Number, null] },
1358
- cursor: { type: [Function, String, null] },
1359
- line: { type: Boolean },
1360
- lineColor: { type: [Function, String, Array, null] },
1361
- lineWidth: {},
1362
- lineDashArray: { type: [Function, Array, null] },
1321
+ baseline: {},
1322
+ opacity: {},
1323
+ cursor: {},
1363
1324
  minHeight1Px: { type: Boolean },
1364
1325
  minHeight: {},
1365
- stackMinHeight: { type: Boolean },
1366
- x: { type: [Function, Number, null] },
1367
- y: { type: [Function, Number, null, Array] },
1326
+ x: {},
1327
+ y: {},
1368
1328
  id: { type: Function },
1369
1329
  xScale: { type: [Object, Function] },
1370
1330
  yScale: { type: [Object, Function] },
@@ -1375,38 +1335,38 @@ const Xe = { "data-vis-component": "" }, qe = /* @__PURE__ */ wt({
1375
1335
  data: {}
1376
1336
  },
1377
1337
  setup(t, { expose: e }) {
1378
- const i = Tt(Rt), n = t, s = Nt(() => i.data.value ?? n.data), o = Bt(n), l = Pt();
1379
- return At(() => {
1380
- Ot(() => {
1338
+ const i = bt(Mt), n = t, s = mt(() => i.data.value ?? n.data), o = jt(n), a = kt();
1339
+ return St(() => {
1340
+ wt(() => {
1381
1341
  var r;
1382
- l.value = new U(o.value), (r = l.value) == null || r.setData(s.value), i.update(l.value);
1342
+ a.value = new W(o.value), (r = a.value) == null || r.setData(s.value), i.update(a.value);
1383
1343
  });
1384
- }), Ct(() => {
1344
+ }), Tt(() => {
1385
1345
  var r;
1386
- (r = l.value) == null || r.destroy(), i.destroy();
1387
- }), I(o, (r, h) => {
1388
- var c;
1389
- Ft(r, h) || (c = l.value) == null || c.setConfig(o.value);
1390
- }), I(s, () => {
1346
+ (r = a.value) == null || r.destroy(), i.destroy();
1347
+ }), L(o, (r, l) => {
1348
+ var y;
1349
+ Dt(r, l) || (y = a.value) == null || y.setConfig(o.value);
1350
+ }), L(s, () => {
1391
1351
  var r;
1392
- (r = l.value) == null || r.setData(s.value);
1352
+ (r = a.value) == null || r.setData(s.value);
1393
1353
  }), e({
1394
- component: l
1395
- }), (r, h) => (Mt(), Dt("div", Xe));
1354
+ component: a
1355
+ }), (r, l) => (Ot(), Nt("div", Ie));
1396
1356
  }
1397
- }), Ye = { "data-vis-component": "" }, Qe = /* @__PURE__ */ wt({
1357
+ }), Xe = { "data-vis-component": "" }, We = /* @__PURE__ */ gt({
1398
1358
  __name: "index",
1399
1359
  props: {
1400
- color: { type: [Function, String, Array, null] },
1360
+ color: {},
1401
1361
  curveType: {},
1402
1362
  lineWidth: {},
1403
- lineDashArray: { type: [Function, Array, null] },
1363
+ lineDashArray: {},
1404
1364
  fallbackValue: {},
1405
1365
  highlightOnHover: { type: Boolean },
1406
- cursor: { type: [Function, String, null] },
1366
+ cursor: {},
1407
1367
  interpolateMissingData: { type: Boolean },
1408
- x: { type: [Function, Number, null] },
1409
- y: { type: [Function, Number, null, Array] },
1368
+ x: {},
1369
+ y: {},
1410
1370
  id: { type: Function },
1411
1371
  xScale: { type: [Object, Function] },
1412
1372
  yScale: { type: [Object, Function] },
@@ -1417,27 +1377,27 @@ const Xe = { "data-vis-component": "" }, qe = /* @__PURE__ */ wt({
1417
1377
  data: {}
1418
1378
  },
1419
1379
  setup(t, { expose: e }) {
1420
- const i = Tt(Rt), n = t, s = Nt(() => i.data.value ?? n.data), o = Bt(n), l = Pt();
1421
- return At(() => {
1422
- Ot(() => {
1380
+ const i = bt(Mt), n = t, s = mt(() => i.data.value ?? n.data), o = jt(n), a = kt();
1381
+ return St(() => {
1382
+ wt(() => {
1423
1383
  var r;
1424
- l.value = new Q(o.value), (r = l.value) == null || r.setData(s.value), i.update(l.value);
1384
+ a.value = new Z(o.value), (r = a.value) == null || r.setData(s.value), i.update(a.value);
1425
1385
  });
1426
- }), Ct(() => {
1386
+ }), Tt(() => {
1427
1387
  var r;
1428
- (r = l.value) == null || r.destroy(), i.destroy();
1429
- }), I(o, (r, h) => {
1430
- var c;
1431
- Ft(r, h) || (c = l.value) == null || c.setConfig(o.value);
1432
- }), I(s, () => {
1388
+ (r = a.value) == null || r.destroy(), i.destroy();
1389
+ }), L(o, (r, l) => {
1390
+ var y;
1391
+ Dt(r, l) || (y = a.value) == null || y.setConfig(o.value);
1392
+ }), L(s, () => {
1433
1393
  var r;
1434
- (r = l.value) == null || r.setData(s.value);
1394
+ (r = a.value) == null || r.setData(s.value);
1435
1395
  }), e({
1436
- component: l
1437
- }), (r, h) => (Mt(), Dt("div", Ye));
1396
+ component: a
1397
+ }), (r, l) => (Ot(), Nt("div", Xe));
1438
1398
  }
1439
1399
  });
1440
1400
  export {
1441
- Qe as C,
1442
- qe as j
1401
+ Ze as P,
1402
+ We as S
1443
1403
  };