@carbon/charts 1.22.0 → 1.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +3 -2
  3. package/dist/{angle-utils-CGNI01fr.mjs → angle-utils-RQSA_x-9.mjs} +29 -29
  4. package/dist/{angle-utils-CGNI01fr.mjs.map → angle-utils-RQSA_x-9.mjs.map} +1 -1
  5. package/dist/{array-D7iT_STy.mjs → array-DUMAG1_w.mjs} +2 -2
  6. package/dist/{array-D7iT_STy.mjs.map → array-DUMAG1_w.mjs.map} +1 -1
  7. package/dist/{choropleth-0DsmaWsP.mjs → choropleth-C1BTZZfm.mjs} +829 -854
  8. package/dist/choropleth-C1BTZZfm.mjs.map +1 -0
  9. package/dist/{color-scale-utils-f3PWy_Op.mjs → color-scale-utils-CKd_DujW.mjs} +1380 -1375
  10. package/dist/color-scale-utils-CKd_DujW.mjs.map +1 -0
  11. package/dist/components/index.mjs +1 -1
  12. package/dist/{index-DFubnvsv.mjs → index-CiAo-vQV.mjs} +558 -534
  13. package/dist/index-CiAo-vQV.mjs.map +1 -0
  14. package/dist/index.mjs +35 -35
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/model/index.mjs +4 -4
  17. package/dist/model/index.mjs.map +1 -1
  18. package/dist/services/index.mjs +3 -3
  19. package/dist/styles.css +294 -288
  20. package/dist/styles.css.map +1 -1
  21. package/dist/styles.min.css +1 -1
  22. package/dist/styles.min.css.map +1 -1
  23. package/dist/umd/bundle.umd.cjs +17 -22
  24. package/dist/umd/bundle.umd.cjs.map +1 -1
  25. package/dist/umd/bundle.umd.js +17 -22
  26. package/package.json +23 -23
  27. package/scss/components/_axis.scss +8 -0
  28. package/styles.css +294 -288
  29. package/styles.min.css +1 -1
  30. package/telemetry.yml +1 -1
  31. package/dist/choropleth-0DsmaWsP.mjs.map +0 -1
  32. package/dist/color-scale-utils-f3PWy_Op.mjs.map +0 -1
  33. package/dist/index-DFubnvsv.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as vo, a2 as Hl, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as yo, a8 as zr, a9 as en, g as T, p as qt, a as tn, C as Fr, aa as yt, w as wt, ab as Cn, H as Yt, E as Wr, ac as Eo, ad as ks, c as Xl, ae as ye, I as yi, K as Ei, e as ee, af as mn, ag as fe, f as me, x as ge, ah as jl, h as qe, O as Yl, ai as ke, z as vt, l as jt, aj as $t, ak as ql, M as Zl, al as So, y as _t, q as un, n as Gn, am as Us, an as Kl, ao as Jl, ap as Si, aq as Xr, A as Te, ar as jr, as as xo, at as Ql } from "./color-scale-utils-f3PWy_Op.mjs";
2
- import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as zs, d as ec, F as Hn, n as Fs, H as Ws, C as Xs, p as Un, b as qr, D as js, U as nc, x as we, a0 as zn, O as Ys } from "./axis-scales-CPuwbFQf.mjs";
1
+ import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as Hl, a2 as vo, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as en, a8 as zr, a9 as yo, g as T, p as qt, a as tn, C as Fr, aa as vt, w as wt, ab as kn, E as Wr, H as Yt, ac as Eo, ad as Is, c as Xl, ae as ye, I as Si, K as xi, e as ee, af as mn, ag as fe, f as me, x as ge, ah as jl, h as qe, O as Yl, ai as Ce, z as mt, l as jt, aj as $t, ak as ql, M as Zl, al as So, y as _t, q as un, n as Un, am as Fs, an as Kl, ao as Jl, ap as bi, aq as Xr, A as Te, ar as jr, as as xo, at as Ql } from "./color-scale-utils-CKd_DujW.mjs";
2
+ import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as Ws, d as ec, F as zn, n as Xs, H as js, C as Ys, p as Fn, b as qr, D as qs, U as nc, x as we, a0 as Wn, O as Zs } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as it } from "./a11y-ePqvrObQ.mjs";
4
- import { t as es, s as R, c as Zr, e as Le, f as oe, h as Kr, g as Gt, i as ns, j as Ke, m as qs, k as Jr, l as kt, n as Qr, o as sc, q as ic, u as lr, D as _, v as rc, w as xi, G as ta, x as cr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-CGNI01fr.mjs";
5
- import { b as bo, c as lt, a as ur, s as cc } from "./array-D7iT_STy.mjs";
4
+ import { t as ss, s as R, h as Zr, e as Gt, c as Kr, f as is, g as Le, i as oe, m as Ks, j as Jr, k as Ke, l as Ct, n as sc, o as Qr, q as ic, u as ur, D as _, v as rc, w as Ti, G as ta, x as hr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-RQSA_x-9.mjs";
5
+ import { b as bo, c as lt, a as dr, s as cc } from "./array-DUMAG1_w.mjs";
6
6
  function uc(s, t, e, n) {
7
7
  for (var i = -1, r = s == null ? 0 : s.length; ++i < r; )
8
8
  e = t(e, s[i], i, s);
@@ -218,8 +218,8 @@ var Oc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
218
218
  function wc(s) {
219
219
  return Oc.test(s);
220
220
  }
221
- var To = "\\ud800-\\udfff", Lc = "\\u0300-\\u036f", Ac = "\\ufe20-\\ufe2f", Mc = "\\u20d0-\\u20ff", _c = Lc + Ac + Mc, Oo = "\\u2700-\\u27bf", wo = "a-z\\xdf-\\xf6\\xf8-\\xff", Cc = "\\xac\\xb1\\xd7\\xf7", kc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rc = "\\u2000-\\u206f", Ic = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Lo = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dc = "\\ufe0e\\ufe0f", Ao = Cc + kc + Rc + Ic, Mo = "['’]", na = "[" + Ao + "]", Pc = "[" + _c + "]", _o = "\\d+", Nc = "[" + Oo + "]", Co = "[" + wo + "]", ko = "[^" + To + Ao + _o + Oo + wo + Lo + "]", $c = "\\ud83c[\\udffb-\\udfff]", Vc = "(?:" + Pc + "|" + $c + ")", Bc = "[^" + To + "]", Ro = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xe = "[" + Lo + "]", Gc = "\\u200d", sa = "(?:" + Co + "|" + ko + ")", Hc = "(?:" + Xe + "|" + ko + ")", ia = "(?:" + Mo + "(?:d|ll|m|re|s|t|ve))?", ra = "(?:" + Mo + "(?:D|LL|M|RE|S|T|VE))?", Do = Vc + "?", Po = "[" + Dc + "]?", Uc = "(?:" + Gc + "(?:" + [Bc, Ro, Io].join("|") + ")" + Po + Do + ")*", zc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Fc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Wc = Po + Do + Uc, Xc = "(?:" + [Nc, Ro, Io].join("|") + ")" + Wc, jc = RegExp([
222
- Xe + "?" + Co + "+" + ia + "(?=" + [na, Xe, "$"].join("|") + ")",
221
+ var To = "\\ud800-\\udfff", Lc = "\\u0300-\\u036f", Ac = "\\ufe20-\\ufe2f", Mc = "\\u20d0-\\u20ff", _c = Lc + Ac + Mc, Oo = "\\u2700-\\u27bf", wo = "a-z\\xdf-\\xf6\\xf8-\\xff", kc = "\\xac\\xb1\\xd7\\xf7", Cc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rc = "\\u2000-\\u206f", Ic = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Lo = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dc = "\\ufe0e\\ufe0f", Ao = kc + Cc + Rc + Ic, Mo = "['’]", na = "[" + Ao + "]", Pc = "[" + _c + "]", _o = "\\d+", Nc = "[" + Oo + "]", ko = "[" + wo + "]", Co = "[^" + To + Ao + _o + Oo + wo + Lo + "]", $c = "\\ud83c[\\udffb-\\udfff]", Vc = "(?:" + Pc + "|" + $c + ")", Bc = "[^" + To + "]", Ro = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xe = "[" + Lo + "]", Gc = "\\u200d", sa = "(?:" + ko + "|" + Co + ")", Hc = "(?:" + Xe + "|" + Co + ")", ia = "(?:" + Mo + "(?:d|ll|m|re|s|t|ve))?", ra = "(?:" + Mo + "(?:D|LL|M|RE|S|T|VE))?", Do = Vc + "?", Po = "[" + Dc + "]?", Uc = "(?:" + Gc + "(?:" + [Bc, Ro, Io].join("|") + ")" + Po + Do + ")*", zc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Fc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Wc = Po + Do + Uc, Xc = "(?:" + [Nc, Ro, Io].join("|") + ")" + Wc, jc = RegExp([
222
+ Xe + "?" + ko + "+" + ia + "(?=" + [na, Xe, "$"].join("|") + ")",
223
223
  Hc + "+" + ra + "(?=" + [na, Xe + sa, "$"].join("|") + ")",
224
224
  Xe + "?" + sa + "+" + ia,
225
225
  Xe + "+" + ra,
@@ -244,7 +244,7 @@ function Qc(s, t, e) {
244
244
  return s === s && (e !== void 0 && (s = s <= e ? s : e), t !== void 0 && (s = s >= t ? s : t)), s;
245
245
  }
246
246
  function No(s, t, e) {
247
- return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = es(e), e = e === e ? e : 0), t !== void 0 && (t = es(t), t = t === t ? t : 0), Qc(es(s), t, e);
247
+ return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = ss(e), e = e === e ? e : 0), t !== void 0 && (t = ss(t), t = t === t ? t : 0), Qc(ss(s), t, e);
248
248
  }
249
249
  var tu = "Expected a function";
250
250
  function eu(s, t, e) {
@@ -255,7 +255,7 @@ function eu(s, t, e) {
255
255
  }, t);
256
256
  }
257
257
  var nu = Bl(function(s, t, e) {
258
- return eu(s, es(t) || 0, e);
258
+ return eu(s, ss(t) || 0, e);
259
259
  });
260
260
  function su(s, t) {
261
261
  var e = -1, n = Gl(s) ? Array(s.length) : [];
@@ -264,8 +264,8 @@ function su(s, t) {
264
264
  }), n;
265
265
  }
266
266
  function iu(s, t) {
267
- var e = vo(s) ? Hl : su;
268
- return e(s, mo(t));
267
+ var e = mo(s) ? Hl : su;
268
+ return e(s, vo(t));
269
269
  }
270
270
  var ru = 1 / 0;
271
271
  function au(s, t) {
@@ -284,8 +284,8 @@ function ou(s, t) {
284
284
  }), !!e;
285
285
  }
286
286
  function lu(s, t, e) {
287
- var n = vo(s) ? Fl : ou;
288
- return n(s, mo(t));
287
+ var n = mo(s) ? Fl : ou;
288
+ return n(s, vo(t));
289
289
  }
290
290
  class Re {
291
291
  constructor() {
@@ -321,7 +321,7 @@ function Vo(s) {
321
321
  function uu(s) {
322
322
  return s;
323
323
  }
324
- var ss = 1, is = 2, bi = 3, vn = 4, aa = 1e-6;
324
+ var rs = 1, as = 2, Oi = 3, vn = 4, aa = 1e-6;
325
325
  function hu(s) {
326
326
  return "translate(" + s + ",0)";
327
327
  }
@@ -337,18 +337,18 @@ function fu(s, t) {
337
337
  function gu() {
338
338
  return !this.__axis;
339
339
  }
340
- function Rs(s, t) {
341
- var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s === ss || s === vn ? -1 : 1, h = s === vn || s === is ? "x" : "y", d = s === ss || s === bi ? hu : du;
340
+ function Ds(s, t) {
341
+ var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s === rs || s === vn ? -1 : 1, h = s === vn || s === as ? "x" : "y", d = s === rs || s === Oi ? hu : du;
342
342
  function u(p) {
343
- var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(), k = I.exit(), G = I.enter().append("g").attr("class", "tick"), C = I.select("line"), L = I.select("text");
344
- O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G), C = C.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === ss ? "0em" : s === bi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), I = I.transition(p), C = C.transition(p), L = L.transition(p), k = k.transition(p).attr("opacity", aa).attr("transform", function(B) {
343
+ var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(), C = I.exit(), G = I.enter().append("g").attr("class", "tick"), k = I.select("line"), L = I.select("text");
344
+ O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G), k = k.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === rs ? "0em" : s === Oi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), I = I.transition(p), k = k.transition(p), L = L.transition(p), C = C.transition(p).attr("opacity", aa).attr("transform", function(B) {
345
345
  return isFinite(B = S(B)) ? d(B + c) : this.getAttribute("transform");
346
346
  }), G.attr("opacity", aa).attr("transform", function(B) {
347
347
  var D = this.parentNode.__axis;
348
348
  return d((D && isFinite(D = D(B)) ? D : S(B)) + c);
349
- })), k.remove(), O.attr("d", s === vn || s === is ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), I.attr("opacity", 1).attr("transform", function(B) {
349
+ })), C.remove(), O.attr("d", s === vn || s === as ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), I.attr("opacity", 1).attr("transform", function(B) {
350
350
  return d(S(B) + c);
351
- }), C.attr(h + "2", l * r), L.attr(h, l * m).text(g), b.filter(gu).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", s === is ? "start" : s === vn ? "end" : "middle"), b.each(function() {
351
+ }), k.attr(h + "2", l * r), L.attr(h, l * m).text(g), b.filter(gu).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", s === as ? "start" : s === vn ? "end" : "middle"), b.each(function() {
352
352
  this.__axis = S;
353
353
  });
354
354
  }
@@ -375,28 +375,28 @@ function Rs(s, t) {
375
375
  }, u;
376
376
  }
377
377
  function mu(s) {
378
- return Rs(ss, s);
378
+ return Ds(rs, s);
379
379
  }
380
380
  function vu(s) {
381
- return Rs(is, s);
381
+ return Ds(as, s);
382
382
  }
