@carbon/charts-react 1.26.1 → 1.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3516,40 +3516,40 @@ function xT(e) {
3516
3516
  d = ns(d);
3517
3517
  var h = d.fill, p = d.align, f = d.sign, g = d.symbol, m = d.zero, v = d.width, b = d.comma, _ = d.precision, E = d.trim, x = d.type;
3518
3518
  x === "n" ? (b = !0, x = "g") : wh[x] || (_ === void 0 && (_ = 12), E = !0, x = "g"), (m || h === "0" && p === "=") && (m = !0, h = "0", p = "=");
3519
- var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", M = g === "$" ? r : /[%p]/.test(x) ? a : "", k = wh[x], C = /[defgprs%]/.test(x);
3519
+ var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", $ = g === "$" ? r : /[%p]/.test(x) ? a : "", D = wh[x], C = /[defgprs%]/.test(x);
3520
3520
  _ = _ === void 0 ? 6 : /[gprs]/.test(x) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
3521
- function R($) {
3522
- var H = S, P = M, B, O, w;
3521
+ function R(M) {
3522
+ var H = S, P = $, B, O, w;
3523
3523
  if (x === "c")
3524
- P = k($) + P, $ = "";
3524
+ P = D(M) + P, M = "";
3525
3525
  else {
3526
- $ = +$;
3527
- var L = $ < 0 || 1 / $ < 0;
3528
- if ($ = isNaN($) ? l : k(Math.abs($), _), E && ($ = vT($)), L && +$ == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 3] : "") + P + (L && f === "(" ? ")" : ""), C) {
3529
- for (B = -1, O = $.length; ++B < O; )
3530
- if (w = $.charCodeAt(B), 48 > w || w > 57) {
3531
- P = (w === 46 ? i + $.slice(B + 1) : $.slice(B)) + P, $ = $.slice(0, B);
3526
+ M = +M;
3527
+ var L = M < 0 || 1 / M < 0;
3528
+ if (M = isNaN(M) ? l : D(Math.abs(M), _), E && (M = vT(M)), L && +M == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 3] : "") + P + (L && f === "(" ? ")" : ""), C) {
3529
+ for (B = -1, O = M.length; ++B < O; )
3530
+ if (w = M.charCodeAt(B), 48 > w || w > 57) {
3531
+ P = (w === 46 ? i + M.slice(B + 1) : M.slice(B)) + P, M = M.slice(0, B);
3532
3532
  break;
3533
3533
  }
3534
3534
  }
3535
3535
  }
3536
- b && !m && ($ = t($, 1 / 0));
3537
- var D = H.length + $.length + P.length, U = D < v ? new Array(v - D + 1).join(h) : "";
3538
- switch (b && m && ($ = t(U + $, U.length ? v - P.length : 1 / 0), U = ""), p) {
3536
+ b && !m && (M = t(M, 1 / 0));
3537
+ var k = H.length + M.length + P.length, U = k < v ? new Array(v - k + 1).join(h) : "";
3538
+ switch (b && m && (M = t(U + M, U.length ? v - P.length : 1 / 0), U = ""), p) {
3539
3539
  case "<":
3540
- $ = H + $ + P + U;
3540
+ M = H + M + P + U;
3541
3541
  break;
3542
3542
  case "=":
3543
- $ = H + U + $ + P;
3543
+ M = H + U + M + P;
3544
3544
  break;
3545
3545
  case "^":
3546
- $ = U.slice(0, D = U.length >> 1) + H + $ + P + U.slice(D);
3546
+ M = U.slice(0, k = U.length >> 1) + H + M + P + U.slice(k);
3547
3547
  break;
3548
3548
  default:
3549
- $ = U + H + $ + P;
3549
+ M = U + H + M + P;
3550
3550
  break;
3551
3551
  }
3552
- return s($);
3552
+ return s(M);
3553
3553
  }
3554
3554
  return R.toString = function() {
3555
3555
  return d + "";
@@ -7017,19 +7017,19 @@ function ba(e, t, n) {
7017
7017
  throw new TypeError(x$);
7018
7018
  t = Fr(t) || 0, ke(n) && (u = !!n.leading, d = "maxWait" in n, s = d ? b$(Fr(n.maxWait) || 0, t) : s, h = "trailing" in n ? !!n.trailing : h);
7019
7019
  function p(S) {
7020
- var M = r, k = i;
7021
- return r = i = void 0, c = S, a = e.apply(k, M), a;
7020
+ var $ = r, D = i;
7021
+ return r = i = void 0, c = S, a = e.apply(D, $), a;
7022
7022
  }
7023
7023
  function f(S) {
7024
7024
  return c = S, o = setTimeout(v, t), u ? p(S) : a;
7025
7025
  }
7026
7026
  function g(S) {
7027
- var M = S - l, k = S - c, C = t - M;
7028
- return d ? _$(C, s - k) : C;
7027
+ var $ = S - l, D = S - c, C = t - $;
7028
+ return d ? _$(C, s - D) : C;
7029
7029
  }
7030
7030
  function m(S) {
7031
- var M = S - l, k = S - c;
7032
- return l === void 0 || M >= t || M < 0 || d && k >= s;
7031
+ var $ = S - l, D = S - c;
7032
+ return l === void 0 || $ >= t || $ < 0 || d && D >= s;
7033
7033
  }
7034
7034
  function v() {
7035
7035
  var S = Io();
@@ -7047,8 +7047,8 @@ function ba(e, t, n) {
7047
7047
  return o === void 0 ? a : b(Io());
7048
7048
  }
7049
7049
  function x() {
7050
- var S = Io(), M = m(S);
7051
- if (r = arguments, i = this, l = S, M) {
7050
+ var S = Io(), $ = m(S);
7051
+ if (r = arguments, i = this, l = S, $) {
7052
7052
  if (o === void 0)
7053
7053
  return f(l);
7054
7054
  if (d)
@@ -7315,7 +7315,7 @@ function yi(e, t, n) {
7315
7315
  function U$(e) {
7316
7316
  var t = e.dateTime, n = e.date, r = e.time, i = e.periods, s = e.days, a = e.shortDays, o = e.months, l = e.shortMonths, c = xi(i), u = bi(i), d = xi(s), h = bi(s), p = xi(a), f = bi(a), g = xi(o), m = bi(o), v = xi(l), b = bi(l), _ = {
7317
7317
  a: L,
7318
- A: D,
7318
+ A: k,
7319
7319
  b: U,
7320
7320
  B: Z,
7321
7321
  c: null,
@@ -7381,7 +7381,7 @@ function U$(e) {
7381
7381
  "%": td
7382
7382
  }, x = {
7383
7383
  a: R,
7384
- A: $,
7384
+ A: M,
7385
7385
  b: H,
7386
7386
  B: P,
7387
7387
  c: B,
@@ -7422,9 +7422,9 @@ function U$(e) {
7422
7422
  return V.push(z.slice(st, ut)), V.join("");
7423
7423
  };
7424
7424
  }
7425
- function M(z, W) {
7425
+ function $(z, W) {
7426
7426
  return function(X) {
7427
- var V = yi(1900, void 0, 1), ut = k(V, z, X += "", 0), st, kt;
7427
+ var V = yi(1900, void 0, 1), ut = D(V, z, X += "", 0), st, kt;
7428
7428
  if (ut != X.length) return null;
7429
7429
  if ("Q" in V) return new Date(V.Q);
7430
7430
  if ("s" in V) return new Date(V.s * 1e3 + ("L" in V ? V.L : 0));
@@ -7435,7 +7435,7 @@ function U$(e) {
7435
7435
  return "Z" in V ? (V.H += V.Z / 100 | 0, V.M += V.Z % 100, Ho(V)) : Bo(V);
7436
7436
  };
7437
7437
  }
7438
- function k(z, W, X, V) {
7438
+ function D(z, W, X, V) {
7439
7439
  for (var ut = 0, st = W.length, kt = X.length, Nt, nt; ut < st; ) {
7440
7440
  if (V >= kt) return -1;
7441
7441
  if (Nt = W.charCodeAt(ut++), Nt === 37) {
@@ -7453,7 +7453,7 @@ function U$(e) {
7453
7453
  var V = p.exec(W.slice(X));
7454
7454
  return V ? (z.w = f.get(V[0].toLowerCase()), X + V[0].length) : -1;
7455
7455
  }
7456
- function $(z, W, X) {
7456
+ function M(z, W, X) {
7457
7457
  var V = d.exec(W.slice(X));
7458
7458
  return V ? (z.w = h.get(V[0].toLowerCase()), X + V[0].length) : -1;
7459
7459
  }
@@ -7466,18 +7466,18 @@ function U$(e) {
7466
7466
  return V ? (z.m = m.get(V[0].toLowerCase()), X + V[0].length) : -1;
7467
7467
  }
7468
7468
  function B(z, W, X) {
7469
- return k(z, t, W, X);
7469
+ return D(z, t, W, X);
7470
7470
  }
7471
7471
  function O(z, W, X) {
7472
- return k(z, n, W, X);
7472
+ return D(z, n, W, X);
7473
7473
  }
7474
7474
  function w(z, W, X) {
7475
- return k(z, r, W, X);
7475
+ return D(z, r, W, X);
7476
7476
  }
7477
7477
  function L(z) {
7478
7478
  return a[z.getDay()];
7479
7479
  }
7480
- function D(z) {
7480
+ function k(z) {
7481
7481
  return s[z.getDay()];
7482
7482
  }
7483
7483
  function U(z) {
@@ -7518,7 +7518,7 @@ function U$(e) {
7518
7518
  }, W;
7519
7519
  },
7520
7520
  parse: function(z) {
7521
- var W = M(z += "", !1);
7521
+ var W = $(z += "", !1);
7522
7522
  return W.toString = function() {
7523
7523
  return z;
7524
7524
  }, W;
@@ -7530,7 +7530,7 @@ function U$(e) {
7530
7530
  }, W;
7531
7531
  },
7532
7532
  utcParse: function(z) {
7533
- var W = M(z += "", !0);
7533
+ var W = $(z += "", !0);
7534
7534
  return W.toString = function() {
7535
7535
  return z;
7536
7536
  }, W;
@@ -7797,13 +7797,13 @@ function tg(e, t, n, r, i, s, a, o, l, c) {
7797
7797
  }, u.domain = function(S) {
7798
7798
  return arguments.length ? h(Array.from(S, HM)) : h().map(BM);
7799
7799
  }, u.ticks = function(S) {
7800
- var M = h();
7801
- return e(M[0], M[M.length - 1], S ?? 10);
7802
- }, u.tickFormat = function(S, M) {
7803
- return M == null ? x : c(M);
7800
+ var $ = h();
7801
+ return e($[0], $[$.length - 1], S ?? 10);
7802
+ }, u.tickFormat = function(S, $) {
7803
+ return $ == null ? x : c($);
7804
7804
  }, u.nice = function(S) {
7805
- var M = h();
7806
- return (!S || typeof S.range != "function") && (S = t(M[0], M[M.length - 1], S ?? 10)), S ? h(qm(M, S)) : u;
7805
+ var $ = h();
7806
+ return (!S || typeof S.range != "function") && (S = t($[0], $[$.length - 1], S ?? 10)), S ? h(qm($, S)) : u;
7807
7807
  }, u.copy = function() {
7808
7808
  return Hc(u, tg(e, t, n, r, i, s, a, o, l, c));
7809
7809
  }, u;
@@ -8441,7 +8441,8 @@ let N = class Rl extends kn {
8441
8441
  return `chart-${this.chartID}-${t}`;
8442
8442
  }
8443
8443
  initializeID() {
8444
- this.chartID = Math.floor((1 + Math.random()) * 281474976710656).toString(16);
8444
+ const t = this.model.getOptions().chartId;
8445
+ t ? this.chartID = t : this.chartID = Math.floor((1 + Math.random()) * 281474976710656).toString(16);
8445
8446
  }
8446
8447
  addMainContainer() {
8447
8448
  const t = this.model.getOptions(), n = y(t, "style", "prefix"), r = I(this.getHolder()).append("div").classed(`${ue}--${n}--chart-wrapper`, !0).attr("id", `chart-${this.getChartID()}`).style("height", "100%").style("width", "100%");
@@ -8957,15 +8958,15 @@ function GC() {
8957
8958
  function co(e, t) {
8958
8959
  var n = [], r = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === Qs || e === Ai ? -1 : 1, u = e === Ai || e === Js ? "x" : "y", d = e === Qs || e === Nl ? UC : BC;
8959
8960
  function h(p) {
8960
- var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : PC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? VC : HC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), M = x.selectAll(".tick").data(f, t).order(), k = M.exit(), C = M.enter().append("g").attr("class", "tick"), R = M.select("line"), $ = M.select("text");
8961
- S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), M = M.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), $ = $.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Qs ? "0em" : e === Nl ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), M = M.transition(p), R = R.transition(p), $ = $.transition(p), k = k.transition(p).attr("opacity", vd).attr("transform", function(H) {
8961
+ var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : PC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? VC : HC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), $ = x.selectAll(".tick").data(f, t).order(), D = $.exit(), C = $.enter().append("g").attr("class", "tick"), R = $.select("line"), M = $.select("text");
8962
+ S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), $ = $.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), M = M.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Qs ? "0em" : e === Nl ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), $ = $.transition(p), R = R.transition(p), M = M.transition(p), D = D.transition(p).attr("opacity", vd).attr("transform", function(H) {
8962
8963
  return isFinite(H = E(H)) ? d(H + l) : this.getAttribute("transform");
8963
8964
  }), C.attr("opacity", vd).attr("transform", function(H) {
8964
8965
  var P = this.parentNode.__axis;
8965
8966
  return d((P && isFinite(P = P(H)) ? P : E(H)) + l);
8966
- })), k.remove(), S.attr("d", e === Ai || e === Js ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), M.attr("opacity", 1).attr("transform", function(H) {
8967
+ })), D.remove(), S.attr("d", e === Ai || e === Js ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), $.attr("opacity", 1).attr("transform", function(H) {
8967
8968
  return d(E(H) + l);
8968
- }), R.attr(u + "2", c * s), $.attr(u, c * m).text(g), x.filter(GC).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === Js ? "start" : e === Ai ? "end" : "middle"), x.each(function() {
8969
+ }), R.attr(u + "2", c * s), M.attr(u, c * m).text(g), x.filter(GC).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === Js ? "start" : e === Ai ? "end" : "middle"), x.each(function() {
8969
8970
  this.__axis = E;
8970
8971
  });
8971
8972
  }
@@ -9155,14 +9156,14 @@ function rA(e) {
9155
9156
  }).on("interrupt.brush end.brush", function(_) {
9156
9157
  u(this, arguments).end(_);
9157
9158
  }).tween("brush", function() {
9158
- var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, M = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), k = gs(S, M);
9159
+ var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, $ = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), D = gs(S, $);
9159
9160
  function C(R) {
9160
- E.selection = R === 1 && M === null ? null : k(R), c.call(_), x.brush();
9161
+ E.selection = R === 1 && $ === null ? null : D(R), c.call(_), x.brush();
9161
9162
  }
9162
- return S !== null && M !== null ? C : C(1);
9163
+ return S !== null && $ !== null ? C : C(1);
9163
9164
  }) : m.each(function() {
9164
- var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), M = u(_, E).beforestart();
9165
- Ml(_), x.selection = S === null ? null : S, c.call(_), M.start(b).brush(b).end(b);
9165
+ var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), $ = u(_, E).beforestart();
9166
+ Ml(_), x.selection = S === null ? null : S, c.call(_), $.start(b).brush(b).end(b);
9166
9167
  });
9167
9168
  }, l.clear = function(m, v) {
9168
9169
  l.move(m, null, v);
@@ -9217,25 +9218,25 @@ function rA(e) {
9217
9218
  };
9218
9219
  function h(m) {
9219
9220
  if (o && !m.touches || !n.apply(this, arguments)) return;
9220
- var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : KC[b], x = e === ta ? null : QC[b], S = qo(v), M = S.extent, k = S.selection, C = M[0][0], R, $, H = M[0][1], P, B, O = M[1][0], w, L, D = M[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
9221
+ var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : KC[b], x = e === ta ? null : QC[b], S = qo(v), $ = S.extent, D = S.selection, C = $[0][0], R, M, H = $[0][1], P, B, O = $[1][0], w, L, k = $[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
9221
9222
  const yt = nt.identifier;
9222
9223
  return nt = rr(nt, v), nt.point0 = nt.slice(), nt.identifier = yt, nt;
9223
9224
  });
9224
9225
  Ml(v);
9225
9226
  var lt = u(v, arguments, !0).beforestart();
9226
9227
  if (b === "overlay") {
9227
- k && (Y = !0);
9228
+ D && (Y = !0);
9228
9229
  const nt = [tt[0], tt[1] || tt[0]];
9229
- S.selection = k = [[
9230
+ S.selection = D = [[
9230
9231
  R = e === Wo ? C : ee(nt[0][0], nt[1][0]),
9231
9232
  P = e === ta ? H : ee(nt[0][1], nt[1][1])
9232
9233
  ], [
9233
9234
  w = e === Wo ? O : te(nt[0][0], nt[1][0]),
9234
- U = e === ta ? D : te(nt[0][1], nt[1][1])
9235
+ U = e === ta ? k : te(nt[0][1], nt[1][1])
9235
9236
  ]], tt.length > 1 && ut(m);
9236
9237
  } else
9237
- R = k[0][0], P = k[0][1], w = k[1][0], U = k[1][1];
9238
- $ = R, B = P, L = w, Z = U;
9238
+ R = D[0][0], P = D[0][1], w = D[1][0], U = D[1][1];
9239
+ M = R, B = P, L = w, Z = U;
9239
9240
  var z = I(v).attr("pointer-events", "none"), W = z.selectAll(".overlay").attr("cursor", hn[b]);
9240
9241
  if (m.touches)
9241
9242
  lt.moved = V, lt.ended = st;
@@ -9262,19 +9263,19 @@ function rA(e) {
9262
9263
  switch (j = yt[0] - Se[0], F = yt[1] - Se[1], _) {
9263
9264
  case jo:
9264
9265
  case yd: {
9265
- E && (j = te(C - R, ee(O - w, j)), $ = R + j, L = w + j), x && (F = te(H - P, ee(D - U, F)), B = P + F, Z = U + F);
9266
+ E && (j = te(C - R, ee(O - w, j)), M = R + j, L = w + j), x && (F = te(H - P, ee(k - U, F)), B = P + F, Z = U + F);
9266
9267
  break;
9267
9268
  }
9268
9269
  case wr: {
9269
- tt[1] ? (E && ($ = te(C, ee(O, tt[0][0])), L = te(C, ee(O, tt[1][0])), E = 1), x && (B = te(H, ee(D, tt[0][1])), Z = te(H, ee(D, tt[1][1])), x = 1)) : (E < 0 ? (j = te(C - R, ee(O - R, j)), $ = R + j, L = w) : E > 0 && (j = te(C - w, ee(O - w, j)), $ = R, L = w + j), x < 0 ? (F = te(H - P, ee(D - P, F)), B = P + F, Z = U) : x > 0 && (F = te(H - U, ee(D - U, F)), B = P, Z = U + F));
9270
+ tt[1] ? (E && (M = te(C, ee(O, tt[0][0])), L = te(C, ee(O, tt[1][0])), E = 1), x && (B = te(H, ee(k, tt[0][1])), Z = te(H, ee(k, tt[1][1])), x = 1)) : (E < 0 ? (j = te(C - R, ee(O - R, j)), M = R + j, L = w) : E > 0 && (j = te(C - w, ee(O - w, j)), M = R, L = w + j), x < 0 ? (F = te(H - P, ee(k - P, F)), B = P + F, Z = U) : x > 0 && (F = te(H - U, ee(k - U, F)), B = P, Z = U + F));
9270
9271
  break;
9271
9272
  }
9272
9273
  case $r: {
9273
- E && ($ = te(C, ee(O, R - j * E)), L = te(C, ee(O, w + j * E))), x && (B = te(H, ee(D, P - F * x)), Z = te(H, ee(D, U + F * x)));
9274
+ E && (M = te(C, ee(O, R - j * E)), L = te(C, ee(O, w + j * E))), x && (B = te(H, ee(k, P - F * x)), Z = te(H, ee(k, U + F * x)));
9274
9275
  break;
9275
9276
  }
9276
9277
  }
9277
- L < $ && (E *= -1, ge = R, R = w, w = ge, ge = $, $ = L, L = ge, b in Ed && W.attr("cursor", hn[b = Ed[b]])), Z < B && (x *= -1, ge = P, P = U, U = ge, ge = B, B = Z, Z = ge, b in Od && W.attr("cursor", hn[b = Od[b]])), S.selection && (k = S.selection), Q && ($ = k[0][0], L = k[1][0]), q && (B = k[0][1], Z = k[1][1]), (k[0][0] !== $ || k[0][1] !== B || k[1][0] !== L || k[1][1] !== Z) && (S.selection = [[$, B], [L, Z]], c.call(v), lt.brush(nt, _.name));
9278
+ L < M && (E *= -1, ge = R, R = w, w = ge, ge = M, M = L, L = ge, b in Ed && W.attr("cursor", hn[b = Ed[b]])), Z < B && (x *= -1, ge = P, P = U, U = ge, ge = B, B = Z, Z = ge, b in Od && W.attr("cursor", hn[b = Od[b]])), S.selection && (D = S.selection), Q && (M = D[0][0], L = D[1][0]), q && (B = D[0][1], Z = D[1][1]), (D[0][0] !== M || D[0][1] !== B || D[1][0] !== L || D[1][1] !== Z) && (S.selection = [[M, B], [L, Z]], c.call(v), lt.brush(nt, _.name));
9278
9279
  }
9279
9280
  function st(nt) {
9280
9281
  if (ZC(nt), nt.touches) {
@@ -9284,7 +9285,7 @@ function rA(e) {
9284
9285
  }, 500);
9285
9286
  } else
9286
9287
  WC(nt.view, Y), X.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
9287
- z.attr("pointer-events", "all"), W.attr("cursor", hn.overlay), S.selection && (k = S.selection), nA(k) && (S.selection = null, c.call(v)), lt.end(nt, _.name);
9288
+ z.attr("pointer-events", "all"), W.attr("cursor", hn.overlay), S.selection && (D = S.selection), nA(D) && (S.selection = null, c.call(v)), lt.end(nt, _.name);
9288
9289
  }
9289
9290
  function kt(nt) {
9290
9291
  switch (nt.keyCode) {
@@ -9293,11 +9294,11 @@ function rA(e) {
9293
9294
  break;
9294
9295
  }
9295
9296
  case 18: {
9296
- _ === wr && (E && (w = L - j * E, R = $ + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r, ut(nt));
9297
+ _ === wr && (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r, ut(nt));
9297
9298
  break;
9298
9299
  }
9299
9300
  case 32: {
9300
- (_ === wr || _ === $r) && (E < 0 ? w = L - j : E > 0 && (R = $ - j), x < 0 ? U = Z - F : x > 0 && (P = B - F), _ = jo, W.attr("cursor", hn.selection), ut(nt));
9301
+ (_ === wr || _ === $r) && (E < 0 ? w = L - j : E > 0 && (R = M - j), x < 0 ? U = Z - F : x > 0 && (P = B - F), _ = jo, W.attr("cursor", hn.selection), ut(nt));
9301
9302
  break;
9302
9303
  }
9303
9304
  default:
@@ -9312,11 +9313,11 @@ function rA(e) {
9312
9313
  break;
9313
9314
  }
9314
9315
  case 18: {
9315
- _ === $r && (E < 0 ? w = L : E > 0 && (R = $), x < 0 ? U = Z : x > 0 && (P = B), _ = wr, ut(nt));
9316
+ _ === $r && (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = wr, ut(nt));
9316
9317
  break;
9317
9318
  }
9318
9319
  case 32: {
9319
- _ === jo && (nt.altKey ? (E && (w = L - j * E, R = $ + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r) : (E < 0 ? w = L : E > 0 && (R = $), x < 0 ? U = Z : x > 0 && (P = B), _ = wr), W.attr("cursor", hn[b]), ut(nt));
9320
+ _ === jo && (nt.altKey ? (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r) : (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = wr), W.attr("cursor", hn[b]), ut(nt));
9320
9321
  break;
9321
9322
  }
9322
9323
  default:
@@ -9642,15 +9643,15 @@ function dA(e, t) {
9642
9643
  i === 1 ? r = de + Ot : i === -1 && (r = -de - Ot);
9643
9644
  for (var c = 0, u = e.length; c < u; ++c)
9644
9645
  if (h = (d = e[c]).length)
9645
- for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = M, p = _) {
9646
- var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), M = Tt(x), k = E - f, C = k >= 0 ? 1 : -1, R = C * k, $ = R > ft, H = m * S;
9647
- if (l.add(lr(H * C * xt(R), v * M + H * Tt(R))), a += $ ? k + C * Ee : k, $ ^ f >= n ^ E >= n) {
9646
+ for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = $, p = _) {
9647
+ var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), $ = Tt(x), D = E - f, C = D >= 0 ? 1 : -1, R = C * D, M = R > ft, H = m * S;
9648
+ if (l.add(lr(H * C * xt(R), v * $ + H * Tt(R))), a += M ? D + C * Ee : D, M ^ f >= n ^ E >= n) {
9648
9649
  var P = Ma(ni(p), ni(_));
9649
9650
  Fl(P);
9650
9651
  var B = Ma(s, P);
9651
9652
  Fl(B);
9652
- var O = ($ ^ k >= 0 ? -1 : 1) * Cn(B[2]);
9653
- (r > O || r === O && (P[0] || P[1])) && (o += $ ^ k >= 0 ? 1 : -1);
9653
+ var O = (M ^ D >= 0 ? -1 : 1) * Cn(B[2]);
9654
+ (r > O || r === O && (P[0] || P[1])) && (o += M ^ D >= 0 ? 1 : -1);
9654
9655
  }
9655
9656
  }
9656
9657
  return (a < -Ot || a < Ot && l < -Ig) ^ o & 1;
@@ -9693,16 +9694,16 @@ function Hg(e, t, n, r) {
9693
9694
  }
9694
9695
  function _() {
9695
9696
  v(d[0][0], d[0][1]), o.lineEnd();
9696
- var E = o.clean(), x = a.result(), S, M = x.length, k, C, R;
9697
- if (d.pop(), c.push(d), d = null, !!M) {
9697
+ var E = o.clean(), x = a.result(), S, $ = x.length, D, C, R;
9698
+ if (d.pop(), c.push(d), d = null, !!$) {
9698
9699
  if (E & 1) {
9699
- if (C = x[0], (k = C.length - 1) > 0) {
9700
- for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < k; ++S) i.point((R = C[S])[0], R[1]);
9700
+ if (C = x[0], (D = C.length - 1) > 0) {
9701
+ for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = C[S])[0], R[1]);
9701
9702
  i.lineEnd();
9702
9703
  }
9703
9704
  return;
9704
9705
  }
9705
- M > 1 && E & 2 && x.push(x.pop().concat(x.shift())), u.push(x.filter(pA));
9706
+ $ > 1 && E & 2 && x.push(x.pop().concat(x.shift())), u.push(x.filter(pA));
9706
9707
  }
9707
9708
  }
9708
9709
  return h;
@@ -9791,18 +9792,18 @@ function yA(e) {
9791
9792
  function l(u, d, h) {
9792
9793
  var p = ni(u), f = ni(d), g = [1, 0, 0], m = Ma(p, f), v = ks(m, m), b = m[0], _ = v - b * b;
9793
9794
  if (!_) return !h && u;
9794
- var E = t * v / _, x = -t * b / _, S = Ma(g, m), M = Rs(g, E), k = Rs(m, x);
9795
- Yo(M, k);
9796
- var C = S, R = ks(M, C), $ = ks(C, C), H = R * R - $ * (ks(M, M) - 1);
9795
+ var E = t * v / _, x = -t * b / _, S = Ma(g, m), $ = Rs(g, E), D = Rs(m, x);
9796
+ Yo($, D);
9797
+ var C = S, R = ks($, C), M = ks(C, C), H = R * R - M * (ks($, $) - 1);
9797
9798
  if (!(H < 0)) {
9798
- var P = je(H), B = Rs(C, (-R - P) / $);
9799
- if (Yo(B, M), B = zl(B), !h) return B;
9800
- var O = u[0], w = d[0], L = u[1], D = d[1], U;
9799
+ var P = je(H), B = Rs(C, (-R - P) / M);
9800
+ if (Yo(B, $), B = zl(B), !h) return B;
9801
+ var O = u[0], w = d[0], L = u[1], k = d[1], U;
9801
9802
  w < O && (U = O, O = w, w = U);
9802
9803
  var Z = w - O, j = St(Z - ft) < Ot, F = j || Z < Ot;
9803
- if (!j && D < L && (U = L, L = D, D = U), F ? j ? L + D > 0 ^ B[1] < (St(B[0] - O) < Ot ? L : D) : L <= B[1] && B[1] <= D : Z > ft ^ (O <= B[0] && B[0] <= w)) {
9804
- var Y = Rs(C, (-R + P) / $);
9805
- return Yo(Y, M), [B, zl(Y)];
9804
+ if (!j && k < L && (U = L, L = k, k = U), F ? j ? L + k > 0 ^ B[1] < (St(B[0] - O) < Ot ? L : k) : L <= B[1] && B[1] <= k : Z > ft ^ (O <= B[0] && B[0] <= w)) {
9805
+ var Y = Rs(C, (-R + P) / M);
9806
+ return Yo(Y, $), [B, zl(Y)];
9806
9807
  }
9807
9808
  }
9808
9809
  }
@@ -9877,34 +9878,34 @@ function bA(e, t, n, r) {
9877
9878
  return d !== h ? d - h : d === 0 ? u[1] - c[1] : d === 1 ? c[0] - u[0] : d === 2 ? c[1] - u[1] : u[0] - c[0];
9878
9879
  }
9879
9880
  return function(c) {
9880
- var u = c, d = Ug(), h, p, f, g, m, v, b, _, E, x, S, M = {
9881
- point: k,
9881
+ var u = c, d = Ug(), h, p, f, g, m, v, b, _, E, x, S, $ = {
9882
+ point: D,
9882
9883
  lineStart: H,
9883
9884
  lineEnd: P,
9884
9885
  polygonStart: R,
9885
- polygonEnd: $
9886
+ polygonEnd: M
9886
9887
  };
9887
- function k(O, w) {
9888
+ function D(O, w) {
9888
9889
  i(O, w) && u.point(O, w);
9889
9890
  }
9890
9891
  function C() {
9891
9892
  for (var O = 0, w = 0, L = p.length; w < L; ++w)
9892
- for (var D = p[w], U = 1, Z = D.length, j = D[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
9893
- F = ot, Y = Q, j = D[U], ot = j[0], Q = j[1], Y <= r ? Q > r && (ot - F) * (r - Y) > (Q - Y) * (e - F) && ++O : Q <= r && (ot - F) * (r - Y) < (Q - Y) * (e - F) && --O;
9893
+ for (var k = p[w], U = 1, Z = k.length, j = k[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
9894
+ F = ot, Y = Q, j = k[U], ot = j[0], Q = j[1], Y <= r ? Q > r && (ot - F) * (r - Y) > (Q - Y) * (e - F) && ++O : Q <= r && (ot - F) * (r - Y) < (Q - Y) * (e - F) && --O;
9894
9895
  return O;
9895
9896
  }
9896
9897
  function R() {
9897
9898
  u = d, h = [], p = [], S = !0;
9898
9899
  }
9899
- function $() {
9900
+ function M() {
9900
9901
  var O = C(), w = S && O, L = (h = Ag(h)).length;
9901
9902
  (w || L) && (c.polygonStart(), w && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), L && Bg(h, o, O, s, c), c.polygonEnd()), u = c, h = p = f = null;
9902
9903
  }
9903
9904
  function H() {
9904
- M.point = B, p && p.push(f = []), x = !0, E = !1, b = _ = NaN;
9905
+ $.point = B, p && p.push(f = []), x = !0, E = !1, b = _ = NaN;
9905
9906
  }
9906
9907
  function P() {
9907
- h && (B(g, m), v && E && d.rejoin(), h.push(d.result())), M.point = k, E && u.lineEnd();
9908
+ h && (B(g, m), v && E && d.rejoin(), h.push(d.result())), $.point = D, E && u.lineEnd();
9908
9909
  }
9909
9910
  function B(O, w) {
9910
9911
  var L = i(O, w);
@@ -9912,12 +9913,12 @@ function bA(e, t, n, r) {
9912
9913
  g = O, m = w, v = L, x = !1, L && (u.lineStart(), u.point(O, w));
9913
9914
  else if (L && E) u.point(O, w);
9914
9915
  else {
9915
- var D = [b = Math.max(Ns, Math.min(Li, b)), _ = Math.max(Ns, Math.min(Li, _))], U = [O = Math.max(Ns, Math.min(Li, O)), w = Math.max(Ns, Math.min(Li, w))];
9916
- xA(D, U, e, t, n, r) ? (E || (u.lineStart(), u.point(D[0], D[1])), u.point(U[0], U[1]), L || u.lineEnd(), S = !1) : L && (u.lineStart(), u.point(O, w), S = !1);
9916
+ var k = [b = Math.max(Ns, Math.min(Li, b)), _ = Math.max(Ns, Math.min(Li, _))], U = [O = Math.max(Ns, Math.min(Li, O)), w = Math.max(Ns, Math.min(Li, w))];
9917
+ xA(k, U, e, t, n, r) ? (E || (u.lineStart(), u.point(k[0], k[1])), u.point(U[0], U[1]), L || u.lineEnd(), S = !1) : L && (u.lineStart(), u.point(O, w), S = !1);
9917
9918
  }
9918
9919
  b = O, _ = w, E = L;
9919
9920
  }
9920
- return M;
9921
+ return $;
9921
9922
  };
9922
9923
  }
9923
9924
  const ql = (e) => e;
@@ -10235,8 +10236,8 @@ function UA(e, t) {
10235
10236
  function n(r, i, s, a, o, l, c, u, d, h, p, f, g, m) {
10236
10237
  var v = c - r, b = u - i, _ = v * v + b * b;
10237
10238
  if (_ > 4 * t && g--) {
10238
- var E = a + h, x = o + p, S = l + f, M = je(E * E + x * x + S * S), k = Cn(S /= M), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : lr(x, E), R = e(C, k), $ = R[0], H = R[1], P = $ - r, B = H - i, O = b * P - v * B;
10239
- (O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < NA) && (n(r, i, s, a, o, l, $, H, C, E /= M, x /= M, S, g, m), m.point($, H), n($, H, C, E, x, S, c, u, d, h, p, f, g, m));
10239
+ var E = a + h, x = o + p, S = l + f, $ = je(E * E + x * x + S * S), D = Cn(S /= $), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : lr(x, E), R = e(C, D), M = R[0], H = R[1], P = M - r, B = H - i, O = b * P - v * B;
10240
+ (O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < NA) && (n(r, i, s, a, o, l, M, H, C, E /= $, x /= $, S, g, m), m.point(M, H), n(M, H, C, E, x, S, c, u, d, h, p, f, g, m));
10240
10241
  }
10241
10242
  }
10242
10243
  return function(r) {
@@ -10251,26 +10252,26 @@ function UA(e, t) {
10251
10252
  r.polygonEnd(), m.lineStart = b;
10252
10253
  }
10253
10254
  };
10254
- function v(k, C) {
10255
- k = e(k, C), r.point(k[0], k[1]);
10255
+ function v(D, C) {
10256
+ D = e(D, C), r.point(D[0], D[1]);
10256
10257
  }
10257
10258
  function b() {
10258
10259
  d = NaN, m.point = _, r.lineStart();
10259
10260
  }
10260
- function _(k, C) {
10261
- var R = ni([k, C]), $ = e(k, C);
10262
- n(d, h, u, p, f, g, d = $[0], h = $[1], u = k, p = R[0], f = R[1], g = R[2], Hd, r), r.point(d, h);
10261
+ function _(D, C) {
10262
+ var R = ni([D, C]), M = e(D, C);
10263
+ n(d, h, u, p, f, g, d = M[0], h = M[1], u = D, p = R[0], f = R[1], g = R[2], Hd, r), r.point(d, h);
10263
10264
  }
10264
10265
  function E() {
10265
10266
  m.point = v, r.lineEnd();
10266
10267
  }
10267
10268
  function x() {
10268
- b(), m.point = S, m.lineEnd = M;
10269
+ b(), m.point = S, m.lineEnd = $;
10269
10270
  }
10270
- function S(k, C) {
10271
- _(i = k, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
10271
+ function S(D, C) {
10272
+ _(i = D, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
10272
10273
  }
10273
- function M() {
10274
+ function $() {
10274
10275
  n(d, h, u, p, f, g, s, a, i, o, l, c, Hd, r), m.lineEnd = E, E();
10275
10276
  }
10276
10277
  return m;
@@ -10313,57 +10314,57 @@ function uo(e) {
10313
10314
  })();
10314
10315
  }
10315
10316
  function Jg(e) {
10316
- var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, g = kd, m = null, v, b, _, E = ql, x = 0.5, S, M, k, C, R;
10317
- function $(O) {
10318
- return k(O[0] * Bt, O[1] * Bt);
10317
+ var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, g = kd, m = null, v, b, _, E = ql, x = 0.5, S, $, D, C, R;
10318
+ function M(O) {
10319
+ return D(O[0] * Bt, O[1] * Bt);
10319
10320
  }
10320
10321
  function H(O) {
10321
- return O = k.invert(O[0], O[1]), O && [O[0] * se, O[1] * se];
10322
+ return O = D.invert(O[0], O[1]), O && [O[0] * se, O[1] * se];
10322
10323
  }
10323
- $.stream = function(O) {
10324
+ M.stream = function(O) {
10324
10325
  return C && R === O ? C : C = BA(HA(u)(g(S(E(R = O)))));
10325
- }, $.preclip = function(O) {
10326
+ }, M.preclip = function(O) {
10326
10327
  return arguments.length ? (g = O, f = void 0, B()) : g;
10327
- }, $.postclip = function(O) {
10328
+ }, M.postclip = function(O) {
10328
10329
  return arguments.length ? (E = O, m = v = b = _ = null, B()) : E;
10329
- }, $.clipAngle = function(O) {
10330
+ }, M.clipAngle = function(O) {
10330
10331
  return arguments.length ? (g = +O ? yA(f = O * Bt) : (f = null, kd), B()) : f * se;
10331
- }, $.clipExtent = function(O) {
10332
+ }, M.clipExtent = function(O) {
10332
10333
  return arguments.length ? (E = O == null ? (m = v = b = _ = null, ql) : bA(m = +O[0][0], v = +O[0][1], b = +O[1][0], _ = +O[1][1]), B()) : m == null ? null : [[m, v], [b, _]];
10333
- }, $.scale = function(O) {
10334
+ }, M.scale = function(O) {
10334
10335
  return arguments.length ? (n = +O, P()) : n;
10335
- }, $.translate = function(O) {
10336
+ }, M.translate = function(O) {
10336
10337
  return arguments.length ? (r = +O[0], i = +O[1], P()) : [r, i];
10337
- }, $.center = function(O) {
10338
+ }, M.center = function(O) {
10338
10339
  return arguments.length ? (s = O[0] % 360 * Bt, a = O[1] % 360 * Bt, P()) : [s * se, a * se];
10339
- }, $.rotate = function(O) {
10340
+ }, M.rotate = function(O) {
10340
10341
  return arguments.length ? (o = O[0] % 360 * Bt, l = O[1] % 360 * Bt, c = O.length > 2 ? O[2] % 360 * Bt : 0, P()) : [o * se, l * se, c * se];
10341
- }, $.angle = function(O) {
10342
+ }, M.angle = function(O) {
10342
10343
  return arguments.length ? (d = O % 360 * Bt, P()) : d * se;
10343
- }, $.reflectX = function(O) {
10344
+ }, M.reflectX = function(O) {
10344
10345
  return arguments.length ? (h = O ? -1 : 1, P()) : h < 0;
10345
- }, $.reflectY = function(O) {
10346
+ }, M.reflectY = function(O) {
10346
10347
  return arguments.length ? (p = O ? -1 : 1, P()) : p < 0;
10347
- }, $.precision = function(O) {
10348
- return arguments.length ? (S = Vd(M, x = O * O), B()) : je(x);
10349
- }, $.fitExtent = function(O, w) {
10350
- return Qg($, O, w);
10351
- }, $.fitSize = function(O, w) {
10352
- return kA($, O, w);
10353
- }, $.fitWidth = function(O, w) {
10354
- return RA($, O, w);
10355
- }, $.fitHeight = function(O, w) {
10356
- return IA($, O, w);
10348
+ }, M.precision = function(O) {
10349
+ return arguments.length ? (S = Vd($, x = O * O), B()) : je(x);
10350
+ }, M.fitExtent = function(O, w) {
10351
+ return Qg(M, O, w);
10352
+ }, M.fitSize = function(O, w) {
10353
+ return kA(M, O, w);
10354
+ }, M.fitWidth = function(O, w) {
10355
+ return RA(M, O, w);
10356
+ }, M.fitHeight = function(O, w) {
10357
+ return IA(M, O, w);
10357
10358
  };
10358
10359
  function P() {
10359
10360
  var O = Gd(n, 0, 0, h, p, d).apply(null, t(s, a)), w = Gd(n, r - O[0], i - O[1], h, p, d);
10360
- return u = Pg(o, l, c), M = jl(t, w), k = jl(u, M), S = Vd(M, x), B();
10361
+ return u = Pg(o, l, c), $ = jl(t, w), D = jl(u, $), S = Vd($, x), B();
10361
10362
  }
10362
10363
  function B() {
10363
- return C = R = null, $;
10364
+ return C = R = null, M;
10364
10365
  }
10365
10366
  return function() {
10366
- return t = e.apply(this, arguments), $.invert = t.invert && H, P();
10367
+ return t = e.apply(this, arguments), M.invert = t.invert && H, P();
10367
10368
  };
10368
10369
  }
10369
10370
  function tv(e) {
@@ -10757,10 +10758,10 @@ function Ni(e, t) {
10757
10758
  };
10758
10759
  }
10759
10760
  function av(e, t, n) {
10760
- var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, g = i - u, m = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * g, S = (f * E - g * _) / (x * 2) - r, M = (g * m - f * v) / x, k = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * m) / x, R = M * M + C * C - 1, $ = 2 * (s + S * M + k * C), H = S * S + k * k - s * s, P = -(Math.abs(R) > 1e-6 ? ($ + Math.sqrt($ * $ - 4 * R * H)) / (2 * R) : H / $);
10761
+ var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, g = i - u, m = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * g, S = (f * E - g * _) / (x * 2) - r, $ = (g * m - f * v) / x, D = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * m) / x, R = $ * $ + C * C - 1, M = 2 * (s + S * $ + D * C), H = S * S + D * D - s * s, P = -(Math.abs(R) > 1e-6 ? (M + Math.sqrt(M * M - 4 * R * H)) / (2 * R) : H / M);
10761
10762
  return {
10762
- x: r + S + M * P,
10763
- y: i + k + C * P,
10763
+ x: r + S + $ * P,
10764
+ y: i + D + C * P,
10764
10765
  r: P
10765
10766
  };
10766
10767
  }
@@ -11032,13 +11033,13 @@ function iD(e, t, n, r, i, s, a, o) {
11032
11033
  return h = (u * (t - s) - d * (e - i)) / h, [e + h * l, t + h * c];
11033
11034
  }
11034
11035
  function Bs(e, t, n, r, i, s, a) {
11035
- var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, M = (_ < 0 ? -1 : 1) * Hr(VM(0, x * x * E - S * S)), k = (S * _ - b * M) / E, C = (-S * b - _ * M) / E, R = (S * _ + b * M) / E, $ = (-S * b + _ * M) / E, H = k - m, P = C - v, B = R - m, O = $ - v;
11036
- return H * H + P * P > B * B + O * O && (k = R, C = $), {
11037
- cx: k,
11036
+ var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, $ = (_ < 0 ? -1 : 1) * Hr(VM(0, x * x * E - S * S)), D = (S * _ - b * $) / E, C = (-S * b - _ * $) / E, R = (S * _ + b * $) / E, M = (-S * b + _ * $) / E, H = D - m, P = C - v, B = R - m, O = M - v;
11037
+ return H * H + P * P > B * B + O * O && (D = R, C = M), {
11038
+ cx: D,
11038
11039
  cy: C,
11039
11040
  x01: -u,
11040
11041
  y01: -d,
11041
- x11: k * (i / x - 1),
11042
+ x11: D * (i / x - 1),
11042
11043
  y11: C * (i / x - 1)
11043
11044
  };
11044
11045
  }
@@ -11050,22 +11051,22 @@ function ls() {
11050
11051
  else if (m > Ks - ne)
11051
11052
  o.moveTo(p * qn(f), p * Ze(f)), o.arc(0, 0, p, f, g, !v), h > ne && (o.moveTo(h * qn(g), h * Ze(g)), o.arc(0, 0, h, g, f, v));
11052
11053
  else {
11053
- var b = f, _ = g, E = f, x = g, S = m, M = m, k = a.apply(this, arguments) / 2, C = k > ne && (r ? +r.apply(this, arguments) : Hr(h * h + p * p)), R = Vo(rd(p - h) / 2, +n.apply(this, arguments)), $ = R, H = R, P, B;
11054
+ var b = f, _ = g, E = f, x = g, S = m, $ = m, D = a.apply(this, arguments) / 2, C = D > ne && (r ? +r.apply(this, arguments) : Hr(h * h + p * p)), R = Vo(rd(p - h) / 2, +n.apply(this, arguments)), M = R, H = R, P, B;
11054
11055
  if (C > ne) {
11055
- var O = id(C / h * Ze(k)), w = id(C / p * Ze(k));
11056
- (S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), (M -= w * 2) > ne ? (w *= v ? 1 : -1, b += w, _ -= w) : (M = 0, b = _ = (f + g) / 2);
11056
+ var O = id(C / h * Ze(D)), w = id(C / p * Ze(D));
11057
+ (S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), ($ -= w * 2) > ne ? (w *= v ? 1 : -1, b += w, _ -= w) : ($ = 0, b = _ = (f + g) / 2);
11057
11058
  }
11058
- var L = p * qn(b), D = p * Ze(b), U = h * qn(x), Z = h * Ze(x);
11059
+ var L = p * qn(b), k = p * Ze(b), U = h * qn(x), Z = h * Ze(x);
11059
11060
  if (R > ne) {
11060
11061
  var j = p * qn(_), F = p * Ze(_), Y = h * qn(E), ot = h * Ze(E), Q;
11061
11062
  if (m < is)
11062
- if (Q = iD(L, D, Y, ot, j, F, U, Z)) {
11063
- var q = L - Q[0], tt = D - Q[1], lt = j - Q[0], z = F - Q[1], W = 1 / Ze(GM((q * lt + tt * z) / (Hr(q * q + tt * tt) * Hr(lt * lt + z * z))) / 2), X = Hr(Q[0] * Q[0] + Q[1] * Q[1]);
11064
- $ = Vo(R, (h - X) / (W - 1)), H = Vo(R, (p - X) / (W + 1));
11063
+ if (Q = iD(L, k, Y, ot, j, F, U, Z)) {
11064
+ var q = L - Q[0], tt = k - Q[1], lt = j - Q[0], z = F - Q[1], W = 1 / Ze(GM((q * lt + tt * z) / (Hr(q * q + tt * tt) * Hr(lt * lt + z * z))) / 2), X = Hr(Q[0] * Q[0] + Q[1] * Q[1]);
11065
+ M = Vo(R, (h - X) / (W - 1)), H = Vo(R, (p - X) / (W + 1));
11065
11066
  } else
11066
- $ = H = 0;
11067
+ M = H = 0;
11067
11068
  }
11068
- M > ne ? H > ne ? (P = Bs(Y, ot, L, D, p, H, v), B = Bs(j, F, U, Z, p, H, v), o.moveTo(P.cx + P.x01, P.cy + P.y01), H < R ? o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, p, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), !v), o.arc(B.cx, B.cy, H, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : (o.moveTo(L, D), o.arc(0, 0, p, b, _, !v)) : o.moveTo(L, D), !(h > ne) || !(S > ne) ? o.lineTo(U, Z) : $ > ne ? (P = Bs(U, Z, j, F, h, -$, v), B = Bs(L, D, Y, ot, h, -$, v), o.lineTo(P.cx + P.x01, P.cy + P.y01), $ < R ? o.arc(P.cx, P.cy, $, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, $, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, h, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), v), o.arc(B.cx, B.cy, $, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : o.arc(0, 0, h, x, E, v);
11069
+ $ > ne ? H > ne ? (P = Bs(Y, ot, L, k, p, H, v), B = Bs(j, F, U, Z, p, H, v), o.moveTo(P.cx + P.x01, P.cy + P.y01), H < R ? o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, p, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), !v), o.arc(B.cx, B.cy, H, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : (o.moveTo(L, k), o.arc(0, 0, p, b, _, !v)) : o.moveTo(L, k), !(h > ne) || !(S > ne) ? o.lineTo(U, Z) : M > ne ? (P = Bs(U, Z, j, F, h, -M, v), B = Bs(L, k, Y, ot, h, -M, v), o.lineTo(P.cx + P.x01, P.cy + P.y01), M < R ? o.arc(P.cx, P.cy, M, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, M, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, h, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), v), o.arc(B.cx, B.cy, M, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : o.arc(0, 0, h, x, E, v);
11069
11070
  }
11070
11071
  if (o.closePath(), u) return o = null, u + "" || null;
11071
11072
  }
@@ -11546,13 +11547,13 @@ function pv() {
11546
11547
  let E, x = "";
11547
11548
  const {
11548
11549
  implementation: S,
11549
- createNodeIterator: M,
11550
- createDocumentFragment: k,
11550
+ createNodeIterator: $,
11551
+ createDocumentFragment: D,
11551
11552
  getElementsByTagName: C
11552
11553
  } = n, {
11553
11554
  importNode: R
11554
11555
  } = r;
11555
- let $ = rp();
11556
+ let M = rp();
11556
11557
  t.isSupported = typeof cv == "function" && typeof _ == "function" && S && S.createHTMLDocument !== void 0;
11557
11558
  const {
11558
11559
  MUSTACHE_EXPR: H,
@@ -11561,7 +11562,7 @@ function pv() {
11561
11562
  DATA_ATTR: O,
11562
11563
  ARIA_ATTR: w,
11563
11564
  IS_SCRIPT_OR_DATA: L,
11564
- ATTR_WHITESPACE: D,
11565
+ ATTR_WHITESPACE: k,
11565
11566
  CUSTOM_ELEMENT: U
11566
11567
  } = np;
11567
11568
  let {
@@ -11685,7 +11686,7 @@ function pv() {
11685
11686
  const Xt = J.body || J.documentElement;
11686
11687
  return A && K && Xt.insertBefore(n.createTextNode(K), Xt.childNodes[0] || null), br === on ? C.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Xt;
11687
11688
  }, wu = function(A) {
11688
- return M.call(
11689
+ return $.call(
11689
11690
  A.ownerDocument || A,
11690
11691
  A,
11691
11692
  // eslint-disable-next-line no-bitwise
@@ -11704,10 +11705,10 @@ function pv() {
11704
11705
  }
11705
11706
  const Mu = function(A) {
11706
11707
  let J = null;
11707
- if (ln($.beforeSanitizeElements, A, null), Eo(A))
11708
+ if (ln(M.beforeSanitizeElements, A, null), Eo(A))
11708
11709
  return jn(A), !0;
11709
11710
  const K = qt(A.nodeName);
11710
- if (ln($.uponSanitizeElement, A, {
11711
+ if (ln(M.uponSanitizeElement, A, {
11711
11712
  tagName: K,
11712
11713
  allowedTags: j
11713
11714
  }), ut && A.hasChildNodes() && !$u(A.firstElementChild) && ie(/<[/\w!]/g, A.innerHTML) && ie(/<[/\w!]/g, A.textContent) || A.nodeType === Ti.progressingInstruction || ut && A.nodeType === Ti.comment && ie(/<[/\w]/g, A.data))
@@ -11731,7 +11732,7 @@ function pv() {
11731
11732
  J = Ei(J, bt, " ");
11732
11733
  }), A.textContent !== J && (_i(t.removed, {
11733
11734
  element: A.cloneNode()
11734
- }), A.textContent = J)), ln($.afterSanitizeElements, A, null), !1);
11735
+ }), A.textContent = J)), ln(M.afterSanitizeElements, A, null), !1);
11735
11736
  }, Cu = function(A, J, K) {
11736
11737
  if (ge && (J === "id" || J === "name") && (K in n || K in o1))
11737
11738
  return !1;
@@ -11745,14 +11746,14 @@ function pv() {
11745
11746
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
11746
11747
  J === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && ie(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
11747
11748
  ) return !1;
11748
- } else if (!yo[J] && !ie(Z, Ei(K, D, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && ED(K, "data:") === 0 && xu[A]) && !(W && !ie(L, Ei(K, D, ""))) && K)
11749
+ } else if (!yo[J] && !ie(Z, Ei(K, k, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && ED(K, "data:") === 0 && xu[A]) && !(W && !ie(L, Ei(K, k, ""))) && K)
11749
11750
  return !1;
11750
11751
  }
11751
11752
  return !0;
11752
11753
  }, Au = function(A) {
11753
11754
  return A !== "annotation-xml" && Kd(A, U);
11754
11755
  }, Lu = function(A) {
11755
- ln($.beforeSanitizeAttributes, A, null);
11756
+ ln(M.beforeSanitizeAttributes, A, null);
11756
11757
  const {
11757
11758
  attributes: J
11758
11759
  } = A;
@@ -11773,7 +11774,7 @@ function pv() {
11773
11774
  value: Ne
11774
11775
  } = Xt, Xe = qt(Pt), Oo = Ne;
11775
11776
  let Qt = Pt === "value" ? Oo : OD(Oo);
11776
- if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln($.uponSanitizeAttribute, A, K), Qt = K.attrValue, ci && (Xe === "id" || Xe === "name") && (Er(Pt, A), Qt = ui + Qt), ut && ie(/((--!?|])>)|<\/(style|title)/i, Qt)) {
11777
+ if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln(M.uponSanitizeAttribute, A, K), Qt = K.attrValue, ci && (Xe === "id" || Xe === "name") && (Er(Pt, A), Qt = ui + Qt), ut && ie(/((--!?|])>)|<\/(style|title)/i, Qt)) {
11777
11778
  Er(Pt, A);
11778
11779
  continue;
11779
11780
  }
@@ -11813,13 +11814,13 @@ function pv() {
11813
11814
  Er(Pt, A);
11814
11815
  }
11815
11816
  }
11816
- ln($.afterSanitizeAttributes, A, null);
11817
+ ln(M.afterSanitizeAttributes, A, null);
11817
11818
  }, c1 = function A(J) {
11818
11819
  let K = null;
11819
11820
  const bt = wu(J);
11820
- for (ln($.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
11821
- ln($.uponSanitizeShadowNode, K, null), Mu(K), Lu(K), K.content instanceof s && A(K.content);
11822
- ln($.afterSanitizeShadowDOM, J, null);
11821
+ for (ln(M.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
11822
+ ln(M.uponSanitizeShadowNode, K, null), Mu(K), Lu(K), K.content instanceof s && A(K.content);
11823
+ ln(M.afterSanitizeShadowDOM, J, null);
11823
11824
  };
11824
11825
  return t.sanitize = function(A) {
11825
11826
  let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, K = null, bt = null, Xt = null, Pt = null;
@@ -11854,7 +11855,7 @@ function pv() {
11854
11855
  return A;
11855
11856
  if (nt) {
11856
11857
  if (yt)
11857
- for (Pt = k.call(K.ownerDocument); K.firstChild; )
11858
+ for (Pt = D.call(K.ownerDocument); K.firstChild; )
11858
11859
  Pt.appendChild(K.firstChild);
11859
11860
  else
11860
11861
  Pt = K;
@@ -11875,17 +11876,17 @@ function pv() {
11875
11876
  const bt = qt(A), Xt = qt(J);
11876
11877
  return Cu(bt, Xt, K);
11877
11878
  }, t.addHook = function(A, J) {
11878
- typeof J == "function" && _i($[A], J);
11879
+ typeof J == "function" && _i(M[A], J);
11879
11880
  }, t.removeHook = function(A, J) {
11880
11881
  if (J !== void 0) {
11881
- const K = bD($[A], J);
11882
- return K === -1 ? void 0 : _D($[A], K, 1)[0];
11882
+ const K = bD(M[A], J);
11883
+ return K === -1 ? void 0 : _D(M[A], K, 1)[0];
11883
11884
  }
11884
- return Zd($[A]);
11885
+ return Zd(M[A]);
11885
11886
  }, t.removeHooks = function(A) {
11886
- $[A] = [];
11887
+ M[A] = [];
11887
11888
  }, t.removeAllHooks = function() {
11888
- $ = rp();
11889
+ M = rp();
11889
11890
  }, t;
11890
11891
  }
11891
11892
  var au = pv();
@@ -12406,7 +12407,7 @@ class fo extends mt {
12406
12407
  <div class="cds--modal-container">
12407
12408
  <div class="cds--modal-header">
12408
12409
 
12409
- <p class="cds--modal-header__label cds--type-delta" id="modal-title">${r}</p>
12410
+ <p class="cds--modal-header__label cds--type-delta" id="${t}__modal-title">${r}</p>
12410
12411
 
12411
12412
  <p class="cds--modal-header__heading cds--type-beta" id="${t}__modal-description">${en(
12412
12413
  n.title
@@ -12579,15 +12580,15 @@ class ou extends mt {
12579
12580
  _.exit().remove();
12580
12581
  const E = _.enter().append("div").merge(_).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
12581
12582
  "aria-labelledby",
12582
- (M, k) => this.services.domUtils.generateElementIDString(
12583
- `legend-datagroup-${m.size() + k}-title`
12583
+ ($, D) => this.services.domUtils.generateElementIDString(
12584
+ `legend-datagroup-${m.size() + D}-title`
12584
12585
  )
12585
12586
  );
12586
12587
  E.selectAll("*").remove();
12587
12588
  let x, S = 1;
12588
- E.append("svg").classed("icon", !0).each(function(M) {
12589
- const k = I(this);
12590
- !x || x != M.type ? (x = M.type, S = 1) : S++, b.addAdditionalItem(k, M, S);
12589
+ E.append("svg").classed("icon", !0).each(function($) {
12590
+ const D = I(this);
12591
+ !x || x != $.type ? (x = $.type, S = 1) : S++, b.addAdditionalItem(D, $, S);
12591
12592
  }), E.append("p").merge(E.select("p")), this.truncateLegendText();
12592
12593
  }
12593
12594
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && h.size() > 1 && this.addEventListeners();
@@ -13034,18 +13035,18 @@ const xv = class ia extends mt {
13034
13035
  f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
13035
13036
  const g = (x) => {
13036
13037
  const S = x[1] - x[0];
13037
- let M = "0," + S.toString();
13038
- const k = Math.floor(l / ia.DASH_LENGTH), C = k * ia.DASH_LENGTH;
13039
- for (let R = 0; R < k; R++)
13040
- M += "," + ia.DASH_LENGTH;
13041
- M += "," + (l - C), k % 2 === 1 && (M += ",0"), M += "," + S.toString(), M += "," + l.toString(), p.attr("stroke-dasharray", M);
13038
+ let $ = "0," + S.toString();
13039
+ const D = Math.floor(l / ia.DASH_LENGTH), C = D * ia.DASH_LENGTH;
13040
+ for (let R = 0; R < D; R++)
13041
+ $ += "," + ia.DASH_LENGTH;
13042
+ $ += "," + (l - C), D % 2 === 1 && ($ += ",0"), $ += "," + S.toString(), $ += "," + l.toString(), p.attr("stroke-dasharray", $);
13042
13043
  }, m = (x) => {
13043
13044
  const S = x.selection;
13044
13045
  S === null || S[0] === S[1] || (p.attr("x", parseFloat(a.attr("x")) + parseFloat(i.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), g(S));
13045
13046
  }, v = (x, S) => {
13046
- const M = eg().range([0, o]).domain(f);
13047
- let k = [M.invert(x), M.invert(S)], C = "manual";
13048
- k[0].valueOf() === k[1].valueOf() ? (k = this.services.zoom.getDefaultZoomBarDomain(), C = "reset") : C = "manual", (f[0].valueOf() !== k[0].valueOf() || f[1].valueOf() !== k[1].valueOf()) && this.services.zoom.handleDomainChange(k, { dispatchEvent: !0, type: C });
13047
+ const $ = eg().range([0, o]).domain(f);
13048
+ let D = [$.invert(x), $.invert(S)], C = "manual";
13049
+ D[0].valueOf() === D[1].valueOf() ? (D = this.services.zoom.getDefaultZoomBarDomain(), C = "reset") : C = "manual", (f[0].valueOf() !== D[0].valueOf() || f[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D, { dispatchEvent: !0, type: C });
13049
13050
  };
13050
13051
  let b;
13051
13052
  const _ = (x) => {
@@ -13059,11 +13060,11 @@ const xv = class ia extends mt {
13059
13060
  const E = this.services.zoom.getZoomRatio();
13060
13061
  i.on("click", function(x) {
13061
13062
  if (x.shiftKey) {
13062
- const S = this.services.domUtils.getHolder(), M = rr(s.node(), S)[0];
13063
- let k = M - o * E / 2;
13064
- k < 0 && (k = 0);
13065
- let C = M + o * E / 2;
13066
- C > o && (C = o), v(k, C);
13063
+ const S = this.services.domUtils.getHolder(), $ = rr(s.node(), S)[0];
13064
+ let D = $ - o * E / 2;
13065
+ D < 0 && (D = 0);
13066
+ let C = $ + o * E / 2;
13067
+ C > o && (C = o), v(D, C);
13067
13068
  }
13068
13069
  });
13069
13070
  }
@@ -13135,17 +13136,17 @@ class VD extends mt {
13135
13136
  ), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ze(m, (S) => S.value));
13136
13137
  const E = this.model.get("zoomDomain");
13137
13138
  if (s === Ke.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(n, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, c, l), a)) {
13138
- const S = a.highlightStartMapsTo, M = a.highlightEndMapsTo, k = a.color, C = a.labelMapsTo;
13139
- a.data.forEach((R, $) => {
13140
- N.appendOrSelect(d, `rect.highlight-${$}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
13139
+ const S = a.highlightStartMapsTo, $ = a.highlightEndMapsTo, D = a.color, C = a.labelMapsTo;
13140
+ a.data.forEach((R, M) => {
13141
+ N.appendOrSelect(d, `rect.highlight-${M}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
13141
13142
  "width",
13142
- this.xScale(R[M]) - this.xScale(R[S])
13143
+ this.xScale(R[$]) - this.xScale(R[S])
13143
13144
  ).style(
13144
13145
  "fill",
13145
- k && k.scale[R[C]] ? k.scale[R[C]] : null
13146
+ D && D.scale[R[C]] ? D.scale[R[C]] : null
13146
13147
  ).style("fill-opacity", 0.1).style(
13147
13148
  "stroke",
13148
- k && k.scale[R[C]] ? k.scale[R[C]] : null
13149
+ D && D.scale[R[C]] ? D.scale[R[C]] : null
13149
13150
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
13150
13151
  });
13151
13152
  }
@@ -13154,7 +13155,7 @@ class VD extends mt {
13154
13155
  if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
13155
13156
  x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
13156
13157
  else {
13157
- const S = E.map((M) => this.xScale(M));
13158
+ const S = E.map(($) => this.xScale($));
13158
13159
  S[1] - S[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, S), this.updateBrushHandle(this.getComponentContainer(), S));
13159
13160
  }
13160
13161
  i && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
@@ -13310,7 +13311,7 @@ class GD extends mt {
13310
13311
  ), d = l.services.cartesianScales.getScaleTypeByPosition(c);
13311
13312
  let h = null, p = null;
13312
13313
  c === G.LEFT || c === G.RIGHT ? (p = u, h = l.services.cartesianScales.getMainXScale()) : (h = u, p = l.services.cartesianScales.getMainYScale());
13313
- const f = d === et.LABELS, [g, m] = h.range(), [v, b] = p.range(), { cartesianScales: _ } = l.services, E = _.getOrientation(), x = (R) => _.getDomainValue(R), S = (R) => _.getRangeValue(R), [M, k] = En(
13314
+ const f = d === et.LABELS, [g, m] = h.range(), [v, b] = p.range(), { cartesianScales: _ } = l.services, E = _.getOrientation(), x = (R) => _.getDomainValue(R), S = (R) => _.getRangeValue(R), [$, D] = En(
13314
13315
  x,
13315
13316
  S,
13316
13317
  E
@@ -13323,11 +13324,11 @@ class GD extends mt {
13323
13324
  })
13324
13325
  ).attr("y1", b).attr("y2", v).attr(
13325
13326
  "x1",
13326
- ({ datum: R }) => M(R) + (f ? u.step() / 2 : 0)
13327
+ ({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
13327
13328
  ).attr(
13328
13329
  "x2",
13329
- ({ datum: R }) => M(R) + (f ? u.step() / 2 : 0)
13330
- ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -M(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
13330
+ ({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
13331
+ ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -$(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
13331
13332
  (R) => l.services.transitions.setupTransition({
13332
13333
  transition: R,
13333
13334
  name: "threshold-line-update",
@@ -13335,11 +13336,11 @@ class GD extends mt {
13335
13336
  })
13336
13337
  ).attr("x1", g).attr("x2", m).attr(
13337
13338
  "y1",
13338
- ({ datum: R }) => k(R) + (f ? u.step() / 2 : 0)
13339
+ ({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
13339
13340
  ).attr(
13340
13341
  "y2",
13341
- ({ datum: R }) => k(R) + (f ? u.step() / 2 : 0)
13342
- ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) => k(R)).attr("width", Math.abs(m - g)).classed("rotate", !1));
13342
+ ({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
13343
+ ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) => D(R)).attr("width", Math.abs(m - g)).classed("rotate", !1));
13343
13344
  }), this.services.events.addEventListener(T.Threshold.SHOW, (c) => {
13344
13345
  this.setThresholdLabelPosition(c.detail), this.label.classed("hidden", !1);
13345
13346
  }), this.services.events.addEventListener(T.Threshold.HIDE, () => {
@@ -13448,30 +13449,30 @@ class zD extends mt {
13448
13449
  o.append("rect").attr("class", "highlight-bar"), o.append("line").attr("class", "highlight-line"), o.merge(a).attr("class", "highlight-group");
13449
13450
  const l = this;
13450
13451
  s.each(function({ axisPosition: c }) {
13451
- const u = l.services.cartesianScales.getMainXScale(), d = l.services.cartesianScales.getMainYScale(), [h, p] = u.range(), [f, g] = d.range(), { cartesianScales: m } = l.services, v = m.getOrientation(), b = (M) => m.getDomainValue(M), _ = (M) => m.getRangeValue(M), [E, x] = En(
13452
+ const u = l.services.cartesianScales.getMainXScale(), d = l.services.cartesianScales.getMainYScale(), [h, p] = u.range(), [f, g] = d.range(), { cartesianScales: m } = l.services, v = m.getOrientation(), b = ($) => m.getDomainValue($), _ = ($) => m.getRangeValue($), [E, x] = En(
13452
13453
  b,
13453
13454
  _,
13454
13455
  v
13455
13456
  ), S = I(this);
13456
13457
  c === G.TOP || c === G.BOTTOM ? S.selectAll("rect.highlight-bar").transition().call(
13457
- (M) => l.services.transitions.setupTransition({
13458
- transition: M,
13458
+ ($) => l.services.transitions.setupTransition({
13459
+ transition: $,
13459
13460
  name: "highlight-bar-update",
13460
13461
  animate: t
13461
13462
  })
13462
- ).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: M, ...k }) => E(k[M])).attr(
13463
+ ).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: $, ...D }) => E(D[$])).attr(
13463
13464
  "width",
13464
- ({ highlightStartMapsTo: M, highlightEndMapsTo: k, ...C }) => Math.max(E(C[k]) - E(C[M]), 0)
13465
- ).style("stroke", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null) : S.selectAll("rect.highlight-bar").transition().call(
13466
- (M) => l.services.transitions.setupTransition({
13467
- transition: M,
13465
+ ({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(E(C[D]) - E(C[$]), 0)
13466
+ ).style("stroke", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null) : S.selectAll("rect.highlight-bar").transition().call(
13467
+ ($) => l.services.transitions.setupTransition({
13468
+ transition: $,
13468
13469
  name: "highlight-bar-update",
13469
13470
  animate: t
13470
13471
  })
13471
- ).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: M, ...k }) => x(k[M])).attr(
13472
+ ).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: $, ...D }) => x(D[$])).attr(
13472
13473
  "height",
13473
- ({ highlightStartMapsTo: M, highlightEndMapsTo: k, ...C }) => Math.max(x(C[M]) - x(C[k]), 0)
13474
- ).style("stroke", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null);
13474
+ ({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(x(C[$]) - x(C[D]), 0)
13475
+ ).style("stroke", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null);
13475
13476
  });
13476
13477
  }
13477
13478
  }
@@ -13549,13 +13550,14 @@ class bv extends lu {
13549
13550
  };
13550
13551
  }).sort((h, p) => p.value - h.value)
13551
13552
  ), !a && y(r, "tooltip", "showTotal") === !0)) {
13552
- const h = i.getRangeIdentifier();
13553
- d.push({
13554
- label: gt(r, "locale.translations.total") || gt(r, "tooltip.totalLabel") || "Total",
13555
- value: n.reduce(
13556
- (p, f) => p + f[h],
13557
- 0
13558
- ),
13553
+ const h = i.getRangeIdentifier(), p = y(r, "tooltip", "customTotalCalculation");
13554
+ let f;
13555
+ p ? f = p(n) : f = n.reduce(
13556
+ (g, m) => g + m[h],
13557
+ 0
13558
+ ), d.push({
13559
+ label: gt(r, "tooltip.totalLabel") || gt(r, "locale.translations.total") || "Total",
13560
+ value: f,
13559
13561
  bold: !0
13560
13562
  });
13561
13563
  }
@@ -13679,17 +13681,17 @@ function ZD() {
13679
13681
  return arguments.length ? (p = +O, f) : p;
13680
13682
  };
13681
13683
  function g({ nodes: O, links: w }) {
13682
- for (const [D, U] of O.entries())
13683
- U.index = D, U.sourceLinks = [], U.targetLinks = [];
13684
- const L = new Map(O.map((D, U) => [o(D, U, O), D]));
13685
- for (const [D, U] of w.entries()) {
13686
- U.index = D;
13684
+ for (const [k, U] of O.entries())
13685
+ U.index = k, U.sourceLinks = [], U.targetLinks = [];
13686
+ const L = new Map(O.map((k, U) => [o(k, U, O), k]));
13687
+ for (const [k, U] of w.entries()) {
13688
+ U.index = k;
13687
13689
  let { source: Z, target: j } = U;
13688
13690
  typeof Z != "object" && (Z = U.source = cp(L, Z)), typeof j != "object" && (j = U.target = cp(L, j)), Z.sourceLinks.push(U), j.targetLinks.push(U);
13689
13691
  }
13690
13692
  if (u != null)
13691
- for (const { sourceLinks: D, targetLinks: U } of O)
13692
- D.sort(u), U.sort(u);
13693
+ for (const { sourceLinks: k, targetLinks: U } of O)
13694
+ k.sort(u), U.sort(u);
13693
13695
  }
13694
13696
  function m({ nodes: O }) {
13695
13697
  for (const w of O)
@@ -13697,53 +13699,53 @@ function ZD() {
13697
13699
  }
13698
13700
  function v({ nodes: O }) {
13699
13701
  const w = O.length;
13700
- let L = new Set(O), D = /* @__PURE__ */ new Set(), U = 0;
13702
+ let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
13701
13703
  for (; L.size; ) {
13702
13704
  for (const Z of L) {
13703
13705
  Z.depth = U;
13704
13706
  for (const { target: j } of Z.sourceLinks)
13705
- D.add(j);
13707
+ k.add(j);
13706
13708
  }
13707
13709
  if (++U > w) throw new Error("circular link");
13708
- L = D, D = /* @__PURE__ */ new Set();
13710
+ L = k, k = /* @__PURE__ */ new Set();
13709
13711
  }
13710
13712
  }
13711
13713
  function b({ nodes: O }) {
13712
13714
  const w = O.length;
13713
- let L = new Set(O), D = /* @__PURE__ */ new Set(), U = 0;
13715
+ let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
13714
13716
  for (; L.size; ) {
13715
13717
  for (const Z of L) {
13716
13718
  Z.height = U;
13717
13719
  for (const { source: j } of Z.targetLinks)
13718
- D.add(j);
13720
+ k.add(j);
13719
13721
  }
13720
13722
  if (++U > w) throw new Error("circular link");
13721
- L = D, D = /* @__PURE__ */ new Set();
13723
+ L = k, k = /* @__PURE__ */ new Set();
13722
13724
  }
13723
13725
  }
13724
13726
  function _({ nodes: O }) {
13725
- const w = ap(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1), D = new Array(w);
13727
+ const w = ap(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1), k = new Array(w);
13726
13728
  for (const U of O) {
13727
13729
  const Z = Math.max(0, Math.min(w - 1, Math.floor(l.call(null, U, w))));
13728
- U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i, D[Z] ? D[Z].push(U) : D[Z] = [U];
13730
+ U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i, k[Z] ? k[Z].push(U) : k[Z] = [U];
13729
13731
  }
13730
- if (c) for (const U of D)
13732
+ if (c) for (const U of k)
13731
13733
  U.sort(c);
13732
- return D;
13734
+ return k;
13733
13735
  }
13734
13736
  function E(O) {
13735
13737
  const w = FD(O, (L) => (r - t - (L.length - 1) * a) / ol(L, ll));
13736
13738
  for (const L of O) {
13737
- let D = t;
13739
+ let k = t;
13738
13740
  for (const U of L) {
13739
- U.y0 = D, U.y1 = D + U.value * w, D = U.y1 + a;
13741
+ U.y0 = k, U.y1 = k + U.value * w, k = U.y1 + a;
13740
13742
  for (const Z of U.sourceLinks)
13741
13743
  Z.width = Z.value * w;
13742
13744
  }
13743
- D = (r - D + a) / (L.length + 1);
13745
+ k = (r - k + a) / (L.length + 1);
13744
13746
  for (let U = 0; U < L.length; ++U) {
13745
13747
  const Z = L[U];
13746
- Z.y0 += D * (U + 1), Z.y1 += D * (U + 1);
13748
+ Z.y0 += k * (U + 1), Z.y1 += k * (U + 1);
13747
13749
  }
13748
13750
  H(L);
13749
13751
  }
@@ -13752,13 +13754,13 @@ function ZD() {
13752
13754
  const w = _(O);
13753
13755
  a = Math.min(s, (r - t) / (ap(w, (L) => L.length) - 1)), E(w);
13754
13756
  for (let L = 0; L < p; ++L) {
13755
- const D = Math.pow(0.99, L), U = Math.max(1 - D, (L + 1) / p);
13756
- M(w, D, U), S(w, D, U);
13757
+ const k = Math.pow(0.99, L), U = Math.max(1 - k, (L + 1) / p);
13758
+ $(w, k, U), S(w, k, U);
13757
13759
  }
13758
13760
  }
13759
13761
  function S(O, w, L) {
13760
- for (let D = 1, U = O.length; D < U; ++D) {
13761
- const Z = O[D];
13762
+ for (let k = 1, U = O.length; k < U; ++k) {
13763
+ const Z = O[k];
13762
13764
  for (const j of Z) {
13763
13765
  let F = 0, Y = 0;
13764
13766
  for (const { source: Q, value: q } of j.targetLinks) {
@@ -13767,13 +13769,13 @@ function ZD() {
13767
13769
  }
13768
13770
  if (!(Y > 0)) continue;
13769
13771
  let ot = (F / Y - j.y0) * w;
13770
- j.y0 += ot, j.y1 += ot, $(j);
13772
+ j.y0 += ot, j.y1 += ot, M(j);
13771
13773
  }
13772
- c === void 0 && Z.sort(Pa), k(Z, L);
13774
+ c === void 0 && Z.sort(Pa), D(Z, L);
13773
13775
  }
13774
13776
  }
13775
- function M(O, w, L) {
13776
- for (let D = O.length, U = D - 2; U >= 0; --U) {
13777
+ function $(O, w, L) {
13778
+ for (let k = O.length, U = k - 2; U >= 0; --U) {
13777
13779
  const Z = O[U];
13778
13780
  for (const j of Z) {
13779
13781
  let F = 0, Y = 0;
@@ -13783,28 +13785,28 @@ function ZD() {
13783
13785
  }
13784
13786
  if (!(Y > 0)) continue;
13785
13787
  let ot = (F / Y - j.y0) * w;
13786
- j.y0 += ot, j.y1 += ot, $(j);
13788
+ j.y0 += ot, j.y1 += ot, M(j);
13787
13789
  }
13788
- c === void 0 && Z.sort(Pa), k(Z, L);
13790
+ c === void 0 && Z.sort(Pa), D(Z, L);
13789
13791
  }
13790
13792
  }
13791
- function k(O, w) {
13792
- const L = O.length >> 1, D = O[L];
13793
- R(O, D.y0 - a, L - 1, w), C(O, D.y1 + a, L + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
13793
+ function D(O, w) {
13794
+ const L = O.length >> 1, k = O[L];
13795
+ R(O, k.y0 - a, L - 1, w), C(O, k.y1 + a, L + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
13794
13796
  }
13795
- function C(O, w, L, D) {
13797
+ function C(O, w, L, k) {
13796
13798
  for (; L < O.length; ++L) {
13797
- const U = O[L], Z = (w - U.y0) * D;
13799
+ const U = O[L], Z = (w - U.y0) * k;
13798
13800
  Z > 1e-6 && (U.y0 += Z, U.y1 += Z), w = U.y1 + a;
13799
13801
  }
13800
13802
  }
13801
- function R(O, w, L, D) {
13803
+ function R(O, w, L, k) {
13802
13804
  for (; L >= 0; --L) {
13803
- const U = O[L], Z = (U.y1 - w) * D;
13805
+ const U = O[L], Z = (U.y1 - w) * k;
13804
13806
  Z > 1e-6 && (U.y0 -= Z, U.y1 -= Z), w = U.y0 - a;
13805
13807
  }
13806
13808
  }
13807
- function $({ sourceLinks: O, targetLinks: w }) {
13809
+ function M({ sourceLinks: O, targetLinks: w }) {
13808
13810
  if (u === void 0) {
13809
13811
  for (const { source: { sourceLinks: L } } of w)
13810
13812
  L.sort(lp);
@@ -13819,24 +13821,24 @@ function ZD() {
13819
13821
  }
13820
13822
  function P(O, w) {
13821
13823
  let L = O.y0 - (O.sourceLinks.length - 1) * a / 2;
13822
- for (const { target: D, width: U } of O.sourceLinks) {
13823
- if (D === w) break;
13824
+ for (const { target: k, width: U } of O.sourceLinks) {
13825
+ if (k === w) break;
13824
13826
  L += U + a;
13825
13827
  }
13826
- for (const { source: D, width: U } of w.targetLinks) {
13827
- if (D === O) break;
13828
+ for (const { source: k, width: U } of w.targetLinks) {
13829
+ if (k === O) break;
13828
13830
  L -= U;
13829
13831
  }
13830
13832
  return L;
13831
13833
  }
13832
13834
  function B(O, w) {
13833
13835
  let L = w.y0 - (w.targetLinks.length - 1) * a / 2;
13834
- for (const { source: D, width: U } of w.targetLinks) {
13835
- if (D === O) break;
13836
+ for (const { source: k, width: U } of w.targetLinks) {
13837
+ if (k === O) break;
13836
13838
  L += U + a;
13837
13839
  }
13838
- for (const { target: D, width: U } of O.sourceLinks) {
13839
- if (D === w) break;
13840
+ for (const { target: k, width: U } of O.sourceLinks) {
13841
+ if (k === w) break;
13840
13842
  L -= U;
13841
13843
  }
13842
13844
  return L;
@@ -14048,8 +14050,8 @@ class ck extends mt {
14048
14050
  ), { width: x } = N.getSVGElementSize(I(`text#${E}`), {
14049
14051
  useBBox: !0
14050
14052
  }), S = (b.y1 - b.y0) / 2 - 9;
14051
- let M = b.x1 - b.x0;
14052
- return b.x1 >= x ? M = M - (x + 16) : M += 4, `translate(${M}, ${S})`;
14053
+ let $ = b.x1 - b.x0;
14054
+ return b.x1 >= x ? $ = $ - (x + 16) : $ += 4, `translate(${$}, ${S})`;
14053
14055
  }), this.addLineEventListener(), this.addNodeEventListener();
14054
14056
  }
14055
14057
  addLineEventListener() {
@@ -14349,10 +14351,10 @@ class Ov extends mt {
14349
14351
  "stroke"
14350
14352
  );
14351
14353
  else {
14352
- const M = y(this.model.getOptions(), "color", "scale");
14353
- if (M !== null) {
14354
- const k = Object.keys(M);
14355
- S = M[k[0]];
14354
+ const $ = y(this.model.getOptions(), "color", "scale");
14355
+ if ($ !== null) {
14356
+ const D = Object.keys($);
14357
+ S = $[D[0]];
14356
14358
  }
14357
14359
  }
14358
14360
  Il.appendOrUpdateLinearGradient({
@@ -14862,14 +14864,14 @@ class Sv extends mt {
14862
14864
  f.attr("aria-hidden", !0);
14863
14865
  return;
14864
14866
  }
14865
- const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), M = y(m, "ticks", "values"), k = y(m, "truncation", "type"), C = y(m, "truncation", "threshold"), R = y(m, "truncation", "numCharacter"), $ = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(g, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
14867
+ const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), $ = y(m, "ticks", "values"), D = y(m, "truncation", "type"), C = y(m, "truncation", "threshold"), R = y(m, "truncation", "numCharacter"), M = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(g, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
14866
14868
  useBBox: !0
14867
14869
  }).height;
14868
14870
  P.remove();
14869
14871
  const w = this.scaleType || m.scaleType || et.LINEAR, L = h(d).tickSizeOuter(0);
14870
14872
  if (d.ticks) {
14871
14873
  let q;
14872
- if ($ ? q = S : (q = Pn.ticks.number, b && (q = this.getNumberOfFittingTicks(
14874
+ if (M ? q = S : (q = Pn.ticks.number, b && (q = this.getNumberOfFittingTicks(
14873
14875
  o,
14874
14876
  O,
14875
14877
  Pn.ticks.verticalSpaceRatio
@@ -14883,14 +14885,14 @@ class Sv extends mt {
14883
14885
  tt && W.length > 2 && !lt && (W.splice(W.length - 1, 1), W.splice(0, 1)), L.tickValues(W);
14884
14886
  }
14885
14887
  }
14886
- let D;
14888
+ let k;
14887
14889
  const U = y(m, "ticks", "formatter"), { code: Z, number: j } = y(r, "locale");
14888
14890
  if (v) {
14889
14891
  const q = Dl(
14890
14892
  L.tickValues(),
14891
14893
  y(r, "timeScale", "timeInterval")
14892
14894
  );
14893
- U === null ? D = (tt, lt) => Ll(tt, lt, L.tickValues(), q, H, r.locale) : D = (tt, lt) => {
14895
+ U === null ? k = (tt, lt) => Ll(tt, lt, L.tickValues(), q, H, r.locale) : k = (tt, lt) => {
14894
14896
  const z = Ll(
14895
14897
  tt,
14896
14898
  lt,
@@ -14902,23 +14904,23 @@ class Sv extends mt {
14902
14904
  return U(tt, lt, z);
14903
14905
  };
14904
14906
  } else
14905
- U === null ? w === et.LINEAR && (D = (q) => j(q, Z)) : D = U;
14906
- L.tickFormat(D);
14907
+ U === null ? w === et.LINEAR && (k = (q) => j(q, Z)) : k = U;
14908
+ L.tickFormat(k);
14907
14909
  const [F, Y] = this.services.cartesianScales.getScaleByPosition(n).domain();
14908
14910
  let ot;
14909
- if (M) {
14911
+ if ($) {
14910
14912
  if (v)
14911
- M.forEach((q, tt) => {
14912
- q.getTime === void 0 && (M[tt] = new Date(q));
14913
- }), ot = M.filter((q) => {
14913
+ $.forEach((q, tt) => {
14914
+ q.getTime === void 0 && ($[tt] = new Date(q));
14915
+ }), ot = $.filter((q) => {
14914
14916
  const tt = q.getTime();
14915
14917
  return tt >= new Date(F).getTime() && tt <= new Date(Y).getTime();
14916
14918
  });
14917
14919
  else if (E === et.LABELS) {
14918
14920
  const q = this.services.cartesianScales.getScaleByPosition(n).domain();
14919
- ot = M.filter((tt) => q.includes(tt));
14921
+ ot = $.filter((tt) => q.includes(tt));
14920
14922
  } else
14921
- ot = M.filter(
14923
+ ot = $.filter(
14922
14924
  (q) => q >= F && q <= Y
14923
14925
  );
14924
14926
  L.tickValues(ot);
@@ -15015,20 +15017,20 @@ class Sv extends mt {
15015
15017
  V !== null && W + X.text().length * z * 0.8 >= V && (q = !0), W = V;
15016
15018
  }), lt.remove();
15017
15019
  }
15018
- q ? ($ || (L.ticks(
15020
+ q ? (M || (L.ticks(
15019
15021
  this.getNumberOfFittingTicks(a, O, Pn.ticks.horizontalSpaceRatio)
15020
15022
  ), g.call(L), f.call(L)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", n === G.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
15021
15023
  }
15022
- if (x ? l.attr("opacity", 0) : l.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (q) => q), g.selectAll("g.tick").attr("aria-label", (q) => q), k !== Ve.NONE && E === et.LABELS && !M) {
15024
+ if (x ? l.attr("opacity", 0) : l.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (q) => q), g.selectAll("g.tick").attr("aria-label", (q) => q), D !== Ve.NONE && E === et.LABELS && !$) {
15023
15025
  const q = this.services.cartesianScales.getScaleDomain(n);
15024
15026
  if (q.length > 0) {
15025
15027
  const tt = s.select(`g.axis.${n} g.ticks g.tick`).html();
15026
15028
  l.selectAll("g.ticks g.tick").html(tt);
15027
15029
  const lt = this;
15028
15030
  l.selectAll("g.tick text").data(q).text(function(z) {
15029
- return z.length > C ? (lt.truncation[n] = !0, rs(z, k, R)) : z;
15031
+ return z.length > C ? (lt.truncation[n] = !0, rs(z, D, R)) : z;
15030
15032
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(q).text(function(z) {
15031
- return z.length > C ? rs(z, k, R) : z;
15033
+ return z.length > C ? rs(z, D, R) : z;
15032
15034
  }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(q);
15033
15035
  }
15034
15036
  }
@@ -15373,115 +15375,115 @@ class dk extends mt {
15373
15375
  if (h === 0)
15374
15376
  return;
15375
15377
  const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Ft.VERTICAL, [v, b] = En(
15376
- ($) => this.services.cartesianScales.getDomainValue($),
15377
- ($) => this.services.cartesianScales.getRangeValue($),
15378
+ (M) => this.services.cartesianScales.getDomainValue(M),
15379
+ (M) => this.services.cartesianScales.getRangeValue(M),
15378
15380
  g
15379
15381
  ), _ = Math.floor((m ? h : p) / s.length), E = Math.min(_ / 2, 16), x = this.model.getBoxplotData(), S = n.selectAll(".box-group").data(x);
15380
15382
  S.exit().remove();
15381
- const M = S.enter().append("g").attr("class", "box-group"), k = S.merge(M);
15382
- M.append("path").merge(S.select("path.vertical-line.start")).attr(
15383
+ const $ = S.enter().append("g").attr("class", "box-group"), D = S.merge($);
15384
+ $.append("path").merge(S.select("path.vertical-line.start")).attr(
15383
15385
  "class",
15384
15386
  () => this.model.getColorClassName({
15385
15387
  classNameTypes: [it.STROKE],
15386
15388
  originalClassName: "vertical-line start"
15387
15389
  })
15388
15390
  ).attr("stroke-width", Te.strokeWidth.default).attr("fill", "none").transition().call(
15389
- ($) => this.services.transitions.setupTransition({
15390
- transition: $,
15391
+ (M) => this.services.transitions.setupTransition({
15392
+ transition: M,
15391
15393
  name: "boxplot-update-verticalstartline",
15392
15394
  animate: t
15393
15395
  })
15394
- ).attr("d", ($) => {
15395
- const H = f.getDomainValue($[i]), P = H, B = f.getRangeValue($.whiskers.min), O = f.getRangeValue($.quartiles.q_25);
15396
+ ).attr("d", (M) => {
15397
+ const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.quartiles.q_25);
15396
15398
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15397
- }), M.append("path").merge(S.select("path.vertical-line.end")).attr(
15399
+ }), $.append("path").merge(S.select("path.vertical-line.end")).attr(
15398
15400
  "class",
15399
15401
  () => this.model.getColorClassName({
15400
15402
  classNameTypes: [it.STROKE],
15401
15403
  originalClassName: "vertical-line end"
15402
15404
  })
15403
15405
  ).attr("stroke-width", Te.strokeWidth.default).attr("fill", "none").transition().call(
15404
- ($) => this.services.transitions.setupTransition({
15405
- transition: $,
15406
+ (M) => this.services.transitions.setupTransition({
15407
+ transition: M,
15406
15408
  name: "boxplot-update-verticalendline",
15407
15409
  animate: t
15408
15410
  })
15409
- ).attr("d", ($) => {
15410
- const H = f.getDomainValue($[i]), P = H, B = f.getRangeValue($.whiskers.max), O = f.getRangeValue($.quartiles.q_75);
15411
+ ).attr("d", (M) => {
15412
+ const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.quartiles.q_75);
15411
15413
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15412
- }), M.append("path").merge(S.select("path.box")).attr(
15414
+ }), $.append("path").merge(S.select("path.box")).attr(
15413
15415
  "class",
15414
15416
  () => this.model.getColorClassName({
15415
15417
  classNameTypes: [it.FILL, it.STROKE],
15416
15418
  originalClassName: "box"
15417
15419
  })
15418
- ).attr("fill-opacity", Te.box.opacity.default).attr("stroke-width", Te.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", ($) => $[i]).transition().call(
15419
- ($) => this.services.transitions.setupTransition({
15420
- transition: $,
15420
+ ).attr("fill-opacity", Te.box.opacity.default).attr("stroke-width", Te.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (M) => M[i]).transition().call(
15421
+ (M) => this.services.transitions.setupTransition({
15422
+ transition: M,
15421
15423
  name: "boxplot-update-quartiles",
15422
15424
  animate: t
15423
15425
  })
15424
- ).attr("d", ($) => {
15425
- const H = f.getDomainValue($[i]) - E / 2, P = H + E, B = f.getRangeValue(
15426
- Math[m ? "max" : "min"]($.quartiles.q_75, $.quartiles.q_25)
15426
+ ).attr("d", (M) => {
15427
+ const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(
15428
+ Math[m ? "max" : "min"](M.quartiles.q_75, M.quartiles.q_25)
15427
15429
  ), O = B + Math.abs(
15428
- f.getRangeValue($.quartiles.q_75) - f.getRangeValue($.quartiles.q_25)
15430
+ f.getRangeValue(M.quartiles.q_75) - f.getRangeValue(M.quartiles.q_25)
15429
15431
  );
15430
15432
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15431
- }), M.append("path").merge(S.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", ($) => {
15432
- const H = f.getDomainValue($[i]) - E / 2, P = H + E, B = f.getRangeValue($.whiskers.min), O = f.getRangeValue($.whiskers.max);
15433
+ }), $.append("path").merge(S.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (M) => {
15434
+ const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.max);
15433
15435
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15434
- }), M.append("path").merge(S.select("path.whisker.start")).attr(
15436
+ }), $.append("path").merge(S.select("path.whisker.start")).attr(
15435
15437
  "class",
15436
15438
  () => this.model.getColorClassName({
15437
15439
  classNameTypes: [it.STROKE],
15438
15440
  originalClassName: "whisker start"
15439
15441
  })
15440
15442
  ).attr("stroke-width", Te.strokeWidth.thicker).attr("fill", "none").transition().call(
15441
- ($) => this.services.transitions.setupTransition({
15442
- transition: $,
15443
+ (M) => this.services.transitions.setupTransition({
15444
+ transition: M,
15443
15445
  name: "boxplot-update-startingwhisker",
15444
15446
  animate: t
15445
15447
  })
15446
- ).attr("d", ($) => {
15447
- const H = f.getDomainValue($[i]) - E / 4, P = H + E / 2, B = f.getRangeValue($.whiskers.min), O = f.getRangeValue($.whiskers.min);
15448
+ ).attr("d", (M) => {
15449
+ const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.min);
15448
15450
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15449
- }), M.append("path").merge(S.select("path.median")).attr("fill", "none").attr(
15451
+ }), $.append("path").merge(S.select("path.median")).attr("fill", "none").attr(
15450
15452
  "class",
15451
15453
  () => this.model.getColorClassName({
15452
15454
  classNameTypes: [it.STROKE],
15453
15455
  originalClassName: "median"
15454
15456
  })
15455
15457
  ).attr("stroke-width", 2).transition().call(
15456
- ($) => this.services.transitions.setupTransition({
15457
- transition: $,
15458
+ (M) => this.services.transitions.setupTransition({
15459
+ transition: M,
15458
15460
  name: "boxplot-update-median",
15459
15461
  animate: t
15460
15462
  })
15461
- ).attr("d", ($) => {
15462
- const H = f.getDomainValue($[i]) - E / 2, P = H + E, B = f.getRangeValue($.quartiles.q_50);
15463
+ ).attr("d", (M) => {
15464
+ const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.quartiles.q_50);
15463
15465
  return ae({ x0: H, x1: P, y0: B, y1: B }, g);
15464
- }), M.append("path").merge(S.select("path.whisker.end")).attr(
15466
+ }), $.append("path").merge(S.select("path.whisker.end")).attr(
15465
15467
  "class",
15466
15468
  () => this.model.getColorClassName({
15467
15469
  classNameTypes: [it.STROKE],
15468
15470
  originalClassName: "whisker end"
15469
15471
  })
15470
15472
  ).attr("stroke-width", Te.strokeWidth.thicker).attr("fill", "none").transition().call(
15471
- ($) => this.services.transitions.setupTransition({
15472
- transition: $,
15473
+ (M) => this.services.transitions.setupTransition({
15474
+ transition: M,
15473
15475
  name: "boxplot-update-endingwhisker",
15474
15476
  animate: t
15475
15477
  })
15476
- ).attr("d", ($) => {
15477
- const H = f.getDomainValue($[i]) - E / 4, P = H + E / 2, B = f.getRangeValue($.whiskers.max), O = f.getRangeValue($.whiskers.max);
15478
+ ).attr("d", (M) => {
15479
+ const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.whiskers.max);
15478
15480
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15479
15481
  });
15480
- const C = k.selectAll("circle.outlier").data(
15481
- ($) => $.outliers.map((H) => ({
15482
- min: $.whiskers.min,
15483
- max: $.whiskers.max,
15484
- [i]: $[i],
15482
+ const C = D.selectAll("circle.outlier").data(
15483
+ (M) => M.outliers.map((H) => ({
15484
+ min: M.whiskers.min,
15485
+ max: M.whiskers.max,
15486
+ [i]: M[i],
15485
15487
  value: H
15486
15488
  }))
15487
15489
  );
@@ -15494,8 +15496,8 @@ class dk extends mt {
15494
15496
  originalClassName: "outlier"
15495
15497
  })
15496
15498
  ).attr("fill-opacity", Te.circle.opacity.default).attr("cx", v).transition().call(
15497
- ($) => this.services.transitions.setupTransition({
15498
- transition: $,
15499
+ (M) => this.services.transitions.setupTransition({
15500
+ transition: M,
15499
15501
  name: "boxplot-update-circles",
15500
15502
  animate: t
15501
15503
  })
@@ -16121,11 +16123,26 @@ class Ok extends Vn {
16121
16123
  ...E,
16122
16124
  ...y(s, "tooltip", "showTotal") === !0 ? [
16123
16125
  {
16124
- label: gt(s, "locale.translations.total") || gt(s, "tooltip.totalLabel") || "Total",
16125
- value: _.reduce(
16126
- (S, M) => S + parseFloat(gt(m, `data.${M}`)),
16127
- 0
16128
- )
16126
+ label: gt(s, "tooltip.totalLabel") || gt(s, "locale.translations.total") || "Total",
16127
+ value: (() => {
16128
+ const S = y(
16129
+ s,
16130
+ "tooltip",
16131
+ "customTotalCalculation"
16132
+ );
16133
+ if (S) {
16134
+ const $ = _.map(
16135
+ (D) => ({
16136
+ [D]: parseFloat(gt(m, `data.${D}`))
16137
+ })
16138
+ );
16139
+ return S($);
16140
+ } else
16141
+ return _.reduce(
16142
+ ($, D) => $ + parseFloat(gt(m, `data.${D}`)),
16143
+ 0
16144
+ );
16145
+ })()
16129
16146
  }
16130
16147
  ] : []
16131
16148
  ]
@@ -16212,21 +16229,21 @@ class Tv extends ou {
16212
16229
  m.push(
16213
16230
  a === qs.LINEAR ? `stop-color-${g}-${o}-${C}` : `fill-${g}-${o}-${C}`
16214
16231
  );
16215
- const b = xe(u[0], u[1]), _ = qC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number: M } = y(n, "locale");
16216
- x.tickFormat((C) => M(C, S));
16217
- let k;
16232
+ const b = xe(u[0], u[1]), _ = qC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number: $ } = y(n, "locale");
16233
+ x.tickFormat((C) => $(C, S));
16234
+ let D;
16218
16235
  switch (a) {
16219
16236
  case qs.LINEAR:
16220
16237
  this.drawLinear(m, p, h);
16221
16238
  break;
16222
16239
  case qs.QUANTIZE:
16223
- k = this.drawQuantize(
16240
+ D = this.drawQuantize(
16224
16241
  m,
16225
16242
  g,
16226
16243
  c,
16227
16244
  p,
16228
16245
  h
16229
- ), E.range([k, h]);
16246
+ ), E.range([D, h]);
16230
16247
  break;
16231
16248
  default:
16232
16249
  throw Error("Entered color legend type is not supported.");
@@ -16641,23 +16658,23 @@ class wv extends mt {
16641
16658
  Ao(C.data[a], o, a),
16642
16659
  d
16643
16660
  ) + "%").datum(function(C) {
16644
- const R = l + 7, $ = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = $ / Math.PI * 180, P = this.getComputedTextLength();
16645
- return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin($), C.yPosition = (C.textOffsetY + R) * -Math.cos($), C;
16661
+ const R = l + 7, M = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = M / Math.PI * 180, P = this.getComputedTextLength();
16662
+ return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin(M), C.yPosition = (C.textOffsetY + R) * -Math.cos(M), C;
16646
16663
  }).attr("transform", function(C, R) {
16647
- const $ = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
16648
- if (R >= $ - 2 && H < Mt.callout.minSliceDegree) {
16664
+ const M = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
16665
+ if (R >= M - 2 && H < Mt.callout.minSliceDegree) {
16649
16666
  let P, B;
16650
- return C.index === $ - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.LEFT, v.push(C)), `translate(${P}, ${B})`;
16667
+ return C.index === M - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.LEFT, v.push(C)), `translate(${P}, ${B})`;
16651
16668
  }
16652
16669
  return `translate(${C.xPosition}, ${C.yPosition})`;
16653
16670
  }), this.renderCallouts(v);
16654
16671
  const b = y(i, "donut") ? "donut" : "pie", _ = y(i, b, "alignment"), { width: E } = N.getSVGElementSize(this.getParent(), {
16655
16672
  useAttrs: !0
16656
16673
  }), x = p ? Mt.xOffset : 0, S = p ? Mt.yOffset : 0;
16657
- let M = l + x;
16658
- _ === jt.CENTER ? M = E / 2 : _ === jt.RIGHT && (M = E - l - Mt.xOffset);
16659
- let k = l + S;
16660
- v.length > 0 && (k += Mt.yOffsetCallout), r.attr("x", M + 7).attr("y", k), this.addEventListeners();
16674
+ let $ = l + x;
16675
+ _ === jt.CENTER ? $ = E / 2 : _ === jt.RIGHT && ($ = E - l - Mt.xOffset);
16676
+ let D = l + S;
16677
+ v.length > 0 && (D += Mt.yOffsetCallout), r.attr("x", $ + 7).attr("y", D), this.addEventListeners();
16661
16678
  }
16662
16679
  renderCallouts(t) {
16663
16680
  const n = N.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", ht.GROUP).attr("data-name", "callouts"), r = n.selectAll("g.callout").data(t);
@@ -16879,10 +16896,10 @@ class Ik extends mt {
16879
16896
  const { width: _ } = N.getSVGElementSize(
16880
16897
  N.appendOrSelect(t, "text.gauge-value-number"),
16881
16898
  { useBBox: !0 }
16882
- ), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width: M, height: k } = N.getSVGElementSize(S, {
16899
+ ), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width: $, height: D } = N.getSVGElementSize(S, {
16883
16900
  useBBox: !0
16884
16901
  });
16885
- S.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${M / 2}, 0)`);
16902
+ S.attr("y", `-${D / 2}px`), f.attr("transform", `translate(-${$ / 2}, 0)`);
16886
16903
  }
16887
16904
  /**
16888
16905
  * adds the delta number for the gauge
@@ -17642,7 +17659,7 @@ class Hk extends mt {
17642
17659
  const _ = Jr().domain(this.fullDataNormalized.map((O) => O[u])).range([0, 2 * Math.PI].map((O) => O - Math.PI / 2)), E = Bn(this.fullDataNormalized.map((O) => O[d])), x = Fe().domain([
17643
17660
  E >= 0 ? 0 : E,
17644
17661
  nr(this.fullDataNormalized.map((O) => O[d]))
17645
- ]).range([g, b]).nice(f), S = x.ticks(f), M = (O, w, L) => this.model.getFillColor(O, w, L), k = uD().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(ig), C = this.uniqueKeys.map((O) => {
17662
+ ]).range([g, b]).nice(f), S = x.ticks(f), $ = (O, w, L) => this.model.getFillColor(O, w, L), D = uD().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(ig), C = this.uniqueKeys.map((O) => {
17646
17663
  const w = this.getLabelDimensions(O).width, L = P2(
17647
17664
  _(O),
17648
17665
  b
@@ -17651,8 +17668,8 @@ class Hk extends mt {
17651
17668
  }), R = {
17652
17669
  x: nr(C) + h,
17653
17670
  y: i / 2
17654
- }, $ = N.appendOrSelect(n, "g.y-axes").attr("role", ht.GROUP).selectAll("path").data(S, (O) => O), H = (O) => this.uniqueKeys.map((w) => ({ [u]: w, [d]: O }));
17655
- $.join(
17671
+ }, M = N.appendOrSelect(n, "g.y-axes").attr("role", ht.GROUP).selectAll("path").data(S, (O) => O), H = (O) => this.uniqueKeys.map((w) => ({ [u]: w, [d]: O }));
17672
+ M.join(
17656
17673
  (O) => O.append("path").attr("opacity", 0).attr("transform", `translate(${R.x}, ${R.y})`).attr("fill", "none").call(
17657
17674
  (w) => w.transition().call(
17658
17675
  (L) => this.services.transitions.setupTransition({
@@ -17660,7 +17677,7 @@ class Hk extends mt {
17660
17677
  name: "radar_y_axes_enter",
17661
17678
  animate: t
17662
17679
  })
17663
- ).attr("opacity", 1).attr("d", (L) => k(H(L)))
17680
+ ).attr("opacity", 1).attr("d", (L) => D(H(L)))
17664
17681
  ),
17665
17682
  (O) => O.call(
17666
17683
  (w) => w.transition().call(
@@ -17669,7 +17686,7 @@ class Hk extends mt {
17669
17686
  name: "radar_y_axes_update",
17670
17687
  animate: t
17671
17688
  })
17672
- ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => k(H(L)))
17689
+ ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(H(L)))
17673
17690
  ),
17674
17691
  (O) => O.call(
17675
17692
  (w) => w.transition().call(
@@ -17678,7 +17695,7 @@ class Hk extends mt {
17678
17695
  name: "radar_y_axes_exit",
17679
17696
  animate: t
17680
17697
  })
17681
- ).attr("d", (L) => k(H(L))).attr("opacity", 0).remove()
17698
+ ).attr("d", (L) => D(H(L))).attr("opacity", 0).remove()
17682
17699
  )
17683
17700
  ), N.appendOrSelect(n, "g.x-axes").attr("role", ht.GROUP).selectAll("line").data(this.uniqueKeys, (O) => O).join(
17684
17701
  (O) => O.append("line").attr("opacity", 0).attr("class", (w) => `x-axis-${Tr(w)}`).attr("stroke-dasharray", "0").attr("x1", (w) => Ut(_(w), 0, R).x).attr("y1", (w) => Ut(_(w), 0, R).y).attr("x2", (w) => Ut(_(w), 0, R).x).attr("y2", (w) => Ut(_(w), 0, R).y).call(
@@ -17741,8 +17758,8 @@ class Hk extends mt {
17741
17758
  "y",
17742
17759
  (L) => Ut(_(L), x.range()[1] + h, R).y
17743
17760
  ).end().finally(() => {
17744
- const L = y(o, "radar", "alignment"), D = this.getAlignmentXOffset(L, n, this.getParent());
17745
- n.attr("x", D);
17761
+ const L = y(o, "radar", "alignment"), k = this.getAlignmentXOffset(L, n, this.getParent());
17762
+ n.attr("x", k);
17746
17763
  })
17747
17764
  ),
17748
17765
  (O) => O.call(
@@ -17765,15 +17782,15 @@ class Hk extends mt {
17765
17782
  ).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-label", (w) => w.name).attr("opacity", 0).attr(
17766
17783
  "transform",
17767
17784
  t ? () => `translate(${R.x}, ${R.y}) scale(${1 + Math.random() * 0.35})` : `translate(${R.x}, ${R.y})`
17768
- ).style("fill", (w) => M(w.name, null, w.data)).style("fill-opacity", Wn.opacity.selected).style("stroke", (w) => M(w.name, null, w.data)).call((w) => {
17785
+ ).style("fill", (w) => $(w.name, null, w.data)).style("fill-opacity", Wn.opacity.selected).style("stroke", (w) => $(w.name, null, w.data)).call((w) => {
17769
17786
  const L = w.transition().call(
17770
- (D) => this.services.transitions.setupTransition({
17771
- transition: D,
17787
+ (k) => this.services.transitions.setupTransition({
17788
+ transition: k,
17772
17789
  name: "radar_blobs_enter",
17773
17790
  animate: t
17774
17791
  })
17775
17792
  );
17776
- t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (D) => k(D.data));
17793
+ t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (k) => D(k.data));
17777
17794
  }),
17778
17795
  (O) => (O.attr(
17779
17796
  "class",
@@ -17782,19 +17799,19 @@ class Hk extends mt {
17782
17799
  dataGroupName: w.name,
17783
17800
  originalClassName: "blob"
17784
17801
  })
17785
- ).style("fill", (w) => M(w.name, null, w.data)).style("stroke", (w) => M(w.name, null, w.data)), O.call(
17802
+ ).style("fill", (w) => $(w.name, null, w.data)).style("stroke", (w) => $(w.name, null, w.data)), O.call(
17786
17803
  (w) => w.transition().call(
17787
17804
  (L) => this.services.transitions.setupTransition({
17788
17805
  transition: L,
17789
17806
  name: "radar_blobs_update",
17790
17807
  animate: t
17791
17808
  })
17792
- ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => k(L.data))
17809
+ ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(L.data))
17793
17810
  ), O),
17794
17811
  (O) => O.call((w) => {
17795
17812
  const L = w.transition().call(
17796
- (D) => this.services.transitions.setupTransition({
17797
- transition: D,
17813
+ (k) => this.services.transitions.setupTransition({
17814
+ transition: k,
17798
17815
  name: "radar_blobs_exit",
17799
17816
  animate: t
17800
17817
  })
@@ -17815,7 +17832,7 @@ class Hk extends mt {
17815
17832
  dataGroupName: O[l],
17816
17833
  originalClassName: Tr(O[u])
17817
17834
  })
17818
- ).attr("cx", (O) => Ut(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Ut(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) => M(O[l])), N.appendOrSelect(n, "g.x-axes-rect").attr("role", ht.GROUP).selectAll("rect").data(this.uniqueKeys).join(
17835
+ ).attr("cx", (O) => Ut(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Ut(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) => $(O[l])), N.appendOrSelect(n, "g.x-axes-rect").attr("role", ht.GROUP).selectAll("rect").data(this.uniqueKeys).join(
17819
17836
  (O) => O.append("rect"),
17820
17837
  (O) => O,
17821
17838
  (O) => O.remove()
@@ -18329,49 +18346,49 @@ class Gk extends mt {
18329
18346
  name: o,
18330
18347
  children: a
18331
18348
  }), p = 10, f = r / 6, g = (S) => {
18332
- const M = h.descendants().reverse(), k = h.links();
18349
+ const $ = h.descendants().reverse(), D = h.links();
18333
18350
  let C = h, R = h;
18334
- h.eachBefore((D) => {
18335
- D.x < C.x && (C = D), D.x > R.x && (R = D);
18351
+ h.eachBefore((k) => {
18352
+ k.x < C.x && (C = k), k.x > R.x && (R = k);
18336
18353
  });
18337
- const $ = R.x - C.x, H = n.transition().call(
18338
- (D) => this.services.transitions.setupTransition({
18339
- transition: D,
18354
+ const M = R.x - C.x, H = n.transition().call(
18355
+ (k) => this.services.transitions.setupTransition({
18356
+ transition: k,
18340
18357
  name: "tree-update-viewbox",
18341
18358
  animate: !0
18342
18359
  })
18343
- ).attr("viewBox", [-d.left, C.x, r, $].join(" ")), P = x.selectAll("g").data(M, (D) => D.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
18360
+ ).attr("viewBox", [-d.left, C.x, r, M].join(" ")), P = x.selectAll("g").data($, (k) => k.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
18344
18361
  "class",
18345
- (D) => D.depth !== 0 && D.children && D.children.length > 0 ? "clickable" : null
18346
- ).on("mouseover", function(D, U) {
18362
+ (k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
18363
+ ).on("mouseover", function(k, U) {
18347
18364
  B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOVER, {
18348
- event: D,
18365
+ event: k,
18349
18366
  element: I(this),
18350
18367
  datum: U
18351
18368
  });
18352
- }).on("click", function(D, U) {
18369
+ }).on("click", function(k, U) {
18353
18370
  U.depth !== 0 && (U.children = U.children ? null : U._children, g(U)), B.services.events.dispatchEvent(T.Tree.NODE_CLICK, {
18354
- event: D,
18371
+ event: k,
18355
18372
  element: I(this),
18356
18373
  datum: U
18357
18374
  });
18358
- }).on("mouseout", function(D, U) {
18375
+ }).on("mouseout", function(k, U) {
18359
18376
  B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOUT, {
18360
- event: D,
18377
+ event: k,
18361
18378
  element: I(this),
18362
18379
  datum: U
18363
18380
  });
18364
18381
  });
18365
- O.append("circle").attr("r", 2.5).attr("class", (D) => D._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (D) => D._children ? -Cr : Cr).attr("text-anchor", (D) => D._children ? "end" : "start").text((D) => D.data.name).clone(!0).attr("class", "text-stroke").lower(), P.merge(O).transition(H).attr("transform", (D) => `translate(${D.y},${D.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), P.exit().transition(H).remove().attr("transform", () => `translate(${S.y},${S.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
18366
- const w = E.selectAll("path").data(k, (D) => D.target.id), L = w.enter().append("path").attr("d", () => {
18367
- const D = { x: S.x0, y: S.y0 };
18368
- return _({ source: D, target: D });
18382
+ O.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -Cr : Cr).attr("text-anchor", (k) => k._children ? "end" : "start").text((k) => k.data.name).clone(!0).attr("class", "text-stroke").lower(), P.merge(O).transition(H).attr("transform", (k) => `translate(${k.y},${k.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), P.exit().transition(H).remove().attr("transform", () => `translate(${S.y},${S.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
18383
+ const w = E.selectAll("path").data(D, (k) => k.target.id), L = w.enter().append("path").attr("d", () => {
18384
+ const k = { x: S.x0, y: S.y0 };
18385
+ return _({ source: k, target: k });
18369
18386
  });
18370
18387
  w.merge(L).transition(H).attr("d", _), w.exit().transition(H).remove().attr("d", () => {
18371
- const D = { x: S.x, y: S.y };
18372
- return _({ source: D, target: D });
18373
- }), h.eachBefore((D) => {
18374
- D.x0 = D.x, D.y0 = D.y;
18388
+ const k = { x: S.x, y: S.y };
18389
+ return _({ source: k, target: k });
18390
+ }), h.eachBefore((k) => {
18391
+ k.x0 = k.x, k.y0 = k.y;
18375
18392
  });
18376
18393
  }, m = h.descendants(), v = m[m.length - 1].depth, b = y(s, "tree", "type") === dc.DENDROGRAM ? aL().size([
18377
18394
  i,
@@ -18380,8 +18397,8 @@ class Gk extends mt {
18380
18397
  i,
18381
18398
  r - u - v * Cr - l
18382
18399
  ]), _ = gD().x((S) => S.y).y((S) => S.x);
18383
- h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S, M) => {
18384
- S.id = M, S._children = S.children;
18400
+ h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S, $) => {
18401
+ S.id = $, S._children = S.children;
18385
18402
  }), b(h), n.attr("viewBox", [-d.left, -0, r, p]).style("user-select", "none");
18386
18403
  const E = n.append("g").attr("class", "links"), x = n.append("g").attr("class", "nodes");
18387
18404
  g(h);
@@ -18838,28 +18855,28 @@ function TN() {
18838
18855
  rectangular: m
18839
18856
  }, r = 64, i = 2048;
18840
18857
  cl = function() {
18841
- var E = [256, 256], x = s, S = a, M = l, k = o, C = o, R = c, $ = u, H = g, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, D = {}, U = b;
18842
- D.canvas = function(F) {
18843
- return arguments.length ? (U = _(F), D) : U;
18844
- }, D.start = function() {
18858
+ var E = [256, 256], x = s, S = a, $ = l, D = o, C = o, R = c, M = u, H = g, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, k = {}, U = b;
18859
+ k.canvas = function(F) {
18860
+ return arguments.length ? (U = _(F), k) : U;
18861
+ }, k.start = function() {
18845
18862
  var F = Z(U()), Y = v((E[0] >> 5) * E[1]), ot = null, Q = P.length, q = -1, tt = [], lt = P.map(function(W, X) {
18846
- return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = k.call(this, W, X), W.weight = C.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~M.call(this, W, X), W.padding = $.call(this, W, X), W;
18863
+ return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = D.call(this, W, X), W.weight = C.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~$.call(this, W, X), W.padding = M.call(this, W, X), W;
18847
18864
  }).sort(function(W, X) {
18848
18865
  return X.size - W.size;
18849
18866
  });
18850
- return w && clearInterval(w), w = setInterval(z, 0), z(), D;
18867
+ return w && clearInterval(w), w = setInterval(z, 0), z(), k;
18851
18868
  function z() {
18852
18869
  for (var W = Date.now(); Date.now() - W < B && ++q < Q && w; ) {
18853
18870
  var X = lt[q];
18854
- X.x = E[0] * (L() + 0.5) >> 1, X.y = E[1] * (L() + 0.5) >> 1, d(F, X, lt, q), X.hasText && j(Y, X, ot) && (tt.push(X), O.call("word", D, X), ot ? p(ot, X) : ot = [{ x: X.x + X.x0, y: X.y + X.y0 }, { x: X.x + X.x1, y: X.y + X.y1 }], X.x -= E[0] >> 1, X.y -= E[1] >> 1);
18871
+ X.x = E[0] * (L() + 0.5) >> 1, X.y = E[1] * (L() + 0.5) >> 1, d(F, X, lt, q), X.hasText && j(Y, X, ot) && (tt.push(X), O.call("word", k, X), ot ? p(ot, X) : ot = [{ x: X.x + X.x0, y: X.y + X.y0 }, { x: X.x + X.x1, y: X.y + X.y1 }], X.x -= E[0] >> 1, X.y -= E[1] >> 1);
18855
18872
  }
18856
- q >= Q && (D.stop(), O.call("end", D, tt, ot));
18873
+ q >= Q && (k.stop(), O.call("end", k, tt, ot));
18857
18874
  }
18858
- }, D.stop = function() {
18875
+ }, k.stop = function() {
18859
18876
  w && (clearInterval(w), w = null);
18860
18877
  for (const F of P)
18861
18878
  delete F.sprite;
18862
- return D;
18879
+ return k;
18863
18880
  };
18864
18881
  function Z(F) {
18865
18882
  const Y = F.getContext("2d", { willReadFrequently: !0 });
@@ -18881,34 +18898,34 @@ function TN() {
18881
18898
  }
18882
18899
  return !1;
18883
18900
  }
18884
- return D.timeInterval = function(F) {
18885
- return arguments.length ? (B = F ?? 1 / 0, D) : B;
18886
- }, D.words = function(F) {
18887
- return arguments.length ? (P = F, D) : P;
18888
- }, D.size = function(F) {
18889
- return arguments.length ? (E = [+F[0], +F[1]], D) : E;
18890
- }, D.font = function(F) {
18891
- return arguments.length ? (S = _(F), D) : S;
18892
- }, D.fontStyle = function(F) {
18893
- return arguments.length ? (k = _(F), D) : k;
18894
- }, D.fontWeight = function(F) {
18895
- return arguments.length ? (C = _(F), D) : C;
18896
- }, D.rotate = function(F) {
18897
- return arguments.length ? (R = _(F), D) : R;
18898
- }, D.text = function(F) {
18899
- return arguments.length ? (x = _(F), D) : x;
18900
- }, D.spiral = function(F) {
18901
- return arguments.length ? (H = n[F] || F, D) : H;
18902
- }, D.fontSize = function(F) {
18903
- return arguments.length ? (M = _(F), D) : M;
18904
- }, D.padding = function(F) {
18905
- return arguments.length ? ($ = _(F), D) : $;
18906
- }, D.random = function(F) {
18907
- return arguments.length ? (L = F, D) : L;
18908
- }, D.on = function() {
18901
+ return k.timeInterval = function(F) {
18902
+ return arguments.length ? (B = F ?? 1 / 0, k) : B;
18903
+ }, k.words = function(F) {
18904
+ return arguments.length ? (P = F, k) : P;
18905
+ }, k.size = function(F) {
18906
+ return arguments.length ? (E = [+F[0], +F[1]], k) : E;
18907
+ }, k.font = function(F) {
18908
+ return arguments.length ? (S = _(F), k) : S;
18909
+ }, k.fontStyle = function(F) {
18910
+ return arguments.length ? (D = _(F), k) : D;
18911
+ }, k.fontWeight = function(F) {
18912
+ return arguments.length ? (C = _(F), k) : C;
18913
+ }, k.rotate = function(F) {
18914
+ return arguments.length ? (R = _(F), k) : R;
18915
+ }, k.text = function(F) {
18916
+ return arguments.length ? (x = _(F), k) : x;
18917
+ }, k.spiral = function(F) {
18918
+ return arguments.length ? (H = n[F] || F, k) : H;
18919
+ }, k.fontSize = function(F) {
18920
+ return arguments.length ? ($ = _(F), k) : $;
18921
+ }, k.padding = function(F) {
18922
+ return arguments.length ? (M = _(F), k) : M;
18923
+ }, k.random = function(F) {
18924
+ return arguments.length ? (L = F, k) : L;
18925
+ }, k.on = function() {
18909
18926
  var F = O.on.apply(O, arguments);
18910
- return F === O ? D : F;
18911
- }, D;
18927
+ return F === O ? k : F;
18928
+ }, k;
18912
18929
  };
18913
18930
  function s(E) {
18914
18931
  return E.text;
@@ -18928,34 +18945,34 @@ function TN() {
18928
18945
  function u() {
18929
18946
  return 1;
18930
18947
  }
18931
- function d(E, x, S, M) {
18948
+ function d(E, x, S, $) {
18932
18949
  if (!x.sprite) {
18933
- var k = E.context, C = E.ratio;
18934
- k.clearRect(0, 0, (r << 5) / C, i / C);
18935
- var R = 0, $ = 0, H = 0, P = S.length;
18936
- for (--M; ++M < P; ) {
18937
- x = S[M], k.save(), k.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
18938
- const X = k.measureText(x.text), V = -Math.floor(X.width / 2);
18950
+ var D = E.context, C = E.ratio;
18951
+ D.clearRect(0, 0, (r << 5) / C, i / C);
18952
+ var R = 0, M = 0, H = 0, P = S.length;
18953
+ for (--$; ++$ < P; ) {
18954
+ x = S[$], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
18955
+ const X = D.measureText(x.text), V = -Math.floor(X.width / 2);
18939
18956
  let ut = (X.width + 1) * C, st = x.size << 1;
18940
18957
  if (x.rotate) {
18941
- var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B, D = st * O, U = st * B;
18942
- ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L + D), Math.abs(L - D));
18958
+ var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B, k = st * O, U = st * B;
18959
+ ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L + k), Math.abs(L - k));
18943
18960
  } else
18944
18961
  ut = ut + 31 >> 5 << 5;
18945
- if (st > H && (H = st), R + ut >= r << 5 && (R = 0, $ += H, H = 0), $ + st >= i) break;
18946
- k.translate((R + (ut >> 1)) / C, ($ + (st >> 1)) / C), x.rotate && k.rotate(x.rotate * t), k.fillText(x.text, V, 0), x.padding && (k.lineWidth = 2 * x.padding, k.strokeText(x.text, V, 0)), k.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = $, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
18962
+ if (st > H && (H = st), R + ut >= r << 5 && (R = 0, M += H, H = 0), M + st >= i) break;
18963
+ D.translate((R + (ut >> 1)) / C, (M + (st >> 1)) / C), x.rotate && D.rotate(x.rotate * t), D.fillText(x.text, V, 0), x.padding && (D.lineWidth = 2 * x.padding, D.strokeText(x.text, V, 0)), D.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = M, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
18947
18964
  }
18948
- for (var Z = k.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --M >= 0; )
18949
- if (x = S[M], !!x.hasText) {
18965
+ for (var Z = D.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --$ >= 0; )
18966
+ if (x = S[$], !!x.hasText) {
18950
18967
  for (var F = x.width, Y = F >> 5, ot = x.y1 - x.y0, Q = 0; Q < ot * Y; Q++) j[Q] = 0;
18951
18968
  if (R = x.xoff, R == null) return;
18952
- $ = x.yoff;
18969
+ M = x.yoff;
18953
18970
  for (var q = 0, tt = -1, lt = 0; lt < ot; lt++) {
18954
18971
  for (var Q = 0; Q < F; Q++) {
18955
- var z = Y * lt + (Q >> 5), W = Z[($ + lt) * (r << 5) + (R + Q) << 2] ? 1 << 31 - Q % 32 : 0;
18972
+ var z = Y * lt + (Q >> 5), W = Z[(M + lt) * (r << 5) + (R + Q) << 2] ? 1 << 31 - Q % 32 : 0;
18956
18973
  j[z] |= W, q |= W;
18957
18974
  }
18958
- q ? tt = lt : (x.y0++, ot--, lt--, $++);
18975
+ q ? tt = lt : (x.y0++, ot--, lt--, M++);
18959
18976
  }
18960
18977
  x.y1 = x.y0 + tt, x.sprite = j.slice(0, (x.y1 - x.y0) * Y);
18961
18978
  }
@@ -18963,17 +18980,17 @@ function TN() {
18963
18980
  }
18964
18981
  function h(E, x, S) {
18965
18982
  S >>= 5;
18966
- for (var M = E.sprite, k = E.width >> 5, C = E.x - (k << 4), R = C & 127, $ = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
18983
+ for (var $ = E.sprite, D = E.width >> 5, C = E.x - (D << 4), R = C & 127, M = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
18967
18984
  B = 0;
18968
- for (var w = 0; w <= k; w++)
18969
- if ((B << $ | (w < k ? (B = M[O * k + w]) >>> R : 0)) & x[P + w]) return !0;
18985
+ for (var w = 0; w <= D; w++)
18986
+ if ((B << M | (w < D ? (B = $[O * D + w]) >>> R : 0)) & x[P + w]) return !0;
18970
18987
  P += S;
18971
18988
  }
18972
18989
  return !1;
18973
18990
  }
18974
18991
  function p(E, x) {
18975
- var S = E[0], M = E[1];
18976
- x.x + x.x0 < S.x && (S.x = x.x + x.x0), x.y + x.y0 < S.y && (S.y = x.y + x.y0), x.x + x.x1 > M.x && (M.x = x.x + x.x1), x.y + x.y1 > M.y && (M.y = x.y + x.y1);
18992
+ var S = E[0], $ = E[1];
18993
+ x.x + x.x0 < S.x && (S.x = x.x + x.x0), x.y + x.y0 < S.y && (S.y = x.y + x.y0), x.x + x.x1 > $.x && ($.x = x.x + x.x1), x.y + x.y1 > $.y && ($.y = x.y + x.y1);
18977
18994
  }
18978
18995
  function f(E, x) {
18979
18996
  return E.x + E.x1 > x[0].x && E.x + E.x0 < x[1].x && E.y + E.y1 > x[0].y && E.y + E.y0 < x[1].y;
@@ -18985,24 +19002,24 @@ function TN() {
18985
19002
  };
18986
19003
  }
18987
19004
  function m(E) {
18988
- var x = 4, S = x * E[0] / E[1], M = 0, k = 0;
19005
+ var x = 4, S = x * E[0] / E[1], $ = 0, D = 0;
18989
19006
  return function(C) {
18990
19007
  var R = C < 0 ? -1 : 1;
18991
19008
  switch (Math.sqrt(1 + 4 * R * C) - R & 3) {
18992
19009
  case 0:
18993
- M += S;
19010
+ $ += S;
18994
19011
  break;
18995
19012
  case 1:
18996
- k += x;
19013
+ D += x;
18997
19014
  break;
18998
19015
  case 2:
18999
- M -= S;
19016
+ $ -= S;
19000
19017
  break;
19001
19018
  default:
19002
- k -= x;
19019
+ D -= x;
19003
19020
  break;
19004
19021
  }
19005
- return [M, k];
19022
+ return [$, D];
19006
19023
  };
19007
19024
  }
19008
19025
  function v(E) {
@@ -20572,10 +20589,10 @@ class SP extends kn {
20572
20589
  ), E = [];
20573
20590
  b.forEach((x) => {
20574
20591
  const { ...S } = x;
20575
- let M = 0, k = 0;
20592
+ let $ = 0, D = 0;
20576
20593
  Object.values(UN(S, "sharedStackKey")).forEach((C) => {
20577
- isNaN(C) || (C < 0 ? k += C : M += C);
20578
- }), E.push([k, M]);
20594
+ isNaN(C) || (C < 0 ? D += C : $ += C);
20595
+ }), E.push([D, $]);
20579
20596
  }), g = [
20580
20597
  ...hu(E),
20581
20598
  ..._.map((x) => x[c])