383
- function hr(s) {
384
- return Rs(bi, s);
383
+ function pr(s) {
384
+ return Ds(Oi, s);
385
385
  }
386
386
  function Bo(s) {
387
- return Rs(vn, s);
387
+ return Ds(vn, s);
388
388
  }
389
- const Ti = { capture: !0, passive: !1 };
390
- function Oi(s) {
389
+ const wi = { capture: !0, passive: !1 };
390
+ function Li(s) {
391
391
  s.preventDefault(), s.stopImmediatePropagation();
392
392
  }
393
393
  function yu(s) {
394
- var t = s.document.documentElement, e = R(s).on("dragstart.drag", Oi, Ti);
395
- "onselectstart" in t ? e.on("selectstart.drag", Oi, Ti) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
394
+ var t = s.document.documentElement, e = R(s).on("dragstart.drag", Li, wi);
395
+ "onselectstart" in t ? e.on("selectstart.drag", Li, wi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
396
396
  }
397
397
  function Eu(s, t) {
398
398
  var e = s.document.documentElement, n = R(s).on("dragstart.drag", null);
399
- t && (n.on("click.drag", Oi, Ti), setTimeout(function() {
399
+ t && (n.on("click.drag", Li, wi), setTimeout(function() {
400
400
  n.on("click.drag", null);
401
401
  }, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
402
402
  }
@@ -404,7 +404,7 @@ function Su(s, t) {
404
404
  for (var e = new Array(t), n = 0; n < t; ++n) e[n] = s(n / (t - 1));
405
405
  return e;
406
406
  }
407
- const xu = (s) => +s, Zs = (s) => () => s;
407
+ const xu = (s) => +s, Js = (s) => () => s;
408
408
  function bu(s, {
409
409
  sourceEvent: t,
410
410
  target: e,
@@ -424,10 +424,10 @@ function bu(s, {
424
424
  function Tu(s) {
425
425
  s.stopImmediatePropagation();
426
426
  }
427
- function Ks(s) {
427
+ function Qs(s) {
428
428
  s.preventDefault(), s.stopImmediatePropagation();
429
429
  }
430
- var oa = { name: "drag" }, Js = { name: "space" }, Ue = { name: "handle" }, ze = { name: "center" };
430
+ var oa = { name: "drag" }, ti = { name: "space" }, Ue = { name: "handle" }, ze = { name: "center" };
431
431
  const { abs: la, max: Rt, min: It } = Math;
432
432
  function ca(s) {
433
433
  return [+s[0], +s[1]];
@@ -435,18 +435,18 @@ function ca(s) {
435
435
  function ua(s) {
436
436
  return [ca(s[0]), ca(s[1])];
437
437
  }
438
- var rs = {
438
+ var os = {
439
439
  name: "x",
440
- handles: ["w", "e"].map(ds),
440
+ handles: ["w", "e"].map(fs),
441
441
  input: function(s, t) {
442
442
  return s == null ? null : [[+s[0], t[0][1]], [+s[1], t[1][1]]];
443
443
  },
444
444
  output: function(s) {
445
445
  return s && [s[0][0], s[1][0]];
446
446
  }
447
- }, Qs = {
447
+ }, ei = {
448
448
  name: "y",
449
- handles: ["n", "s"].map(ds),
449
+ handles: ["n", "s"].map(fs),
450
450
  input: function(s, t) {
451
451
  return s == null ? null : [[t[0][0], +s[0]], [t[1][0], +s[1]]];
452
452
  },
@@ -501,7 +501,7 @@ var rs = {
501
501
  se: 1,
502
502
  sw: 1
503
503
  };
504
- function ds(s) {
504
+ function fs(s) {
505
505
  return { type: s };
506
506
  }
507
507
  function Lu(s) {
@@ -514,7 +514,7 @@ function Au() {
514
514
  function Mu() {
515
515
  return navigator.maxTouchPoints || "ontouchstart" in this;
516
516
  }
517
- function ti(s) {
517
+ function ni(s) {
518
518
  for (; !s.__brush; ) if (!(s = s.parentNode)) return;
519
519
  return s.__brush;
520
520
  }
@@ -522,16 +522,16 @@ function _u(s) {
522
522
  return s[0][0] === s[1][0] || s[0][1] === s[1][1];
523
523
  }
524
524
  function Go() {
525
- return Cu(rs);
525
+ return ku(os);
526
526
  }
527
- function Cu(s) {
527
+ function ku(s) {
528
528
  var t = Au, e = Lu, n = Mu, i = !0, r = Wl("start", "brush", "end"), a = 6, o;
529
529
  function c(m) {
530
- var E = m.property("__brush", g).selectAll(".overlay").data([ds("overlay")]);
530
+ var E = m.property("__brush", g).selectAll(".overlay").data([fs("overlay")]);
531
531
  E.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", pe.overlay).merge(E).each(function() {
532
- var v = ti(this).extent;
532
+ var v = ni(this).extent;
533
533
  R(this).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]);
534
- }), m.selectAll(".selection").data([ds("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", pe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
534
+ }), m.selectAll(".selection").data([fs("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", pe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
535
535
  var y = m.selectAll(".handle").data(s.handles, function(v) {
536
536
  return v.type;
537
537
  });
@@ -547,9 +547,9 @@ function Cu(s) {
547
547
  }).on("interrupt.brush end.brush", function(v) {
548
548
  h(this, arguments).end(v);
549
549
  }).tween("brush", function() {
550
- var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), k = yo(O, I);
551
- function G(C) {
552
- S.selection = C === 1 && I === null ? null : k(C), l.call(v), b.brush();
550
+ var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), C = yo(O, I);
551
+ function G(k) {
552
+ S.selection = k === 1 && I === null ? null : C(k), l.call(v), b.brush();
553
553
  }
554
554
  return O !== null && I !== null ? G : G(1);
555
555
  }) : m.each(function() {
@@ -560,7 +560,7 @@ function Cu(s) {
560
560
  c.move(m, null, E);
561
561
  };
562
562
  function l() {
563
- var m = R(this), E = ti(this).selection;
563
+ var m = R(this), E = ni(this).selection;
564
564
  E ? (m.selectAll(".selection").style("display", null).attr("x", E[0][0]).attr("y", E[0][1]).attr("width", E[1][0] - E[0][0]).attr("height", E[1][1] - E[0][1]), m.selectAll(".handle").style("display", null).attr("x", function(y) {
565
565
  return y.type[y.type.length - 1] === "e" ? E[1][0] - a / 2 : E[0][0] - a / 2;
566
566
  }).attr("y", function(y) {
@@ -609,26 +609,26 @@ function Cu(s) {
609
609
  };
610
610
  function u(m) {
611
611
  if (o && !m.touches || !e.apply(this, arguments)) return;
612
- var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === Qs ? null : Ou[y], b = s === rs ? null : wu[y], O = ti(E), I = O.extent, k = O.selection, G = I[0][0], C, L, B = I[0][1], D, A, w = I[1][0], V, N, P = I[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, Z = Array.from(m.touches || [m], (nt) => {
613
- const St = nt.identifier;
614
- return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier = St, nt;
612
+ var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === ei ? null : Ou[y], b = s === os ? null : wu[y], O = ni(E), I = O.extent, C = O.selection, G = I[0][0], k, L, B = I[0][1], D, A, w = I[1][0], V, N, P = I[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, K = Array.from(m.touches || [m], (nt) => {
613
+ const Et = nt.identifier;
614
+ return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier = Et, nt;
615
615
  });
616
616
  zr(E);
617
617
  var ut = h(E, arguments, !0).beforestart();
618
618
  if (y === "overlay") {
619
- k && (J = !0);
620
- const nt = [Z[0], Z[1] || Z[0]];
621
- O.selection = k = [[
622
- C = s === Qs ? G : It(nt[0][0], nt[1][0]),
623
- D = s === rs ? B : It(nt[0][1], nt[1][1])
619
+ C && (J = !0);
620
+ const nt = [K[0], K[1] || K[0]];
621
+ O.selection = C = [[
622
+ k = s === ei ? G : It(nt[0][0], nt[1][0]),
623
+ D = s === os ? B : It(nt[0][1], nt[1][1])
624
624
  ], [
625
- V = s === Qs ? w : Rt(nt[0][0], nt[1][0]),
626
- $ = s === rs ? P : Rt(nt[0][1], nt[1][1])
627
- ]], Z.length > 1 && U(m);
625
+ V = s === ei ? w : Rt(nt[0][0], nt[1][0]),
626
+ $ = s === os ? P : Rt(nt[0][1], nt[1][1])
627
+ ]], K.length > 1 && U(m);
628
628
  } else
629
- C = k[0][0], D = k[0][1], V = k[1][0], $ = k[1][1];
630
- L = C, A = D, N = V, X = $;
631
- var ht = R(E).attr("pointer-events", "none"), Et = ht.selectAll(".overlay").attr("cursor", pe[y]);
629
+ k = C[0][0], D = C[0][1], V = C[1][0], $ = C[1][1];
630
+ L = k, A = D, N = V, X = $;
631
+ var ht = R(E).attr("pointer-events", "none"), yt = ht.selectAll(".overlay").attr("cursor", pe[y]);
632
632
  if (m.touches)
633
633
  ut.moved = H, ut.ended = W;
634
634
  else {
@@ -637,36 +637,36 @@ function Cu(s) {
637
637
  }
638
638
  l.call(E), ut.start(m, v.name);
639
639
  function H(nt) {
640
- for (const St of nt.changedTouches || [nt])
641
- for (const ie of Z)
642
- ie.identifier === St.identifier && (ie.cur = en(St, E));
643
- if (ct && !Q && !j && Z.length === 1) {
644
- const St = Z[0];
645
- la(St.cur[0] - St[0]) > la(St.cur[1] - St[1]) ? j = !0 : Q = !0;
640
+ for (const Et of nt.changedTouches || [nt])
641
+ for (const ie of K)
642
+ ie.identifier === Et.identifier && (ie.cur = en(Et, E));
643
+ if (ct && !Q && !j && K.length === 1) {
644
+ const Et = K[0];
645
+ la(Et.cur[0] - Et[0]) > la(Et.cur[1] - Et[1]) ? j = !0 : Q = !0;
646
646
  }
647
- for (const St of Z)
648
- St.cur && (St[0] = St.cur[0], St[1] = St.cur[1]);
649
- J = !0, Ks(nt), U(nt);
647
+ for (const Et of K)
648
+ Et.cur && (Et[0] = Et.cur[0], Et[1] = Et.cur[1]);
649
+ J = !0, Qs(nt), U(nt);
650
650
  }
651
651
  function U(nt) {
652
- const St = Z[0], ie = St.point0;
652
+ const Et = K[0], ie = Et.point0;
653
653
  var te;
654
- switch (F = St[0] - ie[0], et = St[1] - ie[1], v) {
655
- case Js:
654
+ switch (F = Et[0] - ie[0], et = Et[1] - ie[1], v) {
655
+ case ti:
656
656
  case oa: {
657
- S && (F = Rt(G - C, It(w - V, F)), L = C + F, N = V + F), b && (et = Rt(B - D, It(P - $, et)), A = D + et, X = $ + et);
657
+ S && (F = Rt(G - k, It(w - V, F)), L = k + F, N = V + F), b && (et = Rt(B - D, It(P - $, et)), A = D + et, X = $ + et);
658
658
  break;
659
659
  }
660
660
  case Ue: {
661
- Z[1] ? (S && (L = Rt(G, It(w, Z[0][0])), N = Rt(G, It(w, Z[1][0])), S = 1), b && (A = Rt(B, It(P, Z[0][1])), X = Rt(B, It(P, Z[1][1])), b = 1)) : (S < 0 ? (F = Rt(G - C, It(w - C, F)), L = C + F, N = V) : S > 0 && (F = Rt(G - V, It(w - V, F)), L = C, N = V + F), b < 0 ? (et = Rt(B - D, It(P - D, et)), A = D + et, X = $) : b > 0 && (et = Rt(B - $, It(P - $, et)), A = D, X = $ + et));
661
+ K[1] ? (S && (L = Rt(G, It(w, K[0][0])), N = Rt(G, It(w, K[1][0])), S = 1), b && (A = Rt(B, It(P, K[0][1])), X = Rt(B, It(P, K[1][1])), b = 1)) : (S < 0 ? (F = Rt(G - k, It(w - k, F)), L = k + F, N = V) : S > 0 && (F = Rt(G - V, It(w - V, F)), L = k, N = V + F), b < 0 ? (et = Rt(B - D, It(P - D, et)), A = D + et, X = $) : b > 0 && (et = Rt(B - $, It(P - $, et)), A = D, X = $ + et));
662
662
  break;
663
663
  }
664
664
  case ze: {
665
- S && (L = Rt(G, It(w, C - F * S)), N = Rt(G, It(w, V + F * S))), b && (A = Rt(B, It(P, D - et * b)), X = Rt(B, It(P, $ + et * b)));
665
+ S && (L = Rt(G, It(w, k - F * S)), N = Rt(G, It(w, V + F * S))), b && (A = Rt(B, It(P, D - et * b)), X = Rt(B, It(P, $ + et * b)));
666
666
  break;
667
667
  }
668
668
  }
669
- N < L && (S *= -1, te = C, C = V, V = te, te = L, L = N, N = te, y in ha && Et.attr("cursor", pe[y = ha[y]])), X < A && (b *= -1, te = D, D = $, $ = te, te = A, A = X, X = te, y in da && Et.attr("cursor", pe[y = da[y]])), O.selection && (k = O.selection), Q && (L = k[0][0], N = k[1][0]), j && (A = k[0][1], X = k[1][1]), (k[0][0] !== L || k[0][1] !== A || k[1][0] !== N || k[1][1] !== X) && (O.selection = [[L, A], [N, X]], l.call(E), ut.brush(nt, v.name));
669
+ N < L && (S *= -1, te = k, k = V, V = te, te = L, L = N, N = te, y in ha && yt.attr("cursor", pe[y = ha[y]])), X < A && (b *= -1, te = D, D = $, $ = te, te = A, A = X, X = te, y in da && yt.attr("cursor", pe[y = da[y]])), O.selection && (C = O.selection), Q && (L = C[0][0], N = C[1][0]), j && (A = C[0][1], X = C[1][1]), (C[0][0] !== L || C[0][1] !== A || C[1][0] !== N || C[1][1] !== X) && (O.selection = [[L, A], [N, X]], l.call(E), ut.brush(nt, v.name));
670
670
  }
671
671
  function W(nt) {
672
672
  if (Tu(nt), nt.touches) {
@@ -676,7 +676,7 @@ function Cu(s) {
676
676
  }, 500);
677
677
  } else
678
678
  Eu(nt.view, J), Ut.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
679
- ht.attr("pointer-events", "all"), Et.attr("cursor", pe.overlay), O.selection && (k = O.selection), _u(k) && (O.selection = null, l.call(E)), ut.end(nt, v.name);
679
+ ht.attr("pointer-events", "all"), yt.attr("cursor", pe.overlay), O.selection && (C = O.selection), _u(C) && (O.selection = null, l.call(E)), ut.end(nt, v.name);
680
680
  }
681
681
  function zt(nt) {
682
682
  switch (nt.keyCode) {
@@ -685,17 +685,17 @@ function Cu(s) {
685
685
  break;
686
686
  }
687
687
  case 18: {
688
- v === Ue && (S && (V = N - F * S, C = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze, U(nt));
688
+ v === Ue && (S && (V = N - F * S, k = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze, U(nt));
689
689
  break;
690
690
  }
691
691
  case 32: {
692
- (v === Ue || v === ze) && (S < 0 ? V = N - F : S > 0 && (C = L - F), b < 0 ? $ = X - et : b > 0 && (D = A - et), v = Js, Et.attr("cursor", pe.selection), U(nt));
692
+ (v === Ue || v === ze) && (S < 0 ? V = N - F : S > 0 && (k = L - F), b < 0 ? $ = X - et : b > 0 && (D = A - et), v = ti, yt.attr("cursor", pe.selection), U(nt));
693
693
  break;
694
694
  }
695
695
  default:
696
696
  return;
697
697
  }
698
- Ks(nt);
698
+ Qs(nt);
699
699
  }
700
700
  function an(nt) {
701
701
  switch (nt.keyCode) {
@@ -704,17 +704,17 @@ function Cu(s) {
704
704
  break;
705
705
  }
706
706
  case 18: {
707
- v === ze && (S < 0 ? V = N : S > 0 && (C = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue, U(nt));
707
+ v === ze && (S < 0 ? V = N : S > 0 && (k = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue, U(nt));
708
708
  break;
709
709
  }
710
710
  case 32: {
711
- v === Js && (nt.altKey ? (S && (V = N - F * S, C = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze) : (S < 0 ? V = N : S > 0 && (C = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue), Et.attr("cursor", pe[y]), U(nt));
711
+ v === ti && (nt.altKey ? (S && (V = N - F * S, k = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze) : (S < 0 ? V = N : S > 0 && (k = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue), yt.attr("cursor", pe[y]), U(nt));
712
712
  break;
713
713
  }
714
714
  default:
715
715
  return;
716
716
  }
717
- Ks(nt);
717
+ Qs(nt);
718
718
  }
719
719
  }
720
720
  function p(m) {
@@ -728,11 +728,11 @@ function Cu(s) {
728
728
  return m.extent = ua(t.apply(this, arguments)), m.dim = s, m;
729
729
  }
730
730
  return c.extent = function(m) {
731
- return arguments.length ? (t = typeof m == "function" ? m : Zs(ua(m)), c) : t;
731
+ return arguments.length ? (t = typeof m == "function" ? m : Js(ua(m)), c) : t;
732
732
  }, c.filter = function(m) {
733
- return arguments.length ? (e = typeof m == "function" ? m : Zs(!!m), c) : e;
733
+ return arguments.length ? (e = typeof m == "function" ? m : Js(!!m), c) : e;
734
734
  }, c.touchable = function(m) {
735
- return arguments.length ? (n = typeof m == "function" ? m : Zs(!!m), c) : n;
735
+ return arguments.length ? (n = typeof m == "function" ? m : Js(!!m), c) : n;
736
736
  }, c.handleSize = function(m) {
737
737
  return arguments.length ? (a = +m, c) : a;
738
738
  }, c.keyModifiers = function(m) {
@@ -742,7 +742,7 @@ function Cu(s) {
742
742
  return m === r ? c : m;
743
743
  }, c;
744
744
  }
745
- const wi = Math.PI, Li = 2 * wi, Ae = 1e-6, ku = Li - Ae;
745
+ const Ai = Math.PI, Mi = 2 * Ai, Ae = 1e-6, Cu = Mi - Ae;
746
746
  function Ho(s) {
747
747
  this._ += s[0];
748
748
  for (let t = 1, e = s.length; t < e; ++t)
@@ -759,7 +759,7 @@ function Ru(s) {
759
759
  this._ += Math.round(arguments[i] * e) / e + n[i];
760
760
  };
761
761
  }
762
- let dr = class {
762
+ let fr = class {
763
763
  constructor(t) {
764
764
  this._x0 = this._y0 = // start of current subpath
765
765
  this._x1 = this._y1 = null, this._ = "", this._append = t == null ? Ho : Ru(t);
@@ -787,14 +787,14 @@ let dr = class {
787
787
  else if (u > Ae) if (!(Math.abs(d * c - l * h) > Ae) || !r)
788
788
  this._append`L${this._x1 = t},${this._y1 = e}`;
789
789
  else {
790
- let p = n - a, f = i - o, g = c * c + l * l, m = p * p + f * f, E = Math.sqrt(g), y = Math.sqrt(u), v = r * Math.tan((wi - Math.acos((g + u - m) / (2 * E * y))) / 2), S = v / y, b = v / E;
790
+ let p = n - a, f = i - o, g = c * c + l * l, m = p * p + f * f, E = Math.sqrt(g), y = Math.sqrt(u), v = r * Math.tan((Ai - Math.acos((g + u - m) / (2 * E * y))) / 2), S = v / y, b = v / E;
791
791
  Math.abs(S - 1) > Ae && this._append`L${t + S * h},${e + S * d}`, this._append`A${r},${r},0,0,${+(d * p > h * f)},${this._x1 = t + b * c},${this._y1 = e + b * l}`;
792
792
  }
793
793
  }
794
794
  arc(t, e, n, i, r, a) {
795
795
  if (t = +t, e = +e, n = +n, a = !!a, n < 0) throw new Error(`negative radius: ${n}`);
796
796
  let o = n * Math.cos(i), c = n * Math.sin(i), l = t + o, h = e + c, d = 1 ^ a, u = a ? i - r : r - i;
797
- this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > Ae || Math.abs(this._y1 - h) > Ae) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Li + Li), u > ku ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > Ae && this._append`A${n},${n},0,${+(u >= wi)},${d},${this._x1 = t + n * Math.cos(r)},${this._y1 = e + n * Math.sin(r)}`);
797
+ this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > Ae || Math.abs(this._y1 - h) > Ae) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Mi + Mi), u > Cu ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > Ae && this._append`A${n},${n},0,${+(u >= Ai)},${d},${this._x1 = t + n * Math.cos(r)},${this._y1 = e + n * Math.sin(r)}`);
798
798
  }
799
799
  rect(t, e, n, i) {
800
800
  this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}h${n = +n}v${+i}h${-n}Z`;
@@ -803,10 +803,10 @@ let dr = class {
803
803
  return this._;
804
804
  }
805
805
  };
806
- function Is() {
807
- return new dr();
806
+ function Ps() {
807
+ return new fr();
808
808
  }
809
- Is.prototype = dr.prototype;
809
+ Ps.prototype = fr.prototype;
810
810
  var pt = 1e-6, Uo = 1e-12, at = Math.PI, Ht = at / 2, pa = at / 4, Wt = at * 2, Nt = 180 / at, Tt = at / 180, ft = Math.abs, zo = Math.atan, Ie = Math.atan2, gt = Math.cos, Iu = Math.exp, Du = Math.log, dt = Math.sin, be = Math.sign || function(s) {
811
811
  return s > 0 ? 1 : s < 0 ? -1 : 0;
812
812
  }, se = Math.sqrt, Pu = Math.tan;
@@ -818,15 +818,15 @@ function Ee(s) {
818
818
  }
819
819
  function Kt() {
820
820
  }
821
- function ps(s, t) {
821
+ function gs(s, t) {
822
822
  s && ga.hasOwnProperty(s.type) && ga[s.type](s, t);
823
823
  }
824
824
  var fa = {
825
825
  Feature: function(s, t) {
826
- ps(s.geometry, t);
826
+ gs(s.geometry, t);
827
827
  },
828
828
  FeatureCollection: function(s, t) {
829
- for (var e = s.features, n = -1, i = e.length; ++n < i; ) ps(e[n].geometry, t);
829
+ for (var e = s.features, n = -1, i = e.length; ++n < i; ) gs(e[n].geometry, t);
830
830
  }
831
831
  }, ga = {
832
832
  Sphere: function(s, t) {
@@ -839,10 +839,10 @@ var fa = {
839
839
  for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) s = e[n], t.point(s[0], s[1], s[2]);
840
840
  },
841
841
  LineString: function(s, t) {
842
- Ai(s.coordinates, t, 0);
842
+ _i(s.coordinates, t, 0);
843
843
  },
844
844
  MultiLineString: function(s, t) {
845
- for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) Ai(e[n], t, 0);
845
+ for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) _i(e[n], t, 0);
846
846
  },
847
847
  Polygon: function(s, t) {
848
848
  ma(s.coordinates, t);
@@ -851,46 +851,46 @@ var fa = {
851
851
  for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) ma(e[n], t);
852
852
  },
853
853
  GeometryCollection: function(s, t) {
854
- for (var e = s.geometries, n = -1, i = e.length; ++n < i; ) ps(e[n], t);
854
+ for (var e = s.geometries, n = -1, i = e.length; ++n < i; ) gs(e[n], t);
855
855
  }
856
856
  };
857
- function Ai(s, t, e) {
857
+ function _i(s, t, e) {
858
858
  var n = -1, i = s.length - e, r;
859
859
  for (t.lineStart(); ++n < i; ) r = s[n], t.point(r[0], r[1], r[2]);
860
860
  t.lineEnd();
861
861
  }
862
862
  function ma(s, t) {
863
863
  var e = -1, n = s.length;
864
- for (t.polygonStart(); ++e < n; ) Ai(s[e], t, 1);
864
+ for (t.polygonStart(); ++e < n; ) _i(s[e], t, 1);
865
865
  t.polygonEnd();
866
866
  }
867
867
  function je(s, t) {
868
- s && fa.hasOwnProperty(s.type) ? fa[s.type](s, t) : ps(s, t);
868
+ s && fa.hasOwnProperty(s.type) ? fa[s.type](s, t) : gs(s, t);
869
869
  }
870
- function Mi(s) {
870
+ function ki(s) {
871
871
  return [Ie(s[1], s[0]), Ee(s[2])];
872
872
  }
873
873
  function nn(s) {
874
874
  var t = s[0], e = s[1], n = gt(e);
875
875
  return [n * gt(t), n * dt(t), dt(e)];
876
876
  }
877
- function Fn(s, t) {
877
+ function Xn(s, t) {
878
878
  return s[0] * t[0] + s[1] * t[1] + s[2] * t[2];
879
879
  }
880
- function fs(s, t) {
880
+ function ms(s, t) {
881
881
  return [s[1] * t[2] - s[2] * t[1], s[2] * t[0] - s[0] * t[2], s[0] * t[1] - s[1] * t[0]];
882
882
  }
883
- function ei(s, t) {
883
+ function si(s, t) {
884
884
  s[0] += t[0], s[1] += t[1], s[2] += t[2];
885
885
  }
886
- function Wn(s, t) {
886
+ function jn(s, t) {
887
887
  return [s[0] * t, s[1] * t, s[2] * t];
888
888
  }
889
- function _i(s) {
889
+ function Ci(s) {
890
890
  var t = se(s[0] * s[0] + s[1] * s[1] + s[2] * s[2]);
891
891
  s[0] /= t, s[1] /= t, s[2] /= t;
892
892
  }
893
- function Ci(s, t) {
893
+ function Ri(s, t) {
894
894
  function e(n, i) {
895
895
  return n = s(n, i), t(n[0], n[1]);
896
896
  }
@@ -898,12 +898,12 @@ function Ci(s, t) {
898
898
  return n = t.invert(n, i), n && s.invert(n[0], n[1]);
899
899
  }), e;
900
900
  }
901
- function ki(s, t) {
901
+ function Ii(s, t) {
902
902
  return ft(s) > at && (s -= Math.round(s / Wt) * Wt), [s, t];
903
903
  }
904
- ki.invert = ki;
904
+ Ii.invert = Ii;
905
905
  function Fo(s, t, e) {
906
- return (s %= Wt) ? t || e ? Ci(ya(s), Ea(t, e)) : ya(s) : t || e ? Ea(t, e) : ki;
906
+ return (s %= Wt) ? t || e ? Ri(ya(s), Ea(t, e)) : ya(s) : t || e ? Ea(t, e) : Ii;
907
907
  }
908
908
  function va(s) {
909
909
  return function(t, e) {
@@ -945,11 +945,11 @@ function Vu(s, t, e, n, i, r) {
945
945
  var a = gt(t), o = dt(t), c = n * e;
946
946
  i == null ? (i = t + n * Wt, r = t - c / 2) : (i = Sa(a, i), r = Sa(a, r), (n > 0 ? i < r : i > r) && (i += n * Wt));
947
947
  for (var l, h = i; n > 0 ? h > r : h < r; h -= c)
948
- l = Mi([a, -o * gt(h), -o * dt(h)]), s.point(l[0], l[1]);
948
+ l = ki([a, -o * gt(h), -o * dt(h)]), s.point(l[0], l[1]);
949
949
  }
950
950
  }
951
951
  function Sa(s, t) {
952
- t = nn(t), t[0] -= s, _i(t);
952
+ t = nn(t), t[0] -= s, Ci(t);
953
953
  var e = Nu(-t[1]);
954
954
  return ((-t[2] < 0 ? -e : e) + Wt - pt) % Wt;
955
955
  }
@@ -972,10 +972,10 @@ function Wo() {
972
972
  }
973
973
  };
974
974
  }
975
- function as(s, t) {
975
+ function ls(s, t) {
976
976
  return ft(s[0] - t[0]) < pt && ft(s[1] - t[1]) < pt;
977
977
  }
978
- function Xn(s, t, e, n) {
978
+ function Yn(s, t, e, n) {
979
979
  this.x = s, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
980
980
  }
981
981
  function Xo(s, t, e, n, i) {
@@ -983,7 +983,7 @@ function Xo(s, t, e, n, i) {
983
983
  if (s.forEach(function(f) {
984
984
  if (!((g = f.length - 1) <= 0)) {
985
985
  var g, m = f[0], E = f[g], y;
986
- if (as(m, E)) {
986
+ if (ls(m, E)) {
987
987
  if (!m[2] && !E[2]) {
988
988
  for (i.lineStart(), o = 0; o < g; ++o) i.point((m = f[o])[0], m[1]);
989
989
  i.lineEnd();
@@ -991,7 +991,7 @@ function Xo(s, t, e, n, i) {
991
991
  }
992
992
  E[0] += 2 * pt;
993
993
  }
994
- r.push(y = new Xn(m, f, null, !0)), a.push(y.o = new Xn(m, null, y, !1)), r.push(y = new Xn(E, f, null, !1)), a.push(y.o = new Xn(E, null, y, !0));
994
+ r.push(y = new Yn(m, f, null, !0)), a.push(y.o = new Yn(m, null, y, !1)), r.push(y = new Yn(E, f, null, !1)), a.push(y.o = new Yn(E, null, y, !0));
995
995
  }
996
996
  }), !!r.length) {
997
997
  for (a.sort(t), xa(r), xa(a), o = 0, c = a.length; o < c; ++o)
@@ -1026,23 +1026,23 @@ function xa(s) {
1026
1026
  n.n = i = s[0], i.p = n;
1027
1027
  }
1028
1028
  }
1029
- function ni(s) {
1029
+ function ii(s) {
1030
1030
  return ft(s[0]) <= at ? s[0] : be(s[0]) * ((ft(s[0]) + at) % Wt - at);
1031
1031
  }
1032
1032
  function Bu(s, t) {
1033
- var e = ni(t), n = t[1], i = dt(n), r = [dt(e), -gt(e), 0], a = 0, o = 0, c = new Re();
1033
+ var e = ii(t), n = t[1], i = dt(n), r = [dt(e), -gt(e), 0], a = 0, o = 0, c = new Re();
1034
1034
  i === 1 ? n = Ht + pt : i === -1 && (n = -Ht - pt);
1035
1035
  for (var l = 0, h = s.length; l < h; ++l)
1036
1036
  if (u = (d = s[l]).length)
1037
- for (var d, u, p = d[u - 1], f = ni(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = I, p = v) {
1038
- var v = d[y], S = ni(v), b = v[1] / 2 + pa, O = dt(b), I = gt(b), k = S - f, G = k >= 0 ? 1 : -1, C = G * k, L = C > at, B = m * O;
1039
- if (c.add(Ie(B * G * dt(C), E * I + B * gt(C))), a += L ? k + G * Wt : k, L ^ f >= e ^ S >= e) {
1040
- var D = fs(nn(p), nn(v));
1041
- _i(D);
1042
- var A = fs(r, D);
1043
- _i(A);
1044
- var w = (L ^ k >= 0 ? -1 : 1) * Ee(A[2]);
1045
- (n > w || n === w && (D[0] || D[1])) && (o += L ^ k >= 0 ? 1 : -1);
1037
+ for (var d, u, p = d[u - 1], f = ii(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = I, p = v) {
1038
+ var v = d[y], S = ii(v), b = v[1] / 2 + pa, O = dt(b), I = gt(b), C = S - f, G = C >= 0 ? 1 : -1, k = G * C, L = k > at, B = m * O;
1039
+ if (c.add(Ie(B * G * dt(k), E * I + B * gt(k))), a += L ? C + G * Wt : C, L ^ f >= e ^ S >= e) {
1040
+ var D = ms(nn(p), nn(v));
1041
+ Ci(D);
1042
+ var A = ms(r, D);
1043
+ Ci(A);
1044
+ var w = (L ^ C >= 0 ? -1 : 1) * Ee(A[2]);
1045
+ (n > w || n === w && (D[0] || D[1])) && (o += L ^ C >= 0 ? 1 : -1);
1046
1046
  }
1047
1047
  }
1048
1048
  return (a < -pt || a < pt && c < -Uo) ^ o & 1;
@@ -1085,11 +1085,11 @@ function jo(s, t, e, n) {
1085
1085
  }
1086
1086
  function v() {
1087
1087
  E(d[0][0], d[0][1]), o.lineEnd();
1088
- var S = o.clean(), b = a.result(), O, I = b.length, k, G, C;
1088
+ var S = o.clean(), b = a.result(), O, I = b.length, C, G, k;
1089
1089
  if (d.pop(), l.push(d), d = null, !!I) {
1090
1090
  if (S & 1) {
1091
- if (G = b[0], (k = G.length - 1) > 0) {
1092
- for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O < k; ++O) i.point((C = G[O])[0], C[1]);
1091
+ if (G = b[0], (C = G.length - 1) > 0) {
1092
+ for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O < C; ++O) i.point((k = G[O])[0], k[1]);
1093
1093
  i.lineEnd();
1094
1094
  }
1095
1095
  return;
@@ -1162,13 +1162,13 @@ function Wu(s) {
1162
1162
  },
1163
1163
  point: function(m, E) {
1164
1164
  var y = [m, E], v, S = a(m, E), b = n ? S ? 0 : l(m, E) : S ? l(m + (m < 0 ? at : -at), E) : 0;
1165
- if (!d && (f = p = S) && h.lineStart(), S !== p && (v = c(d, y), (!v || as(d, v) || as(y, v)) && (y[2] = 1)), S !== p)
1165
+ if (!d && (f = p = S) && h.lineStart(), S !== p && (v = c(d, y), (!v || ls(d, v) || ls(y, v)) && (y[2] = 1)), S !== p)
1166
1166
  g = 0, S ? (h.lineStart(), v = c(y, d), h.point(v[0], v[1])) : (v = c(d, y), h.point(v[0], v[1], 2), h.lineEnd()), d = v;
1167
1167
  else if (i && d && n ^ S) {
1168
1168
  var O;
1169
1169
  !(b & u) && (O = c(y, d, !0)) && (g = 0, n ? (h.lineStart(), h.point(O[0][0], O[0][1]), h.point(O[1][0], O[1][1]), h.lineEnd()) : (h.point(O[1][0], O[1][1]), h.lineEnd(), h.lineStart(), h.point(O[0][0], O[0][1], 3)));
1170
1170
  }
1171
- S && (!d || !as(d, y)) && h.point(y[0], y[1]), d = y, p = S, u = b;
1171
+ S && (!d || !ls(d, y)) && h.point(y[0], y[1]), d = y, p = S, u = b;
1172
1172
  },
1173
1173
  lineEnd: function() {
1174
1174
  p && h.lineEnd(), d = null;
@@ -1181,20 +1181,20 @@ function Wu(s) {
1181
1181
  };
1182
1182
  }
1183
1183
  function c(h, d, u) {
1184
- var p = nn(h), f = nn(d), g = [1, 0, 0], m = fs(p, f), E = Fn(m, m), y = m[0], v = E - y * y;
1184
+ var p = nn(h), f = nn(d), g = [1, 0, 0], m = ms(p, f), E = Xn(m, m), y = m[0], v = E - y * y;
1185
1185
  if (!v) return !u && h;
1186
- var S = t * E / v, b = -t * y / v, O = fs(g, m), I = Wn(g, S), k = Wn(m, b);
1187
- ei(I, k);
1188
- var G = O, C = Fn(I, G), L = Fn(G, G), B = C * C - L * (Fn(I, I) - 1);
1186
+ var S = t * E / v, b = -t * y / v, O = ms(g, m), I = jn(g, S), C = jn(m, b);
1187
+ si(I, C);
1188
+ var G = O, k = Xn(I, G), L = Xn(G, G), B = k * k - L * (Xn(I, I) - 1);
1189
1189
  if (!(B < 0)) {
1190
- var D = se(B), A = Wn(G, (-C - D) / L);
1191
- if (ei(A, I), A = Mi(A), !u) return A;
1190
+ var D = se(B), A = jn(G, (-k - D) / L);
1191
+ if (si(A, I), A = ki(A), !u) return A;
1192
1192
  var w = h[0], V = d[0], N = h[1], P = d[1], $;
1193
1193
  V < w && ($ = w, w = V, V = $);
1194
1194
  var X = V - w, F = ft(X - at) < pt, et = F || X < pt;
1195
1195
  if (!F && P < N && ($ = N, N = P, P = $), et ? F ? N + P > 0 ^ A[1] < (ft(A[0] - w) < pt ? N : P) : N <= A[1] && A[1] <= P : X > at ^ (w <= A[0] && A[0] <= V)) {
1196
- var J = Wn(G, (-C + D) / L);
1197
- return ei(J, I), [A, Mi(J)];
1196
+ var J = jn(G, (-k + D) / L);
1197
+ return si(J, I), [A, ki(J)];
1198
1198
  }
1199
1199
  }
1200
1200
  }
@@ -1244,7 +1244,7 @@ function Xu(s, t, e, n, i, r) {
1244
1244
  }
1245
1245
  }
1246
1246
  }
1247
- var yn = 1e9, jn = -yn;
1247
+ var yn = 1e9, qn = -yn;
1248
1248
  function ju(s, t, e, n) {
1249
1249
  function i(l, h) {
1250
1250
  return s <= l && l <= e && t <= h && h <= n;
@@ -1270,13 +1270,13 @@ function ju(s, t, e, n) {
1270
1270
  }
1271
1271
  return function(l) {
1272
1272
  var h = l, d = Wo(), u, p, f, g, m, E, y, v, S, b, O, I = {
1273
- point: k,
1273
+ point: C,
1274
1274
  lineStart: B,
1275
1275
  lineEnd: D,
1276
- polygonStart: C,
1276
+ polygonStart: k,
1277
1277
  polygonEnd: L
1278
1278
  };
1279
- function k(w, V) {
1279
+ function C(w, V) {
1280
1280
  i(w, V) && h.point(w, V);
1281
1281
  }
1282
1282
  function G() {
@@ -1285,7 +1285,7 @@ function ju(s, t, e, n) {
1285
1285
  et = ct, J = Q, F = P[$], ct = F[0], Q = F[1], J <= n ? Q > n && (ct - et) * (n - J) > (Q - J) * (s - et) && ++w : Q <= n && (ct - et) * (n - J) < (Q - J) * (s - et) && --w;
1286
1286
  return w;
1287
1287
  }
1288
- function C() {
1288
+ function k() {
1289
1289
  h = d, u = [], p = [], O = !0;
1290
1290
  }
1291
1291
  function L() {
@@ -1296,7 +1296,7 @@ function ju(s, t, e, n) {
1296
1296
  I.point = A, p && p.push(f = []), b = !0, S = !1, y = v = NaN;
1297
1297
  }
1298
1298
  function D() {
1299
- u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point = k, S && h.lineEnd();
1299
+ u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point = C, S && h.lineEnd();
1300
1300
  }
1301
1301
  function A(w, V) {
1302
1302
  var N = i(w, V);
@@ -1304,7 +1304,7 @@ function ju(s, t, e, n) {
1304
1304
  g = w, m = V, E = N, b = !1, N && (h.lineStart(), h.point(w, V));
1305
1305
  else if (N && S) h.point(w, V);
1306
1306
  else {
1307
- var P = [y = Math.max(jn, Math.min(yn, y)), v = Math.max(jn, Math.min(yn, v))], $ = [w = Math.max(jn, Math.min(yn, w)), V = Math.max(jn, Math.min(yn, V))];
1307
+ var P = [y = Math.max(qn, Math.min(yn, y)), v = Math.max(qn, Math.min(yn, v))], $ = [w = Math.max(qn, Math.min(yn, w)), V = Math.max(qn, Math.min(yn, V))];
1308
1308
  Xu(P, $, s, t, e, n) ? (S || (h.lineStart(), h.point(P[0], P[1])), h.point($[0], $[1]), N || h.lineEnd(), O = !1) : N && (h.lineStart(), h.point(w, V), O = !1);
1309
1309
  }
1310
1310
  y = w, v = V, S = N;
@@ -1312,8 +1312,8 @@ function ju(s, t, e, n) {
1312
1312
  return I;
1313
1313
  };
1314
1314
  }
1315
- const Ri = (s) => s;
1316
- var si = new Re(), Ii = new Re(), Yo, qo, Di, Pi, ve = {
1315
+ const Di = (s) => s;
1316
+ var ri = new Re(), Pi = new Re(), Yo, qo, Ni, $i, ve = {
1317
1317
  point: Kt,
1318
1318
  lineStart: Kt,
1319
1319
  lineEnd: Kt,
@@ -1321,40 +1321,40 @@ var si = new Re(), Ii = new Re(), Yo, qo, Di, Pi, ve = {
1321
1321
  ve.lineStart = Yu, ve.lineEnd = Zu;
1322
1322
  },
1323
1323
  polygonEnd: function() {
1324
- ve.lineStart = ve.lineEnd = ve.point = Kt, si.add(ft(Ii)), Ii = new Re();
1324
+ ve.lineStart = ve.lineEnd = ve.point = Kt, ri.add(ft(Pi)), Pi = new Re();
1325
1325
  },
1326
1326
  result: function() {
1327
- var s = si / 2;
1328
- return si = new Re(), s;
1327
+ var s = ri / 2;
1328
+ return ri = new Re(), s;
1329
1329
  }
1330
1330
  };
1331
1331
  function Yu() {
1332
1332
  ve.point = qu;
1333
1333
  }
1334
1334
  function qu(s, t) {
1335
- ve.point = Zo, Yo = Di = s, qo = Pi = t;
1335
+ ve.point = Zo, Yo = Ni = s, qo = $i = t;
1336
1336
  }
1337
1337
  function Zo(s, t) {
1338
- Ii.add(Pi * s - Di * t), Di = s, Pi = t;
1338
+ Pi.add($i * s - Ni * t), Ni = s, $i = t;
1339
1339
  }
1340
1340
  function Zu() {
1341
1341
  Zo(Yo, qo);
1342
1342
  }
1343
- var sn = 1 / 0, gs = sn, kn = -sn, ms = kn, vs = {
1343
+ var sn = 1 / 0, vs = sn, Cn = -sn, ys = Cn, Es = {
1344
1344
  point: Ku,
1345
1345
  lineStart: Kt,
1346
1346
  lineEnd: Kt,
1347
1347
  polygonStart: Kt,
1348
1348
  polygonEnd: Kt,
1349
1349
  result: function() {
1350
- var s = [[sn, gs], [kn, ms]];
1351
- return kn = ms = -(gs = sn = 1 / 0), s;
1350
+ var s = [[sn, vs], [Cn, ys]];
1351
+ return Cn = ys = -(vs = sn = 1 / 0), s;
1352
1352
  }
1353
1353
  };
1354
1354
  function Ku(s, t) {
1355
- s < sn && (sn = s), s > kn && (kn = s), t < gs && (gs = t), t > ms && (ms = t);
1355
+ s < sn && (sn = s), s > Cn && (Cn = s), t < vs && (vs = t), t > ys && (ys = t);
1356
1356
  }
1357
- var Ni = 0, $i = 0, En = 0, ys = 0, Es = 0, Je = 0, Vi = 0, Bi = 0, Sn = 0, Ko, Jo, le, ce, Zt = {
1357
+ var Vi = 0, Bi = 0, En = 0, Ss = 0, xs = 0, Je = 0, Gi = 0, Hi = 0, Sn = 0, Ko, Jo, le, ce, Zt = {
1358
1358
  point: De,
1359
1359
  lineStart: Ta,
1360
1360
  lineEnd: Oa,
@@ -1365,12 +1365,12 @@ var Ni = 0, $i = 0, En = 0, ys = 0, Es = 0, Je = 0, Vi = 0, Bi = 0, Sn = 0, Ko,
1365
1365
  Zt.point = De, Zt.lineStart = Ta, Zt.lineEnd = Oa;
1366
1366
  },
1367
1367
  result: function() {
1368
- var s = Sn ? [Vi / Sn, Bi / Sn] : Je ? [ys / Je, Es / Je] : En ? [Ni / En, $i / En] : [NaN, NaN];
1369
- return Ni = $i = En = ys = Es = Je = Vi = Bi = Sn = 0, s;
1368
+ var s = Sn ? [Gi / Sn, Hi / Sn] : Je ? [Ss / Je, xs / Je] : En ? [Vi / En, Bi / En] : [NaN, NaN];
1369
+ return Vi = Bi = En = Ss = xs = Je = Gi = Hi = Sn = 0, s;
1370
1370
  }
1371
1371
  };
1372
1372
  function De(s, t) {
1373
- Ni += s, $i += t, ++En;
1373
+ Vi += s, Bi += t, ++En;
1374
1374
  }
1375
1375
  function Ta() {
1376
1376
  Zt.point = Ju;
@@ -1380,7 +1380,7 @@ function Ju(s, t) {
1380
1380
  }
1381
1381
  function Qu(s, t) {
1382
1382
  var e = s - le, n = t - ce, i = se(e * e + n * n);
1383
- ys += i * (le + s) / 2, Es += i * (ce + t) / 2, Je += i, De(le = s, ce = t);
1383
+ Ss += i * (le + s) / 2, xs += i * (ce + t) / 2, Je += i, De(le = s, ce = t);
1384
1384
  }
1385
1385
  function Oa() {
1386
1386
  Zt.point = De;
@@ -1396,7 +1396,7 @@ function nh(s, t) {
1396
1396
  }
1397
1397
  function Qo(s, t) {
1398
1398
  var e = s - le, n = t - ce, i = se(e * e + n * n);
1399
- ys += i * (le + s) / 2, Es += i * (ce + t) / 2, Je += i, i = ce * s - le * t, Vi += i * (le + s), Bi += i * (ce + t), Sn += i * 3, De(le = s, ce = t);
1399
+ Ss += i * (le + s) / 2, xs += i * (ce + t) / 2, Je += i, i = ce * s - le * t, Gi += i * (le + s), Hi += i * (ce + t), Sn += i * 3, De(le = s, ce = t);
1400
1400
  }
1401
1401
  function tl(s) {
1402
1402
  this._context = s;
@@ -1436,32 +1436,32 @@ tl.prototype = {
1436
1436
  },
1437
1437
  result: Kt
1438
1438
  };
1439
- var Gi = new Re(), ii, el, nl, xn, bn, Rn = {
1439
+ var Ui = new Re(), ai, el, nl, xn, bn, Rn = {
1440
1440
  point: Kt,
1441
1441
  lineStart: function() {
1442
1442
  Rn.point = sh;
1443
1443
  },
1444
1444
  lineEnd: function() {
1445
- ii && sl(el, nl), Rn.point = Kt;
1445
+ ai && sl(el, nl), Rn.point = Kt;
1446
1446
  },
1447
1447
  polygonStart: function() {
1448
- ii = !0;
1448
+ ai = !0;
1449
1449
  },
1450
1450
  polygonEnd: function() {
1451
- ii = null;
1451
+ ai = null;
1452
1452
  },
1453
1453
  result: function() {
1454
- var s = +Gi;
1455
- return Gi = new Re(), s;
1454
+ var s = +Ui;
1455
+ return Ui = new Re(), s;
1456
1456
  }
1457
1457
  };
1458
1458
  function sh(s, t) {
1459
1459
  Rn.point = sl, el = xn = s, nl = bn = t;
1460
1460
  }
1461
1461
  function sl(s, t) {
1462
- xn -= s, bn -= t, Gi.add(se(xn * xn + bn * bn)), xn = s, bn = t;
1462
+ xn -= s, bn -= t, Ui.add(se(xn * xn + bn * bn)), xn = s, bn = t;
1463
1463
  }
1464
- let wa, Ss, La, Aa;
1464
+ let wa, bs, La, Aa;
1465
1465
  class Ma {
1466
1466
  constructor(t) {
1467
1467
  this._append = t == null ? il : ih(t), this._radius = 4.5, this._ = "";
@@ -1492,9 +1492,9 @@ class Ma {
1492
1492
  break;
1493
1493
  }
1494
1494
  default: {
1495
- if (this._append`M${t},${e}`, this._radius !== La || this._append !== Ss) {
1495
+ if (this._append`M${t},${e}`, this._radius !== La || this._append !== bs) {
1496
1496
  const n = this._radius, i = this._;
1497
- this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, La = n, Ss = this._append, Aa = this._, this._ = i;
1497
+ this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, La = n, bs = this._append, Aa = this._, this._ = i;
1498
1498
  }
1499
1499
  this._ += Aa;
1500
1500
  break;
@@ -1518,14 +1518,14 @@ function ih(s) {
1518
1518
  if (t > 15) return il;
1519
1519
  if (t !== wa) {
1520
1520
  const e = 10 ** t;
1521
- wa = t, Ss = function(i) {
1521
+ wa = t, bs = function(i) {
1522
1522
  let r = 1;
1523
1523
  this._ += i[0];
1524
1524
  for (const a = i.length; r < a; ++r)
1525
1525
  this._ += Math.round(arguments[r] * e) / e + i[r];
1526
1526
  };
1527
1527
  }
1528
- return Ss;
1528
+ return bs;
1529
1529
  }
1530
1530
  function rh(s, t) {
1531
1531
  let e = 3, n = 4.5, i, r;
@@ -1537,11 +1537,11 @@ function rh(s, t) {
1537
1537
  }, a.measure = function(o) {
1538
1538
  return je(o, i(Rn)), Rn.result();
1539
1539
  }, a.bounds = function(o) {
1540
- return je(o, i(vs)), vs.result();
1540
+ return je(o, i(Es)), Es.result();
1541
1541
  }, a.centroid = function(o) {
1542
1542
  return je(o, i(Zt)), Zt.result();
1543
1543
  }, a.projection = function(o) {
1544
- return arguments.length ? (i = o == null ? (s = null, Ri) : (s = o).stream, a) : s;
1544
+ return arguments.length ? (i = o == null ? (s = null, Di) : (s = o).stream, a) : s;
1545
1545
  }, a.context = function(o) {
1546
1546
  return arguments.length ? (r = o == null ? (t = null, new Ma(e)) : new tl(t = o), typeof n != "function" && r.pointRadius(n), a) : t;
1547
1547
  }, a.pointRadius = function(o) {
@@ -1557,17 +1557,17 @@ function rh(s, t) {
1557
1557
  return t === null && (r = new Ma(e)), a;
1558
1558
  }, a.projection(s).digits(e).context(t);
1559
1559
  }
1560
- function pr(s) {
1560
+ function gr(s) {
1561
1561
  return function(t) {
1562
- var e = new Hi();
1562
+ var e = new zi();
1563
1563
  for (var n in s) e[n] = s[n];
1564
1564
  return e.stream = t, e;
1565
1565
  };
1566
1566
  }
1567
- function Hi() {
1567
+ function zi() {
1568
1568
  }
1569
- Hi.prototype = {
1570
- constructor: Hi,
1569
+ zi.prototype = {
1570
+ constructor: zi,
1571
1571
  point: function(s, t) {
1572
1572
  this.stream.point(s, t);
1573
1573
  },
@@ -1587,12 +1587,12 @@ Hi.prototype = {
1587
1587
  this.stream.polygonEnd();
1588
1588
  }
1589
1589
  };
1590
- function fr(s, t, e) {
1590
+ function mr(s, t, e) {
1591
1591
  var n = s.clipExtent && s.clipExtent();
1592
- return s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), je(e, s.stream(vs)), t(vs.result()), n != null && s.clipExtent(n), s;
1592
+ return s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), je(e, s.stream(Es)), t(Es.result()), n != null && s.clipExtent(n), s;
1593
1593
  }
1594
1594
  function rl(s, t, e) {
1595
- return fr(s, function(n) {
1595
+ return mr(s, function(n) {
1596
1596
  var i = t[1][0] - t[0][0], r = t[1][1] - t[0][1], a = Math.min(i / (n[1][0] - n[0][0]), r / (n[1][1] - n[0][1])), o = +t[0][0] + (i - a * (n[1][0] + n[0][0])) / 2, c = +t[0][1] + (r - a * (n[1][1] + n[0][1])) / 2;
1597
1597
  s.scale(150 * a).translate([o, c]);
1598
1598
  }, e);
@@ -1601,23 +1601,23 @@ function ah(s, t, e) {
1601
1601
  return rl(s, [[0, 0], t], e);
1602
1602
  }
1603
1603
  function oh(s, t, e) {
1604
- return fr(s, function(n) {
1604
+ return mr(s, function(n) {
1605
1605
  var i = +t, r = i / (n[1][0] - n[0][0]), a = (i - r * (n[1][0] + n[0][0])) / 2, o = -r * n[0][1];
1606
1606
  s.scale(150 * r).translate([a, o]);
1607
1607
  }, e);
1608
1608
  }
1609
1609
  function lh(s, t, e) {
1610
- return fr(s, function(n) {
1610
+ return mr(s, function(n) {
1611
1611
  var i = +t, r = i / (n[1][1] - n[0][1]), a = -r * n[0][0], o = (i - r * (n[1][1] + n[0][1])) / 2;
1612
1612
  s.scale(150 * r).translate([a, o]);
1613
1613
  }, e);
1614
1614
  }
1615
1615
  var _a = 16, ch = gt(30 * Tt);
1616
- function Ca(s, t) {
1616
+ function ka(s, t) {
1617
1617
  return +t ? hh(s, t) : uh(s);
1618
1618
  }
1619
1619
  function uh(s) {
1620
- return pr({
1620
+ return gr({
1621
1621
  point: function(t, e) {
1622
1622
  t = s(t, e), this.stream.point(t[0], t[1]);
1623
1623
  }
@@ -1627,7 +1627,7 @@ function hh(s, t) {
1627
1627
  function e(n, i, r, a, o, c, l, h, d, u, p, f, g, m) {
1628
1628
  var E = l - n, y = h - i, v = E * E + y * y;
1629
1629
  if (v > 4 * t && g--) {
1630
- var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O), k = Ee(O /= I), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), C = s(G, k), L = C[0], B = C[1], D = L - n, A = B - i, w = y * D - E * A;
1630
+ var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O), C = Ee(O /= I), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), k = s(G, C), L = k[0], B = k[1], D = L - n, A = B - i, w = y * D - E * A;
1631
1631
  (w * w / v > t || ft((E * D + y * A) / v - 0.5) > 0.3 || a * u + o * p + c * f < ch) && (e(n, i, r, a, o, c, L, B, G, S /= I, b /= I, O, g, m), m.point(L, B), e(L, B, G, S, b, O, l, h, d, u, p, f, g, m));
1632
1632
  }
1633
1633
  }
@@ -1643,15 +1643,15 @@ function hh(s, t) {
1643
1643
  n.polygonEnd(), m.lineStart = y;
1644
1644
  }
1645
1645
  };
1646
- function E(k, G) {
1647
- k = s(k, G), n.point(k[0], k[1]);
1646
+ function E(C, G) {
1647
+ C = s(C, G), n.point(C[0], C[1]);
1648
1648
  }
1649
1649
  function y() {
1650
1650
  d = NaN, m.point = v, n.lineStart();
1651
1651
  }
1652
- function v(k, G) {
1653
- var C = nn([k, G]), L = s(k, G);
1654
- e(d, u, h, p, f, g, d = L[0], u = L[1], h = k, p = C[0], f = C[1], g = C[2], _a, n), n.point(d, u);
1652
+ function v(C, G) {
1653
+ var k = nn([C, G]), L = s(C, G);
1654
+ e(d, u, h, p, f, g, d = L[0], u = L[1], h = C, p = k[0], f = k[1], g = k[2], _a, n), n.point(d, u);
1655
1655
  }
1656
1656
  function S() {
1657
1657
  m.point = E, n.lineEnd();
@@ -1659,8 +1659,8 @@ function hh(s, t) {
1659
1659
  function b() {
1660
1660
  y(), m.point = O, m.lineEnd = I;
1661
1661
  }
1662
- function O(k, G) {
1663
- v(i = k, G), r = d, a = u, o = p, c = f, l = g, m.point = v;
1662
+ function O(C, G) {
1663
+ v(i = C, G), r = d, a = u, o = p, c = f, l = g, m.point = v;
1664
1664
  }
1665
1665
  function I() {
1666
1666
  e(d, u, h, p, f, g, r, a, i, o, c, l, _a, n), m.lineEnd = S, S();
@@ -1668,13 +1668,13 @@ function hh(s, t) {
1668
1668
  return m;
1669
1669
  };
1670
1670
  }
1671
- var dh = pr({
1671
+ var dh = gr({
1672
1672
  point: function(s, t) {
1673
1673
  this.stream.point(s * Tt, t * Tt);
1674
1674
  }
1675
1675
  });
1676
1676
  function ph(s) {
1677
- return pr({
1677
+ return gr({
1678
1678
  point: function(t, e) {
1679
1679
  var n = s(t, e);
1680
1680
  return this.stream.point(n[0], n[1]);
@@ -1689,7 +1689,7 @@ function fh(s, t, e, n, i) {
1689
1689
  return [(a - t) / s * n, (e - o) / s * i];
1690
1690
  }, r;
1691
1691
  }
1692
- function ka(s, t, e, n, i, r) {
1692
+ function Ca(s, t, e, n, i, r) {
1693
1693
  if (!r) return fh(s, t, e, n, i);
1694
1694
  var a = gt(r), o = dt(r), c = a * s, l = o * s, h = a / s, d = o / s, u = (o * e - a * t) / s, p = (o * t + a * e) / s;
1695
1695
  function f(g, m) {
@@ -1699,21 +1699,21 @@ function ka(s, t, e, n, i, r) {
1699
1699
  return [n * (h * g - d * m + u), i * (p - d * g - h * m)];
1700
1700
  }, f;
1701
1701
  }
1702
- function Ds(s) {
1702
+ function Ns(s) {
1703
1703
  return al(function() {
1704
1704
  return s;
1705
1705
  })();
1706
1706
  }
1707
1707
  function al(s) {
1708
- var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Ri, b = 0.5, O, I, k, G, C;
1708
+ var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Di, b = 0.5, O, I, C, G, k;
1709
1709
  function L(w) {
1710
- return k(w[0] * Tt, w[1] * Tt);
1710
+ return C(w[0] * Tt, w[1] * Tt);
1711
1711
  }
1712
1712
  function B(w) {
1713
- return w = k.invert(w[0], w[1]), w && [w[0] * Nt, w[1] * Nt];
1713
+ return w = C.invert(w[0], w[1]), w && [w[0] * Nt, w[1] * Nt];
1714
1714
  }
1715
1715
  L.stream = function(w) {
1716
- return G && C === w ? G : G = dh(ph(h)(g(O(S(C = w)))));
1716
+ return G && k === w ? G : G = dh(ph(h)(g(O(S(k = w)))));
1717
1717
  }, L.preclip = function(w) {
1718
1718
  return arguments.length ? (g = w, f = void 0, A()) : g;
1719
1719
  }, L.postclip = function(w) {
@@ -1721,7 +1721,7 @@ function al(s) {
1721
1721
  }, L.clipAngle = function(w) {
1722
1722
  return arguments.length ? (g = +w ? Wu(f = w * Tt) : (f = null, ba), A()) : f * Nt;
1723
1723
  }, L.clipExtent = function(w) {
1724
- return arguments.length ? (S = w == null ? (m = E = y = v = null, Ri) : ju(m = +w[0][0], E = +w[0][1], y = +w[1][0], v = +w[1][1]), A()) : m == null ? null : [[m, E], [y, v]];
1724
+ return arguments.length ? (S = w == null ? (m = E = y = v = null, Di) : ju(m = +w[0][0], E = +w[0][1], y = +w[1][0], v = +w[1][1]), A()) : m == null ? null : [[m, E], [y, v]];
1725
1725
  }, L.scale = function(w) {
1726
1726
  return arguments.length ? (e = +w, D()) : e;
1727
1727
  }, L.translate = function(w) {
@@ -1737,7 +1737,7 @@ function al(s) {
1737
1737
  }, L.reflectY = function(w) {
1738
1738
  return arguments.length ? (p = w ? -1 : 1, D()) : p < 0;
1739
1739
  }, L.precision = function(w) {
1740
- return arguments.length ? (O = Ca(I, b = w * w), A()) : se(b);
1740
+ return arguments.length ? (O = ka(I, b = w * w), A()) : se(b);
1741
1741
  }, L.fitExtent = function(w, V) {
1742
1742
  return rl(L, w, V);
1743
1743
  }, L.fitSize = function(w, V) {
@@ -1748,11 +1748,11 @@ function al(s) {
1748
1748
  return lh(L, w, V);
1749
1749
  };
1750
1750
  function D() {
1751
- var w = ka(e, 0, 0, u, p, d).apply(null, t(r, a)), V = ka(e, n - w[0], i - w[1], u, p, d);
1752
- return h = Fo(o, c, l), I = Ci(t, V), k = Ci(h, I), O = Ca(I, b), A();
1751
+ var w = Ca(e, 0, 0, u, p, d).apply(null, t(r, a)), V = Ca(e, n - w[0], i - w[1], u, p, d);
1752
+ return h = Fo(o, c, l), I = Ri(t, V), C = Ri(h, I), O = ka(I, b), A();
1753
1753
  }
1754
1754
  function A() {
1755
- return G = C = null, L;
1755
+ return G = k = null, L;
1756
1756
  }
1757
1757
  return function() {
1758
1758
  return t = s.apply(this, arguments), L.invert = t.invert && B, D();
@@ -1792,17 +1792,17 @@ function ll() {
1792
1792
  function vh() {
1793
1793
  return ll().parallels([29.5, 45.5]).scale(1070).translate([480, 250]).rotate([96, 0]).center([-0.6, 38.7]);
1794
1794
  }
1795
- function gr(s, t) {
1795
+ function vr(s, t) {
1796
1796
  return [s, Du(Pu((Ht + t) / 2))];
1797
1797
  }
1798
- gr.invert = function(s, t) {
1798
+ vr.invert = function(s, t) {
1799
1799
  return [s, 2 * zo(Iu(t)) - Ht];
1800
1800
  };
1801
1801
  function yh() {
1802
- return Eh(gr).scale(961 / Wt);
1802
+ return Eh(vr).scale(961 / Wt);
1803
1803
  }
1804
1804
  function Eh(s) {
1805
- var t = Ds(s), e = t.center, n = t.scale, i = t.translate, r = t.clipExtent, a = null, o, c, l;
1805
+ var t = Ns(s), e = t.center, n = t.scale, i = t.translate, r = t.clipExtent, a = null, o, c, l;
1806
1806
  t.scale = function(d) {
1807
1807
  return arguments.length ? (n(d), h()) : n();
1808
1808
  }, t.translate = function(d) {
@@ -1814,20 +1814,20 @@ function Eh(s) {
1814
1814
  };
1815
1815
  function h() {
1816
1816
  var d = at * n(), u = t($u(t.rotate()).invert([0, 0]));
1817
- return r(a == null ? [[u[0] - d, u[1] - d], [u[0] + d, u[1] + d]] : s === gr ? [[Math.max(u[0] - d, a), o], [Math.min(u[0] + d, c), l]] : [[a, Math.max(u[1] - d, o)], [c, Math.min(u[1] + d, l)]]);
1817
+ return r(a == null ? [[u[0] - d, u[1] - d], [u[0] + d, u[1] + d]] : s === vr ? [[Math.max(u[0] - d, a), o], [Math.min(u[0] + d, c), l]] : [[a, Math.max(u[1] - d, o)], [c, Math.min(u[1] + d, l)]]);
1818
1818
  }
1819
1819
  return h();
1820
1820
  }
1821
- function xs(s, t) {
1821
+ function Ts(s, t) {
1822
1822
  return [s, t];
1823
1823
  }
1824
- xs.invert = xs;
1824
+ Ts.invert = Ts;
1825
1825
  function Sh() {
1826
- return Ds(xs).scale(152.63);
1826
+ return Ns(Ts).scale(152.63);
1827
1827
  }
1828
1828
  function xh(s, t) {
1829
1829
  var e = gt(s), n = s === t ? dt(s) : (e - gt(t)) / (t - s), i = e / n + s;
1830
- if (ft(n) < pt) return xs;
1830
+ if (ft(n) < pt) return Ts;
1831
1831
  function r(a, o) {
1832
1832
  var c = i - o, l = n * a;
1833
1833
  return [c * dt(l), i - c * gt(l)];
@@ -1840,11 +1840,11 @@ function xh(s, t) {
1840
1840
  function bh() {
1841
1841
  return ol(xh).scale(131.154).center([0, 13.9389]);
1842
1842
  }
1843
- var Ln = 1.340264, An = -0.081106, Mn = 893e-6, _n = 3796e-6, bs = se(3) / 2, Th = 12;
1843
+ var Ln = 1.340264, An = -0.081106, Mn = 893e-6, _n = 3796e-6, Os = se(3) / 2, Th = 12;
1844
1844
  function cl(s, t) {
1845
- var e = Ee(bs * dt(t)), n = e * e, i = n * n * n;
1845
+ var e = Ee(Os * dt(t)), n = e * e, i = n * n * n;
1846
1846
  return [
1847
- s * gt(e) / (bs * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n))),
1847
+ s * gt(e) / (Os * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n))),
1848
1848
  e * (Ln + An * n + i * (Mn + _n * n))
1849
1849
  ];
1850
1850
  }
@@ -1852,12 +1852,12 @@ cl.invert = function(s, t) {
1852
1852
  for (var e = t, n = e * e, i = n * n * n, r = 0, a, o, c; r < Th && (o = e * (Ln + An * n + i * (Mn + _n * n)) - t, c = Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n), e -= a = o / c, n = e * e, i = n * n * n, !(ft(a) < Uo)); ++r)
1853
1853
  ;
1854
1854
  return [
1855
- bs * s * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n)) / gt(e),
1856
- Ee(dt(e) / bs)
1855
+ Os * s * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n)) / gt(e),
1856
+ Ee(dt(e) / Os)
1857
1857
  ];
1858
1858
  };
1859
1859
  function Oh() {
1860
- return Ds(cl).scale(177.158);
1860
+ return Ns(cl).scale(177.158);
1861
1861
  }
1862
1862
  function ul(s, t) {
1863
1863
  var e = t * t, n = e * e;
@@ -1878,7 +1878,7 @@ ul.invert = function(s, t) {
1878
1878
  ];
1879
1879
  };
1880
1880
  function wh() {
1881
- return Ds(ul).scale(175.295);
1881
+ return Ns(ul).scale(175.295);
1882
1882
  }
1883
1883
  function Lh(s, t) {
1884
1884
  return s.parent === t.parent ? 1 : 2;
@@ -1890,12 +1890,12 @@ function Mh(s, t) {
1890
1890
  return s + t.x;
1891
1891
  }
1892
1892
  function _h(s) {
1893
- return 1 + s.reduce(Ch, 0);
1893
+ return 1 + s.reduce(kh, 0);
1894
1894
  }
1895
- function Ch(s, t) {
1895
+ function kh(s, t) {
1896
1896
  return Math.max(s, t.y);
1897
1897
  }
1898
- function kh(s) {
1898
+ function Ch(s) {
1899
1899
  for (var t; t = s.children; ) s = t[0];
1900
1900
  return s;
1901
1901
  }
@@ -1911,7 +1911,7 @@ function Ih() {
1911
1911
  var p = u.children;
1912
1912
  p ? (u.x = Ah(p), u.y = _h(p)) : (u.x = a ? o += s(u, a) : 0, u.y = 0, a = u);
1913
1913
  });
1914
- var c = kh(r), l = Rh(r), h = c.x - s(c, l) / 2, d = l.x + s(l, c) / 2;
1914
+ var c = Ch(r), l = Rh(r), h = c.x - s(c, l) / 2, d = l.x + s(l, c) / 2;
1915
1915
  return r.eachAfter(n ? function(u) {
1916
1916
  u.x = (u.x - r.x) * t, u.y = (r.y - u.y) * e;
1917
1917
  } : function(u) {
@@ -2070,7 +2070,7 @@ function hl(s) {
2070
2070
  if (typeof s != "function") throw new Error();
2071
2071
  return s;
2072
2072
  }
2073
- function Ce() {
2073
+ function ke() {
2074
2074
  return 0;
2075
2075
  }
2076
2076
  function Ye(s) {
@@ -2099,17 +2099,17 @@ function ad(s, t) {
2099
2099
  }
2100
2100
  function od(s, t) {
2101
2101
  var e, n;
2102
- if (ri(t, s)) return [t];
2102
+ if (oi(t, s)) return [t];
2103
2103
  for (e = 0; e < s.length; ++e)
2104
- if (Yn(t, s[e]) && ri(Tn(s[e], t), s))
2104
+ if (Zn(t, s[e]) && oi(Tn(s[e], t), s))
2105
2105
  return [s[e], t];
2106
2106
  for (e = 0; e < s.length - 1; ++e)
2107
2107
  for (n = e + 1; n < s.length; ++n)
2108
- if (Yn(Tn(s[e], s[n]), t) && Yn(Tn(s[e], t), s[n]) && Yn(Tn(s[n], t), s[e]) && ri(pl(s[e], s[n], t), s))
2108
+ if (Zn(Tn(s[e], s[n]), t) && Zn(Tn(s[e], t), s[n]) && Zn(Tn(s[n], t), s[e]) && oi(pl(s[e], s[n], t), s))
2109
2109
  return [s[e], s[n], t];
2110
2110
  throw new Error();
2111
2111
  }
2112
- function Yn(s, t) {
2112
+ function Zn(s, t) {
2113
2113
  var e = s.r - t.r, n = t.x - s.x, i = t.y - s.y;
2114
2114
  return e < 0 || e * e < n * n + i * i;
2115
2115
  }
@@ -2117,7 +2117,7 @@ function dl(s, t) {
2117
2117
  var e = s.r - t.r + Math.max(s.r, t.r, 1) * 1e-9, n = t.x - s.x, i = t.y - s.y;
2118
2118
  return e > 0 && e * e > n * n + i * i;
2119
2119
  }
2120
- function ri(s, t) {
2120
+ function oi(s, t) {
2121
2121
  for (var e = 0; e < t.length; ++e)
2122
2122
  if (!dl(s, t[e]))
2123
2123
  return !1;
@@ -2149,10 +2149,10 @@ function Tn(s, t) {
2149
2149
  };
2150
2150
  }
2151
2151
  function pl(s, t, e) {
2152
- var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b, k = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, C = I * I + G * G - 1, L = 2 * (r + O * I + k * G), B = O * O + k * k - r * r, D = -(Math.abs(C) > 1e-6 ? (L + Math.sqrt(L * L - 4 * C * B)) / (2 * C) : B / L);
2152
+ var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b, C = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, k = I * I + G * G - 1, L = 2 * (r + O * I + C * G), B = O * O + C * C - r * r, D = -(Math.abs(k) > 1e-6 ? (L + Math.sqrt(L * L - 4 * k * B)) / (2 * k) : B / L);
2153
2153
  return {
2154
2154
  x: n + O + I * D,
2155
- y: i + k + G * D,
2155
+ y: i + C + G * D,
2156
2156
  r: D
2157
2157
  };
2158
2158
  }
@@ -2168,7 +2168,7 @@ function Pa(s) {
2168
2168
  var t = s._, e = s.next._, n = t.r + e.r, i = (t.x * e.r + e.x * t.r) / n, r = (t.y * e.r + e.y * t.r) / n;
2169
2169
  return i * i + r * r;
2170
2170
  }
2171
- function qn(s) {
2171
+ function Kn(s) {
2172
2172
  this._ = s, this.next = null, this.previous = null;
2173
2173
  }
2174
2174
  function ud(s, t) {
@@ -2176,9 +2176,9 @@ function ud(s, t) {
2176
2176
  var e, n, i, r, a, o, c, l, h, d, u;
2177
2177
  if (e = s[0], e.x = 0, e.y = 0, !(r > 1)) return e.r;
2178
2178
  if (n = s[1], e.x = -n.r, n.x = e.r, n.y = 0, !(r > 2)) return e.r + n.r;
2179
- Ia(n, e, i = s[2]), e = new qn(e), n = new qn(n), i = new qn(i), e.next = i.previous = n, n.next = e.previous = i, i.next = n.previous = e;
2179
+ Ia(n, e, i = s[2]), e = new Kn(e), n = new Kn(n), i = new Kn(i), e.next = i.previous = n, n.next = e.previous = i, i.next = n.previous = e;
2180
2180
  t: for (c = 3; c < r; ++c) {
2181
- Ia(e._, n._, i = s[c]), i = new qn(i), l = n.next, h = e.previous, d = n._.r, u = e._.r;
2181
+ Ia(e._, n._, i = s[c]), i = new Kn(i), l = n.next, h = e.previous, d = n._.r, u = e._.r;
2182
2182
  do
2183
2183
  if (d <= u) {
2184
2184
  if (Da(l._, i._)) {
@@ -2206,10 +2206,10 @@ function hd(s) {
2206
2206
  return Math.sqrt(s.value);
2207
2207
  }
2208
2208
  function dd() {
2209
- var s = null, t = 1, e = 1, n = Ce;
2209
+ var s = null, t = 1, e = 1, n = ke;
2210
2210
  function i(r) {
2211
2211
  const a = sd();
2212
- return r.x = t / 2, r.y = e / 2, s ? r.eachBefore(Na(s)).eachAfter(ai(n, 0.5, a)).eachBefore($a(1)) : r.eachBefore(Na(hd)).eachAfter(ai(Ce, 1, a)).eachAfter(ai(n, r.r / Math.min(t, e), a)).eachBefore($a(Math.min(t, e) / (2 * r.r))), r;
2212
+ return r.x = t / 2, r.y = e / 2, s ? r.eachBefore(Na(s)).eachAfter(li(n, 0.5, a)).eachBefore($a(1)) : r.eachBefore(Na(hd)).eachAfter(li(ke, 1, a)).eachAfter(li(n, r.r / Math.min(t, e), a)).eachBefore($a(Math.min(t, e) / (2 * r.r))), r;
2213
2213
  }
2214
2214
  return i.radius = function(r) {
2215
2215
  return arguments.length ? (s = td(r), i) : s;
@@ -2224,7 +2224,7 @@ function Na(s) {
2224
2224
  t.children || (t.r = Math.max(0, +s(t) || 0));
2225
2225
  };
2226
2226
  }
2227
- function ai(s, t, e) {
2227
+ function li(s, t, e) {
2228
2228
  return function(n) {
2229
2229
  if (i = n.children) {
2230
2230
  var i, r, a = i.length, o = s(n) * t || 0, c;
@@ -2250,11 +2250,11 @@ function fd(s, t, e, n, i) {
2250
2250
  function gd(s, t) {
2251
2251
  return s.parent === t.parent ? 1 : 2;
2252
2252
  }
2253
- function oi(s) {
2253
+ function ci(s) {
2254
2254
  var t = s.children;
2255
2255
  return t ? t[0] : s.t;
2256
2256
  }
2257
- function li(s) {
2257
+ function ui(s) {
2258
2258
  var t = s.children;
2259
2259
  return t ? t[t.length - 1] : s.t;
2260
2260
  }
@@ -2269,16 +2269,16 @@ function vd(s) {
2269
2269
  function yd(s, t, e) {
2270
2270
  return s.a.parent === t.parent ? s.a : e;
2271
2271
  }
2272
- function os(s, t) {
2272
+ function cs(s, t) {
2273
2273
  this._ = s, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
2274
2274
  }
2275
- os.prototype = Object.create(In.prototype);
2275
+ cs.prototype = Object.create(In.prototype);
2276
2276
  function Ed(s) {
2277
- for (var t = new os(s, 0), e, n = [t], i, r, a, o; e = n.pop(); )
2277
+ for (var t = new cs(s, 0), e, n = [t], i, r, a, o; e = n.pop(); )
2278
2278
  if (r = e._.children)
2279
2279
  for (e.children = new Array(o = r.length), a = o - 1; a >= 0; --a)
2280
- n.push(i = e.children[a] = new os(r[a], a)), i.parent = e;
2281
- return (t.parent = new os(null, 0)).children = [t], t;
2280
+ n.push(i = e.children[a] = new cs(r[a], a)), i.parent = e;
2281
+ return (t.parent = new cs(null, 0)).children = [t], t;
2282
2282
  }
2283
2283
  function Sd() {
2284
2284
  var s = gd, t = 1, e = 1, n = null;
@@ -2311,9 +2311,9 @@ function Sd() {
2311
2311
  }
2312
2312
  function o(l, h, d) {
2313
2313
  if (h) {
2314
- for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, E = p.m, y = f.m, v = g.m, S; f = li(f), u = oi(u), f && u; )
2315
- g = oi(g), p = li(p), p.a = l, S = f.z + y - u.z - m + s(f._, u._), S > 0 && (md(yd(f, l, d), l, S), m += S, E += S), y += f.m, m += u.m, v += g.m, E += p.m;
2316
- f && !li(p) && (p.t = f, p.m += y - E), u && !oi(g) && (g.t = u, g.m += m - v, d = l);
2314
+ for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, E = p.m, y = f.m, v = g.m, S; f = ui(f), u = ci(u), f && u; )
2315
+ g = ci(g), p = ui(p), p.a = l, S = f.z + y - u.z - m + s(f._, u._), S > 0 && (md(yd(f, l, d), l, S), m += S, E += S), y += f.m, m += u.m, v += g.m, E += p.m;
2316
+ f && !ui(p) && (p.t = f, p.m += y - E), u && !ci(g) && (g.t = u, g.m += m - v, d = l);
2317
2317
  }
2318
2318
  return d;
2319
2319
  }
@@ -2359,7 +2359,7 @@ const Od = function s(t) {
2359
2359
  }, e;
2360
2360
  }(bd);
2361
2361
  function wd() {
2362
- var s = Od, t = !1, e = 1, n = 1, i = [0], r = Ce, a = Ce, o = Ce, c = Ce, l = Ce;
2362
+ var s = Od, t = !1, e = 1, n = 1, i = [0], r = ke, a = ke, o = ke, c = ke, l = ke;
2363
2363
  function h(u) {
2364
2364
  return u.x0 = u.y0 = 0, u.x1 = e, u.y1 = n, u.eachBefore(d), i = [0], t && u.eachBefore(pd), u;
2365
2365
  }
@@ -2389,7 +2389,7 @@ function wd() {
2389
2389
  return arguments.length ? (l = typeof u == "function" ? u : Ye(+u), h) : l;
2390
2390
  }, h;
2391
2391
  }
2392
- function Ps(s) {
2392
+ function $s(s) {
2393
2393
  let t = 3;
2394
2394
  return s.digits = function(e) {
2395
2395
  if (!arguments.length) return t;
@@ -2401,7 +2401,7 @@ function Ps(s) {
2401
2401
  t = n;
2402
2402
  }
2403
2403
  return s;
2404
- }, () => new dr(t);
2404
+ }, () => new fr(t);
2405
2405
  }
2406
2406
  function Ld(s) {
2407
2407
  return s.innerRadius;
@@ -2415,54 +2415,54 @@ function Md(s) {
2415
2415
  function _d(s) {
2416
2416
  return s.endAngle;
2417
2417
  }
2418
- function Cd(s) {
2418
+ function kd(s) {
2419
2419
  return s && s.padAngle;
2420
2420
  }
2421
- function kd(s, t, e, n, i, r, a, o) {
2421
+ function Cd(s, t, e, n, i, r, a, o) {
2422
2422
  var c = e - s, l = n - t, h = a - i, d = o - r, u = d * c - h * l;
2423
2423
  if (!(u * u < Gt))
2424
2424
  return u = (h * (t - r) - d * (s - i)) / u, [s + u * c, t + u * l];
2425
2425
  }
2426
- function Zn(s, t, e, n, i, r, a) {
2427
- var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(ic(0, b * b * S - O * O)), k = (O * v - y * I) / S, G = (-O * y - v * I) / S, C = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = k - m, D = G - E, A = C - m, w = L - E;
2428
- return B * B + D * D > A * A + w * w && (k = C, G = L), {
2429
- cx: k,
2426
+ function Jn(s, t, e, n, i, r, a) {
2427
+ var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(sc(0, b * b * S - O * O)), C = (O * v - y * I) / S, G = (-O * y - v * I) / S, k = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = C - m, D = G - E, A = k - m, w = L - E;
2428
+ return B * B + D * D > A * A + w * w && (C = k, G = L), {
2429
+ cx: C,
2430
2430
  cy: G,
2431
2431
  x01: -h,
2432
2432
  y01: -d,
2433
- x11: k * (i / b - 1),
2433
+ x11: C * (i / b - 1),
2434
2434
  y11: G * (i / b - 1)
2435
2435
  };
2436
2436
  }
2437
2437
  function Dn() {
2438
- var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a = Cd, o = null, c = Ps(l);
2438
+ var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a = kd, o = null, c = $s(l);
2439
2439
  function l() {
2440
- var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) - Kr, g = r.apply(this, arguments) - Kr, m = Jr(g - f), E = g > f;
2440
+ var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) - Zr, g = r.apply(this, arguments) - Zr, m = Kr(g - f), E = g > f;
2441
2441
  if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Gt)) o.moveTo(0, 0);
2442
- else if (m > ns - Gt)
2442
+ else if (m > is - Gt)
2443
2443
  o.moveTo(p * Le(f), p * oe(f)), o.arc(0, 0, p, f, g, !E), u > Gt && (o.moveTo(u * Le(g), u * oe(g)), o.arc(0, 0, u, g, f, E));
2444
2444
  else {
2445
- var y = f, v = g, S = f, b = g, O = m, I = m, k = a.apply(this, arguments) / 2, G = k > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), C = qs(Jr(p - u) / 2, +e.apply(this, arguments)), L = C, B = C, D, A;
2445
+ var y = f, v = g, S = f, b = g, O = m, I = m, C = a.apply(this, arguments) / 2, G = C > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), k = Ks(Kr(p - u) / 2, +e.apply(this, arguments)), L = k, B = k, D, A;
2446
2446
  if (G > Gt) {
2447
- var w = Qr(G / u * oe(k)), V = Qr(G / p * oe(k));
2447
+ var w = Qr(G / u * oe(C)), V = Qr(G / p * oe(C));
2448
2448
  (O -= w * 2) > Gt ? (w *= E ? 1 : -1, S += w, b -= w) : (O = 0, S = b = (f + g) / 2), (I -= V * 2) > Gt ? (V *= E ? 1 : -1, y += V, v -= V) : (I = 0, y = v = (f + g) / 2);
2449
2449
  }
2450
2450
  var N = p * Le(y), P = p * oe(y), $ = u * Le(b), X = u * oe(b);
2451
- if (C > Gt) {
2451
+ if (k > Gt) {
2452
2452
  var F = p * Le(v), et = p * oe(v), J = u * Le(S), ct = u * oe(S), Q;
2453
- if (m < Zr)
2454
- if (Q = kd(N, P, J, ct, F, et, $, X)) {
2455
- var j = N - Q[0], Z = P - Q[1], ut = F - Q[0], ht = et - Q[1], Et = 1 / oe(sc((j * ut + Z * ht) / (Ke(j * j + Z * Z) * Ke(ut * ut + ht * ht))) / 2), Ut = Ke(Q[0] * Q[0] + Q[1] * Q[1]);
2456
- L = qs(C, (u - Ut) / (Et - 1)), B = qs(C, (p - Ut) / (Et + 1));
2453
+ if (m < Jr)
2454
+ if (Q = Cd(N, P, J, ct, F, et, $, X)) {
2455
+ var j = N - Q[0], K = P - Q[1], ut = F - Q[0], ht = et - Q[1], yt = 1 / oe(ic((j * ut + K * ht) / (Ke(j * j + K * K) * Ke(ut * ut + ht * ht))) / 2), Ut = Ke(Q[0] * Q[0] + Q[1] * Q[1]);
2456
+ L = Ks(k, (u - Ut) / (yt - 1)), B = Ks(k, (p - Ut) / (yt + 1));
2457
2457
  } else
2458
2458
  L = B = 0;
2459
2459
  }
2460
- I > Gt ? B > Gt ? (D = Zn(J, ct, N, P, p, B, E), A = Zn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < C ? o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, p, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Zn($, X, F, et, u, -L, E), A = Zn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < C ? o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, u, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
2460
+ I > Gt ? B > Gt ? (D = Jn(J, ct, N, P, p, B, E), A = Jn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < k ? o.arc(D.cx, D.cy, B, Ct(D.y01, D.x01), Ct(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, Ct(D.y01, D.x01), Ct(D.y11, D.x11), !E), o.arc(0, 0, p, Ct(D.cy + D.y11, D.cx + D.x11), Ct(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, Ct(A.y11, A.x11), Ct(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Jn($, X, F, et, u, -L, E), A = Jn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < k ? o.arc(D.cx, D.cy, L, Ct(D.y01, D.x01), Ct(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, Ct(D.y01, D.x01), Ct(D.y11, D.x11), !E), o.arc(0, 0, u, Ct(D.cy + D.y11, D.cx + D.x11), Ct(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, Ct(A.y11, A.x11), Ct(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
2461
2461
  }
2462
2462
  if (o.closePath(), h) return o = null, h + "" || null;
2463
2463
  }
2464
2464
  return l.centroid = function() {
2465
- var h = (+s.apply(this, arguments) + +t.apply(this, arguments)) / 2, d = (+i.apply(this, arguments) + +r.apply(this, arguments)) / 2 - Zr / 2;
2465
+ var h = (+s.apply(this, arguments) + +t.apply(this, arguments)) / 2, d = (+i.apply(this, arguments) + +r.apply(this, arguments)) / 2 - Jr / 2;
2466
2466
  return [Le(d) * h, oe(d) * h];
2467
2467
  }, l.innerRadius = function(h) {
2468
2468
  return arguments.length ? (s = typeof h == "function" ? h : lt(+h), l) : s;
@@ -2482,17 +2482,17 @@ function Dn() {
2482
2482
  return arguments.length ? (o = h ?? null, l) : o;
2483
2483
  }, l;
2484
2484
  }
2485
- function mr(s) {
2485
+ function yr(s) {
2486
2486
  return s[0];
2487
2487
  }
2488
- function vr(s) {
2488
+ function Er(s) {
2489
2489
  return s[1];
2490
2490
  }
2491
2491
  function Nn(s, t) {
2492
- var e = lt(!0), n = null, i = lr, r = null, a = Ps(o);
2493
- s = typeof s == "function" ? s : s === void 0 ? mr : lt(s), t = typeof t == "function" ? t : t === void 0 ? vr : lt(t);
2492
+ var e = lt(!0), n = null, i = ur, r = null, a = $s(o);
2493
+ s = typeof s == "function" ? s : s === void 0 ? yr : lt(s), t = typeof t == "function" ? t : t === void 0 ? Er : lt(t);
2494
2494
  function o(c) {
2495
- var l, h = (c = ur(c)).length, d, u = !1, p;
2495
+ var l, h = (c = dr(c)).length, d, u = !1, p;
2496
2496
  for (n == null && (r = i(p = a())), l = 0; l <= h; ++l)
2497
2497
  !(l < h && e(d = c[l], l, c)) === u && ((u = !u) ? r.lineStart() : r.lineEnd()), u && r.point(+s(d, l, c), +t(d, l, c));
2498
2498
  if (p) return r = null, p + "" || null;
@@ -2509,11 +2509,11 @@ function Nn(s, t) {
2509
2509
  return arguments.length ? (c == null ? n = r = null : r = i(n = c), o) : n;
2510
2510
  }, o;
2511
2511
  }
2512
- function yr(s, t, e) {
2513
- var n = null, i = lt(!0), r = null, a = lr, o = null, c = Ps(l);
2514
- s = typeof s == "function" ? s : s === void 0 ? mr : lt(+s), t = typeof t == "function" ? t : t === void 0 ? lt(0) : lt(+t), e = typeof e == "function" ? e : e === void 0 ? vr : lt(+e);
2512
+ function Sr(s, t, e) {
2513
+ var n = null, i = lt(!0), r = null, a = ur, o = null, c = $s(l);
2514
+ s = typeof s == "function" ? s : s === void 0 ? yr : lt(+s), t = typeof t == "function" ? t : t === void 0 ? lt(0) : lt(+t), e = typeof e == "function" ? e : e === void 0 ? Er : lt(+e);
2515
2515
  function l(d) {
2516
- var u, p, f, g = (d = ur(d)).length, m, E = !1, y, v = new Array(g), S = new Array(g);
2516
+ var u, p, f, g = (d = dr(d)).length, m, E = !1, y, v = new Array(g), S = new Array(g);
2517
2517
  for (r == null && (o = a(y = c())), u = 0; u <= g; ++u) {
2518
2518
  if (!(u < g && i(m = d[u], u, d)) === E)
2519
2519
  if (E = !E)
@@ -2563,9 +2563,9 @@ function Id(s) {
2563
2563
  return s;
2564
2564
  }
2565
2565
  function Dd() {
2566
- var s = Id, t = Rd, e = null, n = lt(0), i = lt(ns), r = lt(0);
2566
+ var s = Id, t = Rd, e = null, n = lt(0), i = lt(is), r = lt(0);
2567
2567
  function a(o) {
2568
- var c, l = (o = ur(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(ns, Math.max(-ns, i.apply(this, arguments) - g)), E, y = Math.min(Math.abs(m) / l, r.apply(this, arguments)), v = y * (m < 0 ? -1 : 1), S;
2568
+ var c, l = (o = dr(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(is, Math.max(-is, i.apply(this, arguments) - g)), E, y = Math.min(Math.abs(m) / l, r.apply(this, arguments)), v = y * (m < 0 ? -1 : 1), S;
2569
2569
  for (c = 0; c < l; ++c)
2570
2570
  (S = f[p[c] = c] = +s(o[c], c, o)) > 0 && (u += S);
2571
2571
  for (t != null ? p.sort(function(b, O) {
@@ -2597,7 +2597,7 @@ function Dd() {
2597
2597
  return arguments.length ? (r = typeof o == "function" ? o : lt(+o), a) : r;
2598
2598
  }, a;
2599
2599
  }
2600
- var Pd = gl(lr);
2600
+ var Pd = gl(ur);
2601
2601
  function fl(s) {
2602
2602
  this._curve = s;
2603
2603
  }
@@ -2675,7 +2675,7 @@ function Hd(s) {
2675
2675
  return s.target;
2676
2676
  }
2677
2677
  function Ud(s) {
2678
- let t = Gd, e = Hd, n = mr, i = vr, r = null, a = null, o = Ps(c);
2678
+ let t = Gd, e = Hd, n = yr, i = Er, r = null, a = null, o = $s(c);
2679
2679
  function c() {
2680
2680
  let l;
2681
2681
  const h = cc.call(arguments), d = t.apply(this, h), u = e.apply(this, h);
@@ -2763,7 +2763,7 @@ class ot {
2763
2763
  return this.configs.options ? tn({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
2764
2764
  }
2765
2765
  }
2766
- /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
2766
+ /*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */
2767
2767
  const {
2768
2768
  entries: ml,
2769
2769
  setPrototypeOf: Va,
@@ -2776,8 +2776,8 @@ let {
2776
2776
  seal: Qt,
2777
2777
  create: vl
2778
2778
  } = Object, {
2779
- apply: Ui,
2780
- construct: zi
2779
+ apply: Fi,
2780
+ construct: Wi
2781
2781
  } = typeof Reflect < "u" && Reflect;
2782
2782
  Vt || (Vt = function(t) {
2783
2783
  return t;
@@ -2785,29 +2785,29 @@ Vt || (Vt = function(t) {
2785
2785
  Qt || (Qt = function(t) {
2786
2786
  return t;
2787
2787
  });
2788
- Ui || (Ui = function(t, e, n) {
2788
+ Fi || (Fi = function(t, e, n) {
2789
2789
  return t.apply(e, n);
2790
2790
  });
2791
- zi || (zi = function(t, e) {
2791
+ Wi || (Wi = function(t, e) {
2792
2792
  return new t(...e);
2793
2793
  });
2794
- const Kn = Xt(Array.prototype.forEach), Ba = Xt(Array.prototype.pop), hn = Xt(Array.prototype.push), ls = Xt(String.prototype.toLowerCase), ci = Xt(String.prototype.toString), Ga = Xt(String.prototype.match), dn = Xt(String.prototype.replace), jd = Xt(String.prototype.indexOf), Yd = Xt(String.prototype.trim), ne = Xt(Object.prototype.hasOwnProperty), Pt = Xt(RegExp.prototype.test), pn = qd(TypeError);
2794
+ const Qn = Xt(Array.prototype.forEach), Ba = Xt(Array.prototype.pop), hn = Xt(Array.prototype.push), us = Xt(String.prototype.toLowerCase), hi = Xt(String.prototype.toString), Ga = Xt(String.prototype.match), dn = Xt(String.prototype.replace), jd = Xt(String.prototype.indexOf), Yd = Xt(String.prototype.trim), ne = Xt(Object.prototype.hasOwnProperty), Pt = Xt(RegExp.prototype.test), pn = qd(TypeError);
2795
2795
  function Xt(s) {
2796
2796
  return function(t) {
2797
2797
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2798
2798
  n[i - 1] = arguments[i];
2799
- return Ui(s, t, n);
2799
+ return Fi(s, t, n);
2800
2800
  };
2801
2801
  }
2802
2802
  function qd(s) {
2803
2803
  return function() {
2804
2804
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
2805
2805
  e[n] = arguments[n];
2806
- return zi(s, e);
2806
+ return Wi(s, e);
2807
2807
  };
2808
2808
  }
2809
2809
  function rt(s, t) {
2810
- let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ls;
2810
+ let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : us;
2811
2811
  Va && Va(s, null);
2812
2812
  let n = t.length;
2813
2813
  for (; n--; ) {
@@ -2847,7 +2847,7 @@ function fn(s, t) {
2847
2847
  }
2848
2848
  return e;
2849
2849
  }
2850
- const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ui = Vt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), hi = Vt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Kd = Vt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), di = Vt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jd = Vt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ua = Vt(["#text"]), za = Vt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), pi = Vt(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Vt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Jn = Vt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qd = Qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tp = Qt(/<%[\w\W]*|[\w\W]*%>/gm), ep = Qt(/\${[\w\W]*}/gm), np = Qt(/^data-[\-\w.\u00B7-\uFFFF]/), sp = Qt(/^aria-[\-\w]+$/), yl = Qt(
2850
+ const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), di = Vt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pi = Vt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Kd = Vt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), fi = Vt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jd = Vt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ua = Vt(["#text"]), za = Vt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), gi = Vt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Vt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ts = Vt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qd = Qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tp = Qt(/<%[\w\W]*|[\w\W]*%>/gm), ep = Qt(/\${[\w\W]*}/gm), np = Qt(/^data-[\-\w.\u00B7-\uFFFF]/), sp = Qt(/^aria-[\-\w]+$/), yl = Qt(
2851
2851
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2852
2852
  // eslint-disable-line no-useless-escape
2853
2853
  ), ip = Qt(/^(?:\w+script|data):/i), rp = Qt(
@@ -2856,33 +2856,24 @@ const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
2856
2856
  ), El = Qt(/^html$/i), ap = Qt(/^[a-z][.\w]*(-[.\w]+)+$/i);
2857
2857
  var Wa = /* @__PURE__ */ Object.freeze({
2858
2858
  __proto__: null,
2859
- MUSTACHE_EXPR: Qd,
2860
- ERB_EXPR: tp,
2861
- TMPLIT_EXPR: ep,
2862
- DATA_ATTR: np,
2863
2859
  ARIA_ATTR: sp,
2864
- IS_ALLOWED_URI: yl,
2865
- IS_SCRIPT_OR_DATA: ip,
2866
2860
  ATTR_WHITESPACE: rp,
2861
+ CUSTOM_ELEMENT: ap,
2862
+ DATA_ATTR: np,
2867
2863
  DOCTYPE_NAME: El,
2868
- CUSTOM_ELEMENT: ap
2864
+ ERB_EXPR: tp,
2865
+ IS_ALLOWED_URI: yl,
2866
+ IS_SCRIPT_OR_DATA: ip,
2867
+ MUSTACHE_EXPR: Qd,
2868
+ TMPLIT_EXPR: ep
2869
2869
  });
2870
2870
  const gn = {
2871
2871
  element: 1,
2872
- attribute: 2,
2873
2872
  text: 3,
2874
- cdataSection: 4,
2875
- entityReference: 5,
2876
- // Deprecated
2877
- entityNode: 6,
2878
2873
  // Deprecated
2879
2874
  progressingInstruction: 7,
2880
2875
  comment: 8,
2881
- document: 9,
2882
- documentType: 10,
2883
- documentFragment: 11,
2884
- notation: 12
2885
- // Deprecated
2876
+ document: 9
2886
2877
  }, op = function() {
2887
2878
  return typeof window > "u" ? null : window;
2888
2879
  }, lp = function(t, e) {
@@ -2907,8 +2898,8 @@ const gn = {
2907
2898
  };
2908
2899
  function Sl() {
2909
2900
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : op();
2910
- const t = (K) => Sl(K);
2911
- if (t.version = "3.1.6", t.removed = [], !s || !s.document || s.document.nodeType !== gn.document)
2901
+ const t = (Z) => Sl(Z);
2902
+ if (t.version = "3.2.0", t.removed = [], !s || !s.document || s.document.nodeType !== gn.document)
2912
2903
  return t.isSupported = !1, t;
2913
2904
  let {
2914
2905
  document: e
@@ -2925,17 +2916,17 @@ function Sl() {
2925
2916
  trustedTypes: p
2926
2917
  } = s, f = c.prototype, g = fn(f, "cloneNode"), m = fn(f, "remove"), E = fn(f, "nextSibling"), y = fn(f, "childNodes"), v = fn(f, "parentNode");
2927
2918
  if (typeof a == "function") {
2928
- const K = e.createElement("template");
2929
- K.content && K.content.ownerDocument && (e = K.content.ownerDocument);
2919
+ const Z = e.createElement("template");
2920
+ Z.content && Z.content.ownerDocument && (e = Z.content.ownerDocument);
2930
2921
  }
2931
2922
  let S, b = "";
2932
2923
  const {
2933
2924
  implementation: O,
2934
2925
  createNodeIterator: I,
2935
- createDocumentFragment: k,
2926
+ createDocumentFragment: C,
2936
2927
  getElementsByTagName: G
2937
2928
  } = e, {
2938
- importNode: C
2929
+ importNode: k
2939
2930
  } = n;
2940
2931
  let L = {};
2941
2932
  t.isSupported = typeof ml == "function" && typeof v == "function" && O && O.createHTMLDocument !== void 0;
@@ -2952,9 +2943,9 @@ function Sl() {
2952
2943
  let {
2953
2944
  IS_ALLOWED_URI: X
2954
2945
  } = Wa, F = null;
2955
- const et = rt({}, [...Ha, ...ui, ...hi, ...di, ...Ua]);
2946
+ const et = rt({}, [...Ha, ...di, ...pi, ...fi, ...Ua]);
2956
2947
  let J = null;
2957
- const ct = rt({}, [...za, ...pi, ...Fa, ...Jn]);
2948
+ const ct = rt({}, [...za, ...gi, ...Fa, ...ts]);
2958
2949
  let Q = Object.seal(vl(null, {
2959
2950
  tagNameCheck: {
2960
2951
  writable: !0,
@@ -2974,40 +2965,28 @@ function Sl() {
2974
2965
  enumerable: !0,
2975
2966
  value: !1
2976
2967
  }
2977
- })), j = null, Z = null, ut = !0, ht = !0, Et = !1, Ut = !0, H = !1, U = !0, W = !1, zt = !1, an = !1, nt = !1, St = !1, ie = !1, te = !0, Tr = !1;
2978
- const kl = "user-content-";
2979
- let $s = !0, on = !1, Pe = {}, Ne = null;
2980
- const Or = rt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2981
- let wr = null;
2982
- const Lr = rt({}, ["audio", "video", "img", "source", "image", "track"]);
2983
- let Vs = null;
2984
- const Ar = rt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
2985
- let $e = he, Bs = !1, Gs = null;
2986
- const Rl = rt({}, [$n, Vn, he], ci);
2968
+ })), j = null, K = null, ut = !0, ht = !0, yt = !1, Ut = !0, H = !1, U = !0, W = !1, zt = !1, an = !1, nt = !1, Et = !1, ie = !1, te = !0, wr = !1;
2969
+ const Cl = "user-content-";
2970
+ let Bs = !0, on = !1, Pe = {}, Ne = null;
2971
+ const Lr = rt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2972
+ let Ar = null;
2973
+ const Mr = rt({}, ["audio", "video", "img", "source", "image", "track"]);
2974
+ let Gs = null;
2975
+ const _r = rt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
2976
+ let $e = he, Hs = !1, Us = null;
2977
+ const Rl = rt({}, [$n, Vn, he], hi);
2978
+ let Bn = rt({}, ["mi", "mo", "mn", "ms", "mtext"]), Gn = rt({}, ["annotation-xml"]);
2979
+ const Il = rt({}, ["title", "style", "font", "a", "script"]);
2987
2980
  let ln = null;
2988
- const Il = ["application/xhtml+xml", "text/html"], Dl = "text/html";
2981
+ const Dl = ["application/xhtml+xml", "text/html"], Pl = "text/html";
2989
2982
  let Lt = null, Ve = null;
2990
- const Pl = e.createElement("form"), Mr = function(M) {
2983
+ const Nl = e.createElement("form"), kr = function(M) {
2991
2984
  return M instanceof RegExp || M instanceof Function;
2992
- }, Hs = function() {
2985
+ }, zs = function() {
2993
2986
  let M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2994
2987
  if (!(Ve && Ve === M)) {
2995
2988
  if ((!M || typeof M != "object") && (M = {}), M = Me(M), ln = // eslint-disable-next-line unicorn/prefer-includes
2996
- Il.indexOf(M.PARSER_MEDIA_TYPE) === -1 ? Dl : M.PARSER_MEDIA_TYPE, Lt = ln === "application/xhtml+xml" ? ci : ls, F = ne(M, "ALLOWED_TAGS") ? rt({}, M.ALLOWED_TAGS, Lt) : et, J = ne(M, "ALLOWED_ATTR") ? rt({}, M.ALLOWED_ATTR, Lt) : ct, Gs = ne(M, "ALLOWED_NAMESPACES") ? rt({}, M.ALLOWED_NAMESPACES, ci) : Rl, Vs = ne(M, "ADD_URI_SAFE_ATTR") ? rt(
2997
- Me(Ar),
2998
- // eslint-disable-line indent
2999
- M.ADD_URI_SAFE_ATTR,
3000
- // eslint-disable-line indent
3001
- Lt
3002
- // eslint-disable-line indent
3003
- ) : Ar, wr = ne(M, "ADD_DATA_URI_TAGS") ? rt(
3004
- Me(Lr),
3005
- // eslint-disable-line indent
3006
- M.ADD_DATA_URI_TAGS,
3007
- // eslint-disable-line indent
3008
- Lt
3009
- // eslint-disable-line indent
3010
- ) : Lr, Ne = ne(M, "FORBID_CONTENTS") ? rt({}, M.FORBID_CONTENTS, Lt) : Or, j = ne(M, "FORBID_TAGS") ? rt({}, M.FORBID_TAGS, Lt) : {}, Z = ne(M, "FORBID_ATTR") ? rt({}, M.FORBID_ATTR, Lt) : {}, Pe = ne(M, "USE_PROFILES") ? M.USE_PROFILES : !1, ut = M.ALLOW_ARIA_ATTR !== !1, ht = M.ALLOW_DATA_ATTR !== !1, Et = M.ALLOW_UNKNOWN_PROTOCOLS || !1, Ut = M.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = M.SAFE_FOR_TEMPLATES || !1, U = M.SAFE_FOR_XML !== !1, W = M.WHOLE_DOCUMENT || !1, nt = M.RETURN_DOM || !1, St = M.RETURN_DOM_FRAGMENT || !1, ie = M.RETURN_TRUSTED_TYPE || !1, an = M.FORCE_BODY || !1, te = M.SANITIZE_DOM !== !1, Tr = M.SANITIZE_NAMED_PROPS || !1, $s = M.KEEP_CONTENT !== !1, on = M.IN_PLACE || !1, X = M.ALLOWED_URI_REGEXP || yl, $e = M.NAMESPACE || he, Q = M.CUSTOM_ELEMENT_HANDLING || {}, M.CUSTOM_ELEMENT_HANDLING && Mr(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = M.CUSTOM_ELEMENT_HANDLING.tagNameCheck), M.CUSTOM_ELEMENT_HANDLING && Mr(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), M.CUSTOM_ELEMENT_HANDLING && typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (ht = !1), St && (nt = !0), Pe && (F = rt({}, Ua), J = [], Pe.html === !0 && (rt(F, Ha), rt(J, za)), Pe.svg === !0 && (rt(F, ui), rt(J, pi), rt(J, Jn)), Pe.svgFilters === !0 && (rt(F, hi), rt(J, pi), rt(J, Jn)), Pe.mathMl === !0 && (rt(F, di), rt(J, Fa), rt(J, Jn))), M.ADD_TAGS && (F === et && (F = Me(F)), rt(F, M.ADD_TAGS, Lt)), M.ADD_ATTR && (J === ct && (J = Me(J)), rt(J, M.ADD_ATTR, Lt)), M.ADD_URI_SAFE_ATTR && rt(Vs, M.ADD_URI_SAFE_ATTR, Lt), M.FORBID_CONTENTS && (Ne === Or && (Ne = Me(Ne)), rt(Ne, M.FORBID_CONTENTS, Lt)), $s && (F["#text"] = !0), W && rt(F, ["html", "head", "body"]), F.table && (rt(F, ["tbody"]), delete j.tbody), M.TRUSTED_TYPES_POLICY) {
2989
+ Dl.indexOf(M.PARSER_MEDIA_TYPE) === -1 ? Pl : M.PARSER_MEDIA_TYPE, Lt = ln === "application/xhtml+xml" ? hi : us, F = ne(M, "ALLOWED_TAGS") ? rt({}, M.ALLOWED_TAGS, Lt) : et, J = ne(M, "ALLOWED_ATTR") ? rt({}, M.ALLOWED_ATTR, Lt) : ct, Us = ne(M, "ALLOWED_NAMESPACES") ? rt({}, M.ALLOWED_NAMESPACES, hi) : Rl, Gs = ne(M, "ADD_URI_SAFE_ATTR") ? rt(Me(_r), M.ADD_URI_SAFE_ATTR, Lt) : _r, Ar = ne(M, "ADD_DATA_URI_TAGS") ? rt(Me(Mr), M.ADD_DATA_URI_TAGS, Lt) : Mr, Ne = ne(M, "FORBID_CONTENTS") ? rt({}, M.FORBID_CONTENTS, Lt) : Lr, j = ne(M, "FORBID_TAGS") ? rt({}, M.FORBID_TAGS, Lt) : {}, K = ne(M, "FORBID_ATTR") ? rt({}, M.FORBID_ATTR, Lt) : {}, Pe = ne(M, "USE_PROFILES") ? M.USE_PROFILES : !1, ut = M.ALLOW_ARIA_ATTR !== !1, ht = M.ALLOW_DATA_ATTR !== !1, yt = M.ALLOW_UNKNOWN_PROTOCOLS || !1, Ut = M.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = M.SAFE_FOR_TEMPLATES || !1, U = M.SAFE_FOR_XML !== !1, W = M.WHOLE_DOCUMENT || !1, nt = M.RETURN_DOM || !1, Et = M.RETURN_DOM_FRAGMENT || !1, ie = M.RETURN_TRUSTED_TYPE || !1, an = M.FORCE_BODY || !1, te = M.SANITIZE_DOM !== !1, wr = M.SANITIZE_NAMED_PROPS || !1, Bs = M.KEEP_CONTENT !== !1, on = M.IN_PLACE || !1, X = M.ALLOWED_URI_REGEXP || yl, $e = M.NAMESPACE || he, Bn = M.MATHML_TEXT_INTEGRATION_POINTS || Bn, Gn = M.HTML_INTEGRATION_POINTS || Gn, Q = M.CUSTOM_ELEMENT_HANDLING || {}, M.CUSTOM_ELEMENT_HANDLING && kr(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = M.CUSTOM_ELEMENT_HANDLING.tagNameCheck), M.CUSTOM_ELEMENT_HANDLING && kr(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), M.CUSTOM_ELEMENT_HANDLING && typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (ht = !1), Et && (nt = !0), Pe && (F = rt({}, Ua), J = [], Pe.html === !0 && (rt(F, Ha), rt(J, za)), Pe.svg === !0 && (rt(F, di), rt(J, gi), rt(J, ts)), Pe.svgFilters === !0 && (rt(F, pi), rt(J, gi), rt(J, ts)), Pe.mathMl === !0 && (rt(F, fi), rt(J, Fa), rt(J, ts))), M.ADD_TAGS && (F === et && (F = Me(F)), rt(F, M.ADD_TAGS, Lt)), M.ADD_ATTR && (J === ct && (J = Me(J)), rt(J, M.ADD_ATTR, Lt)), M.ADD_URI_SAFE_ATTR && rt(Gs, M.ADD_URI_SAFE_ATTR, Lt), M.FORBID_CONTENTS && (Ne === Lr && (Ne = Me(Ne)), rt(Ne, M.FORBID_CONTENTS, Lt)), Bs && (F["#text"] = !0), W && rt(F, ["html", "head", "body"]), F.table && (rt(F, ["tbody"]), delete j.tbody), M.TRUSTED_TYPES_POLICY) {
3011
2990
  if (typeof M.TRUSTED_TYPES_POLICY.createHTML != "function")
3012
2991
  throw pn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3013
2992
  if (typeof M.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -3017,14 +2996,14 @@ function Sl() {
3017
2996
  S === void 0 && (S = lp(p, i)), S !== null && typeof b == "string" && (b = S.createHTML(""));
3018
2997
  Vt && Vt(M), Ve = M;
3019
2998
  }
3020
- }, _r = rt({}, ["mi", "mo", "mn", "ms", "mtext"]), Cr = rt({}, ["foreignobject", "annotation-xml"]), Nl = rt({}, ["title", "style", "font", "a", "script"]), kr = rt({}, [...ui, ...hi, ...Kd]), Rr = rt({}, [...di, ...Jd]), $l = function(M) {
2999
+ }, Cr = rt({}, [...di, ...pi, ...Kd]), Rr = rt({}, [...fi, ...Jd]), $l = function(M) {
3021
3000
  let z = v(M);
3022
3001
  (!z || !z.tagName) && (z = {
3023
3002
  namespaceURI: $e,
3024
3003
  tagName: "template"
3025
3004
  });
3026
- const q = ls(M.tagName), mt = ls(z.tagName);
3027
- return Gs[M.namespaceURI] ? M.namespaceURI === Vn ? z.namespaceURI === he ? q === "svg" : z.namespaceURI === $n ? q === "svg" && (mt === "annotation-xml" || _r[mt]) : !!kr[q] : M.namespaceURI === $n ? z.namespaceURI === he ? q === "math" : z.namespaceURI === Vn ? q === "math" && Cr[mt] : !!Rr[q] : M.namespaceURI === he ? z.namespaceURI === Vn && !Cr[mt] || z.namespaceURI === $n && !_r[mt] ? !1 : !Rr[q] && (Nl[q] || !kr[q]) : !!(ln === "application/xhtml+xml" && Gs[M.namespaceURI]) : !1;
3005
+ const q = us(M.tagName), St = us(z.tagName);
3006
+ return Us[M.namespaceURI] ? M.namespaceURI === Vn ? z.namespaceURI === he ? q === "svg" : z.namespaceURI === $n ? q === "svg" && (St === "annotation-xml" || Bn[St]) : !!Cr[q] : M.namespaceURI === $n ? z.namespaceURI === he ? q === "math" : z.namespaceURI === Vn ? q === "math" && Gn[St] : !!Rr[q] : M.namespaceURI === he ? z.namespaceURI === Vn && !Gn[St] || z.namespaceURI === $n && !Bn[St] ? !1 : !Rr[q] && (Il[q] || !Cr[q]) : !!(ln === "application/xhtml+xml" && Us[M.namespaceURI]) : !1;
3028
3007
  }, re = function(M) {
3029
3008
  hn(t.removed, {
3030
3009
  element: M
@@ -3034,7 +3013,7 @@ function Sl() {
3034
3013
  } catch {
3035
3014
  m(M);
3036
3015
  }
3037
- }, Bn = function(M, z) {
3016
+ }, Hn = function(M, z) {
3038
3017
  try {
3039
3018
  hn(t.removed, {
3040
3019
  attribute: z.getAttributeNode(M),
@@ -3047,7 +3026,7 @@ function Sl() {
3047
3026
  });
3048
3027
  }
3049
3028
  if (z.removeAttribute(M), M === "is" && !J[M])
3050
- if (nt || St)
3029
+ if (nt || Et)
3051
3030
  try {
3052
3031
  re(z);
3053
3032
  } catch {
@@ -3066,21 +3045,21 @@ function Sl() {
3066
3045
  q = At && At[0];
3067
3046
  }
3068
3047
  ln === "application/xhtml+xml" && $e === he && (M = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + M + "</body></html>");
3069
- const mt = S ? S.createHTML(M) : M;
3048
+ const St = S ? S.createHTML(M) : M;
3070
3049
  if ($e === he)
3071
3050
  try {
3072
- z = new u().parseFromString(mt, ln);
3051
+ z = new u().parseFromString(St, ln);
3073
3052
  } catch {
3074
3053
  }
3075
3054
  if (!z || !z.documentElement) {
3076
3055
  z = O.createDocument($e, "template", null);
3077
3056
  try {
3078
- z.documentElement.innerHTML = Bs ? b : mt;
3057
+ z.documentElement.innerHTML = Hs ? b : St;
3079
3058
  } catch {
3080
3059
  }
3081
3060
  }
3082
- const Ct = z.body || z.documentElement;
3083
- return M && q && Ct.insertBefore(e.createTextNode(q), Ct.childNodes[0] || null), $e === he ? G.call(z, W ? "html" : "body")[0] : W ? z.documentElement : Ct;
3061
+ const kt = z.body || z.documentElement;
3062
+ return M && q && kt.insertBefore(e.createTextNode(q), kt.childNodes[0] || null), $e === he ? G.call(z, W ? "html" : "body")[0] : W ? z.documentElement : kt;
3084
3063
  }, Dr = function(M) {
3085
3064
  return I.call(
3086
3065
  M.ownerDocument || M,
@@ -3093,11 +3072,13 @@ function Sl() {
3093
3072
  return M instanceof d && (typeof M.nodeName != "string" || typeof M.textContent != "string" || typeof M.removeChild != "function" || !(M.attributes instanceof h) || typeof M.removeAttribute != "function" || typeof M.setAttribute != "function" || typeof M.namespaceURI != "string" || typeof M.insertBefore != "function" || typeof M.hasChildNodes != "function");
3094
3073
  }, Nr = function(M) {
3095
3074
  return typeof o == "function" && M instanceof o;
3096
- }, de = function(M, z, q) {
3097
- L[M] && Kn(L[M], (mt) => {
3098
- mt.call(t, z, q, Ve);
3075
+ };
3076
+ function de(Z, M, z) {
3077
+ L[Z] && Qn(L[Z], (q) => {
3078
+ q.call(t, M, z, Ve);
3099
3079
  });
3100
- }, $r = function(M) {
3080
+ }
3081
+ const $r = function(M) {
3101
3082
  let z = null;
3102
3083
  if (de("beforeSanitizeElements", M, null), Pr(M))
3103
3084
  return re(M), !0;
@@ -3110,29 +3091,29 @@ function Sl() {
3110
3091
  if (!F[q] || j[q]) {
3111
3092
  if (!j[q] && Br(q) && (Q.tagNameCheck instanceof RegExp && Pt(Q.tagNameCheck, q) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(q)))
3112
3093
  return !1;
3113
- if ($s && !Ne[q]) {
3114
- const mt = v(M) || M.parentNode, Ct = y(M) || M.childNodes;
3115
- if (Ct && mt) {
3116
- const At = Ct.length;
3094
+ if (Bs && !Ne[q]) {
3095
+ const St = v(M) || M.parentNode, kt = y(M) || M.childNodes;
3096
+ if (kt && St) {
3097
+ const At = kt.length;
3117
3098
  for (let Bt = At - 1; Bt >= 0; --Bt) {
3118
- const ae = g(Ct[Bt], !0);
3119
- ae.__removalCount = (M.__removalCount || 0) + 1, mt.insertBefore(ae, E(M));
3099
+ const ae = g(kt[Bt], !0);
3100
+ ae.__removalCount = (M.__removalCount || 0) + 1, St.insertBefore(ae, E(M));
3120
3101
  }
3121
3102
  }
3122
3103
  }
3123
3104
  return re(M), !0;
3124
3105
  }
3125
- return M instanceof c && !$l(M) || (q === "noscript" || q === "noembed" || q === "noframes") && Pt(/<\/no(script|embed|frames)/i, M.innerHTML) ? (re(M), !0) : (H && M.nodeType === gn.text && (z = M.textContent, Kn([B, D, A], (mt) => {
3126
- z = dn(z, mt, " ");
3106
+ return M instanceof c && !$l(M) || (q === "noscript" || q === "noembed" || q === "noframes") && Pt(/<\/no(script|embed|frames)/i, M.innerHTML) ? (re(M), !0) : (H && M.nodeType === gn.text && (z = M.textContent, Qn([B, D, A], (St) => {
3107
+ z = dn(z, St, " ");
3127
3108
  }), M.textContent !== z && (hn(t.removed, {
3128
3109
  element: M.cloneNode()
3129
3110
  }), M.textContent = z)), de("afterSanitizeElements", M, null), !1);
3130
3111
  }, Vr = function(M, z, q) {
3131
- if (te && (z === "id" || z === "name") && (q in e || q in Pl))
3112
+ if (te && (z === "id" || z === "name") && (q in e || q in Nl))
3132
3113
  return !1;
3133
- if (!(ht && !Z[z] && Pt(w, z))) {
3114
+ if (!(ht && !K[z] && Pt(w, z))) {
3134
3115
  if (!(ut && Pt(V, z))) {
3135
- if (!J[z] || Z[z]) {
3116
+ if (!J[z] || K[z]) {
3136
3117
  if (
3137
3118
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
3138
3119
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -3141,10 +3122,10 @@ function Sl() {
3141
3122
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3142
3123
  z === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && Pt(Q.tagNameCheck, q) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(q)))
3143
3124
  ) return !1;
3144
- } else if (!Vs[z]) {
3125
+ } else if (!Gs[z]) {
3145
3126
  if (!Pt(X, dn(q, P, ""))) {
3146
- if (!((z === "src" || z === "xlink:href" || z === "href") && M !== "script" && jd(q, "data:") === 0 && wr[M])) {
3147
- if (!(Et && !Pt(N, dn(q, P, "")))) {
3127
+ if (!((z === "src" || z === "xlink:href" || z === "href") && M !== "script" && jd(q, "data:") === 0 && Ar[M])) {
3128
+ if (!(yt && !Pt(N, dn(q, P, "")))) {
3148
3129
  if (q)
3149
3130
  return !1;
3150
3131
  }
@@ -3167,32 +3148,33 @@ function Sl() {
3167
3148
  attrName: "",
3168
3149
  attrValue: "",
3169
3150
  keepAttr: !0,
3170
- allowedAttributes: J
3151
+ allowedAttributes: J,
3152
+ forceKeepAttr: void 0
3171
3153
  };
3172
- let mt = z.length;
3173
- for (; mt--; ) {
3174
- const Ct = z[mt], {
3154
+ let St = z.length;
3155
+ for (; St--; ) {
3156
+ const kt = z[St], {
3175
3157
  name: At,
3176
3158
  namespaceURI: Bt,
3177
3159
  value: ae
3178
- } = Ct, cn = Lt(At);
3160
+ } = kt, cn = Lt(At);
3179
3161
  let Dt = At === "value" ? ae : Yd(ae);
3180
- if (q.attrName = cn, q.attrValue = Dt, q.keepAttr = !0, q.forceKeepAttr = void 0, de("uponSanitizeAttribute", M, q), Dt = q.attrValue, U && Pt(/((--!?|])>)|<\/(style|title)/i, Dt)) {
3181
- Bn(At, M);
3162
+ if (q.attrName = cn, q.attrValue = Dt, q.keepAttr = !0, q.forceKeepAttr = void 0, de("uponSanitizeAttribute", M, q), Dt = q.attrValue, wr && (cn === "id" || cn === "name") && (Hn(At, M), Dt = Cl + Dt), U && Pt(/((--!?|])>)|<\/(style|title)/i, Dt)) {
3163
+ Hn(At, M);
3182
3164
  continue;
3183
3165
  }
3184
- if (q.forceKeepAttr || (Bn(At, M), !q.keepAttr))
3166
+ if (q.forceKeepAttr || (Hn(At, M), !q.keepAttr))
3185
3167
  continue;
3186
3168
  if (!Ut && Pt(/\/>/i, Dt)) {
3187
- Bn(At, M);
3169
+ Hn(At, M);
3188
3170
  continue;
3189
3171
  }
3190
- H && Kn([B, D, A], (Ur) => {
3172
+ H && Qn([B, D, A], (Ur) => {
3191
3173
  Dt = dn(Dt, Ur, " ");
3192
3174
  });
3193
3175
  const Hr = Lt(M.nodeName);
3194
3176
  if (Vr(Hr, cn, Dt)) {
3195
- if (Tr && (cn === "id" || cn === "name") && (Bn(At, M), Dt = kl + Dt), S && typeof p == "object" && typeof p.getAttributeType == "function" && !Bt)
3177
+ if (S && typeof p == "object" && typeof p.getAttributeType == "function" && !Bt)
3196
3178
  switch (p.getAttributeType(Hr, cn)) {
3197
3179
  case "TrustedHTML": {
3198
3180
  Dt = S.createHTML(Dt);
@@ -3210,92 +3192,92 @@ function Sl() {
3210
3192
  }
3211
3193
  }
3212
3194
  de("afterSanitizeAttributes", M, null);
3213
- }, Vl = function K(M) {
3195
+ }, Vl = function Z(M) {
3214
3196
  let z = null;
3215
3197
  const q = Dr(M);
3216
3198
  for (de("beforeSanitizeShadowDOM", M, null); z = q.nextNode(); )
3217
- de("uponSanitizeShadowNode", z, null), !$r(z) && (z.content instanceof r && K(z.content), Gr(z));
3199
+ de("uponSanitizeShadowNode", z, null), !$r(z) && (z.content instanceof r && Z(z.content), Gr(z));
3218
3200
  de("afterSanitizeShadowDOM", M, null);
3219
3201
  };
3220
- return t.sanitize = function(K) {
3221
- let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, q = null, mt = null, Ct = null;
3222
- if (Bs = !K, Bs && (K = "<!-->"), typeof K != "string" && !Nr(K))
3223
- if (typeof K.toString == "function") {
3224
- if (K = K.toString(), typeof K != "string")
3202
+ return t.sanitize = function(Z) {
3203
+ let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, q = null, St = null, kt = null;
3204
+ if (Hs = !Z, Hs && (Z = "<!-->"), typeof Z != "string" && !Nr(Z))
3205
+ if (typeof Z.toString == "function") {
3206
+ if (Z = Z.toString(), typeof Z != "string")
3225
3207
  throw pn("dirty is not a string, aborting");
3226
3208
  } else
3227
3209
  throw pn("toString is not a function");
3228
3210
  if (!t.isSupported)
3229
- return K;
3230
- if (zt || Hs(M), t.removed = [], typeof K == "string" && (on = !1), on) {
3231
- if (K.nodeName) {
3232
- const ae = Lt(K.nodeName);
3211
+ return Z;
3212
+ if (zt || zs(M), t.removed = [], typeof Z == "string" && (on = !1), on) {
3213
+ if (Z.nodeName) {
3214
+ const ae = Lt(Z.nodeName);
3233
3215
  if (!F[ae] || j[ae])
3234
3216
  throw pn("root node is forbidden and cannot be sanitized in-place");
3235
3217
  }
3236
- } else if (K instanceof o)
3237
- z = Ir("<!---->"), q = z.ownerDocument.importNode(K, !0), q.nodeType === gn.element && q.nodeName === "BODY" || q.nodeName === "HTML" ? z = q : z.appendChild(q);
3218
+ } else if (Z instanceof o)
3219
+ z = Ir("<!---->"), q = z.ownerDocument.importNode(Z, !0), q.nodeType === gn.element && q.nodeName === "BODY" || q.nodeName === "HTML" ? z = q : z.appendChild(q);
3238
3220
  else {
3239
3221
  if (!nt && !H && !W && // eslint-disable-next-line unicorn/prefer-includes
3240
- K.indexOf("<") === -1)
3241
- return S && ie ? S.createHTML(K) : K;
3242
- if (z = Ir(K), !z)
3222
+ Z.indexOf("<") === -1)
3223
+ return S && ie ? S.createHTML(Z) : Z;
3224
+ if (z = Ir(Z), !z)
3243
3225
  return nt ? null : ie ? b : "";
3244
3226
  }
3245
3227
  z && an && re(z.firstChild);
3246
- const At = Dr(on ? K : z);
3247
- for (; mt = At.nextNode(); )
3248
- $r(mt) || (mt.content instanceof r && Vl(mt.content), Gr(mt));
3228
+ const At = Dr(on ? Z : z);
3229
+ for (; St = At.nextNode(); )
3230
+ $r(St) || (St.content instanceof r && Vl(St.content), Gr(St));
3249
3231
  if (on)
3250
- return K;
3232
+ return Z;
3251
3233
  if (nt) {
3252
- if (St)
3253
- for (Ct = k.call(z.ownerDocument); z.firstChild; )
3254
- Ct.appendChild(z.firstChild);
3234
+ if (Et)
3235
+ for (kt = C.call(z.ownerDocument); z.firstChild; )
3236
+ kt.appendChild(z.firstChild);
3255
3237
  else
3256
- Ct = z;
3257
- return (J.shadowroot || J.shadowrootmode) && (Ct = C.call(n, Ct, !0)), Ct;
3238
+ kt = z;
3239
+ return (J.shadowroot || J.shadowrootmode) && (kt = k.call(n, kt, !0)), kt;
3258
3240
  }
3259
3241
  let Bt = W ? z.outerHTML : z.innerHTML;
3260
3242
  return W && F["!doctype"] && z.ownerDocument && z.ownerDocument.doctype && z.ownerDocument.doctype.name && Pt(El, z.ownerDocument.doctype.name) && (Bt = "<!DOCTYPE " + z.ownerDocument.doctype.name + `>
3261
- ` + Bt), H && Kn([B, D, A], (ae) => {
3243
+ ` + Bt), H && Qn([B, D, A], (ae) => {
3262
3244
  Bt = dn(Bt, ae, " ");
3263
3245
  }), S && ie ? S.createHTML(Bt) : Bt;
3264
3246
  }, t.setConfig = function() {
3265
- let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3266
- Hs(K), zt = !0;
3247
+ let Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3248
+ zs(Z), zt = !0;
3267
3249
  }, t.clearConfig = function() {
3268
3250
  Ve = null, zt = !1;
3269
- }, t.isValidAttribute = function(K, M, z) {
3270
- Ve || Hs({});
3271
- const q = Lt(K), mt = Lt(M);
3272
- return Vr(q, mt, z);
3273
- }, t.addHook = function(K, M) {
3274
- typeof M == "function" && (L[K] = L[K] || [], hn(L[K], M));
3275
- }, t.removeHook = function(K) {
3276
- if (L[K])
3277
- return Ba(L[K]);
3278
- }, t.removeHooks = function(K) {
3279
- L[K] && (L[K] = []);
3251
+ }, t.isValidAttribute = function(Z, M, z) {
3252
+ Ve || zs({});
3253
+ const q = Lt(Z), St = Lt(M);
3254
+ return Vr(q, St, z);
3255
+ }, t.addHook = function(Z, M) {
3256
+ typeof M == "function" && (L[Z] = L[Z] || [], hn(L[Z], M));
3257
+ }, t.removeHook = function(Z) {
3258
+ if (L[Z])
3259
+ return Ba(L[Z]);
3260
+ }, t.removeHooks = function(Z) {
3261
+ L[Z] && (L[Z] = []);
3280
3262
  }, t.removeAllHooks = function() {
3281
3263
  L = {};
3282
3264
  }, t;
3283
3265
  }
3284
- var Er = Sl();
3285
- const Qn = (s) => Er.sanitize(s, {
3266
+ var xr = Sl();
3267
+ const es = (s) => xr.sanitize(s, {
3286
3268
  USE_PROFILES: {
3287
3269
  html: !0,
3288
3270
  svg: !0,
3289
3271
  svgFilters: !0
3290
3272
  }
3291
- }), cp = (s) => Er.sanitize(s, {
3273
+ }), cp = (s) => xr.sanitize(s, {
3292
3274
  NAMESPACE: "http://www.w3.org/2000/svg",
3293
3275
  USE_PROFILES: {
3294
3276
  html: !0,
3295
3277
  svg: !0,
3296
3278
  svgFilters: !0
3297
3279
  }
3298
- }), ue = (s) => Er.sanitize(s, { ALLOWED_TAGS: [] }), _s = class _s extends ot {
3280
+ }), ue = (s) => xr.sanitize(s, { ALLOWED_TAGS: [] }), Cs = class Cs extends ot {
3299
3281
  constructor() {
3300
3282
  super(...arguments), this.type = "toolbar", this.renderType = st.HTML;
3301
3283
  }
@@ -3473,7 +3455,7 @@ const Qn = (s) => Er.sanitize(s, {
3473
3455
  return e.forEach((a) => {
3474
3456
  let o = null;
3475
3457
  if (a.type === xt.CUSTOM)
3476
- T(a, "id") === null && (a.id = `toolbar-button-${_s.buttonID++}`), T(a, "shouldBeDisabled") === null && (a.shouldBeDisabled = () => !1), o = a;
3458
+ T(a, "id") === null && (a.id = `toolbar-button-${Cs.buttonID++}`), T(a, "shouldBeDisabled") === null && (a.shouldBeDisabled = () => !1), o = a;
3477
3459
  else {
3478
3460
  const c = this.services.domUtils.isFullScreenMode();
3479
3461
  a.type === xt.MAKE_FULLSCREEN && c ? a.type = xt.EXIT_FULLSCREEN : a.type === xt.EXIT_FULLSCREEN && !c && (a.type = xt.MAKE_FULLSCREEN), o = this.getControlConfigByType(a.type);
@@ -3667,11 +3649,11 @@ const Qn = (s) => Er.sanitize(s, {
3667
3649
  }
3668
3650
  }
3669
3651
  };
3670
- _s.buttonID = 0;
3671
- let Xa = _s;
3672
- const Cs = class Cs extends ot {
3652
+ Cs.buttonID = 0;
3653
+ let Xa = Cs;
3654
+ const Rs = class Rs extends ot {
3673
3655
  constructor(t, e, n, i) {
3674
- super(t, e, i), this.type = "layout", this.configs = i, this.children = n, this._instanceID = Cs.instanceID++, this.init();
3656
+ super(t, e, i), this.type = "layout", this.configs = i, this.children = n, this._instanceID = Rs.instanceID++, this.init();
3675
3657
  }
3676
3658
  init() {
3677
3659
  this.children.forEach((t) => {
@@ -3756,8 +3738,8 @@ const Cs = class Cs extends ot {
3756
3738
  });
3757
3739
  }
3758
3740
  };
3759
- Cs.instanceID = Math.floor(Math.random() * 99999999999);
3760
- let ja = Cs;
3741
+ Rs.instanceID = Math.floor(Math.random() * 99999999999);
3742
+ let ja = Rs;
3761
3743
  class h0 extends ot {
3762
3744
  constructor() {
3763
3745
  super(...arguments), this.type = "spacer";
@@ -3778,14 +3760,8 @@ var up = {
3778
3760
  button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
3779
3761
  textarea:not([disabled]):not([tabindex='-1']),
3780
3762
  iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]
3781
- `,
3782
- selectorFocusable: `
3783
- a[href], area[href], input:not([disabled]),
3784
- button:not([disabled]),select:not([disabled]),
3785
- textarea:not([disabled]),
3786
- iframe, object, embed, *[tabindex], *[contenteditable=true]
3787
3763
  `
3788
- }, fi = up;
3764
+ }, mi = up;
3789
3765
  function hp(s, t, e) {
3790
3766
  return Object.defineProperty(s, "prototype", {
3791
3767
  writable: !1
@@ -3804,19 +3780,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3804
3780
  }
3805
3781
  function gp(s, t) {
3806
3782
  if (s) {
3807
- if (typeof s == "string") return Fi(s, t);
3783
+ if (typeof s == "string") return Xi(s, t);
3808
3784
  var e = Object.prototype.toString.call(s).slice(8, -1);
3809
3785
  if (e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set") return Array.from(s);
3810
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Fi(s, t);
3786
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Xi(s, t);
3811
3787
  }
3812
3788
  }
3813
3789
  function mp(s) {
3814
3790
  if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null) return Array.from(s);
3815
3791
  }
3816
3792
  function vp(s) {
3817
- if (Array.isArray(s)) return Fi(s);
3793
+ if (Array.isArray(s)) return Xi(s);
3818
3794
  }
3819
- function Fi(s, t) {
3795
+ function Xi(s, t) {
3820
3796
  (t == null || t > s.length) && (t = s.length);
3821
3797
  for (var e = 0, n = new Array(t); e < t; e++)
3822
3798
  n[e] = s[e];
@@ -3839,13 +3815,13 @@ function yp() {
3839
3815
  return hp(n);
3840
3816
  }());
3841
3817
  }
3842
- function Wi(s) {
3818
+ function ji(s) {
3843
3819
  "@babel/helpers - typeof";
3844
- return Wi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3820
+ return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3845
3821
  return typeof t;
3846
3822
  } : function(t) {
3847
3823
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
3848
- }, Wi(s);
3824
+ }, ji(s);
3849
3825
  }
3850
3826
  function Ep(s, t) {
3851
3827
  if (!(s instanceof t))
@@ -3873,19 +3849,19 @@ function xp(s, t) {
3873
3849
  }
3874
3850
  }), Object.defineProperty(s, "prototype", {
3875
3851
  writable: !1
3876
- }), t && Xi(s, t);
3852
+ }), t && Yi(s, t);
3877
3853
  }
3878
- function Xi(s, t) {
3879
- return Xi = Object.setPrototypeOf || function(n, i) {
3854
+ function Yi(s, t) {
3855
+ return Yi = Object.setPrototypeOf || function(n, i) {
3880
3856
  return n.__proto__ = i, n;
3881
- }, Xi(s, t);
3857
+ }, Yi(s, t);
3882
3858
  }
3883
3859
  function bp(s) {
3884
3860
  var t = Op();
3885
3861
  return function() {
3886
- var n = Ts(s), i;
3862
+ var n = ws(s), i;
3887
3863
  if (t) {
3888
- var r = Ts(this).constructor;
3864
+ var r = ws(this).constructor;
3889
3865
  i = Reflect.construct(n, arguments, r);
3890
3866
  } else
3891
3867
  i = n.apply(this, arguments);
@@ -3893,7 +3869,7 @@ function bp(s) {
3893
3869
  };
3894
3870
  }
3895
3871
  function Tp(s, t) {
3896
- if (t && (Wi(t) === "object" || typeof t == "function"))
3872
+ if (t && (ji(t) === "object" || typeof t == "function"))
3897
3873
  return t;
3898
3874
  if (t !== void 0)
3899
3875
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -3914,10 +3890,10 @@ function Op() {
3914
3890
  return !1;
3915
3891
  }
3916
3892
  }
3917
- function Ts(s) {
3918
- return Ts = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
3893
+ function ws(s) {
3894
+ return ws = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
3919
3895
  return e.__proto__ || Object.getPrototypeOf(e);
3920
- }, Ts(s);
3896
+ }, ws(s);
3921
3897
  }
3922
3898
  function wp(s) {
3923
3899
  var t = /* @__PURE__ */ function(e) {
@@ -3950,13 +3926,13 @@ function wp(s) {
3950
3926
  }(s);
3951
3927
  return t;
3952
3928
  }
3953
- function ji(s) {
3929
+ function qi(s) {
3954
3930
  "@babel/helpers - typeof";
3955
- return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3931
+ return qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3956
3932
  return typeof t;
3957
3933
  } : function(t) {
3958
3934
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
3959
- }, ji(s);
3935
+ }, qi(s);
3960
3936
  }
3961
3937
  function Lp(s, t) {
3962
3938
  if (!(s instanceof t))
@@ -3973,21 +3949,21 @@ function Mp(s, t, e) {
3973
3949
  writable: !1
3974
3950
  }), s;
3975
3951
  }
3976
- function cs() {
3977
- return typeof Reflect < "u" && Reflect.get ? cs = Reflect.get : cs = function(t, e, n) {
3952
+ function hs() {
3953
+ return typeof Reflect < "u" && Reflect.get ? hs = Reflect.get : hs = function(t, e, n) {
3978
3954
  var i = _p(t, e);
3979
3955
  if (i) {
3980
3956
  var r = Object.getOwnPropertyDescriptor(i, e);
3981
3957
  return r.get ? r.get.call(arguments.length < 3 ? t : n) : r.value;
3982
3958
  }
3983
- }, cs.apply(this, arguments);
3959
+ }, hs.apply(this, arguments);
3984
3960
  }
3985
3961
  function _p(s, t) {
3986
3962
  for (; !Object.prototype.hasOwnProperty.call(s, t) && (s = rn(s), s !== null); )
3987
3963
  ;
3988
3964
  return s;
3989
3965
  }
3990
- function Cp(s, t) {
3966
+ function kp(s, t) {
3991
3967
  if (typeof t != "function" && t !== null)
3992
3968
  throw new TypeError("Super expression must either be null or a function");
3993
3969
  s.prototype = Object.create(t && t.prototype, {
@@ -3998,14 +3974,14 @@ function Cp(s, t) {
3998
3974
  }
3999
3975
  }), Object.defineProperty(s, "prototype", {
4000
3976
  writable: !1
4001
- }), t && Yi(s, t);
3977
+ }), t && Zi(s, t);
4002
3978
  }
4003
- function Yi(s, t) {
4004
- return Yi = Object.setPrototypeOf || function(n, i) {
3979
+ function Zi(s, t) {
3980
+ return Zi = Object.setPrototypeOf || function(n, i) {
4005
3981
  return n.__proto__ = i, n;
4006
- }, Yi(s, t);
3982
+ }, Zi(s, t);
4007
3983
  }
4008
- function kp(s) {
3984
+ function Cp(s) {
4009
3985
  var t = Dp();
4010
3986
  return function() {
4011
3987
  var n = rn(s), i;
@@ -4018,7 +3994,7 @@ function kp(s) {
4018
3994
  };
4019
3995
  }
4020
3996
  function Rp(s, t) {
4021
- if (t && (ji(t) === "object" || typeof t == "function"))
3997
+ if (t && (qi(t) === "object" || typeof t == "function"))
4022
3998
  return t;
4023
3999
  if (t !== void 0)
4024
4000
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4046,8 +4022,8 @@ function rn(s) {
4046
4022
  }
4047
4023
  function Pp(s) {
4048
4024
  var t = /* @__PURE__ */ function(e) {
4049
- Cp(i, e);
4050
- var n = kp(i);
4025
+ kp(i, e);
4026
+ var n = Cp(i);
4051
4027
  function i() {
4052
4028
  var r;
4053
4029
  Lp(this, i);
@@ -4083,7 +4059,7 @@ function Pp(s) {
4083
4059
  var a = this;
4084
4060
  return this.handles.forEach(function(o) {
4085
4061
  o.release(), a.handles.delete(o);
4086
- }), cs(rn(i.prototype), "release", this).call(this);
4062
+ }), hs(rn(i.prototype), "release", this).call(this);
4087
4063
  }
4088
4064
  }]), i;
4089
4065
  }(s);
@@ -4098,13 +4074,13 @@ function On(s) {
4098
4074
  }
4099
4075
  };
4100
4076
  }
4101
- function qi(s) {
4077
+ function Ki(s) {
4102
4078
  "@babel/helpers - typeof";
4103
- return qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4079
+ return Ki = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4104
4080
  return typeof t;
4105
4081
  } : function(t) {
4106
4082
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4107
- }, qi(s);
4083
+ }, Ki(s);
4108
4084
  }
4109
4085
  function Np(s) {
4110
4086
  return Gp(s) || Bp(s) || Vp(s) || $p();
@@ -4115,19 +4091,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4115
4091
  }
4116
4092
  function Vp(s, t) {
4117
4093
  if (s) {
4118
- if (typeof s == "string") return Zi(s, t);
4094
+ if (typeof s == "string") return Ji(s, t);
4119
4095
  var e = Object.prototype.toString.call(s).slice(8, -1);
4120
4096
  if (e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set") return Array.from(s);
4121
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Zi(s, t);
4097
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Ji(s, t);
4122
4098
  }
4123
4099
  }
4124
4100
  function Bp(s) {
4125
4101
  if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null) return Array.from(s);
4126
4102
  }
4127
4103
  function Gp(s) {
4128
- if (Array.isArray(s)) return Zi(s);
4104
+ if (Array.isArray(s)) return Ji(s);
4129
4105
  }
4130
- function Zi(s, t) {
4106
+ function Ji(s, t) {
4131
4107
  (t == null || t > s.length) && (t = s.length);
4132
4108
  for (var e = 0, n = new Array(t); e < t; e++)
4133
4109
  n[e] = s[e];
@@ -4159,19 +4135,19 @@ function Fp(s, t) {
4159
4135
  }
4160
4136
  }), Object.defineProperty(s, "prototype", {
4161
4137
  writable: !1
4162
- }), t && Ki(s, t);
4138
+ }), t && Qi(s, t);
4163
4139
  }
4164
- function Ki(s, t) {
4165
- return Ki = Object.setPrototypeOf || function(n, i) {
4140
+ function Qi(s, t) {
4141
+ return Qi = Object.setPrototypeOf || function(n, i) {
4166
4142
  return n.__proto__ = i, n;
4167
- }, Ki(s, t);
4143
+ }, Qi(s, t);
4168
4144
  }
4169
4145
  function Wp(s) {
4170
4146
  var t = Yp();
4171
4147
  return function() {
4172
- var n = Os(s), i;
4148
+ var n = Ls(s), i;
4173
4149
  if (t) {
4174
- var r = Os(this).constructor;
4150
+ var r = Ls(this).constructor;
4175
4151
  i = Reflect.construct(n, arguments, r);
4176
4152
  } else
4177
4153
  i = n.apply(this, arguments);
@@ -4179,7 +4155,7 @@ function Wp(s) {
4179
4155
  };
4180
4156
  }
4181
4157
  function Xp(s, t) {
4182
- if (t && (qi(t) === "object" || typeof t == "function"))
4158
+ if (t && (Ki(t) === "object" || typeof t == "function"))
4183
4159
  return t;
4184
4160
  if (t !== void 0)
4185
4161
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4200,10 +4176,10 @@ function Yp() {
4200
4176
  return !1;
4201
4177
  }
4202
4178
  }
4203
- function Os(s) {
4204
- return Os = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4179
+ function Ls(s) {
4180
+ return Ls = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4205
4181
  return e.__proto__ || Object.getPrototypeOf(e);
4206
- }, Os(s);
4182
+ }, Ls(s);
4207
4183
  }
4208
4184
  function qp(s) {
4209
4185
  var t = /* @__PURE__ */ function(e) {
@@ -4289,7 +4265,7 @@ function qp(s) {
4289
4265
  }(s);
4290
4266
  return t;
4291
4267
  }
4292
- function Ji(s, t) {
4268
+ function tr(s, t) {
4293
4269
  var e = s.target, n = s.currentTarget;
4294
4270
  if (typeof e.matches == "function") {
4295
4271
  if (e.matches(t))
@@ -4317,13 +4293,13 @@ function qa(s) {
4317
4293
  launchingEvent: e
4318
4294
  };
4319
4295
  }
4320
- function Qi(s) {
4296
+ function er(s) {
4321
4297
  "@babel/helpers - typeof";
4322
- return Qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4298
+ return er = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4323
4299
  return typeof t;
4324
4300
  } : function(t) {
4325
4301
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4326
- }, Qi(s);
4302
+ }, er(s);
4327
4303
  }
4328
4304
  function Zp(s, t) {
4329
4305
  if (!(s instanceof t))
@@ -4351,19 +4327,19 @@ function Qp(s, t) {
4351
4327
  }
4352
4328
  }), Object.defineProperty(s, "prototype", {
4353
4329
  writable: !1
4354
- }), t && tr(s, t);
4330
+ }), t && nr(s, t);
4355
4331
  }
4356
- function tr(s, t) {
4357
- return tr = Object.setPrototypeOf || function(n, i) {
4332
+ function nr(s, t) {
4333
+ return nr = Object.setPrototypeOf || function(n, i) {
4358
4334
  return n.__proto__ = i, n;
4359
- }, tr(s, t);
4335
+ }, nr(s, t);
4360
4336
  }
4361
4337
  function tf(s) {
4362
4338
  var t = sf();
4363
4339
  return function() {
4364
- var n = ws(s), i;
4340
+ var n = As(s), i;
4365
4341
  if (t) {
4366
- var r = ws(this).constructor;
4342
+ var r = As(this).constructor;
4367
4343
  i = Reflect.construct(n, arguments, r);
4368
4344
  } else
4369
4345
  i = n.apply(this, arguments);
@@ -4371,7 +4347,7 @@ function tf(s) {
4371
4347
  };
4372
4348
  }
4373
4349
  function ef(s, t) {
4374
- if (t && (Qi(t) === "object" || typeof t == "function"))
4350
+ if (t && (er(t) === "object" || typeof t == "function"))
4375
4351
  return t;
4376
4352
  if (t !== void 0)
4377
4353
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4392,10 +4368,10 @@ function sf() {
4392
4368
  return !1;
4393
4369
  }
4394
4370
  }
4395
- function ws(s) {
4396
- return ws = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4371
+ function As(s) {
4372
+ return As = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4397
4373
  return e.__proto__ || Object.getPrototypeOf(e);
4398
- }, ws(s);
4374
+ }, As(s);
4399
4375
  }
4400
4376
  function rf(s) {
4401
4377
  var t = /* @__PURE__ */ function(e) {
@@ -4483,13 +4459,13 @@ process.env.NODE_ENV !== "production" && (Ol = function(s, t, e) {
4483
4459
  });
4484
4460
  var lf = Ol;
4485
4461
  const cf = /* @__PURE__ */ Tl(lf);
4486
- function er(s) {
4462
+ function sr(s) {
4487
4463
  "@babel/helpers - typeof";
4488
- return er = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4464
+ return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4489
4465
  return typeof t;
4490
4466
  } : function(t) {
4491
4467
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4492
- }, er(s);
4468
+ }, sr(s);
4493
4469
  }
4494
4470
  function uf(s, t) {
4495
4471
  if (!(s instanceof t))
@@ -4517,19 +4493,19 @@ function pf(s, t) {
4517
4493
  }
4518
4494
  }), Object.defineProperty(s, "prototype", {
4519
4495
  writable: !1
4520
- }), t && nr(s, t);
4496
+ }), t && ir(s, t);
4521
4497
  }
4522
- function nr(s, t) {
4523
- return nr = Object.setPrototypeOf || function(n, i) {
4498
+ function ir(s, t) {
4499
+ return ir = Object.setPrototypeOf || function(n, i) {
4524
4500
  return n.__proto__ = i, n;
4525
- }, nr(s, t);
4501
+ }, ir(s, t);
4526
4502
  }
4527
4503
  function ff(s) {
4528
4504
  var t = vf();
4529
4505
  return function() {
4530
- var n = Ls(s), i;
4506
+ var n = Ms(s), i;
4531
4507
  if (t) {
4532
- var r = Ls(this).constructor;
4508
+ var r = Ms(this).constructor;
4533
4509
  i = Reflect.construct(n, arguments, r);
4534
4510
  } else
4535
4511
  i = n.apply(this, arguments);
@@ -4537,7 +4513,7 @@ function ff(s) {
4537
4513
  };
4538
4514
  }
4539
4515
  function gf(s, t) {
4540
- if (t && (er(t) === "object" || typeof t == "function"))
4516
+ if (t && (sr(t) === "object" || typeof t == "function"))
4541
4517
  return t;
4542
4518
  if (t !== void 0)
4543
4519
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4558,10 +4534,10 @@ function vf() {
4558
4534
  return !1;
4559
4535
  }
4560
4536
  }
4561
- function Ls(s) {
4562
- return Ls = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4537
+ function Ms(s) {
4538
+ return Ms = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4563
4539
  return e.__proto__ || Object.getPrototypeOf(e);
4564
- }, Ls(s);
4540
+ }, Ms(s);
4565
4541
  }
4566
4542
  function yf(s) {
4567
4543
  var t = /* @__PURE__ */ function(e) {
@@ -4597,7 +4573,7 @@ function yf(s) {
4597
4573
  else {
4598
4574
  var h = l.initEventNames.map(function(d) {
4599
4575
  return On(o, d, function(u) {
4600
- var p = Ji(u, "[".concat(l.attribInitTarget, "]"));
4576
+ var p = tr(u, "[".concat(l.attribInitTarget, "]"));
4601
4577
  if (p) {
4602
4578
  u.delegateTarget = p;
4603
4579
  var f = p.ownerDocument.querySelectorAll(p.getAttribute(l.attribInitTarget));
@@ -4625,13 +4601,13 @@ function yf(s) {
4625
4601
  }(s);
4626
4602
  return t;
4627
4603
  }
4628
- function sr(s) {
4604
+ function rr(s) {
4629
4605
  "@babel/helpers - typeof";
4630
- return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4606
+ return rr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4631
4607
  return typeof t;
4632
4608
  } : function(t) {
4633
4609
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4634
- }, sr(s);
4610
+ }, rr(s);
4635
4611
  }
4636
4612
  function Ef(s, t) {
4637
4613
  if (!(s instanceof t))
@@ -4659,19 +4635,19 @@ function xf(s, t) {
4659
4635
  }
4660
4636
  }), Object.defineProperty(s, "prototype", {
4661
4637
  writable: !1
4662
- }), t && ir(s, t);
4638
+ }), t && ar(s, t);
4663
4639
  }
4664
- function ir(s, t) {
4665
- return ir = Object.setPrototypeOf || function(n, i) {
4640
+ function ar(s, t) {
4641
+ return ar = Object.setPrototypeOf || function(n, i) {
4666
4642
  return n.__proto__ = i, n;
4667
- }, ir(s, t);
4643
+ }, ar(s, t);
4668
4644
  }
4669
4645
  function bf(s) {
4670
4646
  var t = wf();
4671
4647
  return function() {
4672
- var n = As(s), i;
4648
+ var n = _s(s), i;
4673
4649
  if (t) {
4674
- var r = As(this).constructor;
4650
+ var r = _s(this).constructor;
4675
4651
  i = Reflect.construct(n, arguments, r);
4676
4652
  } else
4677
4653
  i = n.apply(this, arguments);
@@ -4679,7 +4655,7 @@ function bf(s) {
4679
4655
  };
4680
4656
  }
4681
4657
  function Tf(s, t) {
4682
- if (t && (sr(t) === "object" || typeof t == "function"))
4658
+ if (t && (rr(t) === "object" || typeof t == "function"))
4683
4659
  return t;
4684
4660
  if (t !== void 0)
4685
4661
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4700,10 +4676,10 @@ function wf() {
4700
4676
  return !1;
4701
4677
  }
4702
4678
  }
4703
- function As(s) {
4704
- return As = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4679
+ function _s(s) {
4680
+ return _s = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4705
4681
  return e.__proto__ || Object.getPrototypeOf(e);
4706
- }, As(s);
4682
+ }, _s(s);
4707
4683
  }
4708
4684
  var Lf = /* @__PURE__ */ function(s) {
4709
4685
  xf(e, s);
@@ -4713,8 +4689,8 @@ var Lf = /* @__PURE__ */ function(s) {
4713
4689
  return Ef(this, e), r = t.call(this, n, i), r._handleFocusinListener = void 0, r._handleKeydownListener = void 0, r._handleFocusin = function(a) {
4714
4690
  var o = r.element.querySelector(r.options.selectorModalContainer) || r.element;
4715
4691
  r.element.classList.contains(r.options.classVisible) && !o.contains(a.target) && r.options.selectorsFloatingMenus.every(function(c) {
4716
- return !Ji(a, c);
4717
- }) && r.element.querySelector(fi.selectorTabbable).focus();
4692
+ return !tr(a, c);
4693
+ }) && r.element.querySelector(mi.selectorTabbable).focus();
4718
4694
  }, r._hookCloseActions(), r;
4719
4695
  }
4720
4696
  return Sf(e, [{
@@ -4751,7 +4727,7 @@ var Lf = /* @__PURE__ */ function(s) {
4751
4727
  var o = this, c, l = function() {
4752
4728
  if (c && (c = o.unmanage(c).release()), i === "shown" && o.element.offsetWidth > 0 && o.element.offsetHeight > 0) {
4753
4729
  o.previouslyFocusedNode = o.element.ownerDocument.activeElement;
4754
- var p = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(fi.selectorTabbable);
4730
+ var p = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(mi.selectorTabbable);
4755
4731
  p.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && cf(p, "Modals need to contain a focusable element by either using " + "`".concat(o.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
4756
4732
  }
4757
4733
  a();
@@ -4767,7 +4743,7 @@ var Lf = /* @__PURE__ */ function(s) {
4767
4743
  value: function() {
4768
4744
  var i = this;
4769
4745
  this.manage(On(this.element, "click", function(r) {
4770
- var a = Ji(r, i.options.selectorModalClose);
4746
+ var a = tr(r, i.options.selectorModalClose);
4771
4747
  a && (r.delegateTarget = a), (a || r.target === i.element) && i.hide(r);
4772
4748
  })), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(On(this.element.ownerDocument.body, "keydown", function(r) {
4773
4749
  r.which === 27 && i.shouldStateBeChanged("hidden") && (r.stopPropagation(), i.hide(r));
@@ -4814,7 +4790,7 @@ var Lf = /* @__PURE__ */ function(s) {
4814
4790
  * without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
4815
4791
  */
4816
4792
  function() {
4817
- var i = fi.prefix;
4793
+ var i = mi.prefix;
4818
4794
  return {
4819
4795
  selectorInit: "[data-modal]",
4820
4796
  selectorModalClose: "[data-modal-close]",
@@ -4872,7 +4848,7 @@ class d0 extends ot {
4872
4848
  <table class="cds--data-table cds--data-table--no-border">
4873
4849
  <thead>
4874
4850
  <tr>
4875
- ${yt(a, 0).map(
4851
+ ${vt(a, 0).map(
4876
4852
  (o) => `<th scope="col">
4877
4853
  <div class="cds--table-header-label">${ue(o)}</div>
4878
4854
  </th>`
@@ -5028,15 +5004,15 @@ class Mf extends ot {
5028
5004
  v.exit().remove();
5029
5005
  const S = v.enter().append("div").merge(v).classed("legend-item", !0).classed("additional", !0).attr(
5030
5006
  "aria-labelledby",
5031
- (I, k) => this.services.domUtils.generateElementIDString(
5032
- `legend-datagroup-${m.size() + k}-title`
5007
+ (I, C) => this.services.domUtils.generateElementIDString(
5008
+ `legend-datagroup-${m.size() + C}-title`
5033
5009
  )
5034
5010
  );
5035
5011
  S.selectAll("*").remove();
5036
5012
  let b, O = 1;
5037
5013
  S.append("svg").classed("icon", !0).each(function(I) {
5038
- const k = R(this);
5039
- !b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(k, I, O);
5014
+ const C = R(this);
5015
+ !b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(C, I, O);
5040
5016
  }), S.append("p").merge(S.select("p")), this.truncateLegendText();
5041
5017
  }
5042
5018
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
@@ -5086,7 +5062,7 @@ class Mf extends ot {
5086
5062
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
5087
5063
  }), n !== Ze.NONE ? a.html(function(o) {
5088
5064
  const c = ue(o.name);
5089
- return c.length > i && c.length !== r ? Cn(c, n, r) : c;
5065
+ return c.length > i && c.length !== r ? kn(c, n, r) : c;
5090
5066
  }) : a.html((o) => ue(o.name));
5091
5067
  }
5092
5068
  addEventListeners() {
@@ -5205,10 +5181,8 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
5205
5181
  };
5206
5182
  }, Fe), Ja = typeof window < "u" ? window : {
5207
5183
  innerHeight: 0,
5208
- scrollY: 0,
5209
- innerWidth: 0,
5210
- scrollX: 0
5211
- }, Ns = (
5184
+ innerWidth: 0
5185
+ }, Vs = (
5212
5186
  /** @class */
5213
5187
  function() {
5214
5188
  function s(t) {
@@ -5296,24 +5270,24 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
5296
5270
  }, s;
5297
5271
  }()
5298
5272
  );
5299
- new Ns();
5300
- class Cf extends ot {
5273
+ new Vs();
5274
+ class kf extends ot {
5301
5275
  constructor(t, e, n) {
5302
- super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Ns(), this.handleShowTooltip = (i) => {
5276
+ super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Vs(), this.handleShowTooltip = (i) => {
5303
5277
  const r = i.detail.data || i.detail.items, a = R(i.detail.event.target).datum();
5304
5278
  let o;
5305
5279
  const c = this.formatItems(this.getItems(i));
5306
- i.detail.content ? o = `<div class="title-tooltip"><p>${Qn(i.detail.content)}</p></div>` : o = Qn(this.getTooltipHTML(c));
5280
+ i.detail.content ? o = `<div class="title-tooltip"><p>${es(i.detail.content)}</p></div>` : o = es(this.getTooltipHTML(c));
5307
5281
  const l = _.appendOrSelect(this.tooltip, "div.content-box");
5308
5282
  if (T(this.getOptions(), "tooltip", "customHTML"))
5309
5283
  if (i.detail.content) {
5310
- const h = `<div class="title-tooltip"><p>${Qn(
5284
+ const h = `<div class="title-tooltip"><p>${es(
5311
5285
  i.detail.content
5312
5286
  )}</p></div>`;
5313
5287
  l.html(h);
5314
5288
  } else
5315
5289
  l.html(
5316
- `<div class="title-tooltip"><p>${Qn(
5290
+ `<div class="title-tooltip"><p>${es(
5317
5291
  this.model.getOptions().tooltip.customHTML(r, o, a)
5318
5292
  )}</p></div>`
5319
5293
  );
@@ -5342,7 +5316,7 @@ class Cf extends ot {
5342
5316
  const e = this.getOptions(), n = T(e, "tooltip", "truncation", "type"), i = T(e, "tooltip", "truncation", "threshold"), r = T(e, "tooltip", "truncation", "numCharacter");
5343
5317
  return n !== Ze.NONE ? t.map((a) => {
5344
5318
  const o = a.labelIcon ? 12 : 0;
5345
- return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = Cn(a.label, n, r)), a.value && a.value.length > i && (a.value = Cn(a.value, n, r)), a;
5319
+ return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = kn(a.label, n, r)), a.value && a.value.length > i && (a.value = kn(a.value, n, r)), a;
5346
5320
  }) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
5347
5321
  }
5348
5322
  getTooltipHTML(t) {
@@ -5486,17 +5460,17 @@ const Qe = class Qe extends ot {
5486
5460
  const g = (b) => {
5487
5461
  const O = b[1] - b[0];
5488
5462
  let I = "0," + O.toString();
5489
- const k = Math.floor(c / Qe.DASH_LENGTH), G = k * Qe.DASH_LENGTH;
5490
- for (let C = 0; C < k; C++)
5463
+ const C = Math.floor(c / Qe.DASH_LENGTH), G = C * Qe.DASH_LENGTH;
5464
+ for (let k = 0; k < C; k++)
5491
5465
  I += "," + Qe.DASH_LENGTH;
5492
- I += "," + (c - G), k % 2 === 1 && (I += ",0"), I += "," + O.toString(), I += "," + c.toString(), p.attr("stroke-dasharray", I);
5466
+ I += "," + (c - G), C % 2 === 1 && (I += ",0"), I += "," + O.toString(), I += "," + c.toString(), p.attr("stroke-dasharray", I);
5493
5467
  }, m = (b) => {
5494
5468
  const O = b.selection;
5495
5469
  O === null || O[0] === O[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(O));
5496
5470
  }, E = (b, O) => {
5497
5471
  const I = rc().range([0, o]).domain(f);
5498
- let k = [I.invert(b), I.invert(O)];
5499
- k[0].valueOf() === k[1].valueOf() && (k = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== k[0].valueOf() || f[1].valueOf() !== k[1].valueOf()) && this.services.zoom.handleDomainChange(k);
5472
+ let C = [I.invert(b), I.invert(O)];
5473
+ C[0].valueOf() === C[1].valueOf() && (C = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== C[0].valueOf() || f[1].valueOf() !== C[1].valueOf()) && this.services.zoom.handleDomainChange(C);
5500
5474
  };
5501
5475
  let y;
5502
5476
  const v = (b) => {
@@ -5511,10 +5485,10 @@ const Qe = class Qe extends ot {
5511
5485
  i.on("click", function(b) {
5512
5486
  if (b.shiftKey) {
5513
5487
  const O = this.services.domUtils.getHolder(), I = en(r.node(), O)[0];
5514
- let k = I - o * S / 2;
5515
- k < 0 && (k = 0);
5488
+ let C = I - o * S / 2;
5489
+ C < 0 && (C = 0);
5516
5490
  let G = I + o * S / 2;
5517
- G > o && (G = o), E(k, G);
5491
+ G > o && (G = o), E(C, G);
5518
5492
  }
5519
5493
  });
5520
5494
  }
@@ -5583,20 +5557,20 @@ class f0 extends ot {
5583
5557
  zoomDomain: tn([], E)
5584
5558
  },
5585
5559
  { skipUpdate: !0 }
5586
- ), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ks(m, (O) => O.value));
5560
+ ), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Is(m, (O) => O.value));
5587
5561
  const S = this.model.get("zoomDomain");
5588
5562
  if (r === Ge.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, l, c), a)) {
5589
- const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo, k = a.color, G = a.labelMapsTo;
5590
- a.data.forEach((C, L) => {
5591
- _.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(C[O])).attr(
5563
+ const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo, C = a.color, G = a.labelMapsTo;
5564
+ a.data.forEach((k, L) => {
5565
+ _.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(k[O])).attr(
5592
5566
  "width",
5593
- this.xScale(C[I]) - this.xScale(C[O])
5567
+ this.xScale(k[I]) - this.xScale(k[O])
5594
5568
  ).style(
5595
5569
  "fill",
5596
- k && k.scale[C[G]] ? k.scale[C[G]] : null
5570
+ C && C.scale[k[G]] ? C.scale[k[G]] : null
5597
5571
  ).style("fill-opacity", 0.1).style(
5598
5572
  "stroke",
5599
- k && k.scale[C[G]] ? k.scale[C[G]] : null
5573
+ C && C.scale[k[G]] ? C.scale[k[G]] : null
5600
5574
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
5601
5575
  });
5602
5576
  }
@@ -5673,7 +5647,7 @@ class f0 extends ot {
5673
5647
  _.appendOrSelect(r, "rect.zoom-slider-selected-area").attr("x", t[0]).attr("y", n / 2 - 1).attr("width", t[1] - t[0]).attr("height", 2);
5674
5648
  }
5675
5649
  renderZoomBarArea(t, e, n, i) {
5676
- const { cartesianScales: r } = this.services, a = r.getMainXAxisPosition(), o = r.getMainYAxisPosition(), c = r.getMainXScaleType(), l = r.getMainYScaleType(), h = (E, y, v) => (S) => r.getValueFromScale(E, y, v, S), d = h(this.xScale, c, a), u = h(this.yScale, l, o), p = T(this.getOptions(), "zoomBar", Y.TOP, "type"), f = Yt.height[p], g = yr().x((E) => d(E)).y0(f).y1((E) => f - u(E)), m = _.appendOrSelect(t, e).datum(n).attr("d", g);
5650
+ const { cartesianScales: r } = this.services, a = r.getMainXAxisPosition(), o = r.getMainYAxisPosition(), c = r.getMainXScaleType(), l = r.getMainYScaleType(), h = (E, y, v) => (S) => r.getValueFromScale(E, y, v, S), d = h(this.xScale, c, a), u = h(this.yScale, l, o), p = T(this.getOptions(), "zoomBar", Y.TOP, "type"), f = Yt.height[p], g = Sr().x((E) => d(E)).y0(f).y1((E) => f - u(E)), m = _.appendOrSelect(t, e).datum(n).attr("d", g);
5677
5651
  i && m.attr("clip-path", `url(#${i})`);
5678
5652
  }
5679
5653
  updateClipPath(t, e, n, i, r, a) {
@@ -5719,7 +5693,7 @@ class f0 extends ot {
5719
5693
  }
5720
5694
  class g0 extends ot {
5721
5695
  constructor(t, e) {
5722
- super(t, e), this.type = "threshold", this.renderType = st.SVG, this.positionService = new Ns();
5696
+ super(t, e), this.type = "threshold", this.renderType = st.SVG, this.positionService = new Vs();
5723
5697
  }
5724
5698
  render(t = !1) {
5725
5699
  const e = T(this.getOptions(), "axes"), n = [];
@@ -5754,8 +5728,8 @@ class g0 extends ot {
5754
5728
  ), f = d.services.cartesianScales.getScaleTypeByPosition(u);
5755
5729
  let g = null, m = null;
5756
5730
  u === Y.LEFT || u === Y.RIGHT ? (m = p, g = d.services.cartesianScales.getMainXScale()) : (g = p, m = d.services.cartesianScales.getMainYScale());
5757
- const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(), k = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [C, L] = ye(
5758
- k,
5731
+ const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(), C = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [k, L] = ye(
5732
+ C,
5759
5733
  G,
5760
5734
  I
5761
5735
  ), B = R(this);
@@ -5767,11 +5741,11 @@ class g0 extends ot {
5767
5741
  })
5768
5742
  ).attr("y1", b).attr("y2", S).attr(
5769
5743
  "x1",
5770
- ({ datum: D }) => C(D) + (E ? p.step() / 2 : 0)
5744
+ ({ datum: D }) => k(D) + (E ? p.step() / 2 : 0)
5771
5745
  ).attr(
5772
5746
  "x2",
5773
- ({ datum: D }) => C(D) + (E ? p.step() / 2 : 0)
5774
- ).style("stroke", ({ fillColor: D }) => D), B.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: D }) => -C(D)).attr("width", Math.abs(S - b)).classed("rotate", !0)) : (B.selectAll("line.threshold-line").transition().call(
5747
+ ({ datum: D }) => k(D) + (E ? p.step() / 2 : 0)
5748
+ ).style("stroke", ({ fillColor: D }) => D), B.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: D }) => -k(D)).attr("width", Math.abs(S - b)).classed("rotate", !0)) : (B.selectAll("line.threshold-line").transition().call(
5775
5749
  (D) => d.services.transitions.setupTransition({
5776
5750
  transition: D,
5777
5751
  name: "threshold-line-update",
@@ -5793,11 +5767,11 @@ class g0 extends ot {
5793
5767
  getFormattedValue(t) {
5794
5768
  const { value: e, axisPosition: n } = t, i = this.getOptions(), r = this.services.cartesianScales.getScaleTypeByPosition(n), { code: a, number: o } = T(i, "locale");
5795
5769
  if (r === Mt.TIME) {
5796
- const c = [Y.LEFT, Y.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = T(i, "timeScale"), p = yi(
5770
+ const c = [Y.LEFT, Y.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = T(i, "timeScale"), p = Si(
5797
5771
  d.ticks(),
5798
5772
  T(u, "timeInterval")
5799
5773
  );
5800
- return Ei(e, 0, d.ticks(), p, u, i.locale);
5774
+ return xi(e, 0, d.ticks(), p, u, i.locale);
5801
5775
  }
5802
5776
  return o(e, a);
5803
5777
  }
@@ -5860,7 +5834,7 @@ class g0 extends ot {
5860
5834
  }
5861
5835
  class m0 extends ot {
5862
5836
  constructor(t, e) {
5863
- super(t, e), this.type = "highlight", this.renderType = st.SVG, this.positionService = new Ns(), this.highlightStrokeWidth = 1;
5837
+ super(t, e), this.type = "highlight", this.renderType = st.SVG, this.positionService = new Vs(), this.highlightStrokeWidth = 1;
5864
5838
  }
5865
5839
  render(t = !1) {
5866
5840
  const e = T(this.getOptions(), "axes"), n = [];
@@ -5892,34 +5866,34 @@ class m0 extends ot {
5892
5866
  l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
5893
5867
  const d = this;
5894
5868
  o.each(function({ axisPosition: u }) {
5895
- const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (C) => v.getDomainValue(C), O = (C) => v.getRangeValue(C), [I, k] = ye(
5869
+ const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (k) => v.getDomainValue(k), O = (k) => v.getRangeValue(k), [I, C] = ye(
5896
5870
  b,
5897
5871
  O,
5898
5872
  S
5899
5873
  ), G = R(this);
5900
5874
  u === Y.TOP || u === Y.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
5901
- (C) => d.services.transitions.setupTransition({
5902
- transition: C,
5875
+ (k) => d.services.transitions.setupTransition({
5876
+ transition: k,
5903
5877
  name: "highlight-bar-update",
5904
5878
  animate: t
5905
5879
  })
5906
- ).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: C, ...L }) => I(L[C])).attr(
5880
+ ).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: k, ...L }) => I(L[k])).attr(
5907
5881
  "width",
5908
- ({ highlightStartMapsTo: C, highlightEndMapsTo: L, ...B }) => Math.max(I(B[L]) - I(B[C]), 0)
5909
- ).style("stroke", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null) : G.selectAll("rect.highlight-bar").transition().call(
5910
- (C) => d.services.transitions.setupTransition({
5911
- transition: C,
5882
+ ({ highlightStartMapsTo: k, highlightEndMapsTo: L, ...B }) => Math.max(I(B[L]) - I(B[k]), 0)
5883
+ ).style("stroke", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null) : G.selectAll("rect.highlight-bar").transition().call(
5884
+ (k) => d.services.transitions.setupTransition({
5885
+ transition: k,
5912
5886
  name: "highlight-bar-update",
5913
5887
  animate: t
5914
5888
  })
5915
- ).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: C, ...L }) => k(L[C])).attr(
5889
+ ).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: k, ...L }) => C(L[k])).attr(
5916
5890
  "height",
5917
- ({ highlightStartMapsTo: C, highlightEndMapsTo: L, ...B }) => Math.max(k(B[C]) - k(B[L]), 0)
5918
- ).style("stroke", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null);
5891
+ ({ highlightStartMapsTo: k, highlightEndMapsTo: L, ...B }) => Math.max(C(B[k]) - C(B[L]), 0)
5892
+ ).style("stroke", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null);
5919
5893
  });
5920
5894
  }
5921
5895
  }
5922
- class v0 extends Cf {
5896
+ class v0 extends kf {
5923
5897
  getItems(t) {
5924
5898
  if (t.detail.items)
5925
5899
  return t.detail.items;
@@ -5966,7 +5940,7 @@ class v0 extends Cf {
5966
5940
  value: g.value
5967
5941
  })
5968
5942
  ), d.push({
5969
- label: yt(n, "locale.translations.group") || yt(n, "tooltip.groupLabel"),
5943
+ label: vt(n, "locale.translations.group") || vt(n, "tooltip.groupLabel"),
5970
5944
  value: u[o],
5971
5945
  color: this.model.getFillColor(u[o]),
5972
5946
  class: this.model.getColorClassName({
@@ -5995,7 +5969,7 @@ class v0 extends Cf {
5995
5969
  ), !a && T(n, "tooltip", "showTotal") === !0)) {
5996
5970
  const u = i.getRangeIdentifier();
5997
5971
  d.push({
5998
- label: yt(n, "locale.translations.total") || yt(n, "tooltip.totalLabel") || "Total",
5972
+ label: vt(n, "locale.translations.total") || vt(n, "tooltip.totalLabel") || "Total",
5999
5973
  value: e.reduce(
6000
5974
  (p, f) => p + f[u],
6001
5975
  0
@@ -6018,7 +5992,7 @@ function to(s, t) {
6018
5992
  }
6019
5993
  return e;
6020
5994
  }
6021
- function kf(s, t) {
5995
+ function Cf(s, t) {
6022
5996
  let e;
6023
5997
  if (t === void 0)
6024
5998
  for (const n of s)
@@ -6030,7 +6004,7 @@ function kf(s, t) {
6030
6004
  }
6031
6005
  return e;
6032
6006
  }
6033
- function gi(s, t) {
6007
+ function vi(s, t) {
6034
6008
  let e = 0;
6035
6009
  if (t === void 0)
6036
6010
  for (let n of s)
@@ -6051,21 +6025,21 @@ function If(s, t) {
6051
6025
  function wl(s, t) {
6052
6026
  return s.sourceLinks.length ? s.depth : t - 1;
6053
6027
  }
6054
- function ts(s) {
6028
+ function ns(s) {
6055
6029
  return function() {
6056
6030
  return s;
6057
6031
  };
6058
6032
  }
6059
6033
  function eo(s, t) {
6060
- return Ms(s.source, t.source) || s.index - t.index;
6034
+ return ks(s.source, t.source) || s.index - t.index;
6061
6035
  }
6062
6036
  function no(s, t) {
6063
- return Ms(s.target, t.target) || s.index - t.index;
6037
+ return ks(s.target, t.target) || s.index - t.index;
6064
6038
  }
6065
- function Ms(s, t) {
6039
+ function ks(s, t) {
6066
6040
  return s.y0 - t.y0;
6067
6041
  }
6068
- function mi(s) {
6042
+ function yi(s) {
6069
6043
  return s.value;
6070
6044
  }
6071
6045
  function Df(s) {
@@ -6100,9 +6074,9 @@ function $f() {
6100
6074
  f.update = function(w) {
6101
6075
  return io(w), w;
6102
6076
  }, f.nodeId = function(w) {
6103
- return arguments.length ? (o = typeof w == "function" ? w : ts(w), f) : o;
6077
+ return arguments.length ? (o = typeof w == "function" ? w : ns(w), f) : o;
6104
6078
  }, f.nodeAlign = function(w) {
6105
- return arguments.length ? (c = typeof w == "function" ? w : ts(w), f) : c;
6079
+ return arguments.length ? (c = typeof w == "function" ? w : ns(w), f) : c;
6106
6080
  }, f.nodeSort = function(w) {
6107
6081
  return arguments.length ? (l = w, f) : l;
6108
6082
  }, f.nodeWidth = function(w) {
@@ -6110,9 +6084,9 @@ function $f() {
6110
6084
  }, f.nodePadding = function(w) {
6111
6085
  return arguments.length ? (r = a = +w, f) : r;
6112
6086
  }, f.nodes = function(w) {
6113
- return arguments.length ? (d = typeof w == "function" ? w : ts(w), f) : d;
6087
+ return arguments.length ? (d = typeof w == "function" ? w : ns(w), f) : d;
6114
6088
  }, f.links = function(w) {
6115
- return arguments.length ? (u = typeof w == "function" ? w : ts(w), f) : u;
6089
+ return arguments.length ? (u = typeof w == "function" ? w : ns(w), f) : u;
6116
6090
  }, f.linkSort = function(w) {
6117
6091
  return arguments.length ? (h = w, f) : h;
6118
6092
  }, f.size = function(w) {
@@ -6137,7 +6111,7 @@ function $f() {
6137
6111
  }
6138
6112
  function m({ nodes: w }) {
6139
6113
  for (const V of w)
6140
- V.value = V.fixedValue === void 0 ? Math.max(gi(V.sourceLinks, mi), gi(V.targetLinks, mi)) : V.fixedValue;
6114
+ V.value = V.fixedValue === void 0 ? Math.max(vi(V.sourceLinks, yi), vi(V.targetLinks, yi)) : V.fixedValue;
6141
6115
  }
6142
6116
  function E({ nodes: w }) {
6143
6117
  const V = w.length;
@@ -6176,7 +6150,7 @@ function $f() {
6176
6150
  return P;
6177
6151
  }
6178
6152
  function S(w) {
6179
- const V = kf(w, (N) => (n - t - (N.length - 1) * a) / gi(N, mi));
6153
+ const V = Cf(w, (N) => (n - t - (N.length - 1) * a) / vi(N, yi));
6180
6154
  for (const N of w) {
6181
6155
  let P = t;
6182
6156
  for (const $ of N) {
@@ -6206,14 +6180,14 @@ function $f() {
6206
6180
  for (const F of X) {
6207
6181
  let et = 0, J = 0;
6208
6182
  for (const { source: Q, value: j } of F.targetLinks) {
6209
- let Z = j * (F.layer - Q.layer);
6210
- et += D(Q, F) * Z, J += Z;
6183
+ let K = j * (F.layer - Q.layer);
6184
+ et += D(Q, F) * K, J += K;
6211
6185
  }
6212
6186
  if (!(J > 0)) continue;
6213
6187
  let ct = (et / J - F.y0) * V;
6214
6188
  F.y0 += ct, F.y1 += ct, L(F);
6215
6189
  }
6216
- l === void 0 && X.sort(Ms), k(X, N);
6190
+ l === void 0 && X.sort(ks), C(X, N);
6217
6191
  }
6218
6192
  }
6219
6193
  function I(w, V, N) {
@@ -6222,19 +6196,19 @@ function $f() {
6222
6196
  for (const F of X) {
6223
6197
  let et = 0, J = 0;
6224
6198
  for (const { target: Q, value: j } of F.sourceLinks) {
6225
- let Z = j * (Q.layer - F.layer);
6226
- et += A(F, Q) * Z, J += Z;
6199
+ let K = j * (Q.layer - F.layer);
6200
+ et += A(F, Q) * K, J += K;
6227
6201
  }
6228
6202
  if (!(J > 0)) continue;
6229
6203
  let ct = (et / J - F.y0) * V;
6230
6204
  F.y0 += ct, F.y1 += ct, L(F);
6231
6205
  }
6232
- l === void 0 && X.sort(Ms), k(X, N);
6206
+ l === void 0 && X.sort(ks), C(X, N);
6233
6207
  }
6234
6208
  }
6235
- function k(w, V) {
6209
+ function C(w, V) {
6236
6210
  const N = w.length >> 1, P = w[N];
6237
- C(w, P.y0 - a, N - 1, V), G(w, P.y1 + a, N + 1, V), C(w, n, w.length - 1, V), G(w, t, 0, V);
6211
+ k(w, P.y0 - a, N - 1, V), G(w, P.y1 + a, N + 1, V), k(w, n, w.length - 1, V), G(w, t, 0, V);
6238
6212
  }
6239
6213
  function G(w, V, N, P) {
6240
6214
  for (; N < w.length; ++N) {
@@ -6242,7 +6216,7 @@ function $f() {
6242
6216
  X > 1e-6 && ($.y0 += X, $.y1 += X), V = $.y1 + a;
6243
6217
  }
6244
6218
  }
6245
- function C(w, V, N, P) {
6219
+ function k(w, V, N, P) {
6246
6220
  for (; N >= 0; --N) {
6247
6221
  const $ = w[N], X = ($.y1 - V) * P;
6248
6222
  X > 1e-6 && ($.y0 -= X, $.y1 -= X), V = $.y0 - a;
@@ -6287,16 +6261,16 @@ function $f() {
6287
6261
  }
6288
6262
  return f;
6289
6263
  }
6290
- var rr = Math.PI, ar = 2 * rr, _e = 1e-6, Vf = ar - _e;
6291
- function or() {
6264
+ var or = Math.PI, lr = 2 * or, _e = 1e-6, Vf = lr - _e;
6265
+ function cr() {
6292
6266
  this._x0 = this._y0 = // start of current subpath
6293
6267
  this._x1 = this._y1 = null, this._ = "";
6294
6268
  }
6295
6269
  function Ll() {
6296
- return new or();
6270
+ return new cr();
6297
6271
  }
6298
- or.prototype = Ll.prototype = {
6299
- constructor: or,
6272
+ cr.prototype = Ll.prototype = {
6273
+ constructor: cr,
6300
6274
  moveTo: function(s, t) {
6301
6275
  this._ += "M" + (this._x0 = this._x1 = +s) + "," + (this._y0 = this._y1 = +t);
6302
6276
  },
@@ -6321,7 +6295,7 @@ or.prototype = Ll.prototype = {
6321
6295
  else if (d > _e) if (!(Math.abs(h * o - c * l) > _e) || !i)
6322
6296
  this._ += "L" + (this._x1 = s) + "," + (this._y1 = t);
6323
6297
  else {
6324
- var u = e - r, p = n - a, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), E = Math.sqrt(d), y = i * Math.tan((rr - Math.acos((f + d - g) / (2 * m * E))) / 2), v = y / E, S = y / m;
6298
+ var u = e - r, p = n - a, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), E = Math.sqrt(d), y = i * Math.tan((or - Math.acos((f + d - g) / (2 * m * E))) / 2), v = y / E, S = y / m;
6325
6299
  Math.abs(v - 1) > _e && (this._ += "L" + (s + v * l) + "," + (t + v * h)), this._ += "A" + i + "," + i + ",0,0," + +(h * u > l * p) + "," + (this._x1 = s + S * o) + "," + (this._y1 = t + S * c);
6326
6300
  }
6327
6301
  },
@@ -6329,7 +6303,7 @@ or.prototype = Ll.prototype = {
6329
6303
  s = +s, t = +t, e = +e, r = !!r;
6330
6304
  var a = e * Math.cos(n), o = e * Math.sin(n), c = s + a, l = t + o, h = 1 ^ r, d = r ? n - i : i - n;
6331
6305
  if (e < 0) throw new Error("negative radius: " + e);
6332
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % ar + ar), d > Vf ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (s - a) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= rr) + "," + h + "," + (this._x1 = s + e * Math.cos(i)) + "," + (this._y1 = t + e * Math.sin(i))));
6306
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % lr + lr), d > Vf ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (s - a) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= or) + "," + h + "," + (this._x1 = s + e * Math.cos(i)) + "," + (this._y1 = t + e * Math.sin(i))));
6333
6307
  },
6334
6308
  rect: function(s, t, e, n) {
6335
6309
  this._ += "M" + (this._x0 = this._x1 = +s) + "," + (this._y0 = this._y1 = +t) + "h" + +e + "v" + +n + "h" + -e + "Z";
@@ -6492,12 +6466,12 @@ class y0 extends ot {
6492
6466
  ), { width: O } = _.getSVGElementSize(R(`text#${b}`), {
6493
6467
  useBBox: !0
6494
6468
  }), I = (v.y1 - v.y0) / 2 - 9;
6495
- let k = v.x1 - v.x0;
6496
- return v.x1 >= O ? k = k - (O + 16) : k += 4, `translate(${k}, ${I})`;
6469
+ let C = v.x1 - v.x0;
6470
+ return v.x1 >= O ? C = C - (O + 16) : C += 4, `translate(${C}, ${I})`;
6497
6471
  }), this.addLineEventListener(), this.addNodeEventListener();
6498
6472
  }
6499
6473
  addLineEventListener() {
6500
- const t = this.getOptions(), e = this, { number: n, code: i } = T(this.getOptions(), "locale"), r = xi((a, o = "mouseover") => {
6474
+ const t = this.getOptions(), e = this, { number: n, code: i } = T(this.getOptions(), "locale"), r = Ti((a, o = "mouseover") => {
6501
6475
  const c = e.parent.selectAll("path.link").transition().call(
6502
6476
  (l) => e.services.transitions.setupTransition({
6503
6477
  transition: l,
@@ -6555,7 +6529,7 @@ class y0 extends ot {
6555
6529
  });
6556
6530
  }
6557
6531
  addNodeEventListener() {
6558
- const t = this, e = xi((n = [], i = "mouseover") => {
6532
+ const t = this, e = Ti((n = [], i = "mouseover") => {
6559
6533
  if (i === "mouseout" || n.length === 0) {
6560
6534
  t.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (a) => a.index).order().style("stroke-opacity", ee.opacity.default);
6561
6535
  return;
@@ -6647,7 +6621,7 @@ class E0 extends ot {
6647
6621
  this.drawBackdrop(e, n), !(!e && !n) && (e && (_.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(t)), n && (_.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(t)));
6648
6622
  }
6649
6623
  drawXGrid(t) {
6650
- const e = this.parent, n = this.backdrop.attr("height"), i = this.services.cartesianScales.getMainXScale(), r = hr(i).tickSizeInner(-n).tickSizeOuter(0);
6624
+ const e = this.parent, n = this.backdrop.attr("height"), i = this.services.cartesianScales.getMainXScale(), r = pr(i).tickSizeInner(-n).tickSizeOuter(0);
6651
6625
  if (T(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
6652
6626
  const c = this.services.cartesianScales.getDomainAxisPosition(), l = T(this.getOptions(), "axes", c, "ticks", "values");
6653
6627
  l && r.tickValues(l);
@@ -6763,7 +6737,7 @@ class S0 extends ot {
6763
6737
  render(t = !0) {
6764
6738
  const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
6765
6739
  let i = [0, 0];
6766
- const { cartesianScales: r } = this.services, a = r.getOrientation(), o = yr().curve(this.services.curves.getD3Curve()).defined((b) => {
6740
+ const { cartesianScales: r } = this.services, a = r.getOrientation(), o = Sr().curve(this.services.curves.getD3Curve()).defined((b) => {
6767
6741
  const O = r.getRangeIdentifier(), I = b[O];
6768
6742
  return I != null;
6769
6743
  }), c = this.model.getGroupedData(this.configs.groups), l = T(n, "bounds"), h = l && c && c.length === 1;
@@ -6795,8 +6769,8 @@ class S0 extends ot {
6795
6769
  else {
6796
6770
  const I = T(this.model.getOptions(), "color", "scale");
6797
6771
  if (I !== null) {
6798
- const k = Object.keys(I);
6799
- O = I[k[0]];
6772
+ const C = Object.keys(I);
6773
+ O = I[C[0]];
6800
6774
  }
6801
6775
  }
6802
6776
  ta.appendOrUpdateLinearGradient({
@@ -7025,7 +6999,7 @@ class Al extends ot {
7025
6999
  this.backdrop = _.appendOrSelect(t, "svg.chart-grid-backdrop");
7026
7000
  }
7027
7001
  }
7028
- class Sr extends ot {
7002
+ class br extends ot {
7029
7003
  constructor() {
7030
7004
  super(...arguments), this.type = "scatter", this.renderType = st.SVG, this.handleChartHolderOnHover = () => {
7031
7005
  if (!this.parent) throw new Error("Parent not defined");
@@ -7292,7 +7266,7 @@ class Ml extends ot {
7292
7266
  u = Bo;
7293
7267
  break;
7294
7268
  case Y.BOTTOM:
7295
- u = hr;
7269
+ u = pr;
7296
7270
  break;
7297
7271
  case Y.RIGHT:
7298
7272
  u = vu;
@@ -7310,7 +7284,7 @@ class Ml extends ot {
7310
7284
  f.attr("aria-hidden", !0);
7311
7285
  return;
7312
7286
  }
7313
- const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"), k = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), C = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
7287
+ const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"), C = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), k = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
7314
7288
  useBBox: !0
7315
7289
  }).height;
7316
7290
  D.remove();
@@ -7325,29 +7299,29 @@ class Ml extends ot {
7325
7299
  if (!d.ticks(j).length)
7326
7300
  N.tickValues([]);
7327
7301
  else {
7328
- const Z = T(n, "timeScale", "addSpaceOnEdges"), ut = T(n, "axes", e, "domain"), ht = d.copy();
7329
- Z && !ut && ht.nice(j);
7330
- const Et = ht.ticks(j);
7331
- Z && Et.length > 2 && !ut && (Et.splice(Et.length - 1, 1), Et.splice(0, 1)), N.tickValues(Et);
7302
+ const K = T(n, "timeScale", "addSpaceOnEdges"), ut = T(n, "axes", e, "domain"), ht = d.copy();
7303
+ K && !ut && ht.nice(j);
7304
+ const yt = ht.ticks(j);
7305
+ K && yt.length > 2 && !ut && (yt.splice(yt.length - 1, 1), yt.splice(0, 1)), N.tickValues(yt);
7332
7306
  }
7333
7307
  }
7334
7308
  let P;
7335
7309
  const $ = T(m, "ticks", "formatter"), { code: X, number: F } = T(n, "locale");
7336
7310
  if (E) {
7337
- const j = yi(
7311
+ const j = Si(
7338
7312
  N.tickValues(),
7339
7313
  T(n, "timeScale", "timeInterval")
7340
7314
  );
7341
- $ === null ? P = (Z, ut) => Ei(Z, ut, N.tickValues(), j, B, n.locale) : P = (Z, ut) => {
7342
- const ht = Ei(
7343
- Z,
7315
+ $ === null ? P = (K, ut) => xi(K, ut, N.tickValues(), j, B, n.locale) : P = (K, ut) => {
7316
+ const ht = xi(
7317
+ K,
7344
7318
  ut,
7345
7319
  N.tickValues(),
7346
7320
  j,
7347
7321
  B,
7348
7322
  n.locale
7349
7323
  );
7350
- return $(Z, ut, ht);
7324
+ return $(K, ut, ht);
7351
7325
  };
7352
7326
  } else
7353
7327
  $ === null ? V === Mt.LINEAR && (P = (j) => F(j, X)) : P = $;
@@ -7356,15 +7330,15 @@ class Ml extends ot {
7356
7330
  let ct;
7357
7331
  if (I) {
7358
7332
  if (E)
7359
- I.forEach((j, Z) => {
7360
- j.getTime === void 0 && (I[Z] = new Date(j));
7333
+ I.forEach((j, K) => {
7334
+ j.getTime === void 0 && (I[K] = new Date(j));
7361
7335
  }), ct = I.filter((j) => {
7362
- const Z = j.getTime();
7363
- return Z >= new Date(et).getTime() && Z <= new Date(J).getTime();
7336
+ const K = j.getTime();
7337
+ return K >= new Date(et).getTime() && K <= new Date(J).getTime();
7364
7338
  });
7365
7339
  else if (S === Mt.LABELS) {
7366
7340
  const j = this.services.cartesianScales.getScaleByPosition(e).domain();
7367
- ct = I.filter((Z) => j.includes(Z));
7341
+ ct = I.filter((K) => j.includes(K));
7368
7342
  } else
7369
7343
  ct = I.filter(
7370
7344
  (j) => j >= et && j <= J
@@ -7389,11 +7363,11 @@ class Ml extends ot {
7389
7363
  if (m.title) {
7390
7364
  const j = _.appendOrSelect(c, "text.axis-title").html(
7391
7365
  Q || b ? "" : ue(m.title)
7392
- ), Z = T(m, "titleOrientation");
7366
+ ), K = T(m, "titleOrientation");
7393
7367
  let ut;
7394
7368
  switch (e) {
7395
7369
  case Y.LEFT:
7396
- Z === Yr.RIGHT ? j.attr("transform", "rotate(90)").attr("y", 0).attr("x", d.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : j.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(d.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
7370
+ K === Yr.RIGHT ? j.attr("transform", "rotate(90)").attr("y", 0).attr("x", d.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : j.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(d.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
7397
7371
  break;
7398
7372
  case Y.BOTTOM:
7399
7373
  j.attr(
@@ -7402,7 +7376,7 @@ class Ml extends ot {
7402
7376
  ).style("text-anchor", "middle");
7403
7377
  break;
7404
7378
  case Y.RIGHT:
7405
- Z === Yr.LEFT ? j.attr("transform", "rotate(-90)").attr("y", a).attr("x", -(d.range()[0] / 2)).style("text-anchor", "middle") : j.attr("transform", "rotate(90)").attr("y", -a).attr("x", d.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
7379
+ K === Yr.LEFT ? j.attr("transform", "rotate(-90)").attr("y", a).attr("x", -(d.range()[0] / 2)).style("text-anchor", "middle") : j.attr("transform", "rotate(90)").attr("y", -a).attr("x", d.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
7406
7380
  break;
7407
7381
  case Y.TOP:
7408
7382
  ut = _.getSVGElementSize(j, {
@@ -7415,17 +7389,20 @@ class Ml extends ot {
7415
7389
  }
7416
7390
  }
7417
7391
  if (E) {
7418
- const j = yi(
7392
+ const j = Si(
7419
7393
  N.tickValues(),
7420
7394
  T(n, "timeScale", "timeInterval")
7421
- ), Z = B.showDayName, ut = f;
7395
+ ), K = B.showDayName, ut = f;
7422
7396
  t && (f = f.transition().call(
7423
- (Et) => this.services.transitions.setupTransition({
7424
- transition: Et,
7397
+ (yt) => this.services.transitions.setupTransition({
7398
+ transition: yt,
7425
7399
  name: "axis-update",
7426
7400
  animate: t
7427
7401
  })
7428
- )), f = f.call(N), ut.selectAll(".tick").data(N.tickValues(), d).order().select("text").style("font-weight", (Et, Ut) => Yl(Et, Ut, N.tickValues(), j, Z) ? "bold" : "normal");
7402
+ )), f = f.call(N), ut.selectAll(".tick").data(N.tickValues(), d).order().select("text").attr(
7403
+ "class",
7404
+ (yt, Ut) => Yl(yt, Ut, N.tickValues(), j, K) ? "tick-label--primary" : "tick-label"
7405
+ );
7429
7406
  } else
7430
7407
  !t || !p ? f = f.call(N) : f = f.transition().call(
7431
7408
  (j) => this.services.transitions.setupTransition({
@@ -7436,12 +7413,12 @@ class Ml extends ot {
7436
7413
  ).call(N);
7437
7414
  if (g.call(N), e === Y.BOTTOM || e === Y.TOP) {
7438
7415
  let j = !1;
7439
- const Z = T(m, "ticks", "rotation");
7440
- if (Z === zs.ALWAYS)
7416
+ const K = T(m, "ticks", "rotation");
7417
+ if (K === Ws.ALWAYS)
7441
7418
  j = !0;
7442
- else if (Z === zs.NEVER)
7419
+ else if (K === Ws.NEVER)
7443
7420
  j = !1;
7444
- else if (!Z || Z === zs.AUTO)
7421
+ else if (!K || K === Ws.AUTO)
7445
7422
  if (d.step)
7446
7423
  j = g.selectAll("g.tick text").nodes().some(
7447
7424
  (ht) => _.getSVGElementSize(ht, {
@@ -7453,26 +7430,26 @@ class Ml extends ot {
7453
7430
  const ut = g.append("text").text("A"), ht = _.getSVGElementSize(ut.node(), {
7454
7431
  useBBox: !0
7455
7432
  }).width;
7456
- let Et;
7433
+ let yt;
7457
7434
  g.selectAll("g.tick").each(function() {
7458
7435
  const Ut = R(this), H = parseFloat(T(fe(this), "tx"));
7459
- H !== null && Et + Ut.text().length * ht * 0.8 >= H && (j = !0), Et = H;
7436
+ H !== null && yt + Ut.text().length * ht * 0.8 >= H && (j = !0), yt = H;
7460
7437
  }), ut.remove();
7461
7438
  }
7462
7439
  j ? (L || (N.ticks(
7463
7440
  this.getNumberOfFittingTicks(a, w, qe.ticks.horizontalSpaceRatio)
7464
7441
  ), g.call(N), f.call(N)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === Y.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
7465
7442
  }
7466
- if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), k !== Ze.NONE && S === Mt.LABELS && !I) {
7443
+ if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), C !== Ze.NONE && S === Mt.LABELS && !I) {
7467
7444
  const j = this.services.cartesianScales.getScaleDomain(e);
7468
7445
  if (j.length > 0) {
7469
- const Z = r.select(`g.axis.${e} g.ticks g.tick`).html();
7470
- c.selectAll("g.ticks g.tick").html(Z);
7446
+ const K = r.select(`g.axis.${e} g.ticks g.tick`).html();
7447
+ c.selectAll("g.ticks g.tick").html(K);
7471
7448
  const ut = this;
7472
7449
  c.selectAll("g.tick text").data(j).text(function(ht) {
7473
- return ht.length > G ? (ut.truncation[e] = !0, Cn(ht, k, C)) : ht;
7450
+ return ht.length > G ? (ut.truncation[e] = !0, kn(ht, C, k)) : ht;
7474
7451
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(j).text(function(ht) {
7475
- return ht.length > G ? Cn(ht, k, C) : ht;
7452
+ return ht.length > G ? kn(ht, C, k) : ht;
7476
7453
  }), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(j);
7477
7454
  }
7478
7455
  }
@@ -7701,13 +7678,13 @@ class Jf extends ot {
7701
7678
  e ? this.renderSkeleton(e) : this.removeSkeleton();
7702
7679
  }
7703
7680
  renderSkeleton(t) {
7704
- if (this.configs.skeleton === Hn.GRID)
7681
+ if (this.configs.skeleton === zn.GRID)
7705
7682
  this.renderGridSkeleton(t);
7706
- else if (this.configs.skeleton === Hn.VERT_OR_HORIZ)
7683
+ else if (this.configs.skeleton === zn.VERT_OR_HORIZ)
7707
7684
  this.renderVertOrHorizSkeleton(t);
7708
- else if (this.configs.skeleton === Hn.PIE)
7685
+ else if (this.configs.skeleton === zn.PIE)
7709
7686
  this.renderPieSkeleton(t);
7710
- else if (this.configs.skeleton === Hn.DONUT)
7687
+ else if (this.configs.skeleton === zn.DONUT)
7711
7688
  this.renderDonutSkeleton(t);
7712
7689
  else
7713
7690
  throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
@@ -7729,7 +7706,7 @@ class Jf extends ot {
7729
7706
  }
7730
7707
  setScales() {
7731
7708
  const t = this.services.cartesianScales.getMainXScale().range(), e = this.services.cartesianScales.getMainYScale().range();
7732
- this.xScale = ke().domain([0, 1]).range(t), this.yScale = ke().domain([0, 1]).range(e);
7709
+ this.xScale = Ce().domain([0, 1]).range(t), this.yScale = Ce().domain([0, 1]).range(e);
7733
7710
  }
7734
7711
  drawBackdrop(t) {
7735
7712
  const e = this.parent, { width: n, height: i } = _.getSVGElementSize(e, {
@@ -7763,13 +7740,13 @@ class Jf extends ot {
7763
7740
  useAttrs: !0
7764
7741
  }), o = _.appendOrSelect(i, "svg.chart-skeleton").attr("width", r).attr("height", a), c = e === 0 ? "pie" : "donut", l = T(this.getOptions(), c, "alignment");
7765
7742
  _.appendOrSelect(o, "rect.chart-skeleton-area-container").attr("width", r).attr("height", a).attr("fill", "none");
7766
- const h = Dn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(vt.radiusOffset), u = t + (Math.min(r, a) - t * 2) / 2, p = _.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
7743
+ const h = Dn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(mt.radiusOffset), u = t + (Math.min(r, a) - t * 2) / 2, p = _.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
7767
7744
  "fill",
7768
7745
  n ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
7769
7746
  );
7770
- let f = t + vt.xOffset;
7771
- l === Jt.CENTER ? f = r / 2 : l === Jt.RIGHT && (f = r - t - vt.xOffset);
7772
- const g = t + vt.yOffset;
7747
+ let f = t + mt.xOffset;
7748
+ l === Jt.CENTER ? f = r / 2 : l === Jt.RIGHT && (f = r - t - mt.xOffset);
7749
+ const g = t + mt.yOffset;
7773
7750
  p.attr("transform", `translate(${f}, ${g})`);
7774
7751
  }
7775
7752
  // same logic in pie
@@ -7777,7 +7754,7 @@ class Jf extends ot {
7777
7754
  const { width: t, height: e } = _.getSVGElementSize(this.parent, {
7778
7755
  useAttrs: !0
7779
7756
  });
7780
- return Math.min(t, e) / 2 + vt.radiusOffset;
7757
+ return Math.min(t, e) / 2 + mt.radiusOffset;
7781
7758
  }
7782
7759
  // same logic in donut
7783
7760
  computeInnerRadius() {
@@ -7814,7 +7791,7 @@ class T0 extends ot {
7814
7791
  g
7815
7792
  ), v = Math.floor((m ? u : p) / r.length), S = Math.min(v / 2, 16), b = this.model.getBoxplotData(), O = e.selectAll(".box-group").data(b);
7816
7793
  O.exit().remove();
7817
- const I = O.enter().append("g").attr("class", "box-group"), k = O.merge(I);
7794
+ const I = O.enter().append("g").attr("class", "box-group"), C = O.merge(I);
7818
7795
  I.append("path").merge(O.select("path.vertical-line.start")).attr(
7819
7796
  "class",
7820
7797
  () => this.model.getColorClassName({
@@ -7913,7 +7890,7 @@ class T0 extends ot {
7913
7890
  const B = f.getDomainValue(L[i]) - S / 4, D = B + S / 2, A = f.getRangeValue(L.whiskers.max), w = f.getRangeValue(L.whiskers.max);
7914
7891
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7915
7892
  });
7916
- const G = k.selectAll("circle.outlier").data(
7893
+ const G = C.selectAll("circle.outlier").data(
7917
7894
  (L) => L.outliers.map((B) => ({
7918
7895
  min: L.whiskers.min,
7919
7896
  max: L.whiskers.max,
@@ -7922,8 +7899,8 @@ class T0 extends ot {
7922
7899
  }))
7923
7900
  );
7924
7901
  G.exit().remove();
7925
- const C = G.enter().append("circle");
7926
- G.merge(C).attr("r", jt.circle.radius).attr(
7902
+ const k = G.enter().append("circle");
7903
+ G.merge(k).attr("r", jt.circle.radius).attr(
7927
7904
  "class",
7928
7905
  () => this.model.getColorClassName({
7929
7906
  classNameTypes: [tt.FILL, tt.STROKE],
@@ -8095,13 +8072,13 @@ class O0 extends ot {
8095
8072
  ).attr("y1", d.y0).attr("y2", d.y1).attr("x1", d.x0).attr("x2", d.x1);
8096
8073
  }
8097
8074
  }
8098
- class w0 extends Sr {
8075
+ class w0 extends br {
8099
8076
  constructor() {
8100
8077
  super(...arguments), this.type = "bubble", this.renderType = st.SVG;
8101
8078
  }
8102
8079
  getRadiusScale(t) {
8103
- const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, i = t.data(), r = i.map((l) => l[n]).filter((l) => l), a = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = r.length > 0, c = o ? ks(r) : [1, 1];
8104
- return ke().domain(c).range(o ? e.bubble.radiusRange(a, i) : [4, 4]);
8080
+ const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, i = t.data(), r = i.map((l) => l[n]).filter((l) => l), a = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = r.length > 0, c = o ? Is(r) : [1, 1];
8081
+ return Ce().domain(c).range(o ? e.bubble.radiusRange(a, i) : [4, 4]);
8105
8082
  }
8106
8083
  styleCircles(t, e) {
8107
8084
  const n = this.getOptions(), { radiusMapsTo: i } = n.bubble, r = this.getRadiusScale(t), { groupMapsTo: a } = n.data, { cartesianScales: o } = this.services, c = (u) => o.getDomainValue(u), l = (u) => o.getRangeValue(u), [h, d] = ye(
@@ -8360,10 +8337,10 @@ function ng(s, t) {
8360
8337
  }) } : oo(s, t);
8361
8338
  }
8362
8339
  function oo(s, t) {
8363
- var e = t.id, n = t.bbox, i = t.properties == null ? {} : t.properties, r = xr(s, t);
8340
+ var e = t.id, n = t.bbox, i = t.properties == null ? {} : t.properties, r = Tr(s, t);
8364
8341
  return e == null && n == null ? { type: "Feature", properties: i, geometry: r } : n == null ? { type: "Feature", id: e, properties: i, geometry: r } : { type: "Feature", id: e, bbox: n, properties: i, geometry: r };
8365
8342
  }
8366
- function xr(s, t) {
8343
+ function Tr(s, t) {
8367
8344
  var e = tg(s.transform), n = s.arcs;
8368
8345
  function i(h, d) {
8369
8346
  d.length && d.pop();
@@ -8462,7 +8439,7 @@ function ig(s) {
8462
8439
  return Math.abs(r);
8463
8440
  }
8464
8441
  function rg(s) {
8465
- return xr(s, ag.apply(this, arguments));
8442
+ return Tr(s, ag.apply(this, arguments));
8466
8443
  }
8467
8444
  function ag(s, t) {
8468
8445
  var e = {}, n = [], i = [];
@@ -8488,7 +8465,7 @@ function ag(s, t) {
8488
8465
  }), n.push(c);
8489
8466
  }
8490
8467
  function o(c) {
8491
- return ig(xr(s, { type: "Polygon", arcs: [c] }).coordinates[0]);
8468
+ return ig(Tr(s, { type: "Polygon", arcs: [c] }).coordinates[0]);
8492
8469
  }
8493
8470
  return n.forEach(function(c) {
8494
8471
  if (!c._) {
@@ -8531,14 +8508,14 @@ class A0 extends Al {
8531
8508
  const i = this.parent, r = this.model.getOptions(), { cartesianScales: a } = this.services, o = a.getOrientation(), c = a.getRangeScale(), [l, h] = c.range(), d = a.getDomainScale(), u = d.invert(
8532
8509
  o === Ft.VERTICAL ? e : n
8533
8510
  ), p = _.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), f = _.appendOrSelect(p, "line.ruler-line"), m = i.selectAll("[role=graphics-symbol]").filter((E) => {
8534
- if (parseFloat(yt(E, "data.x0")) <= u && parseFloat(yt(E, "data.x1")) >= u)
8511
+ if (parseFloat(vt(E, "data.x0")) <= u && parseFloat(vt(E, "data.x1")) >= u)
8535
8512
  return !0;
8536
8513
  });
8537
8514
  if (m.size() > 0) {
8538
8515
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !$o(this.elementsToHighlight, m) && this.hideRuler(), m.dispatch("mouseover"), this.elementsToHighlight = m;
8539
- const E = R(m.nodes()[0]).datum(), y = parseFloat(yt(E, "data.x0")), v = parseFloat(yt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((I) => ({
8516
+ const E = R(m.nodes()[0]).datum(), y = parseFloat(vt(E, "data.x0")), v = parseFloat(vt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((I) => ({
8540
8517
  label: I,
8541
- value: yt(E, `data.${I}`),
8518
+ value: vt(E, `data.${I}`),
8542
8519
  class: this.model.getColorClassName({
8543
8520
  classNameTypes: [tt.TOOLTIP],
8544
8521
  dataGroupName: I
@@ -8551,15 +8528,15 @@ class A0 extends Al {
8551
8528
  hoveredElement: f,
8552
8529
  items: [
8553
8530
  {
8554
- label: yt(r, "bins.rangeLabel") || "Range",
8531
+ label: vt(r, "bins.rangeLabel") || "Range",
8555
8532
  value: `${y} – ${v}`
8556
8533
  },
8557
8534
  ...b,
8558
8535
  ...T(r, "tooltip", "showTotal") === !0 ? [
8559
8536
  {
8560
- label: yt(r, "locale.translations.total") || yt(r, "tooltip.totalLabel") || "Total",
8537
+ label: vt(r, "locale.translations.total") || vt(r, "tooltip.totalLabel") || "Total",
8561
8538
  value: S.reduce(
8562
- (k, G) => k + parseFloat(yt(E, `data.${G}`)),
8539
+ (C, G) => C + parseFloat(vt(E, `data.${G}`)),
8563
8540
  0
8564
8541
  )
8565
8542
  }
@@ -8580,13 +8557,13 @@ class M0 extends Al {
8580
8557
  }
8581
8558
  }
8582
8559
  const _0 = (s, t) => {
8583
- const e = s.x, n = s.y, i = t.x, r = t.y, a = Is();
8560
+ const e = s.x, n = s.y, i = t.x, r = t.y, a = Ps();
8584
8561
  return a.moveTo(e, n), a.lineTo(i, r), a.toString();
8585
- }, C0 = (s, t, e = 0.5) => {
8586
- const n = s.x, i = s.y, r = t.x, a = t.y, o = Is();
8562
+ }, k0 = (s, t, e = 0.5) => {
8563
+ const n = s.x, i = s.y, r = t.x, a = t.y, o = Ps();
8587
8564
  return o.moveTo(n, i), o.lineTo(n + (r - n) * e, i), o.lineTo(n + (r - n) * e, a), o.lineTo(r, a), o.toString();
8588
- }, k0 = (s, t, e, n, i, r) => {
8589
- const a = s.x, o = s.y, c = t.x, l = t.y, h = Is();
8565
+ }, C0 = (s, t, e, n, i, r) => {
8566
+ const a = s.x, o = s.y, c = t.x, l = t.y, h = Ps();
8590
8567
  return h.moveTo(a, o), h.bezierCurveTo(e, n, i, r, c, l), h.toString();
8591
8568
  }, R0 = {
8592
8569
  d: "M7 0v8L0 4z",
@@ -8658,8 +8635,8 @@ class V0 extends Mf {
8658
8635
  }
8659
8636
  const h = !Eo(r), d = Zl(this.model.getDisplayData()), u = !(i <= wt.color.barWidth), p = u ? wt.color.barWidth : i, f = _.appendOrSelect(n, "g.legend"), g = _.appendOrSelect(f, "g.legend-axis");
8660
8637
  if (c) {
8661
- const C = _.appendOrSelect(n, "g.legend-title");
8662
- _.appendOrSelect(C, "text").text(c).attr("dy", "0.7em"), f.attr("transform", "translate(0, 16)");
8638
+ const k = _.appendOrSelect(n, "g.legend-title");
8639
+ _.appendOrSelect(k, "text").text(c).attr("dy", "0.7em"), f.attr("transform", "translate(0, 16)");
8663
8640
  }
8664
8641
  const m = d[0] < 0 && d[1] > 0 ? "diverge" : "mono";
8665
8642
  (o < 1 && o > 4 && m === "mono" || o < 1 && o > 2 && m === "diverge") && (o = 1);
@@ -8668,18 +8645,18 @@ class V0 extends Mf {
8668
8645
  if (h)
8669
8646
  E = r;
8670
8647
  else
8671
- for (let C = 1; C < y + 1; C++)
8648
+ for (let k = 1; k < y + 1; k++)
8672
8649
  E.push(
8673
- a === Fs.LINEAR ? `stop-color-${m}-${o}-${C}` : `fill-${m}-${o}-${C}`
8650
+ a === Xs.LINEAR ? `stop-color-${m}-${o}-${k}` : `fill-${m}-${o}-${k}`
8674
8651
  );
8675
- const v = So(d[0], d[1]), S = Su(v, 3), b = ke().domain(d).range([0, p]), O = hr(b).tickSize(0).tickValues(S), { code: I, number: k } = T(e, "locale");
8676
- O.tickFormat((C) => k(C, I));
8652
+ const v = So(d[0], d[1]), S = Su(v, 3), b = Ce().domain(d).range([0, p]), O = pr(b).tickSize(0).tickValues(S), { code: I, number: C } = T(e, "locale");
8653
+ O.tickFormat((k) => C(k, I));
8677
8654
  let G;
8678
8655
  switch (a) {
8679
- case Fs.LINEAR:
8656
+ case Xs.LINEAR:
8680
8657
  this.drawLinear(E, f, p);
8681
8658
  break;
8682
- case Fs.QUANTIZE:
8659
+ case Xs.QUANTIZE:
8683
8660
  G = this.drawQuantize(
8684
8661
  E,
8685
8662
  m,
@@ -8707,7 +8684,7 @@ class V0 extends Mf {
8707
8684
  */
8708
8685
  drawQuantize(t, e, n, i, r) {
8709
8686
  !n && e === "diverge" && t.splice(t.length / 2, 1);
8710
- const a = cr().domain(t).range([0, r]);
8687
+ const a = hr().domain(t).range([0, r]);
8711
8688
  return _.appendOrSelect(i, "g.quantized-rect").selectAll("rect").data(a.domain()).join("rect").attr("x", (c) => a(c)).attr("y", 0).attr("width", Math.max(0, a.bandwidth() - 1)).attr("height", wt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? a.bandwidth() - 1 : 0;
8712
8689
  }
8713
8690
  destroy() {
@@ -8810,16 +8787,16 @@ class B0 extends Af {
8810
8787
  */
8811
8788
  getStatusIconPathString(t) {
8812
8789
  switch (t) {
8813
- case Ws.SUCCESS:
8790
+ case js.SUCCESS:
8814
8791
  return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
8815
- case Ws.DANGER:
8792
+ case js.DANGER:
8816
8793
  return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
8817
- case Ws.WARNING:
8794
+ case js.WARNING:
8818
8795
  return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
8819
8796
  }
8820
8797
  }
8821
8798
  }
8822
- class br extends ot {
8799
+ class Or extends ot {
8823
8800
  // Gets the correct width for bars based on options & configurations
8824
8801
  getBarWidth() {
8825
8802
  const t = this.getOptions();
@@ -8894,7 +8871,7 @@ class G0 extends ot {
8894
8871
  transition: g,
8895
8872
  name: "circlepack-leaf-update-enter"
8896
8873
  })
8897
- ).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", un.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f, Gn), this.setBackgroundListeners()), a || this.addLegendListeners(), this.addEventListeners();
8874
+ ).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", un.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f, Un), this.setBackgroundListeners()), a || this.addLegendListeners(), this.addEventListeners();
8898
8875
  }
8899
8876
  // turn off the highlight class on children circles
8900
8877
  unhighlightChildren(t) {
@@ -8919,7 +8896,7 @@ class G0 extends ot {
8919
8896
  setBackgroundListeners() {
8920
8897
  const t = R(this.services.domUtils.getMainContainer()), e = this, n = this.parent.selectAll("circle.node");
8921
8898
  t.on("click", () => {
8922
- e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Gn);
8899
+ e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Un);
8923
8900
  });
8924
8901
  }
8925
8902
  // Zoom icon to be appended to the label in the tooltip
@@ -8955,7 +8932,7 @@ class G0 extends ot {
8955
8932
  const p = t.model.getOptions();
8956
8933
  h = [
8957
8934
  {
8958
- label: yt(p, "locale.translations.total") || yt(p, "tooltip.totalLabel") || "Total",
8935
+ label: vt(p, "locale.translations.total") || vt(p, "tooltip.totalLabel") || "Total",
8959
8936
  value: n.value,
8960
8937
  bold: !0
8961
8938
  }
@@ -9005,10 +8982,10 @@ class G0 extends ot {
9005
8982
  const i = R(this), r = i.classed("non-focal"), a = T(t.model.getOptions(), "canvasZoom", "enabled");
9006
8983
  if (a && t.model.getHierarchyLevel() > 2) {
9007
8984
  const o = t.parent.selectAll("circle.node");
9008
- R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Gn);
8985
+ R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Un);
9009
8986
  } else if (n.depth === 2 && n.children && !r && a) {
9010
8987
  const o = t.parent.selectAll("circle.node");
9011
- R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Gn), e.stopPropagation();
8988
+ R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Un), e.stopPropagation();
9012
8989
  }
9013
8990
  t.services.events.dispatchEvent(x.CirclePack.CIRCLE_CLICK, {
9014
8991
  event: e,
@@ -9054,7 +9031,7 @@ class lg extends ot {
9054
9031
  t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9055
9032
  }
9056
9033
  getInnerRadius() {
9057
- return vt.innerRadius;
9034
+ return mt.innerRadius;
9058
9035
  }
9059
9036
  render(t = !0) {
9060
9037
  const e = this, n = this.getComponentContainer({
@@ -9062,8 +9039,8 @@ class lg extends ot {
9062
9039
  }), i = this.getOptions(), { groupMapsTo: r } = i.data, { valueMapsTo: a } = i.pie;
9063
9040
  this.isRendering = !0;
9064
9041
  const o = this.model.getDisplayData().filter((A) => A[a] > 0), c = this.computeRadius();
9065
- this.arc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c + vt.hoverArc.outerRadiusOffset);
9066
- const h = Dd().value((A) => A[a]).sort(T(i, "pie", "sortFunction")).padAngle(vt.padAngle)(o), u = _.appendOrSelect(n, "g.slices").attr("role", it.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (A) => A.data[r]);
9042
+ this.arc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c + mt.hoverArc.outerRadiusOffset);
9043
+ const h = Dd().value((A) => A[a]).sort(T(i, "pie", "sortFunction")).padAngle(mt.padAngle)(o), u = _.appendOrSelect(n, "g.slices").attr("role", it.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (A) => A.data[r]);
9067
9044
  u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
9068
9045
  "class",
9069
9046
  (A) => this.model.getColorClassName({
@@ -9079,7 +9056,7 @@ class lg extends ot {
9079
9056
  })
9080
9057
  ).attr("opacity", 1).attr("role", it.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
9081
9058
  "aria-label",
9082
- (A) => `${A[a]}, ${Us(A.data[a], o, a) + "%"}`
9059
+ (A) => `${A[a]}, ${Fs(A.data[a], o, a) + "%"}`
9083
9060
  ).attrTween("d", function(A) {
9084
9061
  return og.bind(this)(A, e.arc);
9085
9062
  }).on("end", () => {
@@ -9090,33 +9067,33 @@ class lg extends ot {
9090
9067
  const b = S.enter().append("text").classed("pie-label", !0), O = [];
9091
9068
  b.merge(S).style("text-anchor", "middle").text((A) => i.pie.labels.formatter ? i.pie.labels.formatter({
9092
9069
  ...A,
9093
- percentageValue: Us(
9070
+ percentageValue: Fs(
9094
9071
  A.data[a],
9095
9072
  o,
9096
9073
  a,
9097
9074
  !0
9098
9075
  )
9099
9076
  }) : m(
9100
- Us(A.data[a], o, a),
9077
+ Fs(A.data[a], o, a),
9101
9078
  g
9102
9079
  ) + "%").datum(function(A) {
9103
9080
  const w = c + 7, V = (A.endAngle - A.startAngle) / 2 + A.startAngle, N = V / Math.PI * 180, P = this.getComputedTextLength();
9104
9081
  return A.textOffsetX = P / 2, A.textOffsetY = N > 90 && N < 270 ? 10 : 0, A.xPosition = (A.textOffsetX + w) * Math.sin(V), A.yPosition = (A.textOffsetY + w) * -Math.cos(V), A;
9105
9082
  }).attr("transform", function(A, w) {
9106
9083
  const V = y.length, N = (A.endAngle - A.startAngle) * (180 / Math.PI);
9107
- if (w >= V - 2 && N < vt.callout.minSliceDegree) {
9084
+ if (w >= V - 2 && N < mt.callout.minSliceDegree) {
9108
9085
  let P, $;
9109
- return A.index === V - 1 ? (P = A.xPosition + vt.callout.offsetX + vt.callout.textMargin + A.textOffsetX, $ = A.yPosition - vt.callout.offsetY, A.direction = Xs.RIGHT, O.push(A)) : (P = A.xPosition - vt.callout.offsetX - A.textOffsetX - vt.callout.textMargin, $ = A.yPosition - vt.callout.offsetY, A.direction = Xs.LEFT, O.push(A)), `translate(${P}, ${$})`;
9086
+ return A.index === V - 1 ? (P = A.xPosition + mt.callout.offsetX + mt.callout.textMargin + A.textOffsetX, $ = A.yPosition - mt.callout.offsetY, A.direction = Ys.RIGHT, O.push(A)) : (P = A.xPosition - mt.callout.offsetX - A.textOffsetX - mt.callout.textMargin, $ = A.yPosition - mt.callout.offsetY, A.direction = Ys.LEFT, O.push(A)), `translate(${P}, ${$})`;
9110
9087
  }
9111
9088
  return `translate(${A.xPosition}, ${A.yPosition})`;
9112
9089
  }), this.renderCallouts(O);
9113
- const I = T(i, "donut") ? "donut" : "pie", k = T(i, I, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
9090
+ const I = T(i, "donut") ? "donut" : "pie", C = T(i, I, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
9114
9091
  useAttrs: !0
9115
- }), C = E ? vt.xOffset : 0, L = E ? vt.yOffset : 0;
9116
- let B = c + C;
9117
- k === Jt.CENTER ? B = G / 2 : k === Jt.RIGHT && (B = G - c - vt.xOffset);
9092
+ }), k = E ? mt.xOffset : 0, L = E ? mt.yOffset : 0;
9093
+ let B = c + k;
9094
+ C === Jt.CENTER ? B = G / 2 : C === Jt.RIGHT && (B = G - c - mt.xOffset);
9118
9095
  let D = c + L;
9119
- O.length > 0 && (D += vt.yOffsetCallout), n.attr("x", B + 7).attr("y", D), this.addEventListeners();
9096
+ O.length > 0 && (D += mt.yOffsetCallout), n.attr("x", B + 7).attr("y", D), this.addEventListeners();
9120
9097
  }
9121
9098
  renderCallouts(t) {
9122
9099
  const e = _.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", it.GROUP).attr("data-name", "callouts"), n = e.selectAll("g.callout").data(t);
@@ -9124,19 +9101,19 @@ class lg extends ot {
9124
9101
  const i = n.enter().append("g").classed("callout", !0).attr("role", it.GROUP).attr("aria-roledescription", "label callout");
9125
9102
  i.merge(n).datum(function(o) {
9126
9103
  const { xPosition: c, yPosition: l, direction: h } = o;
9127
- return h === Xs.RIGHT ? (o.startPos = {
9104
+ return h === Ys.RIGHT ? (o.startPos = {
9128
9105
  x: c,
9129
9106
  y: l + o.textOffsetY
9130
9107
  }, o.endPos = {
9131
- x: c + vt.callout.offsetX,
9132
- y: l - vt.callout.offsetY + o.textOffsetY
9133
- }, o.intersectPointX = o.endPos.x - vt.callout.horizontalLineLength) : (o.startPos = {
9108
+ x: c + mt.callout.offsetX,
9109
+ y: l - mt.callout.offsetY + o.textOffsetY
9110
+ }, o.intersectPointX = o.endPos.x - mt.callout.horizontalLineLength) : (o.startPos = {
9134
9111
  x: c,
9135
9112
  y: l + o.textOffsetY
9136
9113
  }, o.endPos = {
9137
- x: c - vt.callout.offsetX,
9138
- y: l - vt.callout.offsetY + o.textOffsetY
9139
- }, o.intersectPointX = o.endPos.x + vt.callout.horizontalLineLength), o;
9114
+ x: c - mt.callout.offsetX,
9115
+ y: l - mt.callout.offsetY + o.textOffsetY
9116
+ }, o.intersectPointX = o.endPos.x + mt.callout.horizontalLineLength), o;
9140
9117
  }), i.append("line").classed("vertical-line", !0).merge(e.selectAll("line.vertical-line")).datum(function() {
9141
9118
  return R(this.parentNode).datum();
9142
9119
  }).style("stroke-width", "1px").attr("x1", (o) => o.startPos.x).attr("y1", (o) => o.startPos.y).attr("x2", (o) => o.intersectPointX).attr("y2", (o) => o.endPos.y), i.append("line").classed("horizontal-line", !0).merge(e.selectAll("line.horizontal-line")).datum(function() {
@@ -9206,7 +9183,7 @@ class lg extends ot {
9206
9183
  const { width: t, height: e } = _.getSVGElementSize(this.parent, {
9207
9184
  useAttrs: !0
9208
9185
  }), n = this.getOptions(), i = Math.min(t, e) / 2;
9209
- return n.pie.labels.enabled ? i + vt.radiusOffset : i;
9186
+ return n.pie.labels.enabled ? i + mt.radiusOffset : i;
9210
9187
  }
9211
9188
  }
9212
9189
  class H0 extends lg {
@@ -9278,7 +9255,7 @@ class U0 extends ot {
9278
9255
  }
9279
9256
  getArcRatio() {
9280
9257
  const t = this.getOptions();
9281
- return T(t, "gauge", "type") === Un.FULL ? 1 : 0.5;
9258
+ return T(t, "gauge", "type") === Fn.FULL ? 1 : 0.5;
9282
9259
  }
9283
9260
  getArcSize() {
9284
9261
  return this.getArcRatio() * Math.PI * 2;
@@ -9328,22 +9305,22 @@ class U0 extends ot {
9328
9305
  drawValueNumber() {
9329
9306
  const t = this.getComponentContainer(), e = this.getOptions(), n = T(e, "gauge", "type"), i = this.getValue(), r = this.getDelta(), a = this.computeRadius(), o = T(e, "gauge", "valueFontSize"), c = T(e, "gauge", "deltaFontSize"), l = T(e, "gauge", "numberSpacing"), h = T(e, "gauge", "showPercentageSymbol");
9330
9307
  let d = 0;
9331
- n === Un.FULL && !r ? d = c(a) : n === Un.SEMI && r && (d = -(c(a) + l));
9308
+ n === Fn.FULL && !r ? d = c(a) : n === Fn.SEMI && r && (d = -(c(a) + l));
9332
9309
  const u = _.appendOrSelect(t, "g.gauge-numbers").attr(
9333
9310
  "transform",
9334
9311
  `translate(0, ${d})`
9335
9312
  ), p = o(a), f = _.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = T(e, "locale"), E = T(e, "gauge", "numberFormatter"), y = f.selectAll("text.gauge-value-number").data([i]);
9336
9313
  y.enter().append("text").attr("class", "gauge-value-number").merge(y).style("font-size", `${p}px`).attr("text-anchor", "middle").text((G) => {
9337
- let C;
9338
- return G != null ? C = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : C = 0, E ? E(C) : m(Number(C), g);
9314
+ let k;
9315
+ return G != null ? k = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : k = 0, E ? E(k) : m(Number(k), g);
9339
9316
  });
9340
9317
  const { width: v } = _.getSVGElementSize(
9341
9318
  _.appendOrSelect(t, "text.gauge-value-number"),
9342
9319
  { useBBox: !0 }
9343
- ), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height: k } = _.getSVGElementSize(O, {
9320
+ ), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height: C } = _.getSVGElementSize(O, {
9344
9321
  useBBox: !0
9345
9322
  });
9346
- O.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${I / 2}, 0)`);
9323
+ O.attr("y", `-${C / 2}px`), f.attr("transform", `translate(-${I / 2}, 0)`);
9347
9324
  }
9348
9325
  /**
9349
9326
  * adds the delta number for the gauge
@@ -9413,10 +9390,10 @@ class U0 extends ot {
9413
9390
  const t = this.getOptions(), e = T(t, "gauge", "type"), { width: n, height: i } = _.getSVGElementSize(this.parent, {
9414
9391
  useAttrs: !0
9415
9392
  });
9416
- return e === Un.SEMI ? Math.min(n / 2, i) : Math.min(n / 2, i / 2);
9393
+ return e === Fn.SEMI ? Math.min(n / 2, i) : Math.min(n / 2, i / 2);
9417
9394
  }
9418
9395
  }
9419
- class z0 extends br {
9396
+ class z0 extends Or {
9420
9397
  constructor() {
9421
9398
  super(...arguments), this.type = "grouped-bar", this.renderType = st.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (t) => {
9422
9399
  const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -9579,7 +9556,7 @@ class z0 extends br {
9579
9556
  }
9580
9557
  setGroupScale() {
9581
9558
  const t = this.model.getActiveDataGroupNames(this.configs.groups);
9582
- this.groupScale = cr().domain(t).rangeRound([0, this.getGroupWidth()]);
9559
+ this.groupScale = hr().domain(t).rangeRound([0, this.getGroupWidth()]);
9583
9560
  }
9584
9561
  }
9585
9562
  class F0 extends ot {
@@ -9608,7 +9585,7 @@ class F0 extends ot {
9608
9585
  }
9609
9586
  d += g, u = g < u ? g : u, p = g > p ? g : p;
9610
9587
  }
9611
- })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${Si(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${Si(c.range())},${l(n)})`), this.services.events.dispatchEvent(x.Tooltip.SHOW, {
9588
+ })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${bi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${bi(c.range())},${l(n)})`), this.services.events.dispatchEvent(x.Tooltip.SHOW, {
9612
9589
  event: e.event,
9613
9590
  hoveredElement: R(t.detail.element),
9614
9591
  items: [
@@ -9690,10 +9667,10 @@ class F0 extends ot {
9690
9667
  }
9691
9668
  determineDividerStatus() {
9692
9669
  const t = T(this.getOptions(), "heatmap", "divider", "state");
9693
- return t !== js.OFF && (t === js.AUTO && Xr.minCellDividerDimension <= this.xBandwidth && Xr.minCellDividerDimension <= this.yBandwidth || t === js.ON);
9670
+ return t !== qs.OFF && (t === qs.AUTO && Xr.minCellDividerDimension <= this.xBandwidth && Xr.minCellDividerDimension <= this.yBandwidth || t === qs.ON);
9694
9671
  }
9695
9672
  addEventListener() {
9696
- const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i = yt(n, "locale.translations.total") || yt(n, "tooltip.totalLabel") || "Total", r = e.getDomainIdentifier(), a = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
9673
+ const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i = vt(n, "locale.translations.total") || vt(n, "tooltip.totalLabel") || "Total", r = e.getDomainIdentifier(), a = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
9697
9674
  this.parent.selectAll("g.cell").on("mouseover", function(l, h) {
9698
9675
  const d = R(this), u = d.select("rect.heat");
9699
9676
  if (!u.classed("null-state")) {
@@ -9783,7 +9760,7 @@ class W0 extends ot {
9783
9760
  render(t) {
9784
9761
  const e = this.getComponentContainer({
9785
9762
  ariaLabel: "histogram bars"
9786
- }), n = this.model.getOptions(), { groupIdentifier: i } = n, { groupMapsTo: r } = n.data, a = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), c = e.selectAll("g.bars").data(a, (h) => yt(h, `0.${r}`));
9763
+ }), n = this.model.getOptions(), { groupIdentifier: i } = n, { groupMapsTo: r } = n.data, a = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), c = e.selectAll("g.bars").data(a, (h) => vt(h, `0.${r}`));
9787
9764
  c.exit().attr("opacity", 0).remove(), c.enter().append("g").classed("bars", !0).attr("role", it.GROUP);
9788
9765
  const l = e.selectAll("g.bars").selectAll("path.bar").data((h) => h);
9789
9766
  l.exit().remove(), l.enter().append("path").merge(l).classed("bar", !0).attr(i, (h, d) => d).transition().call(
@@ -9800,7 +9777,7 @@ class W0 extends ot {
9800
9777
  originalClassName: "bar"
9801
9778
  })
9802
9779
  ).style("fill", (h) => this.model.getFillColor(h[r], null, h)).attr("d", (h) => {
9803
- const d = yt(h, "data");
9780
+ const d = vt(h, "data");
9804
9781
  if (!d)
9805
9782
  return;
9806
9783
  const u = o(d.x1) - o(d.x0) - 1, p = this.services.cartesianScales.getDomainValue(d.x0), f = p + u, g = this.services.cartesianScales.getRangeValue(h[0]);
@@ -9816,13 +9793,13 @@ class W0 extends ot {
9816
9793
  this.parent.selectAll("path.bar").on("mouseover", function(a, o) {
9817
9794
  const c = R(this);
9818
9795
  c.classed("hovered", !0);
9819
- const l = i(parseFloat(yt(o, "data.x0")), n), h = i(parseFloat(yt(o, "data.x1")), n), d = r.services.cartesianScales.getRangeAxisPosition(), u = r.services.cartesianScales.getScaleLabel(d);
9796
+ const l = i(parseFloat(vt(o, "data.x0")), n), h = i(parseFloat(vt(o, "data.x1")), n), d = r.services.cartesianScales.getRangeAxisPosition(), u = r.services.cartesianScales.getScaleLabel(d);
9820
9797
  r.services.events.dispatchEvent(x.Tooltip.SHOW, {
9821
9798
  event: a,
9822
9799
  hoveredElement: c,
9823
9800
  items: [
9824
9801
  {
9825
- label: yt(t, "bins.rangeLabel") || "Range",
9802
+ label: vt(t, "bins.rangeLabel") || "Range",
9826
9803
  value: `${l} – ${h}`
9827
9804
  },
9828
9805
  {
@@ -9835,7 +9812,7 @@ class W0 extends ot {
9835
9812
  },
9836
9813
  {
9837
9814
  label: u,
9838
- value: yt(o, `data.${o[e]}`)
9815
+ value: vt(o, `data.${o[e]}`)
9839
9816
  }
9840
9817
  ]
9841
9818
  });
@@ -9853,7 +9830,7 @@ class W0 extends ot {
9853
9830
  t.removeEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9854
9831
  }
9855
9832
  }
9856
- class X0 extends Sr {
9833
+ class X0 extends br {
9857
9834
  constructor() {
9858
9835
  super(...arguments), this.type = "lollipop", this.renderType = st.SVG, this.handleScatterOnHover = (t) => {
9859
9836
  const e = t.detail, n = this.getOptions(), { groupMapsTo: i } = n.data;
@@ -9954,7 +9931,7 @@ class j0 extends ot {
9954
9931
  const v = T(i, "meter", "proportional", "total");
9955
9932
  h = v || this.model.getMaximumDomain(this.model.getDisplayData());
9956
9933
  }
9957
- const d = ke().domain([0, h]).range([0, c]), u = this.getStackedBounds(a, d), p = T(i, "meter", "height");
9934
+ const d = Ce().domain([0, h]).range([0, c]), u = this.getStackedBounds(a, d), p = T(i, "meter", "height");
9958
9935
  _.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", c).attr(
9959
9936
  "height",
9960
9937
  p || (r ? _t.height.proportional : _t.height.default)
@@ -10093,10 +10070,10 @@ class Y0 extends ot {
10093
10070
  const y = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), b = (Math.min(n, i) - y) / 2;
10094
10071
  if (b <= 0)
10095
10072
  return;
10096
- const O = cr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), I = Si(this.fullDataNormalized.map((H) => H[d])), k = ke().domain([
10073
+ const O = hr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), I = bi(this.fullDataNormalized.map((H) => H[d])), C = Ce().domain([
10097
10074
  I >= 0 ? 0 : I,
10098
10075
  jr(this.fullDataNormalized.map((H) => H[d]))
10099
- ]).range([g, b]).nice(f), G = k.ticks(f), C = (H, U, W) => this.model.getFillColor(H, U, W), L = $d().angle((H) => O(H[h]) + Math.PI / 2).radius((H) => k(H[d])).curve(ac), B = this.uniqueKeys.map((H) => {
10076
+ ]).range([g, b]).nice(f), G = C.ticks(f), k = (H, U, W) => this.model.getFillColor(H, U, W), L = $d().angle((H) => O(H[h]) + Math.PI / 2).radius((H) => C(H[d])).curve(ac), B = this.uniqueKeys.map((H) => {
10100
10077
  const U = this.getLabelDimensions(H).width, W = oc(
10101
10078
  O(H),
10102
10079
  b
@@ -10142,7 +10119,7 @@ class Y0 extends ot {
10142
10119
  name: "radar_x_axes_enter",
10143
10120
  animate: t
10144
10121
  })
10145
- ).attr("opacity", 1).attr("x1", (W) => bt(O(W), k.range()[0], A).x).attr("y1", (W) => bt(O(W), k.range()[0], A).y).attr("x2", (W) => bt(O(W), k.range()[1], A).x).attr("y2", (W) => bt(O(W), k.range()[1], A).y)
10122
+ ).attr("opacity", 1).attr("x1", (W) => bt(O(W), C.range()[0], A).x).attr("y1", (W) => bt(O(W), C.range()[0], A).y).attr("x2", (W) => bt(O(W), C.range()[1], A).x).attr("y2", (W) => bt(O(W), C.range()[1], A).y)
10146
10123
  ),
10147
10124
  (H) => H.call(
10148
10125
  (U) => U.transition().call(
@@ -10151,7 +10128,7 @@ class Y0 extends ot {
10151
10128
  name: "radar_x_axes_update",
10152
10129
  animate: t
10153
10130
  })
10154
- ).attr("opacity", 1).attr("x1", (W) => bt(O(W), k.range()[0], A).x).attr("y1", (W) => bt(O(W), k.range()[0], A).y).attr("x2", (W) => bt(O(W), k.range()[1], A).x).attr("y2", (W) => bt(O(W), k.range()[1], A).y)
10131
+ ).attr("opacity", 1).attr("x1", (W) => bt(O(W), C.range()[0], A).x).attr("y1", (W) => bt(O(W), C.range()[0], A).y).attr("x2", (W) => bt(O(W), C.range()[1], A).x).attr("y2", (W) => bt(O(W), C.range()[1], A).y)
10155
10132
  ),
10156
10133
  (H) => H.call(
10157
10134
  (U) => U.transition().call(
@@ -10165,10 +10142,10 @@ class Y0 extends ot {
10165
10142
  ), _.appendOrSelect(e, "g.x-labels").attr("role", it.GROUP).selectAll("text").data(this.uniqueKeys).join(
10166
10143
  (H) => H.append("text").text((U) => U).attr("opacity", 0).attr(
10167
10144
  "x",
10168
- (U) => bt(O(U), k.range()[1] + u, A).x
10145
+ (U) => bt(O(U), C.range()[1] + u, A).x
10169
10146
  ).attr(
10170
10147
  "y",
10171
- (U) => bt(O(U), k.range()[1] + u, A).y
10148
+ (U) => bt(O(U), C.range()[1] + u, A).y
10172
10149
  ).style("text-anchor", (U) => ea(O(U)).textAnchor).style(
10173
10150
  "dominant-baseline",
10174
10151
  (U) => ea(O(U)).dominantBaseline
@@ -10190,10 +10167,10 @@ class Y0 extends ot {
10190
10167
  })
10191
10168
  ).attr("opacity", 1).attr(
10192
10169
  "x",
10193
- (W) => bt(O(W), k.range()[1] + u, A).x
10170
+ (W) => bt(O(W), C.range()[1] + u, A).x
10194
10171
  ).attr(
10195
10172
  "y",
10196
- (W) => bt(O(W), k.range()[1] + u, A).y
10173
+ (W) => bt(O(W), C.range()[1] + u, A).y
10197
10174
  ).end().finally(() => {
10198
10175
  const W = T(o, "radar", "alignment"), zt = this.getAlignmentXOffset(W, e, this.getParent());
10199
10176
  e.attr("x", zt);
@@ -10219,7 +10196,7 @@ class Y0 extends ot {
10219
10196
  ).attr("role", it.GRAPHICS_SYMBOL).attr("aria-label", (U) => U.name).attr("opacity", 0).attr(
10220
10197
  "transform",
10221
10198
  t ? () => `translate(${A.x}, ${A.y}) scale(${1 + Math.random() * 0.35})` : `translate(${A.x}, ${A.y})`
10222
- ).style("fill", (U) => C(U.name, null, U.data)).style("fill-opacity", Te.opacity.selected).style("stroke", (U) => C(U.name, null, U.data)).call((U) => {
10199
+ ).style("fill", (U) => k(U.name, null, U.data)).style("fill-opacity", Te.opacity.selected).style("stroke", (U) => k(U.name, null, U.data)).call((U) => {
10223
10200
  const W = U.transition().call(
10224
10201
  (zt) => this.services.transitions.setupTransition({
10225
10202
  transition: zt,
@@ -10236,7 +10213,7 @@ class Y0 extends ot {
10236
10213
  dataGroupName: U.name,
10237
10214
  originalClassName: "blob"
10238
10215
  })
10239
- ).style("fill", (U) => C(U.name, null, U.data)).style("stroke", (U) => C(U.name, null, U.data)), H.call(
10216
+ ).style("fill", (U) => k(U.name, null, U.data)).style("stroke", (U) => k(U.name, null, U.data)), H.call(
10240
10217
  (U) => U.transition().call(
10241
10218
  (W) => this.services.transitions.setupTransition({
10242
10219
  transition: W,
@@ -10269,17 +10246,17 @@ class Y0 extends ot {
10269
10246
  dataGroupName: H[c],
10270
10247
  originalClassName: He(H[h])
10271
10248
  })
10272
- ).attr("cx", (H) => bt(O(H[h]), k(H[d]), A).x).attr("cy", (H) => bt(O(H[h]), k(H[d]), A).y).attr("r", 0).attr("opacity", 0).style("fill", (H) => C(H[c])), _.appendOrSelect(e, "g.x-axes-rect").attr("role", it.GROUP).selectAll("rect").data(this.uniqueKeys).join(
10249
+ ).attr("cx", (H) => bt(O(H[h]), C(H[d]), A).x).attr("cy", (H) => bt(O(H[h]), C(H[d]), A).y).attr("r", 0).attr("opacity", 0).style("fill", (H) => k(H[c])), _.appendOrSelect(e, "g.x-axes-rect").attr("role", it.GROUP).selectAll("rect").data(this.uniqueKeys).join(
10273
10250
  (H) => H.append("rect"),
10274
10251
  (H) => H,
10275
10252
  (H) => H.remove()
10276
- ).attr("x", A.x).attr("y", A.y - m / 2).attr("width", k.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (H) => `rotate(${lc(O(H))}, ${A.x}, ${A.y})`);
10253
+ ).attr("x", A.x).attr("y", A.y - m / 2).attr("width", C.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (H) => `rotate(${lc(O(H))}, ${A.x}, ${A.y})`);
10277
10254
  const { code: ut, number: ht } = T(o, "locale");
10278
- _.appendOrSelect(e, "g.y-labels").attr("role", it.GROUP).selectAll("text").data(ks(G)).join(
10255
+ _.appendOrSelect(e, "g.y-labels").attr("role", it.GROUP).selectAll("text").data(Is(G)).join(
10279
10256
  (H) => H.append("text").attr("opacity", 0).text((U) => ht(U, ut)).attr(
10280
10257
  "x",
10281
- (U) => bt(-Math.PI / 2, k(U), A).x + p
10282
- ).attr("y", (U) => bt(-Math.PI / 2, k(U), A).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
10258
+ (U) => bt(-Math.PI / 2, C(U), A).x + p
10259
+ ).attr("y", (U) => bt(-Math.PI / 2, C(U), A).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
10283
10260
  (U) => U.transition().call(
10284
10261
  (W) => this.services.transitions.setupTransition({
10285
10262
  transition: W,
@@ -10297,8 +10274,8 @@ class Y0 extends ot {
10297
10274
  })
10298
10275
  ).text((W) => W).attr("opacity", 1).attr(
10299
10276
  "x",
10300
- (W) => bt(-Math.PI / 2, k(W), A).x + p
10301
- ).attr("y", (W) => bt(-Math.PI / 2, k(W), A).y)
10277
+ (W) => bt(-Math.PI / 2, C(W), A).x + p
10278
+ ).attr("y", (W) => bt(-Math.PI / 2, C(W), A).y)
10302
10279
  ),
10303
10280
  (H) => H.call(
10304
10281
  (U) => U.transition().call(
@@ -10382,7 +10359,7 @@ class Y0 extends ot {
10382
10359
  });
10383
10360
  }
10384
10361
  }
10385
- class q0 extends br {
10362
+ class q0 extends Or {
10386
10363
  constructor() {
10387
10364
  super(...arguments), this.type = "simple-bar", this.renderType = st.SVG, this.handleLegendOnHover = (t) => {
10388
10365
  const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -10541,7 +10518,7 @@ class K0 extends ot {
10541
10518
  percentage: a,
10542
10519
  groups: this.configs.groups
10543
10520
  }), c = T(o, 0, 0), l = this.services.cartesianScales.getDomainAxisPosition({ datum: c }), h = this.services.cartesianScales.getRangeAxisPosition({ datum: c }), d = this.services.cartesianScales.getScaleByPosition(h), u = e.selectAll("path.area").data(o, (f) => T(f, 0, r));
10544
- this.areaGenerator = yr().x(
10521
+ this.areaGenerator = Sr().x(
10545
10522
  (f) => this.services.cartesianScales.getValueThroughAxisPosition(
10546
10523
  l,
10547
10524
  f.data.sharedStackKey
@@ -10562,7 +10539,7 @@ class K0 extends ot {
10562
10539
  ).attr("opacity", me.opacity.selected).attr("d", this.areaGenerator);
10563
10540
  }
10564
10541
  }
10565
- class J0 extends br {
10542
+ class J0 extends Or {
10566
10543
  constructor() {
10567
10544
  super(...arguments), this.type = "stacked-bar", this.renderType = st.SVG, this.handleLegendOnHover = (t) => {
10568
10545
  const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.model.getOptions().data;
@@ -10693,7 +10670,7 @@ class J0 extends br {
10693
10670
  t.removeEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
10694
10671
  }
10695
10672
  }
10696
- class Q0 extends Sr {
10673
+ class Q0 extends br {
10697
10674
  constructor() {
10698
10675
  super(...arguments), this.type = "scatter-stacked", this.renderType = st.SVG;
10699
10676
  }
@@ -10774,19 +10751,17 @@ class ty extends ot {
10774
10751
  return;
10775
10752
  const r = this.model.getOptions(), a = this.model.getDisplayData(), o = T(r, "tree", "rootTitle") || "Tree", c = this.getMockLabelWidth(e, o), l = this.getLongestLabel(a), h = this.getMockLabelWidth(e, l), d = {
10776
10753
  top: 0,
10777
- right: 0,
10778
- bottom: 0,
10779
10754
  left: c > 0 ? c + We : 30 - We
10780
10755
  }, u = Pn({
10781
10756
  name: o,
10782
10757
  children: a
10783
10758
  }), p = 10, f = n / 6, g = (O) => {
10784
- const I = u.descendants().reverse(), k = u.links();
10785
- let G = u, C = u;
10759
+ const I = u.descendants().reverse(), C = u.links();
10760
+ let G = u, k = u;
10786
10761
  u.eachBefore((P) => {
10787
- P.x < G.x && (G = P), P.x > C.x && (C = P);
10762
+ P.x < G.x && (G = P), P.x > k.x && (k = P);
10788
10763
  });
10789
- const L = C.x - G.x, B = e.transition().call(
10764
+ const L = k.x - G.x, B = e.transition().call(
10790
10765
  (P) => this.services.transitions.setupTransition({
10791
10766
  transition: P,
10792
10767
  name: "tree-update-viewbox",
@@ -10815,7 +10790,7 @@ class ty extends ot {
10815
10790
  });
10816
10791
  });
10817
10792
  w.append("circle").attr("r", 2.5).attr("class", (P) => P._children ? "parent" : "child").attr("stroke-width", 10), w.append("text").attr("dy", "0.31em").attr("x", (P) => P._children ? -We : We).attr("text-anchor", (P) => P._children ? "end" : "start").text((P) => P.data.name).clone(!0).attr("class", "text-stroke").lower(), D.merge(w).transition(B).attr("transform", (P) => `translate(${P.y},${P.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), D.exit().transition(B).remove().attr("transform", () => `translate(${O.y},${O.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
10818
- const V = S.selectAll("path").data(k, (P) => P.target.id), N = V.enter().append("path").attr("d", () => {
10793
+ const V = S.selectAll("path").data(C, (P) => P.target.id), N = V.enter().append("path").attr("d", () => {
10819
10794
  const P = { x: O.x0, y: O.y0 };
10820
10795
  return v({ source: P, target: P });
10821
10796
  });
@@ -10850,7 +10825,7 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10850
10825
  80: yg,
10851
10826
  90: Eg,
10852
10827
  100: Sg
10853
- }, bg = "#fff2e8", Tg = "#ffd9be", Og = "#ffb784", wg = "#ff832b", Lg = "#eb6200", Ag = "#ba4e00", Mg = "#8a3800", _g = "#5e2900", Cg = "#3e1a00", kg = "#231000", Rg = {
10828
+ }, bg = "#fff2e8", Tg = "#ffd9be", Og = "#ffb784", wg = "#ff832b", Lg = "#eb6200", Ag = "#ba4e00", Mg = "#8a3800", _g = "#5e2900", kg = "#3e1a00", Cg = "#231000", Rg = {
10854
10829
  10: bg,
10855
10830
  20: Tg,
10856
10831
  30: Og,
@@ -10859,8 +10834,8 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10859
10834
  60: Ag,
10860
10835
  70: Mg,
10861
10836
  80: _g,
10862
- 90: Cg,
10863
- 100: kg
10837
+ 90: kg,
10838
+ 100: Cg
10864
10839
  }, Ig = "#fff1f1", Dg = "#ffd7d9", Pg = "#ffb3b8", Ng = "#ff8389", $g = "#fa4d56", Vg = "#da1e28", Bg = "#a2191f", Gg = "#750e13", Hg = "#520408", Ug = "#2d0709", zg = {
10865
10840
  10: Ig,
10866
10841
  20: Dg,
@@ -10905,7 +10880,7 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10905
10880
  80: Em,
10906
10881
  90: Sm,
10907
10882
  100: xm
10908
- }, Tm = "#e5f6ff", Om = "#bae6ff", wm = "#82cfff", Lm = "#33b1ff", Am = "#1192e8", Mm = "#0072c3", _m = "#00539a", Cm = "#003a6d", km = "#012749", Rm = "#061727", Im = {
10883
+ }, Tm = "#e5f6ff", Om = "#bae6ff", wm = "#82cfff", Lm = "#33b1ff", Am = "#1192e8", Mm = "#0072c3", _m = "#00539a", km = "#003a6d", Cm = "#012749", Rm = "#061727", Im = {
10909
10884
  10: Tm,
10910
10885
  20: Om,
10911
10886
  30: wm,
@@ -10913,8 +10888,8 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10913
10888
  50: Am,
10914
10889
  60: Mm,
10915
10890
  70: _m,
10916
- 80: Cm,
10917
- 90: km,
10891
+ 80: km,
10892
+ 90: Cm,
10918
10893
  100: Rm
10919
10894
  }, Dm = "#d9fbfb", Pm = "#9ef0f0", Nm = "#3ddbd9", $m = "#08bdba", Vm = "#009d9a", Bm = "#007d79", Gm = "#005d5d", Hm = "#004144", Um = "#022b30", zm = "#081a1c", Fm = {
10920
10895
  10: Dm,
@@ -10960,15 +10935,15 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10960
10935
  80: Sv,
10961
10936
  90: xv,
10962
10937
  100: bv
10963
- }, Ov = "#f7f3f2", wv = "#e5e0df", Lv = "#cac5c4", Av = "#ada8a8", Mv = "#8f8b8b", _v = "#726e6e", Cv = "#565151", kv = "#3c3838", Rv = "#272525", Iv = "#171414", Dv = {
10938
+ }, Ov = "#f7f3f2", wv = "#e5e0df", Lv = "#cac5c4", Av = "#ada8a8", Mv = "#8f8b8b", _v = "#726e6e", kv = "#565151", Cv = "#3c3838", Rv = "#272525", Iv = "#171414", Dv = {
10964
10939
  10: Ov,
10965
10940
  20: wv,
10966
10941
  30: Lv,
10967
10942
  40: Av,
10968
10943
  50: Mv,
10969
10944
  60: _v,
10970
- 70: Cv,
10971
- 80: kv,
10945
+ 70: kv,
10946
+ 80: Cv,
10972
10947
  90: Rv,
10973
10948
  100: Iv
10974
10949
  }, uo = {
@@ -11196,9 +11171,9 @@ function _l() {
11196
11171
  if (!(n = arguments[s] + "") || n in e || /[\s.]/.test(n)) throw new Error("illegal type: " + n);
11197
11172
  e[n] = [];
11198
11173
  }
11199
- return new us(e);
11174
+ return new ds(e);
11200
11175
  }
11201
- function us(s) {
11176
+ function ds(s) {
11202
11177
  this._ = s;
11203
11178
  }
11204
11179
  function Vv(s, t) {
@@ -11208,8 +11183,8 @@ function Vv(s, t) {
11208
11183
  return { type: e, name: n };
11209
11184
  });
11210
11185
  }
11211
- us.prototype = _l.prototype = {
11212
- constructor: us,
11186
+ ds.prototype = _l.prototype = {
11187
+ constructor: ds,
11213
11188
  on: function(s, t) {
11214
11189
  var e = this._, n = Vv(s + "", e), i, r = -1, a = n.length;
11215
11190
  if (arguments.length < 2) {
@@ -11225,7 +11200,7 @@ us.prototype = _l.prototype = {
11225
11200
  copy: function() {
11226
11201
  var s = {}, t = this._;
11227
11202
  for (var e in t) s[e] = t[e].slice();
11228
- return new us(s);
11203
+ return new ds(s);
11229
11204
  },
11230
11205
  call: function(s, t) {
11231
11206
  if ((i = arguments.length - 2) > 0) for (var e = new Array(i), n = 0, i, r; n < i; ++n) e[n] = arguments[n + 2];
@@ -11253,25 +11228,25 @@ function po(s, t, e) {
11253
11228
  const Gv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11254
11229
  __proto__: null,
11255
11230
  dispatch: _l
11256
- }, Symbol.toStringTag, { value: "Module" })), Hv = /* @__PURE__ */ of(Gv), Uv = Hv.dispatch, vi = Math.PI / 180, zv = {
11257
- archimedean: Cl,
11231
+ }, Symbol.toStringTag, { value: "Module" })), Hv = /* @__PURE__ */ of(Gv), Uv = Hv.dispatch, Ei = Math.PI / 180, zv = {
11232
+ archimedean: kl,
11258
11233
  rectangular: t0
11259
- }, wn = 64, hs = 2048;
11234
+ }, wn = 64, ps = 2048;
11260
11235
  var Fv = function() {
11261
- var s = [256, 256], t = Wv, e = Xv, n = jv, i = fo, r = fo, a = Yv, o = qv, c = Cl, l = [], h = 1 / 0, d = Uv("word", "end"), u = null, p = Math.random, f = {}, g = n0;
11236
+ var s = [256, 256], t = Wv, e = Xv, n = jv, i = fo, r = fo, a = Yv, o = qv, c = kl, l = [], h = 1 / 0, d = Uv("word", "end"), u = null, p = Math.random, f = {}, g = n0;
11262
11237
  f.canvas = function(y) {
11263
11238
  return arguments.length ? (g = xe(y), f) : g;
11264
11239
  }, f.start = function() {
11265
- var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [], k = l.map(function(C, L) {
11266
- return C.text = t.call(this, C, L), C.font = e.call(this, C, L), C.style = i.call(this, C, L), C.weight = r.call(this, C, L), C.rotate = a.call(this, C, L), C.size = ~~n.call(this, C, L), C.padding = o.call(this, C, L), C;
11267
- }).sort(function(C, L) {
11268
- return L.size - C.size;
11240
+ var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [], C = l.map(function(k, L) {
11241
+ return k.text = t.call(this, k, L), k.font = e.call(this, k, L), k.style = i.call(this, k, L), k.weight = r.call(this, k, L), k.rotate = a.call(this, k, L), k.size = ~~n.call(this, k, L), k.padding = o.call(this, k, L), k;
11242
+ }).sort(function(k, L) {
11243
+ return L.size - k.size;
11269
11244
  });
11270
11245
  return u && clearInterval(u), u = setInterval(G, 0), G(), f;
11271
11246
  function G() {
11272
- for (var C = Date.now(); Date.now() - C < h && ++O < b && u; ) {
11273
- var L = k[O];
11274
- L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, k, O), L.hasText && E(v, L, S) && (I.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
11247
+ for (var k = Date.now(); Date.now() - k < h && ++O < b && u; ) {
11248
+ var L = C[O];
11249
+ L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, C, O), L.hasText && E(v, L, S) && (I.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
11275
11250
  }
11276
11251
  O >= b && (f.stop(), d.call("end", f, I, S));
11277
11252
  }
@@ -11285,11 +11260,11 @@ var Fv = function() {
11285
11260
  const v = y.getContext("2d", { willReadFrequently: !0 });
11286
11261
  y.width = y.height = 1;
11287
11262
  const S = Math.sqrt(v.getImageData(0, 0, 1, 1).data.length >> 2);
11288
- return y.width = (wn << 5) / S, y.height = hs / S, v.fillStyle = v.strokeStyle = "red", { context: v, ratio: S };
11263
+ return y.width = (wn << 5) / S, y.height = ps / S, v.fillStyle = v.strokeStyle = "red", { context: v, ratio: S };
11289
11264
  }
11290
11265
  function E(y, v, S) {
11291
11266
  s[0], s[1];
11292
- for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]), k = c(s), G = p() < 0.5 ? 1 : -1, C = -G, L, B, D; (L = k(C += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= I)); )
11267
+ for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]), C = c(s), G = p() < 0.5 ? 1 : -1, k = -G, L, B, D; (L = C(k += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= I)); )
11293
11268
  if (v.x = b + B, v.y = O + D, !(v.x + v.x0 < 0 || v.y + v.y0 < 0 || v.x + v.x1 > s[0] || v.y + v.y1 > s[1]) && (!S || Qv(v, S)) && !Kv(v, y, s[0])) {
11294
11269
  for (var A = v.sprite, w = v.width >> 5, V = s[0] >> 5, N = v.x - (w << 4), P = N & 127, $ = 32 - P, X = v.y1 - v.y0, F = (v.y + v.y0) * V + (N >> 5), et, J = 0; J < X; J++) {
11295
11270
  et = 0;
@@ -11351,31 +11326,31 @@ function qv() {
11351
11326
  function Zv(s, t, e, n) {
11352
11327
  if (!t.sprite) {
11353
11328
  var i = s.context, r = s.ratio;
11354
- i.clearRect(0, 0, (wn << 5) / r, hs / r);
11329
+ i.clearRect(0, 0, (wn << 5) / r, ps / r);
11355
11330
  var a = 0, o = 0, c = 0, l = e.length;
11356
11331
  for (--n; ++n < l; ) {
11357
11332
  t = e[n], i.save(), i.font = t.style + " " + t.weight + " " + ~~((t.size + 1) / r) + "px " + t.font;
11358
11333
  const L = i.measureText(t.text), B = -Math.floor(L.width / 2);
11359
11334
  let D = (L.width + 1) * r, A = t.size << 1;
11360
11335
  if (t.rotate) {
11361
- var h = Math.sin(t.rotate * vi), d = Math.cos(t.rotate * vi), u = D * d, p = D * h, f = A * d, g = A * h;
11336
+ var h = Math.sin(t.rotate * Ei), d = Math.cos(t.rotate * Ei), u = D * d, p = D * h, f = A * d, g = A * h;
11362
11337
  D = Math.max(Math.abs(u + g), Math.abs(u - g)) + 31 >> 5 << 5, A = ~~Math.max(Math.abs(p + f), Math.abs(p - f));
11363
11338
  } else
11364
11339
  D = D + 31 >> 5 << 5;
11365
- if (A > c && (c = A), a + D >= wn << 5 && (a = 0, o += c, c = 0), o + A >= hs) break;
11366
- i.translate((a + (D >> 1)) / r, (o + (A >> 1)) / r), t.rotate && i.rotate(t.rotate * vi), i.fillText(t.text, B, 0), t.padding && (i.lineWidth = 2 * t.padding, i.strokeText(t.text, B, 0)), i.restore(), t.width = D, t.height = A, t.xoff = a, t.yoff = o, t.x1 = D >> 1, t.y1 = A >> 1, t.x0 = -t.x1, t.y0 = -t.y1, t.hasText = !0, a += D;
11340
+ if (A > c && (c = A), a + D >= wn << 5 && (a = 0, o += c, c = 0), o + A >= ps) break;
11341
+ i.translate((a + (D >> 1)) / r, (o + (A >> 1)) / r), t.rotate && i.rotate(t.rotate * Ei), i.fillText(t.text, B, 0), t.padding && (i.lineWidth = 2 * t.padding, i.strokeText(t.text, B, 0)), i.restore(), t.width = D, t.height = A, t.xoff = a, t.yoff = o, t.x1 = D >> 1, t.y1 = A >> 1, t.x0 = -t.x1, t.y0 = -t.y1, t.hasText = !0, a += D;
11367
11342
  }
11368
- for (var m = i.getImageData(0, 0, (wn << 5) / r, hs / r).data, E = []; --n >= 0; )
11343
+ for (var m = i.getImageData(0, 0, (wn << 5) / r, ps / r).data, E = []; --n >= 0; )
11369
11344
  if (t = e[n], !!t.hasText) {
11370
11345
  for (var y = t.width, v = y >> 5, S = t.y1 - t.y0, b = 0; b < S * v; b++) E[b] = 0;
11371
11346
  if (a = t.xoff, a == null) return;
11372
11347
  o = t.yoff;
11373
- for (var O = 0, I = -1, k = 0; k < S; k++) {
11348
+ for (var O = 0, I = -1, C = 0; C < S; C++) {
11374
11349
  for (var b = 0; b < y; b++) {
11375
- var G = v * k + (b >> 5), C = m[(o + k) * (wn << 5) + (a + b) << 2] ? 1 << 31 - b % 32 : 0;
11376
- E[G] |= C, O |= C;
11350
+ var G = v * C + (b >> 5), k = m[(o + C) * (wn << 5) + (a + b) << 2] ? 1 << 31 - b % 32 : 0;
11351
+ E[G] |= k, O |= k;
11377
11352
  }
11378
- O ? I = k : (t.y0++, S--, k--, o++);
11353
+ O ? I = C : (t.y0++, S--, C--, o++);
11379
11354
  }
11380
11355
  t.y1 = t.y0 + I, t.sprite = E.slice(0, (t.y1 - t.y0) * v);
11381
11356
  }
@@ -11398,7 +11373,7 @@ function Jv(s, t) {
11398
11373
  function Qv(s, t) {
11399
11374
  return s.x + s.x1 > t[0].x && s.x + s.x0 < t[1].x && s.y + s.y1 > t[0].y && s.y + s.y0 < t[1].y;
11400
11375
  }
11401
- function Cl(s) {
11376
+ function kl(s) {
11402
11377
  var t = s[0] / s[1];
11403
11378
  return function(e) {
11404
11379
  return [t * (e *= 0.1) * Math.cos(e), e * Math.sin(e)];
@@ -11509,11 +11484,11 @@ class ny extends ot {
11509
11484
  this.addEventListeners();
11510
11485
  }
11511
11486
  getFontSizeScale(t) {
11512
- const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, i = t.map((c) => c[n]).filter((c) => c), r = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), a = i.length > 0, o = a ? ks(i) : [1, 1];
11513
- return ke().domain(o).range(a ? e.wordCloud.fontSizeRange(r, t) : [4, 4]);
11487
+ const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, i = t.map((c) => c[n]).filter((c) => c), r = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), a = i.length > 0, o = a ? Is(i) : [1, 1];
11488
+ return Ce().domain(o).range(a ? e.wordCloud.fontSizeRange(r, t) : [4, 4]);
11514
11489
  }
11515
11490
  addEventListeners() {
11516
- const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i = xi((r) => {
11491
+ const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i = Ti((r) => {
11517
11492
  const a = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
11518
11493
  (o) => n.services.transitions.setupTransition({
11519
11494
  transition: o,
@@ -11543,7 +11518,7 @@ class ny extends ot {
11543
11518
  value: a.value
11544
11519
  },
11545
11520
  {
11546
- label: yt(t, "locale.translations.group") || yt(t, "tooltip.groupLabel") || "Group",
11521
+ label: vt(t, "locale.translations.group") || vt(t, "tooltip.groupLabel") || "Group",
11547
11522
  value: a[e],
11548
11523
  class: n.model.getColorClassName({
11549
11524
  classNameTypes: [tt.TOOLTIP],
@@ -11668,11 +11643,11 @@ class sy extends i0 {
11668
11643
  const t = this, e = this.model.getCombinedData();
11669
11644
  this.parent.selectAll("path.border").on("mouseover", function(n, i) {
11670
11645
  const r = R(this);
11671
- t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEOVER, {
11646
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEOVER, {
11672
11647
  event: n,
11673
11648
  element: r,
11674
11649
  datum: e[i.properties.NAME]
11675
- }), t.services.events.dispatchEvent(Ys.SHOW, {
11650
+ }), t.services.events.dispatchEvent(Zs.SHOW, {
11676
11651
  event: n,
11677
11652
  hoveredElement: r,
11678
11653
  items: [
@@ -11683,26 +11658,26 @@ class sy extends i0 {
11683
11658
  ]
11684
11659
  });
11685
11660
  }).on("mousemove", function(n, i) {
11686
- t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEMOVE, {
11661
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEMOVE, {
11687
11662
  event: n,
11688
11663
  element: R(this),
11689
11664
  datum: e[i.properties.NAME]
11690
- }), t.services.events.dispatchEvent(Ys.MOVE, {
11665
+ }), t.services.events.dispatchEvent(Zs.MOVE, {
11691
11666
  event: n
11692
11667
  });
11693
11668
  }).on("click", function(n, i) {
11694
- t.services.events.dispatchEvent(zn.CHOROPLETH_CLICK, {
11669
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_CLICK, {
11695
11670
  event: n,
11696
11671
  element: R(this),
11697
11672
  datum: e[i.properties.NAME]
11698
11673
  });
11699
11674
  }).on("mouseout", function(n, i) {
11700
11675
  const r = R(this);
11701
- t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEOUT, {
11676
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEOUT, {
11702
11677
  event: n,
11703
11678
  element: r,
11704
11679
  datum: e[i.properties.NAME]
11705
- }), t.services.events.dispatchEvent(Ys.HIDE, {
11680
+ }), t.services.events.dispatchEvent(Zs.HIDE, {
11706
11681
  event: n,
11707
11682
  hoveredElement: r
11708
11683
  });
@@ -11739,19 +11714,19 @@ export {
11739
11714
  f0 as Z,
11740
11715
  R0 as _,
11741
11716
  Xa as a,
11742
- k0 as a0,
11743
- C0 as a1,
11717
+ C0 as a0,
11718
+ k0 as a1,
11744
11719
  _0 as a2,
11745
11720
  D0 as a3,
11746
11721
  P0 as a4,
11747
11722
  N0 as a5,
11748
11723
  $0 as a6,
11749
11724
  i0 as a7,
11750
- br as a8,
11725
+ Or as a8,
11751
11726
  ot as a9,
11752
11727
  ja as b,
11753
11728
  Jc as c,
11754
- Cf as d,
11729
+ kf as d,
11755
11730
  _f as e,
11756
11731
  Qa as f,
11757
11732
  g0 as g,
@@ -11759,7 +11734,7 @@ export {
11759
11734
  b0 as i,
11760
11735
  x0 as j,
11761
11736
  S0 as k,
11762
- Sr as l,
11737
+ br as l,
11763
11738
  Jf as m,
11764
11739
  O0 as n,
11765
11740
  w0 as o,
@@ -11767,12 +11742,12 @@ export {
11767
11742
  V0 as q,
11768
11743
  sy as r,
11769
11744
  G0 as s,
11770
- K0 as t,
11771
- Q0 as u,
11772
- M0 as v,
11745
+ J0 as t,
11746
+ M0 as u,
11747
+ z0 as v,
11773
11748
  q0 as w,
11774
- z0 as x,
11775
- J0 as y,
11749
+ K0 as x,
11750
+ Q0 as y,
11776
11751
  U0 as z
11777
11752
  };
11778
- //# sourceMappingURL=choropleth-0DsmaWsP.mjs.map
11753
+ //# sourceMappingURL=choropleth-C1BTZZfm.mjs.